@opencode-ai/core 0.0.0-dev-18666 → 0.0.0-dev-18668
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent.js +51 -51
- package/dist/aisdk.js +1 -1
- package/dist/bus.js +50 -50
- package/dist/catalog.js +57 -57
- package/dist/chunks/{command-nrvqkfkb.js → command-04sm12e3.js} +11 -11
- package/dist/chunks/{command-fa55f9df.js → command-09gdnj31.js} +7 -7
- package/dist/chunks/{command-edy0r6ye.js → command-0cghev36.js} +1 -1
- package/dist/chunks/{command-avxz7gad.js → command-0qkvq4qz.js} +1 -1
- package/dist/chunks/{command-kp48nxz7.js → command-0xn50h6w.js} +5 -5
- package/dist/chunks/{command-3qen4mqr.js → command-12t3nrx0.js} +1 -1
- package/dist/chunks/{command-s0e6pyv1.js → command-21kafjd0.js} +8 -8
- package/dist/chunks/{command-92rs8vws.js → command-2fc1v0sz.js} +7 -7
- package/dist/chunks/{command-xx0sgaps.js → command-2ft5gea5.js} +14 -14
- package/dist/chunks/{command-0wh5jxya.js → command-2m3aea0y.js} +5 -5
- package/dist/chunks/{command-8t9x8w30.js → command-2zpe8jjq.js} +10 -10
- package/dist/chunks/{command-pkr4c9x5.js → command-31r8bnrn.js} +2 -2
- package/dist/chunks/{command-h5y38bzp.js → command-35bc9abw.js} +32 -32
- package/dist/chunks/{command-pspzm58k.js → command-37nb1dct.js} +1 -1
- package/dist/chunks/{command-7m8stqzx.js → command-3a4gm1e0.js} +7 -7
- package/dist/chunks/{command-rf3etfg3.js → command-3f00tj09.js} +4 -4
- package/dist/chunks/{command-gzyge54s.js → command-3nfp4ds2.js} +4 -4
- package/dist/chunks/{command-wjn10rk5.js → command-3pcs6ypa.js} +9 -9
- package/dist/chunks/{command-8msa2dg7.js → command-3sz5rbx3.js} +8 -8
- package/dist/chunks/{command-92ybq839.js → command-3vrd3seq.js} +1 -1
- package/dist/chunks/{command-ws7hshkn.js → command-3x59s1s5.js} +5 -5
- package/dist/chunks/{command-84n411sp.js → command-3ytqms96.js} +4 -4
- package/dist/chunks/{command-v2fx9tst.js → command-4gcz18ae.js} +4 -4
- package/dist/chunks/{command-e7x8er92.js → command-58q0cr1d.js} +1 -1
- package/dist/chunks/{command-w9e9m363.js → command-5f0f0wsf.js} +8 -8
- package/dist/chunks/{command-g796af3y.js → command-5k7by7f9.js} +3 -3
- package/dist/chunks/{command-e7npwrjc.js → command-5nf770jx.js} +3 -3
- package/dist/chunks/{command-5sy0g0hn.js → command-5qxmeaab.js} +1 -1
- package/dist/chunks/{command-xa6b11n3.js → command-61j9ghde.js} +3 -3
- package/dist/chunks/{command-sjfmrh6v.js → command-62yk3dhd.js} +9 -9
- package/dist/chunks/{command-wydr32w9.js → command-65w4qdsj.js} +8 -8
- package/dist/chunks/{command-zkqbszgq.js → command-6kknymzr.js} +13 -13
- package/dist/chunks/{command-pef8cs1e.js → command-703h6n82.js} +6 -6
- package/dist/chunks/{command-301eewqm.js → command-71tjtg6c.js} +2 -2
- package/dist/chunks/{command-cd5b2abk.js → command-7d10jk4c.js} +8 -8
- package/dist/chunks/{command-s8nxa6xr.js → command-7hx8jps4.js} +1 -1
- package/dist/chunks/{command-9xkgfdsw.js → command-7kn2r3gn.js} +2 -2
- package/dist/chunks/{command-45dcqads.js → command-7n90q60g.js} +6 -6
- package/dist/chunks/{command-0bb31gvj.js → command-7p84bq3x.js} +1 -1
- package/dist/chunks/{command-c95xqmky.js → command-8858p69e.js} +9 -9
- package/dist/chunks/{command-ee0jwf6e.js → command-8c2q1q6r.js} +1 -1
- package/dist/chunks/{command-163vcvhw.js → command-8pt7maek.js} +43 -37
- package/dist/chunks/{command-j96e3rgt.js → command-8z3wt96g.js} +8 -8
- package/dist/chunks/{command-0zcdge0s.js → command-90161may.js} +1 -1
- package/dist/chunks/{command-ed3q4w6r.js → command-9a51g7sg.js} +2 -2
- package/dist/chunks/{command-v9n0hcpt.js → command-9v1hmyz0.js} +3 -3
- package/dist/chunks/{command-ckv89kwr.js → command-a1t6mhxh.js} +2 -2
- package/dist/chunks/{command-kr8tzym4.js → command-a7edf9rn.js} +2 -2
- package/dist/chunks/{command-zjf5a0yc.js → command-atz2tx5a.js} +2 -2
- package/dist/chunks/{command-v4szcjk6.js → command-b0gag4kv.js} +2 -2
- package/dist/chunks/{command-58he138c.js → command-b4660xhk.js} +1 -1
- package/dist/chunks/{command-jzm946wd.js → command-bjf9bk2a.js} +7 -7
- package/dist/chunks/{command-xxfn8bcc.js → command-cqb54cet.js} +5 -5
- package/dist/chunks/{command-cj643j2w.js → command-cxb2tmz6.js} +2 -2
- package/dist/chunks/{command-q22d8q91.js → command-d009wc0p.js} +2 -2
- package/dist/chunks/{command-bw05gdks.js → command-d4qc24e3.js} +3 -3
- package/dist/chunks/{command-hhqdrs2x.js → command-ddtjqmhr.js} +4 -4
- package/dist/chunks/{command-5tz5y5ph.js → command-deb9berb.js} +1 -1
- package/dist/chunks/{command-cejbe1tk.js → command-dfe9bb8p.js} +22 -22
- package/dist/chunks/{command-1ngwwz9r.js → command-dk4d61ep.js} +1 -1
- package/dist/chunks/{command-mfdf2sys.js → command-dmfng1b3.js} +3 -3
- package/dist/chunks/{command-ympccj0p.js → command-dx1926bq.js} +8 -8
- package/dist/chunks/{command-gmv13kwg.js → command-eebchv2d.js} +3 -3
- package/dist/chunks/{command-4gzye1qn.js → command-efdt4yer.js} +10 -10
- package/dist/chunks/{command-2bdb184y.js → command-ej59606g.js} +10 -10
- package/dist/chunks/{command-s7e9tmqe.js → command-ekb86d3q.js} +1 -1
- package/dist/chunks/{command-v9nzbbrj.js → command-esfnd0cw.js} +9 -9
- package/dist/chunks/{command-kdmghh1n.js → command-eypxtpm5.js} +2 -2
- package/dist/chunks/{command-vs24af36.js → command-f11ypskv.js} +3 -3
- package/dist/chunks/{command-n5qseywc.js → command-fk0j9mat.js} +4 -4
- package/dist/chunks/{command-3v4ptp50.js → command-fvm5g9nk.js} +7 -7
- package/dist/chunks/{command-1cwndmbp.js → command-fz463vvs.js} +1 -1
- package/dist/chunks/{command-vhebj28f.js → command-g94fdv89.js} +4 -4
- package/dist/chunks/{command-075vry2e.js → command-g9ae7rtf.js} +1 -1
- package/dist/chunks/{command-r5w3s7f3.js → command-hct7g4zq.js} +7 -7
- package/dist/chunks/{command-8y6rhxm7.js → command-hg5vwb2v.js} +4 -4
- package/dist/chunks/{command-y85nmh9b.js → command-hk7bvhkg.js} +6 -6
- package/dist/chunks/{command-gty0camg.js → command-hqtxscnk.js} +3 -3
- package/dist/chunks/{command-de5esam2.js → command-j281xcgt.js} +1 -1
- package/dist/chunks/{command-y67bkcvh.js → command-j2ky44gt.js} +2 -2
- package/dist/chunks/{command-wn2gsfjx.js → command-j4gh2p0h.js} +80 -80
- package/dist/chunks/{command-x5g04qh7.js → command-j6ymn7ym.js} +1 -1
- package/dist/chunks/{command-tr6w0h2z.js → command-j7zsxm4h.js} +4 -4
- package/dist/chunks/{command-772d9n0x.js → command-jcr0kr8b.js} +3 -3
- package/dist/chunks/{command-f6p6ryk3.js → command-jfr9syp8.js} +8 -8
- package/dist/chunks/{command-bj643xt5.js → command-jwrx2cj7.js} +2 -2
- package/dist/chunks/{command-xkbeztkk.js → command-k1qy4h3f.js} +2 -2
- package/dist/chunks/{command-7jskk6es.js → command-k328m9gb.js} +2 -2
- package/dist/chunks/{command-a9tb9fcm.js → command-k3pm51yt.js} +1 -1
- package/dist/chunks/{command-x4rdp18t.js → command-k828h0dz.js} +1 -1
- package/dist/chunks/{command-pjf26mtw.js → command-kxys3y9d.js} +4 -4
- package/dist/chunks/{command-pr8hexw5.js → command-kybe6n22.js} +1 -1
- package/dist/chunks/{command-d9mahe2a.js → command-kzn44r7q.js} +2 -2
- package/dist/chunks/{command-gpqqamc4.js → command-m1a9wjth.js} +2 -2
- package/dist/chunks/{command-7sqzdvxt.js → command-m1kmy8ka.js} +3 -3
- package/dist/chunks/{command-095wx2hx.js → command-mdmajrgb.js} +31 -31
- package/dist/chunks/{command-f4k1krf1.js → command-mtzq81c0.js} +1 -1
- package/dist/chunks/{command-tfrwzvc7.js → command-n0jre7db.js} +4 -4
- package/dist/chunks/{command-mp17610w.js → command-ngq9smrr.js} +2 -2
- package/dist/chunks/{command-zwmydvar.js → command-pz3h2j2e.js} +2 -2
- package/dist/chunks/{command-84rr8a2c.js → command-q60bxv6r.js} +5 -5
- package/dist/chunks/{command-ys08cqyw.js → command-qcqj5amz.js} +4 -4
- package/dist/chunks/{command-hqhf28q2.js → command-qwmw4cd6.js} +5 -5
- package/dist/chunks/{command-nh2mp9yp.js → command-r8xfnj54.js} +1 -1
- package/dist/chunks/{command-aggjjrq7.js → command-rb0fca5n.js} +3 -3
- package/dist/chunks/{command-fk7mptbv.js → command-rp9m1jf9.js} +2 -2
- package/dist/chunks/{command-h550aad1.js → command-rvnwsds8.js} +2 -2
- package/dist/chunks/{command-xdb7f87g.js → command-rx7m7hj5.js} +1 -1
- package/dist/chunks/{command-av4kst6y.js → command-ryt5s2a6.js} +1 -1
- package/dist/chunks/{command-hrqqxyw5.js → command-s14t6zsq.js} +1 -1
- package/dist/chunks/{command-krbecca2.js → command-s3tfznvp.js} +8 -8
- package/dist/chunks/{command-tb9t3d7k.js → command-sjbbz6zv.js} +1 -1
- package/dist/chunks/{command-dfyjewjv.js → command-sqca200z.js} +9 -9
- package/dist/chunks/{command-hq5yxge1.js → command-swf32vq8.js} +1 -1
- package/dist/chunks/{command-ab27t4cz.js → command-swz1kz5j.js} +8 -8
- package/dist/chunks/{command-hwkhj2eq.js → command-tkazpfmd.js} +62 -13
- package/dist/chunks/{command-wjfe8r21.js → command-v60a5n3g.js} +40 -40
- package/dist/chunks/{command-h1jh2aqp.js → command-vfb23vgf.js} +4 -4
- package/dist/chunks/{command-z8hpqfqs.js → command-vm0yyddh.js} +1 -1
- package/dist/chunks/{command-zpwdb2he.js → command-wkck8q21.js} +2 -2
- package/dist/chunks/{command-fhg50cq7.js → command-wpr4c6r5.js} +2 -2
- package/dist/chunks/{command-xcvvhh15.js → command-wqdd5pzq.js} +2 -2
- package/dist/chunks/{command-pr4qte1b.js → command-wzka52dv.js} +55 -55
- package/dist/chunks/{command-1mzcp10y.js → command-xh8hs6r9.js} +9 -9
- package/dist/chunks/{command-6b4cx7j3.js → command-xrk7fegf.js} +1 -1
- package/dist/chunks/{command-9aea9mcr.js → command-xzez02fr.js} +2 -2
- package/dist/chunks/{command-9055axa1.js → command-y5mjz9m4.js} +151 -151
- package/dist/chunks/{command-efmszg8z.js → command-y5xqcm33.js} +3 -3
- package/dist/chunks/{command-2da1bvhg.js → command-y88zne5r.js} +5 -5
- package/dist/chunks/{command-cgw4nxwy.js → command-ycnh085e.js} +9 -9
- package/dist/chunks/{command-yzavgpck.js → command-ymta27h3.js} +4 -4
- package/dist/chunks/{command-xc9webet.js → command-ytk4mmhh.js} +57 -57
- package/dist/chunks/{command-4saa3z41.js → command-yyqs966q.js} +1 -1
- package/dist/chunks/{command-zeb9ae7r.js → command-zrk4eedd.js} +1 -1
- package/dist/command.js +51 -51
- package/dist/config/normalize.js +11 -11
- package/dist/config/plugin/agent.js +97 -97
- package/dist/config/plugin/command.js +83 -83
- package/dist/config/plugin/compaction.js +109 -109
- package/dist/config/plugin/entry-observer.js +79 -79
- package/dist/config/plugin/formatter.js +84 -84
- package/dist/config/plugin/image.js +96 -96
- package/dist/config/plugin/instruction.js +64 -64
- package/dist/config/plugin/location-watcher.js +81 -81
- package/dist/config/plugin/mcp.js +93 -93
- package/dist/config/plugin/policy.js +81 -81
- package/dist/config/plugin/provider.js +80 -80
- package/dist/config/plugin/reference.js +84 -84
- package/dist/config/plugin/shell.js +83 -83
- package/dist/config/plugin/skill-file.js +73 -73
- package/dist/config/plugin/skill.js +100 -100
- package/dist/config/plugin/snapshot.js +82 -82
- package/dist/config/plugin/source.js +80 -80
- package/dist/config/plugin/tool-output.js +84 -84
- package/dist/config/plugin/websearch.js +80 -80
- package/dist/config.js +79 -79
- package/dist/credential.js +52 -52
- package/dist/database/database.js +48 -48
- package/dist/database/drizzle/effect-sqlite/driver.js +6 -6
- package/dist/database/drizzle/effect-sqlite/index.js +6 -6
- package/dist/database/drizzle/effect-sqlite/session.js +5 -5
- package/dist/database/drizzle/index.js +7 -7
- package/dist/database/drizzle/sqlite-core/effect/db.js +3 -3
- package/dist/database/drizzle/sqlite-core/effect/index.js +8 -8
- package/dist/database/drizzle/sqlite-core/effect/session.js +4 -4
- package/dist/database/drizzle.js +7 -7
- package/dist/database/migration.gen.js +38 -38
- package/dist/database/migration.js +40 -40
- package/dist/database/v1-migration.bun.js +50 -50
- package/dist/effect/app-node-builder.js +278 -278
- package/dist/environment/environment.js +64 -64
- package/dist/environment/index.js +66 -66
- package/dist/event-logger.js +50 -50
- package/dist/file-mutation.js +65 -65
- package/dist/filesystem/location-watcher.js +257 -257
- package/dist/filesystem/search.js +66 -66
- package/dist/filesystem.js +67 -67
- package/dist/form.js +51 -51
- package/dist/formatter.js +62 -62
- package/dist/generate.js +60 -60
- package/dist/git.js +2 -2
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +3 -3
- package/dist/github-copilot/copilot-provider.js +12 -12
- package/dist/github-copilot/responses/openai-responses-language-model.js +5 -5
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -4
- package/dist/image/photon.js +69 -69
- package/dist/image.js +69 -69
- package/dist/instance.js +277 -277
- package/dist/instruction-discovery.js +52 -52
- package/dist/instructions/builtins.js +61 -61
- package/dist/integration.js +54 -54
- package/dist/job.js +51 -51
- package/dist/kv.js +49 -49
- package/dist/location-activity.js +60 -60
- package/dist/location-mutation.js +61 -61
- package/dist/location-service-map.js +60 -60
- package/dist/location-services.js +278 -278
- package/dist/location.js +60 -60
- package/dist/mcp/client.js +65 -65
- package/dist/mcp/index.js +71 -71
- package/dist/mcp/instructions.js +90 -90
- package/dist/mcp/stdio.js +65 -65
- package/dist/model-resolver.js +59 -59
- package/dist/models-dev.js +53 -53
- package/dist/permission/saved.js +50 -50
- package/dist/permission/sql.js +1 -1
- package/dist/permission.js +71 -71
- package/dist/persistent-pty/index.js +51 -51
- package/dist/persistent-pty.js +51 -51
- package/dist/plugin/agent.js +72 -72
- package/dist/plugin/command.js +72 -72
- package/dist/plugin/host.js +134 -134
- package/dist/plugin/internal.js +251 -251
- package/dist/plugin/models-dev.js +54 -54
- package/dist/plugin/plan.js +72 -72
- package/dist/plugin/provider/azure.js +88 -88
- package/dist/plugin/provider/cloudflare-ai-gateway.js +87 -87
- package/dist/plugin/provider/cloudflare-workers-ai.js +87 -87
- package/dist/plugin/provider/configured.js +85 -85
- package/dist/plugin/provider/github-copilot.js +60 -60
- package/dist/plugin/provider/llmgateway.js +56 -56
- package/dist/plugin/provider/lmstudio.js +86 -86
- package/dist/plugin/provider/ollama.js +86 -86
- package/dist/plugin/provider/openai.js +57 -57
- package/dist/plugin/provider/opencode.js +67 -67
- package/dist/plugin/provider/vllm.js +86 -86
- package/dist/plugin/provider/xai.js +57 -57
- package/dist/plugin/provider.js +118 -118
- package/dist/plugin/runtime.js +122 -122
- package/dist/plugin/sdk.js +51 -51
- package/dist/plugin/skill.js +99 -99
- package/dist/plugin/supervisor.js +258 -258
- package/dist/plugin/vcs/git.js +61 -61
- package/dist/plugin/vcs/hg.js +61 -61
- package/dist/plugin/warming.js +80 -80
- package/dist/plugin/websearch/index.js +3 -3
- package/dist/plugin.js +135 -135
- package/dist/project/markers.js +54 -54
- package/dist/project/sql.js +1 -1
- package/dist/project.js +59 -59
- package/dist/pty.js +63 -63
- package/dist/reference/instructions.js +57 -57
- package/dist/reference.js +55 -55
- package/dist/repository-cache.js +3 -3
- package/dist/ripgrep.js +65 -65
- package/dist/session/compaction.js +86 -86
- package/dist/session/context.js +266 -266
- package/dist/session/execution/restart.js +119 -119
- package/dist/session/execution.js +89 -89
- package/dist/session/generate-node.js +267 -267
- package/dist/session/history.js +53 -53
- package/dist/session/inbox.js +54 -54
- package/dist/session/instruction-entry.js +51 -51
- package/dist/session/instruction-state.js +4 -4
- package/dist/session/instructions.js +67 -67
- package/dist/session/message-updater.js +1 -1
- package/dist/session/model-request.js +100 -100
- package/dist/session/projector.js +58 -58
- package/dist/session/revert.js +64 -64
- package/dist/session/runner/index.js +60 -60
- package/dist/session/runner/llm.js +270 -270
- package/dist/session/runner/model.js +60 -60
- package/dist/session/runner/retry.js +51 -51
- package/dist/session/runner/step.js +105 -105
- package/dist/session/sql.js +1 -1
- package/dist/session/stats.js +50 -50
- package/dist/session/store.js +55 -55
- package/dist/session/title.js +267 -267
- package/dist/session/to-session-error.js +84 -84
- package/dist/session/transfer.js +125 -125
- package/dist/session.js +121 -121
- package/dist/shell/parse.js +3 -3
- package/dist/shell.js +69 -69
- package/dist/skill/instructions.js +73 -73
- package/dist/skill.js +72 -72
- package/dist/snapshot.js +62 -62
- package/dist/tool/mcp.js +89 -89
- package/dist/tool/plugin/edit.js +81 -81
- package/dist/tool/plugin/glob.js +82 -82
- package/dist/tool/plugin/grep.js +82 -82
- package/dist/tool/plugin/patch.js +81 -81
- package/dist/tool/plugin/question.js +73 -73
- package/dist/tool/plugin/read.js +85 -85
- package/dist/tool/plugin/shell.js +150 -150
- package/dist/tool/plugin/skill.js +73 -73
- package/dist/tool/plugin/subagent.js +147 -147
- package/dist/tool/plugin/webfetch.js +73 -73
- package/dist/tool/plugin/websearch.js +75 -75
- package/dist/tool/plugin/write.js +81 -81
- package/dist/tool/read-filesystem.js +68 -68
- package/dist/tool-output.js +2 -2
- package/dist/tool.js +82 -82
- package/dist/types/github-copilot/responses/openai-responses-prepare-tools.d.ts +9 -1
- package/dist/v1/config/config.js +9 -9
- package/dist/v1/config/migrate.js +10 -10
- package/dist/vcs.js +62 -62
- package/dist/websearch.js +53 -53
- package/dist/wellknown/plugin.js +54 -54
- package/dist/wellknown.js +53 -53
- package/dist/workspace.js +50 -50
- package/dist/worktree/git.js +3 -3
- package/dist/worktree/sql.js +1 -1
- package/dist/worktree.js +62 -62
- package/package.json +7 -7
- package/dist/chunks/{command-93cftm1g.js → command-18e29k9r.js} +0 -0
- package/dist/chunks/{command-f7q7a28y.js → command-7ccgh94t.js} +3 -3
- package/dist/chunks/{command-r50y34q5.js → command-bas9pqrz.js} +10 -10
- package/dist/chunks/{command-6jx6ecw1.js → command-dyj7wa6j.js} +3 -3
- package/dist/chunks/{command-rvx401a0.js → command-ecft2zb7.js} +3 -3
- package/dist/chunks/{command-0687t5rp.js → command-hxcd35r2.js} +3 -3
- package/dist/chunks/{command-dchkjjs1.js → command-j2xgznzj.js} +5 -5
- package/dist/chunks/{command-b8d32hxk.js → command-k0f7dv5s.js} +5 -5
- package/dist/chunks/{command-q183ty6f.js → command-kk75ejxm.js} +21 -21
- package/dist/chunks/{command-1z84d9n2.js → command-ymk4t6jd.js} +6 -6
- package/dist/chunks/{command-g4g9s37e.js → command-yy4eeyx3.js} +85 -85
- package/dist/chunks/{command-8a4hfbqs.js → command-zn8r3q6e.js} +4 -4
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./command-kg1345f7.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_ripgrep
|
|
6
|
-
} from "./command-
|
|
6
|
+
} from "./command-k3pm51yt.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_location
|
|
9
|
-
} from "./command-
|
|
9
|
+
} from "./command-zrk4eedd.js";
|
|
10
10
|
import {
|
|
11
11
|
RelativePath
|
|
12
12
|
} from "./command-j07kk359.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
exports_integration
|
|
3
|
-
} from "./command-mfdf2sys.js";
|
|
4
1
|
import {
|
|
5
2
|
exports_app
|
|
6
3
|
} from "./command-50jxp3hw.js";
|
|
7
4
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./command-
|
|
5
|
+
exports_integration
|
|
6
|
+
} from "./command-dmfng1b3.js";
|
|
10
7
|
import {
|
|
11
8
|
exports_credential
|
|
12
|
-
} from "./command-
|
|
9
|
+
} from "./command-b0gag4kv.js";
|
|
10
|
+
import {
|
|
11
|
+
exports_provider
|
|
12
|
+
} from "./command-krsqcmnj.js";
|
|
13
13
|
|
|
14
14
|
// src/plugin/provider/xai.ts
|
|
15
15
|
import { define } from "@opencode-ai/plugin/effect/plugin";
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
exports_question
|
|
3
|
+
} from "./command-31r8bnrn.js";
|
|
1
4
|
import {
|
|
2
5
|
toLLMMessages
|
|
3
6
|
} from "./command-a9vdgkgd.js";
|
|
@@ -5,23 +8,20 @@ import {
|
|
|
5
8
|
exports_system_prompt
|
|
6
9
|
} from "./command-v80zsxnb.js";
|
|
7
10
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./command-
|
|
11
|
+
exports_tool
|
|
12
|
+
} from "./command-8c2q1q6r.js";
|
|
10
13
|
import {
|
|
11
14
|
exports_model_transport
|
|
12
15
|
} from "./command-tjrfm0xh.js";
|
|
13
|
-
import {
|
|
14
|
-
exports_tool
|
|
15
|
-
} from "./command-ee0jwf6e.js";
|
|
16
16
|
import {
|
|
17
17
|
exports_permission
|
|
18
|
-
} from "./command-
|
|
19
|
-
import {
|
|
20
|
-
exports_hooks
|
|
21
|
-
} from "./command-v2wshkax.js";
|
|
18
|
+
} from "./command-ycnh085e.js";
|
|
22
19
|
import {
|
|
23
20
|
exports_app
|
|
24
21
|
} from "./command-50jxp3hw.js";
|
|
22
|
+
import {
|
|
23
|
+
exports_hooks
|
|
24
|
+
} from "./command-v2wshkax.js";
|
|
25
25
|
import {
|
|
26
26
|
__export
|
|
27
27
|
} from "./command-rvfvac9x.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
openaiFailedResponseHandler
|
|
3
|
+
} from "./command-r8f4w671.js";
|
|
1
4
|
import {
|
|
2
5
|
mapOpenAIResponseFinishReason
|
|
3
6
|
} from "./command-m8cbvarh.js";
|
|
4
7
|
import {
|
|
5
8
|
convertToOpenAIResponsesInput
|
|
6
9
|
} from "./command-vac9eqd2.js";
|
|
7
|
-
import {
|
|
8
|
-
openaiFailedResponseHandler
|
|
9
|
-
} from "./command-r8f4w671.js";
|
|
10
10
|
import {
|
|
11
11
|
prepareResponsesTools
|
|
12
|
-
} from "./command-
|
|
12
|
+
} from "./command-tkazpfmd.js";
|
|
13
13
|
|
|
14
14
|
// src/github-copilot/responses/openai-responses-language-model.ts
|
|
15
15
|
import {
|
|
@@ -162,8 +162,23 @@ class OpenAIResponsesLanguageModel {
|
|
|
162
162
|
if (topLogprobs) {
|
|
163
163
|
addInclude("message.output_text.logprobs");
|
|
164
164
|
}
|
|
165
|
-
const
|
|
166
|
-
|
|
165
|
+
const {
|
|
166
|
+
tools: openaiTools,
|
|
167
|
+
toolChoice: openaiToolChoice,
|
|
168
|
+
hostedTools,
|
|
169
|
+
selectedHostedTool,
|
|
170
|
+
toolWarnings
|
|
171
|
+
} = prepareResponsesTools({
|
|
172
|
+
tools,
|
|
173
|
+
toolChoice,
|
|
174
|
+
strictJsonSchema
|
|
175
|
+
});
|
|
176
|
+
const getHostedToolName = (responseType) => {
|
|
177
|
+
if (selectedHostedTool?.responseType === responseType)
|
|
178
|
+
return selectedHostedTool.name;
|
|
179
|
+
return hostedTools.find((tool) => tool.responseType === responseType)?.name ?? responseType;
|
|
180
|
+
};
|
|
181
|
+
if (hostedTools.some((tool) => tool.responseType === "web_search")) {
|
|
167
182
|
addInclude("web_search_call.action.sources");
|
|
168
183
|
}
|
|
169
184
|
if (hasOpenAITool("openai.code_interpreter")) {
|
|
@@ -266,17 +281,8 @@ class OpenAIResponsesLanguageModel {
|
|
|
266
281
|
});
|
|
267
282
|
baseArgs.service_tier = undefined;
|
|
268
283
|
}
|
|
269
|
-
const {
|
|
270
|
-
tools: openaiTools,
|
|
271
|
-
toolChoice: openaiToolChoice,
|
|
272
|
-
toolWarnings
|
|
273
|
-
} = prepareResponsesTools({
|
|
274
|
-
tools,
|
|
275
|
-
toolChoice,
|
|
276
|
-
strictJsonSchema
|
|
277
|
-
});
|
|
278
284
|
return {
|
|
279
|
-
|
|
285
|
+
getHostedToolName,
|
|
280
286
|
args: {
|
|
281
287
|
...baseArgs,
|
|
282
288
|
tools: openaiTools,
|
|
@@ -286,7 +292,7 @@ class OpenAIResponsesLanguageModel {
|
|
|
286
292
|
};
|
|
287
293
|
}
|
|
288
294
|
async doGenerate(options) {
|
|
289
|
-
const { args: body, warnings,
|
|
295
|
+
const { args: body, warnings, getHostedToolName } = await this.getArgs(options);
|
|
290
296
|
const url = this.config.url({
|
|
291
297
|
path: "/responses",
|
|
292
298
|
modelId: this.modelId
|
|
@@ -411,14 +417,14 @@ class OpenAIResponsesLanguageModel {
|
|
|
411
417
|
content.push({
|
|
412
418
|
type: "tool-call",
|
|
413
419
|
toolCallId: part.id,
|
|
414
|
-
toolName: "image_generation",
|
|
420
|
+
toolName: getHostedToolName("image_generation"),
|
|
415
421
|
input: "{}",
|
|
416
422
|
providerExecuted: true
|
|
417
423
|
});
|
|
418
424
|
content.push({
|
|
419
425
|
type: "tool-result",
|
|
420
426
|
toolCallId: part.id,
|
|
421
|
-
toolName: "image_generation",
|
|
427
|
+
toolName: getHostedToolName("image_generation"),
|
|
422
428
|
result: {
|
|
423
429
|
result: part.result
|
|
424
430
|
}
|
|
@@ -481,14 +487,14 @@ class OpenAIResponsesLanguageModel {
|
|
|
481
487
|
content.push({
|
|
482
488
|
type: "tool-call",
|
|
483
489
|
toolCallId: part.id,
|
|
484
|
-
toolName:
|
|
490
|
+
toolName: getHostedToolName("web_search"),
|
|
485
491
|
input: JSON.stringify({ action: part.action }),
|
|
486
492
|
providerExecuted: true
|
|
487
493
|
});
|
|
488
494
|
content.push({
|
|
489
495
|
type: "tool-result",
|
|
490
496
|
toolCallId: part.id,
|
|
491
|
-
toolName:
|
|
497
|
+
toolName: getHostedToolName("web_search"),
|
|
492
498
|
result: { status: part.status }
|
|
493
499
|
});
|
|
494
500
|
break;
|
|
@@ -516,14 +522,14 @@ class OpenAIResponsesLanguageModel {
|
|
|
516
522
|
content.push({
|
|
517
523
|
type: "tool-call",
|
|
518
524
|
toolCallId: part.id,
|
|
519
|
-
toolName: "file_search",
|
|
525
|
+
toolName: getHostedToolName("file_search"),
|
|
520
526
|
input: "{}",
|
|
521
527
|
providerExecuted: true
|
|
522
528
|
});
|
|
523
529
|
content.push({
|
|
524
530
|
type: "tool-result",
|
|
525
531
|
toolCallId: part.id,
|
|
526
|
-
toolName: "file_search",
|
|
532
|
+
toolName: getHostedToolName("file_search"),
|
|
527
533
|
result: {
|
|
528
534
|
queries: part.queries,
|
|
529
535
|
results: part.results?.map((result) => ({
|
|
@@ -541,7 +547,7 @@ class OpenAIResponsesLanguageModel {
|
|
|
541
547
|
content.push({
|
|
542
548
|
type: "tool-call",
|
|
543
549
|
toolCallId: part.id,
|
|
544
|
-
toolName: "code_interpreter",
|
|
550
|
+
toolName: getHostedToolName("code_interpreter"),
|
|
545
551
|
input: JSON.stringify({
|
|
546
552
|
code: part.code,
|
|
547
553
|
containerId: part.container_id
|
|
@@ -551,7 +557,7 @@ class OpenAIResponsesLanguageModel {
|
|
|
551
557
|
content.push({
|
|
552
558
|
type: "tool-result",
|
|
553
559
|
toolCallId: part.id,
|
|
554
|
-
toolName: "code_interpreter",
|
|
560
|
+
toolName: getHostedToolName("code_interpreter"),
|
|
555
561
|
result: {
|
|
556
562
|
outputs: part.outputs
|
|
557
563
|
}
|
|
@@ -605,7 +611,7 @@ class OpenAIResponsesLanguageModel {
|
|
|
605
611
|
};
|
|
606
612
|
}
|
|
607
613
|
async doStream(options) {
|
|
608
|
-
const { args: body, warnings,
|
|
614
|
+
const { args: body, warnings, getHostedToolName } = await this.getArgs(options);
|
|
609
615
|
const { responseHeaders, value: response } = await postJsonToApi({
|
|
610
616
|
url: this.config.url({
|
|
611
617
|
path: "/responses",
|
|
@@ -676,7 +682,7 @@ class OpenAIResponsesLanguageModel {
|
|
|
676
682
|
controller.enqueue({
|
|
677
683
|
type: "tool-input-start",
|
|
678
684
|
id: value.item.id,
|
|
679
|
-
toolName:
|
|
685
|
+
toolName: getHostedToolName("web_search")
|
|
680
686
|
});
|
|
681
687
|
} else if (value.item.type === "computer_call") {
|
|
682
688
|
ongoingToolCalls[value.output_index] = {
|
|
@@ -697,7 +703,7 @@ class OpenAIResponsesLanguageModel {
|
|
|
697
703
|
controller.enqueue({
|
|
698
704
|
type: "tool-input-start",
|
|
699
705
|
id: value.item.id,
|
|
700
|
-
toolName: "code_interpreter"
|
|
706
|
+
toolName: getHostedToolName("code_interpreter")
|
|
701
707
|
});
|
|
702
708
|
controller.enqueue({
|
|
703
709
|
type: "tool-input-delta",
|
|
@@ -708,7 +714,7 @@ class OpenAIResponsesLanguageModel {
|
|
|
708
714
|
controller.enqueue({
|
|
709
715
|
type: "tool-call",
|
|
710
716
|
toolCallId: value.item.id,
|
|
711
|
-
toolName: "file_search",
|
|
717
|
+
toolName: getHostedToolName("file_search"),
|
|
712
718
|
input: "{}",
|
|
713
719
|
providerExecuted: true
|
|
714
720
|
});
|
|
@@ -716,7 +722,7 @@ class OpenAIResponsesLanguageModel {
|
|
|
716
722
|
controller.enqueue({
|
|
717
723
|
type: "tool-call",
|
|
718
724
|
toolCallId: value.item.id,
|
|
719
|
-
toolName: "image_generation",
|
|
725
|
+
toolName: getHostedToolName("image_generation"),
|
|
720
726
|
input: "{}",
|
|
721
727
|
providerExecuted: true
|
|
722
728
|
});
|
|
@@ -781,14 +787,14 @@ class OpenAIResponsesLanguageModel {
|
|
|
781
787
|
controller.enqueue({
|
|
782
788
|
type: "tool-call",
|
|
783
789
|
toolCallId: value.item.id,
|
|
784
|
-
toolName: "web_search",
|
|
790
|
+
toolName: getHostedToolName("web_search"),
|
|
785
791
|
input: JSON.stringify({ action: value.item.action }),
|
|
786
792
|
providerExecuted: true
|
|
787
793
|
});
|
|
788
794
|
controller.enqueue({
|
|
789
795
|
type: "tool-result",
|
|
790
796
|
toolCallId: value.item.id,
|
|
791
|
-
toolName: "web_search",
|
|
797
|
+
toolName: getHostedToolName("web_search"),
|
|
792
798
|
result: { status: value.item.status }
|
|
793
799
|
});
|
|
794
800
|
} else if (value.item.type === "computer_call") {
|
|
@@ -818,7 +824,7 @@ class OpenAIResponsesLanguageModel {
|
|
|
818
824
|
controller.enqueue({
|
|
819
825
|
type: "tool-result",
|
|
820
826
|
toolCallId: value.item.id,
|
|
821
|
-
toolName: "file_search",
|
|
827
|
+
toolName: getHostedToolName("file_search"),
|
|
822
828
|
result: {
|
|
823
829
|
queries: value.item.queries,
|
|
824
830
|
results: value.item.results?.map((result) => ({
|
|
@@ -835,7 +841,7 @@ class OpenAIResponsesLanguageModel {
|
|
|
835
841
|
controller.enqueue({
|
|
836
842
|
type: "tool-result",
|
|
837
843
|
toolCallId: value.item.id,
|
|
838
|
-
toolName: "code_interpreter",
|
|
844
|
+
toolName: getHostedToolName("code_interpreter"),
|
|
839
845
|
result: {
|
|
840
846
|
outputs: value.item.outputs
|
|
841
847
|
}
|
|
@@ -844,7 +850,7 @@ class OpenAIResponsesLanguageModel {
|
|
|
844
850
|
controller.enqueue({
|
|
845
851
|
type: "tool-result",
|
|
846
852
|
toolCallId: value.item.id,
|
|
847
|
-
toolName: "image_generation",
|
|
853
|
+
toolName: getHostedToolName("image_generation"),
|
|
848
854
|
result: {
|
|
849
855
|
result: value.item.result
|
|
850
856
|
}
|
|
@@ -893,7 +899,7 @@ class OpenAIResponsesLanguageModel {
|
|
|
893
899
|
controller.enqueue({
|
|
894
900
|
type: "tool-result",
|
|
895
901
|
toolCallId: value.item_id,
|
|
896
|
-
toolName: "image_generation",
|
|
902
|
+
toolName: getHostedToolName("image_generation"),
|
|
897
903
|
result: {
|
|
898
904
|
result: value.partial_image_b64
|
|
899
905
|
}
|
|
@@ -922,7 +928,7 @@ class OpenAIResponsesLanguageModel {
|
|
|
922
928
|
controller.enqueue({
|
|
923
929
|
type: "tool-call",
|
|
924
930
|
toolCallId: toolCall.toolCallId,
|
|
925
|
-
toolName: "code_interpreter",
|
|
931
|
+
toolName: getHostedToolName("code_interpreter"),
|
|
926
932
|
input: JSON.stringify({
|
|
927
933
|
code: value.code,
|
|
928
934
|
containerId: toolCall.codeInterpreter.containerId
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
exports_config
|
|
3
|
-
} from "./command-q183ty6f.js";
|
|
4
1
|
import {
|
|
5
2
|
exports_provider_options
|
|
6
3
|
} from "./command-y0x38cee.js";
|
|
4
|
+
import {
|
|
5
|
+
exports_config
|
|
6
|
+
} from "./command-kk75ejxm.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_integration
|
|
9
|
-
} from "./command-
|
|
9
|
+
} from "./command-dmfng1b3.js";
|
|
10
|
+
import {
|
|
11
|
+
exports_credential
|
|
12
|
+
} from "./command-b0gag4kv.js";
|
|
10
13
|
import {
|
|
11
14
|
exports_model
|
|
12
15
|
} from "./command-r13w8t0w.js";
|
|
13
16
|
import {
|
|
14
17
|
exports_provider
|
|
15
18
|
} from "./command-krsqcmnj.js";
|
|
16
|
-
import {
|
|
17
|
-
exports_credential
|
|
18
|
-
} from "./command-v4szcjk6.js";
|
|
19
19
|
import {
|
|
20
20
|
exports_bus
|
|
21
|
-
} from "./command-
|
|
21
|
+
} from "./command-5k7by7f9.js";
|
|
22
22
|
|
|
23
23
|
// src/plugin/provider/opencode.ts
|
|
24
24
|
import { Duration, Effect, Schema, Semaphore, Stream } from "effect";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_mcp
|
|
3
|
-
} from "./command-
|
|
3
|
+
} from "./command-21kafjd0.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_location
|
|
6
|
-
} from "./command-
|
|
6
|
+
} from "./command-zrk4eedd.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_bus
|
|
9
|
-
} from "./command-
|
|
9
|
+
} from "./command-5k7by7f9.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
12
|
} from "./command-rvfvac9x.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_permission
|
|
3
|
-
} from "./command-
|
|
3
|
+
} from "./command-ycnh085e.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_state
|
|
6
6
|
} from "./command-x89rah0x.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_bus
|
|
9
|
-
} from "./command-
|
|
9
|
+
} from "./command-5k7by7f9.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
12
|
} from "./command-rvfvac9x.js";
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
EffectSQLiteDatabase,
|
|
4
4
|
make,
|
|
5
5
|
makeWithDefaults
|
|
6
|
-
} from "./command-
|
|
6
|
+
} from "./command-eypxtpm5.js";
|
|
7
7
|
import {
|
|
8
8
|
EffectSQLiteSession,
|
|
9
9
|
EffectSQLiteTransaction,
|
|
10
10
|
managesTransactionsNatively
|
|
11
|
-
} from "./command-
|
|
11
|
+
} from "./command-3vrd3seq.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
14
|
} from "./command-rvfvac9x.js";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./command-mf0hyk7z.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_bus
|
|
6
|
-
} from "./command-
|
|
6
|
+
} from "./command-5k7by7f9.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_database
|
|
9
|
-
} from "./command-
|
|
9
|
+
} from "./command-ngq9smrr.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
12
|
} from "./command-rvfvac9x.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
exports_catalog
|
|
3
|
-
} from "./command-0wh5jxya.js";
|
|
4
|
-
import {
|
|
5
|
-
exports_aisdk
|
|
6
|
-
} from "./command-zygzxh1b.js";
|
|
7
1
|
import {
|
|
8
2
|
exports_aisdk_native
|
|
9
3
|
} from "./command-zs1qer6v.js";
|
|
4
|
+
import {
|
|
5
|
+
exports_catalog
|
|
6
|
+
} from "./command-2m3aea0y.js";
|
|
10
7
|
import {
|
|
11
8
|
exports_integration
|
|
12
|
-
} from "./command-
|
|
9
|
+
} from "./command-dmfng1b3.js";
|
|
10
|
+
import {
|
|
11
|
+
exports_aisdk
|
|
12
|
+
} from "./command-zygzxh1b.js";
|
|
13
13
|
import {
|
|
14
14
|
ID,
|
|
15
15
|
Ref,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_context
|
|
3
|
-
} from "./command-
|
|
3
|
+
} from "./command-mdmajrgb.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_usage
|
|
6
6
|
} from "./command-sw84ckhj.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_store
|
|
9
|
-
} from "./command-
|
|
9
|
+
} from "./command-ymta27h3.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_history
|
|
12
|
-
} from "./command-
|
|
12
|
+
} from "./command-hk7bvhkg.js";
|
|
13
13
|
import {
|
|
14
14
|
SessionEvent
|
|
15
15
|
} from "./command-a83yvq99.js";
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
} from "./command-393a352g.js";
|
|
19
19
|
import {
|
|
20
20
|
exports_bus
|
|
21
|
-
} from "./command-
|
|
21
|
+
} from "./command-5k7by7f9.js";
|
|
22
22
|
import {
|
|
23
23
|
exports_database
|
|
24
|
-
} from "./command-
|
|
24
|
+
} from "./command-ngq9smrr.js";
|
|
25
25
|
import {
|
|
26
26
|
__export
|
|
27
27
|
} from "./command-rvfvac9x.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_models_dev
|
|
3
|
-
} from "./command-
|
|
3
|
+
} from "./command-k1qy4h3f.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_bus
|
|
6
|
-
} from "./command-
|
|
6
|
+
} from "./command-5k7by7f9.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/models-dev.ts
|
|
9
9
|
import { define } from "@opencode-ai/plugin/effect/plugin";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_store
|
|
3
|
-
} from "./command-
|
|
3
|
+
} from "./command-ymta27h3.js";
|
|
4
4
|
import {
|
|
5
5
|
SessionEvent
|
|
6
6
|
} from "./command-a83yvq99.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_location
|
|
9
|
-
} from "./command-
|
|
9
|
+
} from "./command-zrk4eedd.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_bus
|
|
12
|
-
} from "./command-
|
|
12
|
+
} from "./command-5k7by7f9.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
15
|
} from "./command-rvfvac9x.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_instructions
|
|
3
3
|
} from "./command-ec8vrfw5.js";
|
|
4
|
+
import {
|
|
5
|
+
AbsolutePath
|
|
6
|
+
} from "./command-j07kk359.js";
|
|
4
7
|
import {
|
|
5
8
|
exports_state
|
|
6
9
|
} from "./command-x89rah0x.js";
|
|
7
10
|
import {
|
|
8
11
|
exports_bus
|
|
9
|
-
} from "./command-
|
|
10
|
-
import {
|
|
11
|
-
AbsolutePath
|
|
12
|
-
} from "./command-j07kk359.js";
|
|
12
|
+
} from "./command-5k7by7f9.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
15
|
} from "./command-rvfvac9x.js";
|