@serviceme/devtools-protocol 0.1.6 → 0.1.8
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 +103 -4
- package/dist/index.d.ts +103 -4
- package/dist/index.js +5 -2
- package/dist/index.mjs +5 -2
- package/package.json +3 -1
package/dist/index.d.mts
CHANGED
|
@@ -83,8 +83,8 @@ declare function isAgentMutationResult(value: unknown): value is AgentMutationRe
|
|
|
83
83
|
declare function isAgentPermissionSummary(value: unknown): value is AgentPermissionSummary;
|
|
84
84
|
declare function isAgentPermissionsResult(value: unknown): value is AgentPermissionsResult;
|
|
85
85
|
|
|
86
|
-
type ServicemeErrorCode = "protocol_mismatch" | "cli_not_found" | "cli_start_failed" | "command_timeout" | "request_cancelled" | "invalid_params" | "opencode_not_installed" | "opencode_startup_timeout" | "opencode_request_failed" | "opencode_backend_not_running" | "opencode_session_not_found" | "copilot_not_installed" | "copilot_auth_required" | "copilot_execution_failed" | "copilot_timeout" | "json_invalid_input" | "env_tool_not_found" | "task_not_found" | "task_already_exists" | "invalid_schedule" | "invalid_payload" | "confirmation_required" | "workspace_not_found" | "daemon_not_running" | "executor_timeout" | "executor_error" | "task_already_running" | "internal_error";
|
|
87
|
-
declare const SERVICEME_ERROR_CODES: readonly ["protocol_mismatch", "cli_not_found", "cli_start_failed", "command_timeout", "request_cancelled", "invalid_params", "opencode_not_installed", "opencode_startup_timeout", "opencode_request_failed", "opencode_backend_not_running", "opencode_session_not_found", "copilot_not_installed", "copilot_auth_required", "copilot_execution_failed", "copilot_timeout", "json_invalid_input", "env_tool_not_found", "task_not_found", "task_already_exists", "invalid_schedule", "invalid_payload", "confirmation_required", "workspace_not_found", "daemon_not_running", "executor_timeout", "executor_error", "task_already_running", "internal_error"];
|
|
86
|
+
type ServicemeErrorCode = "protocol_mismatch" | "cli_not_found" | "cli_start_failed" | "command_timeout" | "request_cancelled" | "invalid_params" | "opencode_not_installed" | "opencode_startup_timeout" | "opencode_request_failed" | "opencode_backend_not_running" | "opencode_session_not_found" | "copilot_not_installed" | "copilot_auth_required" | "copilot_execution_failed" | "copilot_timeout" | "json_invalid_input" | "env_tool_not_found" | "task_not_found" | "task_already_exists" | "invalid_schedule" | "invalid_payload" | "confirmation_required" | "workspace_not_found" | "daemon_not_running" | "executor_timeout" | "executor_error" | "task_already_running" | "not_found" | "internal_error";
|
|
87
|
+
declare const SERVICEME_ERROR_CODES: readonly ["protocol_mismatch", "cli_not_found", "cli_start_failed", "command_timeout", "request_cancelled", "invalid_params", "opencode_not_installed", "opencode_startup_timeout", "opencode_request_failed", "opencode_backend_not_running", "opencode_session_not_found", "copilot_not_installed", "copilot_auth_required", "copilot_execution_failed", "copilot_timeout", "json_invalid_input", "env_tool_not_found", "task_not_found", "task_already_exists", "invalid_schedule", "invalid_payload", "confirmation_required", "workspace_not_found", "daemon_not_running", "executor_timeout", "executor_error", "task_already_running", "not_found", "internal_error"];
|
|
88
88
|
interface ServicemeErrorDetails {
|
|
89
89
|
code: ServicemeErrorCode;
|
|
90
90
|
message: string;
|
|
@@ -645,8 +645,105 @@ declare function isJsonOutputResult(value: unknown): value is {
|
|
|
645
645
|
output: string;
|
|
646
646
|
};
|
|
647
647
|
|
|
648
|
+
type MarketplaceSkillSource = "official" | "community";
|
|
649
|
+
interface MarketplaceSkillItem {
|
|
650
|
+
id: string;
|
|
651
|
+
name: string;
|
|
652
|
+
description: string;
|
|
653
|
+
version?: string;
|
|
654
|
+
updatedAt?: string;
|
|
655
|
+
source: MarketplaceSkillSource;
|
|
656
|
+
author?: string;
|
|
657
|
+
path: string;
|
|
658
|
+
hasScripts: boolean;
|
|
659
|
+
hasHooks: boolean;
|
|
660
|
+
categoryId?: string;
|
|
661
|
+
recommended?: boolean;
|
|
662
|
+
setupHint?: string;
|
|
663
|
+
}
|
|
664
|
+
interface MarketplaceCatalog {
|
|
665
|
+
skills: MarketplaceSkillItem[];
|
|
666
|
+
fetchedAt: string;
|
|
667
|
+
}
|
|
668
|
+
interface SkillDownloadFile {
|
|
669
|
+
/** Relative path within the skill folder (e.g. "SKILL.md", "scripts/helper.py") */
|
|
670
|
+
path: string;
|
|
671
|
+
content: string;
|
|
672
|
+
executable: boolean;
|
|
673
|
+
}
|
|
674
|
+
interface UploadFile {
|
|
675
|
+
/** Relative path within the skill/agent folder (e.g. "SKILL.md", "examples/demo.md") */
|
|
676
|
+
path: string;
|
|
677
|
+
content: string;
|
|
678
|
+
}
|
|
679
|
+
interface UploadSkillPayload {
|
|
680
|
+
name: string;
|
|
681
|
+
description: string;
|
|
682
|
+
version?: string;
|
|
683
|
+
content?: string;
|
|
684
|
+
localPath?: string;
|
|
685
|
+
files?: UploadFile[];
|
|
686
|
+
}
|
|
687
|
+
interface SubmitToOfficialPayload {
|
|
688
|
+
version?: string;
|
|
689
|
+
expectedOfficialVersion?: string;
|
|
690
|
+
}
|
|
691
|
+
interface SubmitToOfficialResult {
|
|
692
|
+
prUrl: string;
|
|
693
|
+
fromVersion?: string | null;
|
|
694
|
+
toVersion?: string;
|
|
695
|
+
}
|
|
696
|
+
interface LocalPublishableSkill {
|
|
697
|
+
id: string;
|
|
698
|
+
name: string;
|
|
699
|
+
description: string;
|
|
700
|
+
localPath: string;
|
|
701
|
+
scope: "workspace" | "user";
|
|
702
|
+
alreadyPublished: boolean;
|
|
703
|
+
}
|
|
704
|
+
type MarketplaceAgentSource = "official" | "community";
|
|
705
|
+
interface MarketplaceAgentItem {
|
|
706
|
+
id: string;
|
|
707
|
+
name: string;
|
|
708
|
+
description: string;
|
|
709
|
+
version?: string;
|
|
710
|
+
updatedAt?: string;
|
|
711
|
+
source: MarketplaceAgentSource;
|
|
712
|
+
author?: string;
|
|
713
|
+
path: string;
|
|
714
|
+
tools: string[];
|
|
715
|
+
categoryId?: string;
|
|
716
|
+
recommended?: boolean;
|
|
717
|
+
}
|
|
718
|
+
interface MarketplaceAgentsCatalog {
|
|
719
|
+
agents: MarketplaceAgentItem[];
|
|
720
|
+
fetchedAt: string;
|
|
721
|
+
}
|
|
722
|
+
interface AgentDownloadFile {
|
|
723
|
+
/** Relative path within the agent folder (e.g. "my-agent.agent.md", "tools/helper.py") */
|
|
724
|
+
path: string;
|
|
725
|
+
content: string;
|
|
726
|
+
executable: boolean;
|
|
727
|
+
}
|
|
728
|
+
interface UploadAgentPayload {
|
|
729
|
+
name: string;
|
|
730
|
+
description: string;
|
|
731
|
+
version?: string;
|
|
732
|
+
content?: string;
|
|
733
|
+
localPath?: string;
|
|
734
|
+
files?: UploadFile[];
|
|
735
|
+
}
|
|
736
|
+
interface LocalPublishableAgent {
|
|
737
|
+
id: string;
|
|
738
|
+
name: string;
|
|
739
|
+
description: string;
|
|
740
|
+
localPath: string;
|
|
741
|
+
scope: "workspace" | "user";
|
|
742
|
+
alreadyPublished: boolean;
|
|
743
|
+
}
|
|
744
|
+
|
|
648
745
|
declare const SERVICEME_CLI_NAME = "serviceme";
|
|
649
|
-
declare const SERVICEME_CLI_VERSION = "0.1.
|
|
746
|
+
declare const SERVICEME_CLI_VERSION = "0.1.8";
|
|
650
747
|
declare const SERVICEME_CLI_CAPABILITIES: {
|
|
651
748
|
readonly bridge: true;
|
|
652
749
|
readonly tasks: 1;
|
|
@@ -654,6 +751,8 @@ declare const SERVICEME_CLI_CAPABILITIES: {
|
|
|
654
751
|
readonly env: 1;
|
|
655
752
|
readonly image: 1;
|
|
656
753
|
readonly project: 1;
|
|
754
|
+
readonly skills: 1;
|
|
755
|
+
readonly agents: 1;
|
|
657
756
|
};
|
|
658
757
|
|
|
659
758
|
interface ServiceMeProjectScaffoldPruneResult {
|
|
@@ -689,4 +788,4 @@ declare function isServiceMeProjectInstallDepsResult(value: unknown): value is S
|
|
|
689
788
|
declare function isServiceMeProjectExtractTemplateInput(value: unknown): value is ServiceMeProjectExtractTemplateInput;
|
|
690
789
|
declare function isServiceMeProjectExtractTemplateResult(value: unknown): value is ServiceMeProjectExtractTemplateResult;
|
|
691
790
|
|
|
692
|
-
export { type AgentMarketplaceEntry, type AgentMarketplaceState, type AgentMutationAction, type AgentMutationRequest, type AgentMutationResult, type AgentOwnerKind, type AgentPermissionSummary, type AgentPermissionsResult, type AgentScope, type AgentScopeState, type AgentScopeStatus, type AgentSessionStatus, type AgentToolPermission, type AgentToolRiskLevel, BRIDGE_EVENTS, BRIDGE_METHODS, type BridgeCapabilities, type BridgeErrorResponse, type BridgeEvent, type BridgeEventMap, type BridgeEventName, type BridgeEventParams, type BridgeMessage, type BridgeMethod, type BridgeMethodMap, type BridgeParams, type BridgeRequest, type BridgeResponse, type BridgeResult, type BridgeSuccessResponse, COPILOT_ERROR_CODES, type CliEnvelope, type CliFailure, type CliSuccess, type CommandPayload, type ConcurrencyPolicy, type CopilotDoctorResult, type CopilotPromptOptions, type CopilotPromptResult, DEFAULT_JSON_SORT_OPTIONS, type EnvironmentCheckResult, type GithubCopilotCliPayload, type HttpRequestPayload, JSON_SORT_ALGORITHMS, JSON_SORT_ORDERS, type JsonSortAlgorithm, type JsonSortOptions, type JsonSortOrder, type JsonValidationResult, KNOWN_ENVIRONMENT_TOOLS, type KnownEnvironmentTool, type PublishableSkillEntry, type RunningTaskInfo, SERVICEME_CLI_CAPABILITIES, SERVICEME_CLI_NAME, SERVICEME_CLI_SCHEMA_VERSION, SERVICEME_CLI_VERSION, SERVICEME_ERROR_CODES, SERVICEME_IMAGE_FORMATS, SERVICEME_PROTOCOL_VERSION, type ScheduleCreateDryRunResult, type ScheduleCreateResult, type ScheduleDeleteDryRunResult, type ScheduleDeleteResult, type ScheduleEditDryRunResult, type ScheduleEditResult, type ScheduleGetResult, type ScheduleListResult, type ScheduleLogsResult, type ScheduleToggleResult, type ScheduleTriggerResult, type ScheduledTask, type ScheduledTaskType, type ScheduledTasksConfig, type ScheduledTasksLogFile, type SchedulerStartResult, type SchedulerStatus, type SchedulerStopResult, type ServiceMeImageCompressOptions, type ServiceMeImageCompressResult, type ServiceMeImageFormat, type ServiceMeImageInfo, type ServiceMeImageValidationResult, type ServiceMeProjectExtractTemplateInput, type ServiceMeProjectExtractTemplateResult, type ServiceMeProjectGitInitResult, type ServiceMeProjectInstallDepsResult, type ServiceMeProjectMakeScriptsExecutableResult, type ServiceMeProjectScaffoldPruneResult, type ServicemeErrorCode, type ServicemeErrorDetails, ServicemeProtocolError, type ShellPayload, type SkillMarketplaceEntry, type SkillMarketplaceState, type SkillMutationAction, type SkillMutationRequest, type SkillMutationResult, type SkillOwnerKind, type SkillPublishableResult, type SkillReconcileResult, type SkillScope, type SkillScopeState, type SkillScopeStatus, type SupportedBridgeProtocolVersion, type TaskCancelResult, type TaskCancelledEventParams, type TaskCompletedEventParams, type TaskExecuteResult, type TaskExecutionLog, type TaskExecutionSnapshot, type TaskExecutionStatus, type TaskFailedEventParams, type TaskListRunningResult, type TaskOutputEventParams, type TaskPayload, type TaskStartedEventParams, type TaskTriggerType, type ToolCheckResult, createCliFailure, createCliSuccess, createServicemeError, getBridgeEventParamsValidator, getBridgeResultValidator, isAgentMarketplaceState, isAgentMutationRequest, isAgentMutationResult, isAgentPermissionSummary, isAgentPermissionsResult, isAgentSessionStatus, isBridgeCapabilities, isBridgeEvent, isBridgeEventName, isBridgeMethod, isBridgeRequest, isBridgeResponse, isCliEnvelope, isEnvironmentCheckResult, isJsonOutputResult, isJsonSortAlgorithm, isJsonSortOptions, isJsonSortOrder, isJsonValidationResult, isKnownEnvironmentTool, isRetryableErrorCode, isScheduledTask, isScheduledTaskType, isSchedulerStatus, isServiceMeImageCompressOptions, isServiceMeImageCompressResult, isServiceMeImageFormat, isServiceMeImageInfo, isServiceMeImageValidationResult, isServiceMeProjectExtractTemplateInput, isServiceMeProjectExtractTemplateResult, isServiceMeProjectGitInitResult, isServiceMeProjectInstallDepsResult, isServiceMeProjectMakeScriptsExecutableResult, isServiceMeProjectScaffoldPruneResult, isServicemeErrorCode, isServicemeErrorDetails, isSkillMarketplaceState, isSkillMutationRequest, isSkillMutationResult, isSkillPublishableResult, isSkillReconcileResult, isSystemHelloResult, isSystemPingResult, isSystemShutdownResult, isTaskCancelResult, isTaskCancelledEventParams, isTaskCompletedEventParams, isTaskExecuteResult, isTaskExecutionLog, isTaskFailedEventParams, isTaskListRunningResult, isTaskOutputEventParams, isTaskStartedEventParams, isToolCheckResult, normalizeServicemeError };
|
|
791
|
+
export { 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, BRIDGE_EVENTS, BRIDGE_METHODS, type BridgeCapabilities, type BridgeErrorResponse, type BridgeEvent, type BridgeEventMap, type BridgeEventName, type BridgeEventParams, type BridgeMessage, type BridgeMethod, type BridgeMethodMap, type BridgeParams, type BridgeRequest, type BridgeResponse, type BridgeResult, type BridgeSuccessResponse, COPILOT_ERROR_CODES, type CliEnvelope, type CliFailure, type CliSuccess, type CommandPayload, type ConcurrencyPolicy, type CopilotDoctorResult, type CopilotPromptOptions, type CopilotPromptResult, DEFAULT_JSON_SORT_OPTIONS, type EnvironmentCheckResult, type GithubCopilotCliPayload, type HttpRequestPayload, JSON_SORT_ALGORITHMS, JSON_SORT_ORDERS, type JsonSortAlgorithm, type JsonSortOptions, type JsonSortOrder, type JsonValidationResult, KNOWN_ENVIRONMENT_TOOLS, type KnownEnvironmentTool, type LocalPublishableAgent, type LocalPublishableSkill, type MarketplaceAgentItem, type MarketplaceAgentsCatalog, type MarketplaceCatalog, type MarketplaceSkillItem, type PublishableSkillEntry, type RunningTaskInfo, SERVICEME_CLI_CAPABILITIES, SERVICEME_CLI_NAME, SERVICEME_CLI_SCHEMA_VERSION, SERVICEME_CLI_VERSION, SERVICEME_ERROR_CODES, SERVICEME_IMAGE_FORMATS, SERVICEME_PROTOCOL_VERSION, type ScheduleCreateDryRunResult, type ScheduleCreateResult, type ScheduleDeleteDryRunResult, type ScheduleDeleteResult, type ScheduleEditDryRunResult, type ScheduleEditResult, type ScheduleGetResult, type ScheduleListResult, type ScheduleLogsResult, type ScheduleToggleResult, type ScheduleTriggerResult, type ScheduledTask, type ScheduledTaskType, type ScheduledTasksConfig, type ScheduledTasksLogFile, type SchedulerStartResult, type SchedulerStatus, type SchedulerStopResult, type ServiceMeImageCompressOptions, type ServiceMeImageCompressResult, type ServiceMeImageFormat, type ServiceMeImageInfo, type ServiceMeImageValidationResult, type ServiceMeProjectExtractTemplateInput, type ServiceMeProjectExtractTemplateResult, type ServiceMeProjectGitInitResult, type ServiceMeProjectInstallDepsResult, type ServiceMeProjectMakeScriptsExecutableResult, type ServiceMeProjectScaffoldPruneResult, type ServicemeErrorCode, type ServicemeErrorDetails, ServicemeProtocolError, type ShellPayload, type SkillDownloadFile, type SkillMarketplaceEntry, type SkillMarketplaceState, type SkillMutationAction, type SkillMutationRequest, type SkillMutationResult, type SkillOwnerKind, type SkillPublishableResult, type SkillReconcileResult, type SkillScope, type SkillScopeState, type SkillScopeStatus, type SubmitToOfficialPayload, type SubmitToOfficialResult, type SupportedBridgeProtocolVersion, type TaskCancelResult, type TaskCancelledEventParams, type TaskCompletedEventParams, type TaskExecuteResult, type TaskExecutionLog, type TaskExecutionSnapshot, type TaskExecutionStatus, type TaskFailedEventParams, type TaskListRunningResult, type TaskOutputEventParams, type TaskPayload, type TaskStartedEventParams, type TaskTriggerType, type ToolCheckResult, type UploadAgentPayload, type UploadFile, type UploadSkillPayload, createCliFailure, createCliSuccess, createServicemeError, getBridgeEventParamsValidator, getBridgeResultValidator, isAgentMarketplaceState, isAgentMutationRequest, isAgentMutationResult, isAgentPermissionSummary, isAgentPermissionsResult, isAgentSessionStatus, isBridgeCapabilities, isBridgeEvent, isBridgeEventName, isBridgeMethod, isBridgeRequest, isBridgeResponse, isCliEnvelope, isEnvironmentCheckResult, isJsonOutputResult, isJsonSortAlgorithm, isJsonSortOptions, isJsonSortOrder, isJsonValidationResult, isKnownEnvironmentTool, isRetryableErrorCode, isScheduledTask, isScheduledTaskType, isSchedulerStatus, isServiceMeImageCompressOptions, isServiceMeImageCompressResult, isServiceMeImageFormat, isServiceMeImageInfo, isServiceMeImageValidationResult, isServiceMeProjectExtractTemplateInput, isServiceMeProjectExtractTemplateResult, isServiceMeProjectGitInitResult, isServiceMeProjectInstallDepsResult, isServiceMeProjectMakeScriptsExecutableResult, isServiceMeProjectScaffoldPruneResult, isServicemeErrorCode, isServicemeErrorDetails, isSkillMarketplaceState, isSkillMutationRequest, isSkillMutationResult, isSkillPublishableResult, isSkillReconcileResult, isSystemHelloResult, isSystemPingResult, isSystemShutdownResult, isTaskCancelResult, isTaskCancelledEventParams, isTaskCompletedEventParams, isTaskExecuteResult, isTaskExecutionLog, isTaskFailedEventParams, isTaskListRunningResult, isTaskOutputEventParams, isTaskStartedEventParams, isToolCheckResult, normalizeServicemeError };
|
package/dist/index.d.ts
CHANGED
|
@@ -83,8 +83,8 @@ declare function isAgentMutationResult(value: unknown): value is AgentMutationRe
|
|
|
83
83
|
declare function isAgentPermissionSummary(value: unknown): value is AgentPermissionSummary;
|
|
84
84
|
declare function isAgentPermissionsResult(value: unknown): value is AgentPermissionsResult;
|
|
85
85
|
|
|
86
|
-
type ServicemeErrorCode = "protocol_mismatch" | "cli_not_found" | "cli_start_failed" | "command_timeout" | "request_cancelled" | "invalid_params" | "opencode_not_installed" | "opencode_startup_timeout" | "opencode_request_failed" | "opencode_backend_not_running" | "opencode_session_not_found" | "copilot_not_installed" | "copilot_auth_required" | "copilot_execution_failed" | "copilot_timeout" | "json_invalid_input" | "env_tool_not_found" | "task_not_found" | "task_already_exists" | "invalid_schedule" | "invalid_payload" | "confirmation_required" | "workspace_not_found" | "daemon_not_running" | "executor_timeout" | "executor_error" | "task_already_running" | "internal_error";
|
|
87
|
-
declare const SERVICEME_ERROR_CODES: readonly ["protocol_mismatch", "cli_not_found", "cli_start_failed", "command_timeout", "request_cancelled", "invalid_params", "opencode_not_installed", "opencode_startup_timeout", "opencode_request_failed", "opencode_backend_not_running", "opencode_session_not_found", "copilot_not_installed", "copilot_auth_required", "copilot_execution_failed", "copilot_timeout", "json_invalid_input", "env_tool_not_found", "task_not_found", "task_already_exists", "invalid_schedule", "invalid_payload", "confirmation_required", "workspace_not_found", "daemon_not_running", "executor_timeout", "executor_error", "task_already_running", "internal_error"];
|
|
86
|
+
type ServicemeErrorCode = "protocol_mismatch" | "cli_not_found" | "cli_start_failed" | "command_timeout" | "request_cancelled" | "invalid_params" | "opencode_not_installed" | "opencode_startup_timeout" | "opencode_request_failed" | "opencode_backend_not_running" | "opencode_session_not_found" | "copilot_not_installed" | "copilot_auth_required" | "copilot_execution_failed" | "copilot_timeout" | "json_invalid_input" | "env_tool_not_found" | "task_not_found" | "task_already_exists" | "invalid_schedule" | "invalid_payload" | "confirmation_required" | "workspace_not_found" | "daemon_not_running" | "executor_timeout" | "executor_error" | "task_already_running" | "not_found" | "internal_error";
|
|
87
|
+
declare const SERVICEME_ERROR_CODES: readonly ["protocol_mismatch", "cli_not_found", "cli_start_failed", "command_timeout", "request_cancelled", "invalid_params", "opencode_not_installed", "opencode_startup_timeout", "opencode_request_failed", "opencode_backend_not_running", "opencode_session_not_found", "copilot_not_installed", "copilot_auth_required", "copilot_execution_failed", "copilot_timeout", "json_invalid_input", "env_tool_not_found", "task_not_found", "task_already_exists", "invalid_schedule", "invalid_payload", "confirmation_required", "workspace_not_found", "daemon_not_running", "executor_timeout", "executor_error", "task_already_running", "not_found", "internal_error"];
|
|
88
88
|
interface ServicemeErrorDetails {
|
|
89
89
|
code: ServicemeErrorCode;
|
|
90
90
|
message: string;
|
|
@@ -645,8 +645,105 @@ declare function isJsonOutputResult(value: unknown): value is {
|
|
|
645
645
|
output: string;
|
|
646
646
|
};
|
|
647
647
|
|
|
648
|
+
type MarketplaceSkillSource = "official" | "community";
|
|
649
|
+
interface MarketplaceSkillItem {
|
|
650
|
+
id: string;
|
|
651
|
+
name: string;
|
|
652
|
+
description: string;
|
|
653
|
+
version?: string;
|
|
654
|
+
updatedAt?: string;
|
|
655
|
+
source: MarketplaceSkillSource;
|
|
656
|
+
author?: string;
|
|
657
|
+
path: string;
|
|
658
|
+
hasScripts: boolean;
|
|
659
|
+
hasHooks: boolean;
|
|
660
|
+
categoryId?: string;
|
|
661
|
+
recommended?: boolean;
|
|
662
|
+
setupHint?: string;
|
|
663
|
+
}
|
|
664
|
+
interface MarketplaceCatalog {
|
|
665
|
+
skills: MarketplaceSkillItem[];
|
|
666
|
+
fetchedAt: string;
|
|
667
|
+
}
|
|
668
|
+
interface SkillDownloadFile {
|
|
669
|
+
/** Relative path within the skill folder (e.g. "SKILL.md", "scripts/helper.py") */
|
|
670
|
+
path: string;
|
|
671
|
+
content: string;
|
|
672
|
+
executable: boolean;
|
|
673
|
+
}
|
|
674
|
+
interface UploadFile {
|
|
675
|
+
/** Relative path within the skill/agent folder (e.g. "SKILL.md", "examples/demo.md") */
|
|
676
|
+
path: string;
|
|
677
|
+
content: string;
|
|
678
|
+
}
|
|
679
|
+
interface UploadSkillPayload {
|
|
680
|
+
name: string;
|
|
681
|
+
description: string;
|
|
682
|
+
version?: string;
|
|
683
|
+
content?: string;
|
|
684
|
+
localPath?: string;
|
|
685
|
+
files?: UploadFile[];
|
|
686
|
+
}
|
|
687
|
+
interface SubmitToOfficialPayload {
|
|
688
|
+
version?: string;
|
|
689
|
+
expectedOfficialVersion?: string;
|
|
690
|
+
}
|
|
691
|
+
interface SubmitToOfficialResult {
|
|
692
|
+
prUrl: string;
|
|
693
|
+
fromVersion?: string | null;
|
|
694
|
+
toVersion?: string;
|
|
695
|
+
}
|
|
696
|
+
interface LocalPublishableSkill {
|
|
697
|
+
id: string;
|
|
698
|
+
name: string;
|
|
699
|
+
description: string;
|
|
700
|
+
localPath: string;
|
|
701
|
+
scope: "workspace" | "user";
|
|
702
|
+
alreadyPublished: boolean;
|
|
703
|
+
}
|
|
704
|
+
type MarketplaceAgentSource = "official" | "community";
|
|
705
|
+
interface MarketplaceAgentItem {
|
|
706
|
+
id: string;
|
|
707
|
+
name: string;
|
|
708
|
+
description: string;
|
|
709
|
+
version?: string;
|
|
710
|
+
updatedAt?: string;
|
|
711
|
+
source: MarketplaceAgentSource;
|
|
712
|
+
author?: string;
|
|
713
|
+
path: string;
|
|
714
|
+
tools: string[];
|
|
715
|
+
categoryId?: string;
|
|
716
|
+
recommended?: boolean;
|
|
717
|
+
}
|
|
718
|
+
interface MarketplaceAgentsCatalog {
|
|
719
|
+
agents: MarketplaceAgentItem[];
|
|
720
|
+
fetchedAt: string;
|
|
721
|
+
}
|
|
722
|
+
interface AgentDownloadFile {
|
|
723
|
+
/** Relative path within the agent folder (e.g. "my-agent.agent.md", "tools/helper.py") */
|
|
724
|
+
path: string;
|
|
725
|
+
content: string;
|
|
726
|
+
executable: boolean;
|
|
727
|
+
}
|
|
728
|
+
interface UploadAgentPayload {
|
|
729
|
+
name: string;
|
|
730
|
+
description: string;
|
|
731
|
+
version?: string;
|
|
732
|
+
content?: string;
|
|
733
|
+
localPath?: string;
|
|
734
|
+
files?: UploadFile[];
|
|
735
|
+
}
|
|
736
|
+
interface LocalPublishableAgent {
|
|
737
|
+
id: string;
|
|
738
|
+
name: string;
|
|
739
|
+
description: string;
|
|
740
|
+
localPath: string;
|
|
741
|
+
scope: "workspace" | "user";
|
|
742
|
+
alreadyPublished: boolean;
|
|
743
|
+
}
|
|
744
|
+
|
|
648
745
|
declare const SERVICEME_CLI_NAME = "serviceme";
|
|
649
|
-
declare const SERVICEME_CLI_VERSION = "0.1.
|
|
746
|
+
declare const SERVICEME_CLI_VERSION = "0.1.8";
|
|
650
747
|
declare const SERVICEME_CLI_CAPABILITIES: {
|
|
651
748
|
readonly bridge: true;
|
|
652
749
|
readonly tasks: 1;
|
|
@@ -654,6 +751,8 @@ declare const SERVICEME_CLI_CAPABILITIES: {
|
|
|
654
751
|
readonly env: 1;
|
|
655
752
|
readonly image: 1;
|
|
656
753
|
readonly project: 1;
|
|
754
|
+
readonly skills: 1;
|
|
755
|
+
readonly agents: 1;
|
|
657
756
|
};
|
|
658
757
|
|
|
659
758
|
interface ServiceMeProjectScaffoldPruneResult {
|
|
@@ -689,4 +788,4 @@ declare function isServiceMeProjectInstallDepsResult(value: unknown): value is S
|
|
|
689
788
|
declare function isServiceMeProjectExtractTemplateInput(value: unknown): value is ServiceMeProjectExtractTemplateInput;
|
|
690
789
|
declare function isServiceMeProjectExtractTemplateResult(value: unknown): value is ServiceMeProjectExtractTemplateResult;
|
|
691
790
|
|
|
692
|
-
export { type AgentMarketplaceEntry, type AgentMarketplaceState, type AgentMutationAction, type AgentMutationRequest, type AgentMutationResult, type AgentOwnerKind, type AgentPermissionSummary, type AgentPermissionsResult, type AgentScope, type AgentScopeState, type AgentScopeStatus, type AgentSessionStatus, type AgentToolPermission, type AgentToolRiskLevel, BRIDGE_EVENTS, BRIDGE_METHODS, type BridgeCapabilities, type BridgeErrorResponse, type BridgeEvent, type BridgeEventMap, type BridgeEventName, type BridgeEventParams, type BridgeMessage, type BridgeMethod, type BridgeMethodMap, type BridgeParams, type BridgeRequest, type BridgeResponse, type BridgeResult, type BridgeSuccessResponse, COPILOT_ERROR_CODES, type CliEnvelope, type CliFailure, type CliSuccess, type CommandPayload, type ConcurrencyPolicy, type CopilotDoctorResult, type CopilotPromptOptions, type CopilotPromptResult, DEFAULT_JSON_SORT_OPTIONS, type EnvironmentCheckResult, type GithubCopilotCliPayload, type HttpRequestPayload, JSON_SORT_ALGORITHMS, JSON_SORT_ORDERS, type JsonSortAlgorithm, type JsonSortOptions, type JsonSortOrder, type JsonValidationResult, KNOWN_ENVIRONMENT_TOOLS, type KnownEnvironmentTool, type PublishableSkillEntry, type RunningTaskInfo, SERVICEME_CLI_CAPABILITIES, SERVICEME_CLI_NAME, SERVICEME_CLI_SCHEMA_VERSION, SERVICEME_CLI_VERSION, SERVICEME_ERROR_CODES, SERVICEME_IMAGE_FORMATS, SERVICEME_PROTOCOL_VERSION, type ScheduleCreateDryRunResult, type ScheduleCreateResult, type ScheduleDeleteDryRunResult, type ScheduleDeleteResult, type ScheduleEditDryRunResult, type ScheduleEditResult, type ScheduleGetResult, type ScheduleListResult, type ScheduleLogsResult, type ScheduleToggleResult, type ScheduleTriggerResult, type ScheduledTask, type ScheduledTaskType, type ScheduledTasksConfig, type ScheduledTasksLogFile, type SchedulerStartResult, type SchedulerStatus, type SchedulerStopResult, type ServiceMeImageCompressOptions, type ServiceMeImageCompressResult, type ServiceMeImageFormat, type ServiceMeImageInfo, type ServiceMeImageValidationResult, type ServiceMeProjectExtractTemplateInput, type ServiceMeProjectExtractTemplateResult, type ServiceMeProjectGitInitResult, type ServiceMeProjectInstallDepsResult, type ServiceMeProjectMakeScriptsExecutableResult, type ServiceMeProjectScaffoldPruneResult, type ServicemeErrorCode, type ServicemeErrorDetails, ServicemeProtocolError, type ShellPayload, type SkillMarketplaceEntry, type SkillMarketplaceState, type SkillMutationAction, type SkillMutationRequest, type SkillMutationResult, type SkillOwnerKind, type SkillPublishableResult, type SkillReconcileResult, type SkillScope, type SkillScopeState, type SkillScopeStatus, type SupportedBridgeProtocolVersion, type TaskCancelResult, type TaskCancelledEventParams, type TaskCompletedEventParams, type TaskExecuteResult, type TaskExecutionLog, type TaskExecutionSnapshot, type TaskExecutionStatus, type TaskFailedEventParams, type TaskListRunningResult, type TaskOutputEventParams, type TaskPayload, type TaskStartedEventParams, type TaskTriggerType, type ToolCheckResult, createCliFailure, createCliSuccess, createServicemeError, getBridgeEventParamsValidator, getBridgeResultValidator, isAgentMarketplaceState, isAgentMutationRequest, isAgentMutationResult, isAgentPermissionSummary, isAgentPermissionsResult, isAgentSessionStatus, isBridgeCapabilities, isBridgeEvent, isBridgeEventName, isBridgeMethod, isBridgeRequest, isBridgeResponse, isCliEnvelope, isEnvironmentCheckResult, isJsonOutputResult, isJsonSortAlgorithm, isJsonSortOptions, isJsonSortOrder, isJsonValidationResult, isKnownEnvironmentTool, isRetryableErrorCode, isScheduledTask, isScheduledTaskType, isSchedulerStatus, isServiceMeImageCompressOptions, isServiceMeImageCompressResult, isServiceMeImageFormat, isServiceMeImageInfo, isServiceMeImageValidationResult, isServiceMeProjectExtractTemplateInput, isServiceMeProjectExtractTemplateResult, isServiceMeProjectGitInitResult, isServiceMeProjectInstallDepsResult, isServiceMeProjectMakeScriptsExecutableResult, isServiceMeProjectScaffoldPruneResult, isServicemeErrorCode, isServicemeErrorDetails, isSkillMarketplaceState, isSkillMutationRequest, isSkillMutationResult, isSkillPublishableResult, isSkillReconcileResult, isSystemHelloResult, isSystemPingResult, isSystemShutdownResult, isTaskCancelResult, isTaskCancelledEventParams, isTaskCompletedEventParams, isTaskExecuteResult, isTaskExecutionLog, isTaskFailedEventParams, isTaskListRunningResult, isTaskOutputEventParams, isTaskStartedEventParams, isToolCheckResult, normalizeServicemeError };
|
|
791
|
+
export { 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, BRIDGE_EVENTS, BRIDGE_METHODS, type BridgeCapabilities, type BridgeErrorResponse, type BridgeEvent, type BridgeEventMap, type BridgeEventName, type BridgeEventParams, type BridgeMessage, type BridgeMethod, type BridgeMethodMap, type BridgeParams, type BridgeRequest, type BridgeResponse, type BridgeResult, type BridgeSuccessResponse, COPILOT_ERROR_CODES, type CliEnvelope, type CliFailure, type CliSuccess, type CommandPayload, type ConcurrencyPolicy, type CopilotDoctorResult, type CopilotPromptOptions, type CopilotPromptResult, DEFAULT_JSON_SORT_OPTIONS, type EnvironmentCheckResult, type GithubCopilotCliPayload, type HttpRequestPayload, JSON_SORT_ALGORITHMS, JSON_SORT_ORDERS, type JsonSortAlgorithm, type JsonSortOptions, type JsonSortOrder, type JsonValidationResult, KNOWN_ENVIRONMENT_TOOLS, type KnownEnvironmentTool, type LocalPublishableAgent, type LocalPublishableSkill, type MarketplaceAgentItem, type MarketplaceAgentsCatalog, type MarketplaceCatalog, type MarketplaceSkillItem, type PublishableSkillEntry, type RunningTaskInfo, SERVICEME_CLI_CAPABILITIES, SERVICEME_CLI_NAME, SERVICEME_CLI_SCHEMA_VERSION, SERVICEME_CLI_VERSION, SERVICEME_ERROR_CODES, SERVICEME_IMAGE_FORMATS, SERVICEME_PROTOCOL_VERSION, type ScheduleCreateDryRunResult, type ScheduleCreateResult, type ScheduleDeleteDryRunResult, type ScheduleDeleteResult, type ScheduleEditDryRunResult, type ScheduleEditResult, type ScheduleGetResult, type ScheduleListResult, type ScheduleLogsResult, type ScheduleToggleResult, type ScheduleTriggerResult, type ScheduledTask, type ScheduledTaskType, type ScheduledTasksConfig, type ScheduledTasksLogFile, type SchedulerStartResult, type SchedulerStatus, type SchedulerStopResult, type ServiceMeImageCompressOptions, type ServiceMeImageCompressResult, type ServiceMeImageFormat, type ServiceMeImageInfo, type ServiceMeImageValidationResult, type ServiceMeProjectExtractTemplateInput, type ServiceMeProjectExtractTemplateResult, type ServiceMeProjectGitInitResult, type ServiceMeProjectInstallDepsResult, type ServiceMeProjectMakeScriptsExecutableResult, type ServiceMeProjectScaffoldPruneResult, type ServicemeErrorCode, type ServicemeErrorDetails, ServicemeProtocolError, type ShellPayload, type SkillDownloadFile, type SkillMarketplaceEntry, type SkillMarketplaceState, type SkillMutationAction, type SkillMutationRequest, type SkillMutationResult, type SkillOwnerKind, type SkillPublishableResult, type SkillReconcileResult, type SkillScope, type SkillScopeState, type SkillScopeStatus, type SubmitToOfficialPayload, type SubmitToOfficialResult, type SupportedBridgeProtocolVersion, type TaskCancelResult, type TaskCancelledEventParams, type TaskCompletedEventParams, type TaskExecuteResult, type TaskExecutionLog, type TaskExecutionSnapshot, type TaskExecutionStatus, type TaskFailedEventParams, type TaskListRunningResult, type TaskOutputEventParams, type TaskPayload, type TaskStartedEventParams, type TaskTriggerType, type ToolCheckResult, type UploadAgentPayload, type UploadFile, type UploadSkillPayload, createCliFailure, createCliSuccess, createServicemeError, getBridgeEventParamsValidator, getBridgeResultValidator, isAgentMarketplaceState, isAgentMutationRequest, isAgentMutationResult, isAgentPermissionSummary, isAgentPermissionsResult, isAgentSessionStatus, isBridgeCapabilities, isBridgeEvent, isBridgeEventName, isBridgeMethod, isBridgeRequest, isBridgeResponse, isCliEnvelope, isEnvironmentCheckResult, isJsonOutputResult, isJsonSortAlgorithm, isJsonSortOptions, isJsonSortOrder, isJsonValidationResult, isKnownEnvironmentTool, isRetryableErrorCode, isScheduledTask, isScheduledTaskType, isSchedulerStatus, isServiceMeImageCompressOptions, isServiceMeImageCompressResult, isServiceMeImageFormat, isServiceMeImageInfo, isServiceMeImageValidationResult, isServiceMeProjectExtractTemplateInput, isServiceMeProjectExtractTemplateResult, isServiceMeProjectGitInitResult, isServiceMeProjectInstallDepsResult, isServiceMeProjectMakeScriptsExecutableResult, isServiceMeProjectScaffoldPruneResult, isServicemeErrorCode, isServicemeErrorDetails, isSkillMarketplaceState, isSkillMutationRequest, isSkillMutationResult, isSkillPublishableResult, isSkillReconcileResult, isSystemHelloResult, isSystemPingResult, isSystemShutdownResult, isTaskCancelResult, isTaskCancelledEventParams, isTaskCompletedEventParams, isTaskExecuteResult, isTaskExecutionLog, isTaskFailedEventParams, isTaskListRunningResult, isTaskOutputEventParams, isTaskStartedEventParams, isToolCheckResult, normalizeServicemeError };
|
package/dist/index.js
CHANGED
|
@@ -542,6 +542,7 @@ var SERVICEME_ERROR_CODES = [
|
|
|
542
542
|
"executor_timeout",
|
|
543
543
|
"executor_error",
|
|
544
544
|
"task_already_running",
|
|
545
|
+
"not_found",
|
|
545
546
|
"internal_error"
|
|
546
547
|
];
|
|
547
548
|
var RETRYABLE_ERROR_CODES = /* @__PURE__ */ new Set([
|
|
@@ -697,14 +698,16 @@ function isJsonOutputResult(value) {
|
|
|
697
698
|
|
|
698
699
|
// src/metadata.ts
|
|
699
700
|
var SERVICEME_CLI_NAME = "serviceme";
|
|
700
|
-
var SERVICEME_CLI_VERSION = "0.1.
|
|
701
|
+
var SERVICEME_CLI_VERSION = "0.1.8";
|
|
701
702
|
var SERVICEME_CLI_CAPABILITIES = {
|
|
702
703
|
bridge: true,
|
|
703
704
|
tasks: 1,
|
|
704
705
|
json: 1,
|
|
705
706
|
env: 1,
|
|
706
707
|
image: 1,
|
|
707
|
-
project: 1
|
|
708
|
+
project: 1,
|
|
709
|
+
skills: 1,
|
|
710
|
+
agents: 1
|
|
708
711
|
};
|
|
709
712
|
|
|
710
713
|
// src/project.ts
|
package/dist/index.mjs
CHANGED
|
@@ -441,6 +441,7 @@ var SERVICEME_ERROR_CODES = [
|
|
|
441
441
|
"executor_timeout",
|
|
442
442
|
"executor_error",
|
|
443
443
|
"task_already_running",
|
|
444
|
+
"not_found",
|
|
444
445
|
"internal_error"
|
|
445
446
|
];
|
|
446
447
|
var RETRYABLE_ERROR_CODES = /* @__PURE__ */ new Set([
|
|
@@ -596,14 +597,16 @@ function isJsonOutputResult(value) {
|
|
|
596
597
|
|
|
597
598
|
// src/metadata.ts
|
|
598
599
|
var SERVICEME_CLI_NAME = "serviceme";
|
|
599
|
-
var SERVICEME_CLI_VERSION = "0.1.
|
|
600
|
+
var SERVICEME_CLI_VERSION = "0.1.8";
|
|
600
601
|
var SERVICEME_CLI_CAPABILITIES = {
|
|
601
602
|
bridge: true,
|
|
602
603
|
tasks: 1,
|
|
603
604
|
json: 1,
|
|
604
605
|
env: 1,
|
|
605
606
|
image: 1,
|
|
606
|
-
project: 1
|
|
607
|
+
project: 1,
|
|
608
|
+
skills: 1,
|
|
609
|
+
agents: 1
|
|
607
610
|
};
|
|
608
611
|
|
|
609
612
|
// src/project.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serviceme/devtools-protocol",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
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": {
|
|
@@ -39,7 +39,9 @@
|
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"watch": "tsup src/index.ts --format cjs,esm --dts --watch",
|
|
42
|
+
"lint": "biome check src test",
|
|
42
43
|
"build": "tsup src/index.ts --format cjs,esm --dts",
|
|
44
|
+
"typecheck": "tsc --noEmit",
|
|
43
45
|
"test": "pnpm run build && node --test test/**/*.test.js",
|
|
44
46
|
"release:check": "pnpm run test && npm pack --dry-run",
|
|
45
47
|
"pack": "npm pack",
|