@code-yeongyu/senpi-agent-core 2026.11.3-3 → 2026.11.4-2
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/dist/agent-loop.js +7 -47
- package/dist/conformance/index.d.ts +23 -0
- package/dist/conformance/index.js +17 -0
- package/dist/conformance/loop-core-manifest.d.ts +1 -1
- package/dist/conformance/loop-core-manifest.js +1 -0
- package/dist/conformance/registry.js +9 -1
- package/dist/execution/canonical-json.d.ts +3 -0
- package/dist/execution/canonical-json.js +12 -0
- package/dist/execution/coordinator-codec.js +13 -2
- package/dist/execution/coordinator-consent.d.ts +29 -0
- package/dist/execution/coordinator-consent.js +63 -0
- package/dist/execution/coordinator-sequential.d.ts +15 -0
- package/dist/execution/coordinator-sequential.js +34 -0
- package/dist/execution/coordinator-types.d.ts +45 -0
- package/dist/execution/coordinator.d.ts +3 -1
- package/dist/execution/coordinator.js +35 -3
- package/dist/execution/device-files-node.d.ts +8 -0
- package/dist/execution/device-files-node.js +112 -0
- package/dist/execution/device-files.d.ts +80 -0
- package/dist/execution/device-files.js +87 -0
- package/dist/execution/nested-codec.d.ts +5 -0
- package/dist/execution/nested-codec.js +41 -0
- package/dist/execution/nested-types.d.ts +92 -0
- package/dist/execution/nested-types.js +3 -0
- package/dist/execution/nested.d.ts +48 -0
- package/dist/execution/nested.js +206 -0
- package/dist/execution/plane-model.d.ts +33 -0
- package/dist/execution/plane-model.js +80 -0
- package/dist/execution/plane.d.ts +72 -0
- package/dist/execution/plane.js +172 -0
- package/dist/execution/remote-device-files.d.ts +12 -0
- package/dist/execution/remote-device-files.js +84 -0
- package/dist/execution/remote-executor.d.ts +10 -0
- package/dist/execution/remote-executor.js +49 -15
- package/dist/execution/remote-file-call.d.ts +14 -0
- package/dist/execution/remote-file-call.js +30 -0
- package/dist/execution/remote-link.d.ts +36 -0
- package/dist/execution/remote-link.js +117 -0
- package/dist/execution/remote-protocol.d.ts +21 -4
- package/dist/execution/remote-protocol.js +18 -2
- package/dist/execution/remote-tool-host.d.ts +11 -3
- package/dist/execution/remote-tool-host.js +23 -64
- package/dist/execution/scope-lifecycle.d.ts +81 -0
- package/dist/execution/scope-lifecycle.js +173 -0
- package/dist/execution/testing/batch-executor.js +32 -3
- package/dist/execution/testing/batch-harness.d.ts +25 -3
- package/dist/execution/testing/batch-harness.js +83 -5
- package/dist/execution/testing/cancel-cases.d.ts +8 -0
- package/dist/execution/testing/cancel-cases.js +64 -0
- package/dist/execution/testing/consent-cases.d.ts +14 -0
- package/dist/execution/testing/consent-cases.js +66 -0
- package/dist/execution/testing/kill-nest.d.ts +6 -0
- package/dist/execution/testing/kill-nest.js +55 -0
- package/dist/execution/testing/kill-wakex.d.ts +6 -0
- package/dist/execution/testing/kill-wakex.js +81 -0
- package/dist/execution/testing/lifecycle-cases.d.ts +9 -0
- package/dist/execution/testing/lifecycle-cases.js +60 -0
- package/dist/execution/testing/lifecycle-registry.d.ts +3 -0
- package/dist/execution/testing/lifecycle-registry.js +19 -0
- package/dist/execution/testing/multi-lifecycle-cases.d.ts +4 -0
- package/dist/execution/testing/multi-lifecycle-cases.js +34 -0
- package/dist/execution/testing/multi-seq-cases.d.ts +4 -0
- package/dist/execution/testing/multi-seq-cases.js +46 -0
- package/dist/execution/testing/nest-cases.d.ts +39 -0
- package/dist/execution/testing/nest-cases.js +181 -0
- package/dist/execution/testing/nest-registry.d.ts +3 -0
- package/dist/execution/testing/nest-registry.js +27 -0
- package/dist/execution/testing/scope-cases.d.ts +6 -0
- package/dist/execution/testing/scope-cases.js +49 -0
- package/dist/execution/testing/seq-cases.d.ts +6 -0
- package/dist/execution/testing/seq-cases.js +71 -0
- package/dist/execution/testing/seq-registry.d.ts +3 -0
- package/dist/execution/testing/seq-registry.js +32 -0
- package/dist/execution/testing/wake-exec-cases.d.ts +20 -0
- package/dist/execution/testing/wake-exec-cases.js +147 -0
- package/dist/execution/testing/wake-registry.d.ts +3 -0
- package/dist/execution/testing/wake-registry.js +26 -0
- package/dist/execution/tool-host.d.ts +10 -2
- package/dist/execution/tool-outcome-events.d.ts +11 -0
- package/dist/execution/tool-outcome-events.js +47 -0
- package/dist/execution/wake-inbox.d.ts +25 -0
- package/dist/execution/wake-inbox.js +85 -0
- package/dist/execution/wake-outbox.d.ts +30 -0
- package/dist/execution/wake-outbox.js +87 -0
- package/dist/execution/wake-types.d.ts +45 -0
- package/dist/execution/wake-types.js +3 -0
- package/dist/index.d.ts +13 -2
- package/dist/index.js +11 -1
- package/dist/node.d.ts +1 -0
- package/dist/node.js +1 -0
- package/dist/transport/testing/multi-cases.js +8 -8
- package/package.json +3 -3
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { WAKE_RETENTION_MS } from "./wake-types.js";
|
|
2
|
+
const KIND = "execution.wake-outbox";
|
|
3
|
+
const EMPTY = { pending: [], refused: {}, closed: {} };
|
|
4
|
+
export const isStoreObject = (value) => value !== null && typeof value === "object" && !Array.isArray(value);
|
|
5
|
+
function decode(value) {
|
|
6
|
+
if (value === undefined)
|
|
7
|
+
return EMPTY;
|
|
8
|
+
if (isStoreObject(value) &&
|
|
9
|
+
Array.isArray(value.pending) &&
|
|
10
|
+
isStoreObject(value.refused) &&
|
|
11
|
+
isStoreObject(value.closed))
|
|
12
|
+
return value;
|
|
13
|
+
throw new Error("corrupt wake outbox record");
|
|
14
|
+
}
|
|
15
|
+
export function createWakeOutbox(options) {
|
|
16
|
+
const { hand, store, epoch, admission, clock } = options;
|
|
17
|
+
const key = `${KIND}:${JSON.stringify([hand])}`;
|
|
18
|
+
const read = async () => decode(await store.getDocument(key));
|
|
19
|
+
const write = async (record, step, eventId, extra = []) => {
|
|
20
|
+
const data = { step, eventId };
|
|
21
|
+
await store.commit(epoch, [
|
|
22
|
+
{ op: "append", id: store.mintId(), kind: KIND, data },
|
|
23
|
+
...extra.map((data) => ({
|
|
24
|
+
op: "append",
|
|
25
|
+
id: store.mintId(),
|
|
26
|
+
kind: "execution.wake-expired",
|
|
27
|
+
data,
|
|
28
|
+
})),
|
|
29
|
+
{ op: "put", key, data: record },
|
|
30
|
+
], () => { });
|
|
31
|
+
};
|
|
32
|
+
const update = (decide) => admission.admit(async () => decide(await read()));
|
|
33
|
+
const receipt = (answer) => update(async (record) => {
|
|
34
|
+
if (!record.pending.some((wake) => wake.eventId === answer.eventId))
|
|
35
|
+
return;
|
|
36
|
+
if (answer.kind === "refused") {
|
|
37
|
+
// The scope may not be bound yet (a brain restart, a bind racing this outbox): only a refusal that cannot change
|
|
38
|
+
// is recorded and stops the re-offers.
|
|
39
|
+
if (answer.reason === "unknown_scope" || record.refused[answer.eventId] === answer.reason)
|
|
40
|
+
return;
|
|
41
|
+
await write({ ...record, refused: { ...record.refused, [answer.eventId]: answer.reason } }, "refused", answer.eventId);
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
const pending = record.pending.filter((wake) => wake.eventId !== answer.eventId);
|
|
45
|
+
const { [answer.eventId]: _settled, ...refused } = record.refused;
|
|
46
|
+
await write({ ...record, pending, refused }, "ack", answer.eventId);
|
|
47
|
+
});
|
|
48
|
+
return {
|
|
49
|
+
offer: (wake) => update(async (record) => {
|
|
50
|
+
const event = { ...wake, eventId: `${hand}:${store.mintId()}` };
|
|
51
|
+
await write({ ...record, pending: [...record.pending, event] }, "offer", event.eventId);
|
|
52
|
+
return event;
|
|
53
|
+
}),
|
|
54
|
+
reoffer: async (send) => {
|
|
55
|
+
let sent = 0;
|
|
56
|
+
const record = await read();
|
|
57
|
+
for (const wake of record.pending) {
|
|
58
|
+
if (record.refused[wake.eventId] !== undefined)
|
|
59
|
+
continue;
|
|
60
|
+
await receipt(await send(wake));
|
|
61
|
+
sent += 1;
|
|
62
|
+
}
|
|
63
|
+
return sent;
|
|
64
|
+
},
|
|
65
|
+
receipt,
|
|
66
|
+
closeScope: (scope) => update(async (record) => {
|
|
67
|
+
if (record.closed[scope] !== undefined)
|
|
68
|
+
return;
|
|
69
|
+
await write({ ...record, closed: { ...record.closed, [scope]: clock() } }, "close", null);
|
|
70
|
+
}),
|
|
71
|
+
sweep: () => update(async (record) => {
|
|
72
|
+
const now = clock();
|
|
73
|
+
const expired = record.pending.filter((wake) => {
|
|
74
|
+
const closedAt = record.closed[wake.scope];
|
|
75
|
+
return closedAt !== undefined && now > closedAt + WAKE_RETENTION_MS;
|
|
76
|
+
});
|
|
77
|
+
if (expired.length === 0)
|
|
78
|
+
return [];
|
|
79
|
+
const gone = new Set(expired.map((wake) => wake.eventId));
|
|
80
|
+
const refused = Object.fromEntries(Object.entries(record.refused).filter(([eventId]) => !gone.has(eventId)));
|
|
81
|
+
await write({ ...record, pending: record.pending.filter((wake) => !gone.has(wake.eventId)), refused }, "sweep", null, expired.map((wake) => ({ reason: "wake_expired", eventId: wake.eventId, scope: wake.scope })));
|
|
82
|
+
return [...gone];
|
|
83
|
+
}),
|
|
84
|
+
pending: async () => (await read()).pending,
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=wake-outbox.js.map
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { StoreValue } from "../durable/store.ts";
|
|
2
|
+
/** Design 5.6.4: an un-acked wake lives until its scope closes plus this long, then it is dropped as `wake_expired`. */
|
|
3
|
+
export declare const WAKE_RETENTION_MS: number;
|
|
4
|
+
/** One durable wake from a hand to the brain that owns its scope. `eventId` is unique per hand and stable on re-offer. */
|
|
5
|
+
export type WakeEvent = {
|
|
6
|
+
readonly eventId: string;
|
|
7
|
+
readonly scope: string;
|
|
8
|
+
readonly source: string;
|
|
9
|
+
readonly payload: StoreValue;
|
|
10
|
+
};
|
|
11
|
+
export type WakeRefusal = "not_scope_hand" | "unknown_scope" | "scope_closed";
|
|
12
|
+
/** What the brain answers a wake: `ack` only after the inbox commit; a refusal commits nothing and is never acked. */
|
|
13
|
+
export type WakeReceipt = {
|
|
14
|
+
readonly kind: "ack";
|
|
15
|
+
readonly eventId: string;
|
|
16
|
+
readonly duplicate: boolean;
|
|
17
|
+
} | {
|
|
18
|
+
readonly kind: "refused";
|
|
19
|
+
readonly eventId: string;
|
|
20
|
+
readonly reason: WakeRefusal;
|
|
21
|
+
};
|
|
22
|
+
export type WakeOutboxRecord = {
|
|
23
|
+
readonly pending: readonly WakeEvent[];
|
|
24
|
+
/** Pending wakes the brain refused for good, by event id: kept for retention, never re-offered. */
|
|
25
|
+
readonly refused: {
|
|
26
|
+
readonly [eventId: string]: WakeRefusal;
|
|
27
|
+
};
|
|
28
|
+
/** Scopes the hand closed, with the close time that starts their retention. */
|
|
29
|
+
readonly closed: {
|
|
30
|
+
readonly [scope: string]: number;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export type WakeInboxRecord = {
|
|
34
|
+
/** Every committed event id per scope: a re-offer is a duplicate, never a second wake. */
|
|
35
|
+
readonly seen: {
|
|
36
|
+
readonly [scope: string]: readonly string[];
|
|
37
|
+
};
|
|
38
|
+
/** Committed and not yet taken by the brain's loop, in commit order. */
|
|
39
|
+
readonly pending: readonly WakeEvent[];
|
|
40
|
+
/** Scopes the brain closed, with the close time; kept after their seen ids are dropped, so a late wake is refused. */
|
|
41
|
+
readonly closed: {
|
|
42
|
+
readonly [scope: string]: number;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=wake-types.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -7,8 +7,19 @@ export { createInternalAgentChannel, type InternalAgentChannel, type OrderedAgen
|
|
|
7
7
|
export { EMPTY_TOOL_USE_DEMOTION_DIAGNOSTIC, ProviderRetryWatchdogAbortError } from "./assistant-terminal-state.ts";
|
|
8
8
|
export { createRemoteExecutor, type HandCall, type HandScope, type OpenHandScope, type RemoteExecutor, type RemoteExecutorOptions, } from "./execution/remote-executor.ts";
|
|
9
9
|
export { createHandLedger, type HandAdmission, type HandLedger, type HandLedgerOptions, } from "./execution/remote-hand-ledger.ts";
|
|
10
|
-
export { decodeRemoteMessage, encodeRemoteMessage, HAND_CONTROL_LANE, type RemoteAbort, type RemoteAck, type RemoteHandMessage, type RemoteHello, type RemoteInvoke, type RemoteRefused, type RemoteSettled, RemoteProtocolError, type RemoteTerminal, type RemoteTerminalReason, type RemoteToolResult, } from "./execution/remote-protocol.ts";
|
|
10
|
+
export { decodeRemoteMessage, encodeRemoteMessage, HAND_CONTROL_LANE, type RemoteAbort, type RemoteAck, type RemoteHandMessage, type RemoteFile, type RemoteHello, type RemoteInvoke, type RemoteRefused, type RemoteSettled, RemoteProtocolError, type RemoteTerminal, type RemoteTerminalReason, type RemoteToolResult, } from "./execution/remote-protocol.ts";
|
|
11
|
+
export { createErrorToolResult, createToolResultMessage, emitToolExecutionEnd, emitToolExecutionUpdate, emitToolResultMessage, shouldTerminateToolBatch, } from "./execution/tool-outcome-events.ts";
|
|
12
|
+
export { createAdmissionLine } from "./durable/store-admission.ts";
|
|
13
|
+
export { createMemoryStoreMedium, openMemoryStore } from "./durable/store-memory.ts";
|
|
14
|
+
export { createBatchCoordinator } from "./execution/coordinator.ts";
|
|
15
|
+
export type { BatchExecutor, BatchPlan } from "./execution/coordinator-types.ts";
|
|
16
|
+
export { createExecutionLedger } from "./execution/ledger.ts";
|
|
11
17
|
export { authorize, createGrantVerifier, DEFAULT_WORKSPACE, type GrantRefusal, type GrantRow, type GrantSnapshot, type GrantVerdict, type GrantVerifier, type GrantVerifierOptions, HAND_CAPABILITY, type HandAuthority, type WorkspaceRoot, } from "./execution/grant-verify.ts";
|
|
18
|
+
export { base64Length, DEVICE_FILE_OPS, type DeviceFileArgs, DeviceFileError, type DeviceFileErrorCode, type DeviceFileOp, type DeviceFileOptions, type DeviceFileOutcome, type DeviceFiles, type DeviceFileStat, decodeBase64, decodeDeviceFileArgs, encodeBase64, FILE_CHANNEL, FILE_CHANNEL_MAX_BYTES, fileOutcomeOf, } from "./execution/device-files.ts";
|
|
19
|
+
export { HELLO_WAIT_MS } from "./execution/remote-device-files.ts";
|
|
20
|
+
export { fileRefusal, fileResult } from "./execution/remote-file-call.ts";
|
|
21
|
+
export { createModelPlaneClient, decodeModelPlaneRequest, MODEL_PLANE, type ModelPlaneRequest, serveModelPlane, } from "./execution/plane-model.ts";
|
|
22
|
+
export { decodePlaneMessage, encodePlaneMessage, type NestedRequest, type PlaneHandler, type PlaneMessage, PlaneRefusedError, } from "./execution/plane.ts";
|
|
12
23
|
export { createRemoteToolHost, type HandPlacement, type RemoteToolHostOptions } from "./execution/remote-tool-host.ts";
|
|
13
24
|
export { type CarrierLink, createInProcessNetwork, type InProcessNetwork } from "./transport/in-process-carrier.ts";
|
|
14
25
|
export { type LocalEndpoint, localEndpoint } from "./transport/local-endpoint.ts";
|
|
@@ -40,6 +51,6 @@ export * from "./response-timing.ts";
|
|
|
40
51
|
export * from "./search/index.ts";
|
|
41
52
|
export { setDefaultStreamFn } from "./stream-fn.ts";
|
|
42
53
|
export { prepareToolArguments } from "./tool-arguments.ts";
|
|
43
|
-
export { resolveToolNameAlias } from "./tool-name-alias.ts";
|
|
54
|
+
export { resolveToolNameAlias, withToolNameCorrection } from "./tool-name-alias.ts";
|
|
44
55
|
export * from "./types.ts";
|
|
45
56
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,17 @@ export { EMPTY_TOOL_USE_DEMOTION_DIAGNOSTIC, ProviderRetryWatchdogAbortError } f
|
|
|
7
7
|
export { createRemoteExecutor, } from "./execution/remote-executor.js";
|
|
8
8
|
export { createHandLedger, } from "./execution/remote-hand-ledger.js";
|
|
9
9
|
export { decodeRemoteMessage, encodeRemoteMessage, HAND_CONTROL_LANE, RemoteProtocolError, } from "./execution/remote-protocol.js";
|
|
10
|
+
export { createErrorToolResult, createToolResultMessage, emitToolExecutionEnd, emitToolExecutionUpdate, emitToolResultMessage, shouldTerminateToolBatch, } from "./execution/tool-outcome-events.js";
|
|
11
|
+
export { createAdmissionLine } from "./durable/store-admission.js";
|
|
12
|
+
export { createMemoryStoreMedium, openMemoryStore } from "./durable/store-memory.js";
|
|
13
|
+
export { createBatchCoordinator } from "./execution/coordinator.js";
|
|
14
|
+
export { createExecutionLedger } from "./execution/ledger.js";
|
|
10
15
|
export { authorize, createGrantVerifier, DEFAULT_WORKSPACE, HAND_CAPABILITY, } from "./execution/grant-verify.js";
|
|
16
|
+
export { base64Length, DEVICE_FILE_OPS, DeviceFileError, decodeBase64, decodeDeviceFileArgs, encodeBase64, FILE_CHANNEL, FILE_CHANNEL_MAX_BYTES, fileOutcomeOf, } from "./execution/device-files.js";
|
|
17
|
+
export { HELLO_WAIT_MS } from "./execution/remote-device-files.js";
|
|
18
|
+
export { fileRefusal, fileResult } from "./execution/remote-file-call.js";
|
|
19
|
+
export { createModelPlaneClient, decodeModelPlaneRequest, MODEL_PLANE, serveModelPlane, } from "./execution/plane-model.js";
|
|
20
|
+
export { decodePlaneMessage, encodePlaneMessage, PlaneRefusedError, } from "./execution/plane.js";
|
|
11
21
|
export { createRemoteToolHost } from "./execution/remote-tool-host.js";
|
|
12
22
|
export { createInProcessNetwork } from "./transport/in-process-carrier.js";
|
|
13
23
|
export { localEndpoint } from "./transport/local-endpoint.js";
|
|
@@ -37,6 +47,6 @@ export * from "./response-timing.js";
|
|
|
37
47
|
export * from "./search/index.js";
|
|
38
48
|
export { setDefaultStreamFn } from "./stream-fn.js";
|
|
39
49
|
export { prepareToolArguments } from "./tool-arguments.js";
|
|
40
|
-
export { resolveToolNameAlias } from "./tool-name-alias.js";
|
|
50
|
+
export { resolveToolNameAlias, withToolNameCorrection } from "./tool-name-alias.js";
|
|
41
51
|
export * from "./types.js";
|
|
42
52
|
//# sourceMappingURL=index.js.map
|
package/dist/node.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { NodeExecutionEnv } from "./harness/env/nodejs.ts";
|
|
2
2
|
export { listWindowsProcessRowsSync, parseWindowsProcessTreeRows, type WindowsProcessRow, type WindowsTreeKillPlan, windowsTreeKillArgs, windowsTreeKillPlan, } from "./harness/env/windows-process-tree.ts";
|
|
3
|
+
export { localDeviceFiles } from "./execution/device-files-node.ts";
|
|
3
4
|
export * from "./index.ts";
|
|
4
5
|
//# sourceMappingURL=node.d.ts.map
|
package/dist/node.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { NodeExecutionEnv } from "./harness/env/nodejs.js";
|
|
2
2
|
export { listWindowsProcessRowsSync, parseWindowsProcessTreeRows, windowsTreeKillArgs, windowsTreeKillPlan, } from "./harness/env/windows-process-tree.js";
|
|
3
|
+
export { localDeviceFiles } from "./execution/device-files-node.js";
|
|
3
4
|
export * from "./index.js";
|
|
4
5
|
//# sourceMappingURL=node.js.map
|
|
@@ -90,24 +90,24 @@ const lossOnOneLaneIsNotHeldByAnother = async (adapters) => {
|
|
|
90
90
|
const link = openLink(adapters, () => loseOnce(decode, "B", 1, stats));
|
|
91
91
|
link.pace("A", LONG_LANE_PACE_MS);
|
|
92
92
|
const aSends = range(1, LONG_LANE_FRAMES).map((n) => link.send("A", n));
|
|
93
|
-
await link.runUntil(() => link.delivered("A").length >= 10, "MULTI-FAIR-
|
|
93
|
+
await link.runUntil(() => link.delivered("A").length >= 10, "MULTI-FAIR-03 A's long lane under way");
|
|
94
94
|
const before = link.delivered("A").length;
|
|
95
95
|
const bSend = link.send("B", 1);
|
|
96
|
-
await link.runUntil(allDelivered(link, { B: 1 }), "MULTI-FAIR-
|
|
96
|
+
await link.runUntil(allDelivered(link, { B: 1 }), "MULTI-FAIR-03 B delivered after its loss", 600_000);
|
|
97
97
|
if (stats.lost !== 1)
|
|
98
|
-
throw new Error(`MULTI-FAIR-
|
|
98
|
+
throw new Error(`MULTI-FAIR-03: B#1 was not lost on the carrier (${JSON.stringify(stats)})`);
|
|
99
99
|
const aheadOfB = link.delivered("A").length - before;
|
|
100
100
|
if (aheadOfB >= LONG_LANE_FRAMES / 2) {
|
|
101
|
-
throw new Error(`MULTI-FAIR-
|
|
101
|
+
throw new Error(`MULTI-FAIR-03: B's lost frame was resent only after ${aheadOfB} of A's frames (fewer than ${LONG_LANE_FRAMES / 2})`);
|
|
102
102
|
}
|
|
103
|
-
await link.runUntil(allDelivered(link, { A: LONG_LANE_FRAMES }), "MULTI-FAIR-
|
|
104
|
-
await link.awaitAll([...aSends, bSend], "MULTI-FAIR-
|
|
103
|
+
await link.runUntil(allDelivered(link, { A: LONG_LANE_FRAMES }), "MULTI-FAIR-03 A delivered", 600_000);
|
|
104
|
+
await link.awaitAll([...aSends, bSend], "MULTI-FAIR-03");
|
|
105
105
|
await link.advance(2000);
|
|
106
|
-
expectExactDelivery(link, { A: LONG_LANE_FRAMES, B: 1 }, "MULTI-FAIR-
|
|
106
|
+
expectExactDelivery(link, { A: LONG_LANE_FRAMES, B: 1 }, "MULTI-FAIR-03");
|
|
107
107
|
};
|
|
108
108
|
export const MULTI_CASES = new Map([
|
|
109
109
|
["MULTI-LANE-01", manyLanes],
|
|
110
110
|
["MULTI-FAIR-01", fairness],
|
|
111
|
-
["MULTI-FAIR-
|
|
111
|
+
["MULTI-FAIR-03", lossOnOneLaneIsNotHeldByAnother],
|
|
112
112
|
]);
|
|
113
113
|
//# sourceMappingURL=multi-cases.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code-yeongyu/senpi-agent-core",
|
|
3
|
-
"version": "2026.11.
|
|
3
|
+
"version": "2026.11.4-2",
|
|
4
4
|
"description": "General-purpose agent with transport abstraction, state management, and attachment support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@earendil-works/chord": "0.99.1",
|
|
75
|
-
"@earendil-works/pi-ai": "npm:@code-yeongyu/senpi-ai@2026.11.
|
|
76
|
-
"@earendil-works/pi-telemetry": "npm:@code-yeongyu/senpi-telemetry@2026.11.
|
|
75
|
+
"@earendil-works/pi-ai": "npm:@code-yeongyu/senpi-ai@2026.11.4-2",
|
|
76
|
+
"@earendil-works/pi-telemetry": "npm:@code-yeongyu/senpi-telemetry@2026.11.4-2",
|
|
77
77
|
"diff": "9.0.0",
|
|
78
78
|
"ignore": "7.0.9",
|
|
79
79
|
"typebox": "1.3.34",
|