@skaile/workspaces 4.7.0 → 4.8.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/CHANGELOG.md +6 -0
- package/dist/{asset-feeds-CV7EE4GI.js → asset-feeds-YDCXFTJ7.js} +4 -4
- package/dist/{asset-feeds-CV7EE4GI.js.map → asset-feeds-YDCXFTJ7.js.map} +1 -1
- package/dist/asset-manager/index.js +1 -1
- package/dist/{chunk-4AAEBUX7.js → chunk-2BLQJDYI.js} +2 -2
- package/dist/{chunk-4AAEBUX7.js.map → chunk-2BLQJDYI.js.map} +1 -1
- package/dist/{chunk-JWWER4L5.js → chunk-2GCUBS2W.js} +2 -2
- package/dist/{chunk-JWWER4L5.js.map → chunk-2GCUBS2W.js.map} +1 -1
- package/dist/{chunk-JH63TVZG.js → chunk-4P352BUX.js} +4 -4
- package/dist/{chunk-JH63TVZG.js.map → chunk-4P352BUX.js.map} +1 -1
- package/dist/{chunk-P2PXD3AF.js → chunk-74QHEAUT.js} +4 -4
- package/dist/{chunk-P2PXD3AF.js.map → chunk-74QHEAUT.js.map} +1 -1
- package/dist/{chunk-NIHNZC6E.js → chunk-AZSRDONR.js} +3 -3
- package/dist/{chunk-NIHNZC6E.js.map → chunk-AZSRDONR.js.map} +1 -1
- package/dist/{chunk-MHROUPZN.js → chunk-DN2V47ER.js} +6 -6
- package/dist/{chunk-MHROUPZN.js.map → chunk-DN2V47ER.js.map} +1 -1
- package/dist/{chunk-XENB453B.js → chunk-EYH5ADRU.js} +3 -3
- package/dist/{chunk-XENB453B.js.map → chunk-EYH5ADRU.js.map} +1 -1
- package/dist/{chunk-S5TEP5WI.js → chunk-FVYRWGUC.js} +6 -6
- package/dist/{chunk-S5TEP5WI.js.map → chunk-FVYRWGUC.js.map} +1 -1
- package/dist/{chunk-7UM46L33.js → chunk-GKP22MGV.js} +2 -2
- package/dist/{chunk-7UM46L33.js.map → chunk-GKP22MGV.js.map} +1 -1
- package/dist/{chunk-A42QGGSB.js → chunk-GKX3QDPN.js} +3 -3
- package/dist/{chunk-A42QGGSB.js.map → chunk-GKX3QDPN.js.map} +1 -1
- package/dist/{chunk-M6VQU5TS.js → chunk-I3UWSGEB.js} +3 -3
- package/dist/{chunk-M6VQU5TS.js.map → chunk-I3UWSGEB.js.map} +1 -1
- package/dist/{chunk-TIOT3ZOQ.js → chunk-KLMXMW6Z.js} +3 -3
- package/dist/{chunk-TIOT3ZOQ.js.map → chunk-KLMXMW6Z.js.map} +1 -1
- package/dist/{chunk-RN3N7PHY.js → chunk-NMSHQUBY.js} +3 -3
- package/dist/{chunk-RN3N7PHY.js.map → chunk-NMSHQUBY.js.map} +1 -1
- package/dist/{chunk-53ORCYPJ.js → chunk-REYJKU7T.js} +56 -3
- package/dist/chunk-REYJKU7T.js.map +1 -0
- package/dist/{chunk-NYRLSXTB.js → chunk-RRX33TOZ.js} +5 -5
- package/dist/{chunk-NYRLSXTB.js.map → chunk-RRX33TOZ.js.map} +1 -1
- package/dist/{chunk-HVTU3CVF.js → chunk-TCANYRAF.js} +8 -8
- package/dist/{chunk-HVTU3CVF.js.map → chunk-TCANYRAF.js.map} +1 -1
- package/dist/{chunk-HBBVWZ4T.js → chunk-UKFLK6V2.js} +3 -3
- package/dist/{chunk-HBBVWZ4T.js.map → chunk-UKFLK6V2.js.map} +1 -1
- package/dist/cli/index.js +34 -34
- package/dist/connectors/index.js +4 -4
- package/dist/{ensure-sources-E5C3NAZ5.js → ensure-sources-65WPFIET.js} +4 -4
- package/dist/{ensure-sources-E5C3NAZ5.js.map → ensure-sources-65WPFIET.js.map} +1 -1
- package/dist/factory-assets/connectors/box.js +4 -4
- package/dist/factory-assets/connectors/deploy.js +4 -4
- package/dist/factory-assets/connectors/devserver.js +4 -4
- package/dist/factory-assets/connectors/flow/CONNECTOR.md +5 -1
- package/dist/factory-assets/connectors/flow/adapter.js +4 -4
- package/dist/factory-assets/connectors/flow/contract/normalize.d.ts +2 -1
- package/dist/factory-assets/connectors/flow/contract/normalize.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/contract.js +3 -3
- package/dist/factory-assets/connectors/flow/engine.js +2 -2
- package/dist/factory-assets/connectors/flow/run-flow.js +5 -5
- package/dist/factory-assets/connectors/flow.js +4 -4
- package/dist/factory-assets/connectors/git.js +4 -4
- package/dist/factory-assets/connectors/gmail.js +4 -4
- package/dist/factory-assets/connectors/googledrive.js +4 -4
- package/dist/factory-assets/connectors/local.js +4 -4
- package/dist/factory-assets/connectors/mattermost.js +4 -4
- package/dist/factory-assets/connectors/memory.js +4 -4
- package/dist/factory-assets/connectors/minio.js +4 -4
- package/dist/factory-assets/connectors/postgres.js +4 -4
- package/dist/factory-assets/connectors/s3.js +4 -4
- package/dist/factory-assets/connectors/sharepoint.js +4 -4
- package/dist/factory-assets/connectors/sqlite.js +4 -4
- package/dist/factory-assets/connectors/static-server.js +4 -4
- package/dist/factory-assets/connectors/tunnel.js +4 -4
- package/dist/factory-assets/connectors/webdav.js +4 -4
- package/dist/factory-assets/connectors/xstate-store.js +4 -4
- package/dist/factory-assets/connectors/xstate.js +4 -4
- package/dist/{flows-DAA2HPCK.js → flows-JRWDV3MG.js} +3 -3
- package/dist/{flows-DAA2HPCK.js.map → flows-JRWDV3MG.js.map} +1 -1
- package/dist/{helpers-B37XGJHI.js → helpers-3BHWBCBI.js} +4 -4
- package/dist/{helpers-B37XGJHI.js.map → helpers-3BHWBCBI.js.map} +1 -1
- package/dist/{library-publish-ANMJDDZH.js → library-publish-VKBT4JEX.js} +8 -8
- package/dist/{library-publish-ANMJDDZH.js.map → library-publish-VKBT4JEX.js.map} +1 -1
- package/dist/{open-library-O5HS654Y.js → open-library-PSLL6ULI.js} +7 -7
- package/dist/{open-library-O5HS654Y.js.map → open-library-PSLL6ULI.js.map} +1 -1
- package/dist/{project-DLAPSJ36.js → project-KVTNJKED.js} +5 -5
- package/dist/{project-DLAPSJ36.js.map → project-KVTNJKED.js.map} +1 -1
- package/dist/runner/index.js +10 -10
- package/dist/sdk/asset-manager.js +1 -1
- package/dist/sdk/flow.js +2 -2
- package/dist/sdk/index.js +10 -10
- package/dist/sdk/runner.js +10 -10
- package/dist/{setup-TMPJSDCX.js → setup-47UHZ7EG.js} +5 -5
- package/dist/{setup-TMPJSDCX.js.map → setup-47UHZ7EG.js.map} +1 -1
- package/dist/{source-5WMBWNO7.js → source-5Q33HOPF.js} +8 -8
- package/dist/{source-5WMBWNO7.js.map → source-5Q33HOPF.js.map} +1 -1
- package/dist/{source-manifest-publish-WBVQV3JC.js → source-manifest-publish-XHEAWRMG.js} +9 -9
- package/dist/{source-manifest-publish-WBVQV3JC.js.map → source-manifest-publish-XHEAWRMG.js.map} +1 -1
- package/dist/tui/index.js +10 -10
- package/dist/workspace-plugin/adapters/mcp.js +2 -2
- package/dist/workspace-plugin/adapters/omp.js +3 -3
- package/dist/workspace-plugin/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-53ORCYPJ.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { flowList, flowShow, flowListSessions, flowGetSession, flowFindFlowForSession } from './chunk-
|
|
1
|
+
import { flowList, flowShow, flowListSessions, flowGetSession, flowFindFlowForSession } from './chunk-2GCUBS2W.js';
|
|
2
2
|
import { skillList, skillListDomains, skillShow, skillSearch, skillCheckRequirements, skillGetPreamble } from './chunk-FAI2SMFE.js';
|
|
3
3
|
import { workspaceValidate, workspaceInfo, workspaceTestSecret, workspaceReload } from './chunk-4ZTPYIBE.js';
|
|
4
4
|
import { mountList, mountSync, mountStatus, mountRead, connectorList, connectorRead, connectorWrite, connectorSearch, connectorExec, connectorLoadSkill, connectorDescribe } from './chunk-FUCYTGAE.js';
|
|
@@ -251,5 +251,5 @@ async function runMcpServerStdio(plugin) {
|
|
|
251
251
|
}
|
|
252
252
|
|
|
253
253
|
export { buildWorkspaceMcpServer, buildWorkspaceMcpStdioServer, buildWorkspaceToolDefs, runMcpServerStdio };
|
|
254
|
-
//# sourceMappingURL=chunk-
|
|
255
|
-
//# sourceMappingURL=chunk-
|
|
254
|
+
//# sourceMappingURL=chunk-UKFLK6V2.js.map
|
|
255
|
+
//# sourceMappingURL=chunk-UKFLK6V2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../workspace-plugin/src/adapters/mcp.ts"],"names":["z"],"mappings":";;;;;;;;AA4CA,IAAM,OAAA,GAA4B,SAAkB,GAAA,CAAA,OAAA,IAAW,GAAA;AAiCxD,SAAS,uBAAuB,MAAA,EAA6C;AAClF,EAAA,MAAMA,EAAAA,GAAS,OAAA;AAEf,EAAA,MAAM,MAAA,GAAS,OAAO,MAAA,IAAU,KAAA;AAChC,EAAA,MAAM,IAAI,MAAA,CAAO,UAAA;AAEjB,EAAA,OAAO;AAAA;AAAA,IAEL;AAAA,MACE,IAAA,EAAM,YAAA;AAAA,MACN,WAAA,EAAa,kEAAA;AAAA,MACb,aAAa,EAAC;AAAA,MACd,OAAA,EAAS,YAAY,SAAA,CAAU,MAAA,CAAO,gBAAgB;AAAA,KACxD;AAAA,IACA;AAAA,MACE,IAAA,EAAM,YAAA;AAAA,MACN,WAAA,EAAa,gEAAA;AAAA,MACb,WAAA,EAAa,EAAE,QAAA,EAAUA,EAAAA,CAAE,QAAO,CAAE,QAAA,CAAS,0BAA0B,CAAA,EAAE;AAAA,MACzE,OAAA,EAAS,OAAO,EAAE,QAAA,OAChB,SAAA,CAAU,MAAA,CAAO,kBAAkB,QAAQ;AAAA,KAC/C;AAAA,IACA;AAAA,MACE,IAAA,EAAM,cAAA;AAAA,MACN,WAAA,EAAa,sDAAA;AAAA,MACb,WAAA,EAAa,EAAE,QAAA,EAAUA,EAAAA,CAAE,QAAO,EAAE;AAAA,MACpC,OAAA,EAAS,OAAO,EAAE,QAAA,OAChB,WAAA,CAAY,MAAA,CAAO,kBAAkB,QAAQ;AAAA,KACjD;AAAA,IACA;AAAA,MACE,IAAA,EAAM,YAAA;AAAA,MACN,WAAA,EAAa,2CAAA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ile bundles zod into the binary.\n// Dynamic import(\"zod\") via a string variable evades bun's static analysis\n// and fails at runtime inside /$bunfs/. The unwrap (zNS.z ?? zNS.default\n// ?? zNS) handles both bun's native ESM and vitest's CJS-interop resolver,\n// which return the zod namespace at different keys.\nimport * as zNS from \"zod\";\nimport { withActivityLabelDefs } from \"@skaile/workspaces/types\";\nimport type { WorkspacePlugin } from \"../plugin.js\";\nimport {\n connectorDescribe,\n connectorExec,\n connectorList,\n connectorLoadSkill,\n connectorRead,\n connectorSearch,\n connectorWrite,\n mountList,\n mountRead,\n mountStatus,\n mountSync,\n} from \"../tools/connectors.js\";\nimport {\n flowFindFlowForSession,\n flowGetSession,\n flowList,\n flowListSessions,\n flowShow,\n} from \"../tools/flows.js\";\nimport { sessionGet, sessionList } from \"../tools/sessions.js\";\nimport {\n skillCheckRequirements,\n skillGetPreamble,\n skillList,\n skillListDomains,\n skillSearch,\n skillShow,\n} from \"../tools/skills.js\";\nimport {\n workspaceInfo,\n workspaceReload,\n workspaceTestSecret,\n workspaceValidate,\n} from \"../tools/validator.js\";\n\nconst zStatic: any = (zNS as any).z ?? (zNS as any).default ?? zNS;\n\n/**\n * One workspace plugin tool — name, description, a zod raw-shape input schema,\n * and an async handler returning a `ToolResult`.\n *\n * Carries **zero MCP/SDK dependency**: the same definitions feed both the\n * in-process Claude Agent SDK server ({@link buildWorkspaceMcpServer}) and the\n * raw stdio MCP server ({@link buildWorkspaceMcpStdioServer}).\n */\nexport interface WorkspaceToolDef {\n name: string;\n description: string;\n inputSchema: Record<string, unknown>;\n handler: (args: any) => Promise<unknown>;\n}\n\n/**\n * Build the 28 workspace plugin tool definitions.\n *\n * Tool groups:\n * - 4 mount tools (`mount_list`, `mount_sync`, `mount_status`, `mount_read`)\n * - 5 flow tools (`flow_list`, `flow_show`, `flow_list_sessions`, `flow_get_session`, `flow_find_flow_for_session`)\n * - 6 skill tools (`skill_list`, `skill_list_domains`, `skill_show`, `skill_search`, `skill_check_requirements`, `skill_get_preamble`)\n * - 2 session tools (`session_list`, `session_get`)\n * - 7 connector tools (`connector_list`, `connector_read`, `connector_write`, `connector_search`, `connector_exec`, `connector_load_skill`, `connector_describe`)\n * - 4 workspace tools (`workspace_validate`, `workspace_info`, `workspace_test_secret`, `workspace_reload`)\n *\n * @param plugin - A booted `WorkspacePlugin` instance.\n * @returns The 28 tool definitions, free of any MCP/SDK coupling.\n *\n * @docLink packages/workspace-plugin/concepts#adapters\n */\nexport function buildWorkspaceToolDefs(plugin: WorkspacePlugin): WorkspaceToolDef[] {\n const z: any = zStatic;\n\n const driver = plugin.driver ?? \"omp\";\n const p = plugin.projectDir;\n\n return [\n // Mount tools\n {\n name: \"mount_list\",\n description: \"List all mounts declared in skaile.yaml with their mount status.\",\n inputSchema: {},\n handler: async () => mountList(plugin.connectorManager),\n },\n {\n name: \"mount_sync\",\n description: \"Sync a mount — pull latest from remote (git, S3, WebDAV).\",\n inputSchema: { mount_id: z.string().describe(\"Mount ID from mount_list\") },\n handler: async ({ mount_id }: { mount_id: string }) =>\n mountSync(plugin.connectorManager, mount_id),\n },\n {\n name: \"mount_status\",\n description: \"Get the mount status and last sync time for a mount.\",\n inputSchema: { mount_id: z.string() },\n handler: async ({ mount_id }: { mount_id: string }) =>\n mountStatus(plugin.connectorManager, mount_id),\n },\n {\n name: \"mount_read\",\n description: \"Read a file from a mounted mount by path.\",\n inputSchema: {\n mount_id: z.string(),\n path: z.string().describe(\"Relative path within the mount\"),\n },\n handler: async ({ mount_id, path }: { mount_id: string; path: string }) =>\n mountRead(plugin.connectorManager, mount_id, path),\n },\n // Flow tools\n {\n name: \"flow_list\",\n description: \"List all available flow definitions from ai-assets.\",\n inputSchema: {},\n handler: async () => flowList(p),\n },\n {\n name: \"flow_show\",\n description: \"Show full flow definition (nodes + edges) for a flow ID.\",\n inputSchema: { flow_id: z.string().describe(\"Flow ID from flow_list\") },\n handler: async ({ flow_id }: { flow_id: string }) => flowShow(p, flow_id),\n },\n {\n name: \"flow_list_sessions\",\n description: \"List past and active flow run sessions for this workspace.\",\n inputSchema: {},\n handler: async () => flowListSessions(p),\n },\n {\n name: \"flow_get_session\",\n description: \"Get driver metadata for a specific flow run session.\",\n inputSchema: { run_id: z.string().describe(\"Run ID from flow_list_sessions\") },\n handler: async ({ run_id }: { run_id: string }) => flowGetSession(p, run_id),\n },\n {\n name: \"flow_find_flow_for_session\",\n description: \"Resolve and return the flow definition used in a past session.\",\n inputSchema: { run_id: z.string() },\n handler: async ({ run_id }: { run_id: string }) => flowFindFlowForSession(p, run_id),\n },\n // Skill tools\n {\n name: \"skill_list\",\n description: \"List all skills in the ai-assets catalog, optionally filtered by domain.\",\n inputSchema: { domain: z.string().optional().describe(\"Domain name filter\") },\n handler: async ({ domain }: { domain?: string }) => skillList(p, domain),\n },\n {\n name: \"skill_list_domains\",\n description: \"List all skill domains (top-level ai-assets directories with skills).\",\n inputSchema: {},\n handler: async () => skillListDomains(p),\n },\n {\n name: \"skill_show\",\n description: \"Show the full SKILL.md content for a skill ID.\",\n inputSchema: { skill_id: z.string().describe(\"Skill ID from skill_list\") },\n handler: async ({ skill_id }: { skill_id: string }) => skillShow(p, skill_id),\n },\n {\n name: \"skill_search\",\n description: \"Search skills by name, description, or keywords.\",\n inputSchema: { query: z.string() },\n handler: async ({ query }: { query: string }) => skillSearch(p, query),\n },\n {\n name: \"skill_check_requirements\",\n description: \"Validate that all skill prerequisites are met in the target directory.\",\n inputSchema: {\n skill_id: z.string(),\n target_dir: z\n .string()\n .optional()\n .describe(\"Directory to check against (default: projectDir)\"),\n },\n handler: async ({ skill_id, target_dir }: { skill_id: string; target_dir?: string }) =>\n skillCheckRequirements(p, skill_id, target_dir ?? p),\n },\n {\n name: \"skill_get_preamble\",\n description: \"Get the REQUIRES/INPUT/READS/WRITES DSL preamble for a skill.\",\n inputSchema: { skill_id: z.string() },\n handler: async ({ skill_id }: { skill_id: string }) => skillGetPreamble(p, skill_id),\n },\n // Session tools\n {\n name: \"session_list\",\n description: \"List all past agent run sessions for this workspace, sorted newest first.\",\n inputSchema: {},\n handler: async () => sessionList(p),\n },\n {\n name: \"session_get\",\n description: \"Get full metadata for a specific session by run ID.\",\n inputSchema: { run_id: z.string() },\n handler: async ({ run_id }: { run_id: string }) => sessionGet(p, run_id),\n },\n // Connector tools\n {\n name: \"connector_list\",\n description:\n \"List connectors declared in skaile.yaml as {connected, failed}. `failed` holds connectors that did not connect this session, with the failure reason — their mount paths are dead directories, not synced workspaces.\",\n inputSchema: {},\n handler: async () => connectorList(plugin.connectorManager),\n },\n {\n name: \"connector_read\",\n description: \"Read content from a connector by path.\",\n inputSchema: {\n connector_id: z.string().describe(\"Connector ID from connector_list\"),\n path: z.string().describe(\"Path within the connector\"),\n },\n handler: async ({ connector_id, path }: { connector_id: string; path: string }) =>\n connectorRead(plugin.connectorManager, connector_id, path),\n },\n {\n name: \"connector_write\",\n description: \"Write content to a connector by path.\",\n inputSchema: {\n connector_id: z.string(),\n path: z.string(),\n content: z.string().describe(\"Content to write\"),\n },\n handler: async ({\n connector_id,\n path,\n content,\n }: {\n connector_id: string;\n path: string;\n content: string;\n }) => connectorWrite(plugin.connectorManager, connector_id, path, content),\n },\n {\n name: \"connector_search\",\n description: \"Search within a connector by query string.\",\n inputSchema: {\n connector_id: z.string(),\n query: z.string().describe(\"Search query\"),\n },\n handler: async ({ connector_id, query }: { connector_id: string; query: string }) =>\n connectorSearch(plugin.connectorManager, connector_id, query),\n },\n {\n name: \"connector_exec\",\n description: \"Execute a custom operation on a connector.\",\n inputSchema: {\n connector_id: z.string(),\n operation: z.string().describe(\"Operation name from connector_describe\"),\n args: z.record(z.string(), z.unknown()).describe(\"Operation arguments\"),\n },\n handler: async ({\n connector_id,\n operation,\n args,\n }: {\n connector_id: string;\n operation: string;\n args: Record<string, unknown>;\n }) => connectorExec(plugin.connectorManager, connector_id, operation, args),\n },\n {\n name: \"connector_load_skill\",\n description: \"Load the rendered skill body for a connector (operations + usage).\",\n inputSchema: {\n connector_id: z.string(),\n },\n handler: async ({ connector_id }: { connector_id: string }) =>\n connectorLoadSkill(plugin.connectorManager, connector_id),\n },\n {\n name: \"connector_describe\",\n description: \"Describe a connector's capabilities via its RuntimeSkillDescriptor.\",\n inputSchema: {\n connector_id: z.string(),\n },\n handler: async ({ connector_id }: { connector_id: string }) =>\n connectorDescribe(plugin.connectorManager, connector_id),\n },\n // Validator tools\n {\n name: \"workspace_validate\",\n description: \"Run a full health check: connectors, mounts, secrets, driver binary.\",\n inputSchema: {},\n handler: async () => workspaceValidate(plugin, driver),\n },\n {\n name: \"workspace_info\",\n description: \"Show workspace configuration: driver, model, provider, resource counts.\",\n inputSchema: {},\n handler: async () => workspaceInfo(plugin, driver, plugin.model),\n },\n {\n name: \"workspace_test_secret\",\n description: \"Test resolution of one secret reference (env:VAR, forge:key).\",\n inputSchema: { ref: z.string().describe(\"Secret ref e.g. env:ANTHROPIC_API_KEY\") },\n handler: async ({ ref }: { ref: string }) => workspaceTestSecret(ref),\n },\n {\n name: \"workspace_reload\",\n description: \"Re-read skaile.yaml and re-sync the plugin state.\",\n inputSchema: {},\n handler: async () => workspaceReload(plugin),\n },\n ];\n}\n\n/**\n * Build the **in-process** workspace MCP server via the Claude Agent SDK's\n * `createSdkMcpServer`. This shape is what the runner embeds into a Claude\n * Agent SDK `query()` call — the runner *is* the Claude Agent SDK host.\n *\n * Returns `null` when `@anthropic-ai/claude-agent-sdk` is not installed\n * (graceful degradation for non-Claude-Code environments).\n *\n * For the standalone `skaile mcp-server` stdio subprocess use\n * {@link buildWorkspaceMcpStdioServer} / {@link runMcpServerStdio} instead —\n * those carry no Claude Agent SDK dependency.\n *\n * @param plugin - A booted `WorkspacePlugin` instance.\n * @returns The SDK MCP server object or `null` if the SDK is unavailable.\n *\n * @docLink packages/workspace-plugin/concepts#adapters\n */\nexport async function buildWorkspaceMcpServer(plugin: WorkspacePlugin): Promise<unknown | null> {\n let sdk: any;\n try {\n sdk = await import(\"@anthropic-ai/claude-agent-sdk\");\n } catch {\n return null;\n }\n return sdk.createSdkMcpServer({\n name: \"skaile-workspace\",\n tools: withActivityLabelDefs(buildWorkspaceToolDefs(plugin), zStatic),\n });\n}\n\n/**\n * Build a **raw stdio** workspace MCP server on `@modelcontextprotocol/sdk` —\n * no Claude Agent SDK. This is the correct shape for the `skaile mcp-server`\n * stdio subprocess that MCP-client agents (Claude Code, Codex, …) spawn.\n * Runs on plain Node.\n *\n * The returned server is not yet connected — call `.connect(transport)` (or\n * use {@link runMcpServerStdio}).\n *\n * @param plugin - A booted `WorkspacePlugin` instance.\n * @returns A `McpServer` with all 28 workspace tools registered.\n *\n * @docLink packages/workspace-plugin/concepts#adapters\n */\nexport async function buildWorkspaceMcpStdioServer(plugin: WorkspacePlugin): Promise<any> {\n const { McpServer } = await import(\"@modelcontextprotocol/sdk/server/mcp.js\" as string);\n const server = new McpServer({ name: \"skaile-workspace\", version: \"1.0.0\" });\n for (const def of buildWorkspaceToolDefs(plugin)) {\n server.registerTool(\n def.name,\n { description: def.description, inputSchema: def.inputSchema },\n def.handler,\n );\n }\n return server;\n}\n\n/**\n * Start the workspace MCP server over stdio transport.\n *\n * Builds the raw `@modelcontextprotocol/sdk` server via\n * {@link buildWorkspaceMcpStdioServer} and connects a `StdioServerTransport`.\n * No `@anthropic-ai/claude-agent-sdk` dependency anywhere on this path.\n *\n * @param plugin - A booted `WorkspacePlugin` instance.\n *\n * @docLink packages/workspace-plugin/concepts#adapters\n */\nexport async function runMcpServerStdio(plugin: WorkspacePlugin): Promise<void> {\n const server = await buildWorkspaceMcpStdioServer(plugin);\n const { StdioServerTransport } = await import(\n \"@modelcontextprotocol/sdk/server/stdio.js\" as string\n );\n await server.connect(new StdioServerTransport());\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../workspace-plugin/src/adapters/mcp.ts"],"names":["z"],"mappings":";;;;;;;;AA4CA,IAAM,OAAA,GAA4B,SAAkB,GAAA,CAAA,OAAA,IAAW,GAAA;AAiCxD,SAAS,uBAAuB,MAAA,EAA6C;AAClF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IAC5B,IAAA,EAAM,kBAAA;AAAA,IACN,KAAA,EAAO,qBAAA,CAAsB,sBAAA,CAAuB,MAAM,GAAG,OAAO;AAAA,GACrE,CAAA;AACH;AAgBA,eAAsB,6BAA6B,MAAA,EAAuC;AACxF,EAAA,MAAM,EAAE,SAAA,EAAU,GAAI,MAAM,OAAO,yCAAmD,CAAA;AACtF,EAAA,MAAM,MAAA,GAAS,IAAI,SAAA,CAAU,EAAE,MAAM,kBAAA,EAAoB,OAAA,EAAS,SAAS,CAAA;AAC3E,EAAA,KAAA,MAAW,GAAA,IAAO,sBAAA,CAAuB,MAAM,CAAA,EAAG;AAChD,IAAA,MAAA,CAAO,YAAA;AAAA,MACL,GAAA,CAAI,IAAA;AAAA,MACJ,EAAE,WAAA,EAAa,GAAA,CAAI,WAAA,EAAa,WAAA,EAAa,IAAI,WAAA,EAAY;AAAA,MAC7D,GAAA,CAAI;AAAA,KACN;AAAA,EACF;AACA,EAAA,OAAO,MAAA;AACT;AAaA,eAAsB,kBAAkB,MAAA,EAAwC;AAC9E,EAAA,MAAM,MAAA,GAAS,MAAM,4BAAA,CAA6B,MAAM,CAAA;AACxD,EAAA,MAAM,EAAE,oBAAA,EAAqB,GAAI,MAAM,OACrC,2CACF,CAAA;AACA,EAAA,MAAM,MAAA,CAAO,OAAA,CAAQ,IAAI,oBAAA,EAAsB,CAAA;AACjD","file":"chunk-UKFLK6V2.js","sourcesContent":["// Static namespace import so bun --compile bundles zod into the binary.\n// Dynamic import(\"zod\") via a string variable evades bun's static analysis\n// and fails at runtime inside /$bunfs/. The unwrap (zNS.z ?? zNS.default\n// ?? zNS) handles both bun's native ESM and vitest's CJS-interop resolver,\n// which return the zod namespace at different keys.\nimport * as zNS from \"zod\";\nimport { withActivityLabelDefs } from \"@skaile/workspaces/types\";\nimport type { WorkspacePlugin } from \"../plugin.js\";\nimport {\n connectorDescribe,\n connectorExec,\n connectorList,\n connectorLoadSkill,\n connectorRead,\n connectorSearch,\n connectorWrite,\n mountList,\n mountRead,\n mountStatus,\n mountSync,\n} from \"../tools/connectors.js\";\nimport {\n flowFindFlowForSession,\n flowGetSession,\n flowList,\n flowListSessions,\n flowShow,\n} from \"../tools/flows.js\";\nimport { sessionGet, sessionList } from \"../tools/sessions.js\";\nimport {\n skillCheckRequirements,\n skillGetPreamble,\n skillList,\n skillListDomains,\n skillSearch,\n skillShow,\n} from \"../tools/skills.js\";\nimport {\n workspaceInfo,\n workspaceReload,\n workspaceTestSecret,\n workspaceValidate,\n} from \"../tools/validator.js\";\n\nconst zStatic: any = (zNS as any).z ?? (zNS as any).default ?? zNS;\n\n/**\n * One workspace plugin tool — name, description, a zod raw-shape input schema,\n * and an async handler returning a `ToolResult`.\n *\n * Carries **zero MCP/SDK dependency**: the same definitions feed both the\n * in-process Claude Agent SDK server ({@link buildWorkspaceMcpServer}) and the\n * raw stdio MCP server ({@link buildWorkspaceMcpStdioServer}).\n */\nexport interface WorkspaceToolDef {\n name: string;\n description: string;\n inputSchema: Record<string, unknown>;\n handler: (args: any) => Promise<unknown>;\n}\n\n/**\n * Build the 28 workspace plugin tool definitions.\n *\n * Tool groups:\n * - 4 mount tools (`mount_list`, `mount_sync`, `mount_status`, `mount_read`)\n * - 5 flow tools (`flow_list`, `flow_show`, `flow_list_sessions`, `flow_get_session`, `flow_find_flow_for_session`)\n * - 6 skill tools (`skill_list`, `skill_list_domains`, `skill_show`, `skill_search`, `skill_check_requirements`, `skill_get_preamble`)\n * - 2 session tools (`session_list`, `session_get`)\n * - 7 connector tools (`connector_list`, `connector_read`, `connector_write`, `connector_search`, `connector_exec`, `connector_load_skill`, `connector_describe`)\n * - 4 workspace tools (`workspace_validate`, `workspace_info`, `workspace_test_secret`, `workspace_reload`)\n *\n * @param plugin - A booted `WorkspacePlugin` instance.\n * @returns The 28 tool definitions, free of any MCP/SDK coupling.\n *\n * @docLink packages/workspace-plugin/concepts#adapters\n */\nexport function buildWorkspaceToolDefs(plugin: WorkspacePlugin): WorkspaceToolDef[] {\n const z: any = zStatic;\n\n const driver = plugin.driver ?? \"omp\";\n const p = plugin.projectDir;\n\n return [\n // Mount tools\n {\n name: \"mount_list\",\n description: \"List all mounts declared in skaile.yaml with their mount status.\",\n inputSchema: {},\n handler: async () => mountList(plugin.connectorManager),\n },\n {\n name: \"mount_sync\",\n description: \"Sync a mount — pull latest from remote (git, S3, WebDAV).\",\n inputSchema: { mount_id: z.string().describe(\"Mount ID from mount_list\") },\n handler: async ({ mount_id }: { mount_id: string }) =>\n mountSync(plugin.connectorManager, mount_id),\n },\n {\n name: \"mount_status\",\n description: \"Get the mount status and last sync time for a mount.\",\n inputSchema: { mount_id: z.string() },\n handler: async ({ mount_id }: { mount_id: string }) =>\n mountStatus(plugin.connectorManager, mount_id),\n },\n {\n name: \"mount_read\",\n description: \"Read a file from a mounted mount by path.\",\n inputSchema: {\n mount_id: z.string(),\n path: z.string().describe(\"Relative path within the mount\"),\n },\n handler: async ({ mount_id, path }: { mount_id: string; path: string }) =>\n mountRead(plugin.connectorManager, mount_id, path),\n },\n // Flow tools\n {\n name: \"flow_list\",\n description: \"List all available flow definitions from ai-assets.\",\n inputSchema: {},\n handler: async () => flowList(p),\n },\n {\n name: \"flow_show\",\n description: \"Show full flow definition (nodes + edges) for a flow ID.\",\n inputSchema: { flow_id: z.string().describe(\"Flow ID from flow_list\") },\n handler: async ({ flow_id }: { flow_id: string }) => flowShow(p, flow_id),\n },\n {\n name: \"flow_list_sessions\",\n description: \"List past and active flow run sessions for this workspace.\",\n inputSchema: {},\n handler: async () => flowListSessions(p),\n },\n {\n name: \"flow_get_session\",\n description: \"Get driver metadata for a specific flow run session.\",\n inputSchema: { run_id: z.string().describe(\"Run ID from flow_list_sessions\") },\n handler: async ({ run_id }: { run_id: string }) => flowGetSession(p, run_id),\n },\n {\n name: \"flow_find_flow_for_session\",\n description: \"Resolve and return the flow definition used in a past session.\",\n inputSchema: { run_id: z.string() },\n handler: async ({ run_id }: { run_id: string }) => flowFindFlowForSession(p, run_id),\n },\n // Skill tools\n {\n name: \"skill_list\",\n description: \"List all skills in the ai-assets catalog, optionally filtered by domain.\",\n inputSchema: { domain: z.string().optional().describe(\"Domain name filter\") },\n handler: async ({ domain }: { domain?: string }) => skillList(p, domain),\n },\n {\n name: \"skill_list_domains\",\n description: \"List all skill domains (top-level ai-assets directories with skills).\",\n inputSchema: {},\n handler: async () => skillListDomains(p),\n },\n {\n name: \"skill_show\",\n description: \"Show the full SKILL.md content for a skill ID.\",\n inputSchema: { skill_id: z.string().describe(\"Skill ID from skill_list\") },\n handler: async ({ skill_id }: { skill_id: string }) => skillShow(p, skill_id),\n },\n {\n name: \"skill_search\",\n description: \"Search skills by name, description, or keywords.\",\n inputSchema: { query: z.string() },\n handler: async ({ query }: { query: string }) => skillSearch(p, query),\n },\n {\n name: \"skill_check_requirements\",\n description: \"Validate that all skill prerequisites are met in the target directory.\",\n inputSchema: {\n skill_id: z.string(),\n target_dir: z\n .string()\n .optional()\n .describe(\"Directory to check against (default: projectDir)\"),\n },\n handler: async ({ skill_id, target_dir }: { skill_id: string; target_dir?: string }) =>\n skillCheckRequirements(p, skill_id, target_dir ?? p),\n },\n {\n name: \"skill_get_preamble\",\n description: \"Get the REQUIRES/INPUT/READS/WRITES DSL preamble for a skill.\",\n inputSchema: { skill_id: z.string() },\n handler: async ({ skill_id }: { skill_id: string }) => skillGetPreamble(p, skill_id),\n },\n // Session tools\n {\n name: \"session_list\",\n description: \"List all past agent run sessions for this workspace, sorted newest first.\",\n inputSchema: {},\n handler: async () => sessionList(p),\n },\n {\n name: \"session_get\",\n description: \"Get full metadata for a specific session by run ID.\",\n inputSchema: { run_id: z.string() },\n handler: async ({ run_id }: { run_id: string }) => sessionGet(p, run_id),\n },\n // Connector tools\n {\n name: \"connector_list\",\n description:\n \"List connectors declared in skaile.yaml as {connected, failed}. `failed` holds connectors that did not connect this session, with the failure reason — their mount paths are dead directories, not synced workspaces.\",\n inputSchema: {},\n handler: async () => connectorList(plugin.connectorManager),\n },\n {\n name: \"connector_read\",\n description: \"Read content from a connector by path.\",\n inputSchema: {\n connector_id: z.string().describe(\"Connector ID from connector_list\"),\n path: z.string().describe(\"Path within the connector\"),\n },\n handler: async ({ connector_id, path }: { connector_id: string; path: string }) =>\n connectorRead(plugin.connectorManager, connector_id, path),\n },\n {\n name: \"connector_write\",\n description: \"Write content to a connector by path.\",\n inputSchema: {\n connector_id: z.string(),\n path: z.string(),\n content: z.string().describe(\"Content to write\"),\n },\n handler: async ({\n connector_id,\n path,\n content,\n }: {\n connector_id: string;\n path: string;\n content: string;\n }) => connectorWrite(plugin.connectorManager, connector_id, path, content),\n },\n {\n name: \"connector_search\",\n description: \"Search within a connector by query string.\",\n inputSchema: {\n connector_id: z.string(),\n query: z.string().describe(\"Search query\"),\n },\n handler: async ({ connector_id, query }: { connector_id: string; query: string }) =>\n connectorSearch(plugin.connectorManager, connector_id, query),\n },\n {\n name: \"connector_exec\",\n description: \"Execute a custom operation on a connector.\",\n inputSchema: {\n connector_id: z.string(),\n operation: z.string().describe(\"Operation name from connector_describe\"),\n args: z.record(z.string(), z.unknown()).describe(\"Operation arguments\"),\n },\n handler: async ({\n connector_id,\n operation,\n args,\n }: {\n connector_id: string;\n operation: string;\n args: Record<string, unknown>;\n }) => connectorExec(plugin.connectorManager, connector_id, operation, args),\n },\n {\n name: \"connector_load_skill\",\n description: \"Load the rendered skill body for a connector (operations + usage).\",\n inputSchema: {\n connector_id: z.string(),\n },\n handler: async ({ connector_id }: { connector_id: string }) =>\n connectorLoadSkill(plugin.connectorManager, connector_id),\n },\n {\n name: \"connector_describe\",\n description: \"Describe a connector's capabilities via its RuntimeSkillDescriptor.\",\n inputSchema: {\n connector_id: z.string(),\n },\n handler: async ({ connector_id }: { connector_id: string }) =>\n connectorDescribe(plugin.connectorManager, connector_id),\n },\n // Validator tools\n {\n name: \"workspace_validate\",\n description: \"Run a full health check: connectors, mounts, secrets, driver binary.\",\n inputSchema: {},\n handler: async () => workspaceValidate(plugin, driver),\n },\n {\n name: \"workspace_info\",\n description: \"Show workspace configuration: driver, model, provider, resource counts.\",\n inputSchema: {},\n handler: async () => workspaceInfo(plugin, driver, plugin.model),\n },\n {\n name: \"workspace_test_secret\",\n description: \"Test resolution of one secret reference (env:VAR, forge:key).\",\n inputSchema: { ref: z.string().describe(\"Secret ref e.g. env:ANTHROPIC_API_KEY\") },\n handler: async ({ ref }: { ref: string }) => workspaceTestSecret(ref),\n },\n {\n name: \"workspace_reload\",\n description: \"Re-read skaile.yaml and re-sync the plugin state.\",\n inputSchema: {},\n handler: async () => workspaceReload(plugin),\n },\n ];\n}\n\n/**\n * Build the **in-process** workspace MCP server via the Claude Agent SDK's\n * `createSdkMcpServer`. This shape is what the runner embeds into a Claude\n * Agent SDK `query()` call — the runner *is* the Claude Agent SDK host.\n *\n * Returns `null` when `@anthropic-ai/claude-agent-sdk` is not installed\n * (graceful degradation for non-Claude-Code environments).\n *\n * For the standalone `skaile mcp-server` stdio subprocess use\n * {@link buildWorkspaceMcpStdioServer} / {@link runMcpServerStdio} instead —\n * those carry no Claude Agent SDK dependency.\n *\n * @param plugin - A booted `WorkspacePlugin` instance.\n * @returns The SDK MCP server object or `null` if the SDK is unavailable.\n *\n * @docLink packages/workspace-plugin/concepts#adapters\n */\nexport async function buildWorkspaceMcpServer(plugin: WorkspacePlugin): Promise<unknown | null> {\n let sdk: any;\n try {\n sdk = await import(\"@anthropic-ai/claude-agent-sdk\");\n } catch {\n return null;\n }\n return sdk.createSdkMcpServer({\n name: \"skaile-workspace\",\n tools: withActivityLabelDefs(buildWorkspaceToolDefs(plugin), zStatic),\n });\n}\n\n/**\n * Build a **raw stdio** workspace MCP server on `@modelcontextprotocol/sdk` —\n * no Claude Agent SDK. This is the correct shape for the `skaile mcp-server`\n * stdio subprocess that MCP-client agents (Claude Code, Codex, …) spawn.\n * Runs on plain Node.\n *\n * The returned server is not yet connected — call `.connect(transport)` (or\n * use {@link runMcpServerStdio}).\n *\n * @param plugin - A booted `WorkspacePlugin` instance.\n * @returns A `McpServer` with all 28 workspace tools registered.\n *\n * @docLink packages/workspace-plugin/concepts#adapters\n */\nexport async function buildWorkspaceMcpStdioServer(plugin: WorkspacePlugin): Promise<any> {\n const { McpServer } = await import(\"@modelcontextprotocol/sdk/server/mcp.js\" as string);\n const server = new McpServer({ name: \"skaile-workspace\", version: \"1.0.0\" });\n for (const def of buildWorkspaceToolDefs(plugin)) {\n server.registerTool(\n def.name,\n { description: def.description, inputSchema: def.inputSchema },\n def.handler,\n );\n }\n return server;\n}\n\n/**\n * Start the workspace MCP server over stdio transport.\n *\n * Builds the raw `@modelcontextprotocol/sdk` server via\n * {@link buildWorkspaceMcpStdioServer} and connects a `StdioServerTransport`.\n * No `@anthropic-ai/claude-agent-sdk` dependency anywhere on this path.\n *\n * @param plugin - A booted `WorkspacePlugin` instance.\n *\n * @docLink packages/workspace-plugin/concepts#adapters\n */\nexport async function runMcpServerStdio(plugin: WorkspacePlugin): Promise<void> {\n const server = await buildWorkspaceMcpStdioServer(plugin);\n const { StdioServerTransport } = await import(\n \"@modelcontextprotocol/sdk/server/stdio.js\" as string\n );\n await server.connect(new StdioServerTransport());\n}\n"]}
|
package/dist/cli/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { AI_RESOURCES } from '../chunk-DS7B54NF.js';
|
|
3
|
-
import { makeInstallCommand, makeCheckCommand, makeCleanCommand, reportInstalledSoftDeps } from '../chunk-
|
|
4
|
-
import { makeProvidersCommand, loadRegistryView, addProviderEntry, ProviderRegistryWriteError } from '../chunk-
|
|
3
|
+
import { makeInstallCommand, makeCheckCommand, makeCleanCommand, reportInstalledSoftDeps } from '../chunk-FVYRWGUC.js';
|
|
4
|
+
import { makeProvidersCommand, loadRegistryView, addProviderEntry, ProviderRegistryWriteError } from '../chunk-NMSHQUBY.js';
|
|
5
5
|
import { getStoreConfig, storeFetch, deviceLogin, loadStoreAuthConfig, logout, hasStoredAuth, isStoreAuthenticated, getStoreToken, getStoreIdentity } from '../chunk-IECSLI55.js';
|
|
6
|
-
import { makeSourceCommand, syncProjectSources } from '../chunk-
|
|
7
|
-
import { openCatalogSource, openLibraryManager, createFullRegistry, openLibrary } from '../chunk-
|
|
8
|
-
import { logErr, S, logOk, logInfo, logWarn, kindColorPad, kindColor, colorRef, formatSoftDepSection, bareSoftDepName, formatSoftDepHint, formatRelativeTime, formatSoftDepRemovePreview, formatSoftDepAddPreview, fitWidth } from '../chunk-
|
|
6
|
+
import { makeSourceCommand, syncProjectSources } from '../chunk-DN2V47ER.js';
|
|
7
|
+
import { openCatalogSource, openLibraryManager, createFullRegistry, openLibrary } from '../chunk-4P352BUX.js';
|
|
8
|
+
import { logErr, S, logOk, logInfo, logWarn, kindColorPad, kindColor, colorRef, formatSoftDepSection, bareSoftDepName, formatSoftDepHint, formatRelativeTime, formatSoftDepRemovePreview, formatSoftDepAddPreview, fitWidth } from '../chunk-GKX3QDPN.js';
|
|
9
9
|
import { LocalSecretsProvider } from '../chunk-6BEGKO2Q.js';
|
|
10
|
-
import { runAgentChat, loadSessionById, loadSession, listSessions, setCurrentSession, deleteSession, clearSession, loadAgentManifest, compileComposition, MarkdownStreamer, resolveMixin } from '../chunk-
|
|
11
|
-
import { buildClaudePluginFiles } from '../chunk-
|
|
12
|
-
import '../chunk-
|
|
13
|
-
import '../chunk-
|
|
10
|
+
import { runAgentChat, loadSessionById, loadSession, listSessions, setCurrentSession, deleteSession, clearSession, loadAgentManifest, compileComposition, MarkdownStreamer, resolveMixin } from '../chunk-TCANYRAF.js';
|
|
11
|
+
import { buildClaudePluginFiles } from '../chunk-GKP22MGV.js';
|
|
12
|
+
import '../chunk-UKFLK6V2.js';
|
|
13
|
+
import '../chunk-2GCUBS2W.js';
|
|
14
14
|
import '../chunk-FAI2SMFE.js';
|
|
15
15
|
import '../chunk-7IRJ4K4F.js';
|
|
16
16
|
import '../chunk-4ZTPYIBE.js';
|
|
@@ -24,12 +24,12 @@ import '../chunk-73ZXUUL6.js';
|
|
|
24
24
|
import '../chunk-32NA4TVC.js';
|
|
25
25
|
import '../chunk-W3UDISS2.js';
|
|
26
26
|
import '../chunk-45LLHKQ2.js';
|
|
27
|
-
import { runFlow, resumeFlow } from '../chunk-
|
|
27
|
+
import { runFlow, resumeFlow } from '../chunk-74QHEAUT.js';
|
|
28
28
|
import '../chunk-4R6DROGN.js';
|
|
29
29
|
import { validateFlowVersions, parseSkillFrontmatter } from '../chunk-3XXQPHGL.js';
|
|
30
30
|
import '../chunk-7BUZQVRR.js';
|
|
31
|
-
import '../chunk-
|
|
32
|
-
import '../chunk-
|
|
31
|
+
import '../chunk-I3UWSGEB.js';
|
|
32
|
+
import '../chunk-RRX33TOZ.js';
|
|
33
33
|
import '../chunk-SDNGG6FB.js';
|
|
34
34
|
import '../chunk-DYT3AQBM.js';
|
|
35
35
|
import '../chunk-U4LC6PLI.js';
|
|
@@ -41,13 +41,13 @@ import '../chunk-GAH4YRCI.js';
|
|
|
41
41
|
import { getProviderPreset, AI_PROVIDER_PRESETS } from '../chunk-5GYFYGVW.js';
|
|
42
42
|
import '../chunk-6E6PKKAD.js';
|
|
43
43
|
import '../chunk-IFGTRL2I.js';
|
|
44
|
-
import { projectAiAssetsRoots, loadFlow, loadAllFlowEntries, findFlowFileInRoots } from '../chunk-
|
|
45
|
-
import '../chunk-
|
|
46
|
-
import '../chunk-
|
|
44
|
+
import { projectAiAssetsRoots, loadFlow, loadAllFlowEntries, findFlowFileInRoots } from '../chunk-AZSRDONR.js';
|
|
45
|
+
import '../chunk-KLMXMW6Z.js';
|
|
46
|
+
import '../chunk-REYJKU7T.js';
|
|
47
47
|
import '../chunk-2D5BYAL6.js';
|
|
48
48
|
import { nodeLabel, nodeSkillAsset, nodeIsInert, nodeIsOptional, nodeRunKind, flowSkillVersionPins } from '../chunk-ELPR5XBG.js';
|
|
49
49
|
import '../chunk-QAH24E5U.js';
|
|
50
|
-
import { AssetManager, NON_DEPLOYABLE_KINDS, MissingManifestError, parseRefTolerant, normalizeRepoUrl, FACTORY_SOURCE_URL } from '../chunk-
|
|
50
|
+
import { AssetManager, NON_DEPLOYABLE_KINDS, MissingManifestError, parseRefTolerant, normalizeRepoUrl, FACTORY_SOURCE_URL } from '../chunk-2BLQJDYI.js';
|
|
51
51
|
import { getStoreManifestsDir, getDefaultValue, isSecretPlaceholder } from '../chunk-HR2AGPLJ.js';
|
|
52
52
|
import '../chunk-M5H4DWIA.js';
|
|
53
53
|
import '../chunk-UKJMQZV6.js';
|
|
@@ -124,7 +124,7 @@ async function runSearch(kind, query, opts) {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
async function searchIndex(query, kind) {
|
|
127
|
-
const { openLibrary: openLibrary2 } = await import('../open-library-
|
|
127
|
+
const { openLibrary: openLibrary2 } = await import('../open-library-PSLL6ULI.js');
|
|
128
128
|
const library = await openLibrary2();
|
|
129
129
|
try {
|
|
130
130
|
const defs = await library.listAssetDefs(kind ? { kind } : {});
|
|
@@ -177,7 +177,7 @@ async function searchLocal(query, kind, opts, showStore, airGapped) {
|
|
|
177
177
|
const factory = await searchFactory(projectDir, query, kind);
|
|
178
178
|
let entries = unionEntries(await searchIndex(query, kind), factory);
|
|
179
179
|
if (entries.length === 0 && !query && !kind && !airGapped) {
|
|
180
|
-
const { autoSyncForSearch } = await import('../source-
|
|
180
|
+
const { autoSyncForSearch } = await import('../source-5Q33HOPF.js');
|
|
181
181
|
if (await autoSyncForSearch(projectDir)) {
|
|
182
182
|
entries = unionEntries(await searchIndex(query, kind), factory);
|
|
183
183
|
}
|
|
@@ -231,7 +231,7 @@ async function searchStore(query, kind, opts, airGapped) {
|
|
|
231
231
|
logInfo("air-gapped (cache_ttl: 0) \u2014 local sources only");
|
|
232
232
|
return;
|
|
233
233
|
}
|
|
234
|
-
const { openCatalogSource: openCatalogSource2, LocalCatalogDisabledError } = await import('../open-library-
|
|
234
|
+
const { openCatalogSource: openCatalogSource2, LocalCatalogDisabledError } = await import('../open-library-PSLL6ULI.js');
|
|
235
235
|
try {
|
|
236
236
|
const remote = await openCatalogSource2({ projectDir: path36__default.resolve(opts.projectDir) });
|
|
237
237
|
const assets = await remote.listAssets(kind ? { kind } : {});
|
|
@@ -546,7 +546,7 @@ async function resolveInfoEntry(am2, ref, opts) {
|
|
|
546
546
|
return { entry: match ?? deployed };
|
|
547
547
|
}
|
|
548
548
|
const lookup = opts.storeLookup ?? (async (filter) => {
|
|
549
|
-
const { resolveCatalogSource } = await import('../open-library-
|
|
549
|
+
const { resolveCatalogSource } = await import('../open-library-PSLL6ULI.js');
|
|
550
550
|
const { source, close } = await resolveCatalogSource({ projectDir: opts.projectDir });
|
|
551
551
|
try {
|
|
552
552
|
return await source.listAssets(filter);
|
|
@@ -562,7 +562,7 @@ async function resolveInfoEntry(am2, ref, opts) {
|
|
|
562
562
|
);
|
|
563
563
|
return { entry: hit ? catalogAssetToEntry(hit) : null };
|
|
564
564
|
} catch (err) {
|
|
565
|
-
const { LocalCatalogDisabledError } = await import('../open-library-
|
|
565
|
+
const { LocalCatalogDisabledError } = await import('../open-library-PSLL6ULI.js');
|
|
566
566
|
const storeNote = err instanceof Error ? err.message : String(err);
|
|
567
567
|
const disabled = err instanceof LocalCatalogDisabledError || /catalog\.url/i.test(storeNote);
|
|
568
568
|
return { entry: null, storeNote, ...disabled ? { storeDisabled: true } : {} };
|
|
@@ -1182,7 +1182,7 @@ function makeCatalogCommand() {
|
|
|
1182
1182
|
return catalog;
|
|
1183
1183
|
}
|
|
1184
1184
|
async function runLocalCatalogTest(projectDir) {
|
|
1185
|
-
const { resolveCatalogSource } = await import('../open-library-
|
|
1185
|
+
const { resolveCatalogSource } = await import('../open-library-PSLL6ULI.js');
|
|
1186
1186
|
let resolved;
|
|
1187
1187
|
try {
|
|
1188
1188
|
resolved = await resolveCatalogSource({ projectDir });
|
|
@@ -3499,16 +3499,16 @@ function makeLibraryCommand() {
|
|
|
3499
3499
|
});
|
|
3500
3500
|
cmd.command("publish <lib>").description("Push + register the library's manifest atomically (needs git backend)").option("--asset <ref>", "Publish only the single asset matching this ref/name").option("--create-repo", "Provision + link a public github repo if the library has no remote").option("--ref <gitref>", "Git ref to ingest (default: the library branch or main)").option("--dry-run", "Print the plan; push nothing and call no store endpoint").action(
|
|
3501
3501
|
async (lib, opts) => {
|
|
3502
|
-
const { runLibraryPublish } = await import('../library-publish-
|
|
3502
|
+
const { runLibraryPublish } = await import('../library-publish-VKBT4JEX.js');
|
|
3503
3503
|
await withStoreErrorHandling(() => runLibraryPublish(lib, opts));
|
|
3504
3504
|
}
|
|
3505
3505
|
);
|
|
3506
3506
|
cmd.command("register <lib>").description("Register the library's manifest without pushing (bytes already on github)").option("--asset <ref>", "Publish only the single asset matching this ref/name").option("--ref <gitref>", "Git ref to ingest (default: the library branch or main)").option("--dry-run", "Print the plan; call no store endpoint").action(async (lib, opts) => {
|
|
3507
|
-
const { runLibraryRegister } = await import('../library-publish-
|
|
3507
|
+
const { runLibraryRegister } = await import('../library-publish-VKBT4JEX.js');
|
|
3508
3508
|
await withStoreErrorHandling(() => runLibraryRegister(lib, opts));
|
|
3509
3509
|
});
|
|
3510
3510
|
cmd.command("yank <lib>").description("Retract the library's published assets from the store").option("--asset <ref>", "Yank only the single asset matching this ref/name").action(async (lib, opts) => {
|
|
3511
|
-
const { runLibraryYank } = await import('../library-publish-
|
|
3511
|
+
const { runLibraryYank } = await import('../library-publish-VKBT4JEX.js');
|
|
3512
3512
|
await withStoreErrorHandling(() => runLibraryYank(lib, opts));
|
|
3513
3513
|
});
|
|
3514
3514
|
return cmd;
|
|
@@ -4230,7 +4230,7 @@ function scheduleSoftDepPreview() {
|
|
|
4230
4230
|
}
|
|
4231
4231
|
async function loadAssets() {
|
|
4232
4232
|
softDepPreviewCache.clear();
|
|
4233
|
-
const { gatherAssetFeeds } = await import('../asset-feeds-
|
|
4233
|
+
const { gatherAssetFeeds } = await import('../asset-feeds-YDCXFTJ7.js');
|
|
4234
4234
|
const { entries, domains, notes } = await gatherAssetFeeds(am, am.projectDir);
|
|
4235
4235
|
if (notes.length > 0) {
|
|
4236
4236
|
state.message = notes.map((n) => `[${n.feed}] ${n.message}`).join(" \u2022 ");
|
|
@@ -4436,7 +4436,7 @@ function reconcileCollapsedSets(rows) {
|
|
|
4436
4436
|
async function loadSourcesAndLibraries() {
|
|
4437
4437
|
try {
|
|
4438
4438
|
const [{ openLibraryManager: openLibraryManager2 }, { skaileHomeDir }, { getGlobalCacheDir: getGlobalCacheDir2 }] = await Promise.all([
|
|
4439
|
-
import('../open-library-
|
|
4439
|
+
import('../open-library-PSLL6ULI.js'),
|
|
4440
4440
|
import('../library/index.js'),
|
|
4441
4441
|
import('../core/index.js')
|
|
4442
4442
|
]);
|
|
@@ -7231,7 +7231,7 @@ function makeServeCommand() {
|
|
|
7231
7231
|
);
|
|
7232
7232
|
}
|
|
7233
7233
|
async function ensurePluginsLoadedForServe(projectDir) {
|
|
7234
|
-
const { logInfo: logInfo2, logWarn: logWarn2 } = await import('../helpers-
|
|
7234
|
+
const { logInfo: logInfo2, logWarn: logWarn2 } = await import('../helpers-3BHWBCBI.js');
|
|
7235
7235
|
try {
|
|
7236
7236
|
const { resolveSkWorkspaceConfig: resolveSkWorkspaceConfig2 } = await import('../core/index.js');
|
|
7237
7237
|
const config = resolveSkWorkspaceConfig2(projectDir);
|
|
@@ -7250,7 +7250,7 @@ async function ensurePluginsLoadedForServe(projectDir) {
|
|
|
7250
7250
|
}
|
|
7251
7251
|
}
|
|
7252
7252
|
async function runCompileTest(opts) {
|
|
7253
|
-
const { logOk: logOk2, logErr: logErr2, logInfo: logInfo2, S: S2 } = await import('../helpers-
|
|
7253
|
+
const { logOk: logOk2, logErr: logErr2, logInfo: logInfo2, S: S2 } = await import('../helpers-3BHWBCBI.js');
|
|
7254
7254
|
const { tmpdir } = await import('os');
|
|
7255
7255
|
const { dirname: dirname4, join: join7, resolve: resolve5 } = await import('path');
|
|
7256
7256
|
const { fileURLToPath: fileURLToPath2 } = await import('url');
|
|
@@ -8132,7 +8132,7 @@ function makeStoreCommand() {
|
|
|
8132
8132
|
process.exit(2);
|
|
8133
8133
|
});
|
|
8134
8134
|
store.command("search <query>").description("Search the AI Asset Store catalog by name, description, or publisher").option("--kind <kind>", "Filter by asset kind (skill, agent, prompt, flow, \u2026)").option("-C, --project-dir <dir>", "Project directory (catalog config overlay)", process.cwd()).action(async (query, opts) => {
|
|
8135
|
-
const { openCatalogSource: openCatalogSource2, LocalCatalogDisabledError } = await import('../open-library-
|
|
8135
|
+
const { openCatalogSource: openCatalogSource2, LocalCatalogDisabledError } = await import('../open-library-PSLL6ULI.js');
|
|
8136
8136
|
try {
|
|
8137
8137
|
const remote = await openCatalogSource2({ projectDir: path36__default.resolve(opts.projectDir) });
|
|
8138
8138
|
const assets = await remote.listAssets(opts.kind ? { kind: opts.kind } : {});
|
|
@@ -8165,8 +8165,8 @@ function makeStoreCommand() {
|
|
|
8165
8165
|
}
|
|
8166
8166
|
});
|
|
8167
8167
|
store.command("show <ref>").description("Show a store asset's details + provenance (source, files, integrity)").option("-C, --project-dir <dir>", "Project directory (catalog config overlay)", process.cwd()).action(async (ref, opts) => {
|
|
8168
|
-
const { openCatalogSource: openCatalogSource2, LocalCatalogDisabledError } = await import('../open-library-
|
|
8169
|
-
const { supportsInstallManifest } = await import('../project-
|
|
8168
|
+
const { openCatalogSource: openCatalogSource2, LocalCatalogDisabledError } = await import('../open-library-PSLL6ULI.js');
|
|
8169
|
+
const { supportsInstallManifest } = await import('../project-KVTNJKED.js');
|
|
8170
8170
|
try {
|
|
8171
8171
|
const remote = await openCatalogSource2({ projectDir: path36__default.resolve(opts.projectDir) });
|
|
8172
8172
|
const asset = await remote.resolve(ref);
|
|
@@ -9254,7 +9254,7 @@ async function bootstrapUserConfig() {
|
|
|
9254
9254
|
}
|
|
9255
9255
|
async function hydrateInitSources(resolved, created) {
|
|
9256
9256
|
try {
|
|
9257
|
-
const { ensureSourcesCloned } = await import('../ensure-sources-
|
|
9257
|
+
const { ensureSourcesCloned } = await import('../ensure-sources-65WPFIET.js');
|
|
9258
9258
|
const hydrate = ensureSourcesCloned(resolved, { quiet: true });
|
|
9259
9259
|
for (const n of hydrate.cloned) created.push(`~/.skaile/cache/sources/${n}/`);
|
|
9260
9260
|
if (hydrate.failed.length > 0) {
|
|
@@ -9294,7 +9294,7 @@ function printInitSummary(resolved, projectDir, created) {
|
|
|
9294
9294
|
console.log();
|
|
9295
9295
|
}
|
|
9296
9296
|
program.command("setup").description("Interactive provider setup wizard").action(async () => {
|
|
9297
|
-
const { cmdSetup } = await import('../setup-
|
|
9297
|
+
const { cmdSetup } = await import('../setup-47UHZ7EG.js');
|
|
9298
9298
|
await cmdSetup([], { projectDir: process.cwd() });
|
|
9299
9299
|
});
|
|
9300
9300
|
program.addCommand(makeInstallCommand());
|
package/dist/connectors/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AbstractConnector, BUILTIN_CONNECTOR_CATALOG, ConnectorManager, FlowAdapter, LogBuffer, ManagedGitconfigCollisionError, NO_ACTIVE_FLOW_ERROR, PortPool, atomicReplaceCredential, buildConnectorPromptSection, buildLazyFlowToolDefs, buildLazySdkFlowTools, buildSdkConnectorTools, buildSdkFlowTools, classifyConnectError, createFsWatcher, createWorktree, defaultSpawn, ensureDirMode, ensureFleetMounted, ensureRefreshAttemptStamp, findGitRoot, findMissingPackages, getConnector, installNpmPackages, isFleetManaged, isPackageResolvable, listConnectors, listWorktrees, registerBuiltinConnectors, removeMountBlock, removeUnavailableMountBlock, renderCredentialHelperScript, tryGetConnector, worktreeRegistry, writeHelperScript, writeMountBlock, writeUnavailableMountBlock } from '../chunk-
|
|
1
|
+
export { AbstractConnector, BUILTIN_CONNECTOR_CATALOG, ConnectorManager, FlowAdapter, LogBuffer, ManagedGitconfigCollisionError, NO_ACTIVE_FLOW_ERROR, PortPool, atomicReplaceCredential, buildConnectorPromptSection, buildLazyFlowToolDefs, buildLazySdkFlowTools, buildSdkConnectorTools, buildSdkFlowTools, classifyConnectError, createFsWatcher, createWorktree, defaultSpawn, ensureDirMode, ensureFleetMounted, ensureRefreshAttemptStamp, findGitRoot, findMissingPackages, getConnector, installNpmPackages, isFleetManaged, isPackageResolvable, listConnectors, listWorktrees, registerBuiltinConnectors, removeMountBlock, removeUnavailableMountBlock, renderCredentialHelperScript, tryGetConnector, worktreeRegistry, writeHelperScript, writeMountBlock, writeUnavailableMountBlock } from '../chunk-RRX33TOZ.js';
|
|
2
2
|
export { CONNECT_ERROR_KIND_PROPERTY, ClassifiedConnectError, declaredConnectErrorKind, withConnectErrorKind } from '../chunk-SDNGG6FB.js';
|
|
3
3
|
export { ConnectorFieldMissingError, ConnectorStartupError, EnvSecretProvider, ForgeSecretProvider, InMemorySecretProvider, LegacyAuthGrammarError, LockedSecretProvider, OAuthRequiredError, PreMintedSecretProvider, SecretProviderChain, createCliSecretProviderChain, createForgeSecretProviderChain, deriveSingleMaterializedConnectorDeclaration, fromMaterializedConnectorMd, isKnownSecretRef, loadConnectorDeclarations, loadMaterializedConnectorDeclarations, readUnavailableMarker, resolveAuthRef, resolveBackendAuthFor, resolvedConfigToDeclarations } from '../chunk-DYT3AQBM.js';
|
|
4
4
|
import '../chunk-U4LC6PLI.js';
|
|
@@ -10,9 +10,9 @@ import '../chunk-GAH4YRCI.js';
|
|
|
10
10
|
import '../chunk-5GYFYGVW.js';
|
|
11
11
|
import '../chunk-6E6PKKAD.js';
|
|
12
12
|
import '../chunk-IFGTRL2I.js';
|
|
13
|
-
import '../chunk-
|
|
14
|
-
import '../chunk-
|
|
15
|
-
import '../chunk-
|
|
13
|
+
import '../chunk-AZSRDONR.js';
|
|
14
|
+
import '../chunk-KLMXMW6Z.js';
|
|
15
|
+
import '../chunk-REYJKU7T.js';
|
|
16
16
|
import '../chunk-2D5BYAL6.js';
|
|
17
17
|
import '../chunk-ELPR5XBG.js';
|
|
18
18
|
import '../chunk-QAH24E5U.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { logErr, logOk, logInfo } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
import { logErr, logOk, logInfo } from './chunk-GKX3QDPN.js';
|
|
2
|
+
import './chunk-2BLQJDYI.js';
|
|
3
3
|
import './chunk-HR2AGPLJ.js';
|
|
4
4
|
import './chunk-M5H4DWIA.js';
|
|
5
5
|
import './chunk-UKJMQZV6.js';
|
|
@@ -88,5 +88,5 @@ function ensureSourcesCloned(projectDir, opts = {}) {
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
export { ensureSourcesCloned };
|
|
91
|
-
//# sourceMappingURL=ensure-sources-
|
|
92
|
-
//# sourceMappingURL=ensure-sources-
|
|
91
|
+
//# sourceMappingURL=ensure-sources-65WPFIET.js.map
|
|
92
|
+
//# sourceMappingURL=ensure-sources-65WPFIET.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../cli/src/ensure-sources.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,SAAS,gBAAgB,GAAA,EAAqB;AAC5C,EAAA,OAAY,IAAA,CAAA,IAAA,CAAK,iBAAA,EAAkB,EAAG,GAAG,CAAA;AAC3C;AASA,SAAS,kBAAA,CAAmB,UAAkB,KAAA,EAAsC;AAClF,EAAA,IAAI;AACF,IAAA,OAAO,mBAAA,CAAoB,IAAA,CAAK,QAAQ,CAAA,CAAE,UAAA,EAAW;AAAA,EACvD,SAAS,GAAA,EAAK;AACZ,IAAA,IAAI,CAAC,KAAA,EAAO;AACV,MAAA,MAAA,CAAO,CAAA,eAAA,EAAkB,QAAQ,CAAA,EAAA,EAAK,GAAA,YAAe,KAAA,GAAQ,IAAI,OAAA,GAAU,MAAA,CAAO,GAAG,CAAC,CAAA,CAAE,CAAA;AAAA,IAC1F;AACA,IAAA,OAAO,IAAA;AAAA,EACT;AACF;AAMA,SAAS,kBAAA,CAAmB,KAAA,EAAoB,KAAA,EAAgB,MAAA,EAA4B;AAC1F,EAAA,MA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;AACT","file":"ensure-sources-65WPFIET.js","sourcesContent":["/**\n * ensure-sources.ts — hydrate the `~/.skaile/cache/sources/` clone cache from a\n * project's `skaile.yaml` `sources:` entries.\n *\n * Called by `skaile init` (idempotent: no-op when no sources declared) and\n * `skaile install` so checking out a project pulls its source clones onto\n * the local machine.\n */\n\nimport { spawnSync } from \"node:child_process\";\nimport { existsSync, mkdirSync } from \"node:fs\";\nimport * as path from \"node:path\";\nimport {\n getGlobalCacheDir,\n type SourceEntry,\n sourceCacheKey,\n sourceShortName,\n WorkspaceYamlEditor,\n} from \"@skaile/workspaces/core\";\nimport { logErr, logInfo, logOk } from \"./helpers.ts\";\n\nfunction sourceClonePath(key: string): string {\n return path.join(getGlobalCacheDir(), key);\n}\n\nexport interface EnsureResult {\n cloned: string[];\n cached: string[];\n failed: string[];\n}\n\n/** Load `sources:` from a project's `skaile.yaml`, or `null` when unavailable. */\nfunction loadProjectSources(yamlPath: string, quiet: boolean): SourceEntry[] | null {\n try {\n return WorkspaceYamlEditor.load(yamlPath).getSources();\n } catch (err) {\n if (!quiet) {\n logErr(`Could not read ${yamlPath}: ${err instanceof Error ? err.message : String(err)}`);\n }\n return null;\n }\n}\n\n/**\n * Hydrate a single source entry into `result`: skip when already cached,\n * otherwise clone and record success/failure. Mutates `result` in place.\n */\nfunction hydrateSourceEntry(entry: SourceEntry, quiet: boolean, result: EnsureResult): void {\n const key = sourceCacheKey(entry.url);\n const slug = sourceShortName(entry.url);\n const dest = sourceClonePath(key);\n if (existsSync(dest)) {\n result.cached.push(slug);\n return;\n }\n mkdirSync(path.dirname(dest), { recursive: true });\n const args = [\"clone\", entry.url, dest];\n if (entry.pin) args.splice(1, 0, \"--branch\", entry.pin);\n const clone = spawnSync(\"git\", args, { stdio: quiet ? \"pipe\" : \"inherit\" });\n if (clone.status !== 0) {\n result.failed.push(slug);\n if (quiet) {\n logErr(`git clone failed for ${entry.url}`);\n }\n return;\n }\n result.cloned.push(slug);\n}\n\n/** Log a full-hydrate summary of cloned + reused-cached entries. */\nfunction logHydrateSummary(result: EnsureResult): void {\n for (const n of result.cloned) logOk(`Cloned source \"${n}\".`);\n if (result.cached.length > 0) {\n logInfo(`Reused cached clones: ${result.cached.join(\", \")}`);\n }\n}\n\n/**\n * Walk `projectDir/skaile.yaml` `sources:` and clone any entries whose\n * clone directory does not yet exist under `~/.skaile/cache/sources/`. Existing\n * clones are left untouched — this is hydration, not sync.\n *\n * Quiet by default: when `quiet: true` the helper only prints failures.\n * On full hydrate (`quiet: false`) it logs each cloned/cached entry.\n */\nexport function ensureSourcesCloned(\n projectDir: string,\n opts: { quiet?: boolean } = {},\n): EnsureResult {\n const result: EnsureResult = { cloned: [], cached: [], failed: [] };\n const yamlPath = path.join(projectDir, \"skaile.yaml\");\n if (!existsSync(yamlPath)) return result;\n\n const quiet = opts.quiet ?? false;\n const sources = loadProjectSources(yamlPath, quiet);\n if (sources === null) return result;\n if (sources.length === 0) return result;\n\n for (const entry of sources) {\n hydrateSourceEntry(entry, quiet, result);\n }\n\n if (!quiet) {\n logHydrateSummary(result);\n }\n\n return result;\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { BoxConnector, createConnector4 as createConnector } from '../../chunk-
|
|
1
|
+
export { BoxConnector, createConnector4 as createConnector } from '../../chunk-RRX33TOZ.js';
|
|
2
2
|
import '../../chunk-SDNGG6FB.js';
|
|
3
3
|
import '../../chunk-DYT3AQBM.js';
|
|
4
4
|
import '../../chunk-U4LC6PLI.js';
|
|
@@ -10,9 +10,9 @@ import '../../chunk-GAH4YRCI.js';
|
|
|
10
10
|
import '../../chunk-5GYFYGVW.js';
|
|
11
11
|
import '../../chunk-6E6PKKAD.js';
|
|
12
12
|
import '../../chunk-IFGTRL2I.js';
|
|
13
|
-
import '../../chunk-
|
|
14
|
-
import '../../chunk-
|
|
15
|
-
import '../../chunk-
|
|
13
|
+
import '../../chunk-AZSRDONR.js';
|
|
14
|
+
import '../../chunk-KLMXMW6Z.js';
|
|
15
|
+
import '../../chunk-REYJKU7T.js';
|
|
16
16
|
import '../../chunk-2D5BYAL6.js';
|
|
17
17
|
import '../../chunk-ELPR5XBG.js';
|
|
18
18
|
import '../../chunk-QAH24E5U.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { DeployConnector, createConnector2 as createConnector } from '../../chunk-
|
|
1
|
+
export { DeployConnector, createConnector2 as createConnector } from '../../chunk-RRX33TOZ.js';
|
|
2
2
|
import '../../chunk-SDNGG6FB.js';
|
|
3
3
|
import '../../chunk-DYT3AQBM.js';
|
|
4
4
|
import '../../chunk-U4LC6PLI.js';
|
|
@@ -10,9 +10,9 @@ import '../../chunk-GAH4YRCI.js';
|
|
|
10
10
|
import '../../chunk-5GYFYGVW.js';
|
|
11
11
|
import '../../chunk-6E6PKKAD.js';
|
|
12
12
|
import '../../chunk-IFGTRL2I.js';
|
|
13
|
-
import '../../chunk-
|
|
14
|
-
import '../../chunk-
|
|
15
|
-
import '../../chunk-
|
|
13
|
+
import '../../chunk-AZSRDONR.js';
|
|
14
|
+
import '../../chunk-KLMXMW6Z.js';
|
|
15
|
+
import '../../chunk-REYJKU7T.js';
|
|
16
16
|
import '../../chunk-2D5BYAL6.js';
|
|
17
17
|
import '../../chunk-ELPR5XBG.js';
|
|
18
18
|
import '../../chunk-QAH24E5U.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { DevServerConnector, createConnector3 as createConnector } from '../../chunk-
|
|
1
|
+
export { DevServerConnector, createConnector3 as createConnector } from '../../chunk-RRX33TOZ.js';
|
|
2
2
|
import '../../chunk-SDNGG6FB.js';
|
|
3
3
|
import '../../chunk-DYT3AQBM.js';
|
|
4
4
|
import '../../chunk-U4LC6PLI.js';
|
|
@@ -10,9 +10,9 @@ import '../../chunk-GAH4YRCI.js';
|
|
|
10
10
|
import '../../chunk-5GYFYGVW.js';
|
|
11
11
|
import '../../chunk-6E6PKKAD.js';
|
|
12
12
|
import '../../chunk-IFGTRL2I.js';
|
|
13
|
-
import '../../chunk-
|
|
14
|
-
import '../../chunk-
|
|
15
|
-
import '../../chunk-
|
|
13
|
+
import '../../chunk-AZSRDONR.js';
|
|
14
|
+
import '../../chunk-KLMXMW6Z.js';
|
|
15
|
+
import '../../chunk-REYJKU7T.js';
|
|
16
16
|
import '../../chunk-2D5BYAL6.js';
|
|
17
17
|
import '../../chunk-ELPR5XBG.js';
|
|
18
18
|
import '../../chunk-QAH24E5U.js';
|
|
@@ -43,7 +43,11 @@ All seven strict v2 kinds — `run.kind: agent`, `run.kind: subprompt`,
|
|
|
43
43
|
`run.kind: function`, `run.kind: check`, `run.kind: gate`, `run.kind: router`,
|
|
44
44
|
and `run.kind: sub-flow` — are active. Among legacy definitions, explicit
|
|
45
45
|
`type: skill` nodes normalize into the agent shape and exact `type: sub-flow`
|
|
46
|
-
nodes with `data.flow` normalize into the active inline-child shape.
|
|
46
|
+
nodes with `data.flow` normalize into the active inline-child shape. A
|
|
47
|
+
`type: gate` node normalizes into a required first-class gate (below) whose
|
|
48
|
+
prompt is `data.message` plus any `data.check` as text (non-strings rendered as
|
|
49
|
+
JSON): the legacy check syntax is not evaluated, so the gate always pauses. A gate marked `optional` or with an
|
|
50
|
+
`on_fail` other than `pause-for-human` is refused rather than flattened. Other
|
|
47
51
|
legacy kinds normalize to false-precondition router placeholders: they are
|
|
48
52
|
tracked but never become available, so their outgoing hard flow edges remain
|
|
49
53
|
blocking. A selected
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { FlowAdapter, createConnector, describeFlowOperations } from '../../../chunk-
|
|
1
|
+
export { FlowAdapter, createConnector, describeFlowOperations } from '../../../chunk-RRX33TOZ.js';
|
|
2
2
|
import '../../../chunk-SDNGG6FB.js';
|
|
3
3
|
import '../../../chunk-DYT3AQBM.js';
|
|
4
4
|
import '../../../chunk-U4LC6PLI.js';
|
|
@@ -10,9 +10,9 @@ import '../../../chunk-GAH4YRCI.js';
|
|
|
10
10
|
import '../../../chunk-5GYFYGVW.js';
|
|
11
11
|
import '../../../chunk-6E6PKKAD.js';
|
|
12
12
|
import '../../../chunk-IFGTRL2I.js';
|
|
13
|
-
export { isBlocking } from '../../../chunk-
|
|
14
|
-
import '../../../chunk-
|
|
15
|
-
import '../../../chunk-
|
|
13
|
+
export { isBlocking } from '../../../chunk-AZSRDONR.js';
|
|
14
|
+
import '../../../chunk-KLMXMW6Z.js';
|
|
15
|
+
import '../../../chunk-REYJKU7T.js';
|
|
16
16
|
import '../../../chunk-2D5BYAL6.js';
|
|
17
17
|
import '../../../chunk-ELPR5XBG.js';
|
|
18
18
|
import '../../../chunk-QAH24E5U.js';
|
|
@@ -27,7 +27,8 @@ export type FlowDefinitionParseResult = {
|
|
|
27
27
|
};
|
|
28
28
|
/**
|
|
29
29
|
* Converts a recognized v1 definition to strict v2 without mutating the authored input.
|
|
30
|
-
*
|
|
30
|
+
* A v1 gate becomes a real v2 gate; other non-executable legacy nodes become inert
|
|
31
|
+
* placeholders so dependency and terminal semantics survive.
|
|
31
32
|
*/
|
|
32
33
|
export declare function normalizeV1(data: unknown): FlowDefinitionParseResult;
|
|
33
34
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/contract/normalize.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,aAAa,CAAC;AA0GrB,iGAAiG;AACjG,MAAM,WAAW,mBAAmB;IAClC,8EAA8E;IAC9E,IAAI,EAAE,MAAM,CAAC;IACb,kEAAkE;IAClE,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,+FAA+F;AAC/F,MAAM,MAAM,uBAAuB,GAAG;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE5B,6FAA6F;AAC7F,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,GAAG;IACjE,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,GAAG,uBAAuB,CAAC,CAAC;CACzE,CAAC;AAEF,yFAAyF;AACzF,MAAM,MAAM,yBAAyB,GACjC;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,oBAAoB,CAAA;CAAE,GACxC;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,mBAAmB,EAAE,CAAA;CAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/contract/normalize.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,aAAa,CAAC;AA0GrB,iGAAiG;AACjG,MAAM,WAAW,mBAAmB;IAClC,8EAA8E;IAC9E,IAAI,EAAE,MAAM,CAAC;IACb,kEAAkE;IAClE,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,+FAA+F;AAC/F,MAAM,MAAM,uBAAuB,GAAG;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE5B,6FAA6F;AAC7F,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,GAAG;IACjE,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,GAAG,uBAAuB,CAAC,CAAC;CACzE,CAAC;AAEF,yFAAyF;AACzF,MAAM,MAAM,yBAAyB,GACjC;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,oBAAoB,CAAA;CAAE,GACxC;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,mBAAmB,EAAE,CAAA;CAAE,CAAC;AA0KjD;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,GAAG,yBAAyB,CA2JpE;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,OAAO,GAAG,yBAAyB,CAY5E"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { FLOW_DEFINITION_JSON_SCHEMA_ID, canonicalizeFlowDefinition, generateFlowDefinitionJsonSchema, hashFlowDefinition } from '../../../chunk-
|
|
2
|
-
export { INPUT_SCHEMA_SHAPES_HINT, coerceInputSchema } from '../../../chunk-
|
|
3
|
-
export { FLOW_EXPRESSION_LIMITS, FlowDefinitionSchema, FlowExpressionError, RESERVED_CLASSIFIER_FIELDS, checkClassifierShape, classifierDecision, declaresReservedClassifierField, evaluate, evaluateFlowExpression, inspectFlowExpressionComparisons, normalizeV1, parseFlowDefinition, resolveFlowBindings, withoutReservedClassifierFields } from '../../../chunk-
|
|
1
|
+
export { FLOW_DEFINITION_JSON_SCHEMA_ID, canonicalizeFlowDefinition, generateFlowDefinitionJsonSchema, hashFlowDefinition } from '../../../chunk-I3UWSGEB.js';
|
|
2
|
+
export { INPUT_SCHEMA_SHAPES_HINT, coerceInputSchema } from '../../../chunk-KLMXMW6Z.js';
|
|
3
|
+
export { FLOW_EXPRESSION_LIMITS, FlowDefinitionSchema, FlowExpressionError, RESERVED_CLASSIFIER_FIELDS, checkClassifierShape, classifierDecision, declaresReservedClassifierField, evaluate, evaluateFlowExpression, inspectFlowExpressionComparisons, normalizeV1, parseFlowDefinition, resolveFlowBindings, withoutReservedClassifierFields } from '../../../chunk-REYJKU7T.js';
|
|
4
4
|
import '../../../chunk-NSBPE2FW.js';
|
|
5
5
|
//# sourceMappingURL=contract.js.map
|
|
6
6
|
//# sourceMappingURL=contract.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { FLOW_FILE_EXTENSIONS, FlowManifestSchema, appendAttempt, buildFlowExpressionContext, computeFlowState, computeFlowStateFromSnapshots, computeSkippable, countFailedAttempts, deriveCheckEvidence, findFlowFileInRoots, flowFileCandidates, flowKindProvider, flowLookupRoots, getConsumedOutputSchema, hasAutomaticRetryBudget, interpolateNodeInstruction, isActiveExecutionExpired, isBlocking, loadAllFlowEntries, loadAllFlows, loadFlow, loadFlowEntriesFromDir, loadFlowsFromDir, nextAttemptNumber, producerOutputObtainedBy, projectAiAssetsRoots, remainingActiveExecutionMs, resolveAvailableRouter, resolveNextNodes, resolveNodeBindings, resolveTerminalFailureStatus, validateConsumedNodeOutput, validateFlow } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
1
|
+
export { FLOW_FILE_EXTENSIONS, FlowManifestSchema, appendAttempt, buildFlowExpressionContext, computeFlowState, computeFlowStateFromSnapshots, computeSkippable, countFailedAttempts, deriveCheckEvidence, findFlowFileInRoots, flowFileCandidates, flowKindProvider, flowLookupRoots, getConsumedOutputSchema, hasAutomaticRetryBudget, interpolateNodeInstruction, isActiveExecutionExpired, isBlocking, loadAllFlowEntries, loadAllFlows, loadFlow, loadFlowEntriesFromDir, loadFlowsFromDir, nextAttemptNumber, producerOutputObtainedBy, projectAiAssetsRoots, remainingActiveExecutionMs, resolveAvailableRouter, resolveNextNodes, resolveNodeBindings, resolveTerminalFailureStatus, validateConsumedNodeOutput, validateFlow } from '../../../chunk-AZSRDONR.js';
|
|
2
|
+
import '../../../chunk-REYJKU7T.js';
|
|
3
3
|
export { deterministicNodeKindLabel, flowDefaults, flowSkillVersionPins, isActiveRuntimeNode, isAgentNode, isCheckNode, isExecutableNode, isFunctionNode, isGateNode, isRouterNode, isSubFlowNode, isSubpromptNode, nodeAssets, nodeBindings, nodeInstruction, nodeIsInert, nodeIsOptional, nodeLabel, nodeRequiresApproval, nodeRunKind, nodeSkillAsset, nodeSkillId, nodeSkillVersionPins } from '../../../chunk-ELPR5XBG.js';
|
|
4
4
|
import '../../../chunk-BCXZ74DM.js';
|
|
5
5
|
import '../../../chunk-SU5LVG6T.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { resolveFlowPath, resumeFlow, runFlow } from '../../../chunk-
|
|
1
|
+
export { resolveFlowPath, resumeFlow, runFlow } from '../../../chunk-74QHEAUT.js';
|
|
2
2
|
import '../../../chunk-4R6DROGN.js';
|
|
3
3
|
import '../../../chunk-3XXQPHGL.js';
|
|
4
|
-
import '../../../chunk-
|
|
4
|
+
import '../../../chunk-RRX33TOZ.js';
|
|
5
5
|
import '../../../chunk-SDNGG6FB.js';
|
|
6
6
|
import '../../../chunk-DYT3AQBM.js';
|
|
7
7
|
import '../../../chunk-U4LC6PLI.js';
|
|
@@ -13,9 +13,9 @@ import '../../../chunk-GAH4YRCI.js';
|
|
|
13
13
|
import '../../../chunk-5GYFYGVW.js';
|
|
14
14
|
import '../../../chunk-6E6PKKAD.js';
|
|
15
15
|
import '../../../chunk-IFGTRL2I.js';
|
|
16
|
-
import '../../../chunk-
|
|
17
|
-
import '../../../chunk-
|
|
18
|
-
import '../../../chunk-
|
|
16
|
+
import '../../../chunk-AZSRDONR.js';
|
|
17
|
+
import '../../../chunk-KLMXMW6Z.js';
|
|
18
|
+
import '../../../chunk-REYJKU7T.js';
|
|
19
19
|
import '../../../chunk-2D5BYAL6.js';
|
|
20
20
|
import '../../../chunk-ELPR5XBG.js';
|
|
21
21
|
import '../../../chunk-QAH24E5U.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ClassifierSubpromptRunner, FlowAdapter, SessionInlineSubFlowRunner, SessionNodeExecutor, SessionSubpromptRunner, buildFlowPromptEvent, classifierQuestion, createConnector, describeFlowOperations, driveOrchestratorTurn } from '../../chunk-
|
|
1
|
+
export { ClassifierSubpromptRunner, FlowAdapter, SessionInlineSubFlowRunner, SessionNodeExecutor, SessionSubpromptRunner, buildFlowPromptEvent, classifierQuestion, createConnector, describeFlowOperations, driveOrchestratorTurn } from '../../chunk-RRX33TOZ.js';
|
|
2
2
|
import '../../chunk-SDNGG6FB.js';
|
|
3
3
|
import '../../chunk-DYT3AQBM.js';
|
|
4
4
|
import '../../chunk-U4LC6PLI.js';
|
|
@@ -10,9 +10,9 @@ import '../../chunk-GAH4YRCI.js';
|
|
|
10
10
|
import '../../chunk-5GYFYGVW.js';
|
|
11
11
|
import '../../chunk-6E6PKKAD.js';
|
|
12
12
|
import '../../chunk-IFGTRL2I.js';
|
|
13
|
-
import '../../chunk-
|
|
14
|
-
import '../../chunk-
|
|
15
|
-
import '../../chunk-
|
|
13
|
+
import '../../chunk-AZSRDONR.js';
|
|
14
|
+
import '../../chunk-KLMXMW6Z.js';
|
|
15
|
+
import '../../chunk-REYJKU7T.js';
|
|
16
16
|
import '../../chunk-2D5BYAL6.js';
|
|
17
17
|
import '../../chunk-ELPR5XBG.js';
|
|
18
18
|
import '../../chunk-QAH24E5U.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { GitConnector, MAX_REARM_MS, MIN_REFRESH_DELAY_MS, REFRESH_LEAD_MS, __test, createConnector5 as createConnector, readGitSyncStatus } from '../../chunk-
|
|
1
|
+
export { GitConnector, MAX_REARM_MS, MIN_REFRESH_DELAY_MS, REFRESH_LEAD_MS, __test, createConnector5 as createConnector, readGitSyncStatus } from '../../chunk-RRX33TOZ.js';
|
|
2
2
|
import '../../chunk-SDNGG6FB.js';
|
|
3
3
|
import '../../chunk-DYT3AQBM.js';
|
|
4
4
|
import '../../chunk-U4LC6PLI.js';
|
|
@@ -10,9 +10,9 @@ import '../../chunk-GAH4YRCI.js';
|
|
|
10
10
|
import '../../chunk-5GYFYGVW.js';
|
|
11
11
|
import '../../chunk-6E6PKKAD.js';
|
|
12
12
|
import '../../chunk-IFGTRL2I.js';
|
|
13
|
-
import '../../chunk-
|
|
14
|
-
import '../../chunk-
|
|
15
|
-
import '../../chunk-
|
|
13
|
+
import '../../chunk-AZSRDONR.js';
|
|
14
|
+
import '../../chunk-KLMXMW6Z.js';
|
|
15
|
+
import '../../chunk-REYJKU7T.js';
|
|
16
16
|
import '../../chunk-2D5BYAL6.js';
|
|
17
17
|
import '../../chunk-ELPR5XBG.js';
|
|
18
18
|
import '../../chunk-QAH24E5U.js';
|