@skaile/workspaces 3.21.0 → 3.22.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-V4DZPOVS.js → asset-feeds-6EETZDHH.js} +4 -4
- package/dist/{asset-feeds-V4DZPOVS.js.map → asset-feeds-6EETZDHH.js.map} +1 -1
- package/dist/asset-manager/index.js +3 -3
- package/dist/asset-manager/installer.js +2 -2
- package/dist/asset-manager/renderers.js +1 -1
- package/dist/asset-manager/src/renderers.d.ts.map +1 -1
- package/dist/{chunk-EJ76MKTF.js → chunk-AA3ZFPWX.js} +2 -2
- package/dist/{chunk-EJ76MKTF.js.map → chunk-AA3ZFPWX.js.map} +1 -1
- package/dist/{chunk-74KGZA7R.js → chunk-AYOYM3R3.js} +3 -3
- package/dist/{chunk-74KGZA7R.js.map → chunk-AYOYM3R3.js.map} +1 -1
- package/dist/{chunk-PVVPGD7P.js → chunk-DAWQ22RW.js} +3 -3
- package/dist/{chunk-PVVPGD7P.js.map → chunk-DAWQ22RW.js.map} +1 -1
- package/dist/{chunk-AQJ5ZYD6.js → chunk-FBIETQGY.js} +3 -3
- package/dist/{chunk-AQJ5ZYD6.js.map → chunk-FBIETQGY.js.map} +1 -1
- package/dist/{chunk-FWFHCERM.js → chunk-FXHBHT75.js} +34 -8
- package/dist/chunk-FXHBHT75.js.map +1 -0
- package/dist/{chunk-DVSASEGO.js → chunk-K6VZQNTR.js} +2 -2
- package/dist/{chunk-DVSASEGO.js.map → chunk-K6VZQNTR.js.map} +1 -1
- package/dist/{chunk-OHLYKLGJ.js → chunk-MX6TGDZ7.js} +3 -3
- package/dist/{chunk-OHLYKLGJ.js.map → chunk-MX6TGDZ7.js.map} +1 -1
- package/dist/{chunk-CGLJHFQI.js → chunk-ORC2K2I7.js} +6 -6
- package/dist/{chunk-CGLJHFQI.js.map → chunk-ORC2K2I7.js.map} +1 -1
- package/dist/{chunk-DFELEIPJ.js → chunk-TDHG7F77.js} +3 -3
- package/dist/{chunk-DFELEIPJ.js.map → chunk-TDHG7F77.js.map} +1 -1
- package/dist/{chunk-5JTA7HNJ.js → chunk-ZMV3VFDF.js} +6 -6
- package/dist/{chunk-5JTA7HNJ.js.map → chunk-ZMV3VFDF.js.map} +1 -1
- package/dist/cli/index.js +26 -26
- package/dist/{ensure-sources-HXAPBBA5.js → ensure-sources-LLUFYDS6.js} +6 -6
- package/dist/{ensure-sources-HXAPBBA5.js.map → ensure-sources-LLUFYDS6.js.map} +1 -1
- package/dist/factory-assets/connectors/flow/run-flow.js +1 -1
- package/dist/{helpers-3VAE3TYQ.js → helpers-QCDU5PSM.js} +6 -6
- package/dist/{helpers-3VAE3TYQ.js.map → helpers-QCDU5PSM.js.map} +1 -1
- package/dist/{library-publish-Z7QQDGOL.js → library-publish-ZKA7VRVX.js} +8 -8
- package/dist/{library-publish-Z7QQDGOL.js.map → library-publish-ZKA7VRVX.js.map} +1 -1
- package/dist/{open-library-424UBGA7.js → open-library-JSP4TJJH.js} +7 -7
- package/dist/{open-library-424UBGA7.js.map → open-library-JSP4TJJH.js.map} +1 -1
- package/dist/{project-HLSVZVAF.js → project-6WVN7M7B.js} +7 -7
- package/dist/{project-HLSVZVAF.js.map → project-6WVN7M7B.js.map} +1 -1
- package/dist/runner/index.js +2 -2
- package/dist/runner/src/serve.d.ts.map +1 -1
- package/dist/sdk/asset-manager.js +3 -3
- package/dist/sdk/index.js +2 -2
- package/dist/sdk/runner.js +2 -2
- package/dist/{source-SWZRKTKL.js → source-KC2IJYXJ.js} +8 -8
- package/dist/{source-SWZRKTKL.js.map → source-KC2IJYXJ.js.map} +1 -1
- package/dist/{source-manifest-publish-XBRXFOHO.js → source-manifest-publish-OLSWFW7L.js} +9 -9
- package/dist/{source-manifest-publish-XBRXFOHO.js.map → source-manifest-publish-OLSWFW7L.js.map} +1 -1
- package/dist/tui/index.js +2 -2
- package/dist/types/src/lifecycle.d.ts +12 -1
- package/dist/types/src/lifecycle.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-FWFHCERM.js.map +0 -1
|
@@ -4,7 +4,7 @@ import { WorkspacePlugin } from './chunk-IUOXPQA3.js';
|
|
|
4
4
|
import { assembleSystemPrompt, buildCapabilitiesPromptSection } from './chunk-W3UDISS2.js';
|
|
5
5
|
import { WebSocketServerTransport } from './chunk-WQ7DE5UC.js';
|
|
6
6
|
import { prepareNativePolicy, codexInstanceEnvironment, parseCodexCredential, parseCodexRefreshInput, parseCodexRefreshResult } from './chunk-T3YLZQS4.js';
|
|
7
|
-
import { resolveFlowPath } from './chunk-
|
|
7
|
+
import { resolveFlowPath } from './chunk-AA3ZFPWX.js';
|
|
8
8
|
import { findAiAssetsRoot as findAiAssetsRoot$1, deployCatalogEntry, undeployCatalogEntry } from './chunk-7BUZQVRR.js';
|
|
9
9
|
import { registerBuiltinConnectors, buildConnectorPromptSection, findMissingPackages, installNpmPackages, ConnectorManager, ConnectorStartupError, buildSdkConnectorTools, buildConnectorToolDefs, buildFlowToolDefs, driveOrchestratorTurn, SessionNodeExecutor, SessionSubpromptRunner, SessionInlineSubFlowRunner, buildSdkFlowTools } from './chunk-PLLVREB2.js';
|
|
10
10
|
import { loadConnectorDeclarations, SecretProviderChain, PreMintedSecretProvider, InMemorySecretProvider, resolvedConfigToDeclarations, isKnownSecretRef, deriveSingleMaterializedConnectorDeclaration } from './chunk-SIREWRZE.js';
|
|
@@ -6132,6 +6132,12 @@ async function startAgentServer(opts) {
|
|
|
6132
6132
|
transport.send(event);
|
|
6133
6133
|
}
|
|
6134
6134
|
}
|
|
6135
|
+
let initAcknowledged = false;
|
|
6136
|
+
let initGeneration = 0;
|
|
6137
|
+
function emitInitAck(ack) {
|
|
6138
|
+
initAcknowledged = true;
|
|
6139
|
+
sendEvent(ack);
|
|
6140
|
+
}
|
|
6135
6141
|
const capabilityRegistry = new CapabilityRegistry(
|
|
6136
6142
|
createLogger({
|
|
6137
6143
|
kind: "runner",
|
|
@@ -6468,9 +6474,16 @@ async function startAgentServer(opts) {
|
|
|
6468
6474
|
}
|
|
6469
6475
|
let resolveSessionReady;
|
|
6470
6476
|
let rejectSessionReady;
|
|
6477
|
+
let sessionReadyOutcome = "pending";
|
|
6471
6478
|
const sessionReady = new Promise((resolve5, reject) => {
|
|
6472
|
-
resolveSessionReady =
|
|
6473
|
-
|
|
6479
|
+
resolveSessionReady = () => {
|
|
6480
|
+
if (sessionReadyOutcome === "pending") sessionReadyOutcome = "resolved";
|
|
6481
|
+
resolve5();
|
|
6482
|
+
};
|
|
6483
|
+
rejectSessionReady = (err) => {
|
|
6484
|
+
if (sessionReadyOutcome === "pending") sessionReadyOutcome = "rejected";
|
|
6485
|
+
reject(err);
|
|
6486
|
+
};
|
|
6474
6487
|
});
|
|
6475
6488
|
let sessionConfig;
|
|
6476
6489
|
let agentSession;
|
|
@@ -7028,6 +7041,7 @@ async function startAgentServer(opts) {
|
|
|
7028
7041
|
}
|
|
7029
7042
|
async function cleanup() {
|
|
7030
7043
|
if (managedHost) managedBootstrapClosed = true;
|
|
7044
|
+
initAcknowledged = false;
|
|
7031
7045
|
try {
|
|
7032
7046
|
await Promise.race([
|
|
7033
7047
|
sessionReady,
|
|
@@ -7463,6 +7477,8 @@ async function startAgentServer(opts) {
|
|
|
7463
7477
|
let runtimeRejected = false;
|
|
7464
7478
|
async function handleSessionInit(cmd) {
|
|
7465
7479
|
const initReceivedAt = Date.now();
|
|
7480
|
+
const thisInit = ++initGeneration;
|
|
7481
|
+
initAcknowledged = false;
|
|
7466
7482
|
if (cmd.protocolVersion.major !== PROTOCOL_VERSION.major) {
|
|
7467
7483
|
log(
|
|
7468
7484
|
`[serve] incompatible protocol: agent=${PROTOCOL_VERSION.major} platform=${cmd.protocolVersion.major}`
|
|
@@ -7516,7 +7532,7 @@ async function startAgentServer(opts) {
|
|
|
7516
7532
|
if (managedInitFingerprint) {
|
|
7517
7533
|
if (managedInitFingerprint !== fingerprint) throw new Error("AI_PROFILE_INVALID");
|
|
7518
7534
|
if (managedInitComplete)
|
|
7519
|
-
|
|
7535
|
+
emitInitAck({
|
|
7520
7536
|
type: "session_init_ack",
|
|
7521
7537
|
capabilitySignature: computeCapabilitySignature(capabilityRegistry.list())
|
|
7522
7538
|
});
|
|
@@ -7573,7 +7589,7 @@ async function startAgentServer(opts) {
|
|
|
7573
7589
|
}
|
|
7574
7590
|
const resumeProbe = !managedCodex && cmd.resume?.sessionId ? await probeResumeTranscript(cmd.resume.sessionId) : void 0;
|
|
7575
7591
|
if (!managedCodex)
|
|
7576
|
-
|
|
7592
|
+
emitInitAck({
|
|
7577
7593
|
type: "session_init_ack",
|
|
7578
7594
|
capabilitySignature: computeCapabilitySignature(capabilityRegistry.list()),
|
|
7579
7595
|
...resumeProbe ? { resumeProbe } : {}
|
|
@@ -7663,7 +7679,7 @@ async function startAgentServer(opts) {
|
|
|
7663
7679
|
}
|
|
7664
7680
|
if (managedBootstrapClosed || !driverStarted) throw new Error("CODEX_RUNTIME_UNSUPPORTED");
|
|
7665
7681
|
managedInitComplete = true;
|
|
7666
|
-
|
|
7682
|
+
emitInitAck({
|
|
7667
7683
|
type: "session_init_ack",
|
|
7668
7684
|
capabilitySignature: computeCapabilitySignature(capabilityRegistry.list())
|
|
7669
7685
|
});
|
|
@@ -7672,6 +7688,7 @@ async function startAgentServer(opts) {
|
|
|
7672
7688
|
};
|
|
7673
7689
|
void buildSession().catch((err) => {
|
|
7674
7690
|
const errMsg = err instanceof Error ? err.message : String(err);
|
|
7691
|
+
if (thisInit === initGeneration) initAcknowledged = false;
|
|
7675
7692
|
logPhase("session_ready", initReceivedAt, { ready: false });
|
|
7676
7693
|
log(`[serve] session_init failed to build session: ${errMsg}`);
|
|
7677
7694
|
sendEvent({ type: "error", message: errMsg, fatal: true });
|
|
@@ -8102,6 +8119,15 @@ async function startAgentServer(opts) {
|
|
|
8102
8119
|
transport.onCommand((cmd) => {
|
|
8103
8120
|
void handleCommand(cmd);
|
|
8104
8121
|
});
|
|
8122
|
+
transport.onConnect(() => {
|
|
8123
|
+
if (!initAcknowledged || sessionReadyOutcome === "rejected") return;
|
|
8124
|
+
serverLog.debug("[serve] replaying session_init_ack on connect");
|
|
8125
|
+
sendEvent({
|
|
8126
|
+
type: "session_init_ack",
|
|
8127
|
+
capabilitySignature: computeCapabilitySignature(capabilityRegistry.list()),
|
|
8128
|
+
replayed: true
|
|
8129
|
+
});
|
|
8130
|
+
});
|
|
8105
8131
|
transport.onConnect(() => {
|
|
8106
8132
|
sendEvent(turnStatus.snapshot());
|
|
8107
8133
|
});
|
|
@@ -8320,5 +8346,5 @@ function touchSession(state) {
|
|
|
8320
8346
|
}
|
|
8321
8347
|
|
|
8322
8348
|
export { CLAUDE_CODE_CREDENTIALS_KEY, COMPILE_MANIFEST_FILENAME, CapabilityRegistry, DEFAULT_CAPABILITY_CALL_TIMEOUT_MS, DEFAULT_COALESCE_MS, DEFAULT_FLOW_MUTATE_CONNECTOR_WAIT_MS, MOUNT_LIST_MAX_DEPTH, MOUNT_LIST_MAX_ENTRIES, MOUNT_READ_DEADLINE_FACTOR, MOUNT_TREE_OP_DEADLINE_FACTOR, MarkdownStreamer, PreInitRingSink, agentDefinitionExists, bootstrapCapabilityRegistry, bootstrapRunnerLogStore, buildAgentResources, buildClientCapabilityHandler, buildConnectorTokenMediator, buildContextSection, buildEnvironmentSection, buildResourcesAvailablePayload, buildStoreSnapshotReplay, builtinCapabilities, capabilityLogInstance, clearPreInitRingSink, clearSession, compileComposition, computeCapabilitySignature, connectorRefreshKind, createAgentSession, createFlowConnectorReadiness, createManagedCodexSubpromptDriver, createSessionStimulusBus, defineCapability, deleteSession, dispatchRunnerCapabilityInvocation, emitSystemPromptComposed, ensureClaudeSettingsDisablesConnectors, ensureGitConfigInclude, executeConnectorMutate, extractClaudeAiOauthExpiresAt, getPreInitRingSink, handleMountResourceRequest, handleResourceRequest, hasNonTerminalFlow, hostOpResumeStimulus, installPreInitRingSink, isTerminalFlowStatus, listSessions, loadAgentManifest, loadCompileManifest, loadCompileManifestFromDir, loadManagedCodexHostConfig, loadSession, loadSessionById, mcpAuthSecretKey, newSession, nulTailPaddingLength, pickRepointedManager, planFlowMutate, prepareCodexTools, reconcilePendingDecisions, registerActiveFlow, registerCompositionCapabilities, rejectCapabilityOnApprovalDeny, resetRunnerLogStore, resolveAgentComposition, resolveAgentMixins, resolveBinding, resolveCapabilityCallTimeoutMs, resolveCapabilityResult, resolveComposition, resolveFlowMutateConnectorWaitMs, resolveMixin, runAgentChat, saveSession, setCurrentSession, setUpFlowConnector, startAgentServer, stimulusFromMetas, supportsLiveToolUpdates, touchSession, validateInputResponse, writeClaudeCodeCredentialsFile };
|
|
8323
|
-
//# sourceMappingURL=chunk-
|
|
8324
|
-
//# sourceMappingURL=chunk-
|
|
8349
|
+
//# sourceMappingURL=chunk-FXHBHT75.js.map
|
|
8350
|
+
//# sourceMappingURL=chunk-FXHBHT75.js.map
|