@skaile/workspaces 0.48.2 → 0.50.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 +36 -0
- package/dist/asset-manager/index.js +2 -2
- package/dist/asset-manager/installer.js +1 -1
- package/dist/asset-manager/src/index.d.ts +13 -1
- package/dist/asset-manager/src/index.d.ts.map +1 -1
- package/dist/asset-manager/src/installer.d.ts +19 -8
- package/dist/asset-manager/src/installer.d.ts.map +1 -1
- package/dist/{chunk-LTUTK2Q3.js → chunk-2Y4HIITD.js} +24 -15
- package/dist/chunk-2Y4HIITD.js.map +1 -0
- package/dist/{chunk-XVDXGQ55.js → chunk-7X53KHQ4.js} +4 -2
- package/dist/{chunk-XVDXGQ55.js.map → chunk-7X53KHQ4.js.map} +1 -1
- package/dist/{chunk-BWCGSGAC.js → chunk-C5RYGUF4.js} +17 -6
- package/dist/chunk-C5RYGUF4.js.map +1 -0
- package/dist/{chunk-YERSEKB2.js → chunk-H74X4TSR.js} +2 -2
- package/dist/{chunk-YERSEKB2.js.map → chunk-H74X4TSR.js.map} +1 -1
- package/dist/{chunk-CK3O5BCT.js → chunk-LV73DB4G.js} +32 -2
- package/dist/chunk-LV73DB4G.js.map +1 -0
- package/dist/cli/index.js +14 -8
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/src/commands/catalog.d.ts.map +1 -1
- package/dist/cli/src/commands/project.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/run-flow.js +1 -1
- package/dist/runner/index.js +1 -1
- package/dist/runner/src/runtime-session-emit.d.ts +39 -0
- package/dist/runner/src/runtime-session-emit.d.ts.map +1 -0
- package/dist/runner/src/serve.d.ts.map +1 -1
- package/dist/sdk/asset-manager.js +2 -2
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/runner.js +1 -1
- package/dist/sdk/store.js +1 -1
- package/dist/store/index.js +1 -1
- package/dist/store/src/store.d.ts.map +1 -1
- package/dist/tui/index.js +1 -1
- package/dist/types/src/events.d.ts +33 -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/package.json +1 -1
- package/dist/chunk-BWCGSGAC.js.map +0 -1
- package/dist/chunk-CK3O5BCT.js.map +0 -1
- package/dist/chunk-LTUTK2Q3.js.map +0 -1
|
@@ -2858,6 +2858,18 @@ async function handleCredentialRotatedSignal(deps) {
|
|
|
2858
2858
|
}
|
|
2859
2859
|
}
|
|
2860
2860
|
|
|
2861
|
+
// runner/src/runtime-session-emit.ts
|
|
2862
|
+
function planRuntimeSessionEmit(input) {
|
|
2863
|
+
const { driverSessionId, model, capabilitySignature, lastEmitted } = input;
|
|
2864
|
+
if (!driverSessionId) {
|
|
2865
|
+
return null;
|
|
2866
|
+
}
|
|
2867
|
+
if (lastEmitted && lastEmitted.driverSessionId === driverSessionId && lastEmitted.model === model && lastEmitted.capabilitySignature === capabilitySignature) {
|
|
2868
|
+
return null;
|
|
2869
|
+
}
|
|
2870
|
+
return { type: "runtime_session", driverSessionId, model, capabilitySignature };
|
|
2871
|
+
}
|
|
2872
|
+
|
|
2861
2873
|
// runner/src/compaction/prompt.ts
|
|
2862
2874
|
var DEFAULT_COMPACTION_PROMPT = `You are being asked to compact this conversation into a structured summary.
|
|
2863
2875
|
This summary will replace the full conversation history when the session
|
|
@@ -4451,6 +4463,23 @@ async function startAgentServer(opts) {
|
|
|
4451
4463
|
);
|
|
4452
4464
|
});
|
|
4453
4465
|
}
|
|
4466
|
+
const driverSessionId = driver?.runtimeSessionId;
|
|
4467
|
+
if (driverSessionId) {
|
|
4468
|
+
const runtimeSessionEvent = planRuntimeSessionEmit({
|
|
4469
|
+
driverSessionId,
|
|
4470
|
+
model: driver?.getModel?.() ?? null,
|
|
4471
|
+
capabilitySignature: computeCapabilitySignature(capabilityRegistry.list()),
|
|
4472
|
+
lastEmitted: lastEmittedRuntimeSession
|
|
4473
|
+
});
|
|
4474
|
+
if (runtimeSessionEvent) {
|
|
4475
|
+
lastEmittedRuntimeSession = {
|
|
4476
|
+
driverSessionId: runtimeSessionEvent.driverSessionId,
|
|
4477
|
+
model: runtimeSessionEvent.model,
|
|
4478
|
+
capabilitySignature: runtimeSessionEvent.capabilitySignature
|
|
4479
|
+
};
|
|
4480
|
+
sendEvent(runtimeSessionEvent);
|
|
4481
|
+
}
|
|
4482
|
+
}
|
|
4454
4483
|
}
|
|
4455
4484
|
if (!resourceManager) {
|
|
4456
4485
|
sendEvent(event);
|
|
@@ -4466,6 +4495,7 @@ async function startAgentServer(opts) {
|
|
|
4466
4495
|
let driver = secretsMode === "env" ? agentSession.driver : void 0;
|
|
4467
4496
|
let secretsProvisioned = secretsMode === "env";
|
|
4468
4497
|
let eventSeq = 0;
|
|
4498
|
+
let lastEmittedRuntimeSession;
|
|
4469
4499
|
let compacting = false;
|
|
4470
4500
|
let compactionOrchestrator = null;
|
|
4471
4501
|
const compactionConfig = wsConfig.compaction;
|
|
@@ -5789,5 +5819,5 @@ function touchSession(state) {
|
|
|
5789
5819
|
}
|
|
5790
5820
|
|
|
5791
5821
|
export { CLAUDE_CODE_CREDENTIALS_KEY, COMPILE_MANIFEST_FILENAME, CapabilityRegistry, DEFAULT_CAPABILITY_CALL_TIMEOUT_MS, DEFAULT_COALESCE_MS, MarkdownStreamer, PreInitRingSink, agentDefinitionExists, bootstrapCapabilityRegistry, bootstrapRunnerLogStore, buildAgentResources, buildClientCapabilityHandler, buildConnectorTokenMediator, buildContextSection, buildEnvironmentSection, buildResourcesAvailablePayload, builtinCapabilities, clearPreInitRingSink, clearSession, compileComposition, computeCapabilitySignature, connectorRefreshKind, createAgentSession, createSessionStimulusBus, defineCapability, deleteSession, dispatchRunnerCapabilityInvocation, emitSystemPromptComposed, ensureGitConfigInclude, extractClaudeAiOauthExpiresAt, getPreInitRingSink, handleMountResourceRequest, handleResourceRequest, installPreInitRingSink, listSessions, loadAgentManifest, loadCompileManifest, loadCompileManifestFromDir, loadSession, loadSessionById, mcpAuthSecretKey, newSession, registerCompositionCapabilities, rejectCapabilityOnApprovalDeny, resetRunnerLogStore, resolveAgentComposition, resolveAgentMixins, resolveBinding, resolveCapabilityCallTimeoutMs, resolveCapabilityResult, resolveComposition, resolveMixin, runAgentChat, saveSession, setCurrentSession, startAgentServer, touchSession, writeClaudeCodeCredentialsFile };
|
|
5792
|
-
//# sourceMappingURL=chunk-
|
|
5793
|
-
//# sourceMappingURL=chunk-
|
|
5822
|
+
//# sourceMappingURL=chunk-LV73DB4G.js.map
|
|
5823
|
+
//# sourceMappingURL=chunk-LV73DB4G.js.map
|