You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
functiondisconnected(){returnnewPluginError('ZCODE_DISCONNECTED','The ZCode connection is closed.',{category: 'runtime',remedy: 'Create a new client and retry.'});}
375
378
functionprotocolInputError(){returnnewPluginError('ZCODE_PROTOCOL_INPUT_INVALID','ZCode protocol input is invalid.',{category: 'validation',remedy: 'Provide a valid method, params, session, and bounded timeout.'});}
379
+
functionbrokerCapabilityUnavailable(){returnnewPluginError('ZCODE_BROKER_CAPABILITY_UNAVAILABLE','The broker did not authenticate the requested connection capability.',{category: 'protocol',remedy: 'Restart the broker with the current ZCode plugin version.'});}
functionmalformedFrame(){returnnewPluginError('ZCODE_PROTOCOL_MALFORMED','ZCode sent a malformed protocol frame.',{category: 'protocol',remedy: 'Restart ZCode and retry.'});}
functionownerStoreInvalid(cause){returnnewPluginError('ZCODE_OWNER_STORE_INVALID','The ZCode session owner store is missing or corrupt.',{category: 'storage',remedy: 'Reconcile ownership from validated durable job records before resuming sessions.', ...(cause===undefined ? {} : { cause })});}
343
347
functionownerConflict(){returnnewPluginError('ZCODE_SESSION_OWNER_CONFLICT','The session already belongs to another broker owner.',{category: 'authorization',remedy: 'Use the original stable owner credential.'});}
348
+
functionexistingProtocolUnavailable(){returnnewPluginError('ZCODE_BROKER_PROTOCOL_UNAVAILABLE','The existing ZCode protocol is unavailable.',{category: 'state',remedy: 'Retry after an active ZCode broker protocol is available.'});}
344
349
functionbrokerInputError(){returnnewPluginError('ZCODE_BROKER_INPUT_INVALID','ZCode broker input is invalid.',{category: 'validation',remedy: 'Provide a data root, workspace, endpoint, and launch target.'});}
345
350
functionidentityCleanupError(path,cause){returnnewPluginError('ZCODE_BROKER_IDENTITY_CLEANUP_FAILED','The ZCode broker identity could not be safely removed.',{category: 'storage',remedy: 'Inspect the broker identity path and retry cleanup.', ...(cause===undefined ? {} : { cause }),details: { path }});}
Copy file name to clipboardExpand all lines: tests/hooks.test.mjs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -223,11 +223,11 @@ test('SessionEnd never starts a broker when exact existing settlement is unavail
223
223
consthookSource=awaitreadFile(join(root,'hooks/session-end-hook.mjs'),'utf8');assert.match(hookSource,/createExistingManagedZCodeClient/);assert.doesNotMatch(hookSource,/maxFrameBytes|maxOutboundBytes|drainTimeoutMs/,'writable Rescue is pinned to the default managed broker profile');
224
224
});
225
225
226
-
test('generic releasedSessionIds never terminalize a durable job',async()=>{
226
+
test('SessionEnd existing-only settlement never lazily spawns ZCode and generic release never terminalizes the job',async()=>{
0 commit comments