negotium 0.7.1 → 0.9.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/README.md +3 -4
- package/dist/agent-helpers.js +17 -8
- package/dist/agent-helpers.js.map +10 -9
- package/dist/background-bash.js.map +2 -2
- package/dist/browser-runtime.js.map +2 -2
- package/dist/{chunk-4y98yvq8.js → chunk-ae0ya01v.js} +2 -2
- package/dist/{chunk-4y98yvq8.js.map → chunk-ae0ya01v.js.map} +2 -2
- package/dist/chunk-pp6dvrzq.js.map +2 -2
- package/dist/hosted-agent.js +2 -2
- package/dist/hosted-agent.js.map +4 -4
- package/dist/main.js +946 -227
- package/dist/main.js.map +25 -24
- package/dist/mcp-factories.js +17 -8
- package/dist/mcp-factories.js.map +10 -9
- package/dist/media.js.map +2 -2
- package/dist/prompts.js.map +2 -2
- package/dist/query-runtime.js +7 -2
- package/dist/query-runtime.js.map +7 -6
- package/dist/registry.js +1 -1
- package/dist/runtime/src/application/submit-runtime-gateway-turn.ts +10 -6
- package/dist/runtime/src/identifiers.ts +49 -0
- package/dist/runtime/src/index.ts +22 -0
- package/dist/runtime/src/node-host.ts +7 -0
- package/dist/runtime/src/query/index.ts +0 -1
- package/dist/runtime/src/query/public-runtime.ts +1 -5
- package/dist/runtime/src/query/room-query-registry.ts +4 -2
- package/dist/runtime/src/query/types.ts +0 -76
- package/dist/runtime/src/runtime/turn-runner.ts +4 -2
- package/dist/runtime/src/runtime-gateway.ts +19 -0
- package/dist/runtime/src/storage/api-topics.ts +32 -12
- package/dist/runtime/src/storage/storage-public.ts +4 -39
- package/dist/runtime/src/topics/personal-general.ts +3 -3
- package/dist/runtime/src/types.ts +0 -11
- package/dist/runtime/src/version.ts +1 -1
- package/dist/runtime-gateway.js +6 -2
- package/dist/runtime-gateway.js.map +3 -3
- package/dist/runtime-helpers.js.map +2 -2
- package/dist/storage.js +11 -35
- package/dist/storage.js.map +4 -4
- package/dist/types/packages/core/src/identifiers.d.ts +27 -0
- package/dist/types/packages/core/src/query/public-runtime.d.ts +1 -1
- package/dist/types/packages/core/src/query/room-query-registry.d.ts +2 -1
- package/dist/types/packages/core/src/query/types.d.ts +0 -59
- package/dist/types/packages/core/src/runtime-gateway.d.ts +5 -0
- package/dist/types/packages/core/src/storage/api-topics.d.ts +10 -4
- package/dist/types/packages/core/src/storage/storage-public.d.ts +2 -3
- package/dist/types/packages/core/src/types.d.ts +0 -10
- package/dist/types/packages/core/src/version.d.ts +1 -1
- package/dist/vault.js.map +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -319,7 +319,6 @@ SQLite shim surface (`query`/`prepare`/`exec`/`run`/`transaction`) through
|
|
|
319
319
|
typed facade returned as `db`.
|
|
320
320
|
|
|
321
321
|
The facade exposes both direct functions and collision-safe module namespaces such as
|
|
322
|
-
`apiTopics.getTopicByName` and `forum.getTopicByName
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
stable SHA-256 components.
|
|
322
|
+
`apiTopics.getTopicByName` and the deprecated `forum.getTopicByName` namespace. Pending session
|
|
323
|
+
asks use bounded `v3-<sha256>` filenames and migrate live v2 and legacy records on access. Unsafe
|
|
324
|
+
or oversized user IDs and token-stat IDs are stored under stable SHA-256 components.
|
package/dist/agent-helpers.js
CHANGED
|
@@ -3001,7 +3001,7 @@ var init_codex = __esm(async () => {
|
|
|
3001
3001
|
});
|
|
3002
3002
|
|
|
3003
3003
|
// ../../packages/core/src/version.ts
|
|
3004
|
-
var NEGOTIUM_VERSION = "0.
|
|
3004
|
+
var NEGOTIUM_VERSION = "0.9.0";
|
|
3005
3005
|
|
|
3006
3006
|
// ../../packages/core/src/agents/codex-native-multi-agent.ts
|
|
3007
3007
|
import { spawn as spawn2 } from "child_process";
|
|
@@ -7995,11 +7995,9 @@ function normalizedTitle(title) {
|
|
|
7995
7995
|
return title.trim().toLowerCase();
|
|
7996
7996
|
}
|
|
7997
7997
|
function surfaceScopeForWrite(t) {
|
|
7998
|
-
if (normalizeTopicSurface(t.surface ?? defaultTopicSurface()) !== "otium")
|
|
7999
|
-
return null;
|
|
8000
7998
|
if (t.surfaceScope !== undefined)
|
|
8001
7999
|
return normalizeSurfaceScope(t.surfaceScope);
|
|
8002
|
-
return defaultSurfaceScope();
|
|
8000
|
+
return normalizeTopicSurface(t.surface ?? defaultTopicSurface()) === "otium" ? defaultSurfaceScope() : null;
|
|
8003
8001
|
}
|
|
8004
8002
|
function upsertTopic(t) {
|
|
8005
8003
|
const normalized = normalizeTopicState({
|
|
@@ -9142,9 +9140,17 @@ var init_runtime_leases = __esm(async () => {
|
|
|
9142
9140
|
}, 33);
|
|
9143
9141
|
});
|
|
9144
9142
|
|
|
9143
|
+
// ../../packages/core/src/identifiers.ts
|
|
9144
|
+
function asTurnId(value) {
|
|
9145
|
+
return value;
|
|
9146
|
+
}
|
|
9147
|
+
function asTurnSlotKey(value) {
|
|
9148
|
+
return value;
|
|
9149
|
+
}
|
|
9150
|
+
|
|
9145
9151
|
// ../../packages/core/src/query/room-query-registry.ts
|
|
9146
9152
|
function isolatedTurnRoomId(topicId, queryId) {
|
|
9147
|
-
return `${topicId}${ISOLATED_TURN_ROOM_MARKER}${queryId}
|
|
9153
|
+
return asTurnSlotKey(`${topicId}${ISOLATED_TURN_ROOM_MARKER}${queryId}`);
|
|
9148
9154
|
}
|
|
9149
9155
|
function isIsolatedTurnRoomId(roomId) {
|
|
9150
9156
|
return roomId.includes(ISOLATED_TURN_ROOM_MARKER);
|
|
@@ -9273,6 +9279,7 @@ function createRoomQueryRegistry(host) {
|
|
|
9273
9279
|
};
|
|
9274
9280
|
}
|
|
9275
9281
|
var ISOLATED_TURN_ROOM_MARKER = "::isolated-turn::";
|
|
9282
|
+
var init_room_query_registry = () => {};
|
|
9276
9283
|
|
|
9277
9284
|
// ../../packages/core/src/query/types.ts
|
|
9278
9285
|
var init_types2 = () => {};
|
|
@@ -9490,7 +9497,9 @@ var roomQueryRegistry, interSessionQueue;
|
|
|
9490
9497
|
var init_active_rooms = __esm(async () => {
|
|
9491
9498
|
init_logger();
|
|
9492
9499
|
await init_runtime_leases();
|
|
9500
|
+
init_room_query_registry();
|
|
9493
9501
|
init_types2();
|
|
9502
|
+
init_room_query_registry();
|
|
9494
9503
|
roomQueryRegistry = createRoomQueryRegistry({
|
|
9495
9504
|
instanceId: RUNTIME_INSTANCE_ID,
|
|
9496
9505
|
internalAbortReason: "internal" /* Internal */,
|
|
@@ -17435,8 +17444,8 @@ function startAiTurn(params) {
|
|
|
17435
17444
|
const askReplySources = params.askReplySources;
|
|
17436
17445
|
const sessionRetried = params._sessionRetried === true;
|
|
17437
17446
|
const emptyResponseRetried = params._emptyResponseRetried === true;
|
|
17438
|
-
const queryId = params._queryId ?? randomUUID16();
|
|
17439
|
-
const roomId = turnConcurrency === "isolated" ? isolatedTurnRoomId(topicId, queryId) : topicId;
|
|
17447
|
+
const queryId = asTurnId(params._queryId ?? randomUUID16());
|
|
17448
|
+
const roomId = turnConcurrency === "isolated" ? isolatedTurnRoomId(topicId, queryId) : asTurnSlotKey(topicId);
|
|
17440
17449
|
const currentRuntimeEpoch = getRuntimeTopicEpoch(topic.id);
|
|
17441
17450
|
const runtimeEpoch = params._runtimeEpoch ?? currentRuntimeEpoch;
|
|
17442
17451
|
if (params._runtimeEpoch !== undefined && params._runtimeEpoch !== currentRuntimeEpoch) {
|
|
@@ -20168,4 +20177,4 @@ export {
|
|
|
20168
20177
|
DEFAULT_SELF_CONFIG_PRODUCT
|
|
20169
20178
|
};
|
|
20170
20179
|
|
|
20171
|
-
//# debugId=
|
|
20180
|
+
//# debugId=ABDF0DC92B0305E864756E2164756E21
|