@choiceopen/automation-plugin-cli 0.0.1 → 0.1.2

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.
@@ -1,41 +1,5 @@
1
1
  {
2
2
  "commands": {
3
- "auth": {
4
- "aliases": [],
5
- "args": {},
6
- "description": "Manages your plugin via subcommands",
7
- "examples": [
8
- {
9
- "command": "<%= config.bin %> help <%= command.id %> [COMMAND]",
10
- "description": "Check help for each individual sub-command"
11
- }
12
- ],
13
- "flags": {
14
- "json": {
15
- "description": "Format output as json.",
16
- "helpGroup": "GLOBAL",
17
- "name": "json",
18
- "allowNo": false,
19
- "type": "boolean"
20
- }
21
- },
22
- "hasDynamicHelp": false,
23
- "hidden": true,
24
- "hiddenAliases": [],
25
- "id": "auth",
26
- "pluginAlias": "@choiceopen/automation-plugin-cli",
27
- "pluginName": "@choiceopen/automation-plugin-cli",
28
- "pluginType": "core",
29
- "strict": true,
30
- "enableJsonFlag": true,
31
- "isESM": true,
32
- "relativePath": [
33
- "dist",
34
- "commands",
35
- "auth",
36
- "index.js"
37
- ]
38
- },
39
3
  "auth:login": {
40
4
  "aliases": [],
41
5
  "args": {},
@@ -63,50 +27,6 @@
63
27
  "login.js"
64
28
  ]
65
29
  },
66
- "plugin:checksum": {
67
- "aliases": [],
68
- "args": {
69
- "file": {
70
- "description": "file to read",
71
- "name": "file"
72
- }
73
- },
74
- "description": "describe the command here",
75
- "examples": [
76
- "<%= config.bin %> <%= command.id %>"
77
- ],
78
- "flags": {
79
- "force": {
80
- "char": "f",
81
- "name": "force",
82
- "allowNo": false,
83
- "type": "boolean"
84
- },
85
- "name": {
86
- "char": "n",
87
- "description": "name to print",
88
- "name": "name",
89
- "hasDynamicHelp": false,
90
- "multiple": false,
91
- "type": "option"
92
- }
93
- },
94
- "hasDynamicHelp": false,
95
- "hiddenAliases": [],
96
- "id": "plugin:checksum",
97
- "pluginAlias": "@choiceopen/automation-plugin-cli",
98
- "pluginName": "@choiceopen/automation-plugin-cli",
99
- "pluginType": "core",
100
- "strict": true,
101
- "enableJsonFlag": false,
102
- "isESM": true,
103
- "relativePath": [
104
- "dist",
105
- "commands",
106
- "plugin",
107
- "checksum.js"
108
- ]
109
- },
110
30
  "plugin": {
111
31
  "aliases": [],
112
32
  "args": {},
@@ -143,268 +63,17 @@
143
63
  "index.js"
144
64
  ]
145
65
  },
146
- "plugin:init": {
66
+ "plugin:refresh-key": {
147
67
  "aliases": [],
148
68
  "args": {},
149
- "description": "Initialize a new plugin with step-by-step interactive instructions.\n\nProviding required flags skips interactive flow and completes initialization in one go.",
150
- "examples": [
151
- {
152
- "command": "<%= config.bin %> <%= command.id %>",
153
- "description": "Start with interactive initialization:"
154
- }
155
- ],
156
- "flags": {
157
- "interactive": {
158
- "char": "i",
159
- "name": "interactive",
160
- "summary": "Use interactive mode (by default)",
161
- "allowNo": true,
162
- "type": "boolean"
163
- },
164
- "name": {
165
- "char": "n",
166
- "name": "name",
167
- "summary": "Plugin name",
168
- "hasDynamicHelp": false,
169
- "helpValue": "my-awesome-plugin",
170
- "multiple": false,
171
- "type": "option"
172
- },
173
- "description": {
174
- "char": "d",
175
- "name": "description",
176
- "summary": "Short description",
177
- "default": "",
178
- "hasDynamicHelp": false,
179
- "helpValue": "Descriptive text...",
180
- "multiple": false,
181
- "type": "option"
182
- },
183
- "author": {
184
- "char": "a",
185
- "name": "author",
186
- "summary": "Author name",
187
- "default": "",
188
- "hasDynamicHelp": false,
189
- "helpValue": "John Doe",
190
- "multiple": false,
191
- "type": "option"
192
- },
193
- "email": {
194
- "char": "e",
195
- "name": "email",
196
- "summary": "Author email address",
197
- "default": "",
198
- "hasDynamicHelp": false,
199
- "helpValue": "john.doe@example.com",
200
- "multiple": false,
201
- "type": "option"
202
- },
203
- "url": {
204
- "char": "u",
205
- "name": "url",
206
- "summary": "Repository URL",
207
- "default": "",
208
- "hasDynamicHelp": false,
209
- "multiple": false,
210
- "type": "option"
211
- },
212
- "locales": {
213
- "name": "locales",
214
- "summary": "Provide READMEs in which languages",
215
- "delimiter": ",",
216
- "hasDynamicHelp": false,
217
- "multiple": true,
218
- "options": [
219
- "en_US",
220
- "zh_Hans",
221
- "ja_JP"
222
- ],
223
- "type": "option"
224
- },
225
- "language": {
226
- "char": "l",
227
- "name": "language",
228
- "summary": "Programming language to use for plugin development",
229
- "hasDynamicHelp": false,
230
- "multiple": false,
231
- "options": [
232
- "elixir",
233
- "python",
234
- "typescript"
235
- ],
236
- "type": "option"
237
- },
238
- "type": {
239
- "char": "t",
240
- "name": "type",
241
- "summary": "Plugin type",
242
- "hasDynamicHelp": false,
243
- "multiple": false,
244
- "options": [
245
- "extension",
246
- "llm",
247
- "tool",
248
- "trigger"
249
- ],
250
- "type": "option"
251
- },
252
- "permissions": {
253
- "char": "p",
254
- "name": "permissions",
255
- "summary": "Permissions required by the plugin",
256
- "delimiter": ",",
257
- "hasDynamicHelp": false,
258
- "multiple": true,
259
- "options": [
260
- "endpoints:register",
261
- "model:call_llm",
262
- "model:call_embedding",
263
- "model:call_moderation",
264
- "model:call_rerank",
265
- "model:call_stt",
266
- "model:call_tts",
267
- "storage:kv",
268
- "tools:invoke"
269
- ],
270
- "type": "option"
271
- }
272
- },
273
- "hasDynamicHelp": false,
274
- "hiddenAliases": [],
275
- "id": "plugin:init",
276
- "pluginAlias": "@choiceopen/automation-plugin-cli",
277
- "pluginName": "@choiceopen/automation-plugin-cli",
278
- "pluginType": "core",
279
- "strict": true,
280
- "enableJsonFlag": false,
281
- "isESM": true,
282
- "relativePath": [
283
- "dist",
284
- "commands",
285
- "plugin",
286
- "init.js"
287
- ]
288
- },
289
- "plugin:pack": {
290
- "aliases": [],
291
- "args": {
292
- "file": {
293
- "description": "file to read",
294
- "name": "file"
295
- }
296
- },
297
- "description": "describe the command here",
298
- "examples": [
299
- "<%= config.bin %> <%= command.id %>"
300
- ],
301
- "flags": {
302
- "force": {
303
- "char": "f",
304
- "name": "force",
305
- "allowNo": false,
306
- "type": "boolean"
307
- },
308
- "name": {
309
- "char": "n",
310
- "description": "name to print",
311
- "name": "name",
312
- "hasDynamicHelp": false,
313
- "multiple": false,
314
- "type": "option"
315
- }
316
- },
317
- "hasDynamicHelp": false,
318
- "hiddenAliases": [],
319
- "id": "plugin:pack",
320
- "pluginAlias": "@choiceopen/automation-plugin-cli",
321
- "pluginName": "@choiceopen/automation-plugin-cli",
322
- "pluginType": "core",
323
- "strict": true,
324
- "enableJsonFlag": false,
325
- "isESM": true,
326
- "relativePath": [
327
- "dist",
328
- "commands",
329
- "plugin",
330
- "pack.js"
331
- ]
332
- },
333
- "plugin:permission": {
334
- "aliases": [],
335
- "args": {
336
- "file": {
337
- "description": "file to read",
338
- "name": "file"
339
- }
340
- },
341
- "description": "describe the command here",
69
+ "description": "Refresh or create API Key for plugin debugging in development stage.",
342
70
  "examples": [
343
71
  "<%= config.bin %> <%= command.id %>"
344
72
  ],
345
- "flags": {
346
- "force": {
347
- "char": "f",
348
- "name": "force",
349
- "allowNo": false,
350
- "type": "boolean"
351
- },
352
- "name": {
353
- "char": "n",
354
- "description": "name to print",
355
- "name": "name",
356
- "hasDynamicHelp": false,
357
- "multiple": false,
358
- "type": "option"
359
- }
360
- },
361
- "hasDynamicHelp": false,
362
- "hiddenAliases": [],
363
- "id": "plugin:permission",
364
- "pluginAlias": "@choiceopen/automation-plugin-cli",
365
- "pluginName": "@choiceopen/automation-plugin-cli",
366
- "pluginType": "core",
367
- "strict": true,
368
- "enableJsonFlag": false,
369
- "isESM": true,
370
- "relativePath": [
371
- "dist",
372
- "commands",
373
- "plugin",
374
- "permission.js"
375
- ]
376
- },
377
- "plugin:run": {
378
- "aliases": [],
379
- "args": {
380
- "file": {
381
- "description": "file to read",
382
- "name": "file"
383
- }
384
- },
385
- "description": "describe the command here",
386
- "examples": [
387
- "<%= config.bin %> <%= command.id %>"
388
- ],
389
- "flags": {
390
- "force": {
391
- "char": "f",
392
- "name": "force",
393
- "allowNo": false,
394
- "type": "boolean"
395
- },
396
- "name": {
397
- "char": "n",
398
- "description": "name to print",
399
- "name": "name",
400
- "hasDynamicHelp": false,
401
- "multiple": false,
402
- "type": "option"
403
- }
404
- },
73
+ "flags": {},
405
74
  "hasDynamicHelp": false,
406
75
  "hiddenAliases": [],
407
- "id": "plugin:run",
76
+ "id": "plugin:refresh-key",
408
77
  "pluginAlias": "@choiceopen/automation-plugin-cli",
409
78
  "pluginName": "@choiceopen/automation-plugin-cli",
410
79
  "pluginType": "core",
@@ -415,9 +84,9 @@
415
84
  "dist",
416
85
  "commands",
417
86
  "plugin",
418
- "run.js"
87
+ "refresh-key.js"
419
88
  ]
420
89
  }
421
90
  },
422
- "version": "0.0.1"
91
+ "version": "0.1.2"
423
92
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@choiceopen/automation-plugin-cli",
3
- "version": "0.0.1",
3
+ "version": "0.1.2",
4
4
  "description": "A command-line utility for building and publishing Choiceform Automation Plugin.",
5
5
  "keywords": [
6
6
  "oclif"
@@ -1,11 +0,0 @@
1
- import { Command } from "@oclif/core";
2
- export default class Auth extends Command {
3
- static description: string;
4
- static enableJsonFlag: boolean;
5
- static examples: {
6
- command: string;
7
- description: string;
8
- }[];
9
- static hidden: boolean;
10
- run(): Promise<void>;
11
- }
@@ -1,15 +0,0 @@
1
- import { Command } from "@oclif/core";
2
- export default class Auth extends Command {
3
- static description = "Manages your plugin via subcommands";
4
- static enableJsonFlag = true;
5
- static examples = [
6
- {
7
- command: "<%= config.bin %> help <%= command.id %> [COMMAND]",
8
- description: "Check help for each individual sub-command",
9
- },
10
- ];
11
- static hidden = true;
12
- async run() {
13
- await this.config.runCommand("help", ["auth"]);
14
- }
15
- }
@@ -1,15 +0,0 @@
1
- import { Command } from "@oclif/core";
2
- export default class AuthLogin extends Command {
3
- static description: string;
4
- static examples: {
5
- command: string;
6
- description: string;
7
- }[];
8
- static flags: {};
9
- private pollingInterval;
10
- private client_id;
11
- private grant_type;
12
- run(): Promise<void>;
13
- private requestDeviceCode;
14
- private pollForToken;
15
- }
@@ -1,13 +0,0 @@
1
- import { Command } from "@oclif/core";
2
- export default class PluginChecksum extends Command {
3
- static args: {
4
- file: import("@oclif/core/interfaces").Arg<string | undefined, Record<string, unknown>>;
5
- };
6
- static description: string;
7
- static examples: string[];
8
- static flags: {
9
- force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
10
- name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
- };
12
- run(): Promise<void>;
13
- }
@@ -1,22 +0,0 @@
1
- import { Args, Command, Flags } from "@oclif/core";
2
- export default class PluginChecksum extends Command {
3
- static args = {
4
- file: Args.string({ description: "file to read" }),
5
- };
6
- static description = "describe the command here";
7
- static examples = ["<%= config.bin %> <%= command.id %>"];
8
- static flags = {
9
- // flag with no value (-f, --force)
10
- force: Flags.boolean({ char: "f" }),
11
- // flag with a value (-n, --name=VALUE)
12
- name: Flags.string({ char: "n", description: "name to print" }),
13
- };
14
- async run() {
15
- const { args, flags } = await this.parse(PluginChecksum);
16
- const name = flags.name ?? "world";
17
- this.log(`hello ${name} from /Users/nightire/Code/github.com/choice-open/automation-plugin-cli/src/commands/plugin/checksum.ts`);
18
- if (args.file && flags.force) {
19
- this.log(`you input --force and --file: ${args.file}`);
20
- }
21
- }
22
- }
@@ -1,11 +0,0 @@
1
- import { Command } from "@oclif/core";
2
- export default class Plugin extends Command {
3
- static description: string;
4
- static enableJsonFlag: boolean;
5
- static examples: {
6
- command: string;
7
- description: string;
8
- }[];
9
- static hidden: boolean;
10
- run(): Promise<void>;
11
- }
@@ -1,33 +0,0 @@
1
- import { Command } from "@oclif/core";
2
- export default class PluginInit extends Command {
3
- static description: string;
4
- static examples: {
5
- command: string;
6
- description: string;
7
- }[];
8
- static flags: {
9
- interactive: import("@oclif/core/interfaces").BooleanFlag<boolean>;
10
- name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
- description: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
12
- author: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
13
- email: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
14
- url: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
15
- locales: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
16
- language: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
17
- type: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
18
- permissions: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
19
- };
20
- run(): Promise<void>;
21
- private nameIsValid;
22
- private reconcileInteractiveFlag;
23
- private runInteractiveMode;
24
- private collectName;
25
- private collectDescription;
26
- private collectAuthor;
27
- private collectEmail;
28
- private collectURL;
29
- private collectLocales;
30
- private collectLanguage;
31
- private collectType;
32
- private collectPermissions;
33
- }