@coda-console/plugin-check 0.8.23 → 0.8.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -3
- package/bin/check.mjs +18 -2
- package/check/coda/adapters/plugin-command.mjs +5 -4
- package/check/coda/adapters/plugin-events.mjs +2 -0
- package/check/coda/adapters/plugin-modules.mjs +18 -8
- package/check/coda/adapters/plugin-test-host.d.mts +81 -3
- package/check/coda/adapters/plugin-test-host.mjs +19 -12
- package/check/coda/api-surface.txt +335 -0
- package/check/coda/builtin.json +178 -30
- package/check/coda/components/plugins/plugin-extensions.mjs +12 -4
- package/check/coda/components/plugins/plugin-rules.mjs +41 -4
- package/check/coda/components/plugins/plugin-source-rules.mjs +6 -2
- package/check/coda/contract.json +13 -11
- package/check/index.mjs +6 -2
- package/check/init.mjs +33 -0
- package/check/level.mjs +70 -0
- package/check/manifest.mjs +5 -2
- package/check/module.mjs +133 -0
- package/check/report.mjs +2 -2
- package/package.json +8 -3
- package/templates/agent/agent/entry.mjs +128 -0
- package/templates/agent/icons/README.md +14 -0
- package/templates/agent/icons/echo.pdf +0 -0
- package/templates/agent/icons/echo.svg +8 -0
- package/templates/agent/package.json +20 -0
- package/templates/module/main.mjs +37 -0
- package/templates/module/package-lock.json +306 -0
- package/templates/module/package.json +80 -0
- package/templates/module/test/main.test.mjs +65 -0
- package/templates/resource/package.json +22 -0
- package/templates/resource/scripts/mark.mjs +6 -0
- package/templates/resource/scripts/resources.mjs +35 -0
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
# Coda 对插件开放的面与 API Level:集合,任何变化都算动了骨架。由 node scripts/skeleton.mjs update 生成,规则见脚本开头。
|
|
2
|
+
1 bridge window.coda.args
|
|
3
|
+
1 bridge window.coda.back
|
|
4
|
+
1 bridge window.coda.call
|
|
5
|
+
1 bridge window.coda.choose
|
|
6
|
+
1 bridge window.coda.close
|
|
7
|
+
1 bridge window.coda.copy
|
|
8
|
+
1 bridge window.coda.deliver
|
|
9
|
+
1 bridge window.coda.describe
|
|
10
|
+
1 bridge window.coda.float
|
|
11
|
+
1 bridge window.coda.get
|
|
12
|
+
1 bridge window.coda.getState
|
|
13
|
+
1 bridge window.coda.header
|
|
14
|
+
1 bridge window.coda.inline
|
|
15
|
+
1 bridge window.coda.items
|
|
16
|
+
1 bridge window.coda.keyboard
|
|
17
|
+
1 bridge window.coda.layout
|
|
18
|
+
1 bridge window.coda.lib
|
|
19
|
+
1 bridge window.coda.list
|
|
20
|
+
1 bridge window.coda.machine
|
|
21
|
+
1 bridge window.coda.machines
|
|
22
|
+
1 bridge window.coda.on
|
|
23
|
+
1 bridge window.coda.open
|
|
24
|
+
1 bridge window.coda.place
|
|
25
|
+
1 bridge window.coda.platform
|
|
26
|
+
1 bridge window.coda.plugin
|
|
27
|
+
1 bridge window.coda.postMessage
|
|
28
|
+
1 bridge window.coda.query
|
|
29
|
+
1 bridge window.coda.relay
|
|
30
|
+
1 bridge window.coda.screens
|
|
31
|
+
1 bridge window.coda.scroll
|
|
32
|
+
1 bridge window.coda.scrollTo
|
|
33
|
+
1 bridge window.coda.self
|
|
34
|
+
1 bridge window.coda.session
|
|
35
|
+
1 bridge window.coda.setState
|
|
36
|
+
1 bridge window.coda.toolbar
|
|
37
|
+
1 bridge window.coda.view
|
|
38
|
+
1 bridge window.coda.warm
|
|
39
|
+
1 bridge window.coda.watch
|
|
40
|
+
1 coda/agent@1
|
|
41
|
+
1 coda/agent@1 read
|
|
42
|
+
1 coda/agent@1 read records
|
|
43
|
+
1 coda/agent@1 spawn
|
|
44
|
+
1 coda/agent@1 spawn operation spawn
|
|
45
|
+
1 coda/card@1
|
|
46
|
+
1 coda/composer@1
|
|
47
|
+
1 coda/composer@1 read
|
|
48
|
+
1 coda/composer@1 read records
|
|
49
|
+
1 coda/environment@1
|
|
50
|
+
1 coda/environment@1 read
|
|
51
|
+
1 coda/environment@1 read operation list
|
|
52
|
+
1 coda/environment@1 read operation read
|
|
53
|
+
1 coda/environment@1 read records
|
|
54
|
+
1 coda/group@1
|
|
55
|
+
1 coda/group@1 read
|
|
56
|
+
1 coda/group@1 read records
|
|
57
|
+
1 coda/plugin@1
|
|
58
|
+
1 coda/plugin@1 read
|
|
59
|
+
1 coda/plugin@1 read records
|
|
60
|
+
1 coda/project@1
|
|
61
|
+
1 coda/project@1 read
|
|
62
|
+
1 coda/project@1 read operation branches
|
|
63
|
+
1 coda/project@1 read records
|
|
64
|
+
1 coda/run@1
|
|
65
|
+
1 coda/run@1 cancel
|
|
66
|
+
1 coda/run@1 cancel operation cancel
|
|
67
|
+
1 coda/run@1 read
|
|
68
|
+
1 coda/run@1 read records
|
|
69
|
+
1 coda/session@1
|
|
70
|
+
1 coda/session@1 post
|
|
71
|
+
1 coda/session@1 post operation post
|
|
72
|
+
1 coda/session@1 read
|
|
73
|
+
1 coda/session@1 read operation read
|
|
74
|
+
1 coda/session@1 read records
|
|
75
|
+
1 coda/submission@1
|
|
76
|
+
1 coda/thread@1
|
|
77
|
+
1 coda/thread@1 append-draft
|
|
78
|
+
1 coda/thread@1 append-draft operation append-draft
|
|
79
|
+
1 coda/thread@1 changes
|
|
80
|
+
1 coda/thread@1 changes operation changes
|
|
81
|
+
1 coda/thread@1 changes stream diff
|
|
82
|
+
1 coda/thread@1 read
|
|
83
|
+
1 coda/thread@1 read records
|
|
84
|
+
1 coda/thread@1 workflows
|
|
85
|
+
1 coda/thread@1 workflows operation workflows
|
|
86
|
+
1 coda/thread@1 workspace
|
|
87
|
+
1 coda/thread@1 workspace operation workspace
|
|
88
|
+
1 coda/workflow-run@1
|
|
89
|
+
1 coda/workflow-run@1 control
|
|
90
|
+
1 coda/workflow-run@1 control operation cancel
|
|
91
|
+
1 coda/workflow-run@1 control operation message
|
|
92
|
+
1 coda/workflow-run@1 control operation renew
|
|
93
|
+
1 coda/workflow-run@1 control operation resume
|
|
94
|
+
1 coda/workflow-run@1 read
|
|
95
|
+
1 coda/workflow-run@1 read operation graph
|
|
96
|
+
1 coda/workflow-run@1 read operation history
|
|
97
|
+
1 coda/workflow-run@1 read operation private
|
|
98
|
+
1 coda/workflow-run@1 read operation recent
|
|
99
|
+
1 coda/workflow-run@1 read operation requirement
|
|
100
|
+
1 coda/workflow-run@1 read records
|
|
101
|
+
1 coda/workflow-run@1 read stream log
|
|
102
|
+
1 coda/workflow-run@1 task
|
|
103
|
+
1 coda/workflow-run@1 task operation task
|
|
104
|
+
1 coda/workflow@1
|
|
105
|
+
1 coda/workflow@1 configure
|
|
106
|
+
1 coda/workflow@1 configure operation save-settings
|
|
107
|
+
1 coda/workflow@1 read
|
|
108
|
+
1 coda/workflow@1 read operation settings
|
|
109
|
+
1 coda/workflow@1 read records
|
|
110
|
+
1 coda/workflow@1 run
|
|
111
|
+
1 coda/workflow@1 run operation run
|
|
112
|
+
1 manifest activationEvents
|
|
113
|
+
1 manifest categories
|
|
114
|
+
1 manifest coda
|
|
115
|
+
1 manifest coda.channels
|
|
116
|
+
1 manifest contributes
|
|
117
|
+
1 manifest contributes.agents
|
|
118
|
+
1 manifest contributes.capabilities
|
|
119
|
+
1 manifest contributes.commands
|
|
120
|
+
1 manifest contributes.composerModes
|
|
121
|
+
1 manifest contributes.configuration
|
|
122
|
+
1 manifest contributes.environment
|
|
123
|
+
1 manifest contributes.extensionPoints
|
|
124
|
+
1 manifest contributes.extensions
|
|
125
|
+
1 manifest contributes.gitCredentials
|
|
126
|
+
1 manifest contributes.instructions
|
|
127
|
+
1 manifest contributes.mcpServers
|
|
128
|
+
1 manifest contributes.modelProviders
|
|
129
|
+
1 manifest contributes.path
|
|
130
|
+
1 manifest contributes.processes
|
|
131
|
+
1 manifest contributes.protocolImplementations
|
|
132
|
+
1 manifest contributes.protocols
|
|
133
|
+
1 manifest contributes.repositories
|
|
134
|
+
1 manifest contributes.services
|
|
135
|
+
1 manifest contributes.setup
|
|
136
|
+
1 manifest contributes.skills
|
|
137
|
+
1 manifest contributes.views
|
|
138
|
+
1 manifest description
|
|
139
|
+
1 manifest displayName
|
|
140
|
+
1 manifest engines
|
|
141
|
+
1 manifest engines.coda
|
|
142
|
+
1 manifest extensionDependencies
|
|
143
|
+
1 manifest icon
|
|
144
|
+
1 manifest id
|
|
145
|
+
1 manifest main
|
|
146
|
+
1 manifest name
|
|
147
|
+
1 manifest uses
|
|
148
|
+
1 manifest version
|
|
149
|
+
1 stable manifest categories
|
|
150
|
+
1 stable manifest contributes.agents[].command
|
|
151
|
+
1 stable manifest contributes.agents[].configFiles[]
|
|
152
|
+
1 stable manifest contributes.agents[].displayName
|
|
153
|
+
1 stable manifest contributes.agents[].icon.dark
|
|
154
|
+
1 stable manifest contributes.agents[].icon.light
|
|
155
|
+
1 stable manifest contributes.agents[].icon.template
|
|
156
|
+
1 stable manifest contributes.agents[].id
|
|
157
|
+
1 stable manifest contributes.agents[].modes.auto
|
|
158
|
+
1 stable manifest contributes.agents[].modes.full
|
|
159
|
+
1 stable manifest contributes.agents[].modes.note
|
|
160
|
+
1 stable manifest contributes.agents[].modes.title
|
|
161
|
+
1 stable manifest contributes.agents[].modes.unset
|
|
162
|
+
1 stable manifest contributes.agents[].setupHint
|
|
163
|
+
1 stable manifest contributes.agents[].skillsDir
|
|
164
|
+
1 stable manifest contributes.commands[].command
|
|
165
|
+
1 stable manifest contributes.commands[].name
|
|
166
|
+
1 stable manifest contributes.configuration.properties.*
|
|
167
|
+
1 stable manifest contributes.configuration.properties.*.additionalProperties.properties.*
|
|
168
|
+
1 stable manifest contributes.configuration.properties.*.additionalProperties.properties.*.default
|
|
169
|
+
1 stable manifest contributes.configuration.properties.*.additionalProperties.properties.*.description
|
|
170
|
+
1 stable manifest contributes.configuration.properties.*.additionalProperties.properties.*.enum
|
|
171
|
+
1 stable manifest contributes.configuration.properties.*.additionalProperties.properties.*.format
|
|
172
|
+
1 stable manifest contributes.configuration.properties.*.additionalProperties.properties.*.format values coda-model-provider
|
|
173
|
+
1 stable manifest contributes.configuration.properties.*.additionalProperties.properties.*.format values coda-model-url
|
|
174
|
+
1 stable manifest contributes.configuration.properties.*.additionalProperties.properties.*.minimum
|
|
175
|
+
1 stable manifest contributes.configuration.properties.*.additionalProperties.properties.*.modelApi
|
|
176
|
+
1 stable manifest contributes.configuration.properties.*.additionalProperties.properties.*.modelKey
|
|
177
|
+
1 stable manifest contributes.configuration.properties.*.additionalProperties.properties.*.order
|
|
178
|
+
1 stable manifest contributes.configuration.properties.*.additionalProperties.properties.*.title
|
|
179
|
+
1 stable manifest contributes.configuration.properties.*.additionalProperties.properties.*.type
|
|
180
|
+
1 stable manifest contributes.configuration.properties.*.additionalProperties.properties.*.writeOnly
|
|
181
|
+
1 stable manifest contributes.configuration.properties.*.additionalProperties.type
|
|
182
|
+
1 stable manifest contributes.configuration.properties.*.default
|
|
183
|
+
1 stable manifest contributes.configuration.properties.*.description
|
|
184
|
+
1 stable manifest contributes.configuration.properties.*.order
|
|
185
|
+
1 stable manifest contributes.configuration.properties.*.title
|
|
186
|
+
1 stable manifest contributes.configuration.properties.*.type
|
|
187
|
+
1 stable manifest contributes.configuration.title
|
|
188
|
+
1 stable manifest contributes.environment.*
|
|
189
|
+
1 stable manifest contributes.setup.command
|
|
190
|
+
1 stable manifest contributes.skills[]
|
|
191
|
+
1 stable manifest contributes.views[].entry
|
|
192
|
+
1 stable manifest contributes.views[].icon
|
|
193
|
+
1 stable manifest contributes.views[].id
|
|
194
|
+
1 stable manifest contributes.views[].in[]
|
|
195
|
+
1 stable manifest contributes.views[].in[] values side
|
|
196
|
+
1 stable manifest contributes.views[].title
|
|
197
|
+
1 stable manifest description
|
|
198
|
+
1 stable manifest displayName
|
|
199
|
+
1 stable manifest engines.coda
|
|
200
|
+
1 stable manifest icon.color
|
|
201
|
+
1 stable manifest icon.symbol
|
|
202
|
+
1 stable manifest id
|
|
203
|
+
1 stable manifest main
|
|
204
|
+
1 stable manifest name
|
|
205
|
+
1 stable manifest uses.*[]
|
|
206
|
+
1 stable manifest version
|
|
207
|
+
1 stable view root.classes
|
|
208
|
+
1 stable view root.classes values coda-dark
|
|
209
|
+
1 stable view root.classes values coda-ios
|
|
210
|
+
1 stable view root.classes values coda-light
|
|
211
|
+
1 stable view root.classes values coda-mac
|
|
212
|
+
1 stable view root.cssVariables
|
|
213
|
+
1 stable view root.cssVariables values --coda-accent
|
|
214
|
+
1 stable view root.cssVariables values --coda-background
|
|
215
|
+
1 stable view root.cssVariables values --coda-card
|
|
216
|
+
1 stable view root.cssVariables values --coda-fill
|
|
217
|
+
1 stable view root.cssVariables values --coda-font
|
|
218
|
+
1 stable view root.cssVariables values --coda-font-size
|
|
219
|
+
1 stable view root.cssVariables values --coda-foreground
|
|
220
|
+
1 stable view root.cssVariables values --coda-hover
|
|
221
|
+
1 stable view root.cssVariables values --coda-mono
|
|
222
|
+
1 stable view root.cssVariables values --coda-orange
|
|
223
|
+
1 stable view root.cssVariables values --coda-outline
|
|
224
|
+
1 stable view root.cssVariables values --coda-radius
|
|
225
|
+
1 stable view root.cssVariables values --coda-radius-card
|
|
226
|
+
1 stable view root.cssVariables values --coda-secondary
|
|
227
|
+
1 stable view root.cssVariables values --coda-secondary-background
|
|
228
|
+
1 stable view root.cssVariables values --coda-selection
|
|
229
|
+
1 stable view root.cssVariables values --coda-separator
|
|
230
|
+
1 stable view root.cssVariables values --coda-tertiary
|
|
231
|
+
1 stable view window
|
|
232
|
+
1 stable view window events message
|
|
233
|
+
1 stable view window.coda.args
|
|
234
|
+
1 stable view window.coda.back
|
|
235
|
+
1 stable view window.coda.close
|
|
236
|
+
1 stable view window.coda.copy
|
|
237
|
+
1 stable view window.coda.getState
|
|
238
|
+
1 stable view window.coda.on
|
|
239
|
+
1 stable view window.coda.on events back
|
|
240
|
+
1 stable view window.coda.on events context
|
|
241
|
+
1 stable view window.coda.on events theme
|
|
242
|
+
1 stable view window.coda.on events toolbar
|
|
243
|
+
1 stable view window.coda.on events visibility
|
|
244
|
+
1 stable view window.coda.open
|
|
245
|
+
1 stable view window.coda.open targets args
|
|
246
|
+
1 stable view window.coda.open targets view
|
|
247
|
+
1 stable view window.coda.platform
|
|
248
|
+
1 stable view window.coda.postMessage
|
|
249
|
+
1 stable view window.coda.setState
|
|
250
|
+
1 stable view window.coda.toolbar
|
|
251
|
+
1 stable view window.coda.toolbar fields icon
|
|
252
|
+
1 stable view window.coda.toolbar fields id
|
|
253
|
+
1 stable view window.coda.toolbar fields kind
|
|
254
|
+
1 stable view window.coda.toolbar fields label
|
|
255
|
+
1 stable view window.coda.toolbar fields on
|
|
256
|
+
1 stable view window.coda.toolbar kinds button
|
|
257
|
+
1 stable view window.coda.toolbar kinds toggle
|
|
258
|
+
2 bridge window.coda.refresh
|
|
259
|
+
2 manifest contributes.records
|
|
260
|
+
2 manifest contributes.self
|
|
261
|
+
3 definition description
|
|
262
|
+
3 definition events
|
|
263
|
+
3 definition events.description
|
|
264
|
+
3 definition events.ends
|
|
265
|
+
3 definition events.payload
|
|
266
|
+
3 definition events.starts
|
|
267
|
+
3 definition name
|
|
268
|
+
3 definition operations
|
|
269
|
+
3 definition operations.description
|
|
270
|
+
3 definition operations.idempotent
|
|
271
|
+
3 definition operations.input
|
|
272
|
+
3 definition operations.result
|
|
273
|
+
3 definition operations.run
|
|
274
|
+
3 definition operations.safe
|
|
275
|
+
3 definition operations.timeout
|
|
276
|
+
3 definition permissions
|
|
277
|
+
3 definition permissions.events
|
|
278
|
+
3 definition permissions.operations
|
|
279
|
+
3 definition permissions.read
|
|
280
|
+
3 definition permissions.streams
|
|
281
|
+
3 definition permissions.title
|
|
282
|
+
3 definition permissions.trial
|
|
283
|
+
3 definition plural
|
|
284
|
+
3 definition spec
|
|
285
|
+
3 definition status
|
|
286
|
+
3 definition streams
|
|
287
|
+
3 definition streams.description
|
|
288
|
+
3 definition streams.input
|
|
289
|
+
3 definition title
|
|
290
|
+
3 module coda.api
|
|
291
|
+
3 module coda.call
|
|
292
|
+
3 module coda.delete
|
|
293
|
+
3 module coda.emit
|
|
294
|
+
3 module coda.environment
|
|
295
|
+
3 module coda.error
|
|
296
|
+
3 module coda.get
|
|
297
|
+
3 module coda.handle
|
|
298
|
+
3 module coda.list
|
|
299
|
+
3 module coda.on
|
|
300
|
+
3 module coda.plugin
|
|
301
|
+
3 module coda.plugin.id
|
|
302
|
+
3 module coda.plugin.path
|
|
303
|
+
3 module coda.plugin.state
|
|
304
|
+
3 module coda.pluginSetup
|
|
305
|
+
3 module coda.pluginSetup.retry
|
|
306
|
+
3 module coda.protocols
|
|
307
|
+
3 module coda.protocols.register
|
|
308
|
+
3 module coda.protocols.resolve
|
|
309
|
+
3 module coda.protocols.upload
|
|
310
|
+
3 module coda.put
|
|
311
|
+
3 module coda.query
|
|
312
|
+
3 module coda.replace
|
|
313
|
+
3 module coda.self
|
|
314
|
+
3 module coda.self.handle
|
|
315
|
+
3 module coda.services
|
|
316
|
+
3 module coda.services.register
|
|
317
|
+
3 module coda.settings
|
|
318
|
+
3 module coda.settings.get
|
|
319
|
+
3 module coda.settings.onChange
|
|
320
|
+
3 module coda.spawn
|
|
321
|
+
3 module coda.tell
|
|
322
|
+
3 module coda.views
|
|
323
|
+
3 module coda.views.register
|
|
324
|
+
3 module coda.watch
|
|
325
|
+
3 module ctx.ask
|
|
326
|
+
3 module ctx.call
|
|
327
|
+
3 module ctx.caller
|
|
328
|
+
3 module ctx.deadline
|
|
329
|
+
3 module ctx.id
|
|
330
|
+
3 module ctx.progress
|
|
331
|
+
3 module ctx.query
|
|
332
|
+
3 module ctx.record
|
|
333
|
+
3 module ctx.signal
|
|
334
|
+
3 module ctx.spawn
|
|
335
|
+
level 3
|
package/check/coda/builtin.json
CHANGED
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
"approve-command"
|
|
26
26
|
],
|
|
27
27
|
"gitCredentials": [],
|
|
28
|
-
"endpoints": [],
|
|
29
28
|
"views": [],
|
|
30
29
|
"dependencies": [],
|
|
31
30
|
"extensionPoints": {},
|
|
@@ -57,7 +56,6 @@
|
|
|
57
56
|
"ask-user"
|
|
58
57
|
],
|
|
59
58
|
"gitCredentials": [],
|
|
60
|
-
"endpoints": [],
|
|
61
59
|
"views": [],
|
|
62
60
|
"dependencies": [],
|
|
63
61
|
"extensionPoints": {},
|
|
@@ -89,7 +87,6 @@
|
|
|
89
87
|
"change-setting"
|
|
90
88
|
],
|
|
91
89
|
"gitCredentials": [],
|
|
92
|
-
"endpoints": [],
|
|
93
90
|
"views": [],
|
|
94
91
|
"dependencies": [],
|
|
95
92
|
"extensionPoints": {},
|
|
@@ -124,7 +121,6 @@
|
|
|
124
121
|
"commands": [],
|
|
125
122
|
"capabilities": [],
|
|
126
123
|
"gitCredentials": [],
|
|
127
|
-
"endpoints": [],
|
|
128
124
|
"views": [
|
|
129
125
|
{
|
|
130
126
|
"id": "changes",
|
|
@@ -191,7 +187,6 @@
|
|
|
191
187
|
}
|
|
192
188
|
],
|
|
193
189
|
"gitCredentials": [],
|
|
194
|
-
"endpoints": [],
|
|
195
190
|
"views": [],
|
|
196
191
|
"offers": {
|
|
197
192
|
"resources": [
|
|
@@ -242,7 +237,6 @@
|
|
|
242
237
|
],
|
|
243
238
|
"capabilities": [],
|
|
244
239
|
"gitCredentials": [],
|
|
245
|
-
"endpoints": [],
|
|
246
240
|
"views": [],
|
|
247
241
|
"dependencies": [
|
|
248
242
|
"space"
|
|
@@ -254,7 +248,7 @@
|
|
|
254
248
|
"id": "github",
|
|
255
249
|
"displayName": "GitHub",
|
|
256
250
|
"description": "登录账号,推送时自动选对账号",
|
|
257
|
-
"version": "1.
|
|
251
|
+
"version": "1.13.0",
|
|
258
252
|
"category": "模型与账号",
|
|
259
253
|
"icon": {
|
|
260
254
|
"symbol": "arrow.triangle.pull",
|
|
@@ -304,12 +298,6 @@
|
|
|
304
298
|
"repositories": {
|
|
305
299
|
"command": "exec \"$CODA_NODE\" \"$CODA_PLUGIN_PATH/scripts/repositories.mjs\""
|
|
306
300
|
},
|
|
307
|
-
"endpoints": [
|
|
308
|
-
{
|
|
309
|
-
"id": "accounts",
|
|
310
|
-
"command": "exec node \"$CODA_PLUGIN_PATH/scripts/endpoint.mjs\""
|
|
311
|
-
}
|
|
312
|
-
],
|
|
313
301
|
"views": [
|
|
314
302
|
{
|
|
315
303
|
"id": "accounts",
|
|
@@ -1281,6 +1269,183 @@
|
|
|
1281
1269
|
]
|
|
1282
1270
|
}
|
|
1283
1271
|
}
|
|
1272
|
+
},
|
|
1273
|
+
{
|
|
1274
|
+
"name": "github/account@1",
|
|
1275
|
+
"title": "GitHub 账号",
|
|
1276
|
+
"description": "这台机器上登录的 GitHub 账号,按试用顺序,带登录状态与提交署名",
|
|
1277
|
+
"spec": {
|
|
1278
|
+
"type": "object",
|
|
1279
|
+
"required": [
|
|
1280
|
+
"login",
|
|
1281
|
+
"order"
|
|
1282
|
+
],
|
|
1283
|
+
"properties": {
|
|
1284
|
+
"login": {
|
|
1285
|
+
"type": "string"
|
|
1286
|
+
},
|
|
1287
|
+
"order": {
|
|
1288
|
+
"type": "integer",
|
|
1289
|
+
"minimum": 0
|
|
1290
|
+
}
|
|
1291
|
+
},
|
|
1292
|
+
"additionalProperties": false
|
|
1293
|
+
},
|
|
1294
|
+
"status": {
|
|
1295
|
+
"type": "object",
|
|
1296
|
+
"required": [
|
|
1297
|
+
"state",
|
|
1298
|
+
"signature",
|
|
1299
|
+
"unreadable"
|
|
1300
|
+
],
|
|
1301
|
+
"properties": {
|
|
1302
|
+
"state": {
|
|
1303
|
+
"enum": [
|
|
1304
|
+
"ok",
|
|
1305
|
+
"invalid",
|
|
1306
|
+
"absent",
|
|
1307
|
+
"unknown"
|
|
1308
|
+
]
|
|
1309
|
+
},
|
|
1310
|
+
"signature": {
|
|
1311
|
+
"type": [
|
|
1312
|
+
"object",
|
|
1313
|
+
"null"
|
|
1314
|
+
],
|
|
1315
|
+
"required": [
|
|
1316
|
+
"name",
|
|
1317
|
+
"email"
|
|
1318
|
+
],
|
|
1319
|
+
"properties": {
|
|
1320
|
+
"name": {
|
|
1321
|
+
"type": "string"
|
|
1322
|
+
},
|
|
1323
|
+
"email": {
|
|
1324
|
+
"type": "string"
|
|
1325
|
+
}
|
|
1326
|
+
},
|
|
1327
|
+
"additionalProperties": false
|
|
1328
|
+
},
|
|
1329
|
+
"unreadable": {
|
|
1330
|
+
"type": "boolean"
|
|
1331
|
+
}
|
|
1332
|
+
},
|
|
1333
|
+
"additionalProperties": false
|
|
1334
|
+
},
|
|
1335
|
+
"operations": {
|
|
1336
|
+
"move": {
|
|
1337
|
+
"description": "在试用顺序里上移(-1)或下移(1)一位",
|
|
1338
|
+
"input": {
|
|
1339
|
+
"type": "object",
|
|
1340
|
+
"required": [
|
|
1341
|
+
"by"
|
|
1342
|
+
],
|
|
1343
|
+
"properties": {
|
|
1344
|
+
"by": {
|
|
1345
|
+
"enum": [
|
|
1346
|
+
-1,
|
|
1347
|
+
1
|
|
1348
|
+
]
|
|
1349
|
+
}
|
|
1350
|
+
},
|
|
1351
|
+
"additionalProperties": false
|
|
1352
|
+
},
|
|
1353
|
+
"result": {
|
|
1354
|
+
"type": "object",
|
|
1355
|
+
"additionalProperties": false
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
},
|
|
1360
|
+
{
|
|
1361
|
+
"name": "github/owner@1",
|
|
1362
|
+
"title": "GitHub owner",
|
|
1363
|
+
"description": "记下的 owner 与它的仓库用来推送和署名的账号",
|
|
1364
|
+
"spec": {
|
|
1365
|
+
"type": "object",
|
|
1366
|
+
"required": [
|
|
1367
|
+
"owner",
|
|
1368
|
+
"login",
|
|
1369
|
+
"manual"
|
|
1370
|
+
],
|
|
1371
|
+
"properties": {
|
|
1372
|
+
"owner": {
|
|
1373
|
+
"type": "string"
|
|
1374
|
+
},
|
|
1375
|
+
"login": {
|
|
1376
|
+
"type": "string"
|
|
1377
|
+
},
|
|
1378
|
+
"manual": {
|
|
1379
|
+
"type": "boolean"
|
|
1380
|
+
}
|
|
1381
|
+
},
|
|
1382
|
+
"additionalProperties": false
|
|
1383
|
+
},
|
|
1384
|
+
"status": {
|
|
1385
|
+
"type": "object",
|
|
1386
|
+
"additionalProperties": false
|
|
1387
|
+
},
|
|
1388
|
+
"operations": {
|
|
1389
|
+
"assign": {
|
|
1390
|
+
"description": "改用另一个已登录的账号",
|
|
1391
|
+
"input": {
|
|
1392
|
+
"type": "object",
|
|
1393
|
+
"required": [
|
|
1394
|
+
"login"
|
|
1395
|
+
],
|
|
1396
|
+
"properties": {
|
|
1397
|
+
"login": {
|
|
1398
|
+
"type": "string"
|
|
1399
|
+
}
|
|
1400
|
+
},
|
|
1401
|
+
"additionalProperties": false
|
|
1402
|
+
},
|
|
1403
|
+
"result": {
|
|
1404
|
+
"type": "object",
|
|
1405
|
+
"additionalProperties": false
|
|
1406
|
+
},
|
|
1407
|
+
"idempotent": true
|
|
1408
|
+
},
|
|
1409
|
+
"forget": {
|
|
1410
|
+
"description": "删掉记录,下次用到时重新试出",
|
|
1411
|
+
"input": {
|
|
1412
|
+
"type": "object",
|
|
1413
|
+
"additionalProperties": false
|
|
1414
|
+
},
|
|
1415
|
+
"result": {
|
|
1416
|
+
"type": "object",
|
|
1417
|
+
"additionalProperties": false
|
|
1418
|
+
},
|
|
1419
|
+
"idempotent": true
|
|
1420
|
+
}
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
],
|
|
1424
|
+
"protocolImplementations": [
|
|
1425
|
+
{
|
|
1426
|
+
"kind": "github/account@1",
|
|
1427
|
+
"commands": {
|
|
1428
|
+
"move": "scripts/ops/move.mjs"
|
|
1429
|
+
}
|
|
1430
|
+
},
|
|
1431
|
+
{
|
|
1432
|
+
"kind": "github/owner@1",
|
|
1433
|
+
"commands": {
|
|
1434
|
+
"assign": "scripts/ops/assign.mjs",
|
|
1435
|
+
"forget": "scripts/ops/forget.mjs"
|
|
1436
|
+
}
|
|
1437
|
+
}
|
|
1438
|
+
],
|
|
1439
|
+
"records": [
|
|
1440
|
+
{
|
|
1441
|
+
"kind": "github/account@1",
|
|
1442
|
+
"command": "scripts/records/accounts.mjs",
|
|
1443
|
+
"every": 300000
|
|
1444
|
+
},
|
|
1445
|
+
{
|
|
1446
|
+
"kind": "github/owner@1",
|
|
1447
|
+
"command": "scripts/records/owners.mjs",
|
|
1448
|
+
"every": 60000
|
|
1284
1449
|
}
|
|
1285
1450
|
],
|
|
1286
1451
|
"offers": {
|
|
@@ -1345,7 +1510,6 @@
|
|
|
1345
1510
|
"commands": [],
|
|
1346
1511
|
"capabilities": [],
|
|
1347
1512
|
"gitCredentials": [],
|
|
1348
|
-
"endpoints": [],
|
|
1349
1513
|
"views": [],
|
|
1350
1514
|
"dependencies": [],
|
|
1351
1515
|
"extensionPoints": {},
|
|
@@ -1417,7 +1581,6 @@
|
|
|
1417
1581
|
"commands": [],
|
|
1418
1582
|
"capabilities": [],
|
|
1419
1583
|
"gitCredentials": [],
|
|
1420
|
-
"endpoints": [],
|
|
1421
1584
|
"views": [],
|
|
1422
1585
|
"dependencies": [],
|
|
1423
1586
|
"extensionPoints": {},
|
|
@@ -1453,7 +1616,6 @@
|
|
|
1453
1616
|
"commands": [],
|
|
1454
1617
|
"capabilities": [],
|
|
1455
1618
|
"gitCredentials": [],
|
|
1456
|
-
"endpoints": [],
|
|
1457
1619
|
"views": [
|
|
1458
1620
|
{
|
|
1459
1621
|
"id": "panels",
|
|
@@ -1761,7 +1923,6 @@
|
|
|
1761
1923
|
"secret-request"
|
|
1762
1924
|
],
|
|
1763
1925
|
"gitCredentials": [],
|
|
1764
|
-
"endpoints": [],
|
|
1765
1926
|
"views": [],
|
|
1766
1927
|
"dependencies": [],
|
|
1767
1928
|
"extensionPoints": {},
|
|
@@ -1818,7 +1979,6 @@
|
|
|
1818
1979
|
"commands": [],
|
|
1819
1980
|
"capabilities": [],
|
|
1820
1981
|
"gitCredentials": [],
|
|
1821
|
-
"endpoints": [],
|
|
1822
1982
|
"views": [],
|
|
1823
1983
|
"dependencies": [],
|
|
1824
1984
|
"extensionPoints": {},
|
|
@@ -1865,7 +2025,6 @@
|
|
|
1865
2025
|
"commands": [],
|
|
1866
2026
|
"capabilities": [],
|
|
1867
2027
|
"gitCredentials": [],
|
|
1868
|
-
"endpoints": [],
|
|
1869
2028
|
"views": [],
|
|
1870
2029
|
"dependencies": [
|
|
1871
2030
|
"tailnet"
|
|
@@ -1903,7 +2062,6 @@
|
|
|
1903
2062
|
],
|
|
1904
2063
|
"capabilities": [],
|
|
1905
2064
|
"gitCredentials": [],
|
|
1906
|
-
"endpoints": [],
|
|
1907
2065
|
"views": [],
|
|
1908
2066
|
"dependencies": [],
|
|
1909
2067
|
"extensionPoints": {
|
|
@@ -1954,7 +2112,6 @@
|
|
|
1954
2112
|
"commands": [],
|
|
1955
2113
|
"capabilities": [],
|
|
1956
2114
|
"gitCredentials": [],
|
|
1957
|
-
"endpoints": [],
|
|
1958
2115
|
"views": [
|
|
1959
2116
|
{
|
|
1960
2117
|
"id": "session",
|
|
@@ -2064,7 +2221,6 @@
|
|
|
2064
2221
|
"commands": [],
|
|
2065
2222
|
"capabilities": [],
|
|
2066
2223
|
"gitCredentials": [],
|
|
2067
|
-
"endpoints": [],
|
|
2068
2224
|
"views": [],
|
|
2069
2225
|
"offers": {
|
|
2070
2226
|
"resources": [
|
|
@@ -2149,7 +2305,6 @@
|
|
|
2149
2305
|
"commands": [],
|
|
2150
2306
|
"capabilities": [],
|
|
2151
2307
|
"gitCredentials": [],
|
|
2152
|
-
"endpoints": [],
|
|
2153
2308
|
"views": [],
|
|
2154
2309
|
"offers": {
|
|
2155
2310
|
"resources": [
|
|
@@ -2209,7 +2364,6 @@
|
|
|
2209
2364
|
"commands": [],
|
|
2210
2365
|
"capabilities": [],
|
|
2211
2366
|
"gitCredentials": [],
|
|
2212
|
-
"endpoints": [],
|
|
2213
2367
|
"views": [],
|
|
2214
2368
|
"offers": {
|
|
2215
2369
|
"resources": [
|
|
@@ -2602,7 +2756,6 @@
|
|
|
2602
2756
|
}
|
|
2603
2757
|
}
|
|
2604
2758
|
],
|
|
2605
|
-
"endpoints": [],
|
|
2606
2759
|
"views": [],
|
|
2607
2760
|
"dependencies": [
|
|
2608
2761
|
"github"
|
|
@@ -2662,7 +2815,6 @@
|
|
|
2662
2815
|
"commands": [],
|
|
2663
2816
|
"capabilities": [],
|
|
2664
2817
|
"gitCredentials": [],
|
|
2665
|
-
"endpoints": [],
|
|
2666
2818
|
"views": [],
|
|
2667
2819
|
"offers": {
|
|
2668
2820
|
"resources": [
|
|
@@ -2740,7 +2892,6 @@
|
|
|
2740
2892
|
"commands": [],
|
|
2741
2893
|
"capabilities": [],
|
|
2742
2894
|
"gitCredentials": [],
|
|
2743
|
-
"endpoints": [],
|
|
2744
2895
|
"views": [],
|
|
2745
2896
|
"offers": {
|
|
2746
2897
|
"resources": [
|
|
@@ -2835,7 +2986,6 @@
|
|
|
2835
2986
|
"commands": [],
|
|
2836
2987
|
"capabilities": [],
|
|
2837
2988
|
"gitCredentials": [],
|
|
2838
|
-
"endpoints": [],
|
|
2839
2989
|
"views": [],
|
|
2840
2990
|
"dependencies": [],
|
|
2841
2991
|
"extensionPoints": {},
|
|
@@ -3000,7 +3150,6 @@
|
|
|
3000
3150
|
"review-commit"
|
|
3001
3151
|
],
|
|
3002
3152
|
"gitCredentials": [],
|
|
3003
|
-
"endpoints": [],
|
|
3004
3153
|
"views": [],
|
|
3005
3154
|
"dependencies": [
|
|
3006
3155
|
"github"
|
|
@@ -3035,7 +3184,6 @@
|
|
|
3035
3184
|
"commands": [],
|
|
3036
3185
|
"capabilities": [],
|
|
3037
3186
|
"gitCredentials": [],
|
|
3038
|
-
"endpoints": [],
|
|
3039
3187
|
"views": [],
|
|
3040
3188
|
"offers": {
|
|
3041
3189
|
"resources": [
|