@robota-sdk/agent-command 3.0.0-beta.65 → 3.0.0-beta.67

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.
Files changed (57) hide show
  1. package/README.md +74 -0
  2. package/dist/node/index.cjs +28 -28
  3. package/dist/node/index.d.ts +35 -5
  4. package/dist/node/index.d.ts.map +1 -1
  5. package/dist/node/index.js +28 -28
  6. package/dist/node/index.js.map +1 -1
  7. package/package.json +5 -3
  8. package/src/agent/agent-command-module.ts +2 -1
  9. package/src/agent/agent-command.ts +4 -2
  10. package/src/background/background-command-module.ts +7 -5
  11. package/src/background/background-command.ts +2 -1
  12. package/src/compact/compact-command-module.ts +2 -1
  13. package/src/compact/compact-command.ts +2 -1
  14. package/src/context/context-command-module.ts +2 -1
  15. package/src/context/context-command.ts +7 -6
  16. package/src/default/default-command-modules.ts +64 -0
  17. package/src/default/index.ts +2 -0
  18. package/src/exit/exit-command-module.ts +4 -2
  19. package/src/exit/exit-command.ts +2 -1
  20. package/src/help/help-command-module.ts +4 -2
  21. package/src/help/help-command.ts +2 -1
  22. package/src/index.ts +3 -0
  23. package/src/language/language-command-module.ts +8 -6
  24. package/src/language/language-command.ts +2 -1
  25. package/src/memory/memory-command-module.ts +8 -6
  26. package/src/memory/memory-command.ts +9 -8
  27. package/src/mode/mode-command-module.ts +8 -6
  28. package/src/mode/mode-command.ts +2 -1
  29. package/src/model/model-command-module.ts +8 -6
  30. package/src/model/model-command.ts +2 -1
  31. package/src/permissions/permissions-command-module.ts +8 -6
  32. package/src/permissions/permissions-command.ts +2 -1
  33. package/src/plugin/plugin-command-module.ts +8 -6
  34. package/src/plugin/plugin-command.ts +6 -5
  35. package/src/plugins/default-plugin-command-adapter.ts +164 -0
  36. package/src/plugins/default-plugin-command-source-loader.ts +31 -0
  37. package/src/provider/__tests__/provider-setup-flow.test.ts +204 -3
  38. package/src/provider/index.ts +2 -0
  39. package/src/provider/provider-command-execution.ts +11 -6
  40. package/src/provider/provider-command-module.ts +2 -1
  41. package/src/provider/provider-command-profile-lifecycle.ts +11 -6
  42. package/src/provider/provider-command-profile-operations.ts +11 -9
  43. package/src/provider/provider-command-profile.ts +12 -10
  44. package/src/provider/provider-command-setup.ts +10 -8
  45. package/src/provider/provider-setup-flow.ts +3 -2
  46. package/src/provider/provider-startup.ts +117 -0
  47. package/src/reset/reset-command-module.ts +2 -1
  48. package/src/rewind/rewind-command-module.ts +8 -6
  49. package/src/rewind/rewind-command.ts +7 -6
  50. package/src/session/session-command-module.ts +8 -6
  51. package/src/session/session-command.ts +2 -1
  52. package/src/skills/skills-command-module.ts +7 -7
  53. package/src/statusline/statusline-command-module.ts +8 -6
  54. package/src/statusline/statusline-command.ts +2 -1
  55. package/src/user-local/user-local-command-module.ts +6 -5
  56. package/src/user-local/user-local-command.ts +4 -2
  57. package/src/user-local/user-local-memory-command.ts +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robota-sdk/agent-command",
3
- "version": "3.0.0-beta.65",
3
+ "version": "3.0.0-beta.67",
4
4
  "description": "Consolidated command module implementations for Robota SDK CLI",
5
5
  "type": "module",
6
6
  "main": "dist/node/index.js",
@@ -24,8 +24,8 @@
24
24
  "src"
25
25
  ],
26
26
  "dependencies": {
27
- "@robota-sdk/agent-core": "3.0.0-beta.65",
28
- "@robota-sdk/agent-framework": "3.0.0-beta.65"
27
+ "@robota-sdk/agent-core": "3.0.0-beta.67",
28
+ "@robota-sdk/agent-framework": "3.0.0-beta.67"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "^22.14.0",
@@ -40,6 +40,8 @@
40
40
  },
41
41
  "scripts": {
42
42
  "build": "tsdown",
43
+ "build:js": "tsdown --no-dts",
44
+ "build:types": "tsdown --dts",
43
45
  "typecheck": "tsc --noEmit",
44
46
  "test": "vitest run",
45
47
  "test:coverage": "vitest run --coverage",
@@ -1,3 +1,5 @@
1
+ import { executeAgentCommand } from './agent-command.js';
2
+
1
3
  import type {
2
4
  IAgentJobHostContext,
3
5
  ICommand,
@@ -6,7 +8,6 @@ import type {
6
8
  ICommandSource,
7
9
  ISystemCommand,
8
10
  } from '@robota-sdk/agent-framework';
9
- import { executeAgentCommand } from './agent-command.js';
10
11
 
11
12
  function getAgentHostContext(context: ICommandHostContext): IAgentJobHostContext {
12
13
  const cap = context.getAgentJobCapability?.();
@@ -1,11 +1,13 @@
1
1
  import { summarizeBackgroundJobGroup } from '@robota-sdk/agent-framework';
2
+
3
+ import { parseParallelRequests, parseRunRequest, tokenizeArgs } from './agent-command-parser.js';
4
+
5
+ import type { IAgentRunRequest } from './agent-command-parser.js';
2
6
  import type {
3
7
  IAgentJobHostContext,
4
8
  ICommandResult,
5
9
  ISubagentJobState,
6
10
  } from '@robota-sdk/agent-framework';
7
- import { parseParallelRequests, parseRunRequest, tokenizeArgs } from './agent-command-parser.js';
8
- import type { IAgentRunRequest } from './agent-command-parser.js';
9
11
 
10
12
  function formatError<TError>(error: TError): string {
11
13
  return error instanceof Error ? error.message : String(error);
@@ -1,14 +1,16 @@
1
+ import {
2
+ BACKGROUND_COMMAND_DESCRIPTION,
3
+ buildBackgroundCommandSubcommands,
4
+ } from '@robota-sdk/agent-framework';
5
+
6
+ import { executeBackgroundCommand } from './background-command.js';
7
+
1
8
  import type {
2
9
  ICommand,
3
10
  ICommandModule,
4
11
  ICommandSource,
5
12
  ISystemCommand,
6
13
  } from '@robota-sdk/agent-framework';
7
- import {
8
- BACKGROUND_COMMAND_DESCRIPTION,
9
- buildBackgroundCommandSubcommands,
10
- } from '@robota-sdk/agent-framework';
11
- import { executeBackgroundCommand } from './background-command.js';
12
14
 
13
15
  export function createBackgroundCommandEntry(): ICommand {
14
16
  return {
@@ -1,4 +1,3 @@
1
- import type { ICommandHostContext, ICommandResult } from '@robota-sdk/agent-framework';
2
1
  import {
3
2
  BACKGROUND_COMMAND_USAGE,
4
3
  cancelCommandBackgroundTask,
@@ -9,6 +8,8 @@ import {
9
8
  readCommandBackgroundTaskLog,
10
9
  } from '@robota-sdk/agent-framework';
11
10
 
11
+ import type { ICommandHostContext, ICommandResult } from '@robota-sdk/agent-framework';
12
+
12
13
  function parseCommandParts(args: string): string[] {
13
14
  return args.trim().split(/\s+/).filter(Boolean);
14
15
  }
@@ -1,10 +1,11 @@
1
+ import { executeCompactCommand } from './compact-command.js';
2
+
1
3
  import type {
2
4
  ICommand,
3
5
  ICommandModule,
4
6
  ICommandSource,
5
7
  ISystemCommand,
6
8
  } from '@robota-sdk/agent-framework';
7
- import { executeCompactCommand } from './compact-command.js';
8
9
 
9
10
  export function createCompactCommandEntry(): ICommand {
10
11
  return {
@@ -1,6 +1,7 @@
1
- import type { ICommandHostContext, ICommandResult } from '@robota-sdk/agent-framework';
2
1
  import { compactCommandContext } from '@robota-sdk/agent-framework';
3
2
 
3
+ import type { ICommandHostContext, ICommandResult } from '@robota-sdk/agent-framework';
4
+
4
5
  function parseInstructions(args: string): string | undefined {
5
6
  const instructions = args.trim();
6
7
  return instructions.length > 0 ? instructions : undefined;
@@ -1,10 +1,11 @@
1
+ import { executeContextCommand } from './context-command.js';
2
+
1
3
  import type {
2
4
  ICommand,
3
5
  ICommandModule,
4
6
  ICommandSource,
5
7
  ISystemCommand,
6
8
  } from '@robota-sdk/agent-framework';
7
- import { executeContextCommand } from './context-command.js';
8
9
 
9
10
  export function createContextCommandEntry(): ICommand {
10
11
  return {
@@ -1,9 +1,3 @@
1
- import type {
2
- ICommandHostContext,
3
- ICommandResult,
4
- TAutoCompactThreshold,
5
- TAutoCompactThresholdSource,
6
- } from '@robota-sdk/agent-framework';
7
1
  import {
8
2
  addCommandContextReference,
9
3
  clearCommandContextReferences,
@@ -17,6 +11,13 @@ import {
17
11
  setCommandAutoCompactThreshold,
18
12
  writeAutoCompactThresholdSetting,
19
13
  } from '@robota-sdk/agent-framework';
14
+
15
+ import type {
16
+ ICommandHostContext,
17
+ ICommandResult,
18
+ TAutoCompactThreshold,
19
+ TAutoCompactThresholdSource,
20
+ } from '@robota-sdk/agent-framework';
20
21
  import type { IContextReferenceItem } from '@robota-sdk/agent-framework';
21
22
 
22
23
  const PERCENT = 100;
@@ -0,0 +1,64 @@
1
+ import { createAgentCommandModule } from '../agent/index.js';
2
+ import { createBackgroundCommandModule } from '../background/index.js';
3
+ import { createCompactCommandModule } from '../compact/index.js';
4
+ import { createContextCommandModule } from '../context/index.js';
5
+ import { createExitCommandModule } from '../exit/index.js';
6
+ import { createHelpCommandModule } from '../help/index.js';
7
+ import { createLanguageCommandModule } from '../language/index.js';
8
+ import { createMemoryCommandModule } from '../memory/index.js';
9
+ import { createModeCommandModule } from '../mode/index.js';
10
+ import { createModelCommandModule } from '../model/index.js';
11
+ import { createPermissionsCommandModule } from '../permissions/index.js';
12
+ import { createPluginCommandModule } from '../plugin/index.js';
13
+ import { createProviderCommandModule } from '../provider/index.js';
14
+ import { createResetCommandModule } from '../reset/index.js';
15
+ import { createRewindCommandModule } from '../rewind/index.js';
16
+ import { createSessionCommandModule } from '../session/index.js';
17
+ import { createSettingsCommandModule } from '../settings/index.js';
18
+ import { createSkillsCommandModule } from '../skills/index.js';
19
+ import { createStatusLineCommandModule } from '../statusline/index.js';
20
+ import { createUserLocalCommandModule } from '../user-local/index.js';
21
+
22
+ import type { IProviderDefinition } from '@robota-sdk/agent-core';
23
+ import type { ICommandModule, IProviderCommandSettingsAdapter } from '@robota-sdk/agent-framework';
24
+
25
+ export interface IDefaultCommandModulesOptions {
26
+ cwd: string;
27
+ providerDefinitions: readonly IProviderDefinition[];
28
+ providerSettingsAdapter: IProviderCommandSettingsAdapter;
29
+ }
30
+
31
+ export function createDefaultCommandModules({
32
+ cwd,
33
+ providerDefinitions,
34
+ providerSettingsAdapter,
35
+ }: IDefaultCommandModulesOptions): readonly ICommandModule[] {
36
+ return [
37
+ createSkillsCommandModule({ cwd }),
38
+ createHelpCommandModule(),
39
+ createAgentCommandModule(),
40
+ createModelCommandModule({
41
+ providerDefinitions,
42
+ settings: { readMergedSettings: () => providerSettingsAdapter.readMergedSettings() },
43
+ }),
44
+ createPermissionsCommandModule(),
45
+ createModeCommandModule(),
46
+ createLanguageCommandModule(),
47
+ createBackgroundCommandModule(),
48
+ createMemoryCommandModule(),
49
+ createUserLocalCommandModule(),
50
+ createCompactCommandModule(),
51
+ createContextCommandModule(),
52
+ createExitCommandModule(),
53
+ createSessionCommandModule(),
54
+ createResetCommandModule(),
55
+ createRewindCommandModule(),
56
+ createStatusLineCommandModule(),
57
+ createPluginCommandModule(),
58
+ createSettingsCommandModule(),
59
+ createProviderCommandModule({
60
+ providerDefinitions,
61
+ settings: providerSettingsAdapter,
62
+ }),
63
+ ];
64
+ }
@@ -0,0 +1,2 @@
1
+ export type { IDefaultCommandModulesOptions } from './default-command-modules.js';
2
+ export { createDefaultCommandModules } from './default-command-modules.js';
@@ -1,11 +1,13 @@
1
+ import { EXIT_COMMAND_DESCRIPTION } from '@robota-sdk/agent-framework';
2
+
3
+ import { executeExitCommand } from './exit-command.js';
4
+
1
5
  import type {
2
6
  ICommand,
3
7
  ICommandModule,
4
8
  ICommandSource,
5
9
  ISystemCommand,
6
10
  } from '@robota-sdk/agent-framework';
7
- import { EXIT_COMMAND_DESCRIPTION } from '@robota-sdk/agent-framework';
8
- import { executeExitCommand } from './exit-command.js';
9
11
 
10
12
  export function createExitCommandEntry(): ICommand {
11
13
  return {
@@ -1,6 +1,7 @@
1
- import type { ICommandHostContext, ICommandResult } from '@robota-sdk/agent-framework';
2
1
  import { createSessionExitRequestedEffect } from '@robota-sdk/agent-framework';
3
2
 
3
+ import type { ICommandHostContext, ICommandResult } from '@robota-sdk/agent-framework';
4
+
4
5
  export function executeExitCommand(_context: ICommandHostContext, _args: string): ICommandResult {
5
6
  return {
6
7
  success: true,
@@ -1,11 +1,13 @@
1
+ import { HELP_COMMAND_DESCRIPTION } from '@robota-sdk/agent-framework';
2
+
3
+ import { executeHelpCommand } from './help-command.js';
4
+
1
5
  import type {
2
6
  ICommand,
3
7
  ICommandModule,
4
8
  ICommandSource,
5
9
  ISystemCommand,
6
10
  } from '@robota-sdk/agent-framework';
7
- import { HELP_COMMAND_DESCRIPTION } from '@robota-sdk/agent-framework';
8
- import { executeHelpCommand } from './help-command.js';
9
11
 
10
12
  export function createHelpCommandEntry(): ICommand {
11
13
  return {
@@ -1,6 +1,7 @@
1
- import type { ICommandHostContext, ICommandResult } from '@robota-sdk/agent-framework';
2
1
  import { formatCommandHelpMessage } from '@robota-sdk/agent-framework';
3
2
 
3
+ import type { ICommandHostContext, ICommandResult } from '@robota-sdk/agent-framework';
4
+
4
5
  export function executeHelpCommand(context: ICommandHostContext, _args: string): ICommandResult {
5
6
  return {
6
7
  success: true,
package/src/index.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './agent/index.js';
2
+ export * from './default/index.js';
2
3
  export * from './background/index.js';
3
4
  export * from './compact/index.js';
4
5
  export * from './context/index.js';
@@ -18,3 +19,5 @@ export * from './settings/index.js';
18
19
  export * from './skills/index.js';
19
20
  export * from './statusline/index.js';
20
21
  export * from './user-local/index.js';
22
+ export { createDefaultPluginCommandAdapter } from './plugins/default-plugin-command-adapter.js';
23
+ export { reloadPluginCommandSource } from './plugins/default-plugin-command-source-loader.js';
@@ -1,16 +1,18 @@
1
- import type {
2
- ICommand,
3
- ICommandModule,
4
- ICommandSource,
5
- ISystemCommand,
6
- } from '@robota-sdk/agent-framework';
7
1
  import {
8
2
  buildLanguageCommandSubcommands,
9
3
  LANGUAGE_COMMAND_ARGUMENT_HINT,
10
4
  LANGUAGE_COMMAND_DESCRIPTION,
11
5
  } from '@robota-sdk/agent-framework';
6
+
12
7
  import { executeLanguageCommand } from './language-command.js';
13
8
 
9
+ import type {
10
+ ICommand,
11
+ ICommandModule,
12
+ ICommandSource,
13
+ ISystemCommand,
14
+ } from '@robota-sdk/agent-framework';
15
+
14
16
  export function createLanguageCommandEntry(): ICommand {
15
17
  return {
16
18
  name: 'language',
@@ -1,6 +1,7 @@
1
- import type { ICommandHostContext, ICommandResult } from '@robota-sdk/agent-framework';
2
1
  import { formatLanguageUsageMessage, parseLanguageArgument } from '@robota-sdk/agent-framework';
3
2
 
3
+ import type { ICommandHostContext, ICommandResult } from '@robota-sdk/agent-framework';
4
+
4
5
  export function executeLanguageCommand(
5
6
  _context: ICommandHostContext,
6
7
  args: string,
@@ -1,16 +1,18 @@
1
- import type {
2
- ICommand,
3
- ICommandModule,
4
- ICommandSource,
5
- ISystemCommand,
6
- } from '@robota-sdk/agent-framework';
7
1
  import {
8
2
  MEMORY_COMMAND_ARGUMENT_HINT,
9
3
  MEMORY_COMMAND_DESCRIPTION,
10
4
  buildMemoryCommandSubcommands,
11
5
  } from '@robota-sdk/agent-framework';
6
+
12
7
  import { executeMemoryCommand } from './memory-command.js';
13
8
 
9
+ import type {
10
+ ICommand,
11
+ ICommandModule,
12
+ ICommandSource,
13
+ ISystemCommand,
14
+ } from '@robota-sdk/agent-framework';
15
+
14
16
  export function createMemoryCommandEntry(): ICommand {
15
17
  return {
16
18
  name: 'memory',
@@ -1,11 +1,3 @@
1
- import type {
2
- IAppendMemoryInput,
3
- ICommandHostContext,
4
- ICommandPendingMemoryStore,
5
- ICommandProjectMemoryStore,
6
- ICommandResult,
7
- IMemoryEvent,
8
- } from '@robota-sdk/agent-framework';
9
1
  import {
10
2
  MEMORY_COMMAND_USAGE,
11
3
  createCommandMemoryStores,
@@ -15,6 +7,15 @@ import {
15
7
  recordCommandMemoryEvent,
16
8
  } from '@robota-sdk/agent-framework';
17
9
 
10
+ import type {
11
+ IAppendMemoryInput,
12
+ ICommandHostContext,
13
+ ICommandPendingMemoryStore,
14
+ ICommandProjectMemoryStore,
15
+ ICommandResult,
16
+ IMemoryEvent,
17
+ } from '@robota-sdk/agent-framework';
18
+
18
19
  const SUBCOMMAND_INDEX = 0;
19
20
  const TYPE_INDEX = 1;
20
21
  const TOPIC_INDEX = 2;
@@ -1,16 +1,18 @@
1
- import type {
2
- ICommand,
3
- ICommandModule,
4
- ICommandSource,
5
- ISystemCommand,
6
- } from '@robota-sdk/agent-framework';
7
1
  import {
8
2
  buildPermissionModeSubcommands,
9
3
  PERMISSION_MODE_ARGUMENT_HINT,
10
4
  PERMISSION_MODE_COMMAND_DESCRIPTION,
11
5
  } from '@robota-sdk/agent-framework';
6
+
12
7
  import { executeModeCommand } from './mode-command.js';
13
8
 
9
+ import type {
10
+ ICommand,
11
+ ICommandModule,
12
+ ICommandSource,
13
+ ISystemCommand,
14
+ } from '@robota-sdk/agent-framework';
15
+
14
16
  export function createModeCommandEntry(): ICommand {
15
17
  return {
16
18
  name: 'mode',
@@ -1,4 +1,3 @@
1
- import type { ICommandHostContext, ICommandResult } from '@robota-sdk/agent-framework';
2
1
  import {
3
2
  formatInvalidPermissionModeMessage,
4
3
  isPermissionMode,
@@ -7,6 +6,8 @@ import {
7
6
  writeCommandPermissionMode,
8
7
  } from '@robota-sdk/agent-framework';
9
8
 
9
+ import type { ICommandHostContext, ICommandResult } from '@robota-sdk/agent-framework';
10
+
10
11
  export function executeModeCommand(context: ICommandHostContext, args: string): ICommandResult {
11
12
  const arg = parsePermissionModeArgument(args);
12
13
  if (arg === undefined) {
@@ -1,3 +1,11 @@
1
+ import {
2
+ buildModelCommandSubcommands,
3
+ MODEL_COMMAND_ARGUMENT_HINT,
4
+ MODEL_COMMAND_DESCRIPTION,
5
+ } from '@robota-sdk/agent-framework';
6
+
7
+ import { executeModelCommand } from './model-command.js';
8
+
1
9
  import type {
2
10
  ICommand,
3
11
  ICommandModule,
@@ -5,12 +13,6 @@ import type {
5
13
  IModelCommandModuleOptions,
6
14
  ISystemCommand,
7
15
  } from '@robota-sdk/agent-framework';
8
- import {
9
- buildModelCommandSubcommands,
10
- MODEL_COMMAND_ARGUMENT_HINT,
11
- MODEL_COMMAND_DESCRIPTION,
12
- } from '@robota-sdk/agent-framework';
13
- import { executeModelCommand } from './model-command.js';
14
16
 
15
17
  export function createModelCommandEntry(options?: IModelCommandModuleOptions): ICommand {
16
18
  return {
@@ -1,9 +1,10 @@
1
+ import { formatModelCommandUsageMessageAsync } from '@robota-sdk/agent-framework';
2
+
1
3
  import type {
2
4
  ICommandHostContext,
3
5
  ICommandResult,
4
6
  IModelCommandModuleOptions,
5
7
  } from '@robota-sdk/agent-framework';
6
- import { formatModelCommandUsageMessageAsync } from '@robota-sdk/agent-framework';
7
8
 
8
9
  function parseModelId(args: string): string | undefined {
9
10
  const modelId = args.trim().split(/\s+/)[0];
@@ -1,16 +1,18 @@
1
- import type {
2
- ICommand,
3
- ICommandModule,
4
- ICommandSource,
5
- ISystemCommand,
6
- } from '@robota-sdk/agent-framework';
7
1
  import {
8
2
  buildPermissionModeSubcommands,
9
3
  PERMISSION_MODE_ARGUMENT_HINT,
10
4
  PERMISSIONS_COMMAND_DESCRIPTION,
11
5
  } from '@robota-sdk/agent-framework';
6
+
12
7
  import { executePermissionsCommand } from './permissions-command.js';
13
8
 
9
+ import type {
10
+ ICommand,
11
+ ICommandModule,
12
+ ICommandSource,
13
+ ISystemCommand,
14
+ } from '@robota-sdk/agent-framework';
15
+
14
16
  export function createPermissionsCommandEntry(): ICommand {
15
17
  return {
16
18
  name: 'permissions',
@@ -1,4 +1,3 @@
1
- import type { ICommandHostContext, ICommandResult } from '@robota-sdk/agent-framework';
2
1
  import {
3
2
  formatCommandPermissionsMessage,
4
3
  formatInvalidPermissionModeMessage,
@@ -8,6 +7,8 @@ import {
8
7
  writeCommandPermissionMode,
9
8
  } from '@robota-sdk/agent-framework';
10
9
 
10
+ import type { ICommandHostContext, ICommandResult } from '@robota-sdk/agent-framework';
11
+
11
12
  export function executePermissionsCommand(
12
13
  context: ICommandHostContext,
13
14
  args: string,
@@ -1,17 +1,19 @@
1
- import type {
2
- ICommand,
3
- ICommandModule,
4
- ICommandSource,
5
- ISystemCommand,
6
- } from '@robota-sdk/agent-framework';
7
1
  import {
8
2
  buildPluginCommandSubcommands,
9
3
  PLUGIN_COMMAND_ARGUMENT_HINT,
10
4
  PLUGIN_COMMAND_DESCRIPTION,
11
5
  RELOAD_PLUGINS_COMMAND_DESCRIPTION,
12
6
  } from '@robota-sdk/agent-framework';
7
+
13
8
  import { executePluginCommand, executeReloadPluginsCommand } from './plugin-command.js';
14
9
 
10
+ import type {
11
+ ICommand,
12
+ ICommandModule,
13
+ ICommandSource,
14
+ ISystemCommand,
15
+ } from '@robota-sdk/agent-framework';
16
+
15
17
  export function createPluginCommandEntry(): ICommand {
16
18
  return {
17
19
  name: 'plugin',
@@ -1,14 +1,15 @@
1
- import type {
2
- ICommandHostContext,
3
- ICommandPluginAdapter,
4
- ICommandResult,
5
- } from '@robota-sdk/agent-framework';
6
1
  import {
7
2
  createPluginRegistryReloadRequestedEffect,
8
3
  createPluginTuiRequestedEffect,
9
4
  resolvePluginCommandAdapter,
10
5
  } from '@robota-sdk/agent-framework';
11
6
 
7
+ import type {
8
+ ICommandHostContext,
9
+ ICommandPluginAdapter,
10
+ ICommandResult,
11
+ } from '@robota-sdk/agent-framework';
12
+
12
13
  function getSubcommandParts(args: string): { subcommand: string; subArgs: string } {
13
14
  const parts = args
14
15
  .trim()