OXYGENHUB
# bf73998c5198 oxygenhub-vscode / package.json
9.1 KiB · JSON · last changed Proposals in native diff editors (0.2.0) 1 month ago source blame history raw
f0b06dea Andy McCall 1
{
2
  "name": "oxygenhub-vscode",
3
  "displayName": "Oxygenhub",
4
  "description": "Proposals, reviews, issues and checks from an Oxygenhub, in the editor. Builds on the Oxygen extension.",
bf73998c Andy McCall ↶ 5
  "version": "0.2.0",
f0b06dea Andy McCall 6
  "publisher": "andymccall",
7
  "license": "MIT OR Apache-2.0",
8
  "icon": "assets/images/oxygenhub.png",
9
  "engines": {
10
    "vscode": "^1.137.0"
11
  },
486c15b0 Andy McCall ↶ 12
  "categories": [
13
    "SCM Providers",
14
    "Other"
15
  ],
16
  "keywords": [
17
    "oxygen",
18
    "oxygenhub",
19
    "review",
20
    "proposals",
21
    "issues"
22
  ],
23
  "extensionDependencies": [
52cef001 Andy McCall ↶ 24
    "oxygen.oxygen-vscode"
486c15b0 Andy McCall ↶ 25
  ],
26
  "activationEvents": [
27
    "workspaceContains:.oxy/format",
28
    "onAuthenticationRequest:oxygenhub",
29
    "onStartupFinished"
30
  ],
f0b06dea Andy McCall 31
  "main": "./dist/extension.js",
32
  "contributes": {
486c15b0 Andy McCall ↶ 33
    "authentication": [
34
      {
35
        "id": "oxygenhub",
36
        "label": "Oxygenhub"
37
      }
38
    ],
f0b06dea Andy McCall 39
    "configuration": {
40
      "title": "Oxygenhub",
41
      "properties": {
486c15b0 Andy McCall ↶ 42
        "oxygenhub.hubs": {
43
          "type": "array",
44
          "items": {
45
            "type": "string"
46
          },
47
          "default": [],
48
          "description": "Base URLs of hubs you use (learnt from sign in too)."
49
        },
50
        "oxygenhub.proposalBookmarkPrefix": {
51
          "type": "string",
52
          "default": "proposal/",
53
          "description": "Prefix of the local bookmark created when checking out a proposal."
54
        },
55
        "oxygenhub.autoRefresh": {
56
          "type": "number",
57
          "default": 60,
58
          "description": "Seconds between view refreshes; 0 disables."
59
        }
f0b06dea Andy McCall 60
      }
61
    },
62
    "viewsContainers": {
486c15b0 Andy McCall ↶ 63
      "activitybar": [
64
        {
65
          "id": "oxygenhub",
66
          "title": "Oxygenhub",
52cef001 Andy McCall ↶ 67
          "icon": "assets/images/oxygenhub-activity.svg"
486c15b0 Andy McCall ↶ 68
        }
69
      ]
f0b06dea Andy McCall 70
    },
71
    "views": {
72
      "oxygenhub": [
486c15b0 Andy McCall ↶ 73
        {
74
          "id": "oxygenhub.proposals",
75
          "name": "Proposals"
76
        },
77
        {
78
          "id": "oxygenhub.issues",
79
          "name": "Issues"
80
        }
f0b06dea Andy McCall 81
      ]
82
    },
83
    "viewsWelcome": [
486c15b0 Andy McCall ↶ 84
      {
85
        "view": "oxygenhub.proposals",
86
        "contents": "Sign in to an Oxygenhub to see proposals.\n[Sign in](command:oxygenhub.signIn)"
87
      }
f0b06dea Andy McCall 88
    ],
89
    "commands": [
486c15b0 Andy McCall ↶ 90
      {
91
        "command": "oxygenhub.signIn",
92
        "title": "Sign in",
93
        "category": "Oxygenhub"
94
      },
95
      {
96
        "command": "oxygenhub.signOut",
97
        "title": "Sign out",
98
        "category": "Oxygenhub"
99
      },
100
      {
101
        "command": "oxygenhub.refresh",
102
        "title": "Refresh",
103
        "category": "Oxygenhub",
104
        "icon": "$(refresh)"
105
      },
106
      {
107
        "command": "oxygenhub.openProposal",
108
        "title": "Open Proposal",
109
        "category": "Oxygenhub"
110
      },
111
      {
112
        "command": "oxygenhub.openOnHub",
113
        "title": "Open on Hub",
114
        "category": "Oxygenhub",
115
        "icon": "$(link-external)"
116
      },
117
      {
bf73998c Andy McCall ↶ 118
        "command": "oxygenhub.openProposalFile",
119
        "title": "Open Proposal File Diff",
120
        "category": "Oxygenhub"
121
      },
122
      {
123
        "command": "oxygenhub.openProposalChanges",
124
        "title": "View Changes",
125
        "category": "Oxygenhub",
126
        "icon": "$(diff-multiple)"
127
      },
128
      {
486c15b0 Andy McCall ↶ 129
        "command": "oxygenhub.checkoutProposal",
130
        "title": "Check Out Proposal",
131
        "category": "Oxygenhub",
132
        "icon": "$(git-branch)"
133
      },
134
      {
135
        "command": "oxygenhub.review",
136
        "title": "Review\u2026",
137
        "category": "Oxygenhub",
138
        "icon": "$(comment-discussion)"
139
      },
140
      {
141
        "command": "oxygenhub.sealApproval",
142
        "title": "Seal My Approval (oxy seal --proposal)",
143
        "category": "Oxygenhub"
144
      },
145
      {
146
        "command": "oxygenhub.land",
147
        "title": "Land Proposal",
148
        "category": "Oxygenhub"
149
      },
150
      {
151
        "command": "oxygenhub.closeProposal",
152
        "title": "Close Proposal",
153
        "category": "Oxygenhub"
154
      },
155
      {
156
        "command": "oxygenhub.createProposal",
157
        "title": "Propose Current Bookmark\u2026",
158
        "category": "Oxygenhub"
159
      },
160
      {
161
        "command": "oxygenhub.newIssue",
162
        "title": "New Issue\u2026",
163
        "category": "Oxygenhub",
164
        "icon": "$(add)"
165
      },
166
      {
167
        "command": "oxygenhub.openIssue",
168
        "title": "Open Issue",
169
        "category": "Oxygenhub"
170
      },
171
      {
172
        "command": "oxygenhub.commentIssue",
173
        "title": "Comment on Issue\u2026",
174
        "category": "Oxygenhub"
175
      },
176
      {
177
        "command": "oxygenhub.closeIssue",
178
        "title": "Close Issue",
179
        "category": "Oxygenhub"
180
      },
181
      {
182
        "command": "oxygenhub.reopenIssue",
183
        "title": "Reopen Issue",
184
        "category": "Oxygenhub"
185
      },
186
      {
187
        "command": "oxygenhub.assignMe",
188
        "title": "Assign to Me",
189
        "category": "Oxygenhub"
190
      },
191
      {
192
        "command": "oxygenhub.newThread",
193
        "title": "Start Review Thread",
194
        "category": "Oxygenhub"
195
      },
196
      {
197
        "command": "oxygenhub.reply",
198
        "title": "Reply",
199
        "category": "Oxygenhub"
200
      },
201
      {
202
        "command": "oxygenhub.resolveThread",
203
        "title": "Resolve",
204
        "category": "Oxygenhub"
205
      }
f0b06dea Andy McCall 206
    ],
207
    "menus": {
208
      "view/title": [
486c15b0 Andy McCall ↶ 209
        {
210
          "command": "oxygenhub.refresh",
211
          "when": "view == oxygenhub.proposals || view == oxygenhub.issues",
212
          "group": "navigation"
213
        },
214
        {
215
          "command": "oxygenhub.createProposal",
216
          "when": "view == oxygenhub.proposals",
217
          "group": "navigation"
218
        },
219
        {
220
          "command": "oxygenhub.newIssue",
221
          "when": "view == oxygenhub.issues",
222
          "group": "navigation"
223
        }
f0b06dea Andy McCall 224
      ],
225
      "view/item/context": [
486c15b0 Andy McCall ↶ 226
        {
bf73998c Andy McCall ↶ 227
          "command": "oxygenhub.openProposalChanges",
228
          "when": "view == oxygenhub.proposals && viewItem == proposal",
229
          "group": "inline"
230
        },
231
        {
486c15b0 Andy McCall ↶ 232
          "command": "oxygenhub.openOnHub",
233
          "when": "view == oxygenhub.proposals && viewItem == proposal",
234
          "group": "inline"
235
        },
236
        {
237
          "command": "oxygenhub.checkoutProposal",
238
          "when": "view == oxygenhub.proposals && viewItem == proposal",
239
          "group": "inline"
240
        },
241
        {
242
          "command": "oxygenhub.review",
243
          "when": "view == oxygenhub.proposals && viewItem == proposal",
244
          "group": "inline"
245
        },
246
        {
247
          "command": "oxygenhub.sealApproval",
248
          "when": "view == oxygenhub.proposals && viewItem == proposal",
249
          "group": "actions@1"
250
        },
251
        {
252
          "command": "oxygenhub.land",
253
          "when": "view == oxygenhub.proposals && viewItem == proposal",
254
          "group": "actions@2"
255
        },
256
        {
257
          "command": "oxygenhub.closeProposal",
258
          "when": "view == oxygenhub.proposals && viewItem == proposal",
259
          "group": "actions@3"
260
        },
261
        {
262
          "command": "oxygenhub.openOnHub",
263
          "when": "view == oxygenhub.issues && viewItem == issue",
264
          "group": "inline"
265
        },
266
        {
267
          "command": "oxygenhub.commentIssue",
268
          "when": "view == oxygenhub.issues && viewItem == issue",
269
          "group": "actions@1"
270
        },
271
        {
272
          "command": "oxygenhub.assignMe",
273
          "when": "view == oxygenhub.issues && viewItem == issue",
274
          "group": "actions@2"
275
        },
276
        {
277
          "command": "oxygenhub.closeIssue",
278
          "when": "view == oxygenhub.issues && viewItem == issue",
279
          "group": "actions@3"
280
        },
281
        {
282
          "command": "oxygenhub.reopenIssue",
283
          "when": "view == oxygenhub.issues && viewItem == issue",
284
          "group": "actions@3"
285
        }
f0b06dea Andy McCall 286
      ],
287
      "comments/commentThread/context": [
486c15b0 Andy McCall ↶ 288
        {
289
          "command": "oxygenhub.reply",
290
          "when": "commentController == oxygenhub",
291
          "group": "inline"
292
        },
293
        {
294
          "command": "oxygenhub.newThread",
295
          "when": "commentController == oxygenhub && commentThreadIsEmpty",
296
          "group": "inline"
297
        }
f0b06dea Andy McCall 298
      ],
299
      "comments/commentThread/title": [
486c15b0 Andy McCall ↶ 300
        {
301
          "command": "oxygenhub.resolveThread",
302
          "when": "commentController == oxygenhub",
303
          "group": "navigation"
304
        }
bf73998c Andy McCall ↶ 305
      ],
306
      "commandPalette": [
307
        {
308
          "command": "oxygenhub.openProposalFile",
309
          "when": "false"
310
        }
f0b06dea Andy McCall 311
      ]
312
    }
313
  },
314
  "scripts": {
315
    "types": "cp ../oxygenhub/crates/hub-api/ts/index.d.ts src/hubapi.d.ts",
316
    "build": "esbuild src/extension.ts --bundle --platform=node --format=cjs --external:vscode --outfile=dist/extension.js --sourcemap",
317
    "watch": "npm run build -- --watch",
318
    "typecheck": "tsc --noEmit -p .",
319
    "pretest": "esbuild src/hub.ts --bundle --platform=node --format=esm --outfile=out/hub.mjs && esbuild src/provider.ts --bundle --platform=node --format=esm --outfile=out/provider.mjs",
320
    "test": "node --test \"test/**/*.test.mjs\"",
321
    "check": "npm run typecheck && npm run build && npm test",
322
    "package": "vsce package --no-dependencies"
323
  },
324
  "devDependencies": {
325
    "@types/node": "^24.0.0",
326
    "@types/vscode": "^1.137.0",
327
    "@vscode/vsce": "^4.0.0",
328
    "esbuild": "^0.28.0",
329
    "typescript": "^5.9.0"
330
  }
331
}