@serviceme/devtools-protocol 0.2.1 → 0.3.0
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 +23 -3
- package/dist/index.d.ts +23 -3
- package/dist/index.js +14 -2
- package/dist/index.mjs +13 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -490,6 +490,7 @@ interface BridgeRepoEntry {
|
|
|
490
490
|
url: string;
|
|
491
491
|
branch: string;
|
|
492
492
|
enabled: boolean;
|
|
493
|
+
useProxy?: boolean;
|
|
493
494
|
writeEnabled: boolean;
|
|
494
495
|
source: "default" | "user";
|
|
495
496
|
description?: string;
|
|
@@ -521,6 +522,8 @@ interface RepoAddParams {
|
|
|
521
522
|
branch?: string;
|
|
522
523
|
/** Optional display name. */
|
|
523
524
|
name?: string;
|
|
525
|
+
/** Route git traffic via the server proxy (default true). */
|
|
526
|
+
useProxy?: boolean;
|
|
524
527
|
}
|
|
525
528
|
interface RepoAddResult {
|
|
526
529
|
repo: BridgeRepoEntry;
|
|
@@ -548,6 +551,18 @@ interface RepoDisableParams {
|
|
|
548
551
|
interface RepoDisableResult {
|
|
549
552
|
repo: BridgeRepoEntry;
|
|
550
553
|
}
|
|
554
|
+
/** `repo.update` — update editable fields of an existing repo. */
|
|
555
|
+
interface RepoUpdateParams {
|
|
556
|
+
repoId: string;
|
|
557
|
+
url?: string;
|
|
558
|
+
branch?: string;
|
|
559
|
+
name?: string;
|
|
560
|
+
enabled?: boolean;
|
|
561
|
+
useProxy?: boolean;
|
|
562
|
+
}
|
|
563
|
+
interface RepoUpdateResult {
|
|
564
|
+
repo: BridgeRepoEntry;
|
|
565
|
+
}
|
|
551
566
|
/** `repo.sync` — pull a single repo. */
|
|
552
567
|
interface RepoSyncParams {
|
|
553
568
|
repoId: string;
|
|
@@ -575,6 +590,7 @@ declare function isRepoAddResult(value: unknown): value is RepoAddResult;
|
|
|
575
590
|
declare function isRepoRemoveResult(value: unknown): value is RepoRemoveResult;
|
|
576
591
|
declare function isRepoEnableResult(value: unknown): value is RepoEnableResult;
|
|
577
592
|
declare function isRepoDisableResult(value: unknown): value is RepoDisableResult;
|
|
593
|
+
declare function isRepoUpdateResult(value: unknown): value is RepoUpdateResult;
|
|
578
594
|
declare function isRepoSyncResult(value: unknown): value is RepoSyncResult;
|
|
579
595
|
declare function isRepoSyncAllResult(value: unknown): value is RepoSyncAllResult;
|
|
580
596
|
declare function isSkillRepoListParams(value: unknown): value is SkillRepoListParams;
|
|
@@ -1235,6 +1251,10 @@ interface BridgeMethodMap {
|
|
|
1235
1251
|
params: RepoDisableParams;
|
|
1236
1252
|
result: RepoDisableResult;
|
|
1237
1253
|
};
|
|
1254
|
+
"repo.update": {
|
|
1255
|
+
params: RepoUpdateParams;
|
|
1256
|
+
result: RepoUpdateResult;
|
|
1257
|
+
};
|
|
1238
1258
|
"repo.sync": {
|
|
1239
1259
|
params: RepoSyncParams;
|
|
1240
1260
|
result: RepoSyncResult;
|
|
@@ -1292,7 +1312,7 @@ interface BridgeMethodMap {
|
|
|
1292
1312
|
result: ToolboxUpdateResult;
|
|
1293
1313
|
};
|
|
1294
1314
|
}
|
|
1295
|
-
declare const BRIDGE_METHODS: readonly ["system.hello", "system.ping", "system.shutdown", "task.execute", "task.cancel", "task.list-running", "skillRepo.list", "skillRepo.get", "skillRepo.install", "skillRepo.convertToSymlink", "skillRepo.uninstall", "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.sync", "repo.syncAll", "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"];
|
|
1315
|
+
declare const BRIDGE_METHODS: readonly ["system.hello", "system.ping", "system.shutdown", "task.execute", "task.cancel", "task.list-running", "skillRepo.list", "skillRepo.get", "skillRepo.install", "skillRepo.convertToSymlink", "skillRepo.uninstall", "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", "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"];
|
|
1296
1316
|
type BridgeMethod = keyof BridgeMethodMap;
|
|
1297
1317
|
type BridgeParams<M extends BridgeMethod> = BridgeMethodMap[M]["params"];
|
|
1298
1318
|
type BridgeResult<M extends BridgeMethod> = BridgeMethodMap[M]["result"];
|
|
@@ -1551,7 +1571,7 @@ interface LocalPublishableAgent {
|
|
|
1551
1571
|
}
|
|
1552
1572
|
|
|
1553
1573
|
declare const SERVICEME_CLI_NAME = "serviceme";
|
|
1554
|
-
declare const SERVICEME_CLI_VERSION = "0.
|
|
1574
|
+
declare const SERVICEME_CLI_VERSION = "0.3.0";
|
|
1555
1575
|
declare const SERVICEME_CLI_CAPABILITIES: {
|
|
1556
1576
|
readonly bridge: true;
|
|
1557
1577
|
readonly tasks: 1;
|
|
@@ -1684,4 +1704,4 @@ declare function isSkillMutationResult(value: unknown): value is SkillMutationRe
|
|
|
1684
1704
|
declare function isSkillReconcileResult(value: unknown): value is SkillReconcileResult;
|
|
1685
1705
|
declare function isSkillPublishableResult(value: unknown): value is SkillPublishableResult;
|
|
1686
1706
|
|
|
1687
|
-
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 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, 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 };
|
|
1707
|
+
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -490,6 +490,7 @@ interface BridgeRepoEntry {
|
|
|
490
490
|
url: string;
|
|
491
491
|
branch: string;
|
|
492
492
|
enabled: boolean;
|
|
493
|
+
useProxy?: boolean;
|
|
493
494
|
writeEnabled: boolean;
|
|
494
495
|
source: "default" | "user";
|
|
495
496
|
description?: string;
|
|
@@ -521,6 +522,8 @@ interface RepoAddParams {
|
|
|
521
522
|
branch?: string;
|
|
522
523
|
/** Optional display name. */
|
|
523
524
|
name?: string;
|
|
525
|
+
/** Route git traffic via the server proxy (default true). */
|
|
526
|
+
useProxy?: boolean;
|
|
524
527
|
}
|
|
525
528
|
interface RepoAddResult {
|
|
526
529
|
repo: BridgeRepoEntry;
|
|
@@ -548,6 +551,18 @@ interface RepoDisableParams {
|
|
|
548
551
|
interface RepoDisableResult {
|
|
549
552
|
repo: BridgeRepoEntry;
|
|
550
553
|
}
|
|
554
|
+
/** `repo.update` — update editable fields of an existing repo. */
|
|
555
|
+
interface RepoUpdateParams {
|
|
556
|
+
repoId: string;
|
|
557
|
+
url?: string;
|
|
558
|
+
branch?: string;
|
|
559
|
+
name?: string;
|
|
560
|
+
enabled?: boolean;
|
|
561
|
+
useProxy?: boolean;
|
|
562
|
+
}
|
|
563
|
+
interface RepoUpdateResult {
|
|
564
|
+
repo: BridgeRepoEntry;
|
|
565
|
+
}
|
|
551
566
|
/** `repo.sync` — pull a single repo. */
|
|
552
567
|
interface RepoSyncParams {
|
|
553
568
|
repoId: string;
|
|
@@ -575,6 +590,7 @@ declare function isRepoAddResult(value: unknown): value is RepoAddResult;
|
|
|
575
590
|
declare function isRepoRemoveResult(value: unknown): value is RepoRemoveResult;
|
|
576
591
|
declare function isRepoEnableResult(value: unknown): value is RepoEnableResult;
|
|
577
592
|
declare function isRepoDisableResult(value: unknown): value is RepoDisableResult;
|
|
593
|
+
declare function isRepoUpdateResult(value: unknown): value is RepoUpdateResult;
|
|
578
594
|
declare function isRepoSyncResult(value: unknown): value is RepoSyncResult;
|
|
579
595
|
declare function isRepoSyncAllResult(value: unknown): value is RepoSyncAllResult;
|
|
580
596
|
declare function isSkillRepoListParams(value: unknown): value is SkillRepoListParams;
|
|
@@ -1235,6 +1251,10 @@ interface BridgeMethodMap {
|
|
|
1235
1251
|
params: RepoDisableParams;
|
|
1236
1252
|
result: RepoDisableResult;
|
|
1237
1253
|
};
|
|
1254
|
+
"repo.update": {
|
|
1255
|
+
params: RepoUpdateParams;
|
|
1256
|
+
result: RepoUpdateResult;
|
|
1257
|
+
};
|
|
1238
1258
|
"repo.sync": {
|
|
1239
1259
|
params: RepoSyncParams;
|
|
1240
1260
|
result: RepoSyncResult;
|
|
@@ -1292,7 +1312,7 @@ interface BridgeMethodMap {
|
|
|
1292
1312
|
result: ToolboxUpdateResult;
|
|
1293
1313
|
};
|
|
1294
1314
|
}
|
|
1295
|
-
declare const BRIDGE_METHODS: readonly ["system.hello", "system.ping", "system.shutdown", "task.execute", "task.cancel", "task.list-running", "skillRepo.list", "skillRepo.get", "skillRepo.install", "skillRepo.convertToSymlink", "skillRepo.uninstall", "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.sync", "repo.syncAll", "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"];
|
|
1315
|
+
declare const BRIDGE_METHODS: readonly ["system.hello", "system.ping", "system.shutdown", "task.execute", "task.cancel", "task.list-running", "skillRepo.list", "skillRepo.get", "skillRepo.install", "skillRepo.convertToSymlink", "skillRepo.uninstall", "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", "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"];
|
|
1296
1316
|
type BridgeMethod = keyof BridgeMethodMap;
|
|
1297
1317
|
type BridgeParams<M extends BridgeMethod> = BridgeMethodMap[M]["params"];
|
|
1298
1318
|
type BridgeResult<M extends BridgeMethod> = BridgeMethodMap[M]["result"];
|
|
@@ -1551,7 +1571,7 @@ interface LocalPublishableAgent {
|
|
|
1551
1571
|
}
|
|
1552
1572
|
|
|
1553
1573
|
declare const SERVICEME_CLI_NAME = "serviceme";
|
|
1554
|
-
declare const SERVICEME_CLI_VERSION = "0.
|
|
1574
|
+
declare const SERVICEME_CLI_VERSION = "0.3.0";
|
|
1555
1575
|
declare const SERVICEME_CLI_CAPABILITIES: {
|
|
1556
1576
|
readonly bridge: true;
|
|
1557
1577
|
readonly tasks: 1;
|
|
@@ -1684,4 +1704,4 @@ declare function isSkillMutationResult(value: unknown): value is SkillMutationRe
|
|
|
1684
1704
|
declare function isSkillReconcileResult(value: unknown): value is SkillReconcileResult;
|
|
1685
1705
|
declare function isSkillPublishableResult(value: unknown): value is SkillPublishableResult;
|
|
1686
1706
|
|
|
1687
|
-
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 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, 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 };
|
|
1707
|
+
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 };
|
package/dist/index.js
CHANGED
|
@@ -98,6 +98,7 @@ __export(index_exports, {
|
|
|
98
98
|
isRepoSyncAllResult: () => isRepoSyncAllResult,
|
|
99
99
|
isRepoSyncParams: () => isRepoSyncParams,
|
|
100
100
|
isRepoSyncResult: () => isRepoSyncResult,
|
|
101
|
+
isRepoUpdateResult: () => isRepoUpdateResult,
|
|
101
102
|
isRetryableErrorCode: () => isRetryableErrorCode,
|
|
102
103
|
isScheduledTask: () => isScheduledTask,
|
|
103
104
|
isScheduledTaskType: () => isScheduledTaskType,
|
|
@@ -354,6 +355,9 @@ function isRecord3(value) {
|
|
|
354
355
|
function isStringOrUndefined2(value) {
|
|
355
356
|
return value === void 0 || typeof value === "string";
|
|
356
357
|
}
|
|
358
|
+
function isBooleanOrUndefined(value) {
|
|
359
|
+
return value === void 0 || typeof value === "boolean";
|
|
360
|
+
}
|
|
357
361
|
function isSkillKindOrUndefined(value) {
|
|
358
362
|
return value === void 0 || value === "skill" || value === "agent";
|
|
359
363
|
}
|
|
@@ -379,6 +383,7 @@ function isRepoEntry(value) {
|
|
|
379
383
|
if (typeof value.url !== "string") return false;
|
|
380
384
|
if (typeof value.branch !== "string") return false;
|
|
381
385
|
if (typeof value.enabled !== "boolean") return false;
|
|
386
|
+
if (value.useProxy !== void 0 && typeof value.useProxy !== "boolean") return false;
|
|
382
387
|
if (typeof value.writeEnabled !== "boolean") return false;
|
|
383
388
|
if (value.source !== "default" && value.source !== "user") return false;
|
|
384
389
|
if (typeof value.addedAt !== "string") return false;
|
|
@@ -464,6 +469,9 @@ function isRepoEnableResult(value) {
|
|
|
464
469
|
function isRepoDisableResult(value) {
|
|
465
470
|
return isRecord3(value) && isRepoEntry(value.repo);
|
|
466
471
|
}
|
|
472
|
+
function isRepoUpdateResult(value) {
|
|
473
|
+
return isRecord3(value) && isRepoEntry(value.repo);
|
|
474
|
+
}
|
|
467
475
|
function isRepoSyncResult(value) {
|
|
468
476
|
return isRecord3(value) && Array.isArray(value.pulls) && value.pulls.length >= 1 && value.pulls.every(isSyncPull);
|
|
469
477
|
}
|
|
@@ -492,7 +500,7 @@ function isRepoListParams(value) {
|
|
|
492
500
|
return isRecord3(value) && (value.source === void 0 || value.source === "default" || value.source === "user");
|
|
493
501
|
}
|
|
494
502
|
function isRepoAddParams(value) {
|
|
495
|
-
return isRecord3(value) && typeof value.url === "string" && isStringOrUndefined2(value.branch) && isStringOrUndefined2(value.name);
|
|
503
|
+
return isRecord3(value) && typeof value.url === "string" && isStringOrUndefined2(value.branch) && isStringOrUndefined2(value.name) && isBooleanOrUndefined(value.useProxy);
|
|
496
504
|
}
|
|
497
505
|
function isRepoRemoveParams(value) {
|
|
498
506
|
return isRecord3(value) && typeof value.repoId === "string";
|
|
@@ -847,6 +855,7 @@ var BRIDGE_METHODS = [
|
|
|
847
855
|
"repo.remove",
|
|
848
856
|
"repo.enable",
|
|
849
857
|
"repo.disable",
|
|
858
|
+
"repo.update",
|
|
850
859
|
"repo.sync",
|
|
851
860
|
"repo.syncAll",
|
|
852
861
|
"auth.status",
|
|
@@ -922,6 +931,8 @@ function getBridgeResultValidator(method) {
|
|
|
922
931
|
return isRepoEnableResult;
|
|
923
932
|
case "repo.disable":
|
|
924
933
|
return isRepoDisableResult;
|
|
934
|
+
case "repo.update":
|
|
935
|
+
return isRepoUpdateResult;
|
|
925
936
|
case "repo.sync":
|
|
926
937
|
return isRepoSyncResult;
|
|
927
938
|
case "repo.syncAll":
|
|
@@ -1258,7 +1269,7 @@ function isJsonOutputResult(value) {
|
|
|
1258
1269
|
|
|
1259
1270
|
// src/metadata.ts
|
|
1260
1271
|
var SERVICEME_CLI_NAME = "serviceme";
|
|
1261
|
-
var SERVICEME_CLI_VERSION = "0.
|
|
1272
|
+
var SERVICEME_CLI_VERSION = "0.3.0";
|
|
1262
1273
|
var SERVICEME_CLI_CAPABILITIES = {
|
|
1263
1274
|
bridge: true,
|
|
1264
1275
|
tasks: 1,
|
|
@@ -1455,6 +1466,7 @@ function isSkillPublishableResult(value) {
|
|
|
1455
1466
|
isRepoSyncAllResult,
|
|
1456
1467
|
isRepoSyncParams,
|
|
1457
1468
|
isRepoSyncResult,
|
|
1469
|
+
isRepoUpdateResult,
|
|
1458
1470
|
isRetryableErrorCode,
|
|
1459
1471
|
isScheduledTask,
|
|
1460
1472
|
isScheduledTaskType,
|
package/dist/index.mjs
CHANGED
|
@@ -184,6 +184,9 @@ function isRecord3(value) {
|
|
|
184
184
|
function isStringOrUndefined2(value) {
|
|
185
185
|
return value === void 0 || typeof value === "string";
|
|
186
186
|
}
|
|
187
|
+
function isBooleanOrUndefined(value) {
|
|
188
|
+
return value === void 0 || typeof value === "boolean";
|
|
189
|
+
}
|
|
187
190
|
function isSkillKindOrUndefined(value) {
|
|
188
191
|
return value === void 0 || value === "skill" || value === "agent";
|
|
189
192
|
}
|
|
@@ -209,6 +212,7 @@ function isRepoEntry(value) {
|
|
|
209
212
|
if (typeof value.url !== "string") return false;
|
|
210
213
|
if (typeof value.branch !== "string") return false;
|
|
211
214
|
if (typeof value.enabled !== "boolean") return false;
|
|
215
|
+
if (value.useProxy !== void 0 && typeof value.useProxy !== "boolean") return false;
|
|
212
216
|
if (typeof value.writeEnabled !== "boolean") return false;
|
|
213
217
|
if (value.source !== "default" && value.source !== "user") return false;
|
|
214
218
|
if (typeof value.addedAt !== "string") return false;
|
|
@@ -294,6 +298,9 @@ function isRepoEnableResult(value) {
|
|
|
294
298
|
function isRepoDisableResult(value) {
|
|
295
299
|
return isRecord3(value) && isRepoEntry(value.repo);
|
|
296
300
|
}
|
|
301
|
+
function isRepoUpdateResult(value) {
|
|
302
|
+
return isRecord3(value) && isRepoEntry(value.repo);
|
|
303
|
+
}
|
|
297
304
|
function isRepoSyncResult(value) {
|
|
298
305
|
return isRecord3(value) && Array.isArray(value.pulls) && value.pulls.length >= 1 && value.pulls.every(isSyncPull);
|
|
299
306
|
}
|
|
@@ -322,7 +329,7 @@ function isRepoListParams(value) {
|
|
|
322
329
|
return isRecord3(value) && (value.source === void 0 || value.source === "default" || value.source === "user");
|
|
323
330
|
}
|
|
324
331
|
function isRepoAddParams(value) {
|
|
325
|
-
return isRecord3(value) && typeof value.url === "string" && isStringOrUndefined2(value.branch) && isStringOrUndefined2(value.name);
|
|
332
|
+
return isRecord3(value) && typeof value.url === "string" && isStringOrUndefined2(value.branch) && isStringOrUndefined2(value.name) && isBooleanOrUndefined(value.useProxy);
|
|
326
333
|
}
|
|
327
334
|
function isRepoRemoveParams(value) {
|
|
328
335
|
return isRecord3(value) && typeof value.repoId === "string";
|
|
@@ -677,6 +684,7 @@ var BRIDGE_METHODS = [
|
|
|
677
684
|
"repo.remove",
|
|
678
685
|
"repo.enable",
|
|
679
686
|
"repo.disable",
|
|
687
|
+
"repo.update",
|
|
680
688
|
"repo.sync",
|
|
681
689
|
"repo.syncAll",
|
|
682
690
|
"auth.status",
|
|
@@ -752,6 +760,8 @@ function getBridgeResultValidator(method) {
|
|
|
752
760
|
return isRepoEnableResult;
|
|
753
761
|
case "repo.disable":
|
|
754
762
|
return isRepoDisableResult;
|
|
763
|
+
case "repo.update":
|
|
764
|
+
return isRepoUpdateResult;
|
|
755
765
|
case "repo.sync":
|
|
756
766
|
return isRepoSyncResult;
|
|
757
767
|
case "repo.syncAll":
|
|
@@ -1088,7 +1098,7 @@ function isJsonOutputResult(value) {
|
|
|
1088
1098
|
|
|
1089
1099
|
// src/metadata.ts
|
|
1090
1100
|
var SERVICEME_CLI_NAME = "serviceme";
|
|
1091
|
-
var SERVICEME_CLI_VERSION = "0.
|
|
1101
|
+
var SERVICEME_CLI_VERSION = "0.3.0";
|
|
1092
1102
|
var SERVICEME_CLI_CAPABILITIES = {
|
|
1093
1103
|
bridge: true,
|
|
1094
1104
|
tasks: 1,
|
|
@@ -1284,6 +1294,7 @@ export {
|
|
|
1284
1294
|
isRepoSyncAllResult,
|
|
1285
1295
|
isRepoSyncParams,
|
|
1286
1296
|
isRepoSyncResult,
|
|
1297
|
+
isRepoUpdateResult,
|
|
1287
1298
|
isRetryableErrorCode,
|
|
1288
1299
|
isScheduledTask,
|
|
1289
1300
|
isScheduledTaskType,
|
package/package.json
CHANGED