@desplega.ai/agent-swarm 1.152.2 → 1.154.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 +2 -2
- package/dist/{acp-adapter-pfeje2v5.js → acp-adapter-eb2aj8xy.js} +4 -4
- package/dist/{actions-0sttc7f5.js → actions-kpnwp1kz.js} +31 -27
- package/dist/{anthropic-messages-2y8nktar.js → anthropic-messages-9vqsbznt.js} +112 -84
- package/dist/{app-p8teva95.js → app-zk1apkf6.js} +10 -7
- package/dist/{assistant-r45jnsrt.js → assistant-kwq4y50q.js} +32 -28
- package/dist/{azure-openai-responses-f38x2avq.js → azure-openai-responses-04qwdwfq.js} +27 -13
- package/dist/{boot-reembed-je26h5y7.js → boot-reembed-22hd3jjn.js} +9 -7
- package/dist/{boot-reembed-1qmybsd4.js → boot-reembed-qe168424.js} +10 -8
- package/dist/{boot-scrub-logs-gte3h1mm.js → boot-scrub-logs-pkdpsrjd.js} +7 -5
- package/dist/{claude-adapter-csc1mzka.js → claude-adapter-3fx90nww.js} +18 -16
- package/dist/{claude-managed-adapter-dsmkcrjy.js → claude-managed-adapter-ea2aga6w.js} +3 -3
- package/dist/{claude-sdk-session-fcd6f078.js → claude-sdk-session-z7fahf1k.js} +18 -16
- package/dist/{cli-r2fpe7cx.js → cli-00w2c66p.js} +61 -55
- package/dist/{cli-wbyk465z.js → cli-09y3tjxz.js} +1 -1
- package/dist/{cli-ht5rs63n.js → cli-0e31nm4n.js} +16 -7
- package/dist/cli-0x5qzvkg.js +4279 -0
- package/dist/{cli-d3p82erb.js → cli-18amys3y.js} +9 -9
- package/dist/{cli-4ahpr4sw.js → cli-1jpjafw4.js} +5 -5
- package/dist/{cli-jbmc0r7r.js → cli-243tzws8.js} +1 -1
- package/dist/{cli-ch38q5z4.js → cli-24k806sc.js} +6789 -2542
- package/dist/cli-3bkz2p7j.js +2828 -0
- package/dist/cli-3er6gcsn.js +1849 -0
- package/dist/cli-4k7jazkq.js +3339 -0
- package/dist/{cli-c4eeb5q2.js → cli-5b6b62tz.js} +1 -1
- package/dist/{cli-qd65dvr6.js → cli-5vs0nh43.js} +65 -44
- package/dist/{cli-z3wkng35.js → cli-6r3cgpk2.js} +224 -156
- package/dist/{cli-pgj4a5fb.js → cli-71cj99hx.js} +4 -3
- package/dist/cli-8sea27q4.js +14075 -0
- package/dist/{cli-jvy9qgjs.js → cli-913yakhv.js} +22 -7
- package/dist/{cli-pf9q3696.js → cli-927erqqt.js} +5 -2
- package/dist/cli-95jnpnqg.js +230 -0
- package/dist/{cli-wpv5rgg2.js → cli-abp3g4ax.js} +15 -2
- package/dist/{cli-ckz5t2hb.js → cli-acy6bfhr.js} +10 -7
- package/dist/{cli-4yc5d8fk.js → cli-avkd6mqv.js} +50 -0
- package/dist/{cli-8wrympd7.js → cli-bzr0ftht.js} +26 -7
- package/dist/{cli-qn042eh7.js → cli-c1v10xb2.js} +194 -1913
- package/dist/cli-cgj4hc12.js +18902 -0
- package/dist/{cli-2nnd56zt.js → cli-e0pg4zeh.js} +3 -2
- package/dist/{cli-r84ctdxn.js → cli-e31ehqwy.js} +2 -2
- package/dist/{cli-gphgnvpf.js → cli-e3229na9.js} +3 -3
- package/dist/{cli-gpqcs935.js → cli-e3cyf59d.js} +2 -2
- package/dist/{cli-s25avqg9.js → cli-e781c6f9.js} +1 -0
- package/dist/{cli-s2qjdd6z.js → cli-eetrvv91.js} +1 -1
- package/dist/{cli-j4nv2wqy.js → cli-fdzg6jhf.js} +10 -4
- package/dist/{cli-fm4ytsdk.js → cli-g2h29qar.js} +2 -2
- package/dist/{cli-zvgj5zg8.js → cli-ge67p080.js} +302 -3497
- package/dist/cli-h38x0qhg.js +6912 -0
- package/dist/{cli-9xvdm3bx.js → cli-h60qfasa.js} +742 -278
- package/dist/{cli-jew3jda5.js → cli-hws0vn86.js} +2 -2
- package/dist/{cli-j8dggbcr.js → cli-k0g1sjzm.js} +23 -31
- package/dist/{cli-xw7vak96.js → cli-kp3qs53m.js} +5 -5
- package/dist/{cli-rgvp6r2x.js → cli-mcnhgnn1.js} +193 -4
- package/dist/{cli-zvkq5csn.js → cli-myaxtgh8.js} +7 -6
- package/dist/{cli-56h18ng2.js → cli-n62atwh9.js} +1 -1
- package/dist/cli-n7h1kqpf.js +29 -0
- package/dist/{cli-fmy65jdn.js → cli-pf1v8xhb.js} +7 -5
- package/dist/{cli-xy1cchaf.js → cli-q85qhckh.js} +238 -11
- package/dist/{cli-3bpzj8me.js → cli-r1d3dzt6.js} +2 -2
- package/dist/{pi-mono-adapter-jcqt71cg.js → cli-rxkqvngf.js} +67343 -101083
- package/dist/{cli-kj76p1ez.js → cli-scwq51gn.js} +13 -7
- package/dist/{cli-b9dd0h3k.js → cli-stwsmd6k.js} +3 -2
- package/dist/{cli-c2mk1kgf.js → cli-v4en75c5.js} +8 -1
- package/dist/{cli-z61ykvam.js → cli-wg04s9kr.js} +4 -3
- package/dist/cli-yn0a417a.js +4069 -0
- package/dist/{cli-zfzznn7c.js → cli-ytxs7mn1.js} +26 -2
- package/dist/{cli-4j8k1m4w.js → cli-zt1227k1.js} +1162 -192
- package/dist/cli.js +28 -35
- package/dist/{codex-adapter-fxmpsabw.js → codex-adapter-ttdm995v.js} +12 -11
- package/dist/{codex-hook-8jexc34x.js → codex-hook-8gx7bcz0.js} +3 -3
- package/dist/{codex-session-runner-rr1e47ea.js → codex-session-runner-3v8nh4c8.js} +12 -11
- package/dist/{commands-0f5rxz51.js → commands-1cxwbhhq.js} +7 -5
- package/dist/{db-r3jxf3wy.js → db-y9zwsr79.js} +25 -5
- package/dist/{dispatcher-06vph6q4.js → dispatcher-9m9zss36.js} +30 -26
- package/dist/dsh-adapter-gsb2qqf9.js +19 -0
- package/dist/{e2b-413b8t4v.js → e2b-93x1k0j5.js} +6 -7
- package/dist/{google-generative-ai-ndjmj5fa.js → google-generative-ai-gwwrnzqn.js} +33 -73
- package/dist/{google-vertex-fr665tqs.js → google-vertex-5wfawpwz.js} +38 -68
- package/dist/{handlers-0hgtc910.js → handlers-36fm1bwn.js} +33 -29
- package/dist/{hook-9kvrv1er.js → hook-pntw4r8h.js} +12 -10
- package/dist/{hook-fbfhkat3.js → hook-vwq8y26p.js} +13 -11
- package/dist/{http-xbyx8k5j.js → http-20jesakk.js} +357 -261
- package/dist/{index-jsw3aynb.js → index-6artrehg.js} +30 -26
- package/dist/{cli-pdz9qde4.js → index-9ch1n761.js} +10 -11
- package/dist/{index-rnyahfn5.js → index-9n5z2492.js} +30 -26
- package/dist/{index-66xz5e9j.js → index-h5gs261z.js} +521 -9
- package/dist/{index-tfsdxyv6.js → index-j5wrf1yw.js} +40 -25
- package/dist/{index-2sp0384z.js → index-kkeftv5h.js} +738 -21
- package/dist/{index-sgk50mbg.js → index-m2xqpz5r.js} +31 -27
- package/dist/{index-gpfn1741.js → index-m9ks8a7t.js} +9 -7
- package/dist/index-w097eg0x.js +5 -0
- package/dist/jiti-loader-b4837mtm.js +34 -0
- package/dist/jiti-static-loader-q2g5ds0y.js +31267 -0
- package/dist/{keepalive-s3xpr7sw.js → keepalive-pwxvxd2c.js} +9 -7
- package/dist/{lead-rq4n5r16.js → lead-m789wqa3.js} +46 -41
- package/dist/{maintenance-f0atj1ab.js → maintenance-bvg6w7e2.js} +10 -8
- package/dist/{mistral-conversations-qhr84ph3.js → mistral-conversations-zx0kn554.js} +24 -18
- package/dist/{node-x1g4v0pq.js → node-5qtycf6a.js} +16 -11
- package/dist/{oauth-refresh-sweep-q0t3bxre.js → oauth-refresh-sweep-6v4bd737.js} +8 -6
- package/dist/{onboard-br5j1kch.js → onboard-snckpcj1.js} +115 -35
- package/dist/{openai-codex-responses-wy6a43wd.js → openai-codex-responses-4vjqzvjp.js} +33 -27
- package/dist/{openai-completions-32rdwmze.js → openai-completions-pxsmym7g.js} +52 -64
- package/dist/{openai-responses-6xwf7bzg.js → openai-responses-tmn0rqp0.js} +23 -24
- package/dist/{opencode-adapter-28axqa09.js → opencode-adapter-qbmv4tpy.js} +6 -6
- package/dist/{otel-impl-vdqge2nt.js → otel-impl-e0ytens5.js} +4 -4
- package/dist/{pi-messages-b1mbr6gp.js → pi-messages-txpjj39q.js} +3 -3
- package/dist/pi-mono-adapter-c4ggemhz.js +1316 -0
- package/dist/{pricing-refresh-hb3691fd.js → pricing-refresh-52g2ywrw.js} +9 -7
- package/dist/{rbac-roles-t78xt39b.js → rbac-roles-5455kfdn.js} +8 -6
- package/dist/{rbac-roles-jh280k9g.js → rbac-roles-hbf0xa52.js} +9 -7
- package/dist/{render-v2-7p8r2ymg.js → render-v2-npm8xdzh.js} +16 -9
- package/dist/{seed-pricing-hf889enh.js → seed-pricing-650wbr1n.js} +8 -6
- package/dist/{setup-w6mb03jv.js → setup-k1mew5rf.js} +4 -5
- package/dist/virtual-modules-2q5b2pk4.js +54 -0
- package/dist/{work-objects-nt8gy1kj.js → work-objects-2ea3kvwg.js} +33 -29
- package/dist/{worker-dwy617t0.js → worker-ec6hvc4m.js} +46 -41
- package/openapi.json +109 -16
- package/package.json +7 -6
- package/plugin/opencode-plugins/lib/memory-raters.ts +7 -0
- package/src/be/automation-preflight.ts +6 -4
- package/src/be/db/agents.ts +75 -2
- package/src/be/db/tasks/read.ts +2 -0
- package/src/be/db/tasks/write.ts +7 -1
- package/src/be/db.ts +140 -18
- package/src/be/extensions/db.ts +35 -4
- package/src/be/memory/raters/llm.ts +2 -6
- package/src/be/memory/raters/noop.ts +2 -3
- package/src/be/memory/raters/registry.ts +4 -10
- package/src/be/migrations/157_defer_provenance_and_marker.sql +27 -0
- package/src/be/models-catalog.ts +2 -0
- package/src/be/modelsdev-cache.json +213 -0
- package/src/be/rbac-audit.ts +2 -0
- package/src/be/seed/agent-fs-provision.ts +23 -0
- package/src/be/seed-pricing.ts +3 -1
- package/src/be/swarm-config-guard.ts +1 -0
- package/src/commands/onboard/compose-generator.ts +16 -1
- package/src/commands/onboard/env-generator.ts +14 -1
- package/src/commands/onboard/manifest.ts +1 -0
- package/src/commands/onboard/steps/integration-slack.tsx +56 -16
- package/src/commands/onboard/steps/review.tsx +5 -0
- package/src/commands/onboard/types.ts +6 -0
- package/src/commands/onboard.tsx +5 -1
- package/src/commands/provider-credentials.ts +14 -2
- package/src/commands/runner.ts +18 -2
- package/src/extensions/identity.ts +15 -7
- package/src/extensions/lifecycle.ts +15 -21
- package/src/hooks/codex-hook.ts +7 -1
- package/src/http/agents.ts +12 -4
- package/src/http/config.ts +1 -1
- package/src/http/core.ts +5 -3
- package/src/http/extensions.ts +108 -34
- package/src/http/poll.ts +7 -0
- package/src/http/schedules.ts +10 -0
- package/src/http/script-runs.ts +35 -26
- package/src/http/status.ts +24 -11
- package/src/http/tasks.ts +6 -1
- package/src/prompts/base-prompt.ts +15 -7
- package/src/prompts/memories.ts +5 -7
- package/src/prompts/session-templates.ts +3 -2
- package/src/prompts/steering-delivery.ts +2 -0
- package/src/providers/claude-managed-models.ts +8 -0
- package/src/providers/codex-adapter.ts +3 -6
- package/src/providers/codex-models.ts +15 -1
- package/src/providers/dsh-adapter.ts +248 -0
- package/src/providers/index.ts +5 -1
- package/src/providers/modelsdev-reasoning.json +50 -0
- package/src/providers/pi-mono-extension.ts +2 -5
- package/src/rbac/legacy-policy.ts +15 -1
- package/src/rbac/types.ts +2 -0
- package/src/server.ts +7 -1
- package/src/slack/ack.ts +43 -8
- package/src/slack/app.ts +32 -10
- package/src/slack/config.ts +29 -0
- package/src/slack/handlers.ts +7 -1
- package/src/slack/render-v2.ts +186 -17
- package/src/slack/responses.ts +1 -3
- package/src/slack/task-output.ts +66 -8
- package/src/slack/thread-buffer.ts +27 -3
- package/src/telemetry.ts +2 -3
- package/src/tests/agent-fs-provision-seeder.test.ts +56 -2
- package/src/tests/agents-harness-provider.test.ts +19 -0
- package/src/tests/agents-list-model-display.test.ts +60 -1
- package/src/tests/base-prompt.test.ts +25 -0
- package/src/tests/claude-managed-adapter.test.ts +6 -0
- package/src/tests/codex-gpt6-release.test.ts +97 -0
- package/src/tests/codex-steering-hook.test.ts +2 -2
- package/src/tests/config-api-only-keys.test.ts +9 -0
- package/src/tests/context-window.test.ts +1 -0
- package/src/tests/db-task-read-contract.test.ts +9 -0
- package/src/tests/db-task-write-contract.test.ts +9 -0
- package/src/tests/defer-task.test.ts +115 -16
- package/src/tests/dsh-adapter.test.ts +276 -0
- package/src/tests/e2e-nightly-report.test.ts +3 -3
- package/src/tests/e2e-redact.test.ts +2 -0
- package/src/tests/env-flag.test.ts +6 -0
- package/src/tests/extension-agent-visibility.test.ts +474 -0
- package/src/tests/extensions-db.test.ts +41 -0
- package/src/tests/extensions-http.test.ts +148 -4
- package/src/tests/extensions-lifecycle.test.ts +21 -1
- package/src/tests/extensions-mcp-tools.test.ts +9 -5
- package/src/tests/fetch-resolved-env.test.ts +43 -0
- package/src/tests/internal-ai/complete-structured.test.ts +32 -9
- package/src/tests/internal-ai/credentials.test.ts +4 -4
- package/src/tests/internal-ai/models.test.ts +20 -0
- package/src/tests/memory-rate-tool.test.ts +7 -10
- package/src/tests/memory-rater-defaults.test.ts +23 -0
- package/src/tests/memory-rater-e2e.test.ts +2 -3
- package/src/tests/migration-046-budgets.test.ts +2 -0
- package/src/tests/model-control.test.ts +2 -2
- package/src/tests/onboard-compose.test.ts +14 -0
- package/src/tests/onboard-env.test.ts +17 -0
- package/src/tests/onboard-manifest.test.ts +12 -0
- package/src/tests/opus-5-5-registry.test.ts +48 -0
- package/src/tests/pricing-refresh.test.ts +1 -1
- package/src/tests/pricing-routes.test.ts +15 -3
- package/src/tests/provider-registration.test.ts +5 -2
- package/src/tests/rbac-admission-e2e.test.ts +54 -0
- package/src/tests/rbac-e2e-helpers.ts +2 -0
- package/src/tests/rbac-engine.test.ts +32 -0
- package/src/tests/rbac-wire-e2e.test.ts +33 -0
- package/src/tests/reasoning-effort.test.ts +8 -0
- package/src/tests/reload-config.test.ts +33 -0
- package/src/tests/script-connections.test.ts +3 -0
- package/src/tests/session-costs-model-key-normalize.test.ts +1 -0
- package/src/tests/slack-config.test.ts +136 -0
- package/src/tests/slack-mode-lifecycle.test.ts +69 -0
- package/src/tests/slack-render-v2.test.ts +446 -16
- package/src/tests/slack-steering.test.ts +69 -1
- package/src/tests/slack-task-output.test.ts +33 -12
- package/src/tests/status.test.ts +22 -2
- package/src/tests/steering-core.test.ts +35 -0
- package/src/tests/steering-delivery.test.ts +39 -0
- package/src/tests/steering-transport.test.ts +2 -2
- package/src/tests/task-tool-preload-mcp.test.ts +3 -1
- package/src/tests/telemetry-init.test.ts +18 -0
- package/src/tests/workflow-live-recovery.test.ts +126 -0
- package/src/tests/workflow-llm.test.ts +3 -3
- package/src/tools/defer-task.ts +64 -26
- package/src/tools/extension-common.ts +4 -0
- package/src/tools/extension-install.ts +1 -1
- package/src/tools/extension-list.ts +4 -3
- package/src/tools/join-swarm.ts +1 -1
- package/src/tools/schedules/create-schedule.ts +11 -1
- package/src/tools/schedules/patch-schedule.ts +5 -0
- package/src/tools/schedules/update-schedule.ts +5 -0
- package/src/tools/send-task.ts +6 -0
- package/src/tools/utils.ts +1 -1
- package/src/types.ts +30 -8
- package/src/utils/context-window.ts +1 -0
- package/src/utils/credentials.ts +8 -0
- package/src/utils/internal-ai/complete-structured.ts +8 -0
- package/src/utils/internal-ai/models.ts +5 -5
- package/src/utils/memory-raters.ts +3 -0
- package/src/workflows/engine.ts +28 -0
- package/src/workflows/recovery.ts +7 -4
- package/templates/schedules/daily-status-report/content.md +25 -12
- package/templates/schedules/daily-workflow-health-audit/content.md +1 -1
- package/templates/skills/swarm-extensions/content.md +9 -5
- package/dist/cli-4wppfkcm.js +0 -16384
- package/dist/cli-55qrx3q8.js +0 -6041
- package/dist/cli-cg4vnyh4.js +0 -305
- package/dist/cli-jyetr64j.js +0 -52
- package/dist/cli-pp9ax9pa.js +0 -520
- package/dist/cli-qa66qaf0.js +0 -6076
- package/dist/cli-qghpvca2.js +0 -590
- package/dist/cli-rembwgt8.js +0 -861
- package/dist/cli-tcvj7j2r.js +0 -1971
- package/dist/cli-vfcth11k.js +0 -36
- package/dist/cli-w1d1bgkk.js +0 -1422
- package/dist/cli-y6x0gqtg.js +0 -5977
- package/dist/es5-tj3tn4jj.js +0 -844
- package/dist/index-1kq5hw2p.js +0 -467
- package/dist/index-1p8wdstt.js +0 -7
- package/dist/index-8fdjzb2f.js +0 -100
- package/dist/index-bxmwzbgw.js +0 -365
- package/dist/index-nzerxd5z.js +0 -7
- package/dist/index-pyymnzat.js +0 -1168
- package/dist/index-qv6atbab.js +0 -619
- package/dist/index-rja32qa7.js +0 -801
- package/dist/index-tzg5srfp.js +0 -211
- package/dist/index-vhncw983.js +0 -90
- package/dist/index-xk036zsk.js +0 -859
- package/dist/index-zyazbzcb.js +0 -6
- package/dist/{claude-managed-setup-48dwg9bv.js → claude-managed-setup-f5pmsyrp.js} +3 -3
|
@@ -2,28 +2,30 @@ import {
|
|
|
2
2
|
GoogleGenAI,
|
|
3
3
|
convertMessages,
|
|
4
4
|
convertTools,
|
|
5
|
+
getDisabledGoogleThinkingConfig,
|
|
5
6
|
isThinkingPart,
|
|
6
7
|
mapStopReason,
|
|
7
8
|
resolveGoogleFunctionCallingMode,
|
|
8
9
|
resolveGoogleThinkingLevel,
|
|
9
10
|
retainThoughtSignature,
|
|
10
11
|
retryGoogleRequest,
|
|
11
|
-
supportsGoogleStrictToolSampling
|
|
12
|
-
|
|
12
|
+
supportsGoogleStrictToolSampling,
|
|
13
|
+
toGoogleSdkThinkingLevel,
|
|
14
|
+
toGoogleThinkingLevel,
|
|
15
|
+
usesGoogleThinkingLevel
|
|
16
|
+
} from "./cli-24k806sc.js";
|
|
13
17
|
import"./cli-s8s499xy.js";
|
|
14
18
|
import {
|
|
15
19
|
getPiUserAgent
|
|
16
20
|
} from "./cli-et1bbwqf.js";
|
|
17
21
|
import"./cli-yatxqynm.js";
|
|
18
|
-
import"./cli-76yrvwsa.js";
|
|
19
|
-
import"./cli-pzxba7gw.js";
|
|
20
22
|
import {
|
|
21
23
|
formatProviderError,
|
|
22
24
|
normalizeProviderError
|
|
23
25
|
} from "./cli-6map995v.js";
|
|
24
26
|
import {
|
|
25
27
|
buildBaseOptions
|
|
26
|
-
} from "./cli-
|
|
28
|
+
} from "./cli-k0g1sjzm.js";
|
|
27
29
|
import {
|
|
28
30
|
sanitizeSurrogates
|
|
29
31
|
} from "./cli-y2apkfe2.js";
|
|
@@ -32,17 +34,24 @@ import {
|
|
|
32
34
|
} from "./cli-vapyk8sw.js";
|
|
33
35
|
import {
|
|
34
36
|
calculateCost,
|
|
35
|
-
clampThinkingLevel
|
|
36
|
-
|
|
37
|
+
clampThinkingLevel,
|
|
38
|
+
collapseSystemMessages,
|
|
39
|
+
getCurrentTools,
|
|
40
|
+
getInitialSystemMessage,
|
|
41
|
+
getSystemMessageText
|
|
42
|
+
} from "./cli-mcnhgnn1.js";
|
|
37
43
|
import {
|
|
38
44
|
AssistantMessageEventStream
|
|
39
|
-
} from "./cli-
|
|
45
|
+
} from "./cli-bzr0ftht.js";
|
|
46
|
+
import"./cli-76yrvwsa.js";
|
|
47
|
+
import"./cli-pzxba7gw.js";
|
|
40
48
|
import"./cli-bc05qbss.js";
|
|
41
49
|
|
|
42
50
|
// node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js
|
|
43
51
|
var toolCallCounter = 0;
|
|
44
52
|
var stream = (model, context, options) => {
|
|
45
53
|
const stream2 = new AssistantMessageEventStream;
|
|
54
|
+
const normalizedContext = collapseSystemMessages(context);
|
|
46
55
|
(async () => {
|
|
47
56
|
const output = {
|
|
48
57
|
role: "assistant",
|
|
@@ -70,7 +79,7 @@ var stream = (model, context, options) => {
|
|
|
70
79
|
throw new Error(`No API key for provider: ${model.provider}`);
|
|
71
80
|
}
|
|
72
81
|
const client = createClient(model, apiKey, options?.headers);
|
|
73
|
-
let params = buildParams(model,
|
|
82
|
+
let params = buildParams(model, normalizedContext, options);
|
|
74
83
|
const nextParams = await options?.onPayload?.(params, model);
|
|
75
84
|
if (nextParams !== undefined) {
|
|
76
85
|
params = nextParams;
|
|
@@ -258,14 +267,16 @@ var streamSimple = (model, context, options) => {
|
|
|
258
267
|
return stream(model, context, { ...base, thinking: { enabled: false } });
|
|
259
268
|
}
|
|
260
269
|
const clampedReasoning = clampThinkingLevel(model, options.reasoning);
|
|
270
|
+
if (clampedReasoning === "off") {
|
|
271
|
+
return stream(model, context, { ...base, thinking: { enabled: false } });
|
|
272
|
+
}
|
|
261
273
|
const resolvedLevel = resolveGoogleThinkingLevel(model, clampedReasoning);
|
|
262
|
-
|
|
263
|
-
if (isGemini3ProModel(googleModel) || isGemini3FlashModel(googleModel) || isGemma4Model(googleModel)) {
|
|
274
|
+
if (usesGoogleThinkingLevel(model)) {
|
|
264
275
|
return stream(model, context, {
|
|
265
276
|
...base,
|
|
266
277
|
thinking: {
|
|
267
278
|
enabled: true,
|
|
268
|
-
level:
|
|
279
|
+
level: toGoogleThinkingLevel(resolvedLevel)
|
|
269
280
|
}
|
|
270
281
|
});
|
|
271
282
|
}
|
|
@@ -273,7 +284,7 @@ var streamSimple = (model, context, options) => {
|
|
|
273
284
|
...base,
|
|
274
285
|
thinking: {
|
|
275
286
|
enabled: true,
|
|
276
|
-
budgetTokens: getGoogleBudget(
|
|
287
|
+
budgetTokens: getGoogleBudget(model, resolvedLevel, options.thinkingBudgets)
|
|
277
288
|
}
|
|
278
289
|
});
|
|
279
290
|
};
|
|
@@ -294,6 +305,8 @@ function createClient(model, apiKey, optionsHeaders) {
|
|
|
294
305
|
}
|
|
295
306
|
function buildParams(model, context, options = {}) {
|
|
296
307
|
const contents = convertMessages(model, context);
|
|
308
|
+
const initialSystemMessage = getInitialSystemMessage(context.messages);
|
|
309
|
+
const currentTools = getCurrentTools(context.messages);
|
|
297
310
|
const generationConfig = {};
|
|
298
311
|
if (options.temperature !== undefined) {
|
|
299
312
|
generationConfig.temperature = options.temperature;
|
|
@@ -302,12 +315,13 @@ function buildParams(model, context, options = {}) {
|
|
|
302
315
|
generationConfig.maxOutputTokens = options.maxTokens;
|
|
303
316
|
}
|
|
304
317
|
const supportsStrictMode = supportsGoogleStrictToolSampling(model.id);
|
|
305
|
-
const functionCallingMode =
|
|
318
|
+
const functionCallingMode = currentTools.length > 0 ? resolveGoogleFunctionCallingMode(currentTools, options.toolChoice, supportsStrictMode) : undefined;
|
|
319
|
+
const systemInstruction = initialSystemMessage ? getSystemMessageText(initialSystemMessage) : "";
|
|
306
320
|
const config = {
|
|
307
321
|
...Object.keys(generationConfig).length > 0 && generationConfig,
|
|
308
|
-
...
|
|
309
|
-
...
|
|
310
|
-
tools: convertTools(
|
|
322
|
+
...systemInstruction && { systemInstruction: sanitizeSurrogates(systemInstruction) },
|
|
323
|
+
...currentTools.length > 0 && {
|
|
324
|
+
tools: convertTools(currentTools, false, supportsStrictMode)
|
|
311
325
|
},
|
|
312
326
|
...functionCallingMode !== undefined && {
|
|
313
327
|
toolConfig: { functionCallingConfig: { mode: functionCallingMode } }
|
|
@@ -316,13 +330,13 @@ function buildParams(model, context, options = {}) {
|
|
|
316
330
|
if (options.thinking?.enabled && model.reasoning) {
|
|
317
331
|
const thinkingConfig = { includeThoughts: true };
|
|
318
332
|
if (options.thinking.level !== undefined) {
|
|
319
|
-
thinkingConfig.thinkingLevel = options.thinking.level;
|
|
333
|
+
thinkingConfig.thinkingLevel = toGoogleSdkThinkingLevel(options.thinking.level);
|
|
320
334
|
} else if (options.thinking.budgetTokens !== undefined) {
|
|
321
335
|
thinkingConfig.thinkingBudget = options.thinking.budgetTokens;
|
|
322
336
|
}
|
|
323
337
|
config.thinkingConfig = thinkingConfig;
|
|
324
338
|
} else if (model.reasoning && options.thinking && !options.thinking.enabled) {
|
|
325
|
-
config.thinkingConfig =
|
|
339
|
+
config.thinkingConfig = getDisabledGoogleThinkingConfig(model);
|
|
326
340
|
}
|
|
327
341
|
if (options.signal) {
|
|
328
342
|
if (options.signal.aborted) {
|
|
@@ -337,60 +351,6 @@ function buildParams(model, context, options = {}) {
|
|
|
337
351
|
};
|
|
338
352
|
return params;
|
|
339
353
|
}
|
|
340
|
-
function isGemma4Model(model) {
|
|
341
|
-
return /gemma-?4/.test(model.id.toLowerCase());
|
|
342
|
-
}
|
|
343
|
-
function isGemini3ProModel(model) {
|
|
344
|
-
return /gemini-3(?:\.\d+)?-pro/.test(model.id.toLowerCase());
|
|
345
|
-
}
|
|
346
|
-
function isGemini3FlashModel(model) {
|
|
347
|
-
const id = model.id.toLowerCase();
|
|
348
|
-
return /gemini-3(?:\.\d+)?-flash/.test(id) || id === "gemini-flash-latest" || id === "gemini-flash-lite-latest";
|
|
349
|
-
}
|
|
350
|
-
function getDisabledThinkingConfig(model) {
|
|
351
|
-
if (isGemini3ProModel(model)) {
|
|
352
|
-
return { thinkingLevel: "LOW" };
|
|
353
|
-
}
|
|
354
|
-
if (isGemini3FlashModel(model)) {
|
|
355
|
-
return { thinkingLevel: "MINIMAL" };
|
|
356
|
-
}
|
|
357
|
-
if (isGemma4Model(model)) {
|
|
358
|
-
return { thinkingLevel: "MINIMAL" };
|
|
359
|
-
}
|
|
360
|
-
return { thinkingBudget: 0 };
|
|
361
|
-
}
|
|
362
|
-
function getThinkingLevel(effort, model) {
|
|
363
|
-
if (isGemini3ProModel(model)) {
|
|
364
|
-
switch (effort) {
|
|
365
|
-
case "minimal":
|
|
366
|
-
case "low":
|
|
367
|
-
return "LOW";
|
|
368
|
-
case "medium":
|
|
369
|
-
case "high":
|
|
370
|
-
return "HIGH";
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
if (isGemma4Model(model)) {
|
|
374
|
-
switch (effort) {
|
|
375
|
-
case "minimal":
|
|
376
|
-
case "low":
|
|
377
|
-
return "MINIMAL";
|
|
378
|
-
case "medium":
|
|
379
|
-
case "high":
|
|
380
|
-
return "HIGH";
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
switch (effort) {
|
|
384
|
-
case "minimal":
|
|
385
|
-
return "MINIMAL";
|
|
386
|
-
case "low":
|
|
387
|
-
return "LOW";
|
|
388
|
-
case "medium":
|
|
389
|
-
return "MEDIUM";
|
|
390
|
-
case "high":
|
|
391
|
-
return "HIGH";
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
354
|
function getGoogleBudget(model, level, customBudgets) {
|
|
395
355
|
if (customBudgets?.[level] !== undefined) {
|
|
396
356
|
return customBudgets[level];
|
|
@@ -1,62 +1,63 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GoogleGenAI,
|
|
3
3
|
ResourceScope,
|
|
4
|
-
ThinkingLevel,
|
|
5
4
|
convertMessages,
|
|
6
5
|
convertTools,
|
|
6
|
+
getDisabledGoogleThinkingConfig,
|
|
7
7
|
isThinkingPart,
|
|
8
8
|
mapStopReason,
|
|
9
9
|
resolveGoogleFunctionCallingMode,
|
|
10
10
|
resolveGoogleThinkingLevel,
|
|
11
11
|
retainThoughtSignature,
|
|
12
12
|
retryGoogleRequest,
|
|
13
|
-
supportsGoogleStrictToolSampling
|
|
14
|
-
|
|
13
|
+
supportsGoogleStrictToolSampling,
|
|
14
|
+
toGoogleSdkThinkingLevel,
|
|
15
|
+
toGoogleThinkingLevel,
|
|
16
|
+
usesGoogleThinkingLevel
|
|
17
|
+
} from "./cli-24k806sc.js";
|
|
15
18
|
import"./cli-s8s499xy.js";
|
|
16
19
|
import {
|
|
17
20
|
getPiUserAgent
|
|
18
21
|
} from "./cli-et1bbwqf.js";
|
|
19
22
|
import"./cli-yatxqynm.js";
|
|
20
|
-
import"./cli-76yrvwsa.js";
|
|
21
|
-
import"./cli-pzxba7gw.js";
|
|
22
23
|
import {
|
|
23
24
|
formatProviderError,
|
|
24
25
|
normalizeProviderError
|
|
25
26
|
} from "./cli-6map995v.js";
|
|
26
27
|
import {
|
|
27
28
|
buildBaseOptions
|
|
28
|
-
} from "./cli-
|
|
29
|
+
} from "./cli-k0g1sjzm.js";
|
|
29
30
|
import {
|
|
30
31
|
sanitizeSurrogates
|
|
31
32
|
} from "./cli-y2apkfe2.js";
|
|
32
33
|
import {
|
|
33
34
|
providerHeadersToRecord
|
|
34
35
|
} from "./cli-vapyk8sw.js";
|
|
35
|
-
import {
|
|
36
|
-
calculateCost,
|
|
37
|
-
clampThinkingLevel
|
|
38
|
-
} from "./cli-rgvp6r2x.js";
|
|
39
36
|
import {
|
|
40
37
|
getProviderEnvValue
|
|
41
38
|
} from "./cli-btbzvq95.js";
|
|
39
|
+
import {
|
|
40
|
+
calculateCost,
|
|
41
|
+
clampThinkingLevel,
|
|
42
|
+
collapseSystemMessages,
|
|
43
|
+
getCurrentTools,
|
|
44
|
+
getInitialSystemMessage,
|
|
45
|
+
getSystemMessageText
|
|
46
|
+
} from "./cli-mcnhgnn1.js";
|
|
42
47
|
import {
|
|
43
48
|
AssistantMessageEventStream
|
|
44
|
-
} from "./cli-
|
|
49
|
+
} from "./cli-bzr0ftht.js";
|
|
50
|
+
import"./cli-76yrvwsa.js";
|
|
51
|
+
import"./cli-pzxba7gw.js";
|
|
45
52
|
import"./cli-bc05qbss.js";
|
|
46
53
|
|
|
47
54
|
// node_modules/@earendil-works/pi-ai/dist/api/google-vertex.js
|
|
48
55
|
var API_VERSION = "v1";
|
|
49
56
|
var GCP_VERTEX_CREDENTIALS_MARKER = "gcp-vertex-credentials";
|
|
50
|
-
var THINKING_LEVEL_MAP = {
|
|
51
|
-
THINKING_LEVEL_UNSPECIFIED: ThinkingLevel.THINKING_LEVEL_UNSPECIFIED,
|
|
52
|
-
MINIMAL: ThinkingLevel.MINIMAL,
|
|
53
|
-
LOW: ThinkingLevel.LOW,
|
|
54
|
-
MEDIUM: ThinkingLevel.MEDIUM,
|
|
55
|
-
HIGH: ThinkingLevel.HIGH
|
|
56
|
-
};
|
|
57
57
|
var toolCallCounter = 0;
|
|
58
58
|
var stream = (model, context, options) => {
|
|
59
59
|
const stream2 = new AssistantMessageEventStream;
|
|
60
|
+
const normalizedContext = collapseSystemMessages(context);
|
|
60
61
|
(async () => {
|
|
61
62
|
const output = {
|
|
62
63
|
role: "assistant",
|
|
@@ -81,7 +82,7 @@ var stream = (model, context, options) => {
|
|
|
81
82
|
}
|
|
82
83
|
const apiKey = resolveApiKey(options);
|
|
83
84
|
const client = apiKey ? createClientWithApiKey(model, apiKey, options?.headers) : createClient(model, resolveProject(options), resolveLocation(options), options?.headers, options?.env);
|
|
84
|
-
let params = buildParams(model,
|
|
85
|
+
let params = buildParams(model, normalizedContext, options);
|
|
85
86
|
const nextParams = await options?.onPayload?.(params, model);
|
|
86
87
|
if (nextParams !== undefined) {
|
|
87
88
|
params = nextParams;
|
|
@@ -268,14 +269,19 @@ var streamSimple = (model, context, options) => {
|
|
|
268
269
|
});
|
|
269
270
|
}
|
|
270
271
|
const clampedReasoning = clampThinkingLevel(model, options.reasoning);
|
|
272
|
+
if (clampedReasoning === "off") {
|
|
273
|
+
return stream(model, context, {
|
|
274
|
+
...base,
|
|
275
|
+
thinking: { enabled: false }
|
|
276
|
+
});
|
|
277
|
+
}
|
|
271
278
|
const resolvedLevel = resolveGoogleThinkingLevel(model, clampedReasoning);
|
|
272
|
-
|
|
273
|
-
if (isGemini3ProModel(geminiModel) || isGemini3FlashModel(geminiModel)) {
|
|
279
|
+
if (usesGoogleThinkingLevel(model)) {
|
|
274
280
|
return stream(model, context, {
|
|
275
281
|
...base,
|
|
276
282
|
thinking: {
|
|
277
283
|
enabled: true,
|
|
278
|
-
level:
|
|
284
|
+
level: toGoogleThinkingLevel(resolvedLevel)
|
|
279
285
|
}
|
|
280
286
|
});
|
|
281
287
|
}
|
|
@@ -283,7 +289,7 @@ var streamSimple = (model, context, options) => {
|
|
|
283
289
|
...base,
|
|
284
290
|
thinking: {
|
|
285
291
|
enabled: true,
|
|
286
|
-
budgetTokens: getGoogleBudget(
|
|
292
|
+
budgetTokens: getGoogleBudget(model, resolvedLevel, options.thinkingBudgets)
|
|
287
293
|
}
|
|
288
294
|
});
|
|
289
295
|
};
|
|
@@ -367,6 +373,8 @@ function resolveLocation(options) {
|
|
|
367
373
|
}
|
|
368
374
|
function buildParams(model, context, options = {}) {
|
|
369
375
|
const contents = convertMessages(model, context);
|
|
376
|
+
const initialSystemMessage = getInitialSystemMessage(context.messages);
|
|
377
|
+
const currentTools = getCurrentTools(context.messages);
|
|
370
378
|
const generationConfig = {};
|
|
371
379
|
if (options.temperature !== undefined) {
|
|
372
380
|
generationConfig.temperature = options.temperature;
|
|
@@ -375,12 +383,13 @@ function buildParams(model, context, options = {}) {
|
|
|
375
383
|
generationConfig.maxOutputTokens = options.maxTokens;
|
|
376
384
|
}
|
|
377
385
|
const supportsStrictMode = supportsGoogleStrictToolSampling(model.id);
|
|
378
|
-
const functionCallingMode =
|
|
386
|
+
const functionCallingMode = currentTools.length > 0 ? resolveGoogleFunctionCallingMode(currentTools, options.toolChoice, supportsStrictMode) : undefined;
|
|
387
|
+
const systemInstruction = initialSystemMessage ? getSystemMessageText(initialSystemMessage) : "";
|
|
379
388
|
const config = {
|
|
380
389
|
...Object.keys(generationConfig).length > 0 && generationConfig,
|
|
381
|
-
...
|
|
382
|
-
...
|
|
383
|
-
tools: convertTools(
|
|
390
|
+
...systemInstruction && { systemInstruction: sanitizeSurrogates(systemInstruction) },
|
|
391
|
+
...currentTools.length > 0 && {
|
|
392
|
+
tools: convertTools(currentTools, false, supportsStrictMode)
|
|
384
393
|
},
|
|
385
394
|
...functionCallingMode !== undefined && {
|
|
386
395
|
toolConfig: { functionCallingConfig: { mode: functionCallingMode } }
|
|
@@ -389,13 +398,13 @@ function buildParams(model, context, options = {}) {
|
|
|
389
398
|
if (options.thinking?.enabled && model.reasoning) {
|
|
390
399
|
const thinkingConfig = { includeThoughts: true };
|
|
391
400
|
if (options.thinking.level !== undefined) {
|
|
392
|
-
thinkingConfig.thinkingLevel =
|
|
401
|
+
thinkingConfig.thinkingLevel = toGoogleSdkThinkingLevel(options.thinking.level);
|
|
393
402
|
} else if (options.thinking.budgetTokens !== undefined) {
|
|
394
403
|
thinkingConfig.thinkingBudget = options.thinking.budgetTokens;
|
|
395
404
|
}
|
|
396
405
|
config.thinkingConfig = thinkingConfig;
|
|
397
406
|
} else if (model.reasoning && options.thinking && !options.thinking.enabled) {
|
|
398
|
-
config.thinkingConfig =
|
|
407
|
+
config.thinkingConfig = getDisabledGoogleThinkingConfig(model);
|
|
399
408
|
}
|
|
400
409
|
if (options.signal) {
|
|
401
410
|
if (options.signal.aborted) {
|
|
@@ -410,45 +419,6 @@ function buildParams(model, context, options = {}) {
|
|
|
410
419
|
};
|
|
411
420
|
return params;
|
|
412
421
|
}
|
|
413
|
-
function isGemini3ProModel(model) {
|
|
414
|
-
return /gemini-3(?:\.\d+)?-pro/.test(model.id.toLowerCase());
|
|
415
|
-
}
|
|
416
|
-
function isGemini3FlashModel(model) {
|
|
417
|
-
const id = model.id.toLowerCase();
|
|
418
|
-
return /gemini-3(?:\.\d+)?-flash/.test(id) || id === "gemini-flash-latest" || id === "gemini-flash-lite-latest";
|
|
419
|
-
}
|
|
420
|
-
function getDisabledThinkingConfig(model) {
|
|
421
|
-
const geminiModel = model;
|
|
422
|
-
if (isGemini3ProModel(geminiModel)) {
|
|
423
|
-
return { thinkingLevel: ThinkingLevel.LOW };
|
|
424
|
-
}
|
|
425
|
-
if (isGemini3FlashModel(geminiModel)) {
|
|
426
|
-
return { thinkingLevel: ThinkingLevel.MINIMAL };
|
|
427
|
-
}
|
|
428
|
-
return { thinkingBudget: 0 };
|
|
429
|
-
}
|
|
430
|
-
function getGemini3ThinkingLevel(effort, model) {
|
|
431
|
-
if (isGemini3ProModel(model)) {
|
|
432
|
-
switch (effort) {
|
|
433
|
-
case "minimal":
|
|
434
|
-
case "low":
|
|
435
|
-
return "LOW";
|
|
436
|
-
case "medium":
|
|
437
|
-
case "high":
|
|
438
|
-
return "HIGH";
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
switch (effort) {
|
|
442
|
-
case "minimal":
|
|
443
|
-
return "MINIMAL";
|
|
444
|
-
case "low":
|
|
445
|
-
return "LOW";
|
|
446
|
-
case "medium":
|
|
447
|
-
return "MEDIUM";
|
|
448
|
-
case "high":
|
|
449
|
-
return "HIGH";
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
422
|
function getGoogleBudget(model, level, customBudgets) {
|
|
453
423
|
if (customBudgets?.[level] !== undefined) {
|
|
454
424
|
return customBudgets[level];
|
|
@@ -5,55 +5,59 @@ import {
|
|
|
5
5
|
isUserAllowed,
|
|
6
6
|
registerMessageHandler,
|
|
7
7
|
resetSlackHandlerCachesForTesting
|
|
8
|
-
} from "./cli-
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-
|
|
8
|
+
} from "./cli-acy6bfhr.js";
|
|
9
|
+
import"./cli-913yakhv.js";
|
|
10
|
+
import"./cli-r1d3dzt6.js";
|
|
11
|
+
import"./cli-6r3cgpk2.js";
|
|
12
12
|
import"./cli-0z2v4nhw.js";
|
|
13
|
-
import"./cli-
|
|
13
|
+
import"./cli-3bkz2p7j.js";
|
|
14
14
|
import"./cli-e7d20cty.js";
|
|
15
15
|
import"./cli-re8z5p8p.js";
|
|
16
16
|
import"./cli-3dpj7atn.js";
|
|
17
|
-
import"./cli-
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
17
|
+
import"./cli-8sea27q4.js";
|
|
18
|
+
import"./cli-stwsmd6k.js";
|
|
19
|
+
import"./cli-e0pg4zeh.js";
|
|
20
|
+
import"./cli-e31ehqwy.js";
|
|
21
|
+
import"./cli-ytxs7mn1.js";
|
|
22
|
+
import"./cli-pf1v8xhb.js";
|
|
21
23
|
import"./cli-epan13p1.js";
|
|
22
24
|
import"./cli-y89t4nca.js";
|
|
23
25
|
import"./cli-f14fvzag.js";
|
|
24
|
-
import"./cli-
|
|
25
|
-
import"./cli-56h18ng2.js";
|
|
26
|
-
import"./cli-2nnd56zt.js";
|
|
26
|
+
import"./cli-n62atwh9.js";
|
|
27
27
|
import"./cli-bsakbbkm.js";
|
|
28
|
-
import"./cli-
|
|
28
|
+
import"./cli-fad8m16k.js";
|
|
29
|
+
import"./cli-jsp14b6c.js";
|
|
30
|
+
import"./cli-e3cyf59d.js";
|
|
31
|
+
import"./cli-hws0vn86.js";
|
|
32
|
+
import"./cli-g2h29qar.js";
|
|
33
|
+
import"./cli-aehm1rbq.js";
|
|
29
34
|
import"./cli-51tf7ac3.js";
|
|
30
|
-
import"./cli-
|
|
35
|
+
import"./cli-c1v10xb2.js";
|
|
31
36
|
import"./cli-q51yprfq.js";
|
|
37
|
+
import"./cli-3er6gcsn.js";
|
|
32
38
|
import"./cli-yatxqynm.js";
|
|
33
|
-
import"./cli-jew3jda5.js";
|
|
34
|
-
import"./cli-fm4ytsdk.js";
|
|
35
|
-
import"./cli-aehm1rbq.js";
|
|
36
39
|
import"./cli-2658f6at.js";
|
|
37
|
-
import"./cli-
|
|
38
|
-
import"./cli-
|
|
39
|
-
import"./cli-
|
|
40
|
-
import"./cli-
|
|
40
|
+
import"./cli-ge67p080.js";
|
|
41
|
+
import"./cli-4k7jazkq.js";
|
|
42
|
+
import"./cli-0e31nm4n.js";
|
|
43
|
+
import"./cli-wg04s9kr.js";
|
|
44
|
+
import"./cli-v4en75c5.js";
|
|
41
45
|
import"./cli-dv6cdjs2.js";
|
|
42
|
-
import"./cli-
|
|
46
|
+
import"./cli-n7h1kqpf.js";
|
|
43
47
|
import"./cli-ej6gbxfb.js";
|
|
44
48
|
import"./cli-sd0mxa3c.js";
|
|
45
49
|
import"./cli-w5e1d1vv.js";
|
|
46
|
-
import"./cli-
|
|
50
|
+
import"./cli-myaxtgh8.js";
|
|
47
51
|
import"./cli-r2ap2czm.js";
|
|
48
|
-
import"./cli-
|
|
49
|
-
import"./cli-f7kvq46p.js";
|
|
50
|
-
import"./cli-zf8jjwex.js";
|
|
51
|
-
import"./cli-c4eeb5q2.js";
|
|
52
|
-
import"./cli-rgvp6r2x.js";
|
|
52
|
+
import"./cli-5b6b62tz.js";
|
|
53
53
|
import"./cli-btbzvq95.js";
|
|
54
54
|
import"./cli-1m2e086m.js";
|
|
55
|
-
import"./cli-
|
|
55
|
+
import"./cli-mcnhgnn1.js";
|
|
56
|
+
import"./cli-bzr0ftht.js";
|
|
56
57
|
import"./cli-bd957dgb.js";
|
|
58
|
+
import"./cli-pzxba7gw.js";
|
|
59
|
+
import"./cli-f7kvq46p.js";
|
|
60
|
+
import"./cli-zf8jjwex.js";
|
|
57
61
|
import"./cli-bc05qbss.js";
|
|
58
62
|
export {
|
|
59
63
|
checkUserAccess,
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
materializeClaudeMd,
|
|
4
4
|
stopClaudeMd
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-09y3tjxz.js";
|
|
6
6
|
import {
|
|
7
7
|
summarizeSession
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-fdzg6jhf.js";
|
|
9
9
|
import {
|
|
10
10
|
checkToolLoop,
|
|
11
11
|
clearToolHistory
|
|
@@ -16,9 +16,10 @@ import {
|
|
|
16
16
|
fetchRetrievalsForTask,
|
|
17
17
|
isLlmRaterEnabled,
|
|
18
18
|
postRatings
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-3bkz2p7j.js";
|
|
20
20
|
import"./cli-e7d20cty.js";
|
|
21
21
|
import"./cli-3dpj7atn.js";
|
|
22
|
+
import"./cli-8sea27q4.js";
|
|
22
23
|
import {
|
|
23
24
|
getApiKey
|
|
24
25
|
} from "./cli-f14fvzag.js";
|
|
@@ -30,31 +31,32 @@ import {
|
|
|
30
31
|
init_profile_sync,
|
|
31
32
|
readIdentityBaselines,
|
|
32
33
|
warnProfileFileTooLarge
|
|
33
|
-
} from "./cli-
|
|
34
|
+
} from "./cli-g2h29qar.js";
|
|
34
35
|
import"./cli-2658f6at.js";
|
|
35
|
-
import"./cli-
|
|
36
|
-
import"./cli-
|
|
36
|
+
import"./cli-0e31nm4n.js";
|
|
37
|
+
import"./cli-wg04s9kr.js";
|
|
37
38
|
import {
|
|
38
39
|
MAX_PROFILE_FILE_LENGTH,
|
|
39
40
|
getMcpBaseUrl,
|
|
40
41
|
init_constants
|
|
41
42
|
} from "./cli-dv6cdjs2.js";
|
|
43
|
+
import"./cli-n7h1kqpf.js";
|
|
42
44
|
import"./cli-ej6gbxfb.js";
|
|
43
45
|
import"./cli-sd0mxa3c.js";
|
|
44
46
|
import"./cli-w5e1d1vv.js";
|
|
45
47
|
import {
|
|
46
48
|
init_package,
|
|
47
49
|
package_default
|
|
48
|
-
} from "./cli-
|
|
50
|
+
} from "./cli-myaxtgh8.js";
|
|
49
51
|
import {
|
|
50
52
|
init_secret_scrubber,
|
|
51
53
|
scrubSecrets
|
|
52
54
|
} from "./cli-r2ap2czm.js";
|
|
53
|
-
import"./cli-
|
|
54
|
-
import"./cli-rgvp6r2x.js";
|
|
55
|
+
import"./cli-5b6b62tz.js";
|
|
55
56
|
import"./cli-btbzvq95.js";
|
|
56
57
|
import"./cli-1m2e086m.js";
|
|
57
|
-
import"./cli-
|
|
58
|
+
import"./cli-mcnhgnn1.js";
|
|
59
|
+
import"./cli-bzr0ftht.js";
|
|
58
60
|
import"./cli-bc05qbss.js";
|
|
59
61
|
|
|
60
62
|
// src/hooks/hook.ts
|
|
@@ -1,29 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
handleHook
|
|
3
|
-
} from "./cli-
|
|
4
|
-
import"./cli-
|
|
5
|
-
import"./cli-
|
|
3
|
+
} from "./cli-1jpjafw4.js";
|
|
4
|
+
import"./cli-09y3tjxz.js";
|
|
5
|
+
import"./cli-fdzg6jhf.js";
|
|
6
6
|
import"./cli-hp1n6zq3.js";
|
|
7
|
-
import"./cli-
|
|
7
|
+
import"./cli-3bkz2p7j.js";
|
|
8
8
|
import"./cli-e7d20cty.js";
|
|
9
9
|
import"./cli-3dpj7atn.js";
|
|
10
|
+
import"./cli-8sea27q4.js";
|
|
10
11
|
import"./cli-f14fvzag.js";
|
|
11
12
|
import"./cli-bsakbbkm.js";
|
|
12
|
-
import"./cli-
|
|
13
|
+
import"./cli-g2h29qar.js";
|
|
13
14
|
import"./cli-2658f6at.js";
|
|
14
|
-
import"./cli-
|
|
15
|
-
import"./cli-
|
|
15
|
+
import"./cli-0e31nm4n.js";
|
|
16
|
+
import"./cli-wg04s9kr.js";
|
|
16
17
|
import"./cli-dv6cdjs2.js";
|
|
18
|
+
import"./cli-n7h1kqpf.js";
|
|
17
19
|
import"./cli-ej6gbxfb.js";
|
|
18
20
|
import"./cli-sd0mxa3c.js";
|
|
19
21
|
import"./cli-w5e1d1vv.js";
|
|
20
|
-
import"./cli-
|
|
22
|
+
import"./cli-myaxtgh8.js";
|
|
21
23
|
import"./cli-r2ap2czm.js";
|
|
22
|
-
import"./cli-
|
|
23
|
-
import"./cli-rgvp6r2x.js";
|
|
24
|
+
import"./cli-5b6b62tz.js";
|
|
24
25
|
import"./cli-btbzvq95.js";
|
|
25
26
|
import"./cli-1m2e086m.js";
|
|
26
|
-
import"./cli-
|
|
27
|
+
import"./cli-mcnhgnn1.js";
|
|
28
|
+
import"./cli-bzr0ftht.js";
|
|
27
29
|
import"./cli-bc05qbss.js";
|
|
28
30
|
|
|
29
31
|
// src/commands/hook.ts
|