@desplega.ai/agent-swarm 1.161.0 → 1.162.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 -2
- package/dist/{acp-adapter-xx489vvb.js → acp-adapter-74m73ae9.js} +1 -1
- package/dist/{actions-ykjkn0m9.js → actions-4sr14gnt.js} +34 -31
- package/dist/{anthropic-messages-5qx80j9k.js → anthropic-messages-8xxrzky9.js} +22 -26
- package/dist/{app-0hdqa4k1.js → app-pt68fbwp.js} +13 -11
- package/dist/{artifact-3v5t9jtg.js → artifact-fey7dvj9.js} +3 -2
- package/dist/{assistant-am2g5g8a.js → assistant-cv3jytks.js} +37 -34
- package/dist/{azure-openai-responses-fszbkp0e.js → azure-openai-responses-f5cqsyj8.js} +15 -10
- package/dist/{boot-reembed-xy9t7avg.js → boot-reembed-4ht4gqth.js} +13 -11
- package/dist/{boot-reembed-gt5gjkt4.js → boot-reembed-nxpcvpj9.js} +12 -10
- package/dist/{boot-scrub-logs-9x0985y5.js → boot-scrub-logs-k93kyw8k.js} +9 -7
- package/dist/{boot-seeds-trv0d4vg.js → boot-seeds-1skcrs0e.js} +13 -10
- package/dist/{claude-adapter-jb6e1e54.js → claude-adapter-r5g0tzge.js} +23 -20
- package/dist/{claude-managed-setup-d1q9hv2b.js → claude-managed-setup-pkyrgshb.js} +3 -2
- package/dist/{claude-sdk-session-zga700s2.js → claude-sdk-session-jxyxnrwd.js} +5565 -5512
- package/dist/{cli-we0q7t0e.js → cli-2zy95vhm.js} +137 -64
- package/dist/{cli-35pj2yva.js → cli-4cwxn7gp.js} +38 -11
- package/dist/{cli-ad4qxm6j.js → cli-4dcpaefp.js} +2 -2
- package/dist/{cli-82c1pacn.js → cli-4x0csdjq.js} +71 -37
- package/dist/{cli-sqm3r5ps.js → cli-5bcd7sfy.js} +14 -18
- package/dist/{cli-d56tgd45.js → cli-5k6k8ta3.js} +2 -2
- package/dist/{cli-1er0rhz8.js → cli-5xhpb3kv.js} +15 -15
- package/dist/{cli-yrg7c73k.js → cli-7af8yhav.js} +10 -183
- package/dist/{cli-r6fsxc76.js → cli-7tre70zp.js} +513 -961
- package/dist/{cli-bh7jed3k.js → cli-8ev9xqnx.js} +34 -18
- package/dist/cli-bsky8g7w.js +449 -0
- package/dist/{cli-hn04t9db.js → cli-cebmgwsc.js} +14 -10
- package/dist/{cli-cfkrztza.js → cli-cvatsam7.js} +2 -2
- package/dist/{cli-2658f6at.js → cli-cvk6yzw5.js} +6 -8
- package/dist/{cli-ptr8h7kp.js → cli-eg0b3p0k.js} +5 -218
- package/dist/{cli-zb6xbk61.js → cli-g739zqzt.js} +4 -4
- package/dist/{cli-dv6cdjs2.js → cli-gd4favx9.js} +28 -7
- package/dist/{cli-5p3x4zna.js → cli-gpqpmns7.js} +2 -2
- package/dist/{cli-5nbmpy8w.js → cli-hb5c2x5y.js} +1 -1
- package/dist/{cli-jpf7e1zq.js → cli-hmsw1gpy.js} +3 -3
- package/dist/{cli-1cz0c18q.js → cli-jf7wmv1r.js} +2521 -733
- package/dist/{cli-qwsnmjdd.js → cli-jxs2ygaw.js} +168 -61
- package/dist/cli-kdkwd3yr.js +615 -0
- package/dist/{cli-hgmnf38m.js → cli-kh04eqwe.js} +1 -1
- package/dist/{cli-0383bp7f.js → cli-kp42yek0.js} +425 -90
- package/dist/{cli-ybgv4kw2.js → cli-mbssg1xv.js} +9 -2
- package/dist/{cli-jsp14b6c.js → cli-mzfth0bp.js} +38 -1
- package/dist/{cli-8g6mc14k.js → cli-nq7yqw7b.js} +16 -5
- package/dist/{cli-ee8bc46j.js → cli-nt8hecg9.js} +33 -32
- package/dist/{cli-9s68w752.js → cli-p0r8sxj5.js} +1 -1
- package/dist/{cli-58e8yr0d.js → cli-pkd6s2wy.js} +4 -2
- package/dist/{cli-17xpf7cm.js → cli-q24re23n.js} +6 -4
- package/dist/cli-qjjvzwzd.js +222 -0
- package/dist/cli-qrgt5bqf.js +189 -0
- package/dist/{cli-et8m9xsv.js → cli-rfjw9jw2.js} +22 -10
- package/dist/{cli-798vkbks.js → cli-rj0gqwwp.js} +2 -2
- package/dist/{cli-121ph74b.js → cli-rnyzn44p.js} +1 -1
- package/dist/{cli-vnnz5ncg.js → cli-s3hwpt9v.js} +95 -16
- package/dist/{cli-7119ja3w.js → cli-sptrj5f5.js} +2 -2
- package/dist/{cli-a8c82p2t.js → cli-sqvfa090.js} +13 -6
- package/dist/{cli-phfg8vy8.js → cli-swfmp1fx.js} +26 -26
- package/dist/{cli-nsdxtcbg.js → cli-tcen9p5w.js} +8 -5
- package/dist/{cli-9m03pzga.js → cli-vc9bp061.js} +5 -5
- package/dist/{cli-rtx9dygp.js → cli-vxe6qa4h.js} +1 -1
- package/dist/{cli-ecfxwnyb.js → cli-vy3ed88x.js} +1 -1
- package/dist/{cli-0c7ata9h.js → cli-vyqs9ya8.js} +6 -6
- package/dist/cli-wbvnn6tk.js +861 -0
- package/dist/{cli-kgd3p0bm.js → cli-wjgs5wxe.js} +6 -6
- package/dist/cli-wxkkd0e0.js +33 -0
- package/dist/{cli-akfj32vj.js → cli-xqpk3rp7.js} +5 -4
- package/dist/cli-zp38xvtm.js +9487 -0
- package/dist/{cli-3zc55ctx.js → cli-zvhd3f64.js} +2 -2
- package/dist/{cli-ze1d3wzv.js → cli-zxqx25nz.js} +5 -5
- package/dist/cli.js +32 -25
- package/dist/{cloudflare-workers-ai-system-one-k6fbxw9d.js → cloudflare-workers-ai-system-one-k8ddqjkq.js} +8 -6
- package/dist/{codex-adapter-04v97vep.js → codex-adapter-esvmnhn7.js} +13 -13
- package/dist/{codex-hook-20me6byw.js → codex-hook-m73jmqgx.js} +19 -3
- package/dist/{codex-session-runner-ax69mqq3.js → codex-session-runner-ban9excr.js} +13 -13
- package/dist/{commands-18gy08n1.js → commands-75413p2n.js} +9 -7
- package/dist/{db-d2pvjpyt.js → db-7f5pecwg.js} +11 -7
- package/dist/{dispatcher-8wbwyzjg.js → dispatcher-fh9at8nz.js} +33 -30
- package/dist/{dsh-adapter-ysqk9snv.js → dsh-adapter-wpze65d4.js} +3 -3
- package/dist/{e2b-esmt1r16.js → e2b-gjgdjp91.js} +10 -9
- package/dist/{pi-logo-animation-e9a0t68z.js → easter-egg-3d-3w5c2n4c.js} +122 -68
- package/dist/{execute-cmagrbrz.js → execute-f50wg9nh.js} +29 -6
- package/dist/{google-generative-ai-k6n5nbpp.js → google-generative-ai-jxxpnegy.js} +2 -2
- package/dist/{google-vertex-44xxtcvp.js → google-vertex-x7q1angm.js} +5 -5
- package/dist/{handlers-6b69m5kp.js → handlers-w13787bb.js} +36 -33
- package/dist/{hook-srnkt0hb.js → hook-46g1jrvx.js} +28 -15
- package/dist/{hook-k3mydf2n.js → hook-4tpts2ry.js} +20 -17
- package/dist/{http-hrf80ca1.js → http-19pzbfrt.js} +964 -176
- package/dist/{index-9rxdvj6w.js → index-8fd4dm4h.js} +34 -31
- package/dist/{index-1asbaj62.js → index-dqmp15bq.js} +35 -32
- package/dist/{index-45evq4ee.js → index-qb4q1y3e.js} +33 -30
- package/dist/{index-k4nj18qs.js → index-s75wc4wd.js} +12 -10
- package/dist/{index-xmevk2b9.js → index-scptvdxg.js} +27 -25
- package/dist/{keepalive-sfdz6ksp.js → keepalive-xa5ts9cd.js} +11 -9
- package/dist/{lead-ej91e9hw.js → lead-qp4xkvjq.js} +45 -41
- package/dist/{maintenance-80dnd7ke.js → maintenance-rm5885hm.js} +13 -11
- package/dist/{mistral-conversations-pc3ntnxt.js → mistral-conversations-rw7fbt22.js} +4 -4
- package/dist/{node-a5e00qhp.js → node-8zkdq42h.js} +834 -833
- package/dist/{oauth-refresh-sweep-m1etk2mx.js → oauth-refresh-sweep-1csdfebf.js} +10 -8
- package/dist/{onboard-0q8sdfqc.js → onboard-r6b78cs4.js} +10 -10
- package/dist/{openai-codex-responses-n7n683p2.js → openai-codex-responses-efvrgrq3.js} +4 -4
- package/dist/{openai-completions-jpaj5g2b.js → openai-completions-bbbrrz4z.js} +12 -8
- package/dist/{openai-responses-9a3nme9j.js → openai-responses-9jjyrcm1.js} +15 -10
- package/dist/{opencode-adapter-4wcgmvgf.js → opencode-adapter-kb3g6pkf.js} +2 -2
- package/dist/{otel-impl-hnqm9mxq.js → otel-impl-0y9knpky.js} +5 -5
- package/dist/{pi-mono-adapter-d6sqm9wr.js → pi-mono-adapter-z6s1bme2.js} +100 -19
- package/dist/{pricing-refresh-y60z64pm.js → pricing-refresh-mth26tgp.js} +11 -9
- package/dist/{rbac-roles-8pa0754b.js → rbac-roles-kwntb23q.js} +13 -9
- package/dist/rbac-roles-vpk4ebm8.js +45 -0
- package/dist/{registry-v5wytg0s.js → registry-km6t1jd2.js} +1 -1
- package/dist/{render-v2-418s1vj7.js → render-v2-hcm7h00y.js} +13 -11
- package/dist/{runtime-3pknc168.js → runtime-vfjsfsc5.js} +4 -4
- package/dist/{setup-yghdkj4x.js → setup-hbyzd65h.js} +2 -2
- package/dist/{virtual-modules-jcceevt5.js → virtual-modules-9bv7ry91.js} +9 -8
- package/dist/{work-objects-j1sz20v9.js → work-objects-m09sxnhe.js} +36 -33
- package/dist/{worker-d4gcvkjt.js → worker-0h35rvk4.js} +45 -41
- package/openapi.json +491 -12
- package/package.json +13 -6
- package/src/be/api-drain.ts +184 -0
- package/src/be/db/tasks/read.ts +31 -6
- package/src/be/db/tasks/write.ts +5 -4
- package/src/be/db.ts +42 -18
- package/src/be/memory/link-resolver.ts +29 -3
- package/src/be/migrations/192_favorites_agent_fs_path.sql +36 -0
- package/src/be/onboarding.ts +7 -1
- package/src/be/seed-prompt-templates.ts +1 -0
- package/src/be/swarm-config-guard.ts +35 -16
- package/src/be/task-citations.ts +11 -5
- package/src/be/users.ts +3 -0
- package/src/cli.tsx +3 -2
- package/src/comb/agent-fs.ts +39 -0
- package/src/comb/config.ts +37 -0
- package/src/comb/markers.ts +37 -0
- package/src/comb/review-batch.ts +486 -0
- package/src/comb/templates.ts +88 -0
- package/src/commands/context-preamble.ts +4 -1
- package/src/commands/hook.ts +2 -1
- package/src/commands/runner.ts +262 -68
- package/src/commands/templates.ts +10 -0
- package/src/extensions/contract-types.generated.ts +1 -1
- package/src/fs/agent-fs-provider.ts +106 -2
- package/src/heartbeat/heartbeat.ts +4 -0
- package/src/hooks/codex-hook.ts +25 -1
- package/src/hooks/hook.ts +13 -0
- package/src/hooks/pr-body-guard.ts +983 -0
- package/src/http/all-routes.ts +1 -0
- package/src/http/assets.ts +5 -17
- package/src/http/comb.ts +131 -0
- package/src/http/core.ts +2 -1
- package/src/http/fs.ts +9 -17
- package/src/http/index.ts +23 -9
- package/src/http/onboarding.ts +21 -2
- package/src/http/poll.ts +30 -3
- package/src/http/realtime.ts +62 -0
- package/src/http/request-principal.ts +22 -0
- package/src/http/status.ts +34 -2
- package/src/kv-reserved-namespaces.ts +10 -5
- package/src/providers/dsh-adapter.ts +1 -1
- package/src/providers/pi-mono-adapter.ts +123 -0
- package/src/rbac/legacy-policy.ts +1 -0
- package/src/rbac/permissions.ts +4 -0
- package/src/realtime/auth.ts +63 -1
- package/src/realtime/tickets.ts +52 -0
- package/src/realtime/transport.ts +51 -22
- package/src/scripts-runtime/types/swarm-extension.d.ts +3 -1
- package/src/telemetry-context.ts +175 -0
- package/src/telemetry-contract/EVENTS.md +81 -0
- package/src/telemetry-contract/SOURCE.json +9 -0
- package/src/telemetry-contract/catalog.json +1335 -0
- package/src/telemetry-contract/index.ts +60 -0
- package/src/telemetry-contract/types.gen.ts +1971 -0
- package/src/telemetry-identity.ts +129 -0
- package/src/telemetry-snapshot.ts +211 -0
- package/src/telemetry-trigger.ts +125 -0
- package/src/telemetry-types.typetest.ts +40 -0
- package/src/telemetry.ts +271 -67
- package/src/tests/api-drain-e2e.test.ts +249 -0
- package/src/tests/api-drain-worker-e2e.test.ts +216 -0
- package/src/tests/api-drain.test.ts +351 -0
- package/src/tests/comb-config-guard.test.ts +38 -0
- package/src/tests/comb-links.test.ts +162 -0
- package/src/tests/comb-markers.test.ts +68 -0
- package/src/tests/comb-review-batch.test.ts +770 -0
- package/src/tests/comb-status.test.ts +152 -0
- package/src/tests/db-task-read-contract.test.ts +2 -0
- package/src/tests/db-task-write-contract.test.ts +1 -0
- package/src/tests/docs-index-footprint.test.js +3 -3
- package/src/tests/dsh-adapter.test.ts +1 -1
- package/src/tests/favorites-agent-fs-path.test.ts +226 -0
- package/src/tests/memory-link-resolver.test.ts +34 -0
- package/src/tests/onboarding.test.ts +108 -0
- package/src/tests/pi-mono-adapter.test.ts +265 -2
- package/src/tests/pr-body-leaks.test.ts +789 -0
- package/src/tests/preload.ts +8 -0
- package/src/tests/rbac-engine.test.ts +19 -0
- package/src/tests/realtime-room-auth.test.ts +104 -1
- package/src/tests/realtime-tickets.test.ts +74 -0
- package/src/tests/realtime-transport.test.ts +131 -4
- package/src/tests/runner-api-drain.test.ts +301 -0
- package/src/tests/runner-fallback-output.test.ts +61 -0
- package/src/tests/runner-fenced-json-output.test.ts +178 -0
- package/src/tests/script-connections.test.ts +2 -0
- package/src/tests/send-task-requested-by.test.ts +133 -15
- package/src/tests/task-lifecycle-telemetry.test.ts +8 -3
- package/src/tests/telemetry-context.test.ts +314 -0
- package/src/tests/telemetry-init.test.ts +51 -19
- package/src/tests/telemetry-snapshot.test.ts +229 -0
- package/src/tests/telemetry-trigger.test.ts +200 -0
- package/src/tests/template-registry-helpers.ts +1 -0
- package/src/tests/workflow-agent-task-retry.test.ts +363 -0
- package/src/tests/workflow-definition-telemetry.test.ts +4 -4
- package/src/tools/poll-task.ts +20 -1
- package/src/tools/send-task.ts +9 -1
- package/src/tools/task-action.ts +11 -0
- package/src/types.ts +2 -1
- package/src/utils/api-drain.ts +24 -0
- package/src/utils/constants.ts +57 -16
- package/src/utils/pr-body-leaks.ts +172 -0
- package/src/utils/task-attachment-links.ts +14 -8
- package/src/workflows/recovery.ts +26 -1
- package/src/workflows/resume.ts +31 -4
- package/src/workflows/task-step-routing.ts +75 -2
- package/tsconfig.json +3 -0
- package/dist/cli-tjf4cn8z.js +0 -9119
- package/dist/cli-tsk3nz8a.js +0 -582
- package/dist/{cli-t6v2ah3r.js → cli-twrh04ap.js} +3 -3
|
@@ -2,23 +2,25 @@ import {
|
|
|
2
2
|
forceRefreshAuthorizationOrThrow,
|
|
3
3
|
getAuthorizationById,
|
|
4
4
|
listAuthorizationSweepRows
|
|
5
|
-
} from "./cli-
|
|
6
|
-
import"./cli-
|
|
5
|
+
} from "./cli-kh04eqwe.js";
|
|
6
|
+
import"./cli-jf7wmv1r.js";
|
|
7
|
+
import"./cli-xqpk3rp7.js";
|
|
7
8
|
import"./cli-3qhyh31j.js";
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-yrg7c73k.js";
|
|
10
|
-
import"./cli-ptr8h7kp.js";
|
|
11
|
-
import"./cli-xk79303e.js";
|
|
9
|
+
import"./cli-7af8yhav.js";
|
|
12
10
|
import"./cli-n7h1kqpf.js";
|
|
11
|
+
import"./cli-eg0b3p0k.js";
|
|
12
|
+
import"./cli-xk79303e.js";
|
|
13
13
|
import"./cli-ywybs5as.js";
|
|
14
|
-
import"./cli-
|
|
14
|
+
import"./cli-gd4favx9.js";
|
|
15
|
+
import"./cli-qrgt5bqf.js";
|
|
16
|
+
import"./cli-qjjvzwzd.js";
|
|
15
17
|
import"./cli-1a2j50m0.js";
|
|
16
18
|
import"./cli-f9w1semm.js";
|
|
17
19
|
import"./cli-ej6gbxfb.js";
|
|
18
20
|
import"./cli-jyy6pm2f.js";
|
|
19
21
|
import"./cli-sd0mxa3c.js";
|
|
20
22
|
import"./cli-w5e1d1vv.js";
|
|
21
|
-
import"./cli-
|
|
23
|
+
import"./cli-sqvfa090.js";
|
|
22
24
|
import {
|
|
23
25
|
init_secret_scrubber,
|
|
24
26
|
scrubSecrets
|
|
@@ -3,22 +3,13 @@ import {
|
|
|
3
3
|
createDefaultMcpJson,
|
|
4
4
|
createDefaultSettingsLocal,
|
|
5
5
|
createHooksConfig
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-vxe6qa4h.js";
|
|
7
7
|
import {
|
|
8
8
|
require_jsx_dev_runtime
|
|
9
9
|
} from "./cli-t3p77qk1.js";
|
|
10
10
|
import {
|
|
11
11
|
getApiKey
|
|
12
12
|
} from "./cli-f14fvzag.js";
|
|
13
|
-
import {
|
|
14
|
-
getSlackConfiguration,
|
|
15
|
-
init_config,
|
|
16
|
-
isSlackConfigured
|
|
17
|
-
} from "./cli-n7h1kqpf.js";
|
|
18
|
-
import {
|
|
19
|
-
init_package,
|
|
20
|
-
package_default
|
|
21
|
-
} from "./cli-a8c82p2t.js";
|
|
22
13
|
import {
|
|
23
14
|
Box_default,
|
|
24
15
|
Select,
|
|
@@ -31,6 +22,15 @@ import {
|
|
|
31
22
|
} from "./cli-fkqhbg8g.js";
|
|
32
23
|
import"./cli-0xqde53b.js";
|
|
33
24
|
import"./cli-pqetb83f.js";
|
|
25
|
+
import {
|
|
26
|
+
getSlackConfiguration,
|
|
27
|
+
init_config,
|
|
28
|
+
isSlackConfigured
|
|
29
|
+
} from "./cli-n7h1kqpf.js";
|
|
30
|
+
import {
|
|
31
|
+
init_package,
|
|
32
|
+
package_default
|
|
33
|
+
} from "./cli-sqvfa090.js";
|
|
34
34
|
import {
|
|
35
35
|
__toESM
|
|
36
36
|
} from "./cli-bc05qbss.js";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
convertResponsesMessages,
|
|
3
3
|
convertResponsesTools,
|
|
4
4
|
processResponsesStream
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-g739zqzt.js";
|
|
6
6
|
import {
|
|
7
7
|
clampOpenAIPromptCacheKey
|
|
8
8
|
} from "./cli-mrptpp86.js";
|
|
@@ -24,13 +24,11 @@ import {
|
|
|
24
24
|
import {
|
|
25
25
|
buildBaseOptions,
|
|
26
26
|
createGrammarToolInputProperties
|
|
27
|
-
} from "./cli-
|
|
27
|
+
} from "./cli-mbssg1xv.js";
|
|
28
28
|
import"./cli-y2apkfe2.js";
|
|
29
29
|
import {
|
|
30
30
|
headersToRecord
|
|
31
31
|
} from "./cli-7kyk9jr3.js";
|
|
32
|
-
import"./cli-btbzvq95.js";
|
|
33
|
-
import"./cli-1m2e086m.js";
|
|
34
32
|
import {
|
|
35
33
|
clampThinkingLevel,
|
|
36
34
|
getDeclaredTools,
|
|
@@ -40,6 +38,8 @@ import {
|
|
|
40
38
|
resolveTranscript,
|
|
41
39
|
resolveTranscriptTools
|
|
42
40
|
} from "./cli-ykk5jaax.js";
|
|
41
|
+
import"./cli-btbzvq95.js";
|
|
42
|
+
import"./cli-1m2e086m.js";
|
|
43
43
|
import {
|
|
44
44
|
AssistantMessageEventStream,
|
|
45
45
|
appendAssistantMessageDiagnostic,
|
|
@@ -30,21 +30,16 @@ import {
|
|
|
30
30
|
getJsonSchemaToolParameters,
|
|
31
31
|
resolveGrammarConstrainedSampling,
|
|
32
32
|
resolveJsonSchemaStrictSampling,
|
|
33
|
+
resolveSamplingParams,
|
|
33
34
|
thinkingBudgetForLevel,
|
|
34
35
|
transformMessages
|
|
35
|
-
} from "./cli-
|
|
36
|
+
} from "./cli-mbssg1xv.js";
|
|
36
37
|
import {
|
|
37
38
|
sanitizeSurrogates
|
|
38
39
|
} from "./cli-y2apkfe2.js";
|
|
39
40
|
import {
|
|
40
41
|
headersToRecord
|
|
41
42
|
} from "./cli-7kyk9jr3.js";
|
|
42
|
-
import {
|
|
43
|
-
getProviderEnvValue
|
|
44
|
-
} from "./cli-btbzvq95.js";
|
|
45
|
-
import {
|
|
46
|
-
parseStreamingJson
|
|
47
|
-
} from "./cli-1m2e086m.js";
|
|
48
43
|
import {
|
|
49
44
|
calculateCost,
|
|
50
45
|
clampThinkingLevel,
|
|
@@ -54,6 +49,12 @@ import {
|
|
|
54
49
|
resolveTranscript,
|
|
55
50
|
resolveTranscriptTools
|
|
56
51
|
} from "./cli-ykk5jaax.js";
|
|
52
|
+
import {
|
|
53
|
+
getProviderEnvValue
|
|
54
|
+
} from "./cli-btbzvq95.js";
|
|
55
|
+
import {
|
|
56
|
+
parseStreamingJson
|
|
57
|
+
} from "./cli-1m2e086m.js";
|
|
57
58
|
import {
|
|
58
59
|
AssistantMessageEventStream
|
|
59
60
|
} from "./cli-bzr0ftht.js";
|
|
@@ -708,7 +709,10 @@ function buildParams(model, context, options, compat = getCompat(model), cacheRe
|
|
|
708
709
|
params.providerOptions = { gateway: gatewayOptions };
|
|
709
710
|
}
|
|
710
711
|
}
|
|
711
|
-
|
|
712
|
+
const samplingParams = resolveSamplingParams(model, options?.reasoningEffort ?? "off", options?.samplingParams);
|
|
713
|
+
if (samplingParams) {
|
|
714
|
+
Object.assign(params, samplingParams);
|
|
715
|
+
}
|
|
712
716
|
return params;
|
|
713
717
|
}
|
|
714
718
|
function resolveThinkingTokenBudgetField(compat) {
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
convertResponsesMessages,
|
|
7
7
|
convertResponsesTools,
|
|
8
8
|
processResponsesStream
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-g739zqzt.js";
|
|
10
10
|
import {
|
|
11
11
|
clampOpenAIPromptCacheKey
|
|
12
12
|
} from "./cli-mrptpp86.js";
|
|
@@ -26,22 +26,23 @@ import {
|
|
|
26
26
|
} from "./cli-6map995v.js";
|
|
27
27
|
import {
|
|
28
28
|
buildBaseOptions,
|
|
29
|
-
createGrammarToolInputProperties
|
|
30
|
-
|
|
29
|
+
createGrammarToolInputProperties,
|
|
30
|
+
resolveSamplingParams
|
|
31
|
+
} from "./cli-mbssg1xv.js";
|
|
31
32
|
import"./cli-y2apkfe2.js";
|
|
32
33
|
import {
|
|
33
34
|
headersToRecord
|
|
34
35
|
} from "./cli-7kyk9jr3.js";
|
|
35
|
-
import {
|
|
36
|
-
getProviderEnvValue
|
|
37
|
-
} from "./cli-btbzvq95.js";
|
|
38
|
-
import"./cli-1m2e086m.js";
|
|
39
36
|
import {
|
|
40
37
|
clampThinkingLevel,
|
|
41
38
|
getDeclaredTools,
|
|
42
39
|
resolveTranscript,
|
|
43
40
|
resolveTranscriptTools
|
|
44
41
|
} from "./cli-ykk5jaax.js";
|
|
42
|
+
import {
|
|
43
|
+
getProviderEnvValue
|
|
44
|
+
} from "./cli-btbzvq95.js";
|
|
45
|
+
import"./cli-1m2e086m.js";
|
|
45
46
|
import {
|
|
46
47
|
AssistantMessageEventStream
|
|
47
48
|
} from "./cli-bzr0ftht.js";
|
|
@@ -273,9 +274,10 @@ function buildParams(model, context, options, compat = getCompat(model), grammar
|
|
|
273
274
|
if (options?.toolChoice !== undefined) {
|
|
274
275
|
params.tool_choice = options.toolChoice;
|
|
275
276
|
}
|
|
277
|
+
const reasoningEffort = options?.reasoningEffort ?? (options?.reasoningSummary ? "medium" : undefined);
|
|
276
278
|
if (model.reasoning) {
|
|
277
|
-
if (
|
|
278
|
-
const effort = options?.reasoningEffort ? model.thinkingLevelMap?.[options.reasoningEffort] ?? options.reasoningEffort :
|
|
279
|
+
if (reasoningEffort) {
|
|
280
|
+
const effort = options?.reasoningEffort ? model.thinkingLevelMap?.[options.reasoningEffort] ?? options.reasoningEffort : reasoningEffort;
|
|
279
281
|
params.reasoning = {
|
|
280
282
|
effort,
|
|
281
283
|
summary: options?.reasoningSummary || "auto"
|
|
@@ -289,7 +291,10 @@ function buildParams(model, context, options, compat = getCompat(model), grammar
|
|
|
289
291
|
if (model.provider === "xai")
|
|
290
292
|
params.include = ["reasoning.encrypted_content"];
|
|
291
293
|
}
|
|
292
|
-
|
|
294
|
+
const samplingParams = resolveSamplingParams(model, reasoningEffort ?? "off", options?.samplingParams);
|
|
295
|
+
if (samplingParams) {
|
|
296
|
+
Object.assign(params, samplingParams);
|
|
297
|
+
}
|
|
293
298
|
return params;
|
|
294
299
|
}
|
|
295
300
|
function getServiceTierCostMultiplier(model, serviceTier) {
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
applyOpenRouterBaseUrlOverride,
|
|
7
7
|
checkOpencodeCredentials,
|
|
8
8
|
resolveContextModePluginPath
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-twrh04ap.js";
|
|
10
10
|
import"./cli-gt4hxb8p.js";
|
|
11
|
-
import"./cli-tng3131n.js";
|
|
12
11
|
import"./cli-zm7njwzd.js";
|
|
13
12
|
import"./cli-wgbezhw2.js";
|
|
14
13
|
import"./cli-tre4bdgq.js";
|
|
14
|
+
import"./cli-tng3131n.js";
|
|
15
15
|
import"./cli-5bfdm1ah.js";
|
|
16
16
|
import"./cli-2hhfhfq5.js";
|
|
17
17
|
import"./cli-re8z5p8p.js";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
require_dist
|
|
3
3
|
} from "./cli-7nxes1hs.js";
|
|
4
|
+
import {
|
|
5
|
+
exports_supports_color,
|
|
6
|
+
init_supports_color
|
|
7
|
+
} from "./cli-bd957dgb.js";
|
|
4
8
|
import {
|
|
5
9
|
init_package,
|
|
6
10
|
package_default
|
|
7
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-sqvfa090.js";
|
|
8
12
|
import {
|
|
9
13
|
init_secret_scrubber,
|
|
10
14
|
scrubSecrets
|
|
11
15
|
} from "./cli-nexqx4ve.js";
|
|
12
|
-
import {
|
|
13
|
-
exports_supports_color,
|
|
14
|
-
init_supports_color
|
|
15
|
-
} from "./cli-bd957dgb.js";
|
|
16
16
|
import {
|
|
17
17
|
require_src
|
|
18
18
|
} from "./cli-knd276ed.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readPkgVersion
|
|
3
3
|
} from "./cli-gt4hxb8p.js";
|
|
4
|
-
import {
|
|
5
|
-
fetchInstalledMcpServers
|
|
6
|
-
} from "./cli-tng3131n.js";
|
|
7
4
|
import {
|
|
8
5
|
summarizeSession
|
|
9
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-4dcpaefp.js";
|
|
10
7
|
import {
|
|
11
8
|
checkToolLoop,
|
|
12
9
|
clearToolHistory
|
|
13
10
|
} from "./cli-hp1n6zq3.js";
|
|
11
|
+
import {
|
|
12
|
+
fetchInstalledMcpServers
|
|
13
|
+
} from "./cli-tng3131n.js";
|
|
14
14
|
import {
|
|
15
15
|
DefaultResourceLoader,
|
|
16
16
|
ModelRuntime,
|
|
@@ -20,15 +20,16 @@ import {
|
|
|
20
20
|
createCodemodeExtension,
|
|
21
21
|
createMcpExtension,
|
|
22
22
|
createToolSearchExtension
|
|
23
|
-
} from "./cli-
|
|
24
|
-
import"./cli-
|
|
25
|
-
import"./cli-
|
|
26
|
-
import"./cli-
|
|
27
|
-
import"./cli-
|
|
23
|
+
} from "./cli-7tre70zp.js";
|
|
24
|
+
import"./cli-hmsw1gpy.js";
|
|
25
|
+
import"./cli-4cwxn7gp.js";
|
|
26
|
+
import"./cli-8ev9xqnx.js";
|
|
27
|
+
import"./cli-p0r8sxj5.js";
|
|
28
|
+
import"./cli-bsky8g7w.js";
|
|
28
29
|
import {
|
|
29
30
|
getAgentDir,
|
|
30
31
|
setEmbeddedQuickJSWasmPath
|
|
31
|
-
} from "./cli-
|
|
32
|
+
} from "./cli-s3hwpt9v.js";
|
|
32
33
|
import"./cli-5bfdm1ah.js";
|
|
33
34
|
import"./cli-0m7wct0d.js";
|
|
34
35
|
import {
|
|
@@ -47,7 +48,7 @@ import {
|
|
|
47
48
|
import {
|
|
48
49
|
McpHttpClient
|
|
49
50
|
} from "./cli-epan13p1.js";
|
|
50
|
-
import"./cli-
|
|
51
|
+
import"./cli-5bcd7sfy.js";
|
|
51
52
|
import"./cli-yy6dew39.js";
|
|
52
53
|
import {
|
|
53
54
|
DEFAULT_OPENROUTER_BASE_URL,
|
|
@@ -57,17 +58,31 @@ import"./cli-2x0e561b.js";
|
|
|
57
58
|
import {
|
|
58
59
|
getBuiltinModel,
|
|
59
60
|
getBuiltinModels
|
|
60
|
-
} from "./cli-
|
|
61
|
+
} from "./cli-nt8hecg9.js";
|
|
61
62
|
import {
|
|
62
63
|
exports_typebox
|
|
63
64
|
} from "./cli-rb9m6rpe.js";
|
|
64
65
|
import"./cli-bsakbbkm.js";
|
|
65
66
|
import"./cli-trc24wk2.js";
|
|
66
67
|
import"./cli-3er6gcsn.js";
|
|
68
|
+
import"./cli-0xqde53b.js";
|
|
69
|
+
import"./cli-pqetb83f.js";
|
|
70
|
+
import"./cli-13hw4z91.js";
|
|
71
|
+
import"./cli-ykk5jaax.js";
|
|
72
|
+
import"./cli-btbzvq95.js";
|
|
73
|
+
import"./cli-1m2e086m.js";
|
|
74
|
+
import"./cli-bzr0ftht.js";
|
|
67
75
|
import {
|
|
68
76
|
CORE_TOOLS,
|
|
69
77
|
init_tool_config
|
|
70
78
|
} from "./cli-3qhyh31j.js";
|
|
79
|
+
import {
|
|
80
|
+
init_templates
|
|
81
|
+
} from "./cli-qrgt5bqf.js";
|
|
82
|
+
import {
|
|
83
|
+
init_resolver,
|
|
84
|
+
resolveTemplateAsync
|
|
85
|
+
} from "./cli-qjjvzwzd.js";
|
|
71
86
|
import"./cli-1a2j50m0.js";
|
|
72
87
|
import"./cli-f9w1semm.js";
|
|
73
88
|
import {
|
|
@@ -81,13 +96,6 @@ import {
|
|
|
81
96
|
init_secret_scrubber,
|
|
82
97
|
scrubSecrets
|
|
83
98
|
} from "./cli-nexqx4ve.js";
|
|
84
|
-
import"./cli-0xqde53b.js";
|
|
85
|
-
import"./cli-pqetb83f.js";
|
|
86
|
-
import"./cli-13hw4z91.js";
|
|
87
|
-
import"./cli-btbzvq95.js";
|
|
88
|
-
import"./cli-1m2e086m.js";
|
|
89
|
-
import"./cli-ykk5jaax.js";
|
|
90
|
-
import"./cli-bzr0ftht.js";
|
|
91
99
|
import {
|
|
92
100
|
__require,
|
|
93
101
|
__toESM
|
|
@@ -104,6 +112,8 @@ var quickjs_default = "./quickjs-r1pq2107.wasm";
|
|
|
104
112
|
setEmbeddedQuickJSWasmPath(quickjs_default);
|
|
105
113
|
|
|
106
114
|
// src/providers/pi-mono-adapter.ts
|
|
115
|
+
init_templates();
|
|
116
|
+
init_resolver();
|
|
107
117
|
init_tool_config();
|
|
108
118
|
|
|
109
119
|
// src/utils/aws-error-classifier.ts
|
|
@@ -973,6 +983,23 @@ function extractPiAssistantText(message) {
|
|
|
973
983
|
return "";
|
|
974
984
|
return extractTextContent(msg.content);
|
|
975
985
|
}
|
|
986
|
+
function safeLabel(value) {
|
|
987
|
+
return typeof value === "string" && /^[A-Za-z0-9_-]{1,32}$/.test(value) ? value : "other";
|
|
988
|
+
}
|
|
989
|
+
function describeAssistantTurn(message) {
|
|
990
|
+
const msg = message ?? {};
|
|
991
|
+
const blocks = Array.isArray(msg.content) ? msg.content : [];
|
|
992
|
+
const blockTypes = blocks.map((b) => safeLabel(b?.type));
|
|
993
|
+
const output = msg.usage?.output;
|
|
994
|
+
return {
|
|
995
|
+
stopReason: typeof msg.stopReason === "string" ? safeLabel(msg.stopReason) : undefined,
|
|
996
|
+
blockTypes: typeof msg.content === "string" && msg.content.trim() ? ["text"] : blockTypes,
|
|
997
|
+
outputTokens: typeof output === "number" ? output : undefined,
|
|
998
|
+
hasText: extractTextContent(msg.content) !== "",
|
|
999
|
+
hasToolCall: blockTypes.includes("toolCall")
|
|
1000
|
+
};
|
|
1001
|
+
}
|
|
1002
|
+
var TERMINAL_STORE_PROGRESS_STATUSES = new Set(["completed", "failed"]);
|
|
976
1003
|
|
|
977
1004
|
class PiMonoSession {
|
|
978
1005
|
listeners = [];
|
|
@@ -990,6 +1017,11 @@ class PiMonoSession {
|
|
|
990
1017
|
terminalError = null;
|
|
991
1018
|
appliedReasoningEffort;
|
|
992
1019
|
sessionEnded = false;
|
|
1020
|
+
lastAssistantTurn = null;
|
|
1021
|
+
pendingTerminalStoreProgress = new Set;
|
|
1022
|
+
terminalStoreProgressDone = false;
|
|
1023
|
+
emptyTurnReprompted = false;
|
|
1024
|
+
abortRequested = false;
|
|
993
1025
|
constructor(agentSession, config, createdSymlink, appliedReasoningEffort = null) {
|
|
994
1026
|
this.agentSession = agentSession;
|
|
995
1027
|
this.config = config;
|
|
@@ -1032,11 +1064,21 @@ class PiMonoSession {
|
|
|
1032
1064
|
case "message_end": {
|
|
1033
1065
|
const endMsg = event.message;
|
|
1034
1066
|
if (endMsg.role === "assistant") {
|
|
1067
|
+
const turn = describeAssistantTurn(event.message);
|
|
1068
|
+
this.lastAssistantTurn = turn;
|
|
1035
1069
|
if (endMsg.stopReason === "error") {
|
|
1036
1070
|
this.terminalError = endMsg.errorMessage ?? this.terminalError ?? "Unknown error";
|
|
1037
1071
|
break;
|
|
1038
1072
|
}
|
|
1039
1073
|
this.terminalError = null;
|
|
1074
|
+
if (!turn.hasText && !turn.hasToolCall) {
|
|
1075
|
+
const tokens = turn.outputTokens === undefined ? "" : `, outputTokens=${turn.outputTokens}`;
|
|
1076
|
+
this.emit({
|
|
1077
|
+
type: "raw_stderr",
|
|
1078
|
+
content: `[pi-mono] assistant turn ended with no text and no tool call (stopReason=${turn.stopReason ?? "none"}, content=[${turn.blockTypes.join(",")}]${tokens})
|
|
1079
|
+
`
|
|
1080
|
+
});
|
|
1081
|
+
}
|
|
1040
1082
|
}
|
|
1041
1083
|
const text = extractPiAssistantText(event.message);
|
|
1042
1084
|
if (text) {
|
|
@@ -1076,6 +1118,10 @@ class PiMonoSession {
|
|
|
1076
1118
|
break;
|
|
1077
1119
|
}
|
|
1078
1120
|
case "tool_execution_start": {
|
|
1121
|
+
const status = event.args?.status;
|
|
1122
|
+
if (event.toolName.endsWith("store-progress") && typeof status === "string" && TERMINAL_STORE_PROGRESS_STATUSES.has(status)) {
|
|
1123
|
+
this.pendingTerminalStoreProgress.add(event.toolCallId);
|
|
1124
|
+
}
|
|
1079
1125
|
const model = this.reportedModel();
|
|
1080
1126
|
this.emit({
|
|
1081
1127
|
type: "raw_log",
|
|
@@ -1099,6 +1145,9 @@ class PiMonoSession {
|
|
|
1099
1145
|
break;
|
|
1100
1146
|
}
|
|
1101
1147
|
case "tool_execution_end":
|
|
1148
|
+
if (this.pendingTerminalStoreProgress.delete(event.toolCallId) && !event.isError) {
|
|
1149
|
+
this.terminalStoreProgressDone = true;
|
|
1150
|
+
}
|
|
1102
1151
|
this.emit({
|
|
1103
1152
|
type: "raw_log",
|
|
1104
1153
|
content: JSON.stringify({
|
|
@@ -1138,6 +1187,7 @@ class PiMonoSession {
|
|
|
1138
1187
|
source: "rpc"
|
|
1139
1188
|
});
|
|
1140
1189
|
await this.waitForIdle();
|
|
1190
|
+
await this.repromptAfterEmptyFinalTurn();
|
|
1141
1191
|
const stats = this.agentSession.getSessionStats();
|
|
1142
1192
|
const cost = this.buildCostData(stats);
|
|
1143
1193
|
if (this.terminalError) {
|
|
@@ -1197,6 +1247,36 @@ class PiMonoSession {
|
|
|
1197
1247
|
this.agentSession.dispose();
|
|
1198
1248
|
}
|
|
1199
1249
|
}
|
|
1250
|
+
async repromptAfterEmptyFinalTurn() {
|
|
1251
|
+
if (this.emptyTurnReprompted || !this.finalTurnNeedsReprompt())
|
|
1252
|
+
return;
|
|
1253
|
+
this.emptyTurnReprompted = true;
|
|
1254
|
+
try {
|
|
1255
|
+
const reprompt = await resolveTemplateAsync("task.nudge.empty_final_turn", {});
|
|
1256
|
+
if (reprompt.skipped || !reprompt.text.trim())
|
|
1257
|
+
return;
|
|
1258
|
+
if (!this.finalTurnNeedsReprompt())
|
|
1259
|
+
return;
|
|
1260
|
+
this.emit({
|
|
1261
|
+
type: "raw_stderr",
|
|
1262
|
+
content: `[pi-mono] final turn had no text and no tool call; sending one reprompt
|
|
1263
|
+
`
|
|
1264
|
+
});
|
|
1265
|
+
await this.agentSession.prompt(reprompt.text, { source: "rpc" });
|
|
1266
|
+
await this.waitForIdle();
|
|
1267
|
+
} catch (err) {
|
|
1268
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
1269
|
+
this.emit({
|
|
1270
|
+
type: "raw_stderr",
|
|
1271
|
+
content: `[pi-mono] empty-turn reprompt failed: ${message}
|
|
1272
|
+
`
|
|
1273
|
+
});
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
finalTurnNeedsReprompt() {
|
|
1277
|
+
const turn = this.lastAssistantTurn;
|
|
1278
|
+
return !(this.abortRequested || this.terminalError || this.terminalStoreProgressDone || !turn || turn.hasText || turn.hasToolCall || turn.stopReason === "aborted");
|
|
1279
|
+
}
|
|
1200
1280
|
waitForIdle() {
|
|
1201
1281
|
return new Promise((resolve) => {
|
|
1202
1282
|
if (!this.agentSession.isStreaming) {
|
|
@@ -1242,6 +1322,7 @@ class PiMonoSession {
|
|
|
1242
1322
|
return this.completionPromise;
|
|
1243
1323
|
}
|
|
1244
1324
|
async abort() {
|
|
1325
|
+
this.abortRequested = true;
|
|
1245
1326
|
await this.agentSession.abort();
|
|
1246
1327
|
}
|
|
1247
1328
|
async deliverSteering({ mode, text }) {
|
|
@@ -7,24 +7,26 @@ import {
|
|
|
7
7
|
requestModelCatalogRefresh,
|
|
8
8
|
resetModelCatalogRefreshGuardForTests,
|
|
9
9
|
startPricingRefreshLoop
|
|
10
|
-
} from "./cli-
|
|
11
|
-
import"./cli-
|
|
12
|
-
import"./cli-
|
|
10
|
+
} from "./cli-zvhd3f64.js";
|
|
11
|
+
import"./cli-vy3ed88x.js";
|
|
12
|
+
import"./cli-jf7wmv1r.js";
|
|
13
|
+
import"./cli-xqpk3rp7.js";
|
|
13
14
|
import"./cli-3qhyh31j.js";
|
|
14
|
-
import"./cli-
|
|
15
|
-
import"./cli-yrg7c73k.js";
|
|
16
|
-
import"./cli-ptr8h7kp.js";
|
|
17
|
-
import"./cli-xk79303e.js";
|
|
15
|
+
import"./cli-7af8yhav.js";
|
|
18
16
|
import"./cli-n7h1kqpf.js";
|
|
17
|
+
import"./cli-eg0b3p0k.js";
|
|
18
|
+
import"./cli-xk79303e.js";
|
|
19
19
|
import"./cli-ywybs5as.js";
|
|
20
|
-
import"./cli-
|
|
20
|
+
import"./cli-gd4favx9.js";
|
|
21
|
+
import"./cli-qrgt5bqf.js";
|
|
22
|
+
import"./cli-qjjvzwzd.js";
|
|
21
23
|
import"./cli-1a2j50m0.js";
|
|
22
24
|
import"./cli-f9w1semm.js";
|
|
23
25
|
import"./cli-ej6gbxfb.js";
|
|
24
26
|
import"./cli-jyy6pm2f.js";
|
|
25
27
|
import"./cli-sd0mxa3c.js";
|
|
26
28
|
import"./cli-w5e1d1vv.js";
|
|
27
|
-
import"./cli-
|
|
29
|
+
import"./cli-sqvfa090.js";
|
|
28
30
|
import"./cli-nexqx4ve.js";
|
|
29
31
|
import"./cli-zf8jjwex.js";
|
|
30
32
|
import"./cli-bc05qbss.js";
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
|
-
PermissionVerbSchema
|
|
3
|
-
|
|
2
|
+
PermissionVerbSchema,
|
|
3
|
+
init_rbac
|
|
4
|
+
} from "./cli-kdkwd3yr.js";
|
|
4
5
|
import {
|
|
5
6
|
getDb,
|
|
6
7
|
getDbClient,
|
|
7
8
|
init_db
|
|
8
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-jf7wmv1r.js";
|
|
10
|
+
import"./cli-xqpk3rp7.js";
|
|
9
11
|
import"./cli-3qhyh31j.js";
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-yrg7c73k.js";
|
|
12
|
-
import"./cli-ptr8h7kp.js";
|
|
13
|
-
import"./cli-xk79303e.js";
|
|
12
|
+
import"./cli-7af8yhav.js";
|
|
14
13
|
import"./cli-n7h1kqpf.js";
|
|
14
|
+
import"./cli-eg0b3p0k.js";
|
|
15
|
+
import"./cli-xk79303e.js";
|
|
15
16
|
import"./cli-ywybs5as.js";
|
|
16
|
-
import"./cli-
|
|
17
|
+
import"./cli-gd4favx9.js";
|
|
18
|
+
import"./cli-qrgt5bqf.js";
|
|
19
|
+
import"./cli-qjjvzwzd.js";
|
|
17
20
|
import"./cli-1a2j50m0.js";
|
|
18
21
|
import"./cli-f9w1semm.js";
|
|
19
22
|
import {
|
|
@@ -23,12 +26,13 @@ import {
|
|
|
23
26
|
import"./cli-jyy6pm2f.js";
|
|
24
27
|
import"./cli-sd0mxa3c.js";
|
|
25
28
|
import"./cli-w5e1d1vv.js";
|
|
26
|
-
import"./cli-
|
|
29
|
+
import"./cli-sqvfa090.js";
|
|
27
30
|
import"./cli-nexqx4ve.js";
|
|
28
31
|
import"./cli-zf8jjwex.js";
|
|
29
32
|
import"./cli-bc05qbss.js";
|
|
30
33
|
|
|
31
34
|
// src/be/rbac-roles.ts
|
|
35
|
+
init_rbac();
|
|
32
36
|
init_env_flag();
|
|
33
37
|
init_db();
|
|
34
38
|
var DEFAULT_ROLE_ID = "rbac-role-admin";
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BUILTIN_ROLES,
|
|
3
|
+
DEFAULT_ROLE_ID,
|
|
4
|
+
attachRole,
|
|
5
|
+
detachRole,
|
|
6
|
+
ensureRbacSeedsSynced,
|
|
7
|
+
getUserGrant,
|
|
8
|
+
init_rbac_roles,
|
|
9
|
+
listUserRoles,
|
|
10
|
+
runRbacCliCommand
|
|
11
|
+
} from "./cli-2zy95vhm.js";
|
|
12
|
+
import"./cli-kdkwd3yr.js";
|
|
13
|
+
import"./cli-jf7wmv1r.js";
|
|
14
|
+
import"./cli-xqpk3rp7.js";
|
|
15
|
+
import"./cli-3qhyh31j.js";
|
|
16
|
+
import"./cli-7af8yhav.js";
|
|
17
|
+
import"./cli-n7h1kqpf.js";
|
|
18
|
+
import"./cli-eg0b3p0k.js";
|
|
19
|
+
import"./cli-xk79303e.js";
|
|
20
|
+
import"./cli-ywybs5as.js";
|
|
21
|
+
import"./cli-gd4favx9.js";
|
|
22
|
+
import"./cli-qrgt5bqf.js";
|
|
23
|
+
import"./cli-qjjvzwzd.js";
|
|
24
|
+
import"./cli-1a2j50m0.js";
|
|
25
|
+
import"./cli-f9w1semm.js";
|
|
26
|
+
import"./cli-ej6gbxfb.js";
|
|
27
|
+
import"./cli-jyy6pm2f.js";
|
|
28
|
+
import"./cli-sd0mxa3c.js";
|
|
29
|
+
import"./cli-w5e1d1vv.js";
|
|
30
|
+
import"./cli-sqvfa090.js";
|
|
31
|
+
import"./cli-nexqx4ve.js";
|
|
32
|
+
import"./cli-zf8jjwex.js";
|
|
33
|
+
import"./cli-bc05qbss.js";
|
|
34
|
+
init_rbac_roles();
|
|
35
|
+
|
|
36
|
+
export {
|
|
37
|
+
BUILTIN_ROLES,
|
|
38
|
+
DEFAULT_ROLE_ID,
|
|
39
|
+
attachRole,
|
|
40
|
+
detachRole,
|
|
41
|
+
ensureRbacSeedsSynced,
|
|
42
|
+
getUserGrant,
|
|
43
|
+
listUserRoles,
|
|
44
|
+
runRbacCliCommand
|
|
45
|
+
};
|
|
@@ -16,30 +16,32 @@ import {
|
|
|
16
16
|
slackErrorSummary,
|
|
17
17
|
streamOutcomeCard,
|
|
18
18
|
withStatusLead
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-swfmp1fx.js";
|
|
20
20
|
import"./cli-q51yprfq.js";
|
|
21
21
|
import"./cli-3er6gcsn.js";
|
|
22
|
-
import"./cli-
|
|
22
|
+
import"./cli-cvk6yzw5.js";
|
|
23
23
|
import"./cli-yatxqynm.js";
|
|
24
|
-
import"./cli-
|
|
24
|
+
import"./cli-bd957dgb.js";
|
|
25
|
+
import"./cli-pzxba7gw.js";
|
|
26
|
+
import"./cli-jf7wmv1r.js";
|
|
27
|
+
import"./cli-xqpk3rp7.js";
|
|
25
28
|
import"./cli-3qhyh31j.js";
|
|
26
|
-
import"./cli-
|
|
27
|
-
import"./cli-yrg7c73k.js";
|
|
28
|
-
import"./cli-ptr8h7kp.js";
|
|
29
|
-
import"./cli-xk79303e.js";
|
|
29
|
+
import"./cli-7af8yhav.js";
|
|
30
30
|
import"./cli-n7h1kqpf.js";
|
|
31
|
+
import"./cli-eg0b3p0k.js";
|
|
32
|
+
import"./cli-xk79303e.js";
|
|
31
33
|
import"./cli-ywybs5as.js";
|
|
32
|
-
import"./cli-
|
|
34
|
+
import"./cli-gd4favx9.js";
|
|
35
|
+
import"./cli-qrgt5bqf.js";
|
|
36
|
+
import"./cli-qjjvzwzd.js";
|
|
33
37
|
import"./cli-1a2j50m0.js";
|
|
34
38
|
import"./cli-f9w1semm.js";
|
|
35
39
|
import"./cli-ej6gbxfb.js";
|
|
36
40
|
import"./cli-jyy6pm2f.js";
|
|
37
41
|
import"./cli-sd0mxa3c.js";
|
|
38
42
|
import"./cli-w5e1d1vv.js";
|
|
39
|
-
import"./cli-
|
|
43
|
+
import"./cli-sqvfa090.js";
|
|
40
44
|
import"./cli-nexqx4ve.js";
|
|
41
|
-
import"./cli-bd957dgb.js";
|
|
42
|
-
import"./cli-pzxba7gw.js";
|
|
43
45
|
import"./cli-zf8jjwex.js";
|
|
44
46
|
import"./cli-bc05qbss.js";
|
|
45
47
|
export {
|