@skaile/workspaces 0.9.1 → 0.10.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 +22 -0
- package/dist/base-assets/connectors/flow/run-flow.js +1 -1
- package/dist/bridge/drivers/claude-sdk.js +53 -3
- package/dist/bridge/drivers/claude-sdk.js.map +1 -1
- package/dist/bridge/drivers/codex.js +1 -1
- package/dist/bridge/drivers/echo.js +1 -1
- package/dist/bridge/drivers/omp.js +1 -1
- package/dist/bridge/index.js +2 -2
- package/dist/bridge/src/drivers/claude-sdk.d.ts +23 -0
- package/dist/bridge/src/drivers/claude-sdk.d.ts.map +1 -1
- package/dist/{chunk-QZ6PY73K.js → chunk-BYZI6FMB.js} +17 -22
- package/dist/chunk-BYZI6FMB.js.map +1 -0
- package/dist/{chunk-TODD4VNR.js → chunk-D3VO6WNC.js} +85 -3
- package/dist/chunk-D3VO6WNC.js.map +1 -0
- package/dist/{chunk-DTL7S57T.js → chunk-NPNRWHCU.js} +2 -2
- package/dist/{chunk-DTL7S57T.js.map → chunk-NPNRWHCU.js.map} +1 -1
- package/dist/{chunk-K3TMZI6D.js → chunk-OSJH4SPO.js} +3 -3
- package/dist/{chunk-K3TMZI6D.js.map → chunk-OSJH4SPO.js.map} +1 -1
- package/dist/{chunk-AE6GCXGL.js → chunk-S7RACIZI.js} +2 -2
- package/dist/{chunk-AE6GCXGL.js.map → chunk-S7RACIZI.js.map} +1 -1
- package/dist/{chunk-O5AE4QDX.js → chunk-TDSRLMDB.js} +4 -4
- package/dist/chunk-TDSRLMDB.js.map +1 -0
- package/dist/chunk-W3UDISS2.js +31 -0
- package/dist/chunk-W3UDISS2.js.map +1 -0
- package/dist/{chunk-5IC6CJL4.js → chunk-YWQ3NGCS.js} +2 -2
- package/dist/{chunk-5IC6CJL4.js.map → chunk-YWQ3NGCS.js.map} +1 -1
- package/dist/cli/index.js +8 -7
- package/dist/cli/index.js.map +1 -1
- package/dist/runner/index.js +6 -5
- package/dist/runner/prompt-assembly.js +4 -0
- package/dist/runner/prompt-assembly.js.map +1 -0
- package/dist/runner/src/capability-registry.d.ts.map +1 -1
- package/dist/runner/src/capability-roundtrip.d.ts +18 -0
- package/dist/runner/src/capability-roundtrip.d.ts.map +1 -1
- package/dist/runner/src/define-capability.d.ts +7 -0
- package/dist/runner/src/define-capability.d.ts.map +1 -1
- package/dist/runner/src/prompt-assembly.d.ts +39 -0
- package/dist/runner/src/prompt-assembly.d.ts.map +1 -1
- package/dist/runner/src/serve.d.ts.map +1 -1
- package/dist/sdk/bridge.js +2 -2
- package/dist/sdk/index.js +6 -5
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/runner.js +6 -5
- package/dist/sdk/session.js +2 -2
- package/dist/sdk/types.js +1 -1
- package/dist/session/index.js +2 -2
- package/dist/session/src/dispatcher.d.ts +57 -0
- package/dist/session/src/dispatcher.d.ts.map +1 -1
- package/dist/{setup-PHFPBDBI.js → setup-QIEPIYH2.js} +4 -4
- package/dist/{setup-PHFPBDBI.js.map → setup-QIEPIYH2.js.map} +1 -1
- package/dist/tui/index.js +6 -5
- package/dist/tui/index.js.map +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/src/capabilities.d.ts +13 -0
- package/dist/types/src/capabilities.d.ts.map +1 -1
- package/dist/types/src/events.d.ts +29 -1
- package/dist/types/src/events.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +19 -1
- package/dist/types/src/version.d.ts.map +1 -1
- package/dist/workspace-plugin/adapters/mcp.js +2 -2
- package/dist/workspace-plugin/index.js +1 -1
- package/package.json +7 -1
- package/dist/chunk-O5AE4QDX.js.map +0 -1
- package/dist/chunk-QZ6PY73K.js.map +0 -1
- package/dist/chunk-TODD4VNR.js.map +0 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { WorkspacePlugin } from './chunk-
|
|
2
|
-
import { PROTOCOL_VERSION } from './chunk-O5AE4QDX.js';
|
|
1
|
+
import { WorkspacePlugin } from './chunk-YWQ3NGCS.js';
|
|
3
2
|
import { WebSocketServerTransport } from './chunk-PBWMV5GM.js';
|
|
4
|
-
import {
|
|
3
|
+
import { assembleSystemPrompt, buildCapabilitiesPromptSection } from './chunk-W3UDISS2.js';
|
|
4
|
+
import { PROTOCOL_VERSION } from './chunk-TDSRLMDB.js';
|
|
5
|
+
import { EventNormalizer } from './chunk-OSJH4SPO.js';
|
|
5
6
|
import { classifyClaudeSdkError } from './chunk-EWP5HZBV.js';
|
|
6
|
-
import { createDriver } from './chunk-
|
|
7
|
+
import { createDriver } from './chunk-S7RACIZI.js';
|
|
7
8
|
import { deployCatalogEntry, undeployCatalogEntry } from './chunk-LV2HPH3C.js';
|
|
8
9
|
import { registerBuiltinConnectors, findMissingPackages, installNpmPackages, ConnectorManager, ConnectorStartupError, buildConnectorPromptSection, buildSdkConnectorTools } from './chunk-EPGHAOEU.js';
|
|
9
10
|
import { loadConnectorDeclarations, PreMintedSecretProvider, InMemorySecretProvider } from './chunk-W75ASXH4.js';
|
|
@@ -242,6 +243,7 @@ function defineCapability(args) {
|
|
|
242
243
|
userInvokable: args.userInvokable,
|
|
243
244
|
audience: args.audience,
|
|
244
245
|
promptFragment: args.promptFragment,
|
|
246
|
+
callTimeoutMs: args.callTimeoutMs,
|
|
245
247
|
render: args.render,
|
|
246
248
|
inputZod: args.input,
|
|
247
249
|
outputZod: args.output,
|
|
@@ -705,20 +707,6 @@ async function loadAgentManifest(agentDir) {
|
|
|
705
707
|
return void 0;
|
|
706
708
|
}
|
|
707
709
|
}
|
|
708
|
-
|
|
709
|
-
// runner/src/prompt-assembly.ts
|
|
710
|
-
function assembleSystemPrompt(parts) {
|
|
711
|
-
const filtered = parts.filter((p) => !!p);
|
|
712
|
-
if (filtered.length === 0) return void 0;
|
|
713
|
-
return filtered.join("\n\n---\n\n");
|
|
714
|
-
}
|
|
715
|
-
function buildCapabilitiesPromptSection(registry) {
|
|
716
|
-
const body = registry.composePromptSection();
|
|
717
|
-
if (!body) return void 0;
|
|
718
|
-
return `<CAPABILITIES>
|
|
719
|
-
${body}
|
|
720
|
-
</CAPABILITIES>`;
|
|
721
|
-
}
|
|
722
710
|
var RecipeUnavailableError = class extends Error {
|
|
723
711
|
constructor(flakeRef, attr, cause) {
|
|
724
712
|
super(
|
|
@@ -1885,6 +1873,7 @@ var CapabilityRegistry = class {
|
|
|
1885
1873
|
userInvokable: cap.userInvokable,
|
|
1886
1874
|
audience: cap.audience,
|
|
1887
1875
|
promptFragment: cap.promptFragment,
|
|
1876
|
+
callTimeoutMs: cap.callTimeoutMs,
|
|
1888
1877
|
render: cap.render
|
|
1889
1878
|
};
|
|
1890
1879
|
}
|
|
@@ -1914,6 +1903,11 @@ var HYDRATED_REJECT_HANDLER = async () => {
|
|
|
1914
1903
|
|
|
1915
1904
|
// runner/src/capability-roundtrip.ts
|
|
1916
1905
|
var DEFAULT_CAPABILITY_CALL_TIMEOUT_MS = 6e4;
|
|
1906
|
+
function resolveCapabilityCallTimeoutMs(cap, approvalTimeoutMs) {
|
|
1907
|
+
if (typeof cap.callTimeoutMs === "number") return cap.callTimeoutMs;
|
|
1908
|
+
if (cap.requiresApproval) return approvalTimeoutMs;
|
|
1909
|
+
return DEFAULT_CAPABILITY_CALL_TIMEOUT_MS;
|
|
1910
|
+
}
|
|
1917
1911
|
function buildClientCapabilityHandler(args) {
|
|
1918
1912
|
const timeoutMs = args.timeoutMs ?? DEFAULT_CAPABILITY_CALL_TIMEOUT_MS;
|
|
1919
1913
|
const gen = args.generateCallId ?? (() => `cap-${Date.now()}-${Math.floor(Math.random() * 1e9)}`);
|
|
@@ -2779,11 +2773,12 @@ async function startAgentServer(opts) {
|
|
|
2779
2773
|
};
|
|
2780
2774
|
const APPROVAL_REQUIRED_CAPABILITY_TIMEOUT_MS = 15 * 60 * 1e3;
|
|
2781
2775
|
function buildClientCapabilityHandler2(wire) {
|
|
2776
|
+
const timeoutMs = resolveCapabilityCallTimeoutMs(wire, APPROVAL_REQUIRED_CAPABILITY_TIMEOUT_MS);
|
|
2782
2777
|
return buildClientCapabilityHandler({
|
|
2783
2778
|
wire,
|
|
2784
2779
|
pending: pendingCapabilityCalls,
|
|
2785
2780
|
emit: (event) => sendEvent(event),
|
|
2786
|
-
timeoutMs
|
|
2781
|
+
timeoutMs
|
|
2787
2782
|
});
|
|
2788
2783
|
}
|
|
2789
2784
|
function buildCapabilityHooks() {
|
|
@@ -4133,6 +4128,6 @@ function touchSession(state) {
|
|
|
4133
4128
|
return { ...state, updatedAt: (/* @__PURE__ */ new Date()).toISOString() };
|
|
4134
4129
|
}
|
|
4135
4130
|
|
|
4136
|
-
export { CLAUDE_CODE_CREDENTIALS_KEY, COMPILE_MANIFEST_FILENAME, CapabilityRegistry, DEFAULT_CAPABILITY_CALL_TIMEOUT_MS, DEFAULT_COALESCE_MS, MarkdownStreamer, PreInitRingSink, agentDefinitionExists,
|
|
4137
|
-
//# sourceMappingURL=chunk-
|
|
4138
|
-
//# sourceMappingURL=chunk-
|
|
4131
|
+
export { CLAUDE_CODE_CREDENTIALS_KEY, COMPILE_MANIFEST_FILENAME, CapabilityRegistry, DEFAULT_CAPABILITY_CALL_TIMEOUT_MS, DEFAULT_COALESCE_MS, MarkdownStreamer, PreInitRingSink, agentDefinitionExists, bootstrapCapabilityRegistry, bootstrapRunnerLogStore, buildAgentResources, buildClientCapabilityHandler, buildContextSection, buildEnvironmentSection, builtinCapabilities, clearPreInitRingSink, clearSession, compileComposition, computeCapabilitySignature, createAgentSession, createSessionStimulusBus, defineCapability, deleteSession, emitSystemPromptComposed, ensureGitConfigInclude, getPreInitRingSink, handleMountResourceRequest, handleResourceRequest, installPreInitRingSink, listSessions, loadAgentManifest, loadCompileManifest, loadCompileManifestFromDir, loadSession, loadSessionById, newSession, registerCompositionCapabilities, rejectCapabilityOnApprovalDeny, resetRunnerLogStore, resolveAgentComposition, resolveAgentMixins, resolveBinding, resolveCapabilityCallTimeoutMs, resolveCapabilityResult, resolveComposition, resolveMixin, runAgentChat, saveSession, setCurrentSession, startAgentServer, touchSession, writeClaudeCodeCredentialsFile };
|
|
4132
|
+
//# sourceMappingURL=chunk-BYZI6FMB.js.map
|
|
4133
|
+
//# sourceMappingURL=chunk-BYZI6FMB.js.map
|