@desplega.ai/agent-swarm 1.110.0 → 1.112.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 +1 -1
- package/dist/{actions-837ktebk.js → actions-eckb4g8r.js} +6 -6
- package/dist/{app-85h97pg2.js → app-b05sgm02.js} +3 -3
- package/dist/{assistant-yhrta0c5.js → assistant-7255sbyw.js} +9 -9
- package/dist/{boot-reembed-5sd1t9r4.js → boot-reembed-y1bt3ttn.js} +4 -4
- package/dist/{boot-reembed-8xmfv2pq.js → boot-reembed-yv7awg4y.js} +3 -3
- package/dist/{boot-scrub-logs-fdw8wbtq.js → boot-scrub-logs-ddyaeqar.js} +2 -2
- package/dist/{claude-managed-setup-yhbcx0bz.js → claude-managed-setup-cm05wtek.js} +1 -1
- package/dist/{cli-8ps5wsk9.js → cli-0c3n0eba.js} +1 -1
- package/dist/{cli-kna0r84e.js → cli-15598a4k.js} +599 -51
- package/dist/{cli-8s0swp2t.js → cli-30d2ct3k.js} +3 -3
- package/dist/{cli-2h86bsfe.js → cli-3r5y6ayj.js} +2 -2
- package/dist/{cli-6ttdv68b.js → cli-52tbq17n.js} +1 -1
- package/dist/{cli-k6ssh5dk.js → cli-56s4ehzw.js} +1 -1
- package/dist/{cli-m3enfr8q.js → cli-6wscj9z0.js} +4 -4
- package/dist/{cli-5kav4x1a.js → cli-709t753c.js} +7 -2
- package/dist/{cli-g44ffxk5.js → cli-76d1vtvq.js} +11 -2
- package/dist/{cli-gb7dqnna.js → cli-7xkwgkrs.js} +1 -1
- package/dist/{cli-kg9v8h1w.js → cli-8f0dwca2.js} +1 -1
- package/dist/{cli-zw3cmjh6.js → cli-94vzr3nq.js} +4 -4
- package/dist/{cli-d8vmtyyr.js → cli-951w7c79.js} +1 -1
- package/dist/{cli-dhph6q98.js → cli-9p0qhead.js} +1 -1
- package/dist/{cli-vfyhrk9k.js → cli-a5e8n5hg.js} +1 -1
- package/dist/{cli-w6zp4qcx.js → cli-ceewqajw.js} +37 -39
- package/dist/{cli-r19ttke3.js → cli-h9jx5mag.js} +4 -4
- package/dist/{cli-4trfcacj.js → cli-hm27prrc.js} +5 -5
- package/dist/{cli-gtt1f14h.js → cli-pt7c7qxz.js} +3 -3
- package/dist/{cli-sjm0e1pa.js → cli-r1btc895.js} +2 -2
- package/dist/{cli-3baz70yp.js → cli-rp8pca98.js} +1 -1
- package/dist/{cli-dy01kwxk.js → cli-s9pj3c7z.js} +2 -2
- package/dist/{cli-0pzg1f8z.js → cli-tch0ypp6.js} +71 -24
- package/dist/{cli-3t97r3y1.js → cli-tg0f2wmz.js} +5 -5
- package/dist/{cli-amncg1dq.js → cli-tk9vyqzh.js} +66 -9
- package/dist/{cli-cwety9qq.js → cli-tp7e60s3.js} +4 -2
- package/dist/cli.js +11 -11
- package/dist/{codex-adapter-ebs12jef.js → codex-adapter-5cmy858w.js} +3 -3
- package/dist/{codex-login-4sywkz6v.js → codex-login-0h18cy3e.js} +1 -1
- package/dist/{codex-session-runner-3bx0b1hn.js → codex-session-runner-46q8mrba.js} +3 -3
- package/dist/{commands-3fh75nzv.js → commands-14g7taf4.js} +2 -2
- package/dist/{db-kwfxkhpw.js → db-3tge4jrn.js} +2 -2
- package/dist/{handlers-jj8rzetb.js → handlers-sy64egg6.js} +9 -9
- package/dist/{hook-1b45zzz1.js → hook-rnkzw8vp.js} +3 -3
- package/dist/{http-71964f7a.js → http-xx9xptcs.js} +234 -37
- package/dist/{index-e01wmtj0.js → index-3wr6v2mm.js} +7 -7
- package/dist/{index-464v93y6.js → index-brma88d4.js} +9 -9
- package/dist/{index-c35g752k.js → index-ha8e9xn2.js} +7 -11
- package/dist/{index-zm0x6vmf.js → index-zfx5p959.js} +8 -8
- package/dist/{keepalive-2gxqjgrx.js → keepalive-rbz05zad.js} +4 -4
- package/dist/{lead-twm4zp8y.js → lead-s790v7r0.js} +20 -20
- package/dist/{maintenance-1htsnyz6.js → maintenance-420rmadb.js} +4 -4
- package/dist/{onboard-1y1pdzt5.js → onboard-jgqamqnw.js} +2 -2
- package/dist/{otel-impl-pw9tnc80.js → otel-impl-ch3n3783.js} +1 -1
- package/dist/{pi-mono-adapter-ayr3akk8.js → pi-mono-adapter-kxjxpfgy.js} +2 -2
- package/dist/{pricing-refresh-tqvvrk7a.js → pricing-refresh-rmtrby6h.js} +4 -4
- package/dist/{seed-pricing-f23sehzq.js → seed-pricing-1szjzfj1.js} +3 -3
- package/dist/{setup-jtw9rz9t.js → setup-8jfzkyzv.js} +2 -2
- package/dist/{worker-jxrmzwb9.js → worker-40vq0pm8.js} +20 -20
- package/openapi.json +1010 -2
- package/package.json +1 -1
- package/src/be/memory/constants.ts +7 -0
- package/src/be/memory/graph-expansion.ts +167 -0
- package/src/be/memory/link-resolver.ts +81 -17
- package/src/be/memory/links-store.ts +208 -0
- package/src/be/memory/providers/sqlite-store.ts +2 -2
- package/src/be/memory/raters/retrieval.ts +2 -1
- package/src/be/memory/types.ts +1 -1
- package/src/be/memory/usefulness-stats.ts +259 -0
- package/src/be/migrations/107_memory_usefulness_indexes.sql +12 -0
- package/src/be/scripts/typecheck.ts +2 -0
- package/src/be/seed-scripts/catalog/smart-recall.ts +1 -5
- package/src/commands/runner.ts +154 -8
- package/src/github/handlers.ts +128 -25
- package/src/github/mentions-aliases.test.ts +4 -3
- package/src/http/codex-oauth-keep-warm.ts +107 -0
- package/src/http/index.ts +2 -0
- package/src/http/memory.ts +73 -6
- package/src/providers/codex-adapter.ts +66 -2
- package/src/providers/codex-oauth/auth-json.ts +18 -9
- package/src/providers/codex-oauth/flow.ts +1 -1
- package/src/providers/codex-oauth/storage.ts +88 -6
- package/src/providers/codex-oauth/types.ts +1 -1
- package/src/scripts-runtime/sdk-allowlist.ts +2 -0
- package/src/scripts-runtime/types/swarm-sdk.d.ts +2 -0
- package/src/server.ts +4 -0
- package/src/slack/message-text.ts +25 -0
- package/src/tests/codex-adapter-pool-auth-revalidate.test.ts +113 -11
- package/src/tests/codex-adapter.test.ts +27 -0
- package/src/tests/codex-oauth-keep-warm.test.ts +268 -0
- package/src/tests/codex-oauth-refresh-lock.test.ts +4 -4
- package/src/tests/codex-oauth-storage.test.ts +149 -6
- package/src/tests/codex-oauth.test.ts +12 -0
- package/src/tests/create-page-tool.test.ts +7 -0
- package/src/tests/entrypoint-codex-oauth-seed.test.ts +124 -0
- package/src/tests/github-event-filter.test.ts +3 -2
- package/src/tests/github-handlers-inline-comments.test.ts +114 -24
- package/src/tests/jira-webhook-lifecycle.test.ts +7 -0
- package/src/tests/memory-edit.test.ts +95 -0
- package/src/tests/memory-get-tool.test.ts +138 -0
- package/src/tests/memory-graph-expansion.test.ts +421 -0
- package/src/tests/memory-http-recall-gating.test.ts +13 -0
- package/src/tests/memory-link-resolver.test.ts +228 -2
- package/src/tests/memory-usefulness-endpoint.test.ts +392 -0
- package/src/tests/runner-repo-autostash.test.ts +168 -1
- package/src/tests/script-workflows-runtime-e2e.test.ts +1 -0
- package/src/tests/slack-delete.test.ts +157 -0
- package/src/tests/slack-message-text.test.ts +37 -1
- package/src/tests/slack-update.test.ts +167 -0
- package/src/tests/slack-upload-file.test.ts +135 -0
- package/src/tests/tool-annotations.test.ts +3 -0
- package/src/tools/inject-learning.ts +1 -0
- package/src/tools/memory-edit.ts +3 -2
- package/src/tools/memory-get.ts +66 -1
- package/src/tools/memory-search.ts +13 -3
- package/src/tools/slack-delete.ts +102 -0
- package/src/tools/slack-reply.ts +11 -3
- package/src/tools/slack-start-thread.ts +2 -0
- package/src/tools/slack-update.ts +127 -0
- package/src/tools/slack-upload-file.ts +11 -1
- package/src/tools/tool-config.ts +3 -1
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
getScriptVersion,
|
|
10
10
|
listRelationalCredentialBindings,
|
|
11
11
|
validateScriptImports
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-3r5y6ayj.js";
|
|
13
13
|
import {
|
|
14
14
|
withSiblingAwareness,
|
|
15
15
|
workflowContextKey
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-0c3n0eba.js";
|
|
17
17
|
import {
|
|
18
18
|
getAppUrl
|
|
19
19
|
} from "./cli-dh55d5fg.js";
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
telemetry,
|
|
63
63
|
updateWorkflowRun,
|
|
64
64
|
updateWorkflowRunStep
|
|
65
|
-
} from "./cli-
|
|
65
|
+
} from "./cli-951w7c79.js";
|
|
66
66
|
import {
|
|
67
67
|
init_zod
|
|
68
68
|
} from "./cli-q21d49ac.js";
|
|
@@ -2515,7 +2515,7 @@ class HumanInTheLoopExecutor extends BaseExecutor {
|
|
|
2515
2515
|
}
|
|
2516
2516
|
if (notification.channel === "slack") {
|
|
2517
2517
|
try {
|
|
2518
|
-
const { getSlackApp } = await import("./app-
|
|
2518
|
+
const { getSlackApp } = await import("./app-b05sgm02.js");
|
|
2519
2519
|
const slackApp = getSlackApp();
|
|
2520
2520
|
if (!slackApp) {
|
|
2521
2521
|
console.warn("[HITL] Slack not initialized — cannot send notification");
|
|
@@ -2629,7 +2629,7 @@ class NotifyExecutor extends BaseExecutor {
|
|
|
2629
2629
|
}
|
|
2630
2630
|
}
|
|
2631
2631
|
case "slack": {
|
|
2632
|
-
const { getSlackApp } = await import("./app-
|
|
2632
|
+
const { getSlackApp } = await import("./app-b05sgm02.js");
|
|
2633
2633
|
const app = getSlackApp();
|
|
2634
2634
|
if (!app) {
|
|
2635
2635
|
return {
|
|
@@ -124,7 +124,7 @@ async function refreshAccessToken(refreshToken) {
|
|
|
124
124
|
if (!response.ok) {
|
|
125
125
|
const text = await response.text().catch(() => "");
|
|
126
126
|
console.error("[codex-oauth] Token refresh failed:", response.status, text);
|
|
127
|
-
return { type: "failed" };
|
|
127
|
+
return { type: "failed", status: response.status, error: text.slice(0, 300) };
|
|
128
128
|
}
|
|
129
129
|
const json = await response.json();
|
|
130
130
|
if (!json.access_token || !json.refresh_token || typeof json.expires_in !== "number") {
|
|
@@ -317,18 +317,74 @@ async function loginCodexOAuth(callbacks) {
|
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
|
|
320
|
+
// src/providers/codex-oauth/auth-json.ts
|
|
321
|
+
function deriveCodexKeySuffix(accessToken, accountId) {
|
|
322
|
+
const userId = extractChatgptUserId(accessToken);
|
|
323
|
+
const suffixSource = userId ?? accountId;
|
|
324
|
+
if (!userId) {
|
|
325
|
+
console.warn("[codex-oauth] No chatgpt_user_id in JWT — falling back to account_id for keySuffix derivation. " + "If two slots share an account, their suffixes will collide.");
|
|
326
|
+
}
|
|
327
|
+
return suffixSource.slice(-5);
|
|
328
|
+
}
|
|
329
|
+
function authJsonToCredentialSelection(auth, slot = 0, total = 1) {
|
|
330
|
+
return {
|
|
331
|
+
selected: auth.tokens.account_id,
|
|
332
|
+
index: slot,
|
|
333
|
+
total,
|
|
334
|
+
keySuffix: deriveCodexKeySuffix(auth.tokens.access_token, auth.tokens.account_id),
|
|
335
|
+
keyType: "CODEX_OAUTH",
|
|
336
|
+
isRateLimitFallback: false
|
|
337
|
+
};
|
|
338
|
+
}
|
|
339
|
+
function credentialsToAuthJson(creds, opts = {}) {
|
|
340
|
+
const includeRefreshToken = opts.includeRefreshToken ?? true;
|
|
341
|
+
return {
|
|
342
|
+
auth_mode: "chatgpt",
|
|
343
|
+
OPENAI_API_KEY: null,
|
|
344
|
+
tokens: {
|
|
345
|
+
id_token: creds.access,
|
|
346
|
+
access_token: creds.access,
|
|
347
|
+
refresh_token: includeRefreshToken ? creds.refresh : "",
|
|
348
|
+
account_id: creds.accountId
|
|
349
|
+
},
|
|
350
|
+
last_refresh: new Date(creds.expires).toISOString()
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
|
|
320
354
|
// src/providers/codex-oauth/storage.ts
|
|
321
355
|
var CODEX_OAUTH_KEY_LEGACY = "codex_oauth";
|
|
322
356
|
var REFRESH_LOCK_TTL_MS = 2 * 60 * 1000;
|
|
323
357
|
var REFRESH_LOCK_WAIT_MS = 30 * 1000;
|
|
324
358
|
var REFRESH_LOCK_POLL_MS = 250;
|
|
325
|
-
var REFRESH_SKEW_MS =
|
|
359
|
+
var REFRESH_SKEW_MS = 12 * 60 * 60 * 1000;
|
|
360
|
+
var ACCESS_TOKEN_TTL_MS = 10 * 24 * 60 * 60 * 1000;
|
|
326
361
|
function sleep(ms) {
|
|
327
362
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
328
363
|
}
|
|
329
364
|
function isExpiringSoon(expires) {
|
|
330
365
|
return Date.now() >= expires - REFRESH_SKEW_MS;
|
|
331
366
|
}
|
|
367
|
+
function isStaleByAge(expires, maxAgeMs) {
|
|
368
|
+
const issuedAt = expires - ACCESS_TOKEN_TTL_MS;
|
|
369
|
+
return Date.now() - issuedAt > maxAgeMs;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
class CodexOAuthRefreshError extends Error {
|
|
373
|
+
slot;
|
|
374
|
+
reason;
|
|
375
|
+
keySuffix;
|
|
376
|
+
status;
|
|
377
|
+
body;
|
|
378
|
+
constructor(slot, reason, keySuffix, status, body) {
|
|
379
|
+
super(reason === "lock_timeout" ? `[codex-oauth] slot ${slot} [...${keySuffix}] timed out waiting for refresh lock` : `[codex-oauth] slot ${slot} [...${keySuffix}] refresh rejected (${status ?? "unknown status"} ${body ?? ""})`.trim());
|
|
380
|
+
this.slot = slot;
|
|
381
|
+
this.reason = reason;
|
|
382
|
+
this.keySuffix = keySuffix;
|
|
383
|
+
this.status = status;
|
|
384
|
+
this.body = body;
|
|
385
|
+
this.name = "CodexOAuthRefreshError";
|
|
386
|
+
}
|
|
387
|
+
}
|
|
332
388
|
async function acquireCodexRefreshLock(apiUrl, apiKey, slot) {
|
|
333
389
|
const key = codexOAuthKeyForSlot(slot);
|
|
334
390
|
const res = await fetch(`${apiUrl}/api/oauth/refresh-locks/${encodeURIComponent(key)}`, {
|
|
@@ -462,24 +518,25 @@ async function persistCodexOAuth(apiUrl, apiKey, creds, slot = 0) {
|
|
|
462
518
|
console.error("[codex-oauth] persistCodexOAuth failed (non-fatal):", err);
|
|
463
519
|
}
|
|
464
520
|
}
|
|
465
|
-
async function getValidCodexOAuth(apiUrl, apiKey, slot = 0) {
|
|
521
|
+
async function getValidCodexOAuth(apiUrl, apiKey, slot = 0, opts) {
|
|
522
|
+
const needsRefresh = (c) => isExpiringSoon(c.expires) || opts?.maxAgeMs !== undefined && isStaleByAge(c.expires, opts.maxAgeMs);
|
|
466
523
|
let creds = await loadCodexOAuth(apiUrl, apiKey, slot);
|
|
467
524
|
if (!creds)
|
|
468
525
|
return null;
|
|
469
|
-
if (!
|
|
526
|
+
if (!needsRefresh(creds))
|
|
470
527
|
return creds;
|
|
471
528
|
const waitStartedAt = Date.now();
|
|
472
529
|
for (;; ) {
|
|
473
530
|
creds = await loadCodexOAuth(apiUrl, apiKey, slot);
|
|
474
531
|
if (!creds)
|
|
475
532
|
return null;
|
|
476
|
-
if (!
|
|
533
|
+
if (!needsRefresh(creds))
|
|
477
534
|
return creds;
|
|
478
535
|
const owner = await acquireCodexRefreshLock(apiUrl, apiKey, slot);
|
|
479
536
|
if (!owner) {
|
|
480
537
|
if (Date.now() - waitStartedAt > REFRESH_LOCK_WAIT_MS) {
|
|
481
538
|
console.error(`[codex-oauth] Timed out waiting for slot ${slot} refresh lock`);
|
|
482
|
-
|
|
539
|
+
throw new CodexOAuthRefreshError(slot, "lock_timeout", deriveCodexKeySuffix(creds.access, creds.accountId));
|
|
483
540
|
}
|
|
484
541
|
await sleep(REFRESH_LOCK_POLL_MS);
|
|
485
542
|
continue;
|
|
@@ -488,13 +545,13 @@ async function getValidCodexOAuth(apiUrl, apiKey, slot = 0) {
|
|
|
488
545
|
const lockedCreds = await loadCodexOAuth(apiUrl, apiKey, slot);
|
|
489
546
|
if (!lockedCreds)
|
|
490
547
|
return null;
|
|
491
|
-
if (!
|
|
548
|
+
if (!needsRefresh(lockedCreds))
|
|
492
549
|
return lockedCreds;
|
|
493
550
|
console.log("[codex-oauth] Token expired or expiring soon, refreshing...");
|
|
494
551
|
const result = await refreshAccessToken(lockedCreds.refresh);
|
|
495
552
|
if (result.type !== "success") {
|
|
496
553
|
console.error("[codex-oauth] Token refresh failed");
|
|
497
|
-
|
|
554
|
+
throw new CodexOAuthRefreshError(slot, "refresh_rejected", deriveCodexKeySuffix(lockedCreds.access, lockedCreds.accountId), result.status, result.error);
|
|
498
555
|
}
|
|
499
556
|
const refreshed = {
|
|
500
557
|
access: result.access,
|
|
@@ -517,4 +574,4 @@ async function getValidCodexOAuth(apiUrl, apiKey, slot = 0) {
|
|
|
517
574
|
}
|
|
518
575
|
}
|
|
519
576
|
|
|
520
|
-
export {
|
|
577
|
+
export { loginCodexOAuth, deriveCodexKeySuffix, authJsonToCredentialSelection, credentialsToAuthJson, CodexOAuthRefreshError, loadAllCodexOAuthSlots, storeCodexOAuth, persistCodexOAuth, getValidCodexOAuth };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getScriptApiTypes,
|
|
3
3
|
require_typescript
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-3r5y6ayj.js";
|
|
5
5
|
import {
|
|
6
6
|
deleteSwarmConfigByKey,
|
|
7
7
|
getAgentById,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
getSwarmConfigs,
|
|
11
11
|
init_db,
|
|
12
12
|
upsertSwarmConfig
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-951w7c79.js";
|
|
14
14
|
import {
|
|
15
15
|
init_secret_scrubber,
|
|
16
16
|
scrubSecrets
|
|
@@ -468,6 +468,8 @@ export interface SwarmSdk {
|
|
|
468
468
|
slack_startThread(args: { channelId: string; message: string }): Promise<unknown>;
|
|
469
469
|
slack_uploadFile(args: Record<string, unknown>): Promise<unknown>;
|
|
470
470
|
slack_downloadFile(args: { url: string }): Promise<unknown>;
|
|
471
|
+
slack_delete(args: { channelId: string; messageTs: string }): Promise<unknown>;
|
|
472
|
+
slack_update(args: { channelId: string; messageTs: string; message: string }): Promise<unknown>;
|
|
471
473
|
|
|
472
474
|
// --- write: messaging (internal) ---
|
|
473
475
|
message_post(args: { channel?: string; content: string; to?: string }): Promise<unknown>;
|
package/dist/cli.js
CHANGED
|
@@ -64,7 +64,7 @@ var import_react = __toESM(require_react(), 1);
|
|
|
64
64
|
// package.json
|
|
65
65
|
var package_default = {
|
|
66
66
|
name: "@desplega.ai/agent-swarm",
|
|
67
|
-
version: "1.
|
|
67
|
+
version: "1.112.0",
|
|
68
68
|
description: "Multi-agent orchestration for Claude Code, Codex, Gemini CLI, and other AI coding assistants",
|
|
69
69
|
license: "MIT",
|
|
70
70
|
author: "desplega.sh <contact@desplega.sh>",
|
|
@@ -645,7 +645,7 @@ function McpServer({ port, apiKey, dbPath }) {
|
|
|
645
645
|
if (dbPath) {
|
|
646
646
|
process.env.DATABASE_PATH = dbPath;
|
|
647
647
|
}
|
|
648
|
-
import("./http-
|
|
648
|
+
import("./http-xx9xptcs.js").then(() => {
|
|
649
649
|
setStatus("running");
|
|
650
650
|
}).catch((err) => {
|
|
651
651
|
setStatus("error");
|
|
@@ -731,7 +731,7 @@ function WorkerRunner({
|
|
|
731
731
|
}) {
|
|
732
732
|
const { exit } = use_app_default();
|
|
733
733
|
import_react.useEffect(() => {
|
|
734
|
-
import("./worker-
|
|
734
|
+
import("./worker-40vq0pm8.js").then(({ runWorker }) => runWorker({
|
|
735
735
|
prompt: prompt || undefined,
|
|
736
736
|
yolo,
|
|
737
737
|
systemPrompt: systemPrompt || undefined,
|
|
@@ -748,7 +748,7 @@ function WorkerRunner({
|
|
|
748
748
|
function LeadRunner({ prompt, yolo, systemPrompt, systemPromptFile, additionalArgs }) {
|
|
749
749
|
const { exit } = use_app_default();
|
|
750
750
|
import_react.useEffect(() => {
|
|
751
|
-
import("./lead-
|
|
751
|
+
import("./lead-s790v7r0.js").then(({ runLead }) => runLead({
|
|
752
752
|
prompt: prompt || undefined,
|
|
753
753
|
yolo,
|
|
754
754
|
systemPrompt: systemPrompt || undefined,
|
|
@@ -788,8 +788,8 @@ function LazyComponent({
|
|
|
788
788
|
}
|
|
789
789
|
return import_react.createElement(Component, props);
|
|
790
790
|
}
|
|
791
|
-
var loadOnboard = () => import("./onboard-
|
|
792
|
-
var loadConnect = () => import("./setup-
|
|
791
|
+
var loadOnboard = () => import("./onboard-jgqamqnw.js").then(({ Onboard }) => Onboard);
|
|
792
|
+
var loadConnect = () => import("./setup-8jfzkyzv.js").then(({ Setup }) => Setup);
|
|
793
793
|
function UnknownCommand({ command }) {
|
|
794
794
|
const { exit } = use_app_default();
|
|
795
795
|
import_react.useEffect(() => {
|
|
@@ -902,7 +902,7 @@ ${binName} docs \u2014 v${package_default.version}
|
|
|
902
902
|
}
|
|
903
903
|
process.exit(0);
|
|
904
904
|
} else if (args.command === "hook") {
|
|
905
|
-
const { runHook } = await import("./hook-
|
|
905
|
+
const { runHook } = await import("./hook-rnkzw8vp.js");
|
|
906
906
|
await runHook();
|
|
907
907
|
} else if (args.command === "artifact") {
|
|
908
908
|
const artifactArgs = process.argv.slice(process.argv.indexOf("artifact") + 1);
|
|
@@ -922,18 +922,18 @@ ${binName} docs \u2014 v${package_default.version}
|
|
|
922
922
|
printHelp("scripts");
|
|
923
923
|
process.exit(scriptsArgs[0] === "reembed" || args.showHelp ? 0 : 1);
|
|
924
924
|
}
|
|
925
|
-
const { runScriptsMaintenanceCommand } = await import("./maintenance-
|
|
925
|
+
const { runScriptsMaintenanceCommand } = await import("./maintenance-420rmadb.js");
|
|
926
926
|
await runScriptsMaintenanceCommand(scriptsArgs);
|
|
927
927
|
console.log("Scripts re-embedded.");
|
|
928
928
|
} else if (args.command === "codex-login") {
|
|
929
|
-
const { runCodexLogin } = await import("./codex-login-
|
|
929
|
+
const { runCodexLogin } = await import("./codex-login-0h18cy3e.js");
|
|
930
930
|
const codexLoginArgs = process.argv.slice(process.argv.indexOf("codex-login") + 1);
|
|
931
931
|
await runCodexLogin(codexLoginArgs);
|
|
932
932
|
} else if (args.command === "codex-session-runner") {
|
|
933
|
-
const { runCodexSessionRunner } = await import("./codex-session-runner-
|
|
933
|
+
const { runCodexSessionRunner } = await import("./codex-session-runner-46q8mrba.js");
|
|
934
934
|
await runCodexSessionRunner();
|
|
935
935
|
} else if (args.command === "claude-managed-setup") {
|
|
936
|
-
const { runClaudeManagedSetup } = await import("./claude-managed-setup-
|
|
936
|
+
const { runClaudeManagedSetup } = await import("./claude-managed-setup-cm05wtek.js");
|
|
937
937
|
const setupArgs = process.argv.slice(process.argv.indexOf("claude-managed-setup") + 1);
|
|
938
938
|
await runClaudeManagedSetup(setupArgs);
|
|
939
939
|
} else if (args.command === "e2b") {
|
|
@@ -6,15 +6,15 @@ import {
|
|
|
6
6
|
createInProcessCodexSession,
|
|
7
7
|
resolveCodexAuthMode,
|
|
8
8
|
resolveCodexRunnerArgv
|
|
9
|
-
} from "./cli-
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-amncg1dq.js";
|
|
9
|
+
} from "./cli-ceewqajw.js";
|
|
10
|
+
import"./cli-6wscj9z0.js";
|
|
12
11
|
import"./cli-07er7wrs.js";
|
|
13
12
|
import"./cli-yv9dttkh.js";
|
|
14
13
|
import"./cli-r94z9p1z.js";
|
|
15
14
|
import"./cli-d6n0thxw.js";
|
|
16
15
|
import"./cli-hx1dcevq.js";
|
|
17
16
|
import"./cli-dcfyyh3t.js";
|
|
17
|
+
import"./cli-tk9vyqzh.js";
|
|
18
18
|
import"./cli-psrqtw2m.js";
|
|
19
19
|
import"./cli-zm7njwzd.js";
|
|
20
20
|
import"./cli-tghre7g6.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createInProcessCodexSession
|
|
3
|
-
} from "./cli-
|
|
4
|
-
import"./cli-
|
|
5
|
-
import"./cli-amncg1dq.js";
|
|
3
|
+
} from "./cli-ceewqajw.js";
|
|
4
|
+
import"./cli-6wscj9z0.js";
|
|
6
5
|
import"./cli-07er7wrs.js";
|
|
7
6
|
import"./cli-yv9dttkh.js";
|
|
8
7
|
import"./cli-r94z9p1z.js";
|
|
9
8
|
import"./cli-d6n0thxw.js";
|
|
10
9
|
import"./cli-hx1dcevq.js";
|
|
11
10
|
import"./cli-dcfyyh3t.js";
|
|
11
|
+
import"./cli-tk9vyqzh.js";
|
|
12
12
|
import"./cli-psrqtw2m.js";
|
|
13
13
|
import"./cli-zm7njwzd.js";
|
|
14
14
|
import"./cli-tghre7g6.js";
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
getAllAgents,
|
|
3
3
|
getAllTasks,
|
|
4
4
|
init_db
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-951w7c79.js";
|
|
6
6
|
import"./cli-z2zcxes1.js";
|
|
7
7
|
import"./cli-q21d49ac.js";
|
|
8
8
|
import"./cli-anrj584m.js";
|
|
9
|
-
import"./cli-
|
|
9
|
+
import"./cli-8f0dwca2.js";
|
|
10
10
|
import"./cli-4j2mrzag.js";
|
|
11
11
|
import"./cli-p9swy5t3.js";
|
|
12
12
|
|
|
@@ -385,11 +385,11 @@ import {
|
|
|
385
385
|
upsertSkillFiles,
|
|
386
386
|
upsertSwarmConfig,
|
|
387
387
|
withFavoriteFlags
|
|
388
|
-
} from "./cli-
|
|
388
|
+
} from "./cli-951w7c79.js";
|
|
389
389
|
import"./cli-z2zcxes1.js";
|
|
390
390
|
import"./cli-q21d49ac.js";
|
|
391
391
|
import"./cli-anrj584m.js";
|
|
392
|
-
import"./cli-
|
|
392
|
+
import"./cli-8f0dwca2.js";
|
|
393
393
|
import"./cli-4j2mrzag.js";
|
|
394
394
|
import"./cli-p9swy5t3.js";
|
|
395
395
|
init_db();
|
|
@@ -3,24 +3,24 @@ import {
|
|
|
3
3
|
getBufferMessageCount,
|
|
4
4
|
instantFlush,
|
|
5
5
|
wasEventSeen
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-h9jx5mag.js";
|
|
7
7
|
import {
|
|
8
8
|
extractSlackMessageText,
|
|
9
9
|
extractTaskFromMessage,
|
|
10
10
|
hasOtherUserMention,
|
|
11
11
|
routeMessage
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-76d1vtvq.js";
|
|
13
13
|
import {
|
|
14
14
|
registerTreeMessage
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-hm27prrc.js";
|
|
16
16
|
import"./cli-rkndnn90.js";
|
|
17
17
|
import"./cli-b0p7rfnd.js";
|
|
18
18
|
import {
|
|
19
19
|
enrichSlackUserEmail,
|
|
20
20
|
resolveSlackUserId
|
|
21
|
-
} from "./cli-
|
|
22
|
-
import"./cli-
|
|
23
|
-
import"./cli-
|
|
21
|
+
} from "./cli-30d2ct3k.js";
|
|
22
|
+
import"./cli-9p0qhead.js";
|
|
23
|
+
import"./cli-7xkwgkrs.js";
|
|
24
24
|
import {
|
|
25
25
|
buildTreeBlocks
|
|
26
26
|
} from "./cli-6xd0bvf8.js";
|
|
@@ -28,7 +28,7 @@ import"./cli-wspgs9bt.js";
|
|
|
28
28
|
import {
|
|
29
29
|
createTaskWithSiblingAwareness,
|
|
30
30
|
slackContextKey
|
|
31
|
-
} from "./cli-
|
|
31
|
+
} from "./cli-0c3n0eba.js";
|
|
32
32
|
import"./cli-dh55d5fg.js";
|
|
33
33
|
import {
|
|
34
34
|
getAgentById,
|
|
@@ -39,11 +39,11 @@ import {
|
|
|
39
39
|
init_db,
|
|
40
40
|
init_resolver,
|
|
41
41
|
resolveTemplate
|
|
42
|
-
} from "./cli-
|
|
42
|
+
} from "./cli-951w7c79.js";
|
|
43
43
|
import"./cli-z2zcxes1.js";
|
|
44
44
|
import"./cli-q21d49ac.js";
|
|
45
45
|
import"./cli-anrj584m.js";
|
|
46
|
-
import"./cli-
|
|
46
|
+
import"./cli-8f0dwca2.js";
|
|
47
47
|
import"./cli-4j2mrzag.js";
|
|
48
48
|
import"./cli-e15jhafb.js";
|
|
49
49
|
import {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
summarizeSession
|
|
3
|
-
} from "./cli-
|
|
4
|
-
import"./cli-amncg1dq.js";
|
|
3
|
+
} from "./cli-6wscj9z0.js";
|
|
5
4
|
import {
|
|
6
5
|
checkToolLoop,
|
|
7
6
|
clearToolHistory
|
|
@@ -14,6 +13,7 @@ import {
|
|
|
14
13
|
isLlmRaterEnabled,
|
|
15
14
|
postRatings
|
|
16
15
|
} from "./cli-dcfyyh3t.js";
|
|
16
|
+
import"./cli-tk9vyqzh.js";
|
|
17
17
|
import {
|
|
18
18
|
getApiKey
|
|
19
19
|
} from "./cli-f14fvzag.js";
|
|
@@ -30,7 +30,7 @@ import"./cli-anrj584m.js";
|
|
|
30
30
|
import {
|
|
31
31
|
init_package,
|
|
32
32
|
package_default
|
|
33
|
-
} from "./cli-
|
|
33
|
+
} from "./cli-8f0dwca2.js";
|
|
34
34
|
import"./cli-4j2mrzag.js";
|
|
35
35
|
import"./cli-xw7p4wkq.js";
|
|
36
36
|
import"./cli-4wgngmwv.js";
|