negotium 0.2.20 → 0.2.21
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-helpers.js +233 -307
- package/dist/agent-helpers.js.map +3 -3
- package/dist/background-bash.js.map +1 -1
- package/dist/browser-runtime.js +17 -1
- package/dist/browser-runtime.js.map +2 -2
- package/dist/canonical-mcp-bridge.js +1 -1
- package/dist/{chunk-g2kqfdwm.js → chunk-rhp26p2c.js} +18 -3
- package/dist/{chunk-g2kqfdwm.js.map → chunk-rhp26p2c.js.map} +2 -2
- package/dist/{chunk-r0xs3t81.js → chunk-s2gez3wg.js} +18 -3
- package/dist/{chunk-r0xs3t81.js.map → chunk-s2gez3wg.js.map} +2 -2
- package/dist/hosted-agent.js +4 -3
- package/dist/hosted-agent.js.map +3 -3
- package/dist/main.js +570 -721
- package/dist/main.js.map +5 -5
- package/dist/mcp-catalog.js.map +1 -1
- package/dist/mcp-factories.js +219 -287
- package/dist/mcp-factories.js.map +3 -3
- package/dist/outbox.js.map +1 -1
- package/dist/platform-runtime.js.map +1 -1
- package/dist/prompts.js.map +1 -1
- package/dist/query-runtime.js +17 -1
- package/dist/query-runtime.js.map +2 -2
- package/dist/registry.js +4 -3
- package/dist/registry.js.map +3 -3
- package/dist/rollout.js +1 -1
- package/dist/runtime/src/version.ts +1 -1
- package/dist/runtime-helpers.js +17 -1
- package/dist/runtime-helpers.js.map +2 -2
- package/dist/sqlite.js +17 -1
- package/dist/sqlite.js.map +2 -2
- package/dist/storage.js +17 -6
- package/dist/storage.js.map +2 -2
- package/dist/types/packages/core/src/version.d.ts +1 -1
- package/dist/vault.js +17 -1
- package/dist/vault.js.map +2 -2
- package/package.json +1 -1
package/dist/mcp-factories.js
CHANGED
|
@@ -1,20 +1,30 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
2
4
|
var __defProp = Object.defineProperty;
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __toESM = (mod, isNodeMode, target) => {
|
|
8
|
+
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
9
|
+
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
10
|
+
for (let key of __getOwnPropNames(mod))
|
|
11
|
+
if (!__hasOwnProp.call(to, key))
|
|
12
|
+
__defProp(to, key, {
|
|
13
|
+
get: () => mod[key],
|
|
14
|
+
enumerable: true
|
|
15
|
+
});
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
7
18
|
var __export = (target, all) => {
|
|
8
19
|
for (var name in all)
|
|
9
20
|
__defProp(target, name, {
|
|
10
21
|
get: all[name],
|
|
11
22
|
enumerable: true,
|
|
12
23
|
configurable: true,
|
|
13
|
-
set:
|
|
24
|
+
set: (newValue) => all[name] = () => newValue
|
|
14
25
|
});
|
|
15
26
|
};
|
|
16
27
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
17
|
-
var __promiseAll = (args) => Promise.all(args);
|
|
18
28
|
var __require = import.meta.require;
|
|
19
29
|
|
|
20
30
|
// ../../packages/core/src/types.ts
|
|
@@ -1005,7 +1015,7 @@ var init_claude_registry = __esm(() => {
|
|
|
1005
1015
|
});
|
|
1006
1016
|
|
|
1007
1017
|
// ../../packages/core/src/version.ts
|
|
1008
|
-
var NEGOTIUM_VERSION = "0.2.
|
|
1018
|
+
var NEGOTIUM_VERSION = "0.2.21";
|
|
1009
1019
|
|
|
1010
1020
|
// ../../packages/core/src/agents/codex-native-multi-agent.ts
|
|
1011
1021
|
import { spawn as spawn2 } from "child_process";
|
|
@@ -2590,11 +2600,9 @@ function redactVaultSecrets(userId, text) {
|
|
|
2590
2600
|
var vaultDb, vaultMasterKey, VAULT_VALUE_MAX_BYTES;
|
|
2591
2601
|
var init_vault = __esm(async () => {
|
|
2592
2602
|
init_config();
|
|
2603
|
+
await init_sqlite();
|
|
2604
|
+
await init_storage_host();
|
|
2593
2605
|
init_vault_crypto();
|
|
2594
|
-
await __promiseAll([
|
|
2595
|
-
init_sqlite(),
|
|
2596
|
-
init_storage_host()
|
|
2597
|
-
]);
|
|
2598
2606
|
vaultMasterKey = VAULT_MASTER_KEY;
|
|
2599
2607
|
VAULT_VALUE_MAX_BYTES = 64 * 1024;
|
|
2600
2608
|
});
|
|
@@ -3185,10 +3193,10 @@ function formatDateBucket(d) {
|
|
|
3185
3193
|
}
|
|
3186
3194
|
var _shellCache = null, MAX_DAY_SPAN = 30, DAY_MS = 86400000, LOCAL_DATE_SKEW_DAYS = 1;
|
|
3187
3195
|
var init_codex = __esm(async () => {
|
|
3196
|
+
await init_execution_host();
|
|
3188
3197
|
init_shared();
|
|
3189
3198
|
init_jsonl();
|
|
3190
3199
|
init_logger();
|
|
3191
|
-
await init_execution_host();
|
|
3192
3200
|
});
|
|
3193
3201
|
|
|
3194
3202
|
// ../../packages/core/src/agents/codex-app-server.ts
|
|
@@ -3292,10 +3300,8 @@ async function forkCodexSession(parentThreadId) {
|
|
|
3292
3300
|
var forkCodexThread;
|
|
3293
3301
|
var init_codex_app_server = __esm(async () => {
|
|
3294
3302
|
init_codex_native_multi_agent();
|
|
3295
|
-
await
|
|
3296
|
-
|
|
3297
|
-
init_codex()
|
|
3298
|
-
]);
|
|
3303
|
+
await init_execution_host();
|
|
3304
|
+
await init_codex();
|
|
3299
3305
|
forkCodexThread = createCodexAppServerForker({
|
|
3300
3306
|
spawnServer() {
|
|
3301
3307
|
return spawn4(process.execPath, [codexCliScriptPath(), "app-server", "--stdio"], {
|
|
@@ -3313,13 +3319,11 @@ import { existsSync as existsSync8, unlinkSync as unlinkSync8 } from "fs";
|
|
|
3313
3319
|
import { join as join9 } from "path";
|
|
3314
3320
|
var VALID_EFFORTS2, codexRegistry, codexRegistryOperations;
|
|
3315
3321
|
var init_codex_registry = __esm(async () => {
|
|
3322
|
+
await init_codex_app_server();
|
|
3323
|
+
await init_execution_host();
|
|
3324
|
+
await init_codex();
|
|
3316
3325
|
init_logger();
|
|
3317
3326
|
init_types();
|
|
3318
|
-
await __promiseAll([
|
|
3319
|
-
init_codex_app_server(),
|
|
3320
|
-
init_execution_host(),
|
|
3321
|
-
init_codex()
|
|
3322
|
-
]);
|
|
3323
3327
|
VALID_EFFORTS2 = new Set(CODEX_EFFORT_VALUES);
|
|
3324
3328
|
codexRegistry = {
|
|
3325
3329
|
kind: "codex",
|
|
@@ -3601,10 +3605,8 @@ function listRuntimeEventsAfter(seq, limit = 500) {
|
|
|
3601
3605
|
}
|
|
3602
3606
|
var RUNTIME_EVENT_TYPES, types;
|
|
3603
3607
|
var init_runtime_events = __esm(async () => {
|
|
3604
|
-
await
|
|
3605
|
-
|
|
3606
|
-
init_storage_host()
|
|
3607
|
-
]);
|
|
3608
|
+
await init_forum_db();
|
|
3609
|
+
await init_storage_host();
|
|
3608
3610
|
RUNTIME_EVENT_TYPES = [
|
|
3609
3611
|
"message",
|
|
3610
3612
|
"message-updated",
|
|
@@ -4039,10 +4041,8 @@ function getMessagesForTopicAfterRowid(topicId, afterRowid) {
|
|
|
4039
4041
|
}
|
|
4040
4042
|
var appendHooks;
|
|
4041
4043
|
var init_api_messages = __esm(async () => {
|
|
4042
|
-
await
|
|
4043
|
-
|
|
4044
|
-
init_storage_host()
|
|
4045
|
-
]);
|
|
4044
|
+
await init_forum_db();
|
|
4045
|
+
await init_storage_host();
|
|
4046
4046
|
registerStorageSchemaInitializer(initializeApiMessagesSchema, 30);
|
|
4047
4047
|
appendHooks = new Set;
|
|
4048
4048
|
});
|
|
@@ -4609,10 +4609,8 @@ var DEFAULT_AGENT_ROOM_AGENT = "maestro";
|
|
|
4609
4609
|
var init_api_topics = __esm(async () => {
|
|
4610
4610
|
init_constants();
|
|
4611
4611
|
init_logger();
|
|
4612
|
-
await
|
|
4613
|
-
|
|
4614
|
-
init_storage_host()
|
|
4615
|
-
]);
|
|
4612
|
+
await init_forum_db();
|
|
4613
|
+
await init_storage_host();
|
|
4616
4614
|
registerStorageSchemaInitializer(initializeApiTopicsSchema, 20);
|
|
4617
4615
|
});
|
|
4618
4616
|
|
|
@@ -4699,10 +4697,8 @@ function beginRuntimeTopicMaintenance(topicId, options = {}) {
|
|
|
4699
4697
|
}
|
|
4700
4698
|
var TOPIC_MAINTENANCE_STALE_MS = 30000, TOPIC_MAINTENANCE_HEARTBEAT_MS = 1000;
|
|
4701
4699
|
var init_runtime_topic_state = __esm(async () => {
|
|
4702
|
-
await
|
|
4703
|
-
|
|
4704
|
-
init_storage_host()
|
|
4705
|
-
]);
|
|
4700
|
+
await init_forum_db();
|
|
4701
|
+
await init_storage_host();
|
|
4706
4702
|
registerStorageSchemaInitializer((database) => {
|
|
4707
4703
|
database.exec(`
|
|
4708
4704
|
CREATE TABLE IF NOT EXISTS runtime_topic_state (
|
|
@@ -4799,11 +4795,9 @@ function releaseRuntimeTurnLease(topicId, queryId, ownerId = RUNTIME_INSTANCE_ID
|
|
|
4799
4795
|
}
|
|
4800
4796
|
var RUNTIME_INSTANCE_ID, TURN_LEASE_STALE_MS = 1e4;
|
|
4801
4797
|
var init_runtime_leases = __esm(async () => {
|
|
4802
|
-
await
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
init_storage_host()
|
|
4806
|
-
]);
|
|
4798
|
+
await init_forum_db();
|
|
4799
|
+
await init_runtime_topic_state();
|
|
4800
|
+
await init_storage_host();
|
|
4807
4801
|
RUNTIME_INSTANCE_ID = `${process.pid}-${randomUUID7()}`;
|
|
4808
4802
|
registerStorageSchemaInitializer((database) => {
|
|
4809
4803
|
database.exec(`
|
|
@@ -5100,12 +5094,10 @@ function getRuntimeUserTurnRequest(topicId) {
|
|
|
5100
5094
|
}
|
|
5101
5095
|
var REQUEST_CLAIM_STALE_MS;
|
|
5102
5096
|
var init_runtime_turn_requests = __esm(async () => {
|
|
5103
|
-
await
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
init_storage_host()
|
|
5108
|
-
]);
|
|
5097
|
+
await init_forum_db();
|
|
5098
|
+
await init_runtime_leases();
|
|
5099
|
+
await init_runtime_topic_state();
|
|
5100
|
+
await init_storage_host();
|
|
5109
5101
|
REQUEST_CLAIM_STALE_MS = TURN_LEASE_STALE_MS;
|
|
5110
5102
|
registerStorageSchemaInitializer((database) => ensureRuntimeUserTurnRequestsSchema(database));
|
|
5111
5103
|
});
|
|
@@ -5125,8 +5117,8 @@ function getRegistryOperations(agent) {
|
|
|
5125
5117
|
var REGISTRIES, OPERATIONS;
|
|
5126
5118
|
var init_registry = __esm(async () => {
|
|
5127
5119
|
init_claude_registry();
|
|
5128
|
-
init_maestro_registry();
|
|
5129
5120
|
await init_codex_registry();
|
|
5121
|
+
init_maestro_registry();
|
|
5130
5122
|
REGISTRIES = {
|
|
5131
5123
|
claude: claudeRegistry,
|
|
5132
5124
|
codex: codexRegistry,
|
|
@@ -5173,8 +5165,8 @@ function cleanupAgentFork(handle) {
|
|
|
5173
5165
|
}
|
|
5174
5166
|
var defaultForkHelpers;
|
|
5175
5167
|
var init_fork = __esm(async () => {
|
|
5176
|
-
init_logger();
|
|
5177
5168
|
await init_registry();
|
|
5169
|
+
init_logger();
|
|
5178
5170
|
defaultForkHelpers = createAgentForkHelpers({
|
|
5179
5171
|
forkSession: (agent, options) => getRegistryOperations(agent).forkSession(options),
|
|
5180
5172
|
exists: existsSync11,
|
|
@@ -5556,11 +5548,9 @@ function acquireRuntimeProcessLease(role, options = {}) {
|
|
|
5556
5548
|
}
|
|
5557
5549
|
var PROCESS_LEASE_STALE_MS = 5000, PROCESS_LEASE_HEARTBEAT_MS = 1000;
|
|
5558
5550
|
var init_runtime_process_leases = __esm(async () => {
|
|
5559
|
-
await
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
init_storage_host()
|
|
5563
|
-
]);
|
|
5551
|
+
await init_forum_db();
|
|
5552
|
+
await init_runtime_leases();
|
|
5553
|
+
await init_storage_host();
|
|
5564
5554
|
registerStorageSchemaInitializer((database) => {
|
|
5565
5555
|
database.exec(`
|
|
5566
5556
|
CREATE TABLE IF NOT EXISTS runtime_process_leases (
|
|
@@ -5841,8 +5831,8 @@ var init_transport_probe = __esm(() => {
|
|
|
5841
5831
|
|
|
5842
5832
|
// ../../packages/core/src/storage/vault-public.ts
|
|
5843
5833
|
var init_vault_public = __esm(async () => {
|
|
5844
|
-
init_vault_crypto();
|
|
5845
5834
|
await init_vault();
|
|
5835
|
+
init_vault_crypto();
|
|
5846
5836
|
});
|
|
5847
5837
|
|
|
5848
5838
|
// ../../packages/core/src/platform/playwright/vault-broker.ts
|
|
@@ -6135,10 +6125,8 @@ function assignTopicBrowserProfile(opts) {
|
|
|
6135
6125
|
}
|
|
6136
6126
|
var DEFAULT_BROWSER_PROFILE = "default";
|
|
6137
6127
|
var init_browser_profiles = __esm(async () => {
|
|
6138
|
-
await
|
|
6139
|
-
|
|
6140
|
-
init_storage_host()
|
|
6141
|
-
]);
|
|
6128
|
+
await init_forum_db();
|
|
6129
|
+
await init_storage_host();
|
|
6142
6130
|
registerStorageSchemaInitializer((database) => {
|
|
6143
6131
|
database.exec(`
|
|
6144
6132
|
CREATE TABLE IF NOT EXISTS browser_profiles (
|
|
@@ -6787,17 +6775,15 @@ var defaultManagerHost, managerHost, MAX_IDLE_MS, instances, usedPorts, spawning
|
|
|
6787
6775
|
var init_manager2 = __esm(async () => {
|
|
6788
6776
|
init_config();
|
|
6789
6777
|
init_logger();
|
|
6778
|
+
await init_browser_processes();
|
|
6790
6779
|
init_headed_launch();
|
|
6791
6780
|
init_transport_probe();
|
|
6781
|
+
await init_vault_broker();
|
|
6782
|
+
await init_browser_profiles();
|
|
6792
6783
|
init_manager_utils();
|
|
6784
|
+
await init_browser_processes();
|
|
6793
6785
|
init_transport_probe();
|
|
6794
6786
|
init_manager_utils();
|
|
6795
|
-
await __promiseAll([
|
|
6796
|
-
init_browser_processes(),
|
|
6797
|
-
init_vault_broker(),
|
|
6798
|
-
init_browser_profiles(),
|
|
6799
|
-
init_browser_processes()
|
|
6800
|
-
]);
|
|
6801
6787
|
defaultManagerHost = Object.freeze({
|
|
6802
6788
|
portsDir: PLAYWRIGHT_PORTS_DIR,
|
|
6803
6789
|
basePort: PLAYWRIGHT_BASE_PORT,
|
|
@@ -7181,8 +7167,8 @@ function wsAbortReason(reason) {
|
|
|
7181
7167
|
var roomQueryRegistry, interSessionQueue;
|
|
7182
7168
|
var init_active_rooms = __esm(async () => {
|
|
7183
7169
|
init_logger();
|
|
7184
|
-
init_types2();
|
|
7185
7170
|
await init_runtime_leases();
|
|
7171
|
+
init_types2();
|
|
7186
7172
|
roomQueryRegistry = createRoomQueryRegistry({
|
|
7187
7173
|
instanceId: RUNTIME_INSTANCE_ID,
|
|
7188
7174
|
internalAbortReason: "internal" /* Internal */,
|
|
@@ -7309,10 +7295,8 @@ function deleteApiTopicConfig(topicId) {
|
|
|
7309
7295
|
db.query("DELETE FROM api_topic_config WHERE topic_id = ?").run(topicId);
|
|
7310
7296
|
}
|
|
7311
7297
|
var init_api_topic_config = __esm(async () => {
|
|
7312
|
-
await
|
|
7313
|
-
|
|
7314
|
-
init_storage_host()
|
|
7315
|
-
]);
|
|
7298
|
+
await init_forum_db();
|
|
7299
|
+
await init_storage_host();
|
|
7316
7300
|
registerStorageSchemaInitializer(initializeApiTopicConfigSchema, 40);
|
|
7317
7301
|
});
|
|
7318
7302
|
|
|
@@ -7480,13 +7464,11 @@ function isLegacySharedGeneral(topicId) {
|
|
|
7480
7464
|
}
|
|
7481
7465
|
var LEGACY_PERSONAL_GENERAL_DESCRIPTION = "\uB098\uB9CC\uC758 \uAC1C\uC778 \uACF5\uAC04\uC774\uC5D0\uC694. \uB300\uD654\uC640 AI \uC791\uC5C5\uC740 \uB2E4\uB978 \uC0AC\uC6A9\uC790\uC5D0\uAC8C \uACF5\uAC1C\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.", PERSONAL_GENERAL_DESCRIPTION = "Your private General. Messages and membership are visible only to you. Workspace memory, wiki, and skills are shared with your workspace.";
|
|
7482
7466
|
var init_personal_general = __esm(async () => {
|
|
7467
|
+
await init_registry();
|
|
7483
7468
|
init_config();
|
|
7484
7469
|
init_constants();
|
|
7485
|
-
await
|
|
7486
|
-
|
|
7487
|
-
init_api_topic_config(),
|
|
7488
|
-
init_api_topics()
|
|
7489
|
-
]);
|
|
7470
|
+
await init_api_topic_config();
|
|
7471
|
+
await init_api_topics();
|
|
7490
7472
|
});
|
|
7491
7473
|
|
|
7492
7474
|
// ../../packages/core/src/agents/compaction-support.ts
|
|
@@ -8281,10 +8263,10 @@ async function* claudeProvider(opts) {
|
|
|
8281
8263
|
var CLAUDE_DEFAULT_DISALLOWED_TOOLS, CLAUDE_NATIVE_AGENT_TOOLS, CLAUDE_IMAGE_MAX_BYTES, CLAUDE_IMAGE_MIME_TYPES, CLAUDE_ABORT_SIGKILL_DELAY_MS = 2500;
|
|
8282
8264
|
var init_claude_provider = __esm(async () => {
|
|
8283
8265
|
init_claude_registry();
|
|
8266
|
+
await init_execution_host();
|
|
8284
8267
|
init_vault_tool_policy();
|
|
8285
8268
|
init_file_events();
|
|
8286
8269
|
init_logger();
|
|
8287
|
-
await init_execution_host();
|
|
8288
8270
|
CLAUDE_DEFAULT_DISALLOWED_TOOLS = [
|
|
8289
8271
|
"AskUserQuestion",
|
|
8290
8272
|
"Workflow",
|
|
@@ -9719,14 +9701,12 @@ var CODEX_MCP_SERVER_NAME_OVERRIDES, CODEX_DIFF_FILE_LIMIT, CODEX_DIFF_BASELINE_
|
|
|
9719
9701
|
var init_codex_provider = __esm(async () => {
|
|
9720
9702
|
init_codex_native_multi_agent();
|
|
9721
9703
|
init_codex_tree_kill();
|
|
9704
|
+
await init_execution_host();
|
|
9705
|
+
await init_codex();
|
|
9722
9706
|
init_tool_format();
|
|
9723
9707
|
init_file_events();
|
|
9724
9708
|
init_logger();
|
|
9725
9709
|
init_mcp_config();
|
|
9726
|
-
await __promiseAll([
|
|
9727
|
-
init_execution_host(),
|
|
9728
|
-
init_codex()
|
|
9729
|
-
]);
|
|
9730
9710
|
CODEX_MCP_SERVER_NAME_OVERRIDES = {
|
|
9731
9711
|
playwright: "otium_playwright"
|
|
9732
9712
|
};
|
|
@@ -9847,12 +9827,10 @@ function maestroProvider(opts) {
|
|
|
9847
9827
|
var MAESTRO_DEFAULT_MAX_TOKENS = 32768, PROVIDER_ASK_USER_TOOL = "AskUserQuestion", PROVIDER_SUBAGENT_TOOL = "Agent", MAESTRO_NATIVE_TASK_TOOLS, MAESTRO_PROVIDER_OWNED_TOOL_SET, DEFAULT_MAESTRO_DISALLOWED_TOOLS, MAESTRO_ALL_BUILTIN_TOOLS, MAESTRO_TOOL_OUTPUT_DIR;
|
|
9848
9828
|
var init_maestro_provider = __esm(async () => {
|
|
9849
9829
|
init_maestro_bootstrap_env();
|
|
9830
|
+
await init_execution_host();
|
|
9850
9831
|
init_vault_tool_policy();
|
|
9851
9832
|
init_config();
|
|
9852
|
-
await
|
|
9853
|
-
init_execution_host(),
|
|
9854
|
-
init_vault()
|
|
9855
|
-
]);
|
|
9833
|
+
await init_vault();
|
|
9856
9834
|
MAESTRO_NATIVE_TASK_TOOLS = [
|
|
9857
9835
|
"TaskCreate",
|
|
9858
9836
|
"TaskUpdate",
|
|
@@ -9998,15 +9976,13 @@ async function* runAgent(opts) {
|
|
|
9998
9976
|
}
|
|
9999
9977
|
}
|
|
10000
9978
|
var init_agents = __esm(async () => {
|
|
9979
|
+
await init_execution_host();
|
|
9980
|
+
await init_registry();
|
|
10001
9981
|
init_claude();
|
|
9982
|
+
await init_task_events();
|
|
10002
9983
|
init_logger();
|
|
9984
|
+
await init_conversations();
|
|
10003
9985
|
init_types();
|
|
10004
|
-
await __promiseAll([
|
|
10005
|
-
init_execution_host(),
|
|
10006
|
-
init_registry(),
|
|
10007
|
-
init_task_events(),
|
|
10008
|
-
init_conversations()
|
|
10009
|
-
]);
|
|
10010
9986
|
});
|
|
10011
9987
|
|
|
10012
9988
|
// ../../packages/core/src/prompts/builders.ts
|
|
@@ -10432,11 +10408,9 @@ function deleteTopicBrief(topicId) {
|
|
|
10432
10408
|
db.query("DELETE FROM api_topic_brief WHERE topic_id = ?").run(topicId);
|
|
10433
10409
|
}
|
|
10434
10410
|
var init_api_topic_brief = __esm(async () => {
|
|
10411
|
+
await init_forum_db();
|
|
10412
|
+
await init_storage_host();
|
|
10435
10413
|
init_wiki_summary_names();
|
|
10436
|
-
await __promiseAll([
|
|
10437
|
-
init_forum_db(),
|
|
10438
|
-
init_storage_host()
|
|
10439
|
-
]);
|
|
10440
10414
|
registerStorageSchemaInitializer((database) => {
|
|
10441
10415
|
database.exec(`
|
|
10442
10416
|
CREATE TABLE IF NOT EXISTS api_topic_brief (
|
|
@@ -10790,20 +10764,18 @@ function runArchiverTurn(params) {
|
|
|
10790
10764
|
}
|
|
10791
10765
|
var MAX_BRIEF_ENTRIES = 8, defaultArchiverRuntime;
|
|
10792
10766
|
var init_archiver = __esm(async () => {
|
|
10767
|
+
await init_agents();
|
|
10793
10768
|
init_tool_format();
|
|
10769
|
+
await init_bus();
|
|
10794
10770
|
init_config();
|
|
10795
10771
|
init_logger();
|
|
10796
10772
|
init_builders();
|
|
10797
10773
|
init_background_session_policy();
|
|
10774
|
+
await init_api_messages();
|
|
10775
|
+
await init_api_topic_brief();
|
|
10776
|
+
await init_wiki();
|
|
10798
10777
|
init_wiki_summary_names();
|
|
10799
|
-
await
|
|
10800
|
-
init_agents(),
|
|
10801
|
-
init_bus(),
|
|
10802
|
-
init_api_messages(),
|
|
10803
|
-
init_api_topic_brief(),
|
|
10804
|
-
init_wiki(),
|
|
10805
|
-
init_personal_general()
|
|
10806
|
-
]);
|
|
10778
|
+
await init_personal_general();
|
|
10807
10779
|
defaultArchiverRuntime = createArchiverRuntime({
|
|
10808
10780
|
storage: {
|
|
10809
10781
|
getWikiDir: getSharedWikiDir,
|
|
@@ -11036,11 +11008,9 @@ function archiveConversationEvents(topicId, topicTitle, userId, options = {}) {
|
|
|
11036
11008
|
}
|
|
11037
11009
|
var init_topic_archive = __esm(async () => {
|
|
11038
11010
|
init_logger();
|
|
11039
|
-
await
|
|
11040
|
-
|
|
11041
|
-
|
|
11042
|
-
init_wiki()
|
|
11043
|
-
]);
|
|
11011
|
+
await init_api_messages();
|
|
11012
|
+
await init_conversations();
|
|
11013
|
+
await init_wiki();
|
|
11044
11014
|
});
|
|
11045
11015
|
|
|
11046
11016
|
// ../../packages/core/src/storage/topic-archive-state.ts
|
|
@@ -11153,10 +11123,8 @@ function deleteTopicArchiveState(topicId) {
|
|
|
11153
11123
|
}
|
|
11154
11124
|
var ARCHIVE_JOB_STALE_MS;
|
|
11155
11125
|
var init_topic_archive_state = __esm(async () => {
|
|
11156
|
-
await
|
|
11157
|
-
|
|
11158
|
-
init_storage_host()
|
|
11159
|
-
]);
|
|
11126
|
+
await init_forum_db();
|
|
11127
|
+
await init_storage_host();
|
|
11160
11128
|
registerStorageSchemaInitializer((database) => {
|
|
11161
11129
|
database.exec(`
|
|
11162
11130
|
CREATE TABLE IF NOT EXISTS api_topic_archive_state (
|
|
@@ -11332,15 +11300,13 @@ function archiveActiveTopicForMemory(topicId, userId, options) {
|
|
|
11332
11300
|
}
|
|
11333
11301
|
var DEFAULT_IDLE_DELAY_MS, DEFAULT_MIN_MESSAGES = 8, timers;
|
|
11334
11302
|
var init_idle_archiver = __esm(async () => {
|
|
11303
|
+
await init_archiver();
|
|
11335
11304
|
init_logger();
|
|
11336
|
-
await
|
|
11337
|
-
|
|
11338
|
-
|
|
11339
|
-
|
|
11340
|
-
|
|
11341
|
-
init_topic_archive(),
|
|
11342
|
-
init_topic_archive_state()
|
|
11343
|
-
]);
|
|
11305
|
+
await init_active_rooms();
|
|
11306
|
+
await init_api_messages();
|
|
11307
|
+
await init_api_topics();
|
|
11308
|
+
await init_topic_archive();
|
|
11309
|
+
await init_topic_archive_state();
|
|
11344
11310
|
DEFAULT_IDLE_DELAY_MS = 6 * 60 * 60 * 1000;
|
|
11345
11311
|
timers = new Map;
|
|
11346
11312
|
});
|
|
@@ -11464,12 +11430,10 @@ function createTopicLogMaintenance(host) {
|
|
|
11464
11430
|
}
|
|
11465
11431
|
var defaultTopicLogMaintenance, cleanupTopicRollouts, cleanupTopicRolloutsFromEntries, rotateTopicLogs, purgeTopicLogs;
|
|
11466
11432
|
var init_topic_cleanup = __esm(async () => {
|
|
11433
|
+
await init_agents();
|
|
11434
|
+
await init_registry();
|
|
11467
11435
|
init_logger();
|
|
11468
|
-
await
|
|
11469
|
-
init_agents(),
|
|
11470
|
-
init_registry(),
|
|
11471
|
-
init_conversations()
|
|
11472
|
-
]);
|
|
11436
|
+
await init_conversations();
|
|
11473
11437
|
defaultTopicLogMaintenance = createTopicLogMaintenance({
|
|
11474
11438
|
agents: SUPPORTED_AGENTS,
|
|
11475
11439
|
readActiveConversation: readConversation,
|
|
@@ -11552,14 +11516,12 @@ function text(value2, maxLen) {
|
|
|
11552
11516
|
}
|
|
11553
11517
|
var providers, transientSessions;
|
|
11554
11518
|
var init_background_sessions = __esm(async () => {
|
|
11519
|
+
await init_archiver();
|
|
11555
11520
|
init_tool_format();
|
|
11521
|
+
await init_api_topics();
|
|
11522
|
+
await init_runtime_events();
|
|
11523
|
+
await init_runtime_leases();
|
|
11556
11524
|
init_background_session_policy();
|
|
11557
|
-
await __promiseAll([
|
|
11558
|
-
init_archiver(),
|
|
11559
|
-
init_api_topics(),
|
|
11560
|
-
init_runtime_events(),
|
|
11561
|
-
init_runtime_leases()
|
|
11562
|
-
]);
|
|
11563
11525
|
providers = new Set;
|
|
11564
11526
|
transientSessions = new Map;
|
|
11565
11527
|
});
|
|
@@ -11957,31 +11919,29 @@ async function createCompactedRolloutEntries(request, summarize = summarizeTopic
|
|
|
11957
11919
|
}
|
|
11958
11920
|
var RESET_MEMORY_ARCHIVE_WAIT_MS, COMPACTION_INLINE_CHARS = 1e5, COMPACTION_SOURCE_CHARS, COMPACTION_MEMORY_CHARS = 80000, COMPACTION_OUTPUT_CHARS = 30000, COMPACTION_TIMEOUT_MS, COMPACTION_LOG_TIMEOUT_MS, COMPACTION_LOG_MAX_CALLS = 12, COMPACTION_LOG_MAX_TOTAL_BYTES, COMPACTION_LOG_MAX_CHUNK_BYTES, COMPACT_CONTEXT_MARKER = "[Negotium compacted context]", AUTO_FORK_COMPACTION_TOKENS = 28000;
|
|
11959
11921
|
var init_session = __esm(async () => {
|
|
11922
|
+
await init_idle_archiver();
|
|
11923
|
+
await init_agents();
|
|
11960
11924
|
init_model_catalog();
|
|
11925
|
+
await init_registry();
|
|
11961
11926
|
init_shared();
|
|
11927
|
+
await init_topic_cleanup();
|
|
11928
|
+
await init_bus();
|
|
11962
11929
|
init_config();
|
|
11963
11930
|
init_logger();
|
|
11964
11931
|
init_mcp_config();
|
|
11932
|
+
await init_active_rooms();
|
|
11933
|
+
await init_background_sessions();
|
|
11965
11934
|
init_usage_alert();
|
|
11966
|
-
await
|
|
11967
|
-
|
|
11968
|
-
|
|
11969
|
-
|
|
11970
|
-
|
|
11971
|
-
|
|
11972
|
-
|
|
11973
|
-
|
|
11974
|
-
|
|
11975
|
-
|
|
11976
|
-
init_api_topic_config(),
|
|
11977
|
-
init_api_topics(),
|
|
11978
|
-
init_conversations(),
|
|
11979
|
-
init_runtime_leases(),
|
|
11980
|
-
init_runtime_topic_state(),
|
|
11981
|
-
init_runtime_turn_requests(),
|
|
11982
|
-
init_topic_archive(),
|
|
11983
|
-
init_personal_general()
|
|
11984
|
-
]);
|
|
11935
|
+
await init_api_messages();
|
|
11936
|
+
await init_api_topic_brief();
|
|
11937
|
+
await init_api_topic_config();
|
|
11938
|
+
await init_api_topics();
|
|
11939
|
+
await init_conversations();
|
|
11940
|
+
await init_runtime_leases();
|
|
11941
|
+
await init_runtime_topic_state();
|
|
11942
|
+
await init_runtime_turn_requests();
|
|
11943
|
+
await init_topic_archive();
|
|
11944
|
+
await init_personal_general();
|
|
11985
11945
|
RESET_MEMORY_ARCHIVE_WAIT_MS = 5 * 60 * 1000;
|
|
11986
11946
|
COMPACTION_SOURCE_CHARS = 512 * 1024;
|
|
11987
11947
|
COMPACTION_TIMEOUT_MS = 2 * 60000;
|
|
@@ -12312,24 +12272,22 @@ async function createDerivedTopicImpl(topic, sourceTopicId, userId, copyHistory,
|
|
|
12312
12272
|
}
|
|
12313
12273
|
var TopicTitleConflictError, TopicDeriveBusyError, TopicForkCompactionError;
|
|
12314
12274
|
var init_derive = __esm(async () => {
|
|
12275
|
+
await init_fork();
|
|
12315
12276
|
init_model_catalog();
|
|
12277
|
+
await init_registry();
|
|
12278
|
+
await init_bus();
|
|
12316
12279
|
init_config();
|
|
12317
12280
|
init_logger();
|
|
12318
|
-
await
|
|
12319
|
-
|
|
12320
|
-
|
|
12321
|
-
|
|
12322
|
-
|
|
12323
|
-
|
|
12324
|
-
|
|
12325
|
-
|
|
12326
|
-
|
|
12327
|
-
|
|
12328
|
-
init_forum_db(),
|
|
12329
|
-
init_runtime_topic_state(),
|
|
12330
|
-
init_personal_general(),
|
|
12331
|
-
init_session()
|
|
12332
|
-
]);
|
|
12281
|
+
await init_manager2();
|
|
12282
|
+
await init_active_rooms();
|
|
12283
|
+
await init_api_messages();
|
|
12284
|
+
await init_api_topic_config();
|
|
12285
|
+
await init_api_topics();
|
|
12286
|
+
await init_conversations();
|
|
12287
|
+
await init_forum_db();
|
|
12288
|
+
await init_runtime_topic_state();
|
|
12289
|
+
await init_personal_general();
|
|
12290
|
+
await init_session();
|
|
12333
12291
|
TopicTitleConflictError = class TopicTitleConflictError extends Error {
|
|
12334
12292
|
title;
|
|
12335
12293
|
constructor(title) {
|
|
@@ -12988,11 +12946,9 @@ async function failInterruptedRemoteAskCallbacks() {
|
|
|
12988
12946
|
}
|
|
12989
12947
|
var pendingAsks, MAX_ASK_AGE_MS;
|
|
12990
12948
|
var init_ask_callbacks = __esm(async () => {
|
|
12991
|
-
await
|
|
12992
|
-
|
|
12993
|
-
|
|
12994
|
-
init_storage_host()
|
|
12995
|
-
]);
|
|
12949
|
+
await init_forum_db();
|
|
12950
|
+
await init_session_asks();
|
|
12951
|
+
await init_storage_host();
|
|
12996
12952
|
registerStorageSchemaInitializer((database) => {
|
|
12997
12953
|
database.exec(`
|
|
12998
12954
|
CREATE TABLE IF NOT EXISTS remote_ask_callbacks (
|
|
@@ -13218,10 +13174,8 @@ paint();document.body.appendChild(b)}
|
|
|
13218
13174
|
if(document.readyState==="loading")document.addEventListener("DOMContentLoaded",init);else init()})();
|
|
13219
13175
|
</script>`;
|
|
13220
13176
|
var init_visual_store = __esm(async () => {
|
|
13221
|
-
await
|
|
13222
|
-
|
|
13223
|
-
init_storage_host()
|
|
13224
|
-
]);
|
|
13177
|
+
await init_forum_db();
|
|
13178
|
+
await init_storage_host();
|
|
13225
13179
|
registerStorageSchemaInitializer((database) => {
|
|
13226
13180
|
database.exec(`
|
|
13227
13181
|
CREATE TABLE IF NOT EXISTS api_topic_visuals (
|
|
@@ -13284,12 +13238,10 @@ function deleteSelfSchedulesForTopic(topicId) {
|
|
|
13284
13238
|
return Number(result.changes ?? 0);
|
|
13285
13239
|
}
|
|
13286
13240
|
var init_self_schedules = __esm(async () => {
|
|
13287
|
-
await
|
|
13288
|
-
|
|
13289
|
-
|
|
13290
|
-
|
|
13291
|
-
init_storage_host()
|
|
13292
|
-
]);
|
|
13241
|
+
await init_forum_db();
|
|
13242
|
+
await init_runtime_leases();
|
|
13243
|
+
await init_runtime_topic_state();
|
|
13244
|
+
await init_storage_host();
|
|
13293
13245
|
registerStorageSchemaInitializer((database) => {
|
|
13294
13246
|
database.exec(`
|
|
13295
13247
|
CREATE TABLE IF NOT EXISTS runtime_self_schedules (
|
|
@@ -13494,37 +13446,35 @@ async function deleteTopicCascadeImpl(topic, userId, options, deletingAncestorId
|
|
|
13494
13446
|
}
|
|
13495
13447
|
var DELETE_TURN_WAIT_MS = 5000, TopicArchiveRequiredError, TopicTurnStillActiveError, TopicCleanupRequiredError;
|
|
13496
13448
|
var init_lifecycle = __esm(async () => {
|
|
13449
|
+
await init_archiver();
|
|
13450
|
+
await init_idle_archiver();
|
|
13451
|
+
await init_spawn_subagent();
|
|
13452
|
+
await init_topic_cleanup();
|
|
13453
|
+
await init_bus();
|
|
13497
13454
|
init_manager();
|
|
13498
13455
|
init_config();
|
|
13499
13456
|
init_constants();
|
|
13500
13457
|
init_logger();
|
|
13458
|
+
await init_manager2();
|
|
13459
|
+
await init_active_rooms();
|
|
13501
13460
|
init_session_inbox_cleanup();
|
|
13502
13461
|
init_state();
|
|
13462
|
+
await init_ask_callbacks();
|
|
13503
13463
|
init_file_hooks();
|
|
13504
13464
|
init_usage_alert();
|
|
13505
|
-
await
|
|
13506
|
-
|
|
13507
|
-
|
|
13508
|
-
|
|
13509
|
-
|
|
13510
|
-
|
|
13511
|
-
|
|
13512
|
-
|
|
13513
|
-
|
|
13514
|
-
|
|
13515
|
-
|
|
13516
|
-
|
|
13517
|
-
|
|
13518
|
-
init_api_topics(),
|
|
13519
|
-
init_browser_profiles(),
|
|
13520
|
-
init_runtime_leases(),
|
|
13521
|
-
init_runtime_topic_state(),
|
|
13522
|
-
init_runtime_turn_requests(),
|
|
13523
|
-
init_self_schedules(),
|
|
13524
|
-
init_session_asks(),
|
|
13525
|
-
init_topic_archive(),
|
|
13526
|
-
init_topic_archive_state()
|
|
13527
|
-
]);
|
|
13465
|
+
await init_visual_store();
|
|
13466
|
+
await init_api_messages();
|
|
13467
|
+
await init_api_topic_brief();
|
|
13468
|
+
await init_api_topic_config();
|
|
13469
|
+
await init_api_topics();
|
|
13470
|
+
await init_browser_profiles();
|
|
13471
|
+
await init_runtime_leases();
|
|
13472
|
+
await init_runtime_topic_state();
|
|
13473
|
+
await init_runtime_turn_requests();
|
|
13474
|
+
await init_self_schedules();
|
|
13475
|
+
await init_session_asks();
|
|
13476
|
+
await init_topic_archive();
|
|
13477
|
+
await init_topic_archive_state();
|
|
13528
13478
|
TopicArchiveRequiredError = class TopicArchiveRequiredError extends Error {
|
|
13529
13479
|
code = "TOPIC_ARCHIVE_FAILED";
|
|
13530
13480
|
topicId;
|
|
@@ -13884,8 +13834,8 @@ function abortPlaywrightTurns(instanceKey, failure) {
|
|
|
13884
13834
|
var turnsByInstance;
|
|
13885
13835
|
var init_playwright_turn_abort = __esm(async () => {
|
|
13886
13836
|
init_logger();
|
|
13887
|
-
init_types2();
|
|
13888
13837
|
await init_manager2();
|
|
13838
|
+
init_types2();
|
|
13889
13839
|
turnsByInstance = new Map;
|
|
13890
13840
|
onPlaywrightFailure(abortPlaywrightTurns);
|
|
13891
13841
|
});
|
|
@@ -14087,10 +14037,8 @@ function cancelAskUserGate(topicId, messageId, ownerId, now = new Date().toISOSt
|
|
|
14087
14037
|
}).immediate();
|
|
14088
14038
|
}
|
|
14089
14039
|
var init_ask_user_gates = __esm(async () => {
|
|
14090
|
-
await
|
|
14091
|
-
|
|
14092
|
-
init_storage_host()
|
|
14093
|
-
]);
|
|
14040
|
+
await init_forum_db();
|
|
14041
|
+
await init_storage_host();
|
|
14094
14042
|
registerStorageSchemaInitializer(initializeAskUserGateSchema, 31);
|
|
14095
14043
|
});
|
|
14096
14044
|
|
|
@@ -14397,14 +14345,12 @@ function cancelPendingAskUserQuestions(topicId, queryId) {
|
|
|
14397
14345
|
var MAX_QUESTION_CHARS = 2000, MAX_CHOICE_LABEL_CHARS = 128, MAX_CHOICE_DESCRIPTION_CHARS = 500, MAX_CHOICES = 12, MAX_IDEMPOTENCY_KEY_CHARS = 200, ASK_GATE_OWNER_ID, ASK_GATE_LEASE_ROLE_PREFIX = "ask-user-gate:", defaultAskUserDurabilityHost, defaultAskUserRuntime;
|
|
14398
14346
|
var init_ask_user = __esm(async () => {
|
|
14399
14347
|
init_common();
|
|
14400
|
-
await
|
|
14401
|
-
|
|
14402
|
-
|
|
14403
|
-
|
|
14404
|
-
|
|
14405
|
-
|
|
14406
|
-
init_runtime_process_leases()
|
|
14407
|
-
]);
|
|
14348
|
+
await init_bus();
|
|
14349
|
+
await init_api_messages();
|
|
14350
|
+
await init_api_topic_config();
|
|
14351
|
+
await init_api_topics();
|
|
14352
|
+
await init_ask_user_gates();
|
|
14353
|
+
await init_runtime_process_leases();
|
|
14408
14354
|
ASK_GATE_OWNER_ID = `ask-user-${process.pid}-${randomUUID14()}`;
|
|
14409
14355
|
defaultAskUserDurabilityHost = {
|
|
14410
14356
|
gates: {
|
|
@@ -14512,10 +14458,8 @@ function upsertTaskPanelMessage(topicId, queryId, tasks, lastRenderedText) {
|
|
|
14512
14458
|
return text2;
|
|
14513
14459
|
}
|
|
14514
14460
|
var init_tasks2 = __esm(async () => {
|
|
14515
|
-
await
|
|
14516
|
-
|
|
14517
|
-
init_api_messages()
|
|
14518
|
-
]);
|
|
14461
|
+
await init_bus();
|
|
14462
|
+
await init_api_messages();
|
|
14519
14463
|
});
|
|
14520
14464
|
|
|
14521
14465
|
// ../../packages/core/src/runtime/visual-html.ts
|
|
@@ -14751,12 +14695,10 @@ var ACTIVE_VISUAL_PROMPT_MAX_CHARS = 24000, ACTIVE_VISUAL_PROMPT_TAIL_CHARS = 60
|
|
|
14751
14695
|
var init_visuals = __esm(async () => {
|
|
14752
14696
|
init_attachments();
|
|
14753
14697
|
init_file_hooks();
|
|
14698
|
+
await init_visual_store();
|
|
14754
14699
|
init_sensitive_path();
|
|
14700
|
+
await init_api_messages();
|
|
14755
14701
|
init_visual_html();
|
|
14756
|
-
await __promiseAll([
|
|
14757
|
-
init_visual_store(),
|
|
14758
|
-
init_api_messages()
|
|
14759
|
-
]);
|
|
14760
14702
|
});
|
|
14761
14703
|
|
|
14762
14704
|
// ../../packages/core/src/storage/token-stats.ts
|
|
@@ -15495,32 +15437,30 @@ ${JSON.stringify(event.input ?? {})}`);
|
|
|
15495
15437
|
return outcome;
|
|
15496
15438
|
}
|
|
15497
15439
|
var init_turn_event_stream = __esm(async () => {
|
|
15440
|
+
await init_fork();
|
|
15441
|
+
await init_idle_archiver();
|
|
15442
|
+
await init_ask_user();
|
|
15443
|
+
await init_spawn_subagent();
|
|
15498
15444
|
init_model_catalog();
|
|
15445
|
+
await init_registry();
|
|
15499
15446
|
init_tool_format();
|
|
15447
|
+
await init_bus();
|
|
15500
15448
|
init_logger();
|
|
15449
|
+
await init_active_rooms();
|
|
15501
15450
|
init_state();
|
|
15502
15451
|
init_types2();
|
|
15503
15452
|
init_attachments();
|
|
15504
15453
|
init_errors();
|
|
15454
|
+
await init_tasks2();
|
|
15455
|
+
await init_topic_config();
|
|
15505
15456
|
init_usage_alert();
|
|
15457
|
+
await init_visual_store();
|
|
15458
|
+
await init_visuals();
|
|
15506
15459
|
init_sensitive_path();
|
|
15507
|
-
await
|
|
15508
|
-
|
|
15509
|
-
|
|
15510
|
-
|
|
15511
|
-
init_spawn_subagent(),
|
|
15512
|
-
init_registry(),
|
|
15513
|
-
init_bus(),
|
|
15514
|
-
init_active_rooms(),
|
|
15515
|
-
init_tasks2(),
|
|
15516
|
-
init_topic_config(),
|
|
15517
|
-
init_visual_store(),
|
|
15518
|
-
init_visuals(),
|
|
15519
|
-
init_api_messages(),
|
|
15520
|
-
init_api_topics(),
|
|
15521
|
-
init_runtime_turn_requests(),
|
|
15522
|
-
init_token_stats()
|
|
15523
|
-
]);
|
|
15460
|
+
await init_api_messages();
|
|
15461
|
+
await init_api_topics();
|
|
15462
|
+
await init_runtime_turn_requests();
|
|
15463
|
+
await init_token_stats();
|
|
15524
15464
|
});
|
|
15525
15465
|
|
|
15526
15466
|
// ../../packages/core/src/runtime/turn-session.ts
|
|
@@ -15552,11 +15492,9 @@ function resolveInitialTurnSessionId(topicId, requestedSessionId, isolated) {
|
|
|
15552
15492
|
}
|
|
15553
15493
|
var init_turn_session = __esm(async () => {
|
|
15554
15494
|
init_model_catalog();
|
|
15555
|
-
await
|
|
15556
|
-
|
|
15557
|
-
|
|
15558
|
-
init_api_topics()
|
|
15559
|
-
]);
|
|
15495
|
+
await init_registry();
|
|
15496
|
+
await init_topic_config();
|
|
15497
|
+
await init_api_topics();
|
|
15560
15498
|
});
|
|
15561
15499
|
|
|
15562
15500
|
// ../../packages/core/src/storage/app-settings.ts
|
|
@@ -16884,43 +16822,41 @@ function triggerTopicAiTurn(topicId, userId, prompt, agentType, opts) {
|
|
|
16884
16822
|
}
|
|
16885
16823
|
var PLAYWRIGHT_UNAVAILABLE_NOTICE_COOLDOWN_MS, ASK_REPLY_INJECT_BATCH_MS = 500, playwrightUnavailableNoticeAt, askReplyInjectBatcher, remoteInjectWaiters, durableTurnWorker = null, durableTurnWorkerBusy = false;
|
|
16886
16824
|
var init_turn_runner = __esm(async () => {
|
|
16825
|
+
await init_fork();
|
|
16826
|
+
await init_agents();
|
|
16827
|
+
await init_spawn_subagent();
|
|
16828
|
+
await init_registry();
|
|
16829
|
+
await init_bus();
|
|
16887
16830
|
init_manager();
|
|
16888
16831
|
init_constants();
|
|
16889
16832
|
init_logger();
|
|
16890
16833
|
init_mcp_config();
|
|
16834
|
+
await init_manager2();
|
|
16891
16835
|
init_builders();
|
|
16836
|
+
await init_active_rooms();
|
|
16892
16837
|
init_state();
|
|
16893
16838
|
init_types2();
|
|
16894
16839
|
init_attachments();
|
|
16840
|
+
await init_channel_context();
|
|
16895
16841
|
init_errors();
|
|
16842
|
+
await init_playwright_turn_abort();
|
|
16843
|
+
await init_topic_config();
|
|
16844
|
+
await init_turn_event_stream();
|
|
16845
|
+
await init_turn_session();
|
|
16846
|
+
await init_visual_store();
|
|
16847
|
+
await init_visuals();
|
|
16848
|
+
await init_api_messages();
|
|
16849
|
+
await init_api_topic_brief();
|
|
16850
|
+
await init_api_topics();
|
|
16851
|
+
await init_app_settings();
|
|
16852
|
+
await init_browser_profiles();
|
|
16853
|
+
await init_conversations();
|
|
16854
|
+
await init_runtime_leases();
|
|
16855
|
+
await init_runtime_topic_state();
|
|
16856
|
+
await init_runtime_turn_requests();
|
|
16857
|
+
await init_wiki();
|
|
16896
16858
|
init_wiki_summary_names();
|
|
16897
|
-
await
|
|
16898
|
-
init_fork(),
|
|
16899
|
-
init_agents(),
|
|
16900
|
-
init_spawn_subagent(),
|
|
16901
|
-
init_registry(),
|
|
16902
|
-
init_bus(),
|
|
16903
|
-
init_manager2(),
|
|
16904
|
-
init_active_rooms(),
|
|
16905
|
-
init_channel_context(),
|
|
16906
|
-
init_playwright_turn_abort(),
|
|
16907
|
-
init_topic_config(),
|
|
16908
|
-
init_turn_event_stream(),
|
|
16909
|
-
init_turn_session(),
|
|
16910
|
-
init_visual_store(),
|
|
16911
|
-
init_visuals(),
|
|
16912
|
-
init_api_messages(),
|
|
16913
|
-
init_api_topic_brief(),
|
|
16914
|
-
init_api_topics(),
|
|
16915
|
-
init_app_settings(),
|
|
16916
|
-
init_browser_profiles(),
|
|
16917
|
-
init_conversations(),
|
|
16918
|
-
init_runtime_leases(),
|
|
16919
|
-
init_runtime_topic_state(),
|
|
16920
|
-
init_runtime_turn_requests(),
|
|
16921
|
-
init_wiki(),
|
|
16922
|
-
init_derive()
|
|
16923
|
-
]);
|
|
16859
|
+
await init_derive();
|
|
16924
16860
|
init_model_catalog();
|
|
16925
16861
|
init_attachments();
|
|
16926
16862
|
init_channel_context();
|
|
@@ -17726,16 +17662,14 @@ function processOwnerIsAlive(ownerId) {
|
|
|
17726
17662
|
var MAX_TASK_CHARS = 8000, MAX_NAME_CHARS = 80, MAX_LIVE_CHILDREN_PER_PARENT = 5, MAX_PREPARED_CHILDREN_PER_PARENT = 10, MAX_SUBAGENT_DEPTH = 2, RESULT_SUMMARY_CHARS = 300, defaultSubagentLifecycleHost, defaultSubagentLifecycle, computeSubagentDepth, canSpawnSubagentsFromTopic, takeSubagentWatch, cancelSubagentWatchForDeletedTopic, settleSubagentSuccess, settleSubagentFailure, sweepStaleSubagentCards, subagentReportMode, createSubagentManagementToolDefinitions, createSpawnSubagentToolDefinition, createPrepareSubagentToolDefinition;
|
|
17727
17663
|
var init_spawn_subagent = __esm(async () => {
|
|
17728
17664
|
init_common();
|
|
17665
|
+
await init_bus();
|
|
17729
17666
|
init_logger();
|
|
17667
|
+
await init_api_messages();
|
|
17668
|
+
await init_api_topics();
|
|
17669
|
+
await init_runtime_leases();
|
|
17670
|
+
await init_runtime_turn_requests();
|
|
17730
17671
|
init_wiki_summary_names();
|
|
17731
17672
|
init_types();
|
|
17732
|
-
await __promiseAll([
|
|
17733
|
-
init_bus(),
|
|
17734
|
-
init_api_messages(),
|
|
17735
|
-
init_api_topics(),
|
|
17736
|
-
init_runtime_leases(),
|
|
17737
|
-
init_runtime_turn_requests()
|
|
17738
|
-
]);
|
|
17739
17673
|
defaultSubagentLifecycleHost = {
|
|
17740
17674
|
storage: {
|
|
17741
17675
|
getTopic,
|
|
@@ -20167,11 +20101,11 @@ function createWikiMcpServer(context, host) {
|
|
|
20167
20101
|
if (false) {}
|
|
20168
20102
|
// ../../packages/core/src/mcp/factories/agent-health.ts
|
|
20169
20103
|
init_claude_registry();
|
|
20104
|
+
await init_codex_registry();
|
|
20170
20105
|
init_maestro_registry();
|
|
20171
20106
|
init_config();
|
|
20172
20107
|
init_jsonl();
|
|
20173
20108
|
init_mcp_helpers();
|
|
20174
|
-
await init_codex_registry();
|
|
20175
20109
|
import { spawn as spawn5 } from "child_process";
|
|
20176
20110
|
import { existsSync as existsSync10, readdirSync as readdirSync3 } from "fs";
|
|
20177
20111
|
import { join as join11 } from "path";
|
|
@@ -20572,10 +20506,8 @@ import { McpServer as McpServer3 } from "@modelcontextprotocol/sdk/server/mcp.js
|
|
|
20572
20506
|
import { z as z5 } from "zod";
|
|
20573
20507
|
|
|
20574
20508
|
// ../../packages/core/src/mcp/session-comm/tell-permissions.ts
|
|
20575
|
-
await
|
|
20576
|
-
|
|
20577
|
-
init_api_topics()
|
|
20578
|
-
]);
|
|
20509
|
+
await init_spawn_subagent();
|
|
20510
|
+
await init_api_topics();
|
|
20579
20511
|
function resolveSubagentTellIdentity(currentTopicId, assertedParentTopicId) {
|
|
20580
20512
|
const record = currentTopicId ? getTopic(currentTopicId) : undefined;
|
|
20581
20513
|
const identityInvalid = Boolean(assertedParentTopicId && (!record?.isSubagent || record.parentTopicId !== assertedParentTopicId)) || Boolean(record?.isSubagent && !record.parentTopicId);
|
|
@@ -20793,8 +20725,8 @@ function createSystemHealthMcpServer(host = defaultSystemHealthMcpHost) {
|
|
|
20793
20725
|
return server;
|
|
20794
20726
|
}
|
|
20795
20727
|
// ../../packages/core/src/mcp/factories/task.ts
|
|
20796
|
-
init_mcp_helpers();
|
|
20797
20728
|
await init_tasks();
|
|
20729
|
+
init_mcp_helpers();
|
|
20798
20730
|
import { McpServer as McpServer5 } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
20799
20731
|
import { z as z6 } from "zod";
|
|
20800
20732
|
var defaultTaskMcpHost = {
|
|
@@ -21091,4 +21023,4 @@ export {
|
|
|
21091
21023
|
createAgentHealthMcpServer
|
|
21092
21024
|
};
|
|
21093
21025
|
|
|
21094
|
-
//# debugId=
|
|
21026
|
+
//# debugId=A90B1B771901C15064756E2164756E21
|