@serviceme/devtools-protocol 2.0.0 → 2.0.1
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 +77 -3
- package/dist/index.d.ts +77 -3
- package/dist/index.js +58 -1
- package/dist/index.mjs +54 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -562,6 +562,68 @@ interface SkillRepoSetEntryEnabledParams {
|
|
|
562
562
|
interface SkillRepoSetEntryEnabledResult {
|
|
563
563
|
enabled: boolean;
|
|
564
564
|
}
|
|
565
|
+
/**
|
|
566
|
+
* `copilotContent.detectUnmanaged` — read-only detection of workspace
|
|
567
|
+
* Copilot content (skills/agents/hooks/MCP) that exists without a
|
|
568
|
+
* `.github/serviceme-plugins.json` declaration. See the core detector
|
|
569
|
+
* for the provenance rules (symlink targets, content fingerprints,
|
|
570
|
+
* generated-config identity maps).
|
|
571
|
+
*/
|
|
572
|
+
interface CopilotContentDetectUnmanagedParams {
|
|
573
|
+
workspaceDir: string;
|
|
574
|
+
}
|
|
575
|
+
interface CopilotContentDetectUnmanagedResult {
|
|
576
|
+
/** Sources resolved exactly (symlink) or uniquely (fingerprint). */
|
|
577
|
+
adoptions: Array<{
|
|
578
|
+
repoId: string;
|
|
579
|
+
name: string;
|
|
580
|
+
kind: "skill" | "agent";
|
|
581
|
+
source: "symlink" | "fingerprint";
|
|
582
|
+
}>;
|
|
583
|
+
/** Real copies whose content matches several repos — user picks. */
|
|
584
|
+
ambiguous: Array<{
|
|
585
|
+
name: string;
|
|
586
|
+
kind: "skill" | "agent";
|
|
587
|
+
candidates: string[];
|
|
588
|
+
}>;
|
|
589
|
+
/** Hook/MCP integrations recorded in generated serviceme configs. */
|
|
590
|
+
integrations: Array<{
|
|
591
|
+
repoId: string;
|
|
592
|
+
pluginId: string;
|
|
593
|
+
kind: "hook" | "mcp";
|
|
594
|
+
}>;
|
|
595
|
+
/** Present but not adoptable — transparency only. */
|
|
596
|
+
unmatched: Array<{
|
|
597
|
+
name: string;
|
|
598
|
+
kind: string;
|
|
599
|
+
reason: string;
|
|
600
|
+
}>;
|
|
601
|
+
}
|
|
602
|
+
/**
|
|
603
|
+
* `copilotContent.adoptUnmanaged` — initialize the workspace
|
|
604
|
+
* declaration from detected content: convert real copies to symlinks
|
|
605
|
+
* when asked, record the selections (including hook/MCP kinds), and
|
|
606
|
+
* reconcile. Returns the standard restore entry statuses.
|
|
607
|
+
*/
|
|
608
|
+
interface CopilotContentAdoptUnmanagedParams {
|
|
609
|
+
workspaceDir: string;
|
|
610
|
+
entries: Array<{
|
|
611
|
+
repoId: string;
|
|
612
|
+
name: string;
|
|
613
|
+
kind: "skill" | "agent";
|
|
614
|
+
/** Convert a real copy into a symlink before adopting. */
|
|
615
|
+
convertRealCopy?: boolean;
|
|
616
|
+
}>;
|
|
617
|
+
integrations?: Array<{
|
|
618
|
+
repoId: string;
|
|
619
|
+
pluginId: string;
|
|
620
|
+
kind: "hook" | "mcp";
|
|
621
|
+
}>;
|
|
622
|
+
}
|
|
623
|
+
type CopilotContentAdoptUnmanagedResult = {
|
|
624
|
+
changed: boolean;
|
|
625
|
+
entries: CopilotContentRestoreResult["entries"];
|
|
626
|
+
};
|
|
565
627
|
/** `skillRepo.listLinked` — every link currently in a workspace and/or user (global) scope. */
|
|
566
628
|
interface SkillRepoListLinkedParams {
|
|
567
629
|
workspaceDir: string;
|
|
@@ -772,6 +834,10 @@ declare function isSkillRepoInstallResult(value: unknown): value is SkillRepoIns
|
|
|
772
834
|
declare function isSkillRepoConvertToSymlinkResult(value: unknown): value is SkillRepoConvertToSymlinkResult;
|
|
773
835
|
declare function isSkillRepoUninstallResult(value: unknown): value is SkillRepoUninstallResult;
|
|
774
836
|
declare function isSkillRepoSetEntryEnabledResult(value: unknown): value is SkillRepoSetEntryEnabledResult;
|
|
837
|
+
declare function isCopilotContentDetectUnmanagedParams(value: unknown): value is CopilotContentDetectUnmanagedParams;
|
|
838
|
+
declare function isCopilotContentDetectUnmanagedResult(value: unknown): value is CopilotContentDetectUnmanagedResult;
|
|
839
|
+
declare function isCopilotContentAdoptUnmanagedParams(value: unknown): value is CopilotContentAdoptUnmanagedParams;
|
|
840
|
+
declare function isCopilotContentAdoptUnmanagedResult(value: unknown): value is CopilotContentAdoptUnmanagedResult;
|
|
775
841
|
declare function isSkillRepoListLinkedResult(value: unknown): value is SkillRepoListLinkedResult;
|
|
776
842
|
declare function isSkillRepoDraftCreateResult(value: unknown): value is SkillRepoDraftCreateResult;
|
|
777
843
|
declare function isSkillRepoDraftCommitResult(value: unknown): value is SkillRepoDraftCommitResult;
|
|
@@ -1316,6 +1382,14 @@ interface BridgeMethodMap {
|
|
|
1316
1382
|
params: SkillRepoSetEntryEnabledParams;
|
|
1317
1383
|
result: SkillRepoSetEntryEnabledResult;
|
|
1318
1384
|
};
|
|
1385
|
+
"copilotContent.detectUnmanaged": {
|
|
1386
|
+
params: CopilotContentDetectUnmanagedParams;
|
|
1387
|
+
result: CopilotContentDetectUnmanagedResult;
|
|
1388
|
+
};
|
|
1389
|
+
"copilotContent.adoptUnmanaged": {
|
|
1390
|
+
params: CopilotContentAdoptUnmanagedParams;
|
|
1391
|
+
result: CopilotContentAdoptUnmanagedResult;
|
|
1392
|
+
};
|
|
1319
1393
|
"copilotContent.listLinked": {
|
|
1320
1394
|
params: SkillRepoListLinkedParams;
|
|
1321
1395
|
result: SkillRepoListLinkedResult;
|
|
@@ -1537,7 +1611,7 @@ interface BridgeMethodMap {
|
|
|
1537
1611
|
result: ToolboxUpdateResult;
|
|
1538
1612
|
};
|
|
1539
1613
|
}
|
|
1540
|
-
declare const BRIDGE_METHODS: readonly ["system.hello", "system.ping", "system.shutdown", "task.execute", "task.cancel", "task.list-running", "copilotContent.list", "copilotContent.get", "copilotContent.install", "copilotContent.convertToSymlink", "copilotContent.uninstall", "copilotContent.setEntryEnabled", "copilotContent.listLinked", "copilotContent.draft.create", "copilotContent.draft.commit", "copilotContent.draft.list", "copilotContent.draft.delete", "skillRepo.list", "skillRepo.get", "skillRepo.install", "skillRepo.convertToSymlink", "skillRepo.uninstall", "skillRepo.setEntryEnabled", "skillRepo.listLinked", "skillRepo.draft.create", "skillRepo.draft.commit", "skillRepo.draft.list", "skillRepo.draft.delete", "repo.list", "repo.add", "repo.remove", "repo.enable", "repo.disable", "repo.update", "repo.sync", "repo.syncAll", "repo.resetParseCache", "copilotContent.status", "copilotContent.restore", "copilotContent.approve", "copilotContent.migrateLegacy", "copilotContent.integrationStatus", "copilotContent.customizations.list", "copilotContent.package.install", "copilotContent.package.update", "copilotContent.package.uninstall", "copilotContent.package.move", "copilotPlugin.list", "copilotPlugin.register", "copilotPlugin.unregister", "copilotContent.legacy.preview", "copilotContent.legacy.migrate", "copilotContent.sources.list", "copilotContent.sources.remove", "copilotContent.package.previewUpdate", "auth.status", "auth.login", "auth.logout", "auth.whoami", "auth.switch", "device.status", "device.enroll", "device.rotate-secret", "toolbox.list", "toolbox.add", "toolbox.remove", "toolbox.update"];
|
|
1614
|
+
declare const BRIDGE_METHODS: readonly ["system.hello", "system.ping", "system.shutdown", "task.execute", "task.cancel", "task.list-running", "copilotContent.list", "copilotContent.get", "copilotContent.install", "copilotContent.convertToSymlink", "copilotContent.uninstall", "copilotContent.setEntryEnabled", "copilotContent.detectUnmanaged", "copilotContent.adoptUnmanaged", "copilotContent.listLinked", "copilotContent.draft.create", "copilotContent.draft.commit", "copilotContent.draft.list", "copilotContent.draft.delete", "skillRepo.list", "skillRepo.get", "skillRepo.install", "skillRepo.convertToSymlink", "skillRepo.uninstall", "skillRepo.setEntryEnabled", "skillRepo.listLinked", "skillRepo.draft.create", "skillRepo.draft.commit", "skillRepo.draft.list", "skillRepo.draft.delete", "repo.list", "repo.add", "repo.remove", "repo.enable", "repo.disable", "repo.update", "repo.sync", "repo.syncAll", "repo.resetParseCache", "copilotContent.status", "copilotContent.restore", "copilotContent.approve", "copilotContent.migrateLegacy", "copilotContent.integrationStatus", "copilotContent.customizations.list", "copilotContent.package.install", "copilotContent.package.update", "copilotContent.package.uninstall", "copilotContent.package.move", "copilotPlugin.list", "copilotPlugin.register", "copilotPlugin.unregister", "copilotContent.legacy.preview", "copilotContent.legacy.migrate", "copilotContent.sources.list", "copilotContent.sources.remove", "copilotContent.package.previewUpdate", "auth.status", "auth.login", "auth.logout", "auth.whoami", "auth.switch", "device.status", "device.enroll", "device.rotate-secret", "toolbox.list", "toolbox.add", "toolbox.remove", "toolbox.update"];
|
|
1541
1615
|
type BridgeMethod = keyof BridgeMethodMap;
|
|
1542
1616
|
/**
|
|
1543
1617
|
* Legacy `skillRepo.*` → canonical `copilotContent.*` method aliases.
|
|
@@ -1822,7 +1896,7 @@ interface LocalPublishableAgent {
|
|
|
1822
1896
|
}
|
|
1823
1897
|
|
|
1824
1898
|
declare const SERVICEME_CLI_NAME = "serviceme";
|
|
1825
|
-
declare const SERVICEME_CLI_VERSION = "2.0.
|
|
1899
|
+
declare const SERVICEME_CLI_VERSION = "2.0.1";
|
|
1826
1900
|
declare const SERVICEME_CLI_CAPABILITIES: {
|
|
1827
1901
|
readonly bridge: true;
|
|
1828
1902
|
readonly tasks: 1;
|
|
@@ -1955,4 +2029,4 @@ declare function isSkillMutationResult(value: unknown): value is SkillMutationRe
|
|
|
1955
2029
|
declare function isSkillReconcileResult(value: unknown): value is SkillReconcileResult;
|
|
1956
2030
|
declare function isSkillPublishableResult(value: unknown): value is SkillPublishableResult;
|
|
1957
2031
|
|
|
1958
|
-
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_CONTENT_METHOD_ALIASES, COPILOT_ERROR_CODES, type CliEnvelope, type CliFailure, type CliSuccess, type ConcurrencyPolicy, type CopilotContentApproveParams, type CopilotContentApproveResult, type CopilotContentIntegrationKind, type CopilotContentIntegrationStatus, type CopilotContentIntegrationStatusParams, type CopilotContentIntegrationStatusResult, type CopilotContentMigrateLegacyParams, type CopilotContentMigrateLegacyResult, type CopilotContentRestoreParams, type CopilotContentRestoreResult, type CopilotContentStatus, type CopilotContentStatusParams, type CopilotContentStatusResult, type CopilotCustomizationsListParams, type CopilotCustomizationsListResult, type CopilotDoctorResult, type CopilotLegacyMigrateParams, type CopilotLegacyMigrateResult, type CopilotLegacyPreviewParams, type CopilotLegacyPreviewResult, type CopilotPackageInstallParams, type CopilotPackageInstallResult, type CopilotPackageMoveParams, type CopilotPackageMoveResult, type CopilotPackageUninstallParams, type CopilotPackageUninstallResult, type CopilotPackageUpdateParams, type CopilotPackageUpdateResult, type CopilotPluginListParams, type CopilotPluginListResult, type CopilotPluginRegisterParams, type CopilotPluginRegisterResult, type CopilotPluginRegistrationPayload, type CopilotPluginUnregisterParams, type CopilotPluginUnregisterResult, type CopilotPromptOptions, type CopilotPromptResult, type CopilotSourceListParams, type CopilotSourceListResult, type CopilotSourceRemoveParams, type CopilotSourceRemoveResult, type CopilotUpdatePreviewParams, type CopilotUpdatePreviewResult, 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 RepoResetParseCacheParams, type RepoResetParseCacheResult, 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 SkillRepoSetEntryEnabledParams, type SkillRepoSetEntryEnabledResult, 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, isCopilotContentApproveResult, isCopilotContentIntegrationStatusResult, isCopilotContentMigrateLegacyResult, isCopilotContentRestoreResult, isCopilotContentStatusResult, isCopilotCustomizationViewPayload, isCopilotCustomizationsListParams, isCopilotCustomizationsListResult, isCopilotLegacyMigrateParams, isCopilotLegacyMigrateResult, isCopilotLegacyPreviewParams, isCopilotLegacyPreviewResult, isCopilotPackageInstallParams, isCopilotPackageInstallResult, isCopilotPackageMoveParams, isCopilotPackageMoveResult, isCopilotPackageUninstallParams, isCopilotPackageUninstallResult, isCopilotPackageUpdateParams, isCopilotPackageUpdateResult, isCopilotPluginListParams, isCopilotPluginListResult, isCopilotPluginRegisterParams, isCopilotPluginRegisterResult, isCopilotPluginUnregisterParams, isCopilotPluginUnregisterResult, isCopilotSourceListParams, isCopilotSourceListResult, isCopilotSourceRemoveParams, isCopilotSourceRemoveResult, isCopilotUpdatePreviewParams, isCopilotUpdatePreviewResult, isDeviceBindingState, isDeviceEnrollParams, isDeviceEnrollResult, isDeviceIdentityState, isDeviceMetadata, isDeviceRotateSecretParams, isDeviceRotateSecretResult, isDeviceStatus, isEnvironmentCheckResult, isExternalTool, isExternalToolPatch, isJsonOutputResult, isJsonSortAlgorithm, isJsonSortOptions, isJsonSortOrder, isJsonValidationResult, isKnownEnvironmentTool, isRecord, 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, isSkillRepoSetEntryEnabledParams, isSkillRepoSetEntryEnabledResult, 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, normalizeBridgeMethod, normalizeServicemeError };
|
|
2032
|
+
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_CONTENT_METHOD_ALIASES, COPILOT_ERROR_CODES, type CliEnvelope, type CliFailure, type CliSuccess, type ConcurrencyPolicy, type CopilotContentAdoptUnmanagedParams, type CopilotContentAdoptUnmanagedResult, type CopilotContentApproveParams, type CopilotContentApproveResult, type CopilotContentDetectUnmanagedParams, type CopilotContentDetectUnmanagedResult, type CopilotContentIntegrationKind, type CopilotContentIntegrationStatus, type CopilotContentIntegrationStatusParams, type CopilotContentIntegrationStatusResult, type CopilotContentMigrateLegacyParams, type CopilotContentMigrateLegacyResult, type CopilotContentRestoreParams, type CopilotContentRestoreResult, type CopilotContentStatus, type CopilotContentStatusParams, type CopilotContentStatusResult, type CopilotCustomizationsListParams, type CopilotCustomizationsListResult, type CopilotDoctorResult, type CopilotLegacyMigrateParams, type CopilotLegacyMigrateResult, type CopilotLegacyPreviewParams, type CopilotLegacyPreviewResult, type CopilotPackageInstallParams, type CopilotPackageInstallResult, type CopilotPackageMoveParams, type CopilotPackageMoveResult, type CopilotPackageUninstallParams, type CopilotPackageUninstallResult, type CopilotPackageUpdateParams, type CopilotPackageUpdateResult, type CopilotPluginListParams, type CopilotPluginListResult, type CopilotPluginRegisterParams, type CopilotPluginRegisterResult, type CopilotPluginRegistrationPayload, type CopilotPluginUnregisterParams, type CopilotPluginUnregisterResult, type CopilotPromptOptions, type CopilotPromptResult, type CopilotSourceListParams, type CopilotSourceListResult, type CopilotSourceRemoveParams, type CopilotSourceRemoveResult, type CopilotUpdatePreviewParams, type CopilotUpdatePreviewResult, 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 RepoResetParseCacheParams, type RepoResetParseCacheResult, 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 SkillRepoSetEntryEnabledParams, type SkillRepoSetEntryEnabledResult, 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, isCopilotContentAdoptUnmanagedParams, isCopilotContentAdoptUnmanagedResult, isCopilotContentApproveResult, isCopilotContentDetectUnmanagedParams, isCopilotContentDetectUnmanagedResult, isCopilotContentIntegrationStatusResult, isCopilotContentMigrateLegacyResult, isCopilotContentRestoreResult, isCopilotContentStatusResult, isCopilotCustomizationViewPayload, isCopilotCustomizationsListParams, isCopilotCustomizationsListResult, isCopilotLegacyMigrateParams, isCopilotLegacyMigrateResult, isCopilotLegacyPreviewParams, isCopilotLegacyPreviewResult, isCopilotPackageInstallParams, isCopilotPackageInstallResult, isCopilotPackageMoveParams, isCopilotPackageMoveResult, isCopilotPackageUninstallParams, isCopilotPackageUninstallResult, isCopilotPackageUpdateParams, isCopilotPackageUpdateResult, isCopilotPluginListParams, isCopilotPluginListResult, isCopilotPluginRegisterParams, isCopilotPluginRegisterResult, isCopilotPluginUnregisterParams, isCopilotPluginUnregisterResult, isCopilotSourceListParams, isCopilotSourceListResult, isCopilotSourceRemoveParams, isCopilotSourceRemoveResult, isCopilotUpdatePreviewParams, isCopilotUpdatePreviewResult, isDeviceBindingState, isDeviceEnrollParams, isDeviceEnrollResult, isDeviceIdentityState, isDeviceMetadata, isDeviceRotateSecretParams, isDeviceRotateSecretResult, isDeviceStatus, isEnvironmentCheckResult, isExternalTool, isExternalToolPatch, isJsonOutputResult, isJsonSortAlgorithm, isJsonSortOptions, isJsonSortOrder, isJsonValidationResult, isKnownEnvironmentTool, isRecord, 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, isSkillRepoSetEntryEnabledParams, isSkillRepoSetEntryEnabledResult, 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, normalizeBridgeMethod, normalizeServicemeError };
|
package/dist/index.d.ts
CHANGED
|
@@ -562,6 +562,68 @@ interface SkillRepoSetEntryEnabledParams {
|
|
|
562
562
|
interface SkillRepoSetEntryEnabledResult {
|
|
563
563
|
enabled: boolean;
|
|
564
564
|
}
|
|
565
|
+
/**
|
|
566
|
+
* `copilotContent.detectUnmanaged` — read-only detection of workspace
|
|
567
|
+
* Copilot content (skills/agents/hooks/MCP) that exists without a
|
|
568
|
+
* `.github/serviceme-plugins.json` declaration. See the core detector
|
|
569
|
+
* for the provenance rules (symlink targets, content fingerprints,
|
|
570
|
+
* generated-config identity maps).
|
|
571
|
+
*/
|
|
572
|
+
interface CopilotContentDetectUnmanagedParams {
|
|
573
|
+
workspaceDir: string;
|
|
574
|
+
}
|
|
575
|
+
interface CopilotContentDetectUnmanagedResult {
|
|
576
|
+
/** Sources resolved exactly (symlink) or uniquely (fingerprint). */
|
|
577
|
+
adoptions: Array<{
|
|
578
|
+
repoId: string;
|
|
579
|
+
name: string;
|
|
580
|
+
kind: "skill" | "agent";
|
|
581
|
+
source: "symlink" | "fingerprint";
|
|
582
|
+
}>;
|
|
583
|
+
/** Real copies whose content matches several repos — user picks. */
|
|
584
|
+
ambiguous: Array<{
|
|
585
|
+
name: string;
|
|
586
|
+
kind: "skill" | "agent";
|
|
587
|
+
candidates: string[];
|
|
588
|
+
}>;
|
|
589
|
+
/** Hook/MCP integrations recorded in generated serviceme configs. */
|
|
590
|
+
integrations: Array<{
|
|
591
|
+
repoId: string;
|
|
592
|
+
pluginId: string;
|
|
593
|
+
kind: "hook" | "mcp";
|
|
594
|
+
}>;
|
|
595
|
+
/** Present but not adoptable — transparency only. */
|
|
596
|
+
unmatched: Array<{
|
|
597
|
+
name: string;
|
|
598
|
+
kind: string;
|
|
599
|
+
reason: string;
|
|
600
|
+
}>;
|
|
601
|
+
}
|
|
602
|
+
/**
|
|
603
|
+
* `copilotContent.adoptUnmanaged` — initialize the workspace
|
|
604
|
+
* declaration from detected content: convert real copies to symlinks
|
|
605
|
+
* when asked, record the selections (including hook/MCP kinds), and
|
|
606
|
+
* reconcile. Returns the standard restore entry statuses.
|
|
607
|
+
*/
|
|
608
|
+
interface CopilotContentAdoptUnmanagedParams {
|
|
609
|
+
workspaceDir: string;
|
|
610
|
+
entries: Array<{
|
|
611
|
+
repoId: string;
|
|
612
|
+
name: string;
|
|
613
|
+
kind: "skill" | "agent";
|
|
614
|
+
/** Convert a real copy into a symlink before adopting. */
|
|
615
|
+
convertRealCopy?: boolean;
|
|
616
|
+
}>;
|
|
617
|
+
integrations?: Array<{
|
|
618
|
+
repoId: string;
|
|
619
|
+
pluginId: string;
|
|
620
|
+
kind: "hook" | "mcp";
|
|
621
|
+
}>;
|
|
622
|
+
}
|
|
623
|
+
type CopilotContentAdoptUnmanagedResult = {
|
|
624
|
+
changed: boolean;
|
|
625
|
+
entries: CopilotContentRestoreResult["entries"];
|
|
626
|
+
};
|
|
565
627
|
/** `skillRepo.listLinked` — every link currently in a workspace and/or user (global) scope. */
|
|
566
628
|
interface SkillRepoListLinkedParams {
|
|
567
629
|
workspaceDir: string;
|
|
@@ -772,6 +834,10 @@ declare function isSkillRepoInstallResult(value: unknown): value is SkillRepoIns
|
|
|
772
834
|
declare function isSkillRepoConvertToSymlinkResult(value: unknown): value is SkillRepoConvertToSymlinkResult;
|
|
773
835
|
declare function isSkillRepoUninstallResult(value: unknown): value is SkillRepoUninstallResult;
|
|
774
836
|
declare function isSkillRepoSetEntryEnabledResult(value: unknown): value is SkillRepoSetEntryEnabledResult;
|
|
837
|
+
declare function isCopilotContentDetectUnmanagedParams(value: unknown): value is CopilotContentDetectUnmanagedParams;
|
|
838
|
+
declare function isCopilotContentDetectUnmanagedResult(value: unknown): value is CopilotContentDetectUnmanagedResult;
|
|
839
|
+
declare function isCopilotContentAdoptUnmanagedParams(value: unknown): value is CopilotContentAdoptUnmanagedParams;
|
|
840
|
+
declare function isCopilotContentAdoptUnmanagedResult(value: unknown): value is CopilotContentAdoptUnmanagedResult;
|
|
775
841
|
declare function isSkillRepoListLinkedResult(value: unknown): value is SkillRepoListLinkedResult;
|
|
776
842
|
declare function isSkillRepoDraftCreateResult(value: unknown): value is SkillRepoDraftCreateResult;
|
|
777
843
|
declare function isSkillRepoDraftCommitResult(value: unknown): value is SkillRepoDraftCommitResult;
|
|
@@ -1316,6 +1382,14 @@ interface BridgeMethodMap {
|
|
|
1316
1382
|
params: SkillRepoSetEntryEnabledParams;
|
|
1317
1383
|
result: SkillRepoSetEntryEnabledResult;
|
|
1318
1384
|
};
|
|
1385
|
+
"copilotContent.detectUnmanaged": {
|
|
1386
|
+
params: CopilotContentDetectUnmanagedParams;
|
|
1387
|
+
result: CopilotContentDetectUnmanagedResult;
|
|
1388
|
+
};
|
|
1389
|
+
"copilotContent.adoptUnmanaged": {
|
|
1390
|
+
params: CopilotContentAdoptUnmanagedParams;
|
|
1391
|
+
result: CopilotContentAdoptUnmanagedResult;
|
|
1392
|
+
};
|
|
1319
1393
|
"copilotContent.listLinked": {
|
|
1320
1394
|
params: SkillRepoListLinkedParams;
|
|
1321
1395
|
result: SkillRepoListLinkedResult;
|
|
@@ -1537,7 +1611,7 @@ interface BridgeMethodMap {
|
|
|
1537
1611
|
result: ToolboxUpdateResult;
|
|
1538
1612
|
};
|
|
1539
1613
|
}
|
|
1540
|
-
declare const BRIDGE_METHODS: readonly ["system.hello", "system.ping", "system.shutdown", "task.execute", "task.cancel", "task.list-running", "copilotContent.list", "copilotContent.get", "copilotContent.install", "copilotContent.convertToSymlink", "copilotContent.uninstall", "copilotContent.setEntryEnabled", "copilotContent.listLinked", "copilotContent.draft.create", "copilotContent.draft.commit", "copilotContent.draft.list", "copilotContent.draft.delete", "skillRepo.list", "skillRepo.get", "skillRepo.install", "skillRepo.convertToSymlink", "skillRepo.uninstall", "skillRepo.setEntryEnabled", "skillRepo.listLinked", "skillRepo.draft.create", "skillRepo.draft.commit", "skillRepo.draft.list", "skillRepo.draft.delete", "repo.list", "repo.add", "repo.remove", "repo.enable", "repo.disable", "repo.update", "repo.sync", "repo.syncAll", "repo.resetParseCache", "copilotContent.status", "copilotContent.restore", "copilotContent.approve", "copilotContent.migrateLegacy", "copilotContent.integrationStatus", "copilotContent.customizations.list", "copilotContent.package.install", "copilotContent.package.update", "copilotContent.package.uninstall", "copilotContent.package.move", "copilotPlugin.list", "copilotPlugin.register", "copilotPlugin.unregister", "copilotContent.legacy.preview", "copilotContent.legacy.migrate", "copilotContent.sources.list", "copilotContent.sources.remove", "copilotContent.package.previewUpdate", "auth.status", "auth.login", "auth.logout", "auth.whoami", "auth.switch", "device.status", "device.enroll", "device.rotate-secret", "toolbox.list", "toolbox.add", "toolbox.remove", "toolbox.update"];
|
|
1614
|
+
declare const BRIDGE_METHODS: readonly ["system.hello", "system.ping", "system.shutdown", "task.execute", "task.cancel", "task.list-running", "copilotContent.list", "copilotContent.get", "copilotContent.install", "copilotContent.convertToSymlink", "copilotContent.uninstall", "copilotContent.setEntryEnabled", "copilotContent.detectUnmanaged", "copilotContent.adoptUnmanaged", "copilotContent.listLinked", "copilotContent.draft.create", "copilotContent.draft.commit", "copilotContent.draft.list", "copilotContent.draft.delete", "skillRepo.list", "skillRepo.get", "skillRepo.install", "skillRepo.convertToSymlink", "skillRepo.uninstall", "skillRepo.setEntryEnabled", "skillRepo.listLinked", "skillRepo.draft.create", "skillRepo.draft.commit", "skillRepo.draft.list", "skillRepo.draft.delete", "repo.list", "repo.add", "repo.remove", "repo.enable", "repo.disable", "repo.update", "repo.sync", "repo.syncAll", "repo.resetParseCache", "copilotContent.status", "copilotContent.restore", "copilotContent.approve", "copilotContent.migrateLegacy", "copilotContent.integrationStatus", "copilotContent.customizations.list", "copilotContent.package.install", "copilotContent.package.update", "copilotContent.package.uninstall", "copilotContent.package.move", "copilotPlugin.list", "copilotPlugin.register", "copilotPlugin.unregister", "copilotContent.legacy.preview", "copilotContent.legacy.migrate", "copilotContent.sources.list", "copilotContent.sources.remove", "copilotContent.package.previewUpdate", "auth.status", "auth.login", "auth.logout", "auth.whoami", "auth.switch", "device.status", "device.enroll", "device.rotate-secret", "toolbox.list", "toolbox.add", "toolbox.remove", "toolbox.update"];
|
|
1541
1615
|
type BridgeMethod = keyof BridgeMethodMap;
|
|
1542
1616
|
/**
|
|
1543
1617
|
* Legacy `skillRepo.*` → canonical `copilotContent.*` method aliases.
|
|
@@ -1822,7 +1896,7 @@ interface LocalPublishableAgent {
|
|
|
1822
1896
|
}
|
|
1823
1897
|
|
|
1824
1898
|
declare const SERVICEME_CLI_NAME = "serviceme";
|
|
1825
|
-
declare const SERVICEME_CLI_VERSION = "2.0.
|
|
1899
|
+
declare const SERVICEME_CLI_VERSION = "2.0.1";
|
|
1826
1900
|
declare const SERVICEME_CLI_CAPABILITIES: {
|
|
1827
1901
|
readonly bridge: true;
|
|
1828
1902
|
readonly tasks: 1;
|
|
@@ -1955,4 +2029,4 @@ declare function isSkillMutationResult(value: unknown): value is SkillMutationRe
|
|
|
1955
2029
|
declare function isSkillReconcileResult(value: unknown): value is SkillReconcileResult;
|
|
1956
2030
|
declare function isSkillPublishableResult(value: unknown): value is SkillPublishableResult;
|
|
1957
2031
|
|
|
1958
|
-
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_CONTENT_METHOD_ALIASES, COPILOT_ERROR_CODES, type CliEnvelope, type CliFailure, type CliSuccess, type ConcurrencyPolicy, type CopilotContentApproveParams, type CopilotContentApproveResult, type CopilotContentIntegrationKind, type CopilotContentIntegrationStatus, type CopilotContentIntegrationStatusParams, type CopilotContentIntegrationStatusResult, type CopilotContentMigrateLegacyParams, type CopilotContentMigrateLegacyResult, type CopilotContentRestoreParams, type CopilotContentRestoreResult, type CopilotContentStatus, type CopilotContentStatusParams, type CopilotContentStatusResult, type CopilotCustomizationsListParams, type CopilotCustomizationsListResult, type CopilotDoctorResult, type CopilotLegacyMigrateParams, type CopilotLegacyMigrateResult, type CopilotLegacyPreviewParams, type CopilotLegacyPreviewResult, type CopilotPackageInstallParams, type CopilotPackageInstallResult, type CopilotPackageMoveParams, type CopilotPackageMoveResult, type CopilotPackageUninstallParams, type CopilotPackageUninstallResult, type CopilotPackageUpdateParams, type CopilotPackageUpdateResult, type CopilotPluginListParams, type CopilotPluginListResult, type CopilotPluginRegisterParams, type CopilotPluginRegisterResult, type CopilotPluginRegistrationPayload, type CopilotPluginUnregisterParams, type CopilotPluginUnregisterResult, type CopilotPromptOptions, type CopilotPromptResult, type CopilotSourceListParams, type CopilotSourceListResult, type CopilotSourceRemoveParams, type CopilotSourceRemoveResult, type CopilotUpdatePreviewParams, type CopilotUpdatePreviewResult, 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 RepoResetParseCacheParams, type RepoResetParseCacheResult, 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 SkillRepoSetEntryEnabledParams, type SkillRepoSetEntryEnabledResult, 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, isCopilotContentApproveResult, isCopilotContentIntegrationStatusResult, isCopilotContentMigrateLegacyResult, isCopilotContentRestoreResult, isCopilotContentStatusResult, isCopilotCustomizationViewPayload, isCopilotCustomizationsListParams, isCopilotCustomizationsListResult, isCopilotLegacyMigrateParams, isCopilotLegacyMigrateResult, isCopilotLegacyPreviewParams, isCopilotLegacyPreviewResult, isCopilotPackageInstallParams, isCopilotPackageInstallResult, isCopilotPackageMoveParams, isCopilotPackageMoveResult, isCopilotPackageUninstallParams, isCopilotPackageUninstallResult, isCopilotPackageUpdateParams, isCopilotPackageUpdateResult, isCopilotPluginListParams, isCopilotPluginListResult, isCopilotPluginRegisterParams, isCopilotPluginRegisterResult, isCopilotPluginUnregisterParams, isCopilotPluginUnregisterResult, isCopilotSourceListParams, isCopilotSourceListResult, isCopilotSourceRemoveParams, isCopilotSourceRemoveResult, isCopilotUpdatePreviewParams, isCopilotUpdatePreviewResult, isDeviceBindingState, isDeviceEnrollParams, isDeviceEnrollResult, isDeviceIdentityState, isDeviceMetadata, isDeviceRotateSecretParams, isDeviceRotateSecretResult, isDeviceStatus, isEnvironmentCheckResult, isExternalTool, isExternalToolPatch, isJsonOutputResult, isJsonSortAlgorithm, isJsonSortOptions, isJsonSortOrder, isJsonValidationResult, isKnownEnvironmentTool, isRecord, 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, isSkillRepoSetEntryEnabledParams, isSkillRepoSetEntryEnabledResult, 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, normalizeBridgeMethod, normalizeServicemeError };
|
|
2032
|
+
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_CONTENT_METHOD_ALIASES, COPILOT_ERROR_CODES, type CliEnvelope, type CliFailure, type CliSuccess, type ConcurrencyPolicy, type CopilotContentAdoptUnmanagedParams, type CopilotContentAdoptUnmanagedResult, type CopilotContentApproveParams, type CopilotContentApproveResult, type CopilotContentDetectUnmanagedParams, type CopilotContentDetectUnmanagedResult, type CopilotContentIntegrationKind, type CopilotContentIntegrationStatus, type CopilotContentIntegrationStatusParams, type CopilotContentIntegrationStatusResult, type CopilotContentMigrateLegacyParams, type CopilotContentMigrateLegacyResult, type CopilotContentRestoreParams, type CopilotContentRestoreResult, type CopilotContentStatus, type CopilotContentStatusParams, type CopilotContentStatusResult, type CopilotCustomizationsListParams, type CopilotCustomizationsListResult, type CopilotDoctorResult, type CopilotLegacyMigrateParams, type CopilotLegacyMigrateResult, type CopilotLegacyPreviewParams, type CopilotLegacyPreviewResult, type CopilotPackageInstallParams, type CopilotPackageInstallResult, type CopilotPackageMoveParams, type CopilotPackageMoveResult, type CopilotPackageUninstallParams, type CopilotPackageUninstallResult, type CopilotPackageUpdateParams, type CopilotPackageUpdateResult, type CopilotPluginListParams, type CopilotPluginListResult, type CopilotPluginRegisterParams, type CopilotPluginRegisterResult, type CopilotPluginRegistrationPayload, type CopilotPluginUnregisterParams, type CopilotPluginUnregisterResult, type CopilotPromptOptions, type CopilotPromptResult, type CopilotSourceListParams, type CopilotSourceListResult, type CopilotSourceRemoveParams, type CopilotSourceRemoveResult, type CopilotUpdatePreviewParams, type CopilotUpdatePreviewResult, 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 RepoResetParseCacheParams, type RepoResetParseCacheResult, 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 SkillRepoSetEntryEnabledParams, type SkillRepoSetEntryEnabledResult, 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, isCopilotContentAdoptUnmanagedParams, isCopilotContentAdoptUnmanagedResult, isCopilotContentApproveResult, isCopilotContentDetectUnmanagedParams, isCopilotContentDetectUnmanagedResult, isCopilotContentIntegrationStatusResult, isCopilotContentMigrateLegacyResult, isCopilotContentRestoreResult, isCopilotContentStatusResult, isCopilotCustomizationViewPayload, isCopilotCustomizationsListParams, isCopilotCustomizationsListResult, isCopilotLegacyMigrateParams, isCopilotLegacyMigrateResult, isCopilotLegacyPreviewParams, isCopilotLegacyPreviewResult, isCopilotPackageInstallParams, isCopilotPackageInstallResult, isCopilotPackageMoveParams, isCopilotPackageMoveResult, isCopilotPackageUninstallParams, isCopilotPackageUninstallResult, isCopilotPackageUpdateParams, isCopilotPackageUpdateResult, isCopilotPluginListParams, isCopilotPluginListResult, isCopilotPluginRegisterParams, isCopilotPluginRegisterResult, isCopilotPluginUnregisterParams, isCopilotPluginUnregisterResult, isCopilotSourceListParams, isCopilotSourceListResult, isCopilotSourceRemoveParams, isCopilotSourceRemoveResult, isCopilotUpdatePreviewParams, isCopilotUpdatePreviewResult, isDeviceBindingState, isDeviceEnrollParams, isDeviceEnrollResult, isDeviceIdentityState, isDeviceMetadata, isDeviceRotateSecretParams, isDeviceRotateSecretResult, isDeviceStatus, isEnvironmentCheckResult, isExternalTool, isExternalToolPatch, isJsonOutputResult, isJsonSortAlgorithm, isJsonSortOptions, isJsonSortOrder, isJsonValidationResult, isKnownEnvironmentTool, isRecord, 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, isSkillRepoSetEntryEnabledParams, isSkillRepoSetEntryEnabledResult, 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, normalizeBridgeMethod, normalizeServicemeError };
|
package/dist/index.js
CHANGED
|
@@ -68,7 +68,11 @@ __export(index_exports, {
|
|
|
68
68
|
isBridgeRequest: () => isBridgeRequest,
|
|
69
69
|
isBridgeResponse: () => isBridgeResponse,
|
|
70
70
|
isCliEnvelope: () => isCliEnvelope,
|
|
71
|
+
isCopilotContentAdoptUnmanagedParams: () => isCopilotContentAdoptUnmanagedParams,
|
|
72
|
+
isCopilotContentAdoptUnmanagedResult: () => isCopilotContentAdoptUnmanagedResult,
|
|
71
73
|
isCopilotContentApproveResult: () => isCopilotContentApproveResult,
|
|
74
|
+
isCopilotContentDetectUnmanagedParams: () => isCopilotContentDetectUnmanagedParams,
|
|
75
|
+
isCopilotContentDetectUnmanagedResult: () => isCopilotContentDetectUnmanagedResult,
|
|
72
76
|
isCopilotContentIntegrationStatusResult: () => isCopilotContentIntegrationStatusResult,
|
|
73
77
|
isCopilotContentMigrateLegacyResult: () => isCopilotContentMigrateLegacyResult,
|
|
74
78
|
isCopilotContentRestoreResult: () => isCopilotContentRestoreResult,
|
|
@@ -707,6 +711,49 @@ function isSkillRepoUninstallResult(value) {
|
|
|
707
711
|
function isSkillRepoSetEntryEnabledResult(value) {
|
|
708
712
|
return isRecord5(value) && typeof value.enabled === "boolean";
|
|
709
713
|
}
|
|
714
|
+
function isSkillKind(value) {
|
|
715
|
+
return value === "skill" || value === "agent";
|
|
716
|
+
}
|
|
717
|
+
function isCopilotContentDetectUnmanagedParams(value) {
|
|
718
|
+
return isRecord5(value) && typeof value.workspaceDir === "string";
|
|
719
|
+
}
|
|
720
|
+
function isCopilotContentDetectUnmanagedResult(value) {
|
|
721
|
+
if (!isRecord5(value)) return false;
|
|
722
|
+
if (!Array.isArray(value.adoptions) || !Array.isArray(value.ambiguous)) return false;
|
|
723
|
+
if (!Array.isArray(value.integrations) || !Array.isArray(value.unmatched)) return false;
|
|
724
|
+
return value.adoptions.every(
|
|
725
|
+
(a) => isRecord5(a) && typeof a.repoId === "string" && typeof a.name === "string" && isSkillKind(a.kind) && (a.source === "symlink" || a.source === "fingerprint")
|
|
726
|
+
) && value.ambiguous.every(
|
|
727
|
+
(a) => isRecord5(a) && typeof a.name === "string" && isSkillKind(a.kind) && Array.isArray(a.candidates) && a.candidates.every((c) => typeof c === "string")
|
|
728
|
+
) && value.integrations.every(
|
|
729
|
+
(i) => isRecord5(i) && typeof i.repoId === "string" && typeof i.pluginId === "string" && (i.kind === "hook" || i.kind === "mcp")
|
|
730
|
+
) && value.unmatched.every(
|
|
731
|
+
(u) => isRecord5(u) && typeof u.name === "string" && typeof u.reason === "string"
|
|
732
|
+
);
|
|
733
|
+
}
|
|
734
|
+
function isCopilotContentAdoptUnmanagedParams(value) {
|
|
735
|
+
if (!isRecord5(value) || typeof value.workspaceDir !== "string") return false;
|
|
736
|
+
if (!Array.isArray(value.entries)) return false;
|
|
737
|
+
if (!value.entries.every(
|
|
738
|
+
(e) => isRecord5(e) && typeof e.repoId === "string" && typeof e.name === "string" && isSkillKind(e.kind) && (e.convertRealCopy === void 0 || typeof e.convertRealCopy === "boolean")
|
|
739
|
+
)) {
|
|
740
|
+
return false;
|
|
741
|
+
}
|
|
742
|
+
if (value.integrations !== void 0 && !Array.isArray(value.integrations)) return false;
|
|
743
|
+
if (Array.isArray(value.integrations)) {
|
|
744
|
+
return value.integrations.every(
|
|
745
|
+
(i) => isRecord5(i) && typeof i.repoId === "string" && typeof i.pluginId === "string" && (i.kind === "hook" || i.kind === "mcp")
|
|
746
|
+
);
|
|
747
|
+
}
|
|
748
|
+
return true;
|
|
749
|
+
}
|
|
750
|
+
function isCopilotContentAdoptUnmanagedResult(value) {
|
|
751
|
+
if (!isRecord5(value) || typeof value.changed !== "boolean") return false;
|
|
752
|
+
if (!Array.isArray(value.entries)) return false;
|
|
753
|
+
return value.entries.every(
|
|
754
|
+
(e) => isRecord5(e) && typeof e.identity === "string" && typeof e.status === "string" && (e.message === void 0 || typeof e.message === "string")
|
|
755
|
+
);
|
|
756
|
+
}
|
|
710
757
|
function isSkillRepoListLinkedResult(value) {
|
|
711
758
|
return isRecord5(value) && Array.isArray(value.links) && value.links.every(isLinkedSkill);
|
|
712
759
|
}
|
|
@@ -1134,6 +1181,8 @@ var BRIDGE_METHODS = [
|
|
|
1134
1181
|
"copilotContent.convertToSymlink",
|
|
1135
1182
|
"copilotContent.uninstall",
|
|
1136
1183
|
"copilotContent.setEntryEnabled",
|
|
1184
|
+
"copilotContent.detectUnmanaged",
|
|
1185
|
+
"copilotContent.adoptUnmanaged",
|
|
1137
1186
|
"copilotContent.listLinked",
|
|
1138
1187
|
"copilotContent.draft.create",
|
|
1139
1188
|
"copilotContent.draft.commit",
|
|
@@ -1254,6 +1303,10 @@ function getBridgeResultValidator(method) {
|
|
|
1254
1303
|
case "copilotContent.setEntryEnabled":
|
|
1255
1304
|
case "skillRepo.setEntryEnabled":
|
|
1256
1305
|
return isSkillRepoSetEntryEnabledResult;
|
|
1306
|
+
case "copilotContent.detectUnmanaged":
|
|
1307
|
+
return isCopilotContentDetectUnmanagedResult;
|
|
1308
|
+
case "copilotContent.adoptUnmanaged":
|
|
1309
|
+
return isCopilotContentAdoptUnmanagedResult;
|
|
1257
1310
|
case "copilotContent.listLinked":
|
|
1258
1311
|
case "skillRepo.listLinked":
|
|
1259
1312
|
return isSkillRepoListLinkedResult;
|
|
@@ -1623,7 +1676,7 @@ function isServiceMeImageValidationResult(value) {
|
|
|
1623
1676
|
|
|
1624
1677
|
// src/metadata.ts
|
|
1625
1678
|
var SERVICEME_CLI_NAME = "serviceme";
|
|
1626
|
-
var SERVICEME_CLI_VERSION = "2.0.
|
|
1679
|
+
var SERVICEME_CLI_VERSION = "2.0.1";
|
|
1627
1680
|
var SERVICEME_CLI_CAPABILITIES = {
|
|
1628
1681
|
bridge: true,
|
|
1629
1682
|
tasks: 1,
|
|
@@ -1790,7 +1843,11 @@ function isSkillPublishableResult(value) {
|
|
|
1790
1843
|
isBridgeRequest,
|
|
1791
1844
|
isBridgeResponse,
|
|
1792
1845
|
isCliEnvelope,
|
|
1846
|
+
isCopilotContentAdoptUnmanagedParams,
|
|
1847
|
+
isCopilotContentAdoptUnmanagedResult,
|
|
1793
1848
|
isCopilotContentApproveResult,
|
|
1849
|
+
isCopilotContentDetectUnmanagedParams,
|
|
1850
|
+
isCopilotContentDetectUnmanagedResult,
|
|
1794
1851
|
isCopilotContentIntegrationStatusResult,
|
|
1795
1852
|
isCopilotContentMigrateLegacyResult,
|
|
1796
1853
|
isCopilotContentRestoreResult,
|
package/dist/index.mjs
CHANGED
|
@@ -499,6 +499,49 @@ function isSkillRepoUninstallResult(value) {
|
|
|
499
499
|
function isSkillRepoSetEntryEnabledResult(value) {
|
|
500
500
|
return isRecord5(value) && typeof value.enabled === "boolean";
|
|
501
501
|
}
|
|
502
|
+
function isSkillKind(value) {
|
|
503
|
+
return value === "skill" || value === "agent";
|
|
504
|
+
}
|
|
505
|
+
function isCopilotContentDetectUnmanagedParams(value) {
|
|
506
|
+
return isRecord5(value) && typeof value.workspaceDir === "string";
|
|
507
|
+
}
|
|
508
|
+
function isCopilotContentDetectUnmanagedResult(value) {
|
|
509
|
+
if (!isRecord5(value)) return false;
|
|
510
|
+
if (!Array.isArray(value.adoptions) || !Array.isArray(value.ambiguous)) return false;
|
|
511
|
+
if (!Array.isArray(value.integrations) || !Array.isArray(value.unmatched)) return false;
|
|
512
|
+
return value.adoptions.every(
|
|
513
|
+
(a) => isRecord5(a) && typeof a.repoId === "string" && typeof a.name === "string" && isSkillKind(a.kind) && (a.source === "symlink" || a.source === "fingerprint")
|
|
514
|
+
) && value.ambiguous.every(
|
|
515
|
+
(a) => isRecord5(a) && typeof a.name === "string" && isSkillKind(a.kind) && Array.isArray(a.candidates) && a.candidates.every((c) => typeof c === "string")
|
|
516
|
+
) && value.integrations.every(
|
|
517
|
+
(i) => isRecord5(i) && typeof i.repoId === "string" && typeof i.pluginId === "string" && (i.kind === "hook" || i.kind === "mcp")
|
|
518
|
+
) && value.unmatched.every(
|
|
519
|
+
(u) => isRecord5(u) && typeof u.name === "string" && typeof u.reason === "string"
|
|
520
|
+
);
|
|
521
|
+
}
|
|
522
|
+
function isCopilotContentAdoptUnmanagedParams(value) {
|
|
523
|
+
if (!isRecord5(value) || typeof value.workspaceDir !== "string") return false;
|
|
524
|
+
if (!Array.isArray(value.entries)) return false;
|
|
525
|
+
if (!value.entries.every(
|
|
526
|
+
(e) => isRecord5(e) && typeof e.repoId === "string" && typeof e.name === "string" && isSkillKind(e.kind) && (e.convertRealCopy === void 0 || typeof e.convertRealCopy === "boolean")
|
|
527
|
+
)) {
|
|
528
|
+
return false;
|
|
529
|
+
}
|
|
530
|
+
if (value.integrations !== void 0 && !Array.isArray(value.integrations)) return false;
|
|
531
|
+
if (Array.isArray(value.integrations)) {
|
|
532
|
+
return value.integrations.every(
|
|
533
|
+
(i) => isRecord5(i) && typeof i.repoId === "string" && typeof i.pluginId === "string" && (i.kind === "hook" || i.kind === "mcp")
|
|
534
|
+
);
|
|
535
|
+
}
|
|
536
|
+
return true;
|
|
537
|
+
}
|
|
538
|
+
function isCopilotContentAdoptUnmanagedResult(value) {
|
|
539
|
+
if (!isRecord5(value) || typeof value.changed !== "boolean") return false;
|
|
540
|
+
if (!Array.isArray(value.entries)) return false;
|
|
541
|
+
return value.entries.every(
|
|
542
|
+
(e) => isRecord5(e) && typeof e.identity === "string" && typeof e.status === "string" && (e.message === void 0 || typeof e.message === "string")
|
|
543
|
+
);
|
|
544
|
+
}
|
|
502
545
|
function isSkillRepoListLinkedResult(value) {
|
|
503
546
|
return isRecord5(value) && Array.isArray(value.links) && value.links.every(isLinkedSkill);
|
|
504
547
|
}
|
|
@@ -926,6 +969,8 @@ var BRIDGE_METHODS = [
|
|
|
926
969
|
"copilotContent.convertToSymlink",
|
|
927
970
|
"copilotContent.uninstall",
|
|
928
971
|
"copilotContent.setEntryEnabled",
|
|
972
|
+
"copilotContent.detectUnmanaged",
|
|
973
|
+
"copilotContent.adoptUnmanaged",
|
|
929
974
|
"copilotContent.listLinked",
|
|
930
975
|
"copilotContent.draft.create",
|
|
931
976
|
"copilotContent.draft.commit",
|
|
@@ -1046,6 +1091,10 @@ function getBridgeResultValidator(method) {
|
|
|
1046
1091
|
case "copilotContent.setEntryEnabled":
|
|
1047
1092
|
case "skillRepo.setEntryEnabled":
|
|
1048
1093
|
return isSkillRepoSetEntryEnabledResult;
|
|
1094
|
+
case "copilotContent.detectUnmanaged":
|
|
1095
|
+
return isCopilotContentDetectUnmanagedResult;
|
|
1096
|
+
case "copilotContent.adoptUnmanaged":
|
|
1097
|
+
return isCopilotContentAdoptUnmanagedResult;
|
|
1049
1098
|
case "copilotContent.listLinked":
|
|
1050
1099
|
case "skillRepo.listLinked":
|
|
1051
1100
|
return isSkillRepoListLinkedResult;
|
|
@@ -1415,7 +1464,7 @@ function isServiceMeImageValidationResult(value) {
|
|
|
1415
1464
|
|
|
1416
1465
|
// src/metadata.ts
|
|
1417
1466
|
var SERVICEME_CLI_NAME = "serviceme";
|
|
1418
|
-
var SERVICEME_CLI_VERSION = "2.0.
|
|
1467
|
+
var SERVICEME_CLI_VERSION = "2.0.1";
|
|
1419
1468
|
var SERVICEME_CLI_CAPABILITIES = {
|
|
1420
1469
|
bridge: true,
|
|
1421
1470
|
tasks: 1,
|
|
@@ -1581,7 +1630,11 @@ export {
|
|
|
1581
1630
|
isBridgeRequest,
|
|
1582
1631
|
isBridgeResponse,
|
|
1583
1632
|
isCliEnvelope,
|
|
1633
|
+
isCopilotContentAdoptUnmanagedParams,
|
|
1634
|
+
isCopilotContentAdoptUnmanagedResult,
|
|
1584
1635
|
isCopilotContentApproveResult,
|
|
1636
|
+
isCopilotContentDetectUnmanagedParams,
|
|
1637
|
+
isCopilotContentDetectUnmanagedResult,
|
|
1585
1638
|
isCopilotContentIntegrationStatusResult,
|
|
1586
1639
|
isCopilotContentMigrateLegacyResult,
|
|
1587
1640
|
isCopilotContentRestoreResult,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serviceme/devtools-protocol",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
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": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"registry": "https://registry.npmjs.org/"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@serviceme/devtools-shared": "2.0.
|
|
36
|
+
"@serviceme/devtools-shared": "2.0.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/node": "^24",
|