@serviceme/devtools-protocol 0.4.3 → 0.4.5

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,20 +1,11 @@
1
+ import { AgentPermissionSummary, BridgeSkillKind, BridgeSkillRepoEntry, BridgeSkillRepoFile, BridgeLinkMode, BridgeLinkedSkill, BridgeRepoEntry, BridgeRepoSyncPull, TaskExecutionLog, ScheduledTaskType, TaskPayload, ScheduledTask, ScheduledTaskV1, ScheduledTasksConfig, TaskWorkspaceRef } from '@serviceme/devtools-shared';
2
+ export { AgentPermissionSummary, AgentToolPermission, AgentToolRiskLevel, BridgeLinkMode, BridgeLinkedSkill, BridgeRepoEntry, BridgeRepoSyncPull, BridgeSkillKind, BridgeSkillRepoEntry, BridgeSkillRepoFile, CommandPayload, GithubCopilotCliPayload, HttpRequestPayload, ScheduledTask, ScheduledTaskType, ScheduledTaskV1, ScheduledTasksConfig, ShellPayload, TaskExecutionLog, TaskExecutionStatus, TaskPayload, TaskRunStatus, TaskWorkspaceRef } from '@serviceme/devtools-shared';
3
+
1
4
  type AgentScope = "workspace" | "user";
2
5
  type AgentOwnerKind = "builtin" | "external";
3
6
  type AgentScopeStatus = "absent" | "available" | "installed" | "blocked" | "conflict";
4
7
  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
- }
8
+
18
9
  interface AgentScopeState {
19
10
  scope: AgentScope;
20
11
  status: AgentScopeStatus;
@@ -126,7 +117,7 @@ type DeviceSecret = string & {
126
117
  * Auth protocol — Phase 5.1 cross-process contract.
127
118
  *
128
119
  * Per ADL-003 these pure data models live in `@serviceme/devtools-protocol`,
129
- * NOT `@serviceme/shared`. Per ADL-004 the auth token byte string **never**
120
+ * NOT `@serviceme/devtools-shared`. Per ADL-004 the auth token byte string **never**
130
121
  * crosses the bridge or any protocol payload — it lives only in OS keychain
131
122
  * (CLI) or VSCode SecretStorage (Extension). `SecretToken` is a TypeScript
132
123
  * phantom brand used purely as a static-typing guarantee against accidental
@@ -316,45 +307,11 @@ declare function isAuthSwitchResult(value: unknown): value is AuthSwitchResult;
316
307
  * are deliberately structural (no zod) so the protocol package
317
308
  * stays zero-dep.
318
309
  */
319
- /** Kinds of artifacts in the catalog. */
320
- type BridgeSkillKind = "skill" | "agent";
321
- /** Which side of the link is reported. Matches SkillLinker's `LinkMode`. */
322
- type BridgeLinkMode = "symlink" | "junction" | "copy";
310
+
323
311
  /** A single skill/agent entry inside a repo (SkillStore.SkillEntry). */
324
- interface BridgeSkillRepoEntry {
325
- repoId: string;
326
- name: string;
327
- kind: BridgeSkillKind;
328
- /** Absolute path to the manifest file. */
329
- manifestPath: string;
330
- /** Absolute path to the entry's directory. */
331
- dir: string;
332
- /** Best-effort parsed frontmatter. */
333
- frontmatter: Record<string, unknown>;
334
- /** ISO timestamp of the manifest's mtime. */
335
- modifiedAt: string;
336
- }
337
- /** A single file inside an entry (SkillStore.SkillFile). */
338
- interface BridgeSkillRepoFile {
339
- /** Path relative to the entry's directory. */
340
- path: string;
341
- /** UTF-8 content. */
342
- content: string;
343
- }
344
- /** Detailed view: entry + all the files inside it. */
345
312
  interface BridgeSkillRepoDetail extends BridgeSkillRepoEntry {
346
313
  files: BridgeSkillRepoFile[];
347
314
  }
348
- /** A symlink/junction currently present in a workspace or user (global) scope. */
349
- interface BridgeLinkedSkill {
350
- repoId: string;
351
- name: string;
352
- linkPath: string;
353
- targetPath: string;
354
- mode: BridgeLinkMode;
355
- /** Which scope this link lives in — "workspace" or "user" (global, `~/.agents/...`). */
356
- scope: "workspace" | "user";
357
- }
358
315
  /** `skillRepo.list` — enumerate available skills/agents. */
359
316
  interface SkillRepoListParams {
360
317
  /** Restrict to one repo; omit to list across all. */
@@ -496,30 +453,6 @@ interface SkillRepoDraftDeleteParams {
496
453
  interface SkillRepoDraftDeleteResult {
497
454
  deleted: true;
498
455
  }
499
- /** A single entry from `repos.json` (subset of RepoConfig). */
500
- interface BridgeRepoEntry {
501
- id: string;
502
- name: string;
503
- url: string;
504
- branch: string;
505
- enabled: boolean;
506
- useProxy?: boolean;
507
- writeEnabled: boolean;
508
- source: "default" | "user";
509
- description?: string;
510
- addedAt: string;
511
- lastSyncAt?: string;
512
- lastSyncCommitSha?: string;
513
- lastSyncStatus?: "ok" | "error";
514
- lastSyncError?: string;
515
- }
516
- /** A single line of a sync run. */
517
- interface BridgeRepoSyncPull {
518
- repoId: string;
519
- status: "ok" | "error";
520
- commitSha?: string;
521
- error?: string;
522
- }
523
456
  /** `repo.list` — enumerate known repos. */
524
457
  interface RepoListParams {
525
458
  /** Optional source filter; default includes both. */
@@ -535,6 +468,8 @@ interface RepoAddParams {
535
468
  branch?: string;
536
469
  /** Optional display name. */
537
470
  name?: string;
471
+ /** Whether the repo participates in scheduled syncs. Defaults to true. */
472
+ enabled?: boolean;
538
473
  /** Route git traffic via the server proxy (default true). */
539
474
  useProxy?: boolean;
540
475
  }
@@ -624,7 +559,7 @@ declare function isRepoSyncAllParams(value: unknown): value is RepoSyncAllParams
624
559
  * Device protocol — Phase 5.1 cross-process contract.
625
560
  *
626
561
  * Per ADL-003 these pure data models live in `@serviceme/devtools-protocol`,
627
- * NOT `@serviceme/shared`. Per `2.需求澄清.md` §1.2 the binding-state
562
+ * NOT `@serviceme/devtools-shared`. Per `2.需求澄清.md` §1.2 the binding-state
628
563
  * machine is `anonymous → pending → claimed → expired` and `rotate-secret`
629
564
  * keeps the old HMAC secret for a 7-day grace window for in-flight
630
565
  * requests. HMAC secret bytes **never** cross the bridge — only
@@ -743,114 +678,10 @@ declare class ServicemeProtocolError extends Error {
743
678
  declare function createServicemeError(code: ServicemeErrorCode, message: string, details?: unknown): ServicemeProtocolError;
744
679
  declare function normalizeServicemeError(error: unknown, fallbackCode?: ServicemeErrorCode): ServicemeErrorDetails;
745
680
 
746
- type ScheduledTaskType = "command" | "shell" | "http_request" | "github_copilot_cli";
747
- interface CommandPayload {
748
- command: string;
749
- args?: unknown[];
750
- }
751
- interface ShellPayload {
752
- script: string;
753
- cwd?: string;
754
- /** Timeout in seconds. Omit for default 60s; use 0 for no limit. */
755
- timeout?: number;
756
- }
757
- interface HttpRequestPayload {
758
- url: string;
759
- method: string;
760
- headers?: Record<string, string>;
761
- body?: string;
762
- /** Timeout in seconds. Omit for default 30s; use 0 for no limit. */
763
- timeout?: number;
764
- }
765
- interface GithubCopilotCliPayload {
766
- prompt: string;
767
- workspace?: string;
768
- autopilot?: boolean;
769
- allowTools?: string[];
770
- /** Timeout in seconds. Omit for default 300s; use 0 for no limit. */
771
- timeout?: number;
772
- model?: string;
773
- agent?: string;
774
- }
775
- type TaskPayload = CommandPayload | ShellPayload | HttpRequestPayload | GithubCopilotCliPayload;
776
- /**
777
- * Reference to the workspace a scheduled task is bound to. Required by v2
778
- * because the global scheduler runs tasks across many workspaces and needs to
779
- * know where to execute each one.
780
- */
781
- interface TaskWorkspaceRef {
782
- /** Absolute path to the workspace root. Required and unique. */
783
- path: string;
784
- /** Display name. Defaults to `path` basename; users may override. */
785
- name: string;
786
- /** `git@github.com:owner/repo.git` — auto-detected at task creation. */
787
- gitRemote?: string;
788
- /** Current branch — auto-detected at task creation; verified at execute. */
789
- gitBranch?: string;
790
- /** Last time the extension saw this workspace alive. */
791
- lastSeenAt?: string;
792
- }
793
- /**
794
- * v1 task shape — kept for reading legacy `<workspace>/.serviceme/scheduled-tasks.json`
795
- * during migration. New code should always use {@link ScheduledTask} (v2).
796
- */
797
- interface ScheduledTaskV1 {
798
- id: string;
799
- name: string;
800
- description?: string;
801
- enabled: boolean;
802
- scheduleType: "cron" | "interval";
803
- schedule: string;
804
- taskType: ScheduledTaskType;
805
- payload: TaskPayload;
806
- createdAt: string;
807
- updatedAt: string;
808
- }
809
- /** Runtime status of the most recent execution for a task. */
810
- type TaskRunStatus = "ok" | "error" | "skipped";
811
- /**
812
- * v2 scheduled task — adds required `workspace` reference and runtime metadata
813
- * fields. See `docs/architecture/skill-agent-v2-repo.md` §14.2.
814
- */
815
- interface ScheduledTask extends ScheduledTaskV1 {
816
- /** Required in v2. The workspace this task executes in. */
817
- workspace: TaskWorkspaceRef;
818
- /** ISO timestamp of the most recent execution. */
819
- lastRunAt?: string;
820
- /** Status of the most recent execution. */
821
- lastRunStatus?: TaskRunStatus;
822
- /** Error message from the most recent failed execution. */
823
- lastRunError?: string;
824
- /** Duration of the most recent execution, in milliseconds. */
825
- lastRunDurationMs?: number;
826
- /** Next scheduled run (computed by scheduler). */
827
- nextRunAt?: string;
828
- /** Total successful executions. */
829
- runCount?: number;
830
- }
831
- /**
832
- * v1 config — kept for migration. New code should use {@link ScheduledTasksConfig}.
833
- */
834
681
  interface ScheduledTasksConfigV1 {
835
682
  version: 1;
836
683
  tasks: ScheduledTaskV1[];
837
684
  }
838
- /** v2 config — single source of truth for the global scheduler. */
839
- interface ScheduledTasksConfig {
840
- version: 2;
841
- tasks: ScheduledTask[];
842
- }
843
- type TaskExecutionStatus = "running" | "success" | "failure" | "timeout" | "cancelled";
844
- interface TaskExecutionLog {
845
- id: string;
846
- taskId: string;
847
- taskName: string;
848
- startedAt: string;
849
- finishedAt: string;
850
- status: Exclude<TaskExecutionStatus, "running">;
851
- output?: string;
852
- error?: string;
853
- }
854
685
  interface ScheduledTasksLogFile {
855
686
  logs: TaskExecutionLog[];
856
687
  }
@@ -1035,7 +866,7 @@ declare function migrateV1ToV2(v1Config: ScheduledTasksConfigV1, workspace: Task
1035
866
  * Toolbox protocol — Phase 5.1 cross-process contract.
1036
867
  *
1037
868
  * Per ADL-003 + `2.需求澄清.md` §2.1 these pure data models live in
1038
- * `@serviceme/devtools-protocol`, NOT `@serviceme/shared`. Toolbox scope
869
+ * `@serviceme/devtools-protocol`, NOT `@serviceme/devtools-shared`. Toolbox scope
1039
870
  * is preserved (both `user` and `workspace` accepted); see
1040
871
  * `~/.config/serviceme/toolbox.json` + `.github/.serviceme-toolbox.json`
1041
872
  * for the persistence layout.
@@ -1584,7 +1415,7 @@ interface LocalPublishableAgent {
1584
1415
  }
1585
1416
 
1586
1417
  declare const SERVICEME_CLI_NAME = "serviceme";
1587
- declare const SERVICEME_CLI_VERSION = "0.4.3";
1418
+ declare const SERVICEME_CLI_VERSION = "0.4.5";
1588
1419
  declare const SERVICEME_CLI_CAPABILITIES: {
1589
1420
  readonly bridge: true;
1590
1421
  readonly tasks: 1;
@@ -1717,4 +1548,4 @@ declare function isSkillMutationResult(value: unknown): value is SkillMutationRe
1717
1548
  declare function isSkillReconcileResult(value: unknown): value is SkillReconcileResult;
1718
1549
  declare function isSkillPublishableResult(value: unknown): value is SkillPublishableResult;
1719
1550
 
1720
- export { AUTH_PROVIDERS, type AgentDownloadFile, 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, type AuthAccountMeta, type AuthLoginParams, type AuthLoginResult, type AuthLogoutParams, type AuthLogoutResult, type AuthProvider, type AuthSessionHandle, type AuthStatus, type AuthStatusParams, type AuthSwitchParams, type AuthSwitchResult, type AuthTokenEnvelope, type AuthWhoamiResult, BRIDGE_EVENTS, BRIDGE_METHODS, type BridgeCapabilities, type BridgeErrorResponse, type BridgeEvent, type BridgeEventMap, type BridgeEventName, type BridgeEventParams, type BridgeLinkMode, type BridgeLinkedSkill, type BridgeMessage, type BridgeMethod, type BridgeMethodMap, type BridgeParams, type BridgeRepoEntry, type BridgeRepoSyncPull, type BridgeRequest, type BridgeResponse, type BridgeResult, type BridgeSkillKind, type BridgeSkillRepoDetail, type BridgeSkillRepoEntry, type BridgeSkillRepoFile, 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, DEVICE_BINDING_STATES, type DeviceBindingState, type DeviceEnrollParams, type DeviceEnrollResult, type DeviceIdentityState, type DeviceMetadata, type DeviceRotateSecretParams, type DeviceRotateSecretResult, type DeviceSecret, type DeviceStatus, type DeviceStatusParams, type EnvironmentCheckResult, type ExternalTool, type ExternalToolPatch, type GithubCopilotCliPayload, type HttpRequestPayload, JSON_SORT_ALGORITHMS, JSON_SORT_ORDERS, type JsonSortAlgorithm, type JsonSortOptions, type JsonSortOrder, type JsonValidationResult, KNOWN_ENVIRONMENT_TOOLS, type KnownEnvironmentTool, type LocalPublishableAgent, type LocalPublishableSkill, type MarketplaceAgentItem, type MarketplaceAgentsCatalog, type MarketplaceCatalog, type MarketplaceSkillItem, type MigratedTask, type PublishableSkillEntry, type RepoAddParams, type RepoAddResult, type RepoDisableParams, type RepoDisableResult, type RepoEnableParams, type RepoEnableResult, type RepoListParams, type RepoListResult, type RepoRemoveParams, type RepoRemoveResult, type RepoSyncAllParams, type RepoSyncAllResult, type RepoSyncParams, type RepoSyncResult, type RepoUpdateParams, type RepoUpdateResult, 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 ScheduledTaskV1, type ScheduledTasksConfig, type ScheduledTasksConfigV1, type ScheduledTasksLogFile, type SchedulerStartResult, type SchedulerStatus, type SchedulerStopResult, type SecretToken, 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 SkillDownloadFile, type SkillMarketplaceEntry, type SkillMarketplaceState, type SkillMutationAction, type SkillMutationRequest, type SkillMutationResult, type SkillOwnerKind, type SkillPublishableResult, type SkillReconcileResult, type SkillRepoConvertToSymlinkParams, type SkillRepoConvertToSymlinkResult, type SkillRepoDraftCommitParams, type SkillRepoDraftCommitResult, type SkillRepoDraftCreateParams, type SkillRepoDraftCreateResult, type SkillRepoDraftDeleteParams, type SkillRepoDraftDeleteResult, type SkillRepoDraftListParams, type SkillRepoDraftListResult, type SkillRepoGetParams, type SkillRepoGetResult, type SkillRepoInstallParams, type SkillRepoInstallResult, type SkillRepoListLinkedParams, type SkillRepoListLinkedResult, type SkillRepoListParams, type SkillRepoListResult, type SkillRepoUninstallParams, type SkillRepoUninstallResult, type SkillScope, type SkillScopeState, type SkillScopeStatus, type SubmitToOfficialPayload, type SubmitToOfficialResult, type SupportedBridgeProtocolVersion, TOOLBOX_SCOPES, type TaskCancelResult, type TaskCancelledEventParams, type TaskCompletedEventParams, type TaskExecuteResult, type TaskExecutionLog, type TaskExecutionSnapshot, type TaskExecutionStatus, type TaskFailedEventParams, type TaskListRunningResult, type TaskOutputEventParams, type TaskPayload, type TaskRunStatus, type TaskStartedEventParams, type TaskTriggerType, type TaskWorkspaceRef, type ToolCheckResult, type ToolboxAddParams, type ToolboxAddResult, type ToolboxList, type ToolboxListParams, type ToolboxListResult, type ToolboxRemoveParams, type ToolboxRemoveResult, type ToolboxScope, type ToolboxUpdateParams, type ToolboxUpdateResult, type UploadAgentPayload, type UploadFile, type UploadSkillPayload, createCliFailure, createCliSuccess, createServicemeError, getBridgeEventParamsValidator, getBridgeResultValidator, isAgentMarketplaceState, isAgentMutationRequest, isAgentMutationResult, isAgentPermissionSummary, isAgentPermissionsResult, isAgentSessionStatus, isAuthAccountMeta, isAuthLoginParams, isAuthLoginResult, isAuthLogoutParams, isAuthLogoutResult, isAuthProvider, isAuthSessionHandle, isAuthStatus, isAuthSwitchParams, isAuthSwitchResult, isAuthWhoamiResult, isBridgeCapabilities, isBridgeEvent, isBridgeEventName, isBridgeMethod, isBridgeRequest, isBridgeResponse, isCliEnvelope, isDeviceBindingState, isDeviceEnrollParams, isDeviceEnrollResult, isDeviceIdentityState, isDeviceMetadata, isDeviceRotateSecretParams, isDeviceRotateSecretResult, isDeviceStatus, isEnvironmentCheckResult, isExternalTool, isExternalToolPatch, isJsonOutputResult, isJsonSortAlgorithm, isJsonSortOptions, isJsonSortOrder, isJsonValidationResult, isKnownEnvironmentTool, isRepoAddParams, isRepoAddResult, isRepoDisableParams, isRepoDisableResult, isRepoEnableParams, isRepoEnableResult, isRepoListParams, isRepoListResult, isRepoRemoveParams, isRepoRemoveResult, isRepoSyncAllParams, isRepoSyncAllResult, isRepoSyncParams, isRepoSyncResult, isRepoUpdateResult, isRetryableErrorCode, isScheduledTask, isScheduledTaskType, isScheduledTaskV1, isScheduledTasksConfig, isScheduledTasksConfigV1, isSchedulerStatus, isServiceMeImageCompressOptions, isServiceMeImageCompressResult, isServiceMeImageFormat, isServiceMeImageInfo, isServiceMeImageValidationResult, isServiceMeProjectExtractTemplateInput, isServiceMeProjectExtractTemplateResult, isServiceMeProjectGitInitResult, isServiceMeProjectInstallDepsResult, isServiceMeProjectMakeScriptsExecutableResult, isServiceMeProjectScaffoldPruneResult, isServicemeErrorCode, isServicemeErrorDetails, isSkillMarketplaceState, isSkillMutationRequest, isSkillMutationResult, isSkillPublishableResult, isSkillReconcileResult, isSkillRepoConvertToSymlinkParams, isSkillRepoConvertToSymlinkResult, isSkillRepoDraftCommitResult, isSkillRepoDraftCreateResult, isSkillRepoDraftDeleteResult, isSkillRepoDraftListResult, isSkillRepoGetParams, isSkillRepoGetResult, isSkillRepoInstallParams, isSkillRepoInstallResult, isSkillRepoListLinkedParams, isSkillRepoListLinkedResult, isSkillRepoListParams, isSkillRepoListResult, isSkillRepoUninstallParams, isSkillRepoUninstallResult, isSystemHelloResult, isSystemPingResult, isSystemShutdownResult, isTaskCancelResult, isTaskCancelledEventParams, isTaskCompletedEventParams, isTaskExecuteResult, isTaskExecutionLog, isTaskFailedEventParams, isTaskListRunningResult, isTaskOutputEventParams, isTaskStartedEventParams, isTaskWorkspaceRef, isToolCheckResult, isToolboxAddParams, isToolboxAddResult, isToolboxList, isToolboxListParams, isToolboxRemoveParams, isToolboxRemoveResult, isToolboxScope, isToolboxUpdateParams, isToolboxUpdateResult, migrateTaskV1ToV2, migrateV1ToV2, normalizeServicemeError };
1551
+ export { AUTH_PROVIDERS, type AgentDownloadFile, type AgentMarketplaceEntry, type AgentMarketplaceState, type AgentMutationAction, type AgentMutationRequest, type AgentMutationResult, type AgentOwnerKind, type AgentPermissionsResult, type AgentScope, type AgentScopeState, type AgentScopeStatus, type AgentSessionStatus, type AuthAccountMeta, type AuthLoginParams, type AuthLoginResult, type AuthLogoutParams, type AuthLogoutResult, type AuthProvider, type AuthSessionHandle, type AuthStatus, type AuthStatusParams, type AuthSwitchParams, type AuthSwitchResult, type AuthTokenEnvelope, type AuthWhoamiResult, 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 BridgeSkillRepoDetail, type BridgeSuccessResponse, COPILOT_ERROR_CODES, type CliEnvelope, type CliFailure, type CliSuccess, type ConcurrencyPolicy, type CopilotDoctorResult, type CopilotPromptOptions, type CopilotPromptResult, DEFAULT_JSON_SORT_OPTIONS, DEVICE_BINDING_STATES, type DeviceBindingState, type DeviceEnrollParams, type DeviceEnrollResult, type DeviceIdentityState, type DeviceMetadata, type DeviceRotateSecretParams, type DeviceRotateSecretResult, type DeviceSecret, type DeviceStatus, type DeviceStatusParams, type EnvironmentCheckResult, type ExternalTool, type ExternalToolPatch, JSON_SORT_ALGORITHMS, JSON_SORT_ORDERS, type JsonSortAlgorithm, type JsonSortOptions, type JsonSortOrder, type JsonValidationResult, KNOWN_ENVIRONMENT_TOOLS, type KnownEnvironmentTool, type LocalPublishableAgent, type LocalPublishableSkill, type MarketplaceAgentItem, type MarketplaceAgentsCatalog, type MarketplaceCatalog, type MarketplaceSkillItem, type MigratedTask, type PublishableSkillEntry, type RepoAddParams, type RepoAddResult, type RepoDisableParams, type RepoDisableResult, type RepoEnableParams, type RepoEnableResult, type RepoListParams, type RepoListResult, type RepoRemoveParams, type RepoRemoveResult, type RepoSyncAllParams, type RepoSyncAllResult, type RepoSyncParams, type RepoSyncResult, type RepoUpdateParams, type RepoUpdateResult, 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 ScheduledTasksConfigV1, type ScheduledTasksLogFile, type SchedulerStartResult, type SchedulerStatus, type SchedulerStopResult, type SecretToken, 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 SkillDownloadFile, type SkillMarketplaceEntry, type SkillMarketplaceState, type SkillMutationAction, type SkillMutationRequest, type SkillMutationResult, type SkillOwnerKind, type SkillPublishableResult, type SkillReconcileResult, type SkillRepoConvertToSymlinkParams, type SkillRepoConvertToSymlinkResult, type SkillRepoDraftCommitParams, type SkillRepoDraftCommitResult, type SkillRepoDraftCreateParams, type SkillRepoDraftCreateResult, type SkillRepoDraftDeleteParams, type SkillRepoDraftDeleteResult, type SkillRepoDraftListParams, type SkillRepoDraftListResult, type SkillRepoGetParams, type SkillRepoGetResult, type SkillRepoInstallParams, type SkillRepoInstallResult, type SkillRepoListLinkedParams, type SkillRepoListLinkedResult, type SkillRepoListParams, type SkillRepoListResult, type SkillRepoUninstallParams, type SkillRepoUninstallResult, type SkillScope, type SkillScopeState, type SkillScopeStatus, type SubmitToOfficialPayload, type SubmitToOfficialResult, type SupportedBridgeProtocolVersion, TOOLBOX_SCOPES, type TaskCancelResult, type TaskCancelledEventParams, type TaskCompletedEventParams, type TaskExecuteResult, type TaskExecutionSnapshot, type TaskFailedEventParams, type TaskListRunningResult, type TaskOutputEventParams, type TaskStartedEventParams, type TaskTriggerType, type ToolCheckResult, type ToolboxAddParams, type ToolboxAddResult, type ToolboxList, type ToolboxListParams, type ToolboxListResult, type ToolboxRemoveParams, type ToolboxRemoveResult, type ToolboxScope, type ToolboxUpdateParams, type ToolboxUpdateResult, type UploadAgentPayload, type UploadFile, type UploadSkillPayload, createCliFailure, createCliSuccess, createServicemeError, getBridgeEventParamsValidator, getBridgeResultValidator, isAgentMarketplaceState, isAgentMutationRequest, isAgentMutationResult, isAgentPermissionSummary, isAgentPermissionsResult, isAgentSessionStatus, isAuthAccountMeta, isAuthLoginParams, isAuthLoginResult, isAuthLogoutParams, isAuthLogoutResult, isAuthProvider, isAuthSessionHandle, isAuthStatus, isAuthSwitchParams, isAuthSwitchResult, isAuthWhoamiResult, isBridgeCapabilities, isBridgeEvent, isBridgeEventName, isBridgeMethod, isBridgeRequest, isBridgeResponse, isCliEnvelope, isDeviceBindingState, isDeviceEnrollParams, isDeviceEnrollResult, isDeviceIdentityState, isDeviceMetadata, isDeviceRotateSecretParams, isDeviceRotateSecretResult, isDeviceStatus, isEnvironmentCheckResult, isExternalTool, isExternalToolPatch, isJsonOutputResult, isJsonSortAlgorithm, isJsonSortOptions, isJsonSortOrder, isJsonValidationResult, isKnownEnvironmentTool, isRepoAddParams, isRepoAddResult, isRepoDisableParams, isRepoDisableResult, isRepoEnableParams, isRepoEnableResult, isRepoListParams, isRepoListResult, isRepoRemoveParams, isRepoRemoveResult, isRepoSyncAllParams, isRepoSyncAllResult, isRepoSyncParams, isRepoSyncResult, isRepoUpdateResult, isRetryableErrorCode, isScheduledTask, isScheduledTaskType, isScheduledTaskV1, isScheduledTasksConfig, isScheduledTasksConfigV1, isSchedulerStatus, isServiceMeImageCompressOptions, isServiceMeImageCompressResult, isServiceMeImageFormat, isServiceMeImageInfo, isServiceMeImageValidationResult, isServiceMeProjectExtractTemplateInput, isServiceMeProjectExtractTemplateResult, isServiceMeProjectGitInitResult, isServiceMeProjectInstallDepsResult, isServiceMeProjectMakeScriptsExecutableResult, isServiceMeProjectScaffoldPruneResult, isServicemeErrorCode, isServicemeErrorDetails, isSkillMarketplaceState, isSkillMutationRequest, isSkillMutationResult, isSkillPublishableResult, isSkillReconcileResult, isSkillRepoConvertToSymlinkParams, isSkillRepoConvertToSymlinkResult, isSkillRepoDraftCommitResult, isSkillRepoDraftCreateResult, isSkillRepoDraftDeleteResult, isSkillRepoDraftListResult, isSkillRepoGetParams, isSkillRepoGetResult, isSkillRepoInstallParams, isSkillRepoInstallResult, isSkillRepoListLinkedParams, isSkillRepoListLinkedResult, isSkillRepoListParams, isSkillRepoListResult, isSkillRepoUninstallParams, isSkillRepoUninstallResult, isSystemHelloResult, isSystemPingResult, isSystemShutdownResult, isTaskCancelResult, isTaskCancelledEventParams, isTaskCompletedEventParams, isTaskExecuteResult, isTaskExecutionLog, isTaskFailedEventParams, isTaskListRunningResult, isTaskOutputEventParams, isTaskStartedEventParams, isTaskWorkspaceRef, isToolCheckResult, isToolboxAddParams, isToolboxAddResult, isToolboxList, isToolboxListParams, isToolboxRemoveParams, isToolboxRemoveResult, isToolboxScope, isToolboxUpdateParams, isToolboxUpdateResult, migrateTaskV1ToV2, migrateV1ToV2, normalizeServicemeError };
package/dist/index.d.ts CHANGED
@@ -1,20 +1,11 @@
1
+ import { AgentPermissionSummary, BridgeSkillKind, BridgeSkillRepoEntry, BridgeSkillRepoFile, BridgeLinkMode, BridgeLinkedSkill, BridgeRepoEntry, BridgeRepoSyncPull, TaskExecutionLog, ScheduledTaskType, TaskPayload, ScheduledTask, ScheduledTaskV1, ScheduledTasksConfig, TaskWorkspaceRef } from '@serviceme/devtools-shared';
2
+ export { AgentPermissionSummary, AgentToolPermission, AgentToolRiskLevel, BridgeLinkMode, BridgeLinkedSkill, BridgeRepoEntry, BridgeRepoSyncPull, BridgeSkillKind, BridgeSkillRepoEntry, BridgeSkillRepoFile, CommandPayload, GithubCopilotCliPayload, HttpRequestPayload, ScheduledTask, ScheduledTaskType, ScheduledTaskV1, ScheduledTasksConfig, ShellPayload, TaskExecutionLog, TaskExecutionStatus, TaskPayload, TaskRunStatus, TaskWorkspaceRef } from '@serviceme/devtools-shared';
3
+
1
4
  type AgentScope = "workspace" | "user";
2
5
  type AgentOwnerKind = "builtin" | "external";
3
6
  type AgentScopeStatus = "absent" | "available" | "installed" | "blocked" | "conflict";
4
7
  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
- }
8
+
18
9
  interface AgentScopeState {
19
10
  scope: AgentScope;
20
11
  status: AgentScopeStatus;
@@ -126,7 +117,7 @@ type DeviceSecret = string & {
126
117
  * Auth protocol — Phase 5.1 cross-process contract.
127
118
  *
128
119
  * Per ADL-003 these pure data models live in `@serviceme/devtools-protocol`,
129
- * NOT `@serviceme/shared`. Per ADL-004 the auth token byte string **never**
120
+ * NOT `@serviceme/devtools-shared`. Per ADL-004 the auth token byte string **never**
130
121
  * crosses the bridge or any protocol payload — it lives only in OS keychain
131
122
  * (CLI) or VSCode SecretStorage (Extension). `SecretToken` is a TypeScript
132
123
  * phantom brand used purely as a static-typing guarantee against accidental
@@ -316,45 +307,11 @@ declare function isAuthSwitchResult(value: unknown): value is AuthSwitchResult;
316
307
  * are deliberately structural (no zod) so the protocol package
317
308
  * stays zero-dep.
318
309
  */
319
- /** Kinds of artifacts in the catalog. */
320
- type BridgeSkillKind = "skill" | "agent";
321
- /** Which side of the link is reported. Matches SkillLinker's `LinkMode`. */
322
- type BridgeLinkMode = "symlink" | "junction" | "copy";
310
+
323
311
  /** A single skill/agent entry inside a repo (SkillStore.SkillEntry). */
324
- interface BridgeSkillRepoEntry {
325
- repoId: string;
326
- name: string;
327
- kind: BridgeSkillKind;
328
- /** Absolute path to the manifest file. */
329
- manifestPath: string;
330
- /** Absolute path to the entry's directory. */
331
- dir: string;
332
- /** Best-effort parsed frontmatter. */
333
- frontmatter: Record<string, unknown>;
334
- /** ISO timestamp of the manifest's mtime. */
335
- modifiedAt: string;
336
- }
337
- /** A single file inside an entry (SkillStore.SkillFile). */
338
- interface BridgeSkillRepoFile {
339
- /** Path relative to the entry's directory. */
340
- path: string;
341
- /** UTF-8 content. */
342
- content: string;
343
- }
344
- /** Detailed view: entry + all the files inside it. */
345
312
  interface BridgeSkillRepoDetail extends BridgeSkillRepoEntry {
346
313
  files: BridgeSkillRepoFile[];
347
314
  }
348
- /** A symlink/junction currently present in a workspace or user (global) scope. */
349
- interface BridgeLinkedSkill {
350
- repoId: string;
351
- name: string;
352
- linkPath: string;
353
- targetPath: string;
354
- mode: BridgeLinkMode;
355
- /** Which scope this link lives in — "workspace" or "user" (global, `~/.agents/...`). */
356
- scope: "workspace" | "user";
357
- }
358
315
  /** `skillRepo.list` — enumerate available skills/agents. */
359
316
  interface SkillRepoListParams {
360
317
  /** Restrict to one repo; omit to list across all. */
@@ -496,30 +453,6 @@ interface SkillRepoDraftDeleteParams {
496
453
  interface SkillRepoDraftDeleteResult {
497
454
  deleted: true;
498
455
  }
499
- /** A single entry from `repos.json` (subset of RepoConfig). */
500
- interface BridgeRepoEntry {
501
- id: string;
502
- name: string;
503
- url: string;
504
- branch: string;
505
- enabled: boolean;
506
- useProxy?: boolean;
507
- writeEnabled: boolean;
508
- source: "default" | "user";
509
- description?: string;
510
- addedAt: string;
511
- lastSyncAt?: string;
512
- lastSyncCommitSha?: string;
513
- lastSyncStatus?: "ok" | "error";
514
- lastSyncError?: string;
515
- }
516
- /** A single line of a sync run. */
517
- interface BridgeRepoSyncPull {
518
- repoId: string;
519
- status: "ok" | "error";
520
- commitSha?: string;
521
- error?: string;
522
- }
523
456
  /** `repo.list` — enumerate known repos. */
524
457
  interface RepoListParams {
525
458
  /** Optional source filter; default includes both. */
@@ -535,6 +468,8 @@ interface RepoAddParams {
535
468
  branch?: string;
536
469
  /** Optional display name. */
537
470
  name?: string;
471
+ /** Whether the repo participates in scheduled syncs. Defaults to true. */
472
+ enabled?: boolean;
538
473
  /** Route git traffic via the server proxy (default true). */
539
474
  useProxy?: boolean;
540
475
  }
@@ -624,7 +559,7 @@ declare function isRepoSyncAllParams(value: unknown): value is RepoSyncAllParams
624
559
  * Device protocol — Phase 5.1 cross-process contract.
625
560
  *
626
561
  * Per ADL-003 these pure data models live in `@serviceme/devtools-protocol`,
627
- * NOT `@serviceme/shared`. Per `2.需求澄清.md` §1.2 the binding-state
562
+ * NOT `@serviceme/devtools-shared`. Per `2.需求澄清.md` §1.2 the binding-state
628
563
  * machine is `anonymous → pending → claimed → expired` and `rotate-secret`
629
564
  * keeps the old HMAC secret for a 7-day grace window for in-flight
630
565
  * requests. HMAC secret bytes **never** cross the bridge — only
@@ -743,114 +678,10 @@ declare class ServicemeProtocolError extends Error {
743
678
  declare function createServicemeError(code: ServicemeErrorCode, message: string, details?: unknown): ServicemeProtocolError;
744
679
  declare function normalizeServicemeError(error: unknown, fallbackCode?: ServicemeErrorCode): ServicemeErrorDetails;
745
680
 
746
- type ScheduledTaskType = "command" | "shell" | "http_request" | "github_copilot_cli";
747
- interface CommandPayload {
748
- command: string;
749
- args?: unknown[];
750
- }
751
- interface ShellPayload {
752
- script: string;
753
- cwd?: string;
754
- /** Timeout in seconds. Omit for default 60s; use 0 for no limit. */
755
- timeout?: number;
756
- }
757
- interface HttpRequestPayload {
758
- url: string;
759
- method: string;
760
- headers?: Record<string, string>;
761
- body?: string;
762
- /** Timeout in seconds. Omit for default 30s; use 0 for no limit. */
763
- timeout?: number;
764
- }
765
- interface GithubCopilotCliPayload {
766
- prompt: string;
767
- workspace?: string;
768
- autopilot?: boolean;
769
- allowTools?: string[];
770
- /** Timeout in seconds. Omit for default 300s; use 0 for no limit. */
771
- timeout?: number;
772
- model?: string;
773
- agent?: string;
774
- }
775
- type TaskPayload = CommandPayload | ShellPayload | HttpRequestPayload | GithubCopilotCliPayload;
776
- /**
777
- * Reference to the workspace a scheduled task is bound to. Required by v2
778
- * because the global scheduler runs tasks across many workspaces and needs to
779
- * know where to execute each one.
780
- */
781
- interface TaskWorkspaceRef {
782
- /** Absolute path to the workspace root. Required and unique. */
783
- path: string;
784
- /** Display name. Defaults to `path` basename; users may override. */
785
- name: string;
786
- /** `git@github.com:owner/repo.git` — auto-detected at task creation. */
787
- gitRemote?: string;
788
- /** Current branch — auto-detected at task creation; verified at execute. */
789
- gitBranch?: string;
790
- /** Last time the extension saw this workspace alive. */
791
- lastSeenAt?: string;
792
- }
793
- /**
794
- * v1 task shape — kept for reading legacy `<workspace>/.serviceme/scheduled-tasks.json`
795
- * during migration. New code should always use {@link ScheduledTask} (v2).
796
- */
797
- interface ScheduledTaskV1 {
798
- id: string;
799
- name: string;
800
- description?: string;
801
- enabled: boolean;
802
- scheduleType: "cron" | "interval";
803
- schedule: string;
804
- taskType: ScheduledTaskType;
805
- payload: TaskPayload;
806
- createdAt: string;
807
- updatedAt: string;
808
- }
809
- /** Runtime status of the most recent execution for a task. */
810
- type TaskRunStatus = "ok" | "error" | "skipped";
811
- /**
812
- * v2 scheduled task — adds required `workspace` reference and runtime metadata
813
- * fields. See `docs/architecture/skill-agent-v2-repo.md` §14.2.
814
- */
815
- interface ScheduledTask extends ScheduledTaskV1 {
816
- /** Required in v2. The workspace this task executes in. */
817
- workspace: TaskWorkspaceRef;
818
- /** ISO timestamp of the most recent execution. */
819
- lastRunAt?: string;
820
- /** Status of the most recent execution. */
821
- lastRunStatus?: TaskRunStatus;
822
- /** Error message from the most recent failed execution. */
823
- lastRunError?: string;
824
- /** Duration of the most recent execution, in milliseconds. */
825
- lastRunDurationMs?: number;
826
- /** Next scheduled run (computed by scheduler). */
827
- nextRunAt?: string;
828
- /** Total successful executions. */
829
- runCount?: number;
830
- }
831
- /**
832
- * v1 config — kept for migration. New code should use {@link ScheduledTasksConfig}.
833
- */
834
681
  interface ScheduledTasksConfigV1 {
835
682
  version: 1;
836
683
  tasks: ScheduledTaskV1[];
837
684
  }
838
- /** v2 config — single source of truth for the global scheduler. */
839
- interface ScheduledTasksConfig {
840
- version: 2;
841
- tasks: ScheduledTask[];
842
- }
843
- type TaskExecutionStatus = "running" | "success" | "failure" | "timeout" | "cancelled";
844
- interface TaskExecutionLog {
845
- id: string;
846
- taskId: string;
847
- taskName: string;
848
- startedAt: string;
849
- finishedAt: string;
850
- status: Exclude<TaskExecutionStatus, "running">;
851
- output?: string;
852
- error?: string;
853
- }
854
685
  interface ScheduledTasksLogFile {
855
686
  logs: TaskExecutionLog[];
856
687
  }
@@ -1035,7 +866,7 @@ declare function migrateV1ToV2(v1Config: ScheduledTasksConfigV1, workspace: Task
1035
866
  * Toolbox protocol — Phase 5.1 cross-process contract.
1036
867
  *
1037
868
  * Per ADL-003 + `2.需求澄清.md` §2.1 these pure data models live in
1038
- * `@serviceme/devtools-protocol`, NOT `@serviceme/shared`. Toolbox scope
869
+ * `@serviceme/devtools-protocol`, NOT `@serviceme/devtools-shared`. Toolbox scope
1039
870
  * is preserved (both `user` and `workspace` accepted); see
1040
871
  * `~/.config/serviceme/toolbox.json` + `.github/.serviceme-toolbox.json`
1041
872
  * for the persistence layout.
@@ -1584,7 +1415,7 @@ interface LocalPublishableAgent {
1584
1415
  }
1585
1416
 
1586
1417
  declare const SERVICEME_CLI_NAME = "serviceme";
1587
- declare const SERVICEME_CLI_VERSION = "0.4.3";
1418
+ declare const SERVICEME_CLI_VERSION = "0.4.5";
1588
1419
  declare const SERVICEME_CLI_CAPABILITIES: {
1589
1420
  readonly bridge: true;
1590
1421
  readonly tasks: 1;
@@ -1717,4 +1548,4 @@ declare function isSkillMutationResult(value: unknown): value is SkillMutationRe
1717
1548
  declare function isSkillReconcileResult(value: unknown): value is SkillReconcileResult;
1718
1549
  declare function isSkillPublishableResult(value: unknown): value is SkillPublishableResult;
1719
1550
 
1720
- export { AUTH_PROVIDERS, type AgentDownloadFile, 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, type AuthAccountMeta, type AuthLoginParams, type AuthLoginResult, type AuthLogoutParams, type AuthLogoutResult, type AuthProvider, type AuthSessionHandle, type AuthStatus, type AuthStatusParams, type AuthSwitchParams, type AuthSwitchResult, type AuthTokenEnvelope, type AuthWhoamiResult, BRIDGE_EVENTS, BRIDGE_METHODS, type BridgeCapabilities, type BridgeErrorResponse, type BridgeEvent, type BridgeEventMap, type BridgeEventName, type BridgeEventParams, type BridgeLinkMode, type BridgeLinkedSkill, type BridgeMessage, type BridgeMethod, type BridgeMethodMap, type BridgeParams, type BridgeRepoEntry, type BridgeRepoSyncPull, type BridgeRequest, type BridgeResponse, type BridgeResult, type BridgeSkillKind, type BridgeSkillRepoDetail, type BridgeSkillRepoEntry, type BridgeSkillRepoFile, 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, DEVICE_BINDING_STATES, type DeviceBindingState, type DeviceEnrollParams, type DeviceEnrollResult, type DeviceIdentityState, type DeviceMetadata, type DeviceRotateSecretParams, type DeviceRotateSecretResult, type DeviceSecret, type DeviceStatus, type DeviceStatusParams, type EnvironmentCheckResult, type ExternalTool, type ExternalToolPatch, type GithubCopilotCliPayload, type HttpRequestPayload, JSON_SORT_ALGORITHMS, JSON_SORT_ORDERS, type JsonSortAlgorithm, type JsonSortOptions, type JsonSortOrder, type JsonValidationResult, KNOWN_ENVIRONMENT_TOOLS, type KnownEnvironmentTool, type LocalPublishableAgent, type LocalPublishableSkill, type MarketplaceAgentItem, type MarketplaceAgentsCatalog, type MarketplaceCatalog, type MarketplaceSkillItem, type MigratedTask, type PublishableSkillEntry, type RepoAddParams, type RepoAddResult, type RepoDisableParams, type RepoDisableResult, type RepoEnableParams, type RepoEnableResult, type RepoListParams, type RepoListResult, type RepoRemoveParams, type RepoRemoveResult, type RepoSyncAllParams, type RepoSyncAllResult, type RepoSyncParams, type RepoSyncResult, type RepoUpdateParams, type RepoUpdateResult, 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 ScheduledTaskV1, type ScheduledTasksConfig, type ScheduledTasksConfigV1, type ScheduledTasksLogFile, type SchedulerStartResult, type SchedulerStatus, type SchedulerStopResult, type SecretToken, 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 SkillDownloadFile, type SkillMarketplaceEntry, type SkillMarketplaceState, type SkillMutationAction, type SkillMutationRequest, type SkillMutationResult, type SkillOwnerKind, type SkillPublishableResult, type SkillReconcileResult, type SkillRepoConvertToSymlinkParams, type SkillRepoConvertToSymlinkResult, type SkillRepoDraftCommitParams, type SkillRepoDraftCommitResult, type SkillRepoDraftCreateParams, type SkillRepoDraftCreateResult, type SkillRepoDraftDeleteParams, type SkillRepoDraftDeleteResult, type SkillRepoDraftListParams, type SkillRepoDraftListResult, type SkillRepoGetParams, type SkillRepoGetResult, type SkillRepoInstallParams, type SkillRepoInstallResult, type SkillRepoListLinkedParams, type SkillRepoListLinkedResult, type SkillRepoListParams, type SkillRepoListResult, type SkillRepoUninstallParams, type SkillRepoUninstallResult, type SkillScope, type SkillScopeState, type SkillScopeStatus, type SubmitToOfficialPayload, type SubmitToOfficialResult, type SupportedBridgeProtocolVersion, TOOLBOX_SCOPES, type TaskCancelResult, type TaskCancelledEventParams, type TaskCompletedEventParams, type TaskExecuteResult, type TaskExecutionLog, type TaskExecutionSnapshot, type TaskExecutionStatus, type TaskFailedEventParams, type TaskListRunningResult, type TaskOutputEventParams, type TaskPayload, type TaskRunStatus, type TaskStartedEventParams, type TaskTriggerType, type TaskWorkspaceRef, type ToolCheckResult, type ToolboxAddParams, type ToolboxAddResult, type ToolboxList, type ToolboxListParams, type ToolboxListResult, type ToolboxRemoveParams, type ToolboxRemoveResult, type ToolboxScope, type ToolboxUpdateParams, type ToolboxUpdateResult, type UploadAgentPayload, type UploadFile, type UploadSkillPayload, createCliFailure, createCliSuccess, createServicemeError, getBridgeEventParamsValidator, getBridgeResultValidator, isAgentMarketplaceState, isAgentMutationRequest, isAgentMutationResult, isAgentPermissionSummary, isAgentPermissionsResult, isAgentSessionStatus, isAuthAccountMeta, isAuthLoginParams, isAuthLoginResult, isAuthLogoutParams, isAuthLogoutResult, isAuthProvider, isAuthSessionHandle, isAuthStatus, isAuthSwitchParams, isAuthSwitchResult, isAuthWhoamiResult, isBridgeCapabilities, isBridgeEvent, isBridgeEventName, isBridgeMethod, isBridgeRequest, isBridgeResponse, isCliEnvelope, isDeviceBindingState, isDeviceEnrollParams, isDeviceEnrollResult, isDeviceIdentityState, isDeviceMetadata, isDeviceRotateSecretParams, isDeviceRotateSecretResult, isDeviceStatus, isEnvironmentCheckResult, isExternalTool, isExternalToolPatch, isJsonOutputResult, isJsonSortAlgorithm, isJsonSortOptions, isJsonSortOrder, isJsonValidationResult, isKnownEnvironmentTool, isRepoAddParams, isRepoAddResult, isRepoDisableParams, isRepoDisableResult, isRepoEnableParams, isRepoEnableResult, isRepoListParams, isRepoListResult, isRepoRemoveParams, isRepoRemoveResult, isRepoSyncAllParams, isRepoSyncAllResult, isRepoSyncParams, isRepoSyncResult, isRepoUpdateResult, isRetryableErrorCode, isScheduledTask, isScheduledTaskType, isScheduledTaskV1, isScheduledTasksConfig, isScheduledTasksConfigV1, isSchedulerStatus, isServiceMeImageCompressOptions, isServiceMeImageCompressResult, isServiceMeImageFormat, isServiceMeImageInfo, isServiceMeImageValidationResult, isServiceMeProjectExtractTemplateInput, isServiceMeProjectExtractTemplateResult, isServiceMeProjectGitInitResult, isServiceMeProjectInstallDepsResult, isServiceMeProjectMakeScriptsExecutableResult, isServiceMeProjectScaffoldPruneResult, isServicemeErrorCode, isServicemeErrorDetails, isSkillMarketplaceState, isSkillMutationRequest, isSkillMutationResult, isSkillPublishableResult, isSkillReconcileResult, isSkillRepoConvertToSymlinkParams, isSkillRepoConvertToSymlinkResult, isSkillRepoDraftCommitResult, isSkillRepoDraftCreateResult, isSkillRepoDraftDeleteResult, isSkillRepoDraftListResult, isSkillRepoGetParams, isSkillRepoGetResult, isSkillRepoInstallParams, isSkillRepoInstallResult, isSkillRepoListLinkedParams, isSkillRepoListLinkedResult, isSkillRepoListParams, isSkillRepoListResult, isSkillRepoUninstallParams, isSkillRepoUninstallResult, isSystemHelloResult, isSystemPingResult, isSystemShutdownResult, isTaskCancelResult, isTaskCancelledEventParams, isTaskCompletedEventParams, isTaskExecuteResult, isTaskExecutionLog, isTaskFailedEventParams, isTaskListRunningResult, isTaskOutputEventParams, isTaskStartedEventParams, isTaskWorkspaceRef, isToolCheckResult, isToolboxAddParams, isToolboxAddResult, isToolboxList, isToolboxListParams, isToolboxRemoveParams, isToolboxRemoveResult, isToolboxScope, isToolboxUpdateParams, isToolboxUpdateResult, migrateTaskV1ToV2, migrateV1ToV2, normalizeServicemeError };
1551
+ export { AUTH_PROVIDERS, type AgentDownloadFile, type AgentMarketplaceEntry, type AgentMarketplaceState, type AgentMutationAction, type AgentMutationRequest, type AgentMutationResult, type AgentOwnerKind, type AgentPermissionsResult, type AgentScope, type AgentScopeState, type AgentScopeStatus, type AgentSessionStatus, type AuthAccountMeta, type AuthLoginParams, type AuthLoginResult, type AuthLogoutParams, type AuthLogoutResult, type AuthProvider, type AuthSessionHandle, type AuthStatus, type AuthStatusParams, type AuthSwitchParams, type AuthSwitchResult, type AuthTokenEnvelope, type AuthWhoamiResult, 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 BridgeSkillRepoDetail, type BridgeSuccessResponse, COPILOT_ERROR_CODES, type CliEnvelope, type CliFailure, type CliSuccess, type ConcurrencyPolicy, type CopilotDoctorResult, type CopilotPromptOptions, type CopilotPromptResult, DEFAULT_JSON_SORT_OPTIONS, DEVICE_BINDING_STATES, type DeviceBindingState, type DeviceEnrollParams, type DeviceEnrollResult, type DeviceIdentityState, type DeviceMetadata, type DeviceRotateSecretParams, type DeviceRotateSecretResult, type DeviceSecret, type DeviceStatus, type DeviceStatusParams, type EnvironmentCheckResult, type ExternalTool, type ExternalToolPatch, JSON_SORT_ALGORITHMS, JSON_SORT_ORDERS, type JsonSortAlgorithm, type JsonSortOptions, type JsonSortOrder, type JsonValidationResult, KNOWN_ENVIRONMENT_TOOLS, type KnownEnvironmentTool, type LocalPublishableAgent, type LocalPublishableSkill, type MarketplaceAgentItem, type MarketplaceAgentsCatalog, type MarketplaceCatalog, type MarketplaceSkillItem, type MigratedTask, type PublishableSkillEntry, type RepoAddParams, type RepoAddResult, type RepoDisableParams, type RepoDisableResult, type RepoEnableParams, type RepoEnableResult, type RepoListParams, type RepoListResult, type RepoRemoveParams, type RepoRemoveResult, type RepoSyncAllParams, type RepoSyncAllResult, type RepoSyncParams, type RepoSyncResult, type RepoUpdateParams, type RepoUpdateResult, 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 ScheduledTasksConfigV1, type ScheduledTasksLogFile, type SchedulerStartResult, type SchedulerStatus, type SchedulerStopResult, type SecretToken, 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 SkillDownloadFile, type SkillMarketplaceEntry, type SkillMarketplaceState, type SkillMutationAction, type SkillMutationRequest, type SkillMutationResult, type SkillOwnerKind, type SkillPublishableResult, type SkillReconcileResult, type SkillRepoConvertToSymlinkParams, type SkillRepoConvertToSymlinkResult, type SkillRepoDraftCommitParams, type SkillRepoDraftCommitResult, type SkillRepoDraftCreateParams, type SkillRepoDraftCreateResult, type SkillRepoDraftDeleteParams, type SkillRepoDraftDeleteResult, type SkillRepoDraftListParams, type SkillRepoDraftListResult, type SkillRepoGetParams, type SkillRepoGetResult, type SkillRepoInstallParams, type SkillRepoInstallResult, type SkillRepoListLinkedParams, type SkillRepoListLinkedResult, type SkillRepoListParams, type SkillRepoListResult, type SkillRepoUninstallParams, type SkillRepoUninstallResult, type SkillScope, type SkillScopeState, type SkillScopeStatus, type SubmitToOfficialPayload, type SubmitToOfficialResult, type SupportedBridgeProtocolVersion, TOOLBOX_SCOPES, type TaskCancelResult, type TaskCancelledEventParams, type TaskCompletedEventParams, type TaskExecuteResult, type TaskExecutionSnapshot, type TaskFailedEventParams, type TaskListRunningResult, type TaskOutputEventParams, type TaskStartedEventParams, type TaskTriggerType, type ToolCheckResult, type ToolboxAddParams, type ToolboxAddResult, type ToolboxList, type ToolboxListParams, type ToolboxListResult, type ToolboxRemoveParams, type ToolboxRemoveResult, type ToolboxScope, type ToolboxUpdateParams, type ToolboxUpdateResult, type UploadAgentPayload, type UploadFile, type UploadSkillPayload, createCliFailure, createCliSuccess, createServicemeError, getBridgeEventParamsValidator, getBridgeResultValidator, isAgentMarketplaceState, isAgentMutationRequest, isAgentMutationResult, isAgentPermissionSummary, isAgentPermissionsResult, isAgentSessionStatus, isAuthAccountMeta, isAuthLoginParams, isAuthLoginResult, isAuthLogoutParams, isAuthLogoutResult, isAuthProvider, isAuthSessionHandle, isAuthStatus, isAuthSwitchParams, isAuthSwitchResult, isAuthWhoamiResult, isBridgeCapabilities, isBridgeEvent, isBridgeEventName, isBridgeMethod, isBridgeRequest, isBridgeResponse, isCliEnvelope, isDeviceBindingState, isDeviceEnrollParams, isDeviceEnrollResult, isDeviceIdentityState, isDeviceMetadata, isDeviceRotateSecretParams, isDeviceRotateSecretResult, isDeviceStatus, isEnvironmentCheckResult, isExternalTool, isExternalToolPatch, isJsonOutputResult, isJsonSortAlgorithm, isJsonSortOptions, isJsonSortOrder, isJsonValidationResult, isKnownEnvironmentTool, isRepoAddParams, isRepoAddResult, isRepoDisableParams, isRepoDisableResult, isRepoEnableParams, isRepoEnableResult, isRepoListParams, isRepoListResult, isRepoRemoveParams, isRepoRemoveResult, isRepoSyncAllParams, isRepoSyncAllResult, isRepoSyncParams, isRepoSyncResult, isRepoUpdateResult, isRetryableErrorCode, isScheduledTask, isScheduledTaskType, isScheduledTaskV1, isScheduledTasksConfig, isScheduledTasksConfigV1, isSchedulerStatus, isServiceMeImageCompressOptions, isServiceMeImageCompressResult, isServiceMeImageFormat, isServiceMeImageInfo, isServiceMeImageValidationResult, isServiceMeProjectExtractTemplateInput, isServiceMeProjectExtractTemplateResult, isServiceMeProjectGitInitResult, isServiceMeProjectInstallDepsResult, isServiceMeProjectMakeScriptsExecutableResult, isServiceMeProjectScaffoldPruneResult, isServicemeErrorCode, isServicemeErrorDetails, isSkillMarketplaceState, isSkillMutationRequest, isSkillMutationResult, isSkillPublishableResult, isSkillReconcileResult, isSkillRepoConvertToSymlinkParams, isSkillRepoConvertToSymlinkResult, isSkillRepoDraftCommitResult, isSkillRepoDraftCreateResult, isSkillRepoDraftDeleteResult, isSkillRepoDraftListResult, isSkillRepoGetParams, isSkillRepoGetResult, isSkillRepoInstallParams, isSkillRepoInstallResult, isSkillRepoListLinkedParams, isSkillRepoListLinkedResult, isSkillRepoListParams, isSkillRepoListResult, isSkillRepoUninstallParams, isSkillRepoUninstallResult, isSystemHelloResult, isSystemPingResult, isSystemShutdownResult, isTaskCancelResult, isTaskCancelledEventParams, isTaskCompletedEventParams, isTaskExecuteResult, isTaskExecutionLog, isTaskFailedEventParams, isTaskListRunningResult, isTaskOutputEventParams, isTaskStartedEventParams, isTaskWorkspaceRef, isToolCheckResult, isToolboxAddParams, isToolboxAddResult, isToolboxList, isToolboxListParams, isToolboxRemoveParams, isToolboxRemoveResult, isToolboxScope, isToolboxUpdateParams, isToolboxUpdateResult, migrateTaskV1ToV2, migrateV1ToV2, normalizeServicemeError };
package/dist/index.js CHANGED
@@ -1275,7 +1275,7 @@ function isJsonOutputResult(value) {
1275
1275
 
1276
1276
  // src/metadata.ts
1277
1277
  var SERVICEME_CLI_NAME = "serviceme";
1278
- var SERVICEME_CLI_VERSION = "0.4.3";
1278
+ var SERVICEME_CLI_VERSION = "0.4.5";
1279
1279
  var SERVICEME_CLI_CAPABILITIES = {
1280
1280
  bridge: true,
1281
1281
  tasks: 1,
package/dist/index.mjs CHANGED
@@ -1104,7 +1104,7 @@ function isJsonOutputResult(value) {
1104
1104
 
1105
1105
  // src/metadata.ts
1106
1106
  var SERVICEME_CLI_NAME = "serviceme";
1107
- var SERVICEME_CLI_VERSION = "0.4.3";
1107
+ var SERVICEME_CLI_VERSION = "0.4.5";
1108
1108
  var SERVICEME_CLI_CAPABILITIES = {
1109
1109
  bridge: true,
1110
1110
  tasks: 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serviceme/devtools-protocol",
3
- "version": "0.4.3",
3
+ "version": "0.4.5",
4
4
  "description": "Shared protocol contracts, runtime validators, and error models for SERVICEME tools.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "repository": {
@@ -32,6 +32,9 @@
32
32
  "access": "public",
33
33
  "registry": "https://registry.npmjs.org/"
34
34
  },
35
+ "dependencies": {
36
+ "@serviceme/devtools-shared": "0.4.5"
37
+ },
35
38
  "devDependencies": {
36
39
  "@types/node": "^24",
37
40
  "tsup": "^8.5.1",