@serviceme/devtools-protocol 0.1.4 → 0.1.6

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/dist/index.d.mts CHANGED
@@ -1,3 +1,88 @@
1
+ type AgentScope = "workspace" | "user";
2
+ type AgentOwnerKind = "builtin" | "external";
3
+ type AgentScopeStatus = "absent" | "available" | "installed" | "blocked" | "conflict";
4
+ type AgentMutationAction = "install" | "uninstall" | "move" | "removeExternal" | "publish" | "republish" | "submit-to-official";
5
+ type AgentToolRiskLevel = "high" | "medium" | "low";
6
+ interface AgentToolPermission {
7
+ tool: string;
8
+ riskLevel: AgentToolRiskLevel;
9
+ }
10
+ interface AgentPermissionSummary {
11
+ agentId: string;
12
+ agentName: string;
13
+ tools: AgentToolPermission[];
14
+ highRiskCount: number;
15
+ mediumRiskCount: number;
16
+ lowRiskCount: number;
17
+ }
18
+ interface AgentScopeState {
19
+ scope: AgentScope;
20
+ status: AgentScopeStatus;
21
+ kind?: AgentOwnerKind;
22
+ path?: string;
23
+ isInstalled: boolean;
24
+ canInstall: boolean;
25
+ canUninstall: boolean;
26
+ canRemove: boolean;
27
+ canMoveHere: boolean;
28
+ summary?: string;
29
+ }
30
+ interface AgentMarketplaceEntry {
31
+ id: string;
32
+ displayName: string;
33
+ description: string;
34
+ version: string;
35
+ updatedAt: string;
36
+ categoryId?: string;
37
+ isCatalogAgent: boolean;
38
+ recommended: boolean;
39
+ installCount: number;
40
+ ownerScope?: AgentScope;
41
+ ownerKind?: AgentOwnerKind;
42
+ hasConflict: boolean;
43
+ tools: string[];
44
+ source?: "official" | "community" | "local";
45
+ localAgentPath?: string;
46
+ canPublish?: boolean;
47
+ workspaceState: AgentScopeState;
48
+ userState: AgentScopeState;
49
+ }
50
+ interface AgentMarketplaceState {
51
+ configPath: string;
52
+ userAgentsPath: string;
53
+ agents: AgentMarketplaceEntry[];
54
+ installedAgentIds?: string[];
55
+ workspaceOpen?: boolean;
56
+ }
57
+ interface AgentMutationRequest {
58
+ agentId: string;
59
+ targetScope: AgentScope;
60
+ action: AgentMutationAction;
61
+ confirmed?: boolean;
62
+ }
63
+ interface AgentMutationResult {
64
+ state: AgentMarketplaceState;
65
+ agentId: string;
66
+ targetScope: AgentScope;
67
+ action: AgentMutationAction;
68
+ changed: boolean;
69
+ status: "success" | "blocked" | "requires_confirmation";
70
+ message?: string;
71
+ tools?: string[];
72
+ prUrl?: string;
73
+ fromVersion?: string;
74
+ toVersion?: string;
75
+ }
76
+ interface AgentPermissionsResult {
77
+ agentId: string;
78
+ summary: AgentPermissionSummary;
79
+ }
80
+ declare function isAgentMarketplaceState(value: unknown): value is AgentMarketplaceState;
81
+ declare function isAgentMutationRequest(value: unknown): value is AgentMutationRequest;
82
+ declare function isAgentMutationResult(value: unknown): value is AgentMutationResult;
83
+ declare function isAgentPermissionSummary(value: unknown): value is AgentPermissionSummary;
84
+ declare function isAgentPermissionsResult(value: unknown): value is AgentPermissionsResult;
85
+
1
86
  type ServicemeErrorCode = "protocol_mismatch" | "cli_not_found" | "cli_start_failed" | "command_timeout" | "request_cancelled" | "invalid_params" | "opencode_not_installed" | "opencode_startup_timeout" | "opencode_request_failed" | "opencode_backend_not_running" | "opencode_session_not_found" | "copilot_not_installed" | "copilot_auth_required" | "copilot_execution_failed" | "copilot_timeout" | "json_invalid_input" | "env_tool_not_found" | "task_not_found" | "task_already_exists" | "invalid_schedule" | "invalid_payload" | "confirmation_required" | "workspace_not_found" | "daemon_not_running" | "executor_timeout" | "executor_error" | "task_already_running" | "internal_error";
2
87
  declare const SERVICEME_ERROR_CODES: readonly ["protocol_mismatch", "cli_not_found", "cli_start_failed", "command_timeout", "request_cancelled", "invalid_params", "opencode_not_installed", "opencode_startup_timeout", "opencode_request_failed", "opencode_backend_not_running", "opencode_session_not_found", "copilot_not_installed", "copilot_auth_required", "copilot_execution_failed", "copilot_timeout", "json_invalid_input", "env_tool_not_found", "task_not_found", "task_already_exists", "invalid_schedule", "invalid_payload", "confirmation_required", "workspace_not_found", "daemon_not_running", "executor_timeout", "executor_error", "task_already_running", "internal_error"];
3
88
  interface ServicemeErrorDetails {
@@ -215,6 +300,96 @@ declare function isTaskCancelledEventParams(value: unknown): value is TaskCancel
215
300
  type AgentSessionStatus = "idle" | "running" | "needs-input" | "completed" | "failed" | "aborted";
216
301
  declare function isAgentSessionStatus(value: unknown): value is AgentSessionStatus;
217
302
 
303
+ type SkillScope = "workspace" | "user";
304
+ type SkillOwnerKind = "builtin" | "external";
305
+ type SkillScopeStatus = "absent" | "available" | "installed" | "blocked" | "conflict";
306
+ type SkillMutationAction = "install" | "uninstall" | "move" | "removeExternal" | "publish" | "republish" | "submit-to-official";
307
+ interface SkillScopeState {
308
+ scope: SkillScope;
309
+ status: SkillScopeStatus;
310
+ kind?: SkillOwnerKind;
311
+ path?: string;
312
+ isInstalled: boolean;
313
+ canInstall: boolean;
314
+ canUninstall: boolean;
315
+ canRemove: boolean;
316
+ canMoveHere: boolean;
317
+ summary?: string;
318
+ }
319
+ interface SkillMarketplaceEntry {
320
+ id: string;
321
+ displayName: string;
322
+ description: string;
323
+ version: string;
324
+ updatedAt: string;
325
+ categoryId?: string;
326
+ enabled?: boolean;
327
+ isCatalogSkill: boolean;
328
+ recommended: boolean;
329
+ installCount: number;
330
+ requiresSetup?: boolean;
331
+ setupHint?: string;
332
+ homepage?: string;
333
+ ownerScope?: SkillScope;
334
+ ownerKind?: SkillOwnerKind;
335
+ hasConflict: boolean;
336
+ hasScripts?: boolean;
337
+ hasHooks?: boolean;
338
+ source?: "official" | "community" | "local";
339
+ localSkillPath?: string;
340
+ canPublish?: boolean;
341
+ workspaceState: SkillScopeState;
342
+ userState: SkillScopeState;
343
+ }
344
+ interface SkillMarketplaceState {
345
+ configPath: string;
346
+ userSkillsPath: string;
347
+ skills: SkillMarketplaceEntry[];
348
+ enabledSkillIds?: string[];
349
+ recommendedSkillIds?: string[];
350
+ onboardingRequired: boolean;
351
+ hasPersistedSelection: boolean;
352
+ workspaceOpen?: boolean;
353
+ }
354
+ interface SkillMutationRequest {
355
+ skillId: string;
356
+ targetScope: SkillScope;
357
+ action: SkillMutationAction;
358
+ confirmed?: boolean;
359
+ }
360
+ interface SkillMutationResult {
361
+ state: SkillMarketplaceState;
362
+ skillId: string;
363
+ targetScope: SkillScope;
364
+ action: SkillMutationAction;
365
+ changed: boolean;
366
+ status: "success" | "blocked" | "requires_confirmation";
367
+ message?: string;
368
+ hasScripts?: boolean;
369
+ hasHooks?: boolean;
370
+ prUrl?: string;
371
+ fromVersion?: string;
372
+ toVersion?: string;
373
+ }
374
+ interface SkillReconcileResult {
375
+ state: SkillMarketplaceState;
376
+ changed: boolean;
377
+ }
378
+ interface PublishableSkillEntry {
379
+ id: string;
380
+ displayName: string;
381
+ path: string;
382
+ version?: string;
383
+ }
384
+ interface SkillPublishableResult {
385
+ skills: PublishableSkillEntry[];
386
+ }
387
+ declare function isSkillMarketplaceState(value: unknown): value is SkillMarketplaceState;
388
+ declare function isSkillMutationRequest(value: unknown): value is SkillMutationRequest;
389
+ declare function isSkillMutationResult(value: unknown): value is SkillMutationResult;
390
+ declare function isSkillReconcileResult(value: unknown): value is SkillReconcileResult;
391
+ declare function isSkillPublishableResult(value: unknown): value is SkillPublishableResult;
392
+
218
393
  declare const SERVICEME_PROTOCOL_VERSION: 2;
219
394
  type SupportedBridgeProtocolVersion = 1 | 2;
220
395
  interface BridgeCapabilities {
@@ -222,6 +397,8 @@ interface BridgeCapabilities {
222
397
  json: 1;
223
398
  env: 1;
224
399
  tasks?: 1;
400
+ skills?: 1;
401
+ agents?: 1;
225
402
  }
226
403
  declare function isBridgeCapabilities(value: unknown): value is BridgeCapabilities;
227
404
  interface BridgeMethodMap {
@@ -264,8 +441,50 @@ interface BridgeMethodMap {
264
441
  params: Record<string, never>;
265
442
  result: TaskListRunningResult;
266
443
  };
444
+ "skill.marketplace-state": {
445
+ params: {
446
+ workspacePath?: string;
447
+ forceRefresh?: boolean;
448
+ };
449
+ result: SkillMarketplaceState;
450
+ };
451
+ "skill.mutate": {
452
+ params: SkillMutationRequest;
453
+ result: SkillMutationResult;
454
+ };
455
+ "skill.reconcile": {
456
+ params: {
457
+ workspacePath?: string;
458
+ force?: boolean;
459
+ };
460
+ result: SkillReconcileResult;
461
+ };
462
+ "skill.publishable": {
463
+ params: {
464
+ workspacePath?: string;
465
+ };
466
+ result: SkillPublishableResult;
467
+ };
468
+ "agent.marketplace-state": {
469
+ params: {
470
+ workspacePath?: string;
471
+ forceRefresh?: boolean;
472
+ };
473
+ result: AgentMarketplaceState;
474
+ };
475
+ "agent.mutate": {
476
+ params: AgentMutationRequest;
477
+ result: AgentMutationResult;
478
+ };
479
+ "agent.permissions": {
480
+ params: {
481
+ agentId: string;
482
+ scope?: "workspace" | "user";
483
+ };
484
+ result: AgentPermissionSummary;
485
+ };
267
486
  }
268
- declare const BRIDGE_METHODS: readonly ["system.hello", "system.ping", "system.shutdown", "task.execute", "task.cancel", "task.list-running"];
487
+ declare const BRIDGE_METHODS: readonly ["system.hello", "system.ping", "system.shutdown", "task.execute", "task.cancel", "task.list-running", "skill.marketplace-state", "skill.mutate", "skill.reconcile", "skill.publishable", "agent.marketplace-state", "agent.mutate", "agent.permissions"];
269
488
  type BridgeMethod = keyof BridgeMethodMap;
270
489
  type BridgeParams<M extends BridgeMethod> = BridgeMethodMap[M]["params"];
271
490
  type BridgeResult<M extends BridgeMethod> = BridgeMethodMap[M]["result"];
@@ -360,7 +579,7 @@ declare const COPILOT_ERROR_CODES: {
360
579
  readonly TIMEOUT: "copilot_timeout";
361
580
  };
362
581
 
363
- declare const KNOWN_ENVIRONMENT_TOOLS: readonly ["git", "node", "npm", "pnpm", "nvm", "nrm", "dotnet", "nuget"];
582
+ declare const KNOWN_ENVIRONMENT_TOOLS: readonly ["git", "node", "npm", "pnpm", "nvm", "nrm", "rtk", "dotnet", "nuget"];
364
583
  type KnownEnvironmentTool = (typeof KNOWN_ENVIRONMENT_TOOLS)[number];
365
584
  interface ToolCheckResult {
366
585
  installed: boolean;
@@ -427,7 +646,7 @@ declare function isJsonOutputResult(value: unknown): value is {
427
646
  };
428
647
 
429
648
  declare const SERVICEME_CLI_NAME = "serviceme";
430
- declare const SERVICEME_CLI_VERSION = "0.1.4";
649
+ declare const SERVICEME_CLI_VERSION = "0.1.6";
431
650
  declare const SERVICEME_CLI_CAPABILITIES: {
432
651
  readonly bridge: true;
433
652
  readonly tasks: 1;
@@ -470,4 +689,4 @@ declare function isServiceMeProjectInstallDepsResult(value: unknown): value is S
470
689
  declare function isServiceMeProjectExtractTemplateInput(value: unknown): value is ServiceMeProjectExtractTemplateInput;
471
690
  declare function isServiceMeProjectExtractTemplateResult(value: unknown): value is ServiceMeProjectExtractTemplateResult;
472
691
 
473
- export { type AgentSessionStatus, BRIDGE_EVENTS, BRIDGE_METHODS, type BridgeCapabilities, type BridgeErrorResponse, type BridgeEvent, type BridgeEventMap, type BridgeEventName, type BridgeEventParams, type BridgeMessage, type BridgeMethod, type BridgeMethodMap, type BridgeParams, type BridgeRequest, type BridgeResponse, type BridgeResult, type BridgeSuccessResponse, COPILOT_ERROR_CODES, type CliEnvelope, type CliFailure, type CliSuccess, type CommandPayload, type ConcurrencyPolicy, type CopilotDoctorResult, type CopilotPromptOptions, type CopilotPromptResult, DEFAULT_JSON_SORT_OPTIONS, type EnvironmentCheckResult, type GithubCopilotCliPayload, type HttpRequestPayload, JSON_SORT_ALGORITHMS, JSON_SORT_ORDERS, type JsonSortAlgorithm, type JsonSortOptions, type JsonSortOrder, type JsonValidationResult, KNOWN_ENVIRONMENT_TOOLS, type KnownEnvironmentTool, type RunningTaskInfo, SERVICEME_CLI_CAPABILITIES, SERVICEME_CLI_NAME, SERVICEME_CLI_SCHEMA_VERSION, SERVICEME_CLI_VERSION, SERVICEME_ERROR_CODES, SERVICEME_IMAGE_FORMATS, SERVICEME_PROTOCOL_VERSION, type ScheduleCreateDryRunResult, type ScheduleCreateResult, type ScheduleDeleteDryRunResult, type ScheduleDeleteResult, type ScheduleEditDryRunResult, type ScheduleEditResult, type ScheduleGetResult, type ScheduleListResult, type ScheduleLogsResult, type ScheduleToggleResult, type ScheduleTriggerResult, type ScheduledTask, type ScheduledTaskType, type ScheduledTasksConfig, type ScheduledTasksLogFile, type SchedulerStartResult, type SchedulerStatus, type SchedulerStopResult, type ServiceMeImageCompressOptions, type ServiceMeImageCompressResult, type ServiceMeImageFormat, type ServiceMeImageInfo, type ServiceMeImageValidationResult, type ServiceMeProjectExtractTemplateInput, type ServiceMeProjectExtractTemplateResult, type ServiceMeProjectGitInitResult, type ServiceMeProjectInstallDepsResult, type ServiceMeProjectMakeScriptsExecutableResult, type ServiceMeProjectScaffoldPruneResult, type ServicemeErrorCode, type ServicemeErrorDetails, ServicemeProtocolError, type ShellPayload, type SupportedBridgeProtocolVersion, type TaskCancelResult, type TaskCancelledEventParams, type TaskCompletedEventParams, type TaskExecuteResult, type TaskExecutionLog, type TaskExecutionSnapshot, type TaskExecutionStatus, type TaskFailedEventParams, type TaskListRunningResult, type TaskOutputEventParams, type TaskPayload, type TaskStartedEventParams, type TaskTriggerType, type ToolCheckResult, createCliFailure, createCliSuccess, createServicemeError, getBridgeEventParamsValidator, getBridgeResultValidator, isAgentSessionStatus, isBridgeCapabilities, isBridgeEvent, isBridgeEventName, isBridgeMethod, isBridgeRequest, isBridgeResponse, isCliEnvelope, isEnvironmentCheckResult, isJsonOutputResult, isJsonSortAlgorithm, isJsonSortOptions, isJsonSortOrder, isJsonValidationResult, isKnownEnvironmentTool, isRetryableErrorCode, isScheduledTask, isScheduledTaskType, isSchedulerStatus, isServiceMeImageCompressOptions, isServiceMeImageCompressResult, isServiceMeImageFormat, isServiceMeImageInfo, isServiceMeImageValidationResult, isServiceMeProjectExtractTemplateInput, isServiceMeProjectExtractTemplateResult, isServiceMeProjectGitInitResult, isServiceMeProjectInstallDepsResult, isServiceMeProjectMakeScriptsExecutableResult, isServiceMeProjectScaffoldPruneResult, isServicemeErrorCode, isServicemeErrorDetails, isSystemHelloResult, isSystemPingResult, isSystemShutdownResult, isTaskCancelResult, isTaskCancelledEventParams, isTaskCompletedEventParams, isTaskExecuteResult, isTaskExecutionLog, isTaskFailedEventParams, isTaskListRunningResult, isTaskOutputEventParams, isTaskStartedEventParams, isToolCheckResult, normalizeServicemeError };
692
+ export { type AgentMarketplaceEntry, type AgentMarketplaceState, type AgentMutationAction, type AgentMutationRequest, type AgentMutationResult, type AgentOwnerKind, type AgentPermissionSummary, type AgentPermissionsResult, type AgentScope, type AgentScopeState, type AgentScopeStatus, type AgentSessionStatus, type AgentToolPermission, type AgentToolRiskLevel, BRIDGE_EVENTS, BRIDGE_METHODS, type BridgeCapabilities, type BridgeErrorResponse, type BridgeEvent, type BridgeEventMap, type BridgeEventName, type BridgeEventParams, type BridgeMessage, type BridgeMethod, type BridgeMethodMap, type BridgeParams, type BridgeRequest, type BridgeResponse, type BridgeResult, type BridgeSuccessResponse, COPILOT_ERROR_CODES, type CliEnvelope, type CliFailure, type CliSuccess, type CommandPayload, type ConcurrencyPolicy, type CopilotDoctorResult, type CopilotPromptOptions, type CopilotPromptResult, DEFAULT_JSON_SORT_OPTIONS, type EnvironmentCheckResult, type GithubCopilotCliPayload, type HttpRequestPayload, JSON_SORT_ALGORITHMS, JSON_SORT_ORDERS, type JsonSortAlgorithm, type JsonSortOptions, type JsonSortOrder, type JsonValidationResult, KNOWN_ENVIRONMENT_TOOLS, type KnownEnvironmentTool, type PublishableSkillEntry, type RunningTaskInfo, SERVICEME_CLI_CAPABILITIES, SERVICEME_CLI_NAME, SERVICEME_CLI_SCHEMA_VERSION, SERVICEME_CLI_VERSION, SERVICEME_ERROR_CODES, SERVICEME_IMAGE_FORMATS, SERVICEME_PROTOCOL_VERSION, type ScheduleCreateDryRunResult, type ScheduleCreateResult, type ScheduleDeleteDryRunResult, type ScheduleDeleteResult, type ScheduleEditDryRunResult, type ScheduleEditResult, type ScheduleGetResult, type ScheduleListResult, type ScheduleLogsResult, type ScheduleToggleResult, type ScheduleTriggerResult, type ScheduledTask, type ScheduledTaskType, type ScheduledTasksConfig, type ScheduledTasksLogFile, type SchedulerStartResult, type SchedulerStatus, type SchedulerStopResult, type ServiceMeImageCompressOptions, type ServiceMeImageCompressResult, type ServiceMeImageFormat, type ServiceMeImageInfo, type ServiceMeImageValidationResult, type ServiceMeProjectExtractTemplateInput, type ServiceMeProjectExtractTemplateResult, type ServiceMeProjectGitInitResult, type ServiceMeProjectInstallDepsResult, type ServiceMeProjectMakeScriptsExecutableResult, type ServiceMeProjectScaffoldPruneResult, type ServicemeErrorCode, type ServicemeErrorDetails, ServicemeProtocolError, type ShellPayload, type SkillMarketplaceEntry, type SkillMarketplaceState, type SkillMutationAction, type SkillMutationRequest, type SkillMutationResult, type SkillOwnerKind, type SkillPublishableResult, type SkillReconcileResult, type SkillScope, type SkillScopeState, type SkillScopeStatus, type SupportedBridgeProtocolVersion, type TaskCancelResult, type TaskCancelledEventParams, type TaskCompletedEventParams, type TaskExecuteResult, type TaskExecutionLog, type TaskExecutionSnapshot, type TaskExecutionStatus, type TaskFailedEventParams, type TaskListRunningResult, type TaskOutputEventParams, type TaskPayload, type TaskStartedEventParams, type TaskTriggerType, type ToolCheckResult, createCliFailure, createCliSuccess, createServicemeError, getBridgeEventParamsValidator, getBridgeResultValidator, isAgentMarketplaceState, isAgentMutationRequest, isAgentMutationResult, isAgentPermissionSummary, isAgentPermissionsResult, isAgentSessionStatus, isBridgeCapabilities, isBridgeEvent, isBridgeEventName, isBridgeMethod, isBridgeRequest, isBridgeResponse, isCliEnvelope, isEnvironmentCheckResult, isJsonOutputResult, isJsonSortAlgorithm, isJsonSortOptions, isJsonSortOrder, isJsonValidationResult, isKnownEnvironmentTool, isRetryableErrorCode, isScheduledTask, isScheduledTaskType, isSchedulerStatus, isServiceMeImageCompressOptions, isServiceMeImageCompressResult, isServiceMeImageFormat, isServiceMeImageInfo, isServiceMeImageValidationResult, isServiceMeProjectExtractTemplateInput, isServiceMeProjectExtractTemplateResult, isServiceMeProjectGitInitResult, isServiceMeProjectInstallDepsResult, isServiceMeProjectMakeScriptsExecutableResult, isServiceMeProjectScaffoldPruneResult, isServicemeErrorCode, isServicemeErrorDetails, isSkillMarketplaceState, isSkillMutationRequest, isSkillMutationResult, isSkillPublishableResult, isSkillReconcileResult, isSystemHelloResult, isSystemPingResult, isSystemShutdownResult, isTaskCancelResult, isTaskCancelledEventParams, isTaskCompletedEventParams, isTaskExecuteResult, isTaskExecutionLog, isTaskFailedEventParams, isTaskListRunningResult, isTaskOutputEventParams, isTaskStartedEventParams, isToolCheckResult, normalizeServicemeError };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,88 @@
1
+ type AgentScope = "workspace" | "user";
2
+ type AgentOwnerKind = "builtin" | "external";
3
+ type AgentScopeStatus = "absent" | "available" | "installed" | "blocked" | "conflict";
4
+ type AgentMutationAction = "install" | "uninstall" | "move" | "removeExternal" | "publish" | "republish" | "submit-to-official";
5
+ type AgentToolRiskLevel = "high" | "medium" | "low";
6
+ interface AgentToolPermission {
7
+ tool: string;
8
+ riskLevel: AgentToolRiskLevel;
9
+ }
10
+ interface AgentPermissionSummary {
11
+ agentId: string;
12
+ agentName: string;
13
+ tools: AgentToolPermission[];
14
+ highRiskCount: number;
15
+ mediumRiskCount: number;
16
+ lowRiskCount: number;
17
+ }
18
+ interface AgentScopeState {
19
+ scope: AgentScope;
20
+ status: AgentScopeStatus;
21
+ kind?: AgentOwnerKind;
22
+ path?: string;
23
+ isInstalled: boolean;
24
+ canInstall: boolean;
25
+ canUninstall: boolean;
26
+ canRemove: boolean;
27
+ canMoveHere: boolean;
28
+ summary?: string;
29
+ }
30
+ interface AgentMarketplaceEntry {
31
+ id: string;
32
+ displayName: string;
33
+ description: string;
34
+ version: string;
35
+ updatedAt: string;
36
+ categoryId?: string;
37
+ isCatalogAgent: boolean;
38
+ recommended: boolean;
39
+ installCount: number;
40
+ ownerScope?: AgentScope;
41
+ ownerKind?: AgentOwnerKind;
42
+ hasConflict: boolean;
43
+ tools: string[];
44
+ source?: "official" | "community" | "local";
45
+ localAgentPath?: string;
46
+ canPublish?: boolean;
47
+ workspaceState: AgentScopeState;
48
+ userState: AgentScopeState;
49
+ }
50
+ interface AgentMarketplaceState {
51
+ configPath: string;
52
+ userAgentsPath: string;
53
+ agents: AgentMarketplaceEntry[];
54
+ installedAgentIds?: string[];
55
+ workspaceOpen?: boolean;
56
+ }
57
+ interface AgentMutationRequest {
58
+ agentId: string;
59
+ targetScope: AgentScope;
60
+ action: AgentMutationAction;
61
+ confirmed?: boolean;
62
+ }
63
+ interface AgentMutationResult {
64
+ state: AgentMarketplaceState;
65
+ agentId: string;
66
+ targetScope: AgentScope;
67
+ action: AgentMutationAction;
68
+ changed: boolean;
69
+ status: "success" | "blocked" | "requires_confirmation";
70
+ message?: string;
71
+ tools?: string[];
72
+ prUrl?: string;
73
+ fromVersion?: string;
74
+ toVersion?: string;
75
+ }
76
+ interface AgentPermissionsResult {
77
+ agentId: string;
78
+ summary: AgentPermissionSummary;
79
+ }
80
+ declare function isAgentMarketplaceState(value: unknown): value is AgentMarketplaceState;
81
+ declare function isAgentMutationRequest(value: unknown): value is AgentMutationRequest;
82
+ declare function isAgentMutationResult(value: unknown): value is AgentMutationResult;
83
+ declare function isAgentPermissionSummary(value: unknown): value is AgentPermissionSummary;
84
+ declare function isAgentPermissionsResult(value: unknown): value is AgentPermissionsResult;
85
+
1
86
  type ServicemeErrorCode = "protocol_mismatch" | "cli_not_found" | "cli_start_failed" | "command_timeout" | "request_cancelled" | "invalid_params" | "opencode_not_installed" | "opencode_startup_timeout" | "opencode_request_failed" | "opencode_backend_not_running" | "opencode_session_not_found" | "copilot_not_installed" | "copilot_auth_required" | "copilot_execution_failed" | "copilot_timeout" | "json_invalid_input" | "env_tool_not_found" | "task_not_found" | "task_already_exists" | "invalid_schedule" | "invalid_payload" | "confirmation_required" | "workspace_not_found" | "daemon_not_running" | "executor_timeout" | "executor_error" | "task_already_running" | "internal_error";
2
87
  declare const SERVICEME_ERROR_CODES: readonly ["protocol_mismatch", "cli_not_found", "cli_start_failed", "command_timeout", "request_cancelled", "invalid_params", "opencode_not_installed", "opencode_startup_timeout", "opencode_request_failed", "opencode_backend_not_running", "opencode_session_not_found", "copilot_not_installed", "copilot_auth_required", "copilot_execution_failed", "copilot_timeout", "json_invalid_input", "env_tool_not_found", "task_not_found", "task_already_exists", "invalid_schedule", "invalid_payload", "confirmation_required", "workspace_not_found", "daemon_not_running", "executor_timeout", "executor_error", "task_already_running", "internal_error"];
3
88
  interface ServicemeErrorDetails {
@@ -215,6 +300,96 @@ declare function isTaskCancelledEventParams(value: unknown): value is TaskCancel
215
300
  type AgentSessionStatus = "idle" | "running" | "needs-input" | "completed" | "failed" | "aborted";
216
301
  declare function isAgentSessionStatus(value: unknown): value is AgentSessionStatus;
217
302
 
303
+ type SkillScope = "workspace" | "user";
304
+ type SkillOwnerKind = "builtin" | "external";
305
+ type SkillScopeStatus = "absent" | "available" | "installed" | "blocked" | "conflict";
306
+ type SkillMutationAction = "install" | "uninstall" | "move" | "removeExternal" | "publish" | "republish" | "submit-to-official";
307
+ interface SkillScopeState {
308
+ scope: SkillScope;
309
+ status: SkillScopeStatus;
310
+ kind?: SkillOwnerKind;
311
+ path?: string;
312
+ isInstalled: boolean;
313
+ canInstall: boolean;
314
+ canUninstall: boolean;
315
+ canRemove: boolean;
316
+ canMoveHere: boolean;
317
+ summary?: string;
318
+ }
319
+ interface SkillMarketplaceEntry {
320
+ id: string;
321
+ displayName: string;
322
+ description: string;
323
+ version: string;
324
+ updatedAt: string;
325
+ categoryId?: string;
326
+ enabled?: boolean;
327
+ isCatalogSkill: boolean;
328
+ recommended: boolean;
329
+ installCount: number;
330
+ requiresSetup?: boolean;
331
+ setupHint?: string;
332
+ homepage?: string;
333
+ ownerScope?: SkillScope;
334
+ ownerKind?: SkillOwnerKind;
335
+ hasConflict: boolean;
336
+ hasScripts?: boolean;
337
+ hasHooks?: boolean;
338
+ source?: "official" | "community" | "local";
339
+ localSkillPath?: string;
340
+ canPublish?: boolean;
341
+ workspaceState: SkillScopeState;
342
+ userState: SkillScopeState;
343
+ }
344
+ interface SkillMarketplaceState {
345
+ configPath: string;
346
+ userSkillsPath: string;
347
+ skills: SkillMarketplaceEntry[];
348
+ enabledSkillIds?: string[];
349
+ recommendedSkillIds?: string[];
350
+ onboardingRequired: boolean;
351
+ hasPersistedSelection: boolean;
352
+ workspaceOpen?: boolean;
353
+ }
354
+ interface SkillMutationRequest {
355
+ skillId: string;
356
+ targetScope: SkillScope;
357
+ action: SkillMutationAction;
358
+ confirmed?: boolean;
359
+ }
360
+ interface SkillMutationResult {
361
+ state: SkillMarketplaceState;
362
+ skillId: string;
363
+ targetScope: SkillScope;
364
+ action: SkillMutationAction;
365
+ changed: boolean;
366
+ status: "success" | "blocked" | "requires_confirmation";
367
+ message?: string;
368
+ hasScripts?: boolean;
369
+ hasHooks?: boolean;
370
+ prUrl?: string;
371
+ fromVersion?: string;
372
+ toVersion?: string;
373
+ }
374
+ interface SkillReconcileResult {
375
+ state: SkillMarketplaceState;
376
+ changed: boolean;
377
+ }
378
+ interface PublishableSkillEntry {
379
+ id: string;
380
+ displayName: string;
381
+ path: string;
382
+ version?: string;
383
+ }
384
+ interface SkillPublishableResult {
385
+ skills: PublishableSkillEntry[];
386
+ }
387
+ declare function isSkillMarketplaceState(value: unknown): value is SkillMarketplaceState;
388
+ declare function isSkillMutationRequest(value: unknown): value is SkillMutationRequest;
389
+ declare function isSkillMutationResult(value: unknown): value is SkillMutationResult;
390
+ declare function isSkillReconcileResult(value: unknown): value is SkillReconcileResult;
391
+ declare function isSkillPublishableResult(value: unknown): value is SkillPublishableResult;
392
+
218
393
  declare const SERVICEME_PROTOCOL_VERSION: 2;
219
394
  type SupportedBridgeProtocolVersion = 1 | 2;
220
395
  interface BridgeCapabilities {
@@ -222,6 +397,8 @@ interface BridgeCapabilities {
222
397
  json: 1;
223
398
  env: 1;
224
399
  tasks?: 1;
400
+ skills?: 1;
401
+ agents?: 1;
225
402
  }
226
403
  declare function isBridgeCapabilities(value: unknown): value is BridgeCapabilities;
227
404
  interface BridgeMethodMap {
@@ -264,8 +441,50 @@ interface BridgeMethodMap {
264
441
  params: Record<string, never>;
265
442
  result: TaskListRunningResult;
266
443
  };
444
+ "skill.marketplace-state": {
445
+ params: {
446
+ workspacePath?: string;
447
+ forceRefresh?: boolean;
448
+ };
449
+ result: SkillMarketplaceState;
450
+ };
451
+ "skill.mutate": {
452
+ params: SkillMutationRequest;
453
+ result: SkillMutationResult;
454
+ };
455
+ "skill.reconcile": {
456
+ params: {
457
+ workspacePath?: string;
458
+ force?: boolean;
459
+ };
460
+ result: SkillReconcileResult;
461
+ };
462
+ "skill.publishable": {
463
+ params: {
464
+ workspacePath?: string;
465
+ };
466
+ result: SkillPublishableResult;
467
+ };
468
+ "agent.marketplace-state": {
469
+ params: {
470
+ workspacePath?: string;
471
+ forceRefresh?: boolean;
472
+ };
473
+ result: AgentMarketplaceState;
474
+ };
475
+ "agent.mutate": {
476
+ params: AgentMutationRequest;
477
+ result: AgentMutationResult;
478
+ };
479
+ "agent.permissions": {
480
+ params: {
481
+ agentId: string;
482
+ scope?: "workspace" | "user";
483
+ };
484
+ result: AgentPermissionSummary;
485
+ };
267
486
  }
268
- declare const BRIDGE_METHODS: readonly ["system.hello", "system.ping", "system.shutdown", "task.execute", "task.cancel", "task.list-running"];
487
+ declare const BRIDGE_METHODS: readonly ["system.hello", "system.ping", "system.shutdown", "task.execute", "task.cancel", "task.list-running", "skill.marketplace-state", "skill.mutate", "skill.reconcile", "skill.publishable", "agent.marketplace-state", "agent.mutate", "agent.permissions"];
269
488
  type BridgeMethod = keyof BridgeMethodMap;
270
489
  type BridgeParams<M extends BridgeMethod> = BridgeMethodMap[M]["params"];
271
490
  type BridgeResult<M extends BridgeMethod> = BridgeMethodMap[M]["result"];
@@ -360,7 +579,7 @@ declare const COPILOT_ERROR_CODES: {
360
579
  readonly TIMEOUT: "copilot_timeout";
361
580
  };
362
581
 
363
- declare const KNOWN_ENVIRONMENT_TOOLS: readonly ["git", "node", "npm", "pnpm", "nvm", "nrm", "dotnet", "nuget"];
582
+ declare const KNOWN_ENVIRONMENT_TOOLS: readonly ["git", "node", "npm", "pnpm", "nvm", "nrm", "rtk", "dotnet", "nuget"];
364
583
  type KnownEnvironmentTool = (typeof KNOWN_ENVIRONMENT_TOOLS)[number];
365
584
  interface ToolCheckResult {
366
585
  installed: boolean;
@@ -427,7 +646,7 @@ declare function isJsonOutputResult(value: unknown): value is {
427
646
  };
428
647
 
429
648
  declare const SERVICEME_CLI_NAME = "serviceme";
430
- declare const SERVICEME_CLI_VERSION = "0.1.4";
649
+ declare const SERVICEME_CLI_VERSION = "0.1.6";
431
650
  declare const SERVICEME_CLI_CAPABILITIES: {
432
651
  readonly bridge: true;
433
652
  readonly tasks: 1;
@@ -470,4 +689,4 @@ declare function isServiceMeProjectInstallDepsResult(value: unknown): value is S
470
689
  declare function isServiceMeProjectExtractTemplateInput(value: unknown): value is ServiceMeProjectExtractTemplateInput;
471
690
  declare function isServiceMeProjectExtractTemplateResult(value: unknown): value is ServiceMeProjectExtractTemplateResult;
472
691
 
473
- export { type AgentSessionStatus, BRIDGE_EVENTS, BRIDGE_METHODS, type BridgeCapabilities, type BridgeErrorResponse, type BridgeEvent, type BridgeEventMap, type BridgeEventName, type BridgeEventParams, type BridgeMessage, type BridgeMethod, type BridgeMethodMap, type BridgeParams, type BridgeRequest, type BridgeResponse, type BridgeResult, type BridgeSuccessResponse, COPILOT_ERROR_CODES, type CliEnvelope, type CliFailure, type CliSuccess, type CommandPayload, type ConcurrencyPolicy, type CopilotDoctorResult, type CopilotPromptOptions, type CopilotPromptResult, DEFAULT_JSON_SORT_OPTIONS, type EnvironmentCheckResult, type GithubCopilotCliPayload, type HttpRequestPayload, JSON_SORT_ALGORITHMS, JSON_SORT_ORDERS, type JsonSortAlgorithm, type JsonSortOptions, type JsonSortOrder, type JsonValidationResult, KNOWN_ENVIRONMENT_TOOLS, type KnownEnvironmentTool, type RunningTaskInfo, SERVICEME_CLI_CAPABILITIES, SERVICEME_CLI_NAME, SERVICEME_CLI_SCHEMA_VERSION, SERVICEME_CLI_VERSION, SERVICEME_ERROR_CODES, SERVICEME_IMAGE_FORMATS, SERVICEME_PROTOCOL_VERSION, type ScheduleCreateDryRunResult, type ScheduleCreateResult, type ScheduleDeleteDryRunResult, type ScheduleDeleteResult, type ScheduleEditDryRunResult, type ScheduleEditResult, type ScheduleGetResult, type ScheduleListResult, type ScheduleLogsResult, type ScheduleToggleResult, type ScheduleTriggerResult, type ScheduledTask, type ScheduledTaskType, type ScheduledTasksConfig, type ScheduledTasksLogFile, type SchedulerStartResult, type SchedulerStatus, type SchedulerStopResult, type ServiceMeImageCompressOptions, type ServiceMeImageCompressResult, type ServiceMeImageFormat, type ServiceMeImageInfo, type ServiceMeImageValidationResult, type ServiceMeProjectExtractTemplateInput, type ServiceMeProjectExtractTemplateResult, type ServiceMeProjectGitInitResult, type ServiceMeProjectInstallDepsResult, type ServiceMeProjectMakeScriptsExecutableResult, type ServiceMeProjectScaffoldPruneResult, type ServicemeErrorCode, type ServicemeErrorDetails, ServicemeProtocolError, type ShellPayload, type SupportedBridgeProtocolVersion, type TaskCancelResult, type TaskCancelledEventParams, type TaskCompletedEventParams, type TaskExecuteResult, type TaskExecutionLog, type TaskExecutionSnapshot, type TaskExecutionStatus, type TaskFailedEventParams, type TaskListRunningResult, type TaskOutputEventParams, type TaskPayload, type TaskStartedEventParams, type TaskTriggerType, type ToolCheckResult, createCliFailure, createCliSuccess, createServicemeError, getBridgeEventParamsValidator, getBridgeResultValidator, isAgentSessionStatus, isBridgeCapabilities, isBridgeEvent, isBridgeEventName, isBridgeMethod, isBridgeRequest, isBridgeResponse, isCliEnvelope, isEnvironmentCheckResult, isJsonOutputResult, isJsonSortAlgorithm, isJsonSortOptions, isJsonSortOrder, isJsonValidationResult, isKnownEnvironmentTool, isRetryableErrorCode, isScheduledTask, isScheduledTaskType, isSchedulerStatus, isServiceMeImageCompressOptions, isServiceMeImageCompressResult, isServiceMeImageFormat, isServiceMeImageInfo, isServiceMeImageValidationResult, isServiceMeProjectExtractTemplateInput, isServiceMeProjectExtractTemplateResult, isServiceMeProjectGitInitResult, isServiceMeProjectInstallDepsResult, isServiceMeProjectMakeScriptsExecutableResult, isServiceMeProjectScaffoldPruneResult, isServicemeErrorCode, isServicemeErrorDetails, isSystemHelloResult, isSystemPingResult, isSystemShutdownResult, isTaskCancelResult, isTaskCancelledEventParams, isTaskCompletedEventParams, isTaskExecuteResult, isTaskExecutionLog, isTaskFailedEventParams, isTaskListRunningResult, isTaskOutputEventParams, isTaskStartedEventParams, isToolCheckResult, normalizeServicemeError };
692
+ export { type AgentMarketplaceEntry, type AgentMarketplaceState, type AgentMutationAction, type AgentMutationRequest, type AgentMutationResult, type AgentOwnerKind, type AgentPermissionSummary, type AgentPermissionsResult, type AgentScope, type AgentScopeState, type AgentScopeStatus, type AgentSessionStatus, type AgentToolPermission, type AgentToolRiskLevel, BRIDGE_EVENTS, BRIDGE_METHODS, type BridgeCapabilities, type BridgeErrorResponse, type BridgeEvent, type BridgeEventMap, type BridgeEventName, type BridgeEventParams, type BridgeMessage, type BridgeMethod, type BridgeMethodMap, type BridgeParams, type BridgeRequest, type BridgeResponse, type BridgeResult, type BridgeSuccessResponse, COPILOT_ERROR_CODES, type CliEnvelope, type CliFailure, type CliSuccess, type CommandPayload, type ConcurrencyPolicy, type CopilotDoctorResult, type CopilotPromptOptions, type CopilotPromptResult, DEFAULT_JSON_SORT_OPTIONS, type EnvironmentCheckResult, type GithubCopilotCliPayload, type HttpRequestPayload, JSON_SORT_ALGORITHMS, JSON_SORT_ORDERS, type JsonSortAlgorithm, type JsonSortOptions, type JsonSortOrder, type JsonValidationResult, KNOWN_ENVIRONMENT_TOOLS, type KnownEnvironmentTool, type PublishableSkillEntry, type RunningTaskInfo, SERVICEME_CLI_CAPABILITIES, SERVICEME_CLI_NAME, SERVICEME_CLI_SCHEMA_VERSION, SERVICEME_CLI_VERSION, SERVICEME_ERROR_CODES, SERVICEME_IMAGE_FORMATS, SERVICEME_PROTOCOL_VERSION, type ScheduleCreateDryRunResult, type ScheduleCreateResult, type ScheduleDeleteDryRunResult, type ScheduleDeleteResult, type ScheduleEditDryRunResult, type ScheduleEditResult, type ScheduleGetResult, type ScheduleListResult, type ScheduleLogsResult, type ScheduleToggleResult, type ScheduleTriggerResult, type ScheduledTask, type ScheduledTaskType, type ScheduledTasksConfig, type ScheduledTasksLogFile, type SchedulerStartResult, type SchedulerStatus, type SchedulerStopResult, type ServiceMeImageCompressOptions, type ServiceMeImageCompressResult, type ServiceMeImageFormat, type ServiceMeImageInfo, type ServiceMeImageValidationResult, type ServiceMeProjectExtractTemplateInput, type ServiceMeProjectExtractTemplateResult, type ServiceMeProjectGitInitResult, type ServiceMeProjectInstallDepsResult, type ServiceMeProjectMakeScriptsExecutableResult, type ServiceMeProjectScaffoldPruneResult, type ServicemeErrorCode, type ServicemeErrorDetails, ServicemeProtocolError, type ShellPayload, type SkillMarketplaceEntry, type SkillMarketplaceState, type SkillMutationAction, type SkillMutationRequest, type SkillMutationResult, type SkillOwnerKind, type SkillPublishableResult, type SkillReconcileResult, type SkillScope, type SkillScopeState, type SkillScopeStatus, type SupportedBridgeProtocolVersion, type TaskCancelResult, type TaskCancelledEventParams, type TaskCompletedEventParams, type TaskExecuteResult, type TaskExecutionLog, type TaskExecutionSnapshot, type TaskExecutionStatus, type TaskFailedEventParams, type TaskListRunningResult, type TaskOutputEventParams, type TaskPayload, type TaskStartedEventParams, type TaskTriggerType, type ToolCheckResult, createCliFailure, createCliSuccess, createServicemeError, getBridgeEventParamsValidator, getBridgeResultValidator, isAgentMarketplaceState, isAgentMutationRequest, isAgentMutationResult, isAgentPermissionSummary, isAgentPermissionsResult, isAgentSessionStatus, isBridgeCapabilities, isBridgeEvent, isBridgeEventName, isBridgeMethod, isBridgeRequest, isBridgeResponse, isCliEnvelope, isEnvironmentCheckResult, isJsonOutputResult, isJsonSortAlgorithm, isJsonSortOptions, isJsonSortOrder, isJsonValidationResult, isKnownEnvironmentTool, isRetryableErrorCode, isScheduledTask, isScheduledTaskType, isSchedulerStatus, isServiceMeImageCompressOptions, isServiceMeImageCompressResult, isServiceMeImageFormat, isServiceMeImageInfo, isServiceMeImageValidationResult, isServiceMeProjectExtractTemplateInput, isServiceMeProjectExtractTemplateResult, isServiceMeProjectGitInitResult, isServiceMeProjectInstallDepsResult, isServiceMeProjectMakeScriptsExecutableResult, isServiceMeProjectScaffoldPruneResult, isServicemeErrorCode, isServicemeErrorDetails, isSkillMarketplaceState, isSkillMutationRequest, isSkillMutationResult, isSkillPublishableResult, isSkillReconcileResult, isSystemHelloResult, isSystemPingResult, isSystemShutdownResult, isTaskCancelResult, isTaskCancelledEventParams, isTaskCompletedEventParams, isTaskExecuteResult, isTaskExecutionLog, isTaskFailedEventParams, isTaskListRunningResult, isTaskOutputEventParams, isTaskStartedEventParams, isToolCheckResult, normalizeServicemeError };