@camunda8/cli 2.0.1-alpha.2 → 2.1.0-alpha.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.
package/README.md CHANGED
@@ -109,10 +109,16 @@ c8ctl create process-instance --id=myProcess
109
109
  # Create process instance and wait for completion
110
110
  c8ctl create pi --id=myProcess --awaitCompletion
111
111
 
112
+ # Create process instance with custom timeout (30 seconds)
113
+ c8ctl create pi --id=myProcess --awaitCompletion --requestTimeout=30000
114
+
112
115
  # Await process instance completion (alias for create with --awaitCompletion)
113
116
  c8ctl await pi --id=myProcess
114
117
  c8ctl await process-instance --id=myProcess
115
118
 
119
+ # Await with custom timeout
120
+ c8ctl await pi --id=myProcess --requestTimeout=60000
121
+
116
122
  # Cancel process instance
117
123
  c8ctl cancel pi 123456
118
124
 
@@ -306,9 +312,24 @@ Debug output is written to stderr with timestamps and won't interfere with norma
306
312
 
307
313
  ### Plugin Management
308
314
 
309
- c8ctl supports a plugin system that allows extending the CLI with custom commands via npm packages. Plugins are tracked in a registry file (`~/.config/c8ctl/plugins.json` on Linux, similar locations on other platforms) for persistence across npm operations.
315
+ c8ctl supports a global plugin system that allows extending the CLI with custom commands via npm packages. Plugins are installed globally to a user-specific directory and tracked in a registry file.
316
+
317
+ **Plugin Storage Locations:**
318
+
319
+ The plugin system uses OS-specific directories:
320
+
321
+ | OS | Plugins Directory | Registry File |
322
+ |----|-------------------|---------------|
323
+ | **Linux** | `~/.config/c8ctl/plugins/node_modules` | `~/.config/c8ctl/plugins.json` |
324
+ | **macOS** | `~/Library/Application Support/c8ctl/plugins/node_modules` | `~/Library/Application Support/c8ctl/plugins.json` |
325
+ | **Windows** | `%APPDATA%\c8ctl\plugins\node_modules` | `%APPDATA%\c8ctl\plugins.json` |
326
+
327
+ > **Note:** You can override the data directory with the `C8CTL_DATA_DIR` environment variable.
310
328
 
311
329
  ```bash
330
+ # Create a new plugin from template
331
+ c8ctl init plugin my-plugin
332
+
312
333
  # Load a plugin from npm registry
313
334
  c8ctl load plugin <package-name>
314
335
 
@@ -318,7 +339,14 @@ c8ctl load plugin --from file:///path/to/plugin
318
339
  c8ctl load plugin --from https://github.com/user/repo
319
340
  c8ctl load plugin --from git://github.com/user/repo.git
320
341
 
321
- # Unload a plugin (wraps npm uninstall)
342
+ # Upgrade a plugin to latest or specific version
343
+ c8ctl upgrade plugin <package-name>
344
+ c8ctl upgrade plugin <package-name> 1.2.3
345
+
346
+ # Downgrade a plugin to a specific version
347
+ c8ctl downgrade plugin <package-name> 1.0.0
348
+
349
+ # Unload a plugin
322
350
  c8ctl unload plugin <package-name>
323
351
 
324
352
  # List installed plugins (shows sync status)
@@ -333,21 +361,32 @@ c8ctl sync plugins
333
361
  c8ctl help
334
362
  ```
335
363
 
336
- **Plugin Registry:**
337
- - Plugins are tracked independently of `package.json` in a registry file
338
- - The registry serves as the source of truth (local precedence)
364
+ **Global Plugin System:**
365
+ - Plugins are installed to a global directory (OS-specific, see table above)
366
+ - Plugin registry file (`plugins.json`) tracks all installed plugins
367
+ - No local `package.json` is required in your working directory
368
+ - Plugins are available globally from any directory
369
+ - The registry serves as the source of truth for installed plugins
370
+ - Default plugins are bundled with c8ctl and loaded automatically
371
+ - **Plugin commands cannot override built-in commands** - built-in commands always take precedence
339
372
  - `c8ctl list plugins` shows sync status:
340
373
  - `✓ Installed` - Plugin is in registry and installed
341
- - `⚠ Not installed` - Plugin is in registry but not in node_modules (run `sync`)
342
- - `⚠ Not in registry` - Plugin is in package.json but not tracked in registry
374
+ - `⚠ Not installed` - Plugin is in registry but not in global directory (run `sync`)
375
+ - `⚠ Not in registry` - Plugin is installed but not tracked in registry
343
376
  - `c8ctl sync plugins` synchronizes plugins from the registry, rebuilding or reinstalling as needed
344
377
 
378
+ **Plugin Development:**
379
+ - Use `c8ctl init plugin <name>` to scaffold a new plugin with TypeScript template
380
+ - Generated scaffold includes all necessary files and build configuration
381
+ - Plugins have access to the c8ctl runtime via `globalThis.c8ctl`
382
+ - See the bundled `hello-world` plugin in `default-plugins/` for a complete example
383
+
345
384
  **Plugin Requirements:**
346
385
  - Plugin packages must be regular Node.js modules
347
386
  - They must include a `c8ctl-plugin.js` or `c8ctl-plugin.ts` file in the root directory
348
387
  - The plugin file must export a `commands` object
349
388
  - Optionally export a `metadata` object to provide help text
350
- - Plugins are installed in `node_modules` like regular npm packages
389
+ - Plugins are installed globally and work from any directory
351
390
  - The runtime object `c8ctl` provides environment information to plugins
352
391
  - **Important**: `c8ctl-plugin.js` must be JavaScript. Node.js doesn't support type stripping in `node_modules`. If writing in TypeScript, transpile to JS before publishing.
353
392
 
@@ -1 +1 @@
1
- {"version":3,"file":"completion.d.ts","sourceRoot":"","sources":["../../src/commands/completion.ts"],"names":[],"mappings":"AAAA;;GAEG;AAuyBH;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CA0BnD"}
1
+ {"version":3,"file":"completion.d.ts","sourceRoot":"","sources":["../../src/commands/completion.ts"],"names":[],"mappings":"AAAA;;GAEG;AAs2BH;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CA0BnD"}
@@ -18,7 +18,7 @@ _c8ctl_completions() {
18
18
  cword=\${COMP_CWORD}
19
19
 
20
20
  # Commands (verbs)
21
- local verbs="list search get create cancel await complete fail activate resolve publish correlate deploy run watch add remove rm load unload sync use output completion help"
21
+ local verbs="list search get create cancel await complete fail activate resolve publish correlate deploy run watch add remove rm load unload sync upgrade downgrade init use output completion help"
22
22
 
23
23
  # Resources by verb
24
24
  local list_resources="process-instances process-instance pi user-tasks user-task ut incidents incident inc jobs profiles profile plugins plugin"
@@ -38,13 +38,16 @@ _c8ctl_completions() {
38
38
  local load_resources="plugin"
39
39
  local unload_resources="plugin"
40
40
  local sync_resources="plugin plugins"
41
+ local upgrade_resources="plugin"
42
+ local downgrade_resources="plugin"
43
+ local init_resources="plugin"
41
44
  local use_resources="profile tenant"
42
45
  local output_resources="json text"
43
46
  local completion_resources="bash zsh fish"
44
- local help_resources="list get create complete await search deploy run watch cancel resolve fail activate publish correlate"
47
+ local help_resources="list get create complete await search deploy run watch cancel resolve fail activate publish correlate upgrade downgrade init"
45
48
 
46
49
  # Global flags
47
- local flags="--help --version --profile --from --all --bpmnProcessId --id --processInstanceKey --processDefinitionKey --parentProcessInstanceKey --variables --state --assignee --type --correlationKey --timeToLive --maxJobsToActivate --timeout --worker --retries --errorMessage --baseUrl --clientId --clientSecret --audience --oAuthUrl --defaultTenantId --awaitCompletion --fetchVariables --name --key --elementId --errorType --value --scopeKey --fullValue --userTask --ut --processDefinition --pd --iname --iid --iassignee --ierrorMessage --itype --ivalue"
50
+ local flags="--help --version --profile --from --all --bpmnProcessId --id --processInstanceKey --processDefinitionKey --parentProcessInstanceKey --variables --state --assignee --type --correlationKey --timeToLive --maxJobsToActivate --timeout --worker --retries --errorMessage --baseUrl --clientId --clientSecret --audience --oAuthUrl --defaultTenantId --awaitCompletion --fetchVariables --requestTimeout --name --key --elementId --errorType --value --scopeKey --fullValue --userTask --ut --processDefinition --pd --iname --iid --iassignee --ierrorMessage --itype --ivalue"
48
51
 
49
52
  case \${cword} in
50
53
  1)
@@ -106,6 +109,15 @@ _c8ctl_completions() {
106
109
  sync)
107
110
  COMPREPLY=( \$(compgen -W "\${sync_resources}" -- "\${cur}") )
108
111
  ;;
112
+ upgrade)
113
+ COMPREPLY=( \$(compgen -W "\${upgrade_resources}" -- "\${cur}") )
114
+ ;;
115
+ downgrade)
116
+ COMPREPLY=( \$(compgen -W "\${downgrade_resources}" -- "\${cur}") )
117
+ ;;
118
+ init)
119
+ COMPREPLY=( \$(compgen -W "\${init_resources}" -- "\${cur}") )
120
+ ;;
109
121
  use)
110
122
  COMPREPLY=( \$(compgen -W "\${use_resources}" -- "\${cur}") )
111
123
  ;;
@@ -170,6 +182,9 @@ _c8ctl() {
170
182
  'load:Load a c8ctl plugin'
171
183
  'unload:Unload a c8ctl plugin'
172
184
  'sync:Synchronize plugins from registry'
185
+ 'upgrade:Upgrade a plugin'
186
+ 'downgrade:Downgrade a plugin'
187
+ 'init:Create a new plugin from template'
173
188
  'use:Set active profile or tenant'
174
189
  'output:Set output format'
175
190
  'completion:Generate shell completion script'
@@ -209,6 +224,7 @@ _c8ctl() {
209
224
  '--version[Process definition version]:version:'
210
225
  '--awaitCompletion[Wait for process instance to complete]'
211
226
  '--fetchVariables[Comma-separated variable names]:variables:'
227
+ '--requestTimeout[Timeout in milliseconds for process completion]:milliseconds:'
212
228
  '--name[Variable or resource name]:name:'
213
229
  '--key[Resource key]:key:'
214
230
  '--elementId[Element ID]:id:'
@@ -379,6 +395,24 @@ _c8ctl() {
379
395
  )
380
396
  _describe 'resource' resources
381
397
  ;;
398
+ upgrade)
399
+ resources=(
400
+ 'plugin:Upgrade plugin'
401
+ )
402
+ _describe 'resource' resources
403
+ ;;
404
+ downgrade)
405
+ resources=(
406
+ 'plugin:Downgrade plugin'
407
+ )
408
+ _describe 'resource' resources
409
+ ;;
410
+ init)
411
+ resources=(
412
+ 'plugin:Create new plugin from template'
413
+ )
414
+ _describe 'resource' resources
415
+ ;;
382
416
  use)
383
417
  resources=(
384
418
  'profile:Set active profile'
@@ -418,6 +452,9 @@ _c8ctl() {
418
452
  'activate:Show activate command help'
419
453
  'publish:Show publish command help'
420
454
  'correlate:Show correlate command help'
455
+ 'upgrade:Show upgrade command help'
456
+ 'downgrade:Show downgrade command help'
457
+ 'init:Show init command help'
421
458
  )
422
459
  _describe 'resource' resources
423
460
  ;;
@@ -506,6 +543,8 @@ complete -c c8ctl -l awaitCompletion -d 'Wait for process instance to complete'
506
543
  complete -c c8 -l awaitCompletion -d 'Wait for process instance to complete'
507
544
  complete -c c8ctl -l fetchVariables -d 'Comma-separated variable names' -r
508
545
  complete -c c8 -l fetchVariables -d 'Comma-separated variable names' -r
546
+ complete -c c8ctl -l requestTimeout -d 'Timeout in milliseconds for process completion' -r
547
+ complete -c c8 -l requestTimeout -d 'Timeout in milliseconds for process completion' -r
509
548
  complete -c c8ctl -l name -d 'Variable or resource name' -r
510
549
  complete -c c8 -l name -d 'Variable or resource name' -r
511
550
  complete -c c8ctl -l key -d 'Resource key' -r
@@ -584,6 +623,12 @@ complete -c c8ctl -n '__fish_use_subcommand' -a 'unload' -d 'Unload a c8ctl plug
584
623
  complete -c c8 -n '__fish_use_subcommand' -a 'unload' -d 'Unload a c8ctl plugin'
585
624
  complete -c c8ctl -n '__fish_use_subcommand' -a 'sync' -d 'Synchronize plugins from registry'
586
625
  complete -c c8 -n '__fish_use_subcommand' -a 'sync' -d 'Synchronize plugins from registry'
626
+ complete -c c8ctl -n '__fish_use_subcommand' -a 'upgrade' -d 'Upgrade a plugin'
627
+ complete -c c8 -n '__fish_use_subcommand' -a 'upgrade' -d 'Upgrade a plugin'
628
+ complete -c c8ctl -n '__fish_use_subcommand' -a 'downgrade' -d 'Downgrade a plugin'
629
+ complete -c c8 -n '__fish_use_subcommand' -a 'downgrade' -d 'Downgrade a plugin'
630
+ complete -c c8ctl -n '__fish_use_subcommand' -a 'init' -d 'Create a new plugin from template'
631
+ complete -c c8 -n '__fish_use_subcommand' -a 'init' -d 'Create a new plugin from template'
587
632
  complete -c c8ctl -n '__fish_use_subcommand' -a 'use' -d 'Set active profile or tenant'
588
633
  complete -c c8 -n '__fish_use_subcommand' -a 'use' -d 'Set active profile or tenant'
589
634
  complete -c c8ctl -n '__fish_use_subcommand' -a 'output' -d 'Set output format'
@@ -749,6 +794,18 @@ complete -c c8 -n '__fish_seen_subcommand_from sync' -a 'plugin' -d 'Synchronize
749
794
  complete -c c8ctl -n '__fish_seen_subcommand_from sync' -a 'plugins' -d 'Synchronize plugins'
750
795
  complete -c c8 -n '__fish_seen_subcommand_from sync' -a 'plugins' -d 'Synchronize plugins'
751
796
 
797
+ # Resources for 'upgrade' command
798
+ complete -c c8ctl -n '__fish_seen_subcommand_from upgrade' -a 'plugin' -d 'Upgrade plugin'
799
+ complete -c c8 -n '__fish_seen_subcommand_from upgrade' -a 'plugin' -d 'Upgrade plugin'
800
+
801
+ # Resources for 'downgrade' command
802
+ complete -c c8ctl -n '__fish_seen_subcommand_from downgrade' -a 'plugin' -d 'Downgrade plugin'
803
+ complete -c c8 -n '__fish_seen_subcommand_from downgrade' -a 'plugin' -d 'Downgrade plugin'
804
+
805
+ # Resources for 'init' command
806
+ complete -c c8ctl -n '__fish_seen_subcommand_from init' -a 'plugin' -d 'Create new plugin from template'
807
+ complete -c c8 -n '__fish_seen_subcommand_from init' -a 'plugin' -d 'Create new plugin from template'
808
+
752
809
  # Resources for 'use' command
753
810
  complete -c c8ctl -n '__fish_seen_subcommand_from use' -a 'profile' -d 'Set active profile'
754
811
  complete -c c8 -n '__fish_seen_subcommand_from use' -a 'profile' -d 'Set active profile'
@@ -800,6 +857,12 @@ complete -c c8ctl -n '__fish_seen_subcommand_from help' -a 'publish' -d 'Show pu
800
857
  complete -c c8 -n '__fish_seen_subcommand_from help' -a 'publish' -d 'Show publish command help'
801
858
  complete -c c8ctl -n '__fish_seen_subcommand_from help' -a 'correlate' -d 'Show correlate command help'
802
859
  complete -c c8 -n '__fish_seen_subcommand_from help' -a 'correlate' -d 'Show correlate command help'
860
+ complete -c c8ctl -n '__fish_seen_subcommand_from help' -a 'upgrade' -d 'Show upgrade command help'
861
+ complete -c c8 -n '__fish_seen_subcommand_from help' -a 'upgrade' -d 'Show upgrade command help'
862
+ complete -c c8ctl -n '__fish_seen_subcommand_from help' -a 'downgrade' -d 'Show downgrade command help'
863
+ complete -c c8 -n '__fish_seen_subcommand_from help' -a 'downgrade' -d 'Show downgrade command help'
864
+ complete -c c8ctl -n '__fish_seen_subcommand_from help' -a 'init' -d 'Show init command help'
865
+ complete -c c8 -n '__fish_seen_subcommand_from help' -a 'init' -d 'Show init command help'
803
866
  `;
804
867
  }
805
868
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"completion.js","sourceRoot":"","sources":["../../src/commands/completion.ts"],"names":[],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,IAAI,CA8BrC;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,IAAI,CAmBlC;AAED;;GAEG;AACH,wBAAgB,aAAa,IAAI,IAAI,CA4BpC;AAED;;GAEG;AACH,wBAAgB,cAAc,IAAI,IAAI,CAerC;AAED;;GAEG;AACH,wBAAgB,eAAe,IAAI,IAAI,CAoBtC;AAED;;GAEG;AACH,wBAAgB,YAAY,IAAI,IAAI,CAoBnC;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,IAAI,CAqBvC;AAED;;GAEG;AACH,wBAAgB,eAAe,IAAI,IAAI,CAuBtC;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,IAAI,CAsBxC;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAuDrD"}
@@ -63,7 +63,10 @@ Commands:
63
63
  load plugin <name> Load a c8ctl plugin from npm registry
64
64
  load plugin --from Load a c8ctl plugin from URL (file://, https://, git://)
65
65
  unload plugin <name> Unload a c8ctl plugin (npm uninstall wrapper)
66
+ upgrade plugin <name> [version] Upgrade a plugin to latest or specific version
67
+ downgrade plugin <name> <version> Downgrade a plugin to a specific version
66
68
  sync plugin Synchronize plugins from registry (rebuild/reinstall)
69
+ init plugin [name] Create a new plugin from TypeScript template
67
70
  use profile|tenant Set active profile or tenant
68
71
  output json|text Set output format
69
72
  completion bash|zsh|fish Generate shell completion script
@@ -80,6 +83,7 @@ Flags:
80
83
  --id <process-id> Process definition ID (alias for --bpmnProcessId)
81
84
  --awaitCompletion Wait for process instance to complete (use with 'create pi')
82
85
  --fetchVariables <v> Reserved for future use (all variables returned by default)
86
+ --requestTimeout <ms> Timeout in milliseconds for process completion (use with --awaitCompletion)
83
87
  --version, -v Show version
84
88
  --help, -h Show help
85
89
 
@@ -152,8 +156,10 @@ Examples:
152
156
  c8ctl watch ./src Watch directory for changes
153
157
  c8ctl use profile prod Set active profile
154
158
  c8ctl output json Switch to JSON output
159
+ c8ctl init plugin my-plugin Create new plugin from template
155
160
  c8ctl load plugin my-plugin Load plugin from npm registry
156
161
  c8ctl load plugin --from file:///path/to/plugin Load plugin from file URL
162
+ c8ctl upgrade plugin my-plugin Upgrade plugin to latest version
157
163
  c8ctl sync plugin Synchronize plugins
158
164
  c8ctl completion bash Generate bash completion script
159
165
 
@@ -199,10 +205,13 @@ export function showVerbResources(verb) {
199
205
  load: 'plugin',
200
206
  unload: 'plugin',
201
207
  sync: 'plugin',
208
+ upgrade: 'plugin',
209
+ downgrade: 'plugin',
210
+ init: 'plugin',
202
211
  use: 'profile, tenant',
203
212
  output: 'json, text',
204
213
  completion: 'bash, zsh, fish',
205
- help: 'list, get, create, complete, await, search, deploy, run, watch, cancel, resolve, fail, activate, publish, correlate',
214
+ help: 'list, get, create, complete, await, search, deploy, run, watch, cancel, resolve, fail, activate, publish, correlate, upgrade, downgrade, init',
206
215
  };
207
216
  const available = resources[verb];
208
217
  if (available) {
@@ -327,6 +336,7 @@ Resources and their available flags:
327
336
  --variables <json> Process variables as JSON string
328
337
  --awaitCompletion Wait for process instance to complete
329
338
  --fetchVariables <vars> Reserved for future use (all variables returned by default)
339
+ --requestTimeout <ms> Timeout in milliseconds for process completion (use with --awaitCompletion)
330
340
  --profile <name> Use specific profile
331
341
 
332
342
  Examples:
@@ -334,6 +344,7 @@ Examples:
334
344
  c8ctl create pi --id=order-process --version=2
335
345
  c8ctl create pi --id=order-process --variables='{"orderId":"12345"}'
336
346
  c8ctl create pi --id=order-process --awaitCompletion
347
+ c8ctl create pi --id=order-process --awaitCompletion --requestTimeout=30000
337
348
  `.trim());
338
349
  }
339
350
  /**
@@ -379,6 +390,7 @@ Resources and their available flags:
379
390
  --version <num> Process definition version
380
391
  --variables <json> Process variables as JSON string
381
392
  --fetchVariables <vars> Reserved for future use (all variables returned by default)
393
+ --requestTimeout <ms> Timeout in milliseconds for process completion
382
394
  --profile <name> Use specific profile
383
395
 
384
396
  Description:
@@ -389,6 +401,7 @@ Description:
389
401
  Examples:
390
402
  c8ctl await pi --id=order-process
391
403
  c8ctl await pi --id=order-process --variables='{"orderId":"12345"}'
404
+ c8ctl await pi --id=order-process --requestTimeout=30000
392
405
 
393
406
  # Equivalent to:
394
407
  c8ctl create pi --id=order-process --awaitCompletion
@@ -1 +1 @@
1
- {"version":3,"file":"help.js","sourceRoot":"","sources":["../../src/commands/help.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAEtC;;GAEG;AACH,MAAM,UAAU,UAAU;IACxB,MAAM,WAAW,GAAG,IAAI,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC;IAC1D,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC;IACnE,OAAO,WAAW,CAAC,OAAO,CAAC;AAC7B,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,WAAW;IACzB,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,CAAC,IAAI,CAAC,UAAU,UAAU,EAAE,EAAE,CAAC,CAAC;AACxC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,QAAQ;IACtB,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAC7B,MAAM,kBAAkB,GAAG,qBAAqB,EAAE,CAAC;IAEnD,IAAI,aAAa,GAAG,EAAE,CAAC;IACvB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AM;QACR,KAAK,UAAU;YACb,gBAAgB,EAAE,CAAC;YACnB,MAAM;QACR,KAAK,SAAS;YACZ,eAAe,EAAE,CAAC;YAClB,MAAM;QACR,KAAK,WAAW;YACd,iBAAiB,EAAE,CAAC;YACpB,MAAM;QACR;YACE,OAAO,CAAC,GAAG,CAAC,qCAAqC,OAAO,EAAE,CAAC,CAAC;YAC5D,OAAO,CAAC,GAAG,CAAC,iDAAiD,CAAC,CAAC;IACnE,CAAC;AACH,CAAC"}
@@ -4,10 +4,12 @@
4
4
  /**
5
5
  * Load a plugin (npm install wrapper)
6
6
  * Supports either package name or --from flag with URL
7
+ * Installs to global plugins directory
7
8
  */
8
9
  export declare function loadPlugin(packageNameOrFrom?: string, fromUrl?: string): Promise<void>;
9
10
  /**
10
11
  * Unload a plugin (npm uninstall wrapper)
12
+ * Uninstalls from global plugins directory
11
13
  */
12
14
  export declare function unloadPlugin(packageName: string): Promise<void>;
13
15
  /**
@@ -16,7 +18,19 @@ export declare function unloadPlugin(packageName: string): Promise<void>;
16
18
  export declare function listPlugins(): void;
17
19
  /**
18
20
  * Sync plugins - synchronize registry with actual installations
19
- * Local (registry) has precedence over package.json
21
+ * Registry has precedence - plugins are installed to global directory
20
22
  */
21
23
  export declare function syncPlugins(): Promise<void>;
24
+ /**
25
+ * Upgrade a plugin to the latest version or a specific version
26
+ */
27
+ export declare function upgradePlugin(packageName: string, version?: string): Promise<void>;
28
+ /**
29
+ * Downgrade a plugin to a specific version
30
+ */
31
+ export declare function downgradePlugin(packageName: string, version: string): Promise<void>;
32
+ /**
33
+ * Initialize a new plugin project with TypeScript template
34
+ */
35
+ export declare function initPlugin(pluginName?: string): Promise<void>;
22
36
  //# sourceMappingURL=plugins.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/commands/plugins.ts"],"names":[],"mappings":"AAAA;;GAEG;AAgBH;;;GAGG;AACH,wBAAsB,UAAU,CAAC,iBAAiB,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAkE5F;AAsBD;;GAEG;AACH,wBAAsB,YAAY,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA2BrE;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,IAAI,CAgFlC;AAED;;;GAGG;AACH,wBAAsB,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC,CAmGjD"}
1
+ {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/commands/plugins.ts"],"names":[],"mappings":"AAAA;;GAEG;AAiBH;;;;GAIG;AACH,wBAAsB,UAAU,CAAC,iBAAiB,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA6D5F;AA4FD;;;GAGG;AACH,wBAAsB,YAAY,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA8BrE;AAqDD;;GAEG;AACH,wBAAgB,WAAW,IAAI,IAAI,CA0DlC;AAED;;;GAGG;AACH,wBAAsB,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC,CA+FjD;AAED;;GAEG;AACH,wBAAsB,aAAa,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA4CxF;AAED;;GAEG;AACH,wBAAsB,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAwCzF;AAED;;GAEG;AACH,wBAAsB,UAAU,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAgNnE"}