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