@runlith/tagma 0.1.0 → 0.2.3
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/host.d.ts +421 -421
- package/package.json +6 -1
- package/plugin/{Held-6krt6ncs.js → Held-cvetk2wg.js} +1 -1
- package/plugin/{accountKey-tdjj67f5.js → accountKey-t44g9avw.js} +1 -1
- package/plugin/anthropic-messages-svq0svwe.js +2 -0
- package/plugin/anthropic-q1xa9n0j.js +2 -0
- package/plugin/{auth-0w6kk39v.js → auth-cp8wnd0z.js} +1 -1
- package/plugin/authStatus-d6scztz5.js +2 -0
- package/plugin/bundling.d.ts +3 -3
- package/plugin/{callback-server-0wrzmjfx.js → callback-server-q2asby82.js} +1 -1
- package/plugin/{capabilities-n3vfpy41.js → capabilities-jfhf61dt.js} +1 -1
- package/plugin/cli.js +1 -1
- package/plugin/{cliStore-9rhjxtht.js → cliStore-5s0qerr7.js} +1 -1
- package/plugin/{connect-vrdsw05j.js → connect-d7ec6kfh.js} +1 -1
- package/plugin/credential-garn07qc.js +2 -0
- package/plugin/deepseek-sp4vxjqy.js +2 -0
- package/plugin/definition-0h3gqd2z.js +2 -0
- package/plugin/{deviceGrant-vgbscpr4.js → deviceGrant-axpyc7xr.js} +1 -1
- package/plugin/duplex-yexjcpv2.js +2 -0
- package/plugin/endpoint-0b9bsb4q.js +2 -0
- package/plugin/{errors-5t42p4q1.js → errors-kck87dpv.js} +1 -1
- package/plugin/{events-e8vv9hda.js → events-81m69vqz.js} +1 -1
- package/plugin/executor-avear8af.js +2 -0
- package/plugin/failure-ddv4456n.js +2 -0
- package/plugin/framing-jnd2zm0h.js +2 -0
- package/plugin/grant-85r3bbqn.js +2 -0
- package/plugin/{harness-nrh78w4d.js → harness-jm3fhnwg.js} +1 -1
- package/plugin/headers-w6p5sp18.js +2 -0
- package/plugin/{ids-n269hc5k.js → ids-2dndaq8y.js} +1 -1
- package/plugin/images-s2kqebfv.js +2 -0
- package/plugin/{index-cyd7v366.js → index-b3yp4szm.js} +1 -1
- package/plugin/{index-jpmjpmkn.js → index-xs7nfsck.js} +1 -1
- package/plugin/lifecycle-er51apxp.js +2 -0
- package/plugin/{messages-1szh3p3k.js → messages-gmwcg1pq.js} +1 -1
- package/plugin/{metadata-zm1v3ptf.js → metadata-gpazs3f5.js} +1 -1
- package/plugin/muse-g8bc58v8.js +2 -0
- package/plugin/notes-5m0m3pdr.js +2 -0
- package/plugin/{openai-37dne8v0.js → openai-6f50tf64.js} +1 -1
- package/plugin/openai-compatible-chat-eez8hkge.js +2 -0
- package/plugin/openai-images-haszbnft.js +2 -0
- package/plugin/{openai-0z6fy497.js → openai-mfqwg6pa.js} +1 -1
- package/plugin/openai-responses-1gpyp640.js +2 -0
- package/plugin/{opencodeGo-173fz5c5.js → opencodeGo-1wgdjtjz.js} +1 -1
- package/plugin/{options-pxwjpfdk.js → options-476akxaj.js} +1 -1
- package/plugin/{pkce-nrpept7w.js → pkce-y3sh5pk8.js} +1 -1
- package/plugin/{plugin-qpda63gv.js → plugin-0e34qaar.js} +1 -1
- package/plugin/{plugin-521srf94.js → plugin-1zkx860n.js} +1 -1
- package/plugin/{plugin-285exjxd.js → plugin-217mw9ck.js} +1 -1
- package/plugin/{plugin-a4ng6krf.js → plugin-24j9hnc7.js} +1 -1
- package/plugin/{plugin-pkxw1pfs.js → plugin-2s6bq45c.js} +1 -1
- package/plugin/{plugin-q1sqj2tc.js → plugin-3969dy0b.js} +1 -1
- package/plugin/{plugin-7y7ndrk9.js → plugin-3t0qp574.js} +1 -1
- package/plugin/{plugin-je5cfnqn.js → plugin-6vzw5yyr.js} +1 -1
- package/plugin/{plugin-sfdxgkds.js → plugin-7swap1ad.js} +1 -1
- package/plugin/{plugin-zz7yc97m.js → plugin-7te9b50h.js} +1 -1
- package/plugin/{plugin-1x94cj6e.js → plugin-7xmwhj5h.js} +1 -1
- package/plugin/{plugin-vv72e4ah.js → plugin-8g8myq9g.js} +1 -1
- package/plugin/{plugin-3whwpedj.js → plugin-8q44b578.js} +1 -1
- package/plugin/{plugin-v7k9fx92.js → plugin-8v4g0q0b.js} +1 -1
- package/plugin/{plugin-zphe2a5v.js → plugin-8x3c401q.js} +1 -1
- package/plugin/{plugin-zxe49p72.js → plugin-92sxs4r1.js} +1 -1
- package/plugin/{plugin-ff38dxy1.js → plugin-9zbh7788.js} +1 -1
- package/plugin/{plugin-nkb5bb2q.js → plugin-a3vzpk4e.js} +1 -1
- package/plugin/{plugin-g65b14k1.js → plugin-azkzdkpk.js} +1 -1
- package/plugin/{plugin-nqmb78ez.js → plugin-d28d8jar.js} +1 -1
- package/plugin/{plugin-zvyk8bnr.js → plugin-dd951075.js} +1 -1
- package/plugin/{plugin-zew2m18x.js → plugin-dqxdznvd.js} +1 -1
- package/plugin/plugin-dsjq4tye.js +3 -0
- package/plugin/{plugin-3pfrkxg1.js → plugin-e5ybk2a2.js} +1 -1
- package/plugin/{plugin-njh1f7b2.js → plugin-eksq91yp.js} +1 -1
- package/plugin/{plugin-yxgg03s0.js → plugin-er1kc6f6.js} +1 -1
- package/plugin/{plugin-60bdzk1r.js → plugin-fjsmz1vy.js} +1 -1
- package/plugin/{plugin-d6hbav22.js → plugin-fre9hdcg.js} +1 -1
- package/plugin/{plugin-jjm52353.js → plugin-g0zv4vrz.js} +1 -1
- package/plugin/{plugin-ay29ch70.js → plugin-g4hst0jz.js} +1 -1
- package/plugin/{plugin-zw3ywa4b.js → plugin-g7hrtg2p.js} +1 -1
- package/plugin/{plugin-kjtzm2q6.js → plugin-hkjxkgty.js} +1 -1
- package/plugin/{plugin-pfj9nc2e.js → plugin-p6x7emar.js} +1 -1
- package/plugin/{plugin-ba1sv0th.js → plugin-pdww1ma8.js} +1 -1
- package/plugin/{plugin-fhc5q7r3.js → plugin-psj9935q.js} +1 -1
- package/plugin/{plugin-frrvs5yc.js → plugin-q6pvb1xf.js} +1 -1
- package/plugin/{plugin-8230g28p.js → plugin-r342d8zf.js} +1 -1
- package/plugin/{plugin-q1n5kwx0.js → plugin-r7g3vqrm.js} +1 -1
- package/plugin/plugin-t4xrq5q2.js +3 -0
- package/plugin/{plugin-z6hkd9rw.js → plugin-tetj2cr3.js} +1 -1
- package/plugin/{plugin-h66k1zhn.js → plugin-v80m00bq.js} +1 -1
- package/plugin/{plugin-8jf7f360.js → plugin-vqrd05eg.js} +1 -1
- package/plugin/{plugin-e2y95zm5.js → plugin-w3zbkmy6.js} +1 -1
- package/plugin/{plugin-1n46me5n.js → plugin-y9cdpmbv.js} +1 -1
- package/plugin/{plugin-ca4vf4j5.js → plugin-yg0h5k5d.js} +1 -1
- package/plugin/{plugin-gkgs7vfv.js → plugin-yp736z4n.js} +1 -1
- package/plugin/{plugin-q7rk75bs.js → plugin-zrb8bbr4.js} +1 -1
- package/plugin/{plugin-1xze8f5y.js → plugin-zsv7wawc.js} +1 -1
- package/plugin/plugin.d.ts +1 -1
- package/plugin/process.js +1 -1
- package/plugin/protocol-8c26dk6v.js +2 -0
- package/plugin/{quota-vrrmfag6.js → quota-v63yvp13.js} +1 -1
- package/plugin/quotaRead-esmjycnd.js +2 -0
- package/plugin/reasoning-1saw6tds.js +2 -0
- package/plugin/responseFold-xxhqx4sa.js +2 -0
- package/plugin/{settings-vdypzert.js → settings-8xq8dvhp.js} +1 -1
- package/plugin/{shared-a2yyy8ry.js → shared-4jndfh28.js} +1 -1
- package/plugin/stepfun-xp1c5wpk.js +2 -0
- package/plugin/stream-8yrr289z.js +2 -0
- package/plugin/{synthesisDuplex-m2j6pmyv.js → synthesisDuplex-ch9jhqzt.js} +1 -1
- package/plugin/template.js +1 -1
- package/plugin/testing.js +1 -1
- package/plugin/tool-content-vean6rqa.js +2 -0
- package/plugin/tool-stream-fb180jmt.js +2 -0
- package/plugin/transport-j784dsdr.js +2 -0
- package/plugin/ui.generated.d.ts +2 -5
- package/plugin/vendorCall-82evk8b3.js +2 -0
- package/plugin/{vendorPayload-awxqr7t8.js → vendorPayload-458354fv.js} +1 -1
- package/plugin/vendorWeb-cz5t01m7.js +2 -0
- package/plugin/verbatim-2f2d9n02.js +2 -0
- package/plugin/xai-2cqraa99.js +2 -0
- package/plugin/anthropic-messages-7gtja121.js +0 -2
- package/plugin/anthropic-z9xqmm3q.js +0 -2
- package/plugin/authStatus-a1g3eb9p.js +0 -2
- package/plugin/credential-5sgapkh0.js +0 -2
- package/plugin/deepseek-v388d1wv.js +0 -2
- package/plugin/definition-s3xx207f.js +0 -2
- package/plugin/duplex-kpmftvf7.js +0 -2
- package/plugin/endpoint-kvf97tz7.js +0 -2
- package/plugin/executor-q8kp5q8h.js +0 -2
- package/plugin/failure-vr32debc.js +0 -2
- package/plugin/framing-nktw5sts.js +0 -2
- package/plugin/grant-67b10nhx.js +0 -2
- package/plugin/headers-ss3dzznj.js +0 -2
- package/plugin/images-q80x3bt1.js +0 -2
- package/plugin/lifecycle-qf4fh5m8.js +0 -2
- package/plugin/muse-r16jp51z.js +0 -2
- package/plugin/notes-6amdhm6h.js +0 -2
- package/plugin/openai-compatible-chat-tq9w69h4.js +0 -2
- package/plugin/openai-images-x1sj79qh.js +0 -2
- package/plugin/openai-responses-dka6k753.js +0 -2
- package/plugin/plugin-92redty0.js +0 -3
- package/plugin/plugin-ff9hx5a4.js +0 -3
- package/plugin/protocol-hwnfh4h1.js +0 -2
- package/plugin/quotaRead-vj6e90xc.js +0 -2
- package/plugin/reasoning-5nanktp2.js +0 -2
- package/plugin/responseFold-w4526gvb.js +0 -2
- package/plugin/stepfun-bwsz4nrd.js +0 -2
- package/plugin/stream-bt8etfpc.js +0 -2
- package/plugin/tool-content-b9jtprr7.js +0 -2
- package/plugin/tool-stream-gdajdxn0.js +0 -2
- package/plugin/transport-7hfp9sn4.js +0 -2
- package/plugin/vendorCall-hv01nwsp.js +0 -2
- package/plugin/vendorWeb-vnf344r1.js +0 -2
- package/plugin/verbatim-mqt9x4aa.js +0 -2
- package/plugin/xai-z1ysta23.js +0 -2
- /package/plugin/{plugin-6xpcmvm3.js → plugin-xfcgt5ba.js} +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runlith/tagma",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/runlith/tagma.git",
|
|
8
|
+
"directory": "packages/tagma"
|
|
9
|
+
},
|
|
5
10
|
"type": "module",
|
|
6
11
|
"exports": {
|
|
7
12
|
"./rules": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./plugin-
|
|
2
|
+
import"./plugin-v80m00bq.js";import{u,k,R,Be,q,Qf,me,F,We,Ln,or,el,Xt,ze,bh,Es,qt,h,d,y,f,c,Ve,s,Te,Zn,i,_i,yx,en,Dt,co,Ga,Ja,hn,ir,is,hr}from"./plugin-xfcgt5ba.js";class U extends F("LockOrderViolated"){get message(){return`lock-order: ${this.wanted.resource} ${this.wanted.key} at rank ${this.wanted.rank} was asked for while ${this.held.resource} ${this.held.key} at rank ${this.held.rank} is held
|
|
3
3
|
wanted at:
|
|
4
4
|
${this.wanted.stack}
|
|
5
5
|
held since:
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./plugin-
|
|
2
|
+
import"./plugin-v80m00bq.js";import{Pg}from"./plugin-vqrd05eg.js";var e=Pg.make("only");function o(n){return new Date(n).toISOString().slice(0,10)}export{e as SINGLE_ACCOUNT_KEY,o as signInDate};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{af,$w,Nw,cf,NE,Lw,Dw,Fw,Uw,zw,Hw,jw,qw,Bw,Ww,LE,ba,DE,Vw,Rl,Il,Zw,Gw,Cl}from"./plugin-eksq91yp.js";import"./plugin-zsv7wawc.js";import"./plugin-2s6bq45c.js";import"./plugin-pdww1ma8.js";import"./plugin-kc4z9msd.js";import"./plugin-7xmwhj5h.js";import"./plugin-fjsmz1vy.js";import"./plugin-24j9hnc7.js";import"./plugin-yp736z4n.js";import"./plugin-a3vzpk4e.js";import"./plugin-r7g3vqrm.js";import"./plugin-g7hrtg2p.js";import"./plugin-e5ybk2a2.js";import"./plugin-8q44b578.js";import"./plugin-p6x7emar.js";import"./plugin-y9cdpmbv.js";import"./plugin-g4hst0jz.js";import"./plugin-3t0qp574.js";import"./plugin-w3zbkmy6.js";import"./plugin-6vzw5yyr.js";import"./plugin-d28d8jar.js";import"./plugin-7te9b50h.js";import"./plugin-krbbb4ts.js";import"./plugin-72xxqm1t.js";import"./plugin-me00x60n.js";import"./plugin-q6pvb1xf.js";import"./plugin-v80m00bq.js";export{af as ADAPTER,qw as AnthropicAssistantBlock,ba as AnthropicEfforts,Vw as AnthropicEvent,zw as AnthropicFallbackBlock,NE as AnthropicImageBlock,Bw as AnthropicMessage,Uw as AnthropicServerToolResultBlock,Fw as AnthropicServerToolResultType,Dw as AnthropicServerToolUseBlock,cf as AnthropicTextBlock,LE as AnthropicThinkingDisplays,Ww as AnthropicTool,Hw as AnthropicToolResultBlock,Lw as AnthropicToolUseBlock,DE as AnthropicUsage,jw as AnthropicUserBlock,$w as DEFAULT_BASE_URL,Nw as PATH,Rl as anthropicMetadata,Zw as headers,Il as options,Gw as protocol,Cl as route};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import"./plugin-v80m00bq.js";import"./plugin-d28d8jar.js";import"./plugin-me00x60n.js";import"./plugin-q6pvb1xf.js";import"./plugin-7te9b50h.js";import"./plugin-6vzw5yyr.js";import"./plugin-3t0qp574.js";import{bu}from"./plugin-g4hst0jz.js";import"./plugin-8q44b578.js";import"./plugin-72xxqm1t.js";import"./plugin-y9cdpmbv.js";import"./plugin-a3vzpk4e.js";import"./plugin-yp736z4n.js";import"./plugin-g7hrtg2p.js";import"./plugin-24j9hnc7.js";import"./plugin-r7g3vqrm.js";import"./plugin-p6x7emar.js";import"./plugin-w3zbkmy6.js";import"./plugin-krbbb4ts.js";import"./plugin-e5ybk2a2.js";import"./plugin-fjsmz1vy.js";import"./plugin-7xmwhj5h.js";import"./plugin-pdww1ma8.js";import{ba,Il,Cl}from"./plugin-eksq91yp.js";import"./plugin-zsv7wawc.js";import"./plugin-2s6bq45c.js";import"./plugin-9gha9fx3.js";import{uf,fm}from"./plugin-vfjhxng8.js";import{Hn}from"./plugin-dd951075.js";import{Is}from"./plugin-fre9hdcg.js";import{Yn,Ml}from"./plugin-g0zv4vrz.js";import"./plugin-kc4z9msd.js";import{r}from"./plugin-xfcgt5ba.js";var i=32000,n={fromHeaders:()=>null,read:Is},d=(o)=>{if(o.adaptive){let t=ba.find((s)=>s===o.rung);return{thinking:{type:"adaptive"},outputConfig:t===void 0?void 0:{effort:t}}}let e=Ml(Yn(o.rung),o.outputTokens);return{thinking:e===void 0?void 0:{type:"enabled",budgetTokens:e},outputConfig:void 0}},p=(o)=>Il({...d(o),disableParallelToolUse:o.parallelToolCalls===void 0?void 0:!o.parallelToolCalls}),a={output:{budget:i,sent:!0},model:(o)=>r(l(o)),options:p},l=(o)=>Cl.with({provider:uf,quota:n.fromHeaders,limits:{output:i},auth:Hn(o.credentials,o.ownerId,uf,o.account).pipe(bu("x-api-key"))}).model({id:o.model}),u={...fm,profile:a,quota:n},A=()=>[u];export{i as ANTHROPIC_OUTPUT_RESERVATION,u as anthropicConsoleRegistration,A as anthropicConsoleRegistrations,d as thinkingOptions};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ca,FT,UT,zT,HT,ly,Fr,jT,qT,Cf,BT,WT,Qk,VT,bu,ZT,Co}from"./plugin-
|
|
2
|
+
import{Ca,FT,UT,zT,HT,ly,Fr,jT,qT,Cf,BT,WT,Qk,VT,bu,ZT,Co}from"./plugin-g4hst0jz.js";import"./plugin-3t0qp574.js";import"./plugin-6vzw5yyr.js";import"./plugin-d28d8jar.js";import"./plugin-7te9b50h.js";import"./plugin-me00x60n.js";import"./plugin-q6pvb1xf.js";import"./plugin-v80m00bq.js";export{Ca as MissingCredentialError,VT as apiKey,Qk as bearer,ZT as bearerHeader,HT as config,Cf as custom,ly as effect,bu as header,jT as headers,FT as isAuth,Fr as none,zT as optional,WT as passthrough,qT as remove,Co as toEffect,UT as value,BT as whenAbsent};
|
package/plugin/bundling.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference path="../types/node/index.d.ts" />
|
|
2
2
|
/// <reference path="../host.d.ts" />
|
|
3
|
-
import type { BunPlugin } from "@runlith/tagma/internal
|
|
4
|
-
import type { CompileOptions, ModuleCompileOptions } from "@runlith/tagma/internal
|
|
3
|
+
import type { BunPlugin } from "@runlith/tagma/internal/../node_modules/.bun/@types+bun@1.4.4/node_modules/@types/bun/index";
|
|
4
|
+
import type { CompileOptions, ModuleCompileOptions } from "@runlith/tagma/internal/../node_modules/.bun/svelte@5.57.0/node_modules/svelte/types/index";
|
|
5
5
|
import type { ViewGraph } from "@runlith/tagma/plugin/points";
|
|
6
|
-
export type SvelteCompiler = Pick<typeof import("@runlith/tagma/internal
|
|
6
|
+
export type SvelteCompiler = Pick<typeof import("@runlith/tagma/internal/../node_modules/.bun/svelte@5.57.0/node_modules/svelte/types/index"), 'compile' | 'compileModule' | 'VERSION'>;
|
|
7
7
|
export type ViewFailure = {
|
|
8
8
|
readonly file: string;
|
|
9
9
|
readonly message: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./plugin-
|
|
2
|
+
import"./plugin-v80m00bq.js";import"./plugin-72xxqm1t.js";import"./plugin-krbbb4ts.js";import{Xn}from"./plugin-dqxdznvd.js";import{Ne,F,Ln,or,Xt,it,r,d,c,Te,Bt,en,dt,Ga,ir,ee}from"./plugin-xfcgt5ba.js";class y extends F("CallbackServerStopFailed"){}var C=`<!doctype html>
|
|
3
3
|
<html lang="en">
|
|
4
4
|
<head><meta charset="utf-8"><title>Login complete</title></head>
|
|
5
5
|
<body style="font-family: system-ui; padding: 2rem; text-align: center;">
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{nv,hk,gk,yk,xk,Sk,bk,Ek,vk,wk,kk,_k,AT,MT,Tk,Rk,Ik,Xg,ey}from"./plugin-
|
|
2
|
+
import{nv,hk,gk,yk,xk,Sk,bk,Ek,vk,wk,kk,_k,AT,MT,Tk,Rk,Ik,Xg,ey}from"./plugin-tetj2cr3.js";import"./plugin-v80m00bq.js";export{vk as BatchRecognition,wk as FileLimits,kk as FileRecognition,bk as Knob,AT as LIVE,gk as Languages,Sk as Limits,xk as Prompting,MT as RECORDED,_k as RecognitionCapabilities,Xg as RecognitionModel,Ek as StreamRecognition,Ik as SynthesisCapabilities,Rk as SynthesisLimits,ey as SynthesisModel,hk as Timestamps,yk as Translation,nv as TurnMode,Tk as Voice};
|
package/plugin/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
// @bun
|
|
3
|
-
import"./plugin-h66k1zhn.js";import"./plugin-6a56xsx3.js";import"./plugin-cydz2zhy.js";import{My,jf,$a,qf}from"./plugin-rrgyjesv.js";import"./plugin-z6hkd9rw.js";import{Sf,bf,fi,Ef,vf}from"./plugin-g65b14k1.js";import"./plugin-frrvs5yc.js";import"./plugin-8230g28p.js";import"./plugin-ca4vf4j5.js";import{bm,Zg}from"./plugin-zphe2a5v.js";import{xm,Sm,Vg}from"./plugin-xbnw80pk.js";import{b,T,C,Qf,US,$r,yn,n,w,ce,t,z,o,ge,ss,x,O,W,gt,ec,ye,kt,An,au,Ud,Up,go,ct,Zt,_t,yo,So}from"./plugin-6xpcmvm3.js";import{watch as Kl}from"fs";import{mkdir as zl,readdir as Yl,writeFile as Jl}from"fs/promises";import{basename as Xl,join as xr,relative as Zl,resolve as _r,sep as Ql}from"path";import{createHash as Fl}from"crypto";import{mkdir as kr,readFile as Tr,realpath as Er,rm as wt,writeFile as vt}from"fs/promises";import{dirname as Sr,join as ne,relative as jl,resolve as Mr}from"path";import{fileURLToPath as Bl}from"url";var St=new WeakMap;function Ir(e){let r=St.get(e);if(r!==void 0)return r;let i=So(e);return St.set(e,i),i}var Tt=new WeakMap,Cr=(e)=>{let r=Tt.get(e);if(r!==void 0)return r;let i=Ir(n(e.schema));return Tt.set(e,i),i},Fr=(e,r)=>$r(Cr(e))(r,{onExcessProperty:"error"}),jr=(e,r,i)=>{let a=Object.entries(i),s=a.filter(([h])=>!r.has(h)).map(([h])=>h);if(s.length>0)return T(`${s.join(", ")} ${s.length===1?"is a point":"are points"} no owner of this server declares; the points are ${[...r.keys()].join(", ")}`);let l={};for(let[h,g]of a){let k=Fr(r.get(h),g);if(C(k))return T(`contributes.${h}: ${k.failure.message}`);if(k.success!==void 0)l[h]=k.success}let d=(h)=>r.get(h.name)===h?l[h.name]:void 0,c=[...r.values()].find((h)=>h.serves!==void 0);for(let[h,g]of Object.entries(l)){let k=r.get(h),v=k.refuses?.(g,{plugin:e,sibling:d});if(v!==void 0&&v!==null)return T(`contributes.${h}: ${v}`);for(let A of k.calls?.(g)??[]){let p=c?.serves?.(l[c.name],A)??null;if(p!==null)return T(`contributes.${h}: ${p}`)}}return b(l)},Br=/^[a-z0-9](?:[a-z0-9_-]*[a-z0-9])?$/u,pd=t.check(kt(Br),_t(64)).annotate({description:"The plugin, named as its package names itself, a `.` read as `-`."}),Xt=/^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/u,Qt=t.check(kt(Xt),_t(40)).annotate({description:"A plugin in Tagma\u2019s format: lowercase letters, digits and inner hyphens, so it names a site and its agents."}),en=["string","number","boolean","directory","file"],Dr=["skill","command","mcp-server","agent","hook","process","contribution"],G=t.check(Zt(1)),Hr=/^[0-9a-f]{40}$/u,tn=O([o({kind:w("folder"),path:G}),o({kind:w("git"),url:G,path:n(G).annotate({description:"The directory of the repository that holds the plugin; its root when absent."}),ref:n(G).annotate({description:"The branch or tag cloned; the default branch when absent."}),commit:n(t.check(kt(Hr))).annotate({description:"The full commit: the pin a source asks for, and on an install the commit installed."})}),o({kind:w("npm"),name:G.annotate({description:"The npm package, from the registry the machine\u2019s npm configuration names."}),range:n(G).annotate({description:"The version, range or dist-tag asked for; latest when absent."})})]),Ve=o({models:z.annotate({description:"It brings model providers: wire providers, CLI agents or a settings form for them."}),harnesses:z.annotate({description:"Among its model providers, a CLI agent Tagma runs."}),speech:z.annotate({description:"It brings speech providers."})}),nn=o({marketplace:G.annotate({description:"The marketplace the plugin was installed from."}),entry:G.annotate({description:"The name of its entry in that marketplace."}),url:n(G).annotate({description:"The marketplace\u2019s git URL, which names it on every machine; absent for a marketplace read from a folder."})}),Wr=o({format:G.annotate({description:"The plugin format the manifest is written in."}),fields:ge(t,ce).annotate({description:"The manifest fields the marketplace entry declares."})}),fd=o({name:G.annotate({description:"The name its marketplace entry installs the plugin under, which names its components."}),manifest:n(Wr)}),rn=o({kind:W(Dr),name:t.annotate({description:"The name Tagma offers it under, `<plugin>-<name>`; a hook names its event, a process the module it runs, a contribution its point."}),detail:n(t).annotate({description:"What it runs or reaches, or for an agent the tools it named that Tagma has no equivalent of; for a contribution, what its point says the entries ask of the person\u2019s devices."}),title:n(t).annotate({description:"For a contribution, what its point gives a person, in the words of the point\u2019s owner."}),entries:n(x(o({name:t,title:t}))).annotate({description:"For a contribution whose point lists what it holds, each entry by name and title, read from the manifest whether or not the plugin runs."})}),on=o({component:t,name:gt(t),reason:t}),an=o({key:t,type:W(en),title:t,description:t,sensitive:z.annotate({description:"Kept in the key store under the plugin, never in a setting."}),required:z,set:z.annotate({description:"Whether a value or the declared default stands for it."}),fallback:gt(t).annotate({description:"The default the plugin declares, used while no value is given; null for none and for a secret option."})}),Ur=["stopped","idle","starting","running","failed"],Gr=o({state:W(Ur).annotate({description:"idle: its contributions stand and its process is not running; the next call, tick, ending, notification, build step or view subscription starts it. failed: its process could not start or serve, so agents are offered none of its tools until it does."}),tools:An.annotate({description:"Tools it offers agents and its views."}),restarts:An,failure:n(t).annotate({description:"Why it is failed, or why its last process ended, with the tail of what that process wrote."}),refused:n(t).annotate({description:"Why its directory as it stands now is refused; what was working keeps the declaration it started with."})}),Vr=o({point:t.annotate({description:"The contribution point whose owner found it, such as views."}),title:t.annotate({description:"One sentence a person reads on the plugin\u2019s card."}),detail:t.annotate({description:"What an agent fixing it needs: the file and the message."})}),qr=["listed","otherwise","unlisted","unreachable","own","unreadable"],Kr=o({to:gt(t).annotate({description:"What an update takes: the newest version its npm package or marketplace entry offers within `range`, the version an npm dist-tag `range` names, or the commit its git ref names now; null when nothing newer stands."}),range:gt(t).annotate({description:"The versions it may take, a semver range or an npm dist-tag: this project\u2019s line, else the range recorded at install; null for the newest, and for a git source."}),checked:gt(t).annotate({description:"When its source last answered, ISO 8601; null before it ever did."}),failed:n(o({at:t,reason:t})).annotate({description:"The last check, which failed; `to` stands on the answer before it."})}),gd=o({id:t,title:gt(t),version:gt(t),description:gt(t),builtin:z.annotate({description:"Shipped inside Tagma: it has no source or directory, cannot be uninstalled, and only the machine switch acts on it."}),format:gt(t).annotate({description:"The format its directory was read in; null for a built-in plugin and when it could not be read."}),source:gt(tn).annotate({description:"Where it was installed from; null for a built-in plugin."}),origin:n(nn).annotate({description:"The marketplace entry it was installed from; update_plugin follows it."}),root:gt(t).annotate({description:"The directory it is read from: a folder installed in place, or the copy taken from its git URL, npm package or marketplace entry; null for a built-in plugin."}),enabled:z.annotate({description:"Whether this project runs its components."}),listing:n(W(qr)).annotate({description:"listed: this project\u2019s `.tagma-plugins/plugins.json` names it for collaborators as installed here. otherwise: it names it from another source, or at a range this version is outside; read_project_plugins says how. unlisted: it does not name it. unreachable: it came from a folder outside the project or a marketplace read from a folder, which no collaborator reaches, so it cannot be listed. own: the project\u2019s own `.tagma-plugins/<id>/`, offered by the folder itself. unreadable: plugins.json does not read, so what it names cannot be told. Absent for a built-in plugin."}),update:n(Kr).annotate({description:"What its source offers; absent for a folder, read in place, for a built-in plugin, and while this project\u2019s plugins.json does not read, since the range it sets cannot be told."}),everywhere:z.annotate({description:"Whether it is enabled for every project; a project that switches it off does not run it."}),off:z.annotate({description:"Whether it is turned off on this machine: it runs in no project whatever its enabling says, and its providers leave the model and speech catalogs."}),providers:n(Ve).annotate({description:"What its provider part brings; providers stand on the whole machine, so project enabling does not apply to them."}),components:x(rn).annotate({description:"What Tagma took from it."}),ignored:x(on).annotate({description:"What Tagma does not take from it, each with the reason."}),options:x(an),process:n(Gr).annotate({description:"Its process on this machine, for a plugin that runs one or contributes to Tagma; it runs while any project enables it."}),outdated:gt(z).annotate({description:"Whether a source its build lists changed or went missing after that build, so what runs is the earlier build; null when its sources could not be hashed just now."}),unhashed:n(t).annotate({description:"Why its sources could not be hashed, when `outdated` is null."}),refused:n(t).annotate({description:"Why its directory as it stands now cannot be read; a refused plugin contributes nothing."}),faults:x(Vr).annotate({description:"What Tagma found wrong with a published contribution, such as views that do not compile; its other contributions keep working."})}),ee=gt(t),wd=o({prepared:t.annotate({description:"The prepared revision: install_plugin installs it as `prepared`, without fetching it again."}),expires:t.annotate({description:"When the prepared revision is dropped, ISO 8601."}),id:t.annotate({description:"The plugin it installs as, which names its components `<plugin>-<name>`."}),title:ee,version:ee,description:ee,format:t.annotate({description:"The format its package was read in."}),about:o({author:ee,homepage:ee,repository:ee,license:ee}),source:tn,origin:n(nn),replaces:z.annotate({description:"Whether installing it replaces the version of this plugin installed now."}),providers:n(Ve).annotate({description:"What its provider part brings to the whole machine; its code runs inside Tagma\u2019s server."}),components:x(rn).annotate({description:"What Tagma takes from it."}),ignored:x(on).annotate({description:"What Tagma does not take from it, each with the reason."}),options:x(an),consent:o({runs:x(t).annotate({description:"What it runs as the operator: its own process, stdio MCP servers and hook commands."}),reaches:x(t).annotate({description:"The remote MCP servers it reaches."}),raises:x(t).annotate({description:"The further facts installing it asks consent for."})}).annotate({description:"What installing it asks consent for wherever it runs."})}),zr=["PATH","HOME","USER","LOGNAME","SHELL","TERM","TMPDIR"],ke=t.check(Zt(1)),Yr=t.check(kt(/^(?!TAGMA_)[A-Z][A-Z0-9_]*$/u),_t(64),ye((e)=>zr.some((r)=>r===e)?`${e} is a variable every process is started with`:!0)).annotate({description:"The option, named as the environment variable its process reads it from: capital letters, digits and underscores, not starting with TAGMA_ and not PATH, HOME, USER, LOGNAME, SHELL, TERM or TMPDIR."}),Jr=o({key:Yr,title:ke,description:t,type:n(W(en)),sensitive:n(z).annotate({description:"A secret: kept in the key store, masked in what the process answers."}),required:n(z),default:n(t)}),Xr=x(Jr).check(ye((e)=>{let r=new Set;for(let{key:i}of e){if(r.has(i))return`the option ${i} is listed twice`;r.add(i)}return!0})),He=t.check(ye((e)=>e!==""&&!e.includes("\\")&&e.split("/").every((r)=>r!==""&&r!=="."&&r!=="..")?!0:`${e} is not a path inside the plugin directory`)),Zr=x(He).check(ye((e)=>e.every((r,i)=>i===0||e[i-1]<r)?!0:"the sources are listed sorted, each once")),Et=ge(t,t),Qr=t.check(kt(/^[a-zA-Z0-9_-]+$/u)).annotate({description:"The server as the plugin calls it, with letters, digits, _ and -; read_mcp_servers lists it as `<plugin>-<name>`."}),ei=O([o({type:w("stdio"),command:t.check(Zt(1)).annotate({description:"One executable name looked up on PATH, or a ./ path to a file inside the plugin."}),args:n(x(t)),env:n(Et),cwd:n(t).annotate({description:"Rooted at ./, ${PLUGIN_ROOT} or ${PLUGIN_DATA}; the plugin directory when omitted."})}).annotate({description:"A server the plugin runs as the operator over stdio. ${PLUGIN_ROOT} and ${PLUGIN_DATA} are expanded in args, env and cwd, and the process also receives them as variables."}),o({type:w("streamable-http"),url:t.check(Zt(1)).annotate({description:"An https URL, or http to loopback only."}),headers:n(Et)}).annotate({description:"A remote server over Streamable HTTP; one asking for OAuth signs in from its card."})]),ti=o({id:Qt,title:ke,version:ke,description:n(t),process:n(o({entry:He.annotate({description:"The bundled module Tagma runs on its own runtime, from the plugin directory as the operator."}),resident:n(z).annotate({description:"Kept running while the plugin is enabled, rather than started on demand and stopped when idle."})})),providers:n(o({entry:He.annotate({description:"The bundled providers module Tagma imports into its own process, its host modules served by the server\u2019s copies."}),...Ve.fields})).annotate({description:"The provider part, as the build described it without running it: model providers, CLI agents and speech providers that join the catalogs of the whole machine."}),options:n(Xr),mcpServers:n(ge(Qr,ei)).annotate({description:"The MCP servers the plugin brings: they join the MCP server list of every project running it, and its process and views call them with `servers.<name>.call`."}),build:o({sdk:ke.annotate({description:"The @runlith/tagma the plugin was built with: a release number, or the version of a checkout\u2019s SDK."}),hash:t.check(kt(/^[0-9a-f]{64}$/u)).annotate({description:"SHA-256 over each source as its path, a NUL, its byte length, a NUL and its bytes, in the order listed."}),sources:Zr.annotate({description:"Every file the build read outside node_modules."})}),contributes:n(ge(t,ce)).annotate({description:"Contributions by point; every point is declared by the owner that registers it."})}),qe="dist/ui",Ke="graph.json",ze=t.check(kt(/^(?!\.{1,2}(?:\/|$))[^/\\\0]+(?:\/(?!\.{1,2}(?:\/|$))[^/\\\0]+)*$/u),_t(400)).annotate({description:"A file of the view graph, relative to dist/ui/."}),sn=n(w(!0)).annotate({description:"true: the file belongs to a package the plugin depends on, so Svelte decides its mode instead of runes."}),ln=x(t).annotate({description:"The Tailwind class candidates of every shipped file, as Tailwind\u2019s own scanner reads them."}),ni=o({imports:ge(t,O([ze,w("host")])).annotate({description:"Every import specifier the file\u2019s compiled code writes, with the graph file it resolved to, or host for a module the window serves."}),dependency:sn}),ri=o({files:ge(ze,ni),candidates:ln}),yd=o({files:ge(ze,o({dependency:sn})),candidates:ln}),dn={experimental:{async:!1}},un=(e)=>e?void 0:!0,bd={...dn,runes:({filename:e})=>un(e.split(/[/\\]/u).includes("node_modules"))},ii={...dn,generate:"client",dev:!1,css:"injected"},oi={generate:"client",dev:!1},Ye=(e,r)=>({...ii,filename:e,runes:un(r)}),Je=(e)=>({...oi,filename:e}),cn="@runlith/tagma/ui",ai=new Set(["./package.json","./compiler","./server","./internal","./internal/server"]),si=(e)=>typeof e==="string"||typeof e==="object"&&e!==null&&Object.keys(e).some((r)=>r!=="types"),hn=(e)=>[...Object.entries(e).flatMap(([r,i])=>ai.has(r)||r.includes("*")||!si(i)?[]:[r==="."?"svelte":`svelte/${r.slice(2)}`]),"@runlith/tagma/ui"],li=["Mod","Cmd","Ctrl","Alt","Shift"],di=new Set(["Space","Enter","Tab","Escape","Backspace","Delete","Insert","Home","End","PageUp","PageDown","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Backquote","Minus","Equal","BracketLeft","BracketRight","Backslash","Semicolon","Quote","Comma","Period","Slash"]),pn=/^F(?:[1-9]|1[0-9]|2[0-4])$/u,ui=(e)=>/^[A-Z0-9]$/u.test(e)||pn.test(e)||di.has(e);function Xe(e){let r=e.split("+"),i=r.pop();if(i===void 0||!ui(i))return null;let a=new Set;for(let s of r){if(!li.includes(s)||a.has(s))return null;a.add(s)}return{mod:a.has("Mod"),cmd:a.has("Cmd"),ctrl:a.has("Ctrl"),alt:a.has("Alt"),shift:a.has("Shift"),key:i}}var ci=(e)=>[e.mod&&"Mod",e.cmd&&"Cmd",e.ctrl&&"Ctrl",e.alt&&"Alt",e.shift&&"Shift",e.key].filter((r)=>r!==!1).join("+");//! The logical key decides, so ⌘Z is Z on AZERTY; the physical code decides only where the layout gives no Latin name.
|
|
3
|
+
import"./plugin-v80m00bq.js";import"./plugin-6a56xsx3.js";import"./plugin-cydz2zhy.js";import{My,jf,$a,qf}from"./plugin-rrgyjesv.js";import"./plugin-tetj2cr3.js";import{Sf,bf,fi,Ef,vf}from"./plugin-azkzdkpk.js";import"./plugin-q6pvb1xf.js";import"./plugin-r342d8zf.js";import"./plugin-yg0h5k5d.js";import{bm,Zg}from"./plugin-8x3c401q.js";import{xm,Sm,Vg}from"./plugin-xbnw80pk.js";import{b,T,C,Qf,US,$r,yn,n,w,ce,t,z,o,ge,ss,x,O,W,gt,ec,ye,kt,An,au,Ud,Up,go,ct,Zt,_t,yo,So}from"./plugin-xfcgt5ba.js";import{watch as Kl}from"fs";import{mkdir as zl,readdir as Yl,writeFile as Jl}from"fs/promises";import{basename as Xl,join as xr,relative as Zl,resolve as _r,sep as Ql}from"path";import{createHash as Fl}from"crypto";import{mkdir as kr,readFile as Tr,realpath as Er,rm as wt,writeFile as vt}from"fs/promises";import{dirname as Sr,join as ne,relative as jl,resolve as Mr}from"path";import{fileURLToPath as Bl}from"url";var St=new WeakMap;function Ir(e){let r=St.get(e);if(r!==void 0)return r;let i=So(e);return St.set(e,i),i}var Tt=new WeakMap,Cr=(e)=>{let r=Tt.get(e);if(r!==void 0)return r;let i=Ir(n(e.schema));return Tt.set(e,i),i},Fr=(e,r)=>$r(Cr(e))(r,{onExcessProperty:"error"}),jr=(e,r,i)=>{let a=Object.entries(i),s=a.filter(([h])=>!r.has(h)).map(([h])=>h);if(s.length>0)return T(`${s.join(", ")} ${s.length===1?"is a point":"are points"} no owner of this server declares; the points are ${[...r.keys()].join(", ")}`);let l={};for(let[h,g]of a){let k=Fr(r.get(h),g);if(C(k))return T(`contributes.${h}: ${k.failure.message}`);if(k.success!==void 0)l[h]=k.success}let d=(h)=>r.get(h.name)===h?l[h.name]:void 0,c=[...r.values()].find((h)=>h.serves!==void 0);for(let[h,g]of Object.entries(l)){let k=r.get(h),v=k.refuses?.(g,{plugin:e,sibling:d});if(v!==void 0&&v!==null)return T(`contributes.${h}: ${v}`);for(let A of k.calls?.(g)??[]){let p=c?.serves?.(l[c.name],A)??null;if(p!==null)return T(`contributes.${h}: ${p}`)}}return b(l)},Br=/^[a-z0-9](?:[a-z0-9_-]*[a-z0-9])?$/u,pd=t.check(kt(Br),_t(64)).annotate({description:"The plugin, named as its package names itself, a `.` read as `-`."}),Xt=/^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/u,Qt=t.check(kt(Xt),_t(40)).annotate({description:"A plugin in Tagma\u2019s format: lowercase letters, digits and inner hyphens, so it names a site and its agents."}),en=["string","number","boolean","directory","file"],Dr=["skill","command","mcp-server","agent","hook","process","contribution"],G=t.check(Zt(1)),Hr=/^[0-9a-f]{40}$/u,tn=O([o({kind:w("folder"),path:G}),o({kind:w("git"),url:G,path:n(G).annotate({description:"The directory of the repository that holds the plugin; its root when absent."}),ref:n(G).annotate({description:"The branch or tag cloned; the default branch when absent."}),commit:n(t.check(kt(Hr))).annotate({description:"The full commit: the pin a source asks for, and on an install the commit installed."})}),o({kind:w("npm"),name:G.annotate({description:"The npm package, from the registry the machine\u2019s npm configuration names."}),range:n(G).annotate({description:"The version, range or dist-tag asked for; latest when absent."})})]),Ve=o({models:z.annotate({description:"It brings model providers: wire providers, CLI agents or a settings form for them."}),harnesses:z.annotate({description:"Among its model providers, a CLI agent Tagma runs."}),speech:z.annotate({description:"It brings speech providers."})}),nn=o({marketplace:G.annotate({description:"The marketplace the plugin was installed from."}),entry:G.annotate({description:"The name of its entry in that marketplace."}),url:n(G).annotate({description:"The marketplace\u2019s git URL, which names it on every machine; absent for a marketplace read from a folder."})}),Wr=o({format:G.annotate({description:"The plugin format the manifest is written in."}),fields:ge(t,ce).annotate({description:"The manifest fields the marketplace entry declares."})}),fd=o({name:G.annotate({description:"The name its marketplace entry installs the plugin under, which names its components."}),manifest:n(Wr)}),rn=o({kind:W(Dr),name:t.annotate({description:"The name Tagma offers it under, `<plugin>-<name>`; a hook names its event, a process the module it runs, a contribution its point."}),detail:n(t).annotate({description:"What it runs or reaches, or for an agent the tools it named that Tagma has no equivalent of; for a contribution, what its point says the entries ask of the person\u2019s devices."}),title:n(t).annotate({description:"For a contribution, what its point gives a person, in the words of the point\u2019s owner."}),entries:n(x(o({name:t,title:t}))).annotate({description:"For a contribution whose point lists what it holds, each entry by name and title, read from the manifest whether or not the plugin runs."})}),on=o({component:t,name:gt(t),reason:t}),an=o({key:t,type:W(en),title:t,description:t,sensitive:z.annotate({description:"Kept in the key store under the plugin, never in a setting."}),required:z,set:z.annotate({description:"Whether a value or the declared default stands for it."}),fallback:gt(t).annotate({description:"The default the plugin declares, used while no value is given; null for none and for a secret option."})}),Ur=["stopped","idle","starting","running","failed"],Gr=o({state:W(Ur).annotate({description:"idle: its contributions stand and its process is not running; the next call, tick, ending, notification, build step or view subscription starts it. failed: its process could not start or serve, so agents are offered none of its tools until it does."}),tools:An.annotate({description:"Tools it offers agents and its views."}),restarts:An,failure:n(t).annotate({description:"Why it is failed, or why its last process ended, with the tail of what that process wrote."}),refused:n(t).annotate({description:"Why its directory as it stands now is refused; what was working keeps the declaration it started with."})}),Vr=o({point:t.annotate({description:"The contribution point whose owner found it, such as views."}),title:t.annotate({description:"One sentence a person reads on the plugin\u2019s card."}),detail:t.annotate({description:"What an agent fixing it needs: the file and the message."})}),qr=["listed","otherwise","unlisted","unreachable","own","unreadable"],Kr=o({to:gt(t).annotate({description:"What an update takes: the newest version its npm package or marketplace entry offers within `range`, the version an npm dist-tag `range` names, or the commit its git ref names now; null when nothing newer stands."}),range:gt(t).annotate({description:"The versions it may take, a semver range or an npm dist-tag: this project\u2019s line, else the range recorded at install; null for the newest, and for a git source."}),checked:gt(t).annotate({description:"When its source last answered, ISO 8601; null before it ever did."}),failed:n(o({at:t,reason:t})).annotate({description:"The last check, which failed; `to` stands on the answer before it."})}),gd=o({id:t,title:gt(t),version:gt(t),description:gt(t),builtin:z.annotate({description:"Shipped inside Tagma: it has no source or directory, cannot be uninstalled, and only the machine switch acts on it."}),format:gt(t).annotate({description:"The format its directory was read in; null for a built-in plugin and when it could not be read."}),source:gt(tn).annotate({description:"Where it was installed from; null for a built-in plugin."}),origin:n(nn).annotate({description:"The marketplace entry it was installed from; update_plugin follows it."}),root:gt(t).annotate({description:"The directory it is read from: a folder installed in place, or the copy taken from its git URL, npm package or marketplace entry; null for a built-in plugin."}),enabled:z.annotate({description:"Whether this project runs its components."}),listing:n(W(qr)).annotate({description:"listed: this project\u2019s `.tagma-plugins/plugins.json` names it for collaborators as installed here. otherwise: it names it from another source, or at a range this version is outside; read_project_plugins says how. unlisted: it does not name it. unreachable: it came from a folder outside the project or a marketplace read from a folder, which no collaborator reaches, so it cannot be listed. own: the project\u2019s own `.tagma-plugins/<id>/`, offered by the folder itself. unreadable: plugins.json does not read, so what it names cannot be told. Absent for a built-in plugin."}),update:n(Kr).annotate({description:"What its source offers; absent for a folder, read in place, for a built-in plugin, and while this project\u2019s plugins.json does not read, since the range it sets cannot be told."}),everywhere:z.annotate({description:"Whether it is enabled for every project; a project that switches it off does not run it."}),off:z.annotate({description:"Whether it is turned off on this machine: it runs in no project whatever its enabling says, and its providers leave the model and speech catalogs."}),providers:n(Ve).annotate({description:"What its provider part brings; providers stand on the whole machine, so project enabling does not apply to them."}),components:x(rn).annotate({description:"What Tagma took from it."}),ignored:x(on).annotate({description:"What Tagma does not take from it, each with the reason."}),options:x(an),process:n(Gr).annotate({description:"Its process on this machine, for a plugin that runs one or contributes to Tagma; it runs while any project enables it."}),outdated:gt(z).annotate({description:"Whether a source its build lists changed or went missing after that build, so what runs is the earlier build; null when its sources could not be hashed just now."}),unhashed:n(t).annotate({description:"Why its sources could not be hashed, when `outdated` is null."}),refused:n(t).annotate({description:"Why its directory as it stands now cannot be read; a refused plugin contributes nothing."}),faults:x(Vr).annotate({description:"What Tagma found wrong with a published contribution, such as views that do not compile; its other contributions keep working."})}),ee=gt(t),wd=o({prepared:t.annotate({description:"The prepared revision: install_plugin installs it as `prepared`, without fetching it again."}),expires:t.annotate({description:"When the prepared revision is dropped, ISO 8601."}),id:t.annotate({description:"The plugin it installs as, which names its components `<plugin>-<name>`."}),title:ee,version:ee,description:ee,format:t.annotate({description:"The format its package was read in."}),about:o({author:ee,homepage:ee,repository:ee,license:ee}),source:tn,origin:n(nn),replaces:z.annotate({description:"Whether installing it replaces the version of this plugin installed now."}),providers:n(Ve).annotate({description:"What its provider part brings to the whole machine; its code runs inside Tagma\u2019s server."}),components:x(rn).annotate({description:"What Tagma takes from it."}),ignored:x(on).annotate({description:"What Tagma does not take from it, each with the reason."}),options:x(an),consent:o({runs:x(t).annotate({description:"What it runs as the operator: its own process, stdio MCP servers and hook commands."}),reaches:x(t).annotate({description:"The remote MCP servers it reaches."}),raises:x(t).annotate({description:"The further facts installing it asks consent for."})}).annotate({description:"What installing it asks consent for wherever it runs."})}),zr=["PATH","HOME","USER","LOGNAME","SHELL","TERM","TMPDIR"],ke=t.check(Zt(1)),Yr=t.check(kt(/^(?!TAGMA_)[A-Z][A-Z0-9_]*$/u),_t(64),ye((e)=>zr.some((r)=>r===e)?`${e} is a variable every process is started with`:!0)).annotate({description:"The option, named as the environment variable its process reads it from: capital letters, digits and underscores, not starting with TAGMA_ and not PATH, HOME, USER, LOGNAME, SHELL, TERM or TMPDIR."}),Jr=o({key:Yr,title:ke,description:t,type:n(W(en)),sensitive:n(z).annotate({description:"A secret: kept in the key store, masked in what the process answers."}),required:n(z),default:n(t)}),Xr=x(Jr).check(ye((e)=>{let r=new Set;for(let{key:i}of e){if(r.has(i))return`the option ${i} is listed twice`;r.add(i)}return!0})),He=t.check(ye((e)=>e!==""&&!e.includes("\\")&&e.split("/").every((r)=>r!==""&&r!=="."&&r!=="..")?!0:`${e} is not a path inside the plugin directory`)),Zr=x(He).check(ye((e)=>e.every((r,i)=>i===0||e[i-1]<r)?!0:"the sources are listed sorted, each once")),Et=ge(t,t),Qr=t.check(kt(/^[a-zA-Z0-9_-]+$/u)).annotate({description:"The server as the plugin calls it, with letters, digits, _ and -; read_mcp_servers lists it as `<plugin>-<name>`."}),ei=O([o({type:w("stdio"),command:t.check(Zt(1)).annotate({description:"One executable name looked up on PATH, or a ./ path to a file inside the plugin."}),args:n(x(t)),env:n(Et),cwd:n(t).annotate({description:"Rooted at ./, ${PLUGIN_ROOT} or ${PLUGIN_DATA}; the plugin directory when omitted."})}).annotate({description:"A server the plugin runs as the operator over stdio. ${PLUGIN_ROOT} and ${PLUGIN_DATA} are expanded in args, env and cwd, and the process also receives them as variables."}),o({type:w("streamable-http"),url:t.check(Zt(1)).annotate({description:"An https URL, or http to loopback only."}),headers:n(Et)}).annotate({description:"A remote server over Streamable HTTP; one asking for OAuth signs in from its card."})]),ti=o({id:Qt,title:ke,version:ke,description:n(t),process:n(o({entry:He.annotate({description:"The bundled module Tagma runs on its own runtime, from the plugin directory as the operator."}),resident:n(z).annotate({description:"Kept running while the plugin is enabled, rather than started on demand and stopped when idle."})})),providers:n(o({entry:He.annotate({description:"The bundled providers module Tagma imports into its own process, its host modules served by the server\u2019s copies."}),...Ve.fields})).annotate({description:"The provider part, as the build described it without running it: model providers, CLI agents and speech providers that join the catalogs of the whole machine."}),options:n(Xr),mcpServers:n(ge(Qr,ei)).annotate({description:"The MCP servers the plugin brings: they join the MCP server list of every project running it, and its process and views call them with `servers.<name>.call`."}),build:o({sdk:ke.annotate({description:"The @runlith/tagma the plugin was built with: a release number, or the version of a checkout\u2019s SDK."}),hash:t.check(kt(/^[0-9a-f]{64}$/u)).annotate({description:"SHA-256 over each source as its path, a NUL, its byte length, a NUL and its bytes, in the order listed."}),sources:Zr.annotate({description:"Every file the build read outside node_modules."})}),contributes:n(ge(t,ce)).annotate({description:"Contributions by point; every point is declared by the owner that registers it."})}),qe="dist/ui",Ke="graph.json",ze=t.check(kt(/^(?!\.{1,2}(?:\/|$))[^/\\\0]+(?:\/(?!\.{1,2}(?:\/|$))[^/\\\0]+)*$/u),_t(400)).annotate({description:"A file of the view graph, relative to dist/ui/."}),sn=n(w(!0)).annotate({description:"true: the file belongs to a package the plugin depends on, so Svelte decides its mode instead of runes."}),ln=x(t).annotate({description:"The Tailwind class candidates of every shipped file, as Tailwind\u2019s own scanner reads them."}),ni=o({imports:ge(t,O([ze,w("host")])).annotate({description:"Every import specifier the file\u2019s compiled code writes, with the graph file it resolved to, or host for a module the window serves."}),dependency:sn}),ri=o({files:ge(ze,ni),candidates:ln}),yd=o({files:ge(ze,o({dependency:sn})),candidates:ln}),dn={experimental:{async:!1}},un=(e)=>e?void 0:!0,bd={...dn,runes:({filename:e})=>un(e.split(/[/\\]/u).includes("node_modules"))},ii={...dn,generate:"client",dev:!1,css:"injected"},oi={generate:"client",dev:!1},Ye=(e,r)=>({...ii,filename:e,runes:un(r)}),Je=(e)=>({...oi,filename:e}),cn="@runlith/tagma/ui",ai=new Set(["./package.json","./compiler","./server","./internal","./internal/server"]),si=(e)=>typeof e==="string"||typeof e==="object"&&e!==null&&Object.keys(e).some((r)=>r!=="types"),hn=(e)=>[...Object.entries(e).flatMap(([r,i])=>ai.has(r)||r.includes("*")||!si(i)?[]:[r==="."?"svelte":`svelte/${r.slice(2)}`]),"@runlith/tagma/ui"],li=["Mod","Cmd","Ctrl","Alt","Shift"],di=new Set(["Space","Enter","Tab","Escape","Backspace","Delete","Insert","Home","End","PageUp","PageDown","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Backquote","Minus","Equal","BracketLeft","BracketRight","Backslash","Semicolon","Quote","Comma","Period","Slash"]),pn=/^F(?:[1-9]|1[0-9]|2[0-4])$/u,ui=(e)=>/^[A-Z0-9]$/u.test(e)||pn.test(e)||di.has(e);function Xe(e){let r=e.split("+"),i=r.pop();if(i===void 0||!ui(i))return null;let a=new Set;for(let s of r){if(!li.includes(s)||a.has(s))return null;a.add(s)}return{mod:a.has("Mod"),cmd:a.has("Cmd"),ctrl:a.has("Ctrl"),alt:a.has("Alt"),shift:a.has("Shift"),key:i}}var ci=(e)=>[e.mod&&"Mod",e.cmd&&"Cmd",e.ctrl&&"Ctrl",e.alt&&"Alt",e.shift&&"Shift",e.key].filter((r)=>r!==!1).join("+");//! The logical key decides, so ⌘Z is Z on AZERTY; the physical code decides only where the layout gives no Latin name.
|
|
4
4
|
var hi=t.check(ye((e)=>Xe(e)===null?`${e} is no chord: write modifiers (Mod, Cmd, Ctrl, Alt, Shift) and one key joined by +, like Mod+Alt+G`:!0)).annotate({description:"A chord: modifiers and one key joined by +, like Mod+Alt+G. Mod is \u2318 on macOS and Ctrl elsewhere; a key is A\u2013Z, 0\u20139, F1\u2013F24 or a name such as Enter, Space, Escape, ArrowUp, Comma, Slash or BracketLeft."}),pi=hi.check(ye((e)=>{let r=Xe(e);return r===null||r.mod||r.cmd||r.ctrl||r.alt||pn.test(r.key)?!0:`${e} needs Mod, Cmd, Ctrl or Alt, or a function key, so typing never runs it`})),Mt=64,mi=["agents","own","view","tagma"],gi=(e,r)=>`plugin__${e}__${r}`,wi=ss(o({type:w("object")}),[ge(t,ce)]).annotate({description:"The JSON Schema of its input: an object at the root."}),Ze=o({name:t.check(kt(/^[a-zA-Z0-9_-]+$/u)).annotate({description:"The tool, as the process lists it."}),audience:W(mi).annotate({description:"agents: offered, deferred, to every agent in a project where the plugin is enabled. own: only to the plugin\u2019s own agents. view: only to the plugin\u2019s views. tagma: called by Tagma alone, for a point that names it."}),description:yo.annotate({description:"What the tool does, as an agent reads it."}),inputSchema:wi,annotations:n(o({title:n(t),readOnlyHint:n(z),destructiveHint:n(z),idempotentHint:n(z),openWorldHint:n(z)})).annotate({description:"The MCP tool annotations; readOnlyHint true lets it run without asking in review mode."})}),vi=x(Ze).check(ye((e)=>{let r=new Set;for(let{name:i}of e){if(r.has(i))return`the tool ${i} is listed twice`;r.add(i)}return!0})),mn={name:"tools",title:"Tools agents can call",schema:vi,refuses:(e,{plugin:r})=>{let i=e.filter((a)=>a.audience!=="tagma"&&gi(r,a.name).length>Mt).map((a)=>a.name);return i.length===0?null:`${i.join(", ")} named under ${r} pass the ${Mt} characters a model accepts`},serves:(e,r)=>{let i=e?.find((a)=>a.name===r)?.audience;if(i===void 0)return`contributes.tools names no tool ${r}`;return i==="tagma"?null:`the tool ${r} is offered to ${i}, and a point calls only a tool whose audience is tagma`}},Z=t.check(kt(/^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/u),_t(40)).annotate({description:"The view, named within its plugin: lowercase letters, digits and inner hyphens."}),yi=/^(?!_modules\/)(?!\.{1,2}(?:\/|$))[^/\\\0]+(?:\/(?!\.{1,2}(?:\/|$))[^/\\\0]+)*$/u,fn=(e)=>t.check(kt(yi),ye((r)=>e.test(r)||`ends in ${e.source.replace(/\\|\$/gu,"")}`),_t(200)),bi=o({id:Z,entry:fn(/\.svelte$/u).annotate({description:"The Svelte component of the view, by its path from the plugin\u2019s root, as dist/ui/ ships it, e.g. ui/Table.svelte."}),live:n(z).annotate({description:"true: a view in a tool result keeps running while scrolled away, within the feed\u2019s budget. Absent: it unmounts out of sight."}),media:n(w(!0)).annotate({description:"true: the view embeds a site with <Frame media>, which may ask the person for the camera and microphone. The build writes it."})}),te=(e,r)=>(i)=>{let a=new Set;for(let s of i){if(a.has(e(s)))return`the ${r} ${e(s)} is listed twice`;a.add(e(s))}return!0},ki=x(bi).check(ye(te((e)=>e.id,"view"))),Si=o({tool:Ze.fields.name.annotate({description:"A tool of the plugin\u2019s process, named in contributes.tools for agents or own."}),view:Z.annotate({description:"The view its call shows in the feed, one of contributes.views."})}),Ti=x(Si).check(ye(te((e)=>e.tool,"tool"))),Ei=o({view:Z.annotate({description:"The view drawn above a thread\u2019s composer in every thread of a project where the plugin runs, one of contributes.views; it receives { thread, draft, send }."})}),Mi=x(Ei).check(ye(te((e)=>e.view,"view"))),Ni=o({view:Z.annotate({description:"The view the section or pane shows, one of contributes.views."}),title:t.check(Zt(1),_t(40)).annotate({description:"What the navigation, the palette and the pane header call it."}),icon:n(fn(/\.(?:svg|png|webp|gif|jpg)$/u)).annotate({description:"An image file by its path from the plugin\u2019s root, as dist/ui/ ships it, e.g. ui/icon.svg. Absent: a neutral plugin glyph."})}),gn=x(Ni).check(ye(te((e)=>e.view,"view"))),$i=o({view:Z.annotate({description:"The view it opens in a window, one of contributes.views. The plugin needs no process for it."}),title:t.check(Zt(1),_t(60)).annotate({description:"The words of the palette action and the rail button that open the view."})}),Ai=x($i).check(ye(te((e)=>e.view,"view"))),Oi=o({id:Z.annotate({description:"The action, named within its plugin: lowercase letters, digits and inner hyphens."}),title:t.check(Zt(1),_t(60)).annotate({description:"What the palette and the shortcuts screen call the action."}),tool:Ze.fields.name.annotate({description:"The tool of the plugin\u2019s process that runs the action, named in contributes.tools with audience tagma."})}),xi=x(Oi).check(ye(te((e)=>e.id,"action"))),Nt=Z.annotate({description:"What the person types after / in a thread\u2019s composer, named within its plugin: lowercase letters, digits and inner hyphens."}),$t=t.check(Zt(1),_t(120)).annotate({description:"What the composer\u2019s list of commands says it does."}),_i=O([o({name:Nt,description:$t,text:t.check(Zt(1)).annotate({description:"The text the command puts into the draft. Where it holds $ARGUMENTS, the composer asks for the words after the command and puts them there."})}),o({name:Nt,description:$t,action:Z.annotate({description:"An id of contributes.actions. The composer runs it with the thread and the words typed after the command, and its answer fills the draft."})})]),Li=x(_i).check(ye(te((e)=>e.name,"command"))),Ri=o({keys:pi.annotate({description:"The chord this plugin proposes, like Mod+Alt+G."}),action:t.check(Zt(1),_t(60)).annotate({description:"What the chord runs: an id of contributes.actions, section:<view> for a section of contributes.surfaces, or pane:<view> for a pane of contributes.panes."}),global:n(z).annotate({description:"true asks for the chord to work in every app. It is a request: the person allows it on the plugin\u2019s card, and until then the chord works inside Tagma."})}),Pi=x(Ri),wn={name:"views",title:"Pages inside Tagma",schema:ki,uses:(e)=>e.some((r)=>r.media===!0)?"Frames sites that may ask for the camera and microphone":null},vn=(e,r)=>{let i=new Set((e(wn)??[]).map((s)=>s.id)),a=[...new Set(r.filter((s)=>!i.has(s)))];return a.length===0?null:`names the view ${a.join(", ")}, which contributes.views does not declare`},me=(e,{sibling:r})=>vn(r,e.map((i)=>i.view)),Ii={name:"results",title:"Pages that show what a tool did",schema:Ti,refuses:(e,r)=>{let i=me(e,r);if(i!==null)return i;let a=new Map((r.sibling(mn)??[]).map((l)=>[l.name,l.audience])),s=e.filter((l)=>{let d=a.get(l.tool);return d!=="agents"&&d!=="own"});return s.length===0?null:`no agent calls ${s.map((l)=>l.tool).join(", ")}; name it in contributes.tools for agents or own`}},Ci={name:"composer",title:"Parts of a thread\u2019s composer",schema:Mi,refuses:me},bn={name:"surfaces",title:"Sections in Tagma\u2019s sidebar",schema:gn,refuses:me},kn={name:"panes",title:"Panels beside a thread",schema:gn,refuses:me},Fi={name:"launchers",title:"Windows you open from the palette",schema:Ai,refuses:me},Qe={name:"actions",title:"Actions you run from the palette or a shortcut",schema:xi,calls:(e)=>e.map((r)=>r.tool)},ji={name:"commands",title:"Commands you type in a thread",schema:Li,refuses:(e,{sibling:r})=>{let i=new Set((r(Qe)??[]).map((s)=>s.id)),a=[...new Set(e.flatMap((s)=>("action"in s)&&!i.has(s.action)?[s.action]:[]))];return a.length===0?null:`names the action ${a.join(", ")}, which contributes.actions does not declare`}},At="section:",Ot="pane:",Bi=(e,{sibling:r})=>{if(e.action.startsWith(At))return!(r(bn)??[]).some((i)=>i.view===e.action.slice(At.length));if(e.action.startsWith(Ot))return!(r(kn)??[]).some((i)=>i.view===e.action.slice(Ot.length));return!(r(Qe)??[]).some((i)=>i.id===e.action)},Di={name:"shortcuts",title:"Shortcuts",schema:Pi,refuses:(e,r)=>{let i=[...new Set(e.filter((s)=>Bi(s,r)).map((s)=>s.action))];if(i.length>0)return`names ${i.join(", ")}, which is no action of contributes.actions, no section:<view> of contributes.surfaces and no pane:<view> of contributes.panes`;let a=new Set;for(let{keys:s}of e){let l=ci(Xe(s));if(a.has(l))return`the chord ${l} is listed twice`;a.add(l)}return null}},Hi=o({id:t.check(kt(Xt),_t(40)).annotate({description:"The agent inside the plugin; Tagma offers it as <plugin>.<id>."}),path:t.check(kt(/^(?!\/)(?!.*(?:^|\/)\.\.(?:\/|$)).+\.md$/u)).annotate({description:"Its definition, a Markdown file with frontmatter, relative to the plugin directory. It names its capabilities; plugin:<plugin> is added to them."})}),Wi=x(Hi).check(ye((e)=>{let r=new Set;for(let{id:i}of e){if(r.has(i))return`the agent ${i} is listed twice`;r.add(i)}return!0})),Ui={name:"agents",title:"Agents you can start",schema:Wi},Gi=x(o({tool:yo.annotate({description:"The tool, named in contributes.tools with audience tagma, that Tagma calls before a build from this checkout."}),title:yo.annotate({description:"What the update card shows while the step runs."})})),Vi=O([o({verdict:w("go")}),o({verdict:w("pending")}),o({verdict:w("stop"),reason:yo,thread:n(yo)})]),qi={name:"beforeBuild",title:"Checks before Tagma builds a checkout",schema:Gi,answer:{name:"BuildVerdict",schema:Vi},calls:(e)=>e.map((r)=>r.tool)},Ki=["beforeTool","afterTool","beforeStep","beforeClose","threadStarted","threadEnded"],zi=/^[A-Za-z0-9_ ,|-]*$/u,Yi=(e,r)=>{if(e===void 0||e===""||e==="*")return()=>!0;if(r&&zi.test(e)){let i=new Set(e.split(/[|,]/u).map((a)=>a.trim()).filter((a)=>a.length>0));return(a)=>i.has(a)}try{let i=new RegExp(e,"u");return(a)=>i.test(a)}catch{return null}},Ji=t.check(kt(/^[a-zA-Z0-9_-]+$/u)),Xi=o({at:W(Ki).annotate({description:"When Tagma\u2019s agent asks the hook. beforeTool: before a tool call runs; the hook may deny it, rewrite its input or add context. afterTool: after it ran; the hook may add context. beforeStep: when a message reaches the agent; the hook may block it or add context. beforeClose: before the agent ends its turn; a block keeps it working with the reason as its next instruction. threadStarted: on the first step of a new thread; the hook may add context. threadEnded: when the thread is archived or deleted."}),match:n(t.check(Zt(1))).annotate({description:"Which calls reach the hook: names of the tools Tagma\u2019s agent calls, its MCP and plugin tools included, separated by |, or a regular expression over the name; startup or resume for threadStarted; archive or delete for threadEnded. Absent: every one. Claude Code\u2019s and Codex\u2019s own tools never reach it."}),tool:Ji.annotate({description:"The tool, named in contributes.tools with audience tagma, that Tagma calls with { at, threadId, cwd } and what the point carries, and that answers the verdict its point takes as structured content. The call wakes a sleeping process."}),onFailure:n(w("block")).annotate({description:"block: a hook that fails, answers an error or times out denies the tool call, or blocks the message, instead of letting it through. Absent: the agent goes on as if the hook had not been asked."}),timeoutMs:n(ct.check(go({minimum:1,maximum:600000}))).annotate({description:"How long Tagma waits for the answer, in milliseconds, a process start included; 10000 when absent. Past it the hook has failed."})}),Zi=x(Xi),Sn=n(t).annotate({description:"The call does not run, and the agent reads this reason."}),Tn=n(ce).annotate({description:"The call runs with this input instead of its own."}),de=n(t).annotate({description:"Words the agent reads beside the call, the message or the new thread."}),Qi=o({beforeTool:o({deny:Sn,rewrite:Tn,context:de}),afterTool:o({context:de}),beforeStep:o({block:n(t).annotate({description:"The message stays in the thread but does not reach the agent, which reads this reason in its place."}),context:de}),beforeClose:o({block:n(t).annotate({description:"The agent keeps working, with this as its next instruction."})}),threadStarted:o({context:de}),threadEnded:o({})}),$d=o({deny:Sn,rewrite:Tn,context:de,block:n(t)}),eo={name:"hooks",title:"Checks Tagma\u2019s agent before it acts \u2014 not Claude Code or Codex",schema:Zi,answer:{name:"HookVerdicts",schema:Qi},refuses:(e)=>{let r=e.find((i)=>Yi(i.match,!0)===null);return r===void 0?null:`the match ${r.match} is no list of tool names and no regular expression`},calls:(e)=>e.map((r)=>r.tool)},to=o({tool:yo}),no={name:"notify",title:"Notifications",schema:to,calls:(e)=>[e.tool]},xt=t.check(kt(/^[a-zA-Z0-9_-]+$/u)),ro=o({ended:n(xt.annotate({description:"The tool, named in contributes.tools with audience tagma, that Tagma calls when a turn of a thread whose bindings name this plugin under `plugin` ends, with { threadId, runId, status, failureReason }. Its answer confirms the delivery; an error or no answer delivers it again, so it is idempotent by runId."})),asked:n(xt.annotate({description:'The tool, named in contributes.tools with audience tagma, that takes the questions of threads bound to this plugin while it runs in their project, with { threadId, questionId, summary, prompts, deadlineAt }; prompts is null for a confirmation. Such a question leaves the person\u2019s attention; the plugin answers it with answer_question. An error, no answer, or the answer { "question": "left" } hands it to the person for good. While the plugin is switched off or its process has failed, its questions stand with the person, and they arrive again once it runs, and after a server restart, so it is idempotent by questionId.'}))}),io={name:"on",title:"When a thread of this plugin ends or asks",schema:ro,calls:(e)=>[e.ended,e.asked].filter((r)=>r!==void 0)},Se=t.check(Zt(1)),_d=o({plugin:Se,view:Se,key:Se}),oo=x(o({view:Se.annotate({description:"A view of the plugin, one of contributes.views, that a thread may pin above its feed."})})),ao={name:"pins",title:"Pages a thread can keep above its feed",schema:oo,refuses:(e,{sibling:r})=>vn(r,e.map((i)=>i.view))},so="runlith/printed",Id=US(so),En="runlith/handle",lo=(e=String)=>({[En]:e}),Cd=US(En),uo=(e,r,i,a,s,l)=>({id:e,order:r,road:i,rowBytes:a,defaultRows:s,sample:l}),co=(e,r,i)=>{let a=e.rowBytes[e.road],s=Math.floor((r-ho-(e.reserveBytes??0))/Math.max(1,a));return Math.max(1,Math.min(s,i-po))},ho=512,po=4,mo=(e,r)=>n(ct.check(au(0),Up(r)).annotate({description:`How many rows to answer, ${vo(void 0,e,r)} by default and ${r} at most for this reading. The answer carries the total and the cursor, so a cut is never silent.`})),fo=t.check(Zt(1)).annotate(lo()),wo=n(fo.annotate({description:"The cursor the previous page answered, handed back unchanged."})),vo=(e,r,i)=>Math.max(1,Math.min(e??(r.defaultRows==="ceiling"?i:r.defaultRows),i)),bo={asksFrom:"never"},xe=Qf(10),I=(e,r,i,a)=>({id:e,label:r,asksFrom:i,timeout:a}),Bd=I("outside-subtree","Outside your subtree","review",xe),Dd=I("own-lineage","Own lineage","review","none"),Hd=I("thread-running","Working","review",xe),Wd=I("mode-withheld","Mode withheld","trust","none"),Gd=I("thread-archived","Thread archived","review","none"),Vd=I("command-ceiling","Command ceiling","trust","none"),qd=I("not-holder","Not the holder","review",xe),Kd=I("debt-grows","Debt grows","review","none"),zd=I("debt-unowned","Debt unowned","review","none"),Yd=I("agent-running","Agent running","review","none"),Jd=I("root-in-use","Root in use","review","none"),Xd=I("uncommitted","Uncommitted","review","none"),Zd=I("install-running","Install running","review",xe),Qd=I("no-way-back","No way back","review","none"),eu=I("mcp-env-resolving","Environment resolved","review","none"),ko=t.check(Zt(1)).pipe(ec("OperationId")),ru=yo.pipe(ec("RequestKey")),To=(e,r)=>({...r,id:ko.make(e)}),iu=o({projectId:ct,threadId:t}),Eo=Symbol("known answer arms"),Mo=(e)=>{let r=Object.keys(e),i=Object.entries(e).map(([s,l])=>o({...l,status:w(s)})),a=ss(o({status:t.check(ye((s)=>!r.includes(s)))}),[ge(t,ce)]);return Object.assign(O([...i,a]),{[Eo]:O(i)})},No=2000,$o=51200,Ao=(e)=>co(e,$o,No),Oo=(e)=>mo(e,Ao(e)),Lt=1000,xo=o({name:yo.annotate({description:"The owner-chosen name of this schedule, unique within its owner."}),everyMs:ct.check(Ud(Lt)).annotate({description:`Milliseconds between runs, at least ${Lt}.`})}),_o=["delivered","failed"],Lo=o({startedAt:ct,endedAt:ct,outcome:W(_o),reason:gt(t),skipped:ct}),Ro=o({owner:t,name:t,everyMs:ct,nextAt:ct,running:z,last:gt(Lo)}),Rt=uo("schedules",1,"json",{text:420,json:420},"ceiling",()=>({owner:"x".repeat(40),name:"x".repeat(40),everyMs:3600000,nextAt:1790000000000,running:!1,last:{startedAt:1790000000000,endedAt:1790000000000,outcome:"failed",reason:"x".repeat(160),skipped:12}})),ou={read_schedules:To("read_schedules",{approval:bo,doors:{http:!0},callers:"operator",subject:"none",place:"machine",waits:[],lifetimes:[],meaning:"Read the periodic runs this server keeps, ordered by owner and name: each with its cadence, the time of its next run and how its last run ended.",grammar:"A page of rows with the total; `next` is the cursor that continues the walk, null on the last page. Times are epoch milliseconds. A run that is due while the server was stopped or the machine slept happens once; `skipped` of the last run counts the ticks that were passed over, not queued. A failed last run carries its reason, and the next run still comes at `nextAt`.",input:o({limit:Oo(Rt),cursor:wo}),answer:Mo({read:{schedules:x(Ro),shown:ct,total:ct,next:gt(t),complete:z}}),refusals:["bad-cursor","cursor-stale"],effect:"read",identity:"none",page:Rt,subjects:()=>[],confirmation:()=>({summary:"Read the schedules?"}),confirmLabel:"Read schedules",presentation:{running:"Reading the schedules",done:"Read the schedules"}})},Po=x(o({...xo.fields,tool:yo})).check(ye((e)=>new Set(e.map((r)=>r.name)).size===e.length||"schedule names must be unique")),Io={name:"schedule",title:"Runs on a schedule",schema:Po,calls:(e)=>e.map((r)=>r.tool)},Co=(e,r)=>{if(typeof e!=="number")return;if(r===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(r===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(r===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(r===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}},Mn=Co,Fo={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},jo=Fo,Bo=(e)=>Mn(jo[e.toLowerCase()],6),Do=Bo,Ho=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,Wo=(e)=>{let r;return(r=e.match(Ho))?Mn(parseInt(r[1],16),r[1].length):void 0},Uo=Wo,Ie="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",Ce="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%",Nn="(?:([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%|([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?))",Te="\\s*,\\s*",lu=new RegExp("^(?:([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%|([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)|none)$"),Go=new RegExp(`^rgba?\\(\\s*${Ie}${Te}${Ie}${Te}${Ie}\\s*(?:,\\s*${Nn}\\s*)?\\)$`),Vo=new RegExp(`^rgba?\\(\\s*${Ce}${Te}${Ce}${Te}${Ce}\\s*(?:,\\s*${Nn}\\s*)?\\)$`),qo=(e)=>{let r={mode:"rgb"},i;if(i=e.match(Go)){if(i[1]!==void 0)r.r=i[1]/255;if(i[2]!==void 0)r.g=i[2]/255;if(i[3]!==void 0)r.b=i[3]/255}else if(i=e.match(Vo)){if(i[1]!==void 0)r.r=i[1]/100;if(i[2]!==void 0)r.g=i[2]/100;if(i[3]!==void 0)r.b=i[3]/100}else return;if(i[4]!==void 0)r.alpha=Math.max(0,Math.min(1,i[4]/100));else if(i[5]!==void 0)r.alpha=Math.max(0,Math.min(1,+i[5]));return r},Ko=qo,zo=(e,r)=>e===void 0?void 0:typeof e!=="object"?oa(e):e.mode!==void 0?e:r?{...e,mode:r}:void 0,Ee=zo,Yo=(e="rgb")=>(r)=>(r=Ee(r,e))!==void 0?r.mode===e?r:V[r.mode][e]?V[r.mode][e](r):e==="rgb"?V[r.mode].rgb(r):V.rgb[e](V[r.mode].rgb(r)):void 0,K=Yo,V={},$n={},Me=[],On={},Jo=(e)=>e,_e=(e)=>{if(V[e.mode]={...V[e.mode],...e.toMode},Object.keys(e.fromMode||{}).forEach((r)=>{if(!V[r])V[r]={};V[r][e.mode]=e.fromMode[r]}),!e.ranges)e.ranges={};if(!e.difference)e.difference={};return e.channels.forEach((r)=>{if(e.ranges[r]===void 0)e.ranges[r]=[0,1];if(!e.interpolate[r])throw Error(`Missing interpolator for: ${r}`);if(typeof e.interpolate[r]==="function")e.interpolate[r]={use:e.interpolate[r]};if(!e.interpolate[r].fixup)e.interpolate[r].fixup=Jo}),$n[e.mode]=e,(e.parse||[]).forEach((r)=>{Xo(r,e.mode)}),K(e.mode)},oe=(e)=>$n[e],Xo=(e,r)=>{if(typeof e==="string"){if(!r)throw Error("'mode' required when 'parser' is a string");On[e]=r}else if(typeof e==="function"){if(Me.indexOf(e)<0)Me.push(e)}},We=/[^\x00-\x7F]|[a-zA-Z_]/,Zo=/[^\x00-\x7F]|[-\w]/,u={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},f=0;function ve(e){let r=e[f],i=e[f+1];if(r==="-"||r==="+")return/\d/.test(i)||i==="."&&/\d/.test(e[f+2]);if(r===".")return/\d/.test(i);return/\d/.test(r)}function Ue(e){if(f>=e.length)return!1;let r=e[f];if(We.test(r))return!0;if(r==="-"){if(e.length-f<2)return!1;let i=e[f+1];if(i==="-"||We.test(i))return!0;return!1}return!1}var Qo={deg:1,rad:180/Math.PI,grad:0.9,turn:360};function le(e){let r="";if(e[f]==="-"||e[f]==="+")r+=e[f++];if(r+=be(e),e[f]==="."&&/\d/.test(e[f+1]))r+=e[f++]+be(e);if(e[f]==="e"||e[f]==="E"){if((e[f+1]==="-"||e[f+1]==="+")&&/\d/.test(e[f+2]))r+=e[f++]+e[f++]+be(e);else if(/\d/.test(e[f+1]))r+=e[f++]+be(e)}if(Ue(e)){let i=Ne(e);if(i==="deg"||i==="rad"||i==="turn"||i==="grad")return{type:u.Hue,value:r*Qo[i]};return}if(e[f]==="%")return f++,{type:u.Percentage,value:+r};return{type:u.Number,value:+r}}function be(e){let r="";while(/\d/.test(e[f]))r+=e[f++];return r}function Ne(e){let r="";while(f<e.length&&Zo.test(e[f]))r+=e[f++];return r}function ea(e){let r=Ne(e);if(e[f]==="(")return f++,{type:u.Function,value:r};if(r==="none")return{type:u.None,value:void 0};return{type:u.Ident,value:r}}function ta(e=""){let r=e.trim(),i=[],a;f=0;while(f<r.length){if(a=r[f++],a===`
|
|
5
5
|
`||a==="\t"||a===" "){while(f<r.length&&(r[f]===`
|
|
6
6
|
`||r[f]==="\t"||r[f]===" "))f++;continue}if(a===",")return;if(a===")"){i.push({type:u.ParenClose});continue}if(a==="+"){if(f--,ve(r)){i.push(le(r));continue}return}if(a==="-"){if(f--,ve(r)){i.push(le(r));continue}if(Ue(r)){i.push({type:u.Ident,value:Ne(r)});continue}return}if(a==="."){if(f--,ve(r)){i.push(le(r));continue}return}if(a==="/"){while(f<r.length&&(r[f]===`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./plugin-
|
|
2
|
+
import"./plugin-v80m00bq.js";import{F,it,r,Ze,s,i,es,at,pt}from"./plugin-xfcgt5ba.js";import{readFile as C}from"fs/promises";class l extends F("CredentialInvalid"){get message(){return`The credential does not match the shape "${this.provider}" stores: ${this.detail}`}}function c(e,n,t){return pt(n)(t).pipe(at((o)=>new l({provider:e,detail:o.message})))}class a extends F("CliLoginUnreadable"){get message(){return`The ${this.provider} CLI login at ${this.source} cannot be read: ${this.detail}`}}class g extends F("StoreAbsent"){}var m=(e)=>e instanceof Error?e.message:String(e),u=(e,n,t)=>new a({provider:e,source:n,detail:m(t)}),x=(e)=>e instanceof Error&&("code"in e)&&(e.code==="ENOENT"||e.code==="ENOTDIR");function S(e){return e!==null&&typeof e==="object"&&!Array.isArray(e)?e:null}function E(e){if(typeof e!=="string")return;return e.trim()||void 0}function R(e){return typeof e==="number"&&Number.isFinite(e)?e:void 0}function I(e,n){return E(process.env[e])??n}function b(e,n){return it({try:()=>C(n,"utf8"),catch:(t)=>x(t)?new g:u(e,n,t)}).pipe(es("StoreAbsent",()=>r(null)))}function y(e,n,t,o){return Ze({try:()=>o(t),catch:(d)=>u(e,n,d)})}function h(e,n,t){return s(b(e,n),(o)=>o===null?r(null):y(e,n,o,t))}var O=(e,n)=>h(e,n,JSON.parse);function J(e,n,t){let o=t.split(".")[1];if(!o)return r(null);return i(y(e,n,o,(d)=>JSON.parse(Buffer.from(d,"base64url").toString("utf8"))),S)}function N(e){return c(e.provider,e.schema,e.value).pipe(i((n)=>({credential:n,identity:e.identity})),at((n)=>new a({provider:e.provider,source:e.source,detail:n.detail})))}function U(e,n,t){return t?.identity?{provider:e,source:n,credential:t.credential,identity:t.identity}:null}export{a as CliLoginUnreadable,S as asRecord,I as configuredHome,R as finiteNumber,U as foundLogin,J as jwtClaims,E as nonEmptyString,N as parsedCliLoginSource,y as parsedText,O as readJson,u as unreadable};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./plugin-
|
|
2
|
+
import"./plugin-v80m00bq.js";import{Jl,zs,ku,Ov}from"./plugin-d28d8jar.js";import"./plugin-72xxqm1t.js";import"./plugin-q6pvb1xf.js";import{Eu,rn,kr,Vl,Bi,de}from"./plugin-3t0qp574.js";import"./plugin-me00x60n.js";import"./plugin-7te9b50h.js";import{Ao,Pt}from"./plugin-6vzw5yyr.js";import{xr,Et,Ls,xt}from"./plugin-y9cdpmbv.js";import{Co}from"./plugin-g4hst0jz.js";import"./plugin-r7g3vqrm.js";import"./plugin-w3zbkmy6.js";import"./plugin-8q44b578.js";import"./plugin-p6x7emar.js";import"./plugin-krbbb4ts.js";import"./plugin-e5ybk2a2.js";import"./plugin-fjsmz1vy.js";import{ty,ry}from"./plugin-7xmwhj5h.js";import{Ze,v,po,ko,un,sc,hg}from"./plugin-xfcgt5ba.js";import{gunzipSync as C}from"zlib";var p="application/connect+proto",u=16777216,w=1,b=2,T=w|b;class a extends Error{family;detail;constructor(e,n,r,t){super(e,t);this.family=n;this.detail=r}}var A=()=>({header:new Uint8Array(5),headerSize:0,flags:0,payload:null,payloadSize:0,ended:!1,eof:!1}),m=(e)=>typeof e==="object"&&e!==null&&!Array.isArray(e),_=(e)=>{let n,r;try{n=new TextDecoder("utf-8",{fatal:!0}).decode(e),r=JSON.parse(n)}catch(S){throw new a("The Connect end-stream trailer was not valid UTF-8 JSON","invalid-output",void 0,{cause:S})}if(!m(r))throw new a("The Connect end-stream trailer was not an object","invalid-output",n);if(!Object.hasOwn(r,"error"))return null;let t=r.error;if(!m(t)||typeof t.code!=="string"||typeof t.message!=="string")throw new a("The Connect end-stream error was malformed","invalid-output",n);if(Object.hasOwn(t,"details")&&!Array.isArray(t.details))throw new a("The Connect end-stream error details were malformed","invalid-output",n);let{code:o,details:d}=t,i=Array.isArray(d)&&d.length>0?xr(d).slice(0,Eu):void 0,f=i===void 0?t.message:`${t.message} [details: ${i}]`,s=o.toLowerCase(),c=new Set(["aborted","deadline_exceeded","internal","resource_exhausted","unavailable"]).has(s),y=Ls({module:"ConnectTransport",refusal:{code:o,message:f},evidence:{eventType:"connect.end",keys:Object.keys(t)},retryable:c}),l=y.reason.message,h=(()=>{switch(s){case"unauthenticated":return new kr({message:l,kind:"invalid"});case"permission_denied":return new kr({message:l,kind:"insufficient-permissions"});case"resource_exhausted":return new Vl({message:l});case"invalid_argument":case"not_found":case"already_exists":case"failed_precondition":case"out_of_range":case"unimplemented":return new rn({message:l});case"aborted":case"deadline_exceeded":case"internal":case"unavailable":case"data_loss":return new Bi({message:l});default:return null}})();return h===null?y:new de({module:"ConnectTransport",method:"stream",reason:h})},O=(e,n)=>{if(!n)return e;try{return new Uint8Array(C(e,{maxOutputLength:u}))}catch(r){throw new a("The Connect gzip envelope could not be decoded within its size limit","invalid-output",void 0,{cause:r})}},g=(e,n)=>{let r=e.payload;if(r===null)throw new a("The Connect envelope had no payload buffer","invalid-output");let t=O(r,(e.flags&w)!==0);if(t.byteLength>u)throw new a("The decoded Connect envelope exceeded the 16 MiB size limit","invalid-output");if((e.flags&b)!==0){let o=_(t);if(o)throw o;e.ended=!0}else n.push({_tag:"Message",bytes:t});e.headerSize=0,e.flags=0,e.payload=null,e.payloadSize=0},z=(e,n,r)=>{let t=0;while(t<n.byteLength){if(e.ended)throw new a("The Connect stream carried bytes after its end-stream trailer","invalid-output");if(e.payload===null){let d=Math.min(5-e.headerSize,n.byteLength-t);if(e.header.set(n.subarray(t,t+d),e.headerSize),e.headerSize+=d,t+=d,e.headerSize<5)continue;if(e.flags=e.header[0],(e.flags&~T)!==0)throw new a(`The Connect envelope used unknown flags 0x${e.flags.toString(16)}`,"invalid-output");let i=new DataView(e.header.buffer,e.header.byteOffset,e.header.byteLength).getUint32(1,!1);if(i>u)throw new a("The Connect envelope exceeded the 16 MiB size limit","invalid-output");if(e.payload=new Uint8Array(i),e.payloadSize=0,i===0)g(e,r);continue}let o=Math.min(e.payload.byteLength-e.payloadSize,n.byteLength-t);if(e.payload.set(n.subarray(t,t+o),e.payloadSize),e.payloadSize+=o,t+=o,e.payloadSize===e.payload.byteLength)g(e,r)}},x=(e,n)=>{if(e.eof=!0,!e.ended)throw new a("The Connect stream ended without an end-stream trailer","torn-stream");if(e.headerSize!==0||e.payload!==null)throw new a("The Connect stream ended inside an envelope","torn-stream");n.push({_tag:"End"})},E=(e)=>{if(e instanceof de)return e;if(e instanceof a)return Et(e.cause,{module:"ConnectTransport",method:"frame",route:"connect",message:e.message,family:e.family,excerpt:e.detail});return Et(e,{module:"ConnectTransport",method:"frame",route:"connect",message:"The Connect stream could not be framed",family:"invalid-output"})},L={id:"connect",frame:(e)=>e.pipe(un((n)=>({_tag:"Bytes",bytes:n})),sc(ko({_tag:"EOF"})),hg(A,(n,r)=>Ze({try:()=>{let t=[];for(let o of r){if(n.eof)throw new a("The Connect stream continued after EOF","invalid-output");if(o._tag==="EOF")x(n,t);else z(n,o.bytes,t)}return[n,t]},catch:E})))},U=(e)=>{let n=new Uint8Array(5+e.byteLength);return new DataView(n.buffer,n.byteOffset,n.byteLength).setUint32(1,e.byteLength,!1),n.set(e,5),n},q=(e)=>e!==void 0&&Object.keys(e).length>0,V=(e)=>({id:"http-connect",prepare:v(function*(n){if(q(n.request.http?.body))return yield*xt("http.body cannot overlay a binary Connect request");let r=yield*Ze({try:()=>e.encode(n.body),catch:(c)=>xt(`Connect request encoding failed: ${String(c)}`)});if(r.byteLength>u)return yield*xt("Connect request payload exceeds the 16 MiB size limit");let t=U(r),o=ty(n),d=Pt({...n.headers?.({request:n.request}),...n.request.http?.headers}),i=Pt(po(d,{"content-type":p,"connect-protocol-version":"1"}),Ao(d)),f=yield*Co(n.auth)({request:n.request,method:"POST",url:o,body:t,headers:i}),s=Pt(f,n.request.http?.headerOrder);return{request:Jl(o).pipe(zs(s),Ov(t,p),ku((c)=>Pt(c,Ao(s)))),framing:L}}),frames:ry});export{V as make};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Hn,mm,hf}from"./plugin-dd951075.js";import"./plugin-g4hst0jz.js";import"./plugin-3t0qp574.js";import"./plugin-6vzw5yyr.js";import"./plugin-d28d8jar.js";import"./plugin-7te9b50h.js";import"./plugin-me00x60n.js";import"./plugin-q6pvb1xf.js";import"./plugin-v80m00bq.js";export{Hn as consoleKey,hf as subscriptionFact,mm as subscriptionToken};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import"./plugin-v80m00bq.js";import"./plugin-8q44b578.js";import"./plugin-d28d8jar.js";import"./plugin-72xxqm1t.js";import"./plugin-q6pvb1xf.js";import"./plugin-3t0qp574.js";import"./plugin-me00x60n.js";import"./plugin-7te9b50h.js";import"./plugin-6vzw5yyr.js";import"./plugin-y9cdpmbv.js";import"./plugin-a3vzpk4e.js";import"./plugin-yp736z4n.js";import{ji}from"./plugin-g7hrtg2p.js";import"./plugin-24j9hnc7.js";import"./plugin-g4hst0jz.js";import"./plugin-r7g3vqrm.js";import"./plugin-p6x7emar.js";import"./plugin-w3zbkmy6.js";import"./plugin-krbbb4ts.js";import"./plugin-e5ybk2a2.js";import"./plugin-fjsmz1vy.js";import"./plugin-7xmwhj5h.js";import"./plugin-pdww1ma8.js";import"./plugin-zsv7wawc.js";import"./plugin-psj9935q.js";import"./plugin-2s6bq45c.js";import{Ea,va}from"./plugin-er1kc6f6.js";import{gm,ym}from"./plugin-80gqwmjy.js";import{Hn}from"./plugin-dd951075.js";import{Yn}from"./plugin-g0zv4vrz.js";import"./plugin-kc4z9msd.js";import{r,c}from"./plugin-xfcgt5ba.js";var n="https://api.deepseek.com/v1",t=32000,i={fromHeaders:()=>null,read:()=>c(new ji)};function p(e){let o=Yn(e.rung);return Ea({...o==="none"?{thinking:{type:"disabled"}}:{reasoningEffort:o},parallelToolCalls:e.parallelToolCalls})}var s={output:{budget:t,sent:!0},model:(e)=>r(va.with({provider:gm,quota:i.fromHeaders,endpoint:{baseURL:n},limits:{output:t},auth:Hn(e.credentials,e.ownerId,gm,e.account).bearer()}).model({id:e.model,compatibility:{reasoningEcho:"required"}})),options:p},a={...ym,profile:s,quota:i},g=()=>[a];export{n as DEEPSEEK_BASE_URL,t as DEEPSEEK_OUTPUT_RESERVATION,i as deepseekQuota,a as deepseekRegistration,g as deepseekRegistrations};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{QE,nk,rk,To}from"./plugin-pdww1ma8.js";import"./plugin-7xmwhj5h.js";import"./plugin-fjsmz1vy.js";import"./plugin-24j9hnc7.js";import"./plugin-yp736z4n.js";import"./plugin-a3vzpk4e.js";import"./plugin-r7g3vqrm.js";import"./plugin-g7hrtg2p.js";import"./plugin-e5ybk2a2.js";import"./plugin-8q44b578.js";import"./plugin-p6x7emar.js";import"./plugin-y9cdpmbv.js";import"./plugin-g4hst0jz.js";import"./plugin-3t0qp574.js";import"./plugin-w3zbkmy6.js";import"./plugin-6vzw5yyr.js";import"./plugin-d28d8jar.js";import"./plugin-7te9b50h.js";import"./plugin-krbbb4ts.js";import"./plugin-72xxqm1t.js";import"./plugin-me00x60n.js";import"./plugin-q6pvb1xf.js";import"./plugin-v80m00bq.js";export{To as Route,QE as generationOptions,nk as httpOptions,rk as make};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{aT,ik,ak,km,cT,YE,uT,_m,lT,ck,dT}from"./plugin-
|
|
2
|
+
import{aT,ik,ak,km,cT,YE,uT,_m,lT,ck,dT}from"./plugin-8g8myq9g.js";import"./plugin-0e34qaar.js";import"./plugin-dqxdznvd.js";import"./plugin-w3zbkmy6.js";import"./plugin-6vzw5yyr.js";import"./plugin-d28d8jar.js";import"./plugin-7te9b50h.js";import"./plugin-krbbb4ts.js";import"./plugin-72xxqm1t.js";import"./plugin-me00x60n.js";import"./plugin-q6pvb1xf.js";import"./plugin-v80m00bq.js";export{ik as DEVICE_CODE_GRANT_TYPE,ak as DEVICE_CODE_SLOW_DOWN_INCREMENT_MS,cT as beginDeviceGrant,lT as completeDeviceGrant,km as deviceAuthorization,_m as deviceGrantApproval,YE as deviceGrantPoll,ck as deviceGrantRefresh,aT as deviceGrantTokensToStored,uT as pollDeviceGrantOnce,dT as refreshDeviceGrantTokens};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Hk,jk,$m,Lr}from"./plugin-r7g3vqrm.js";import"./plugin-y9cdpmbv.js";import"./plugin-3t0qp574.js";import"./plugin-6vzw5yyr.js";import"./plugin-d28d8jar.js";import"./plugin-7te9b50h.js";import"./plugin-72xxqm1t.js";import"./plugin-me00x60n.js";import"./plugin-q6pvb1xf.js";import"./plugin-v80m00bq.js";export{Lr as Endpoint,jk as merge,Hk as path,$m as render};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Yk,kv,_v,Bm,dy,Tv,Af,Mf,Eu,Of,Pf,$f,ms,rn,Rv,Iv,Cv,kr,Vl,Zl,fy,Bi,mc,hc,Aa,vu,GT,Av,py,de,JT,KT,Xk}from"./plugin-
|
|
2
|
+
import{Yk,kv,_v,Bm,dy,Tv,Af,Mf,Eu,Of,Pf,$f,ms,rn,Rv,Iv,Cv,kr,Vl,Zl,fy,Bi,mc,hc,Aa,vu,GT,Av,py,de,JT,KT,Xk}from"./plugin-3t0qp574.js";import"./plugin-q6pvb1xf.js";import"./plugin-v80m00bq.js";export{Cv as AdapterFailedReason,kr as AuthenticationReason,fy as ContentPolicyReason,ms as HttpContext,$f as HttpRateLimitDetails,Of as HttpRequestDetails,Pf as HttpResponseDetails,Aa as InvalidProviderOutputReason,rn as InvalidRequestReason,de as LLMError,GT as LLMErrorReason,Rv as NoRouteReason,Iv as NotInstalledReason,Yk as ProviderFailureClassification,Bi as ProviderInternalReason,Zl as QuotaExceededReason,Vl as RateLimitReason,hc as StreamStalledReason,Xk as ToolFailure,kv as TransportFailureKind,mc as TransportReason,vu as UnknownProviderReason,Mf as WIRE_CAUSE_DEPTH,Eu as WIRE_EXCERPT_LIMIT,Af as WireAttemptFields,dy as WireCause,_v as WireFailureFamily,JT as WireFailureRecord,Tv as WireLastEvent,Bm as familyRetries,Av as providerSaid,py as statusReason,KT as wireFailureRecord};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{ln,PT,lc,iv,av,cv,uv,lv,dv,fv,pv,mv,hv,gv,yv,xv,Sv,bv,Ev,vv,we,Am,dc}from"./plugin-
|
|
2
|
+
import{ln,PT,lc,iv,av,cv,uv,lv,dv,fv,pv,mv,hv,gv,yv,xv,Sv,bv,Ev,vv,we,Am,dc}from"./plugin-24j9hnc7.js";import"./plugin-yp736z4n.js";import"./plugin-a3vzpk4e.js";import"./plugin-g7hrtg2p.js";import"./plugin-7te9b50h.js";import"./plugin-me00x60n.js";import"./plugin-q6pvb1xf.js";import"./plugin-v80m00bq.js";export{vv as Finish,lc as InputUsage,av as InputUsageMeasured,we as LLMEvent,dc as LLMResponse,bv as ModelFallback,Am as PreparedRequest,fv as ReasoningDelta,pv as ReasoningEnd,dv as ReasoningStart,Ev as StepFinish,iv as StepStart,uv as TextDelta,lv as TextEnd,cv as TextStart,yv as ToolCall,Sv as ToolError,hv as ToolInputDelta,gv as ToolInputEnd,mv as ToolInputStart,xv as ToolResult,ln as Usage,PT as sumUsage};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Io,xu,_a,Rf,zl,Vk,Fm,Um,If,LT,zm}from"./plugin-e5ybk2a2.js";import"./plugin-8q44b578.js";import"./plugin-p6x7emar.js";import"./plugin-y9cdpmbv.js";import"./plugin-3t0qp574.js";import"./plugin-w3zbkmy6.js";import"./plugin-6vzw5yyr.js";import"./plugin-d28d8jar.js";import"./plugin-7te9b50h.js";import"./plugin-krbbb4ts.js";import"./plugin-72xxqm1t.js";import"./plugin-me00x60n.js";import"./plugin-q6pvb1xf.js";import"./plugin-v80m00bq.js";export{Io as HttpExecutor,xu as MAX_RETRIES,Vk as RetryHint,zm as doorExecutorLayer,If as httpExecutorLayer,_a as normalizedHeaders,Fm as retryPause,Um as retryPolicy,zl as secretValues,Rf as upstreamRequestId,LT as wireExecutorLayer};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Ms,OT}from"./plugin-fjsmz1vy.js";import"./plugin-y9cdpmbv.js";import"./plugin-3t0qp574.js";import"./plugin-6vzw5yyr.js";import"./plugin-d28d8jar.js";import"./plugin-7te9b50h.js";import"./plugin-72xxqm1t.js";import"./plugin-me00x60n.js";import"./plugin-q6pvb1xf.js";import"./plugin-v80m00bq.js";export{OT as json,Ms as sse};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Tm,fk,Qg,Rm,fT,pk,pT,mT,hT,gT,yT,xT,mk,ST,ev,bT,ET,vT,wT,kT,_T,TT,RT,IT,Im,yu,CT}from"./plugin-
|
|
2
|
+
import{Tm,fk,Qg,Rm,fT,pk,pT,mT,hT,gT,yT,xT,mk,ST,ev,bT,ET,vT,wT,kT,_T,TT,RT,IT,Im,yu,CT}from"./plugin-yg0h5k5d.js";import"./plugin-v80m00bq.js";export{ev as ADOPTED_HARNESS_PERMISSION_STANCE,yu as ASKS_IN_REVIEW,Im as ASKS_NEVER,fk as HARNESS_DETAIL_MAX,Tm as HARNESS_ID_MAX,mk as HOOK_CONTEXT_CHARS,fT as HOST_COMMAND,vT as INTERRUPT_KEY,CT as LEGACY_TOOLS,xT as MCP_TOOL_SHAPES,Rm as RESERVED_HARNESS_NAMES,ST as UNMEASURED_HOOK_CONTEXT,bT as adoptedPermissionArgv,ET as chosenModelArgv,yT as harnessCallSchema,pk as harnessClaimSchema,mT as harnessModelReportSchema,Qg as harnessNameSchema,pT as harnessProvenanceSchema,gT as harnessQuestionKindSchema,hT as harnessQuestionOptionSchema,TT as navigateChoice,_T as oneValue,IT as screenChoices,RT as typeChoice,kT as unmeasuredKeys,wT as unmeasuredScreen};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Cu,Sr,ut,Ry,sd,Au,qs,QT,Oa,Pa,Mu,Iy,Cy,Ay,zf,Ou}from"./plugin-
|
|
2
|
+
import{Cu,Sr,ut,Ry,sd,Au,qs,QT,Oa,Pa,Mu,Iy,Cy,Ay,zf,Ou}from"./plugin-q6pvb1xf.js";import"./plugin-v80m00bq.js";export{Oa as ContentBlockID,zf as FinishReason,Sr as JsonRecord,Ou as JsonSchema,Ay as MessageRole,Au as ModelID,Ry as ProtocolID,qs as ProviderID,ut as ProviderMetadata,Iy as ReasoningEffort,Mu as ReasoningEfforts,QT as ResponseID,sd as RouteID,Cy as TextVerbosity,Pa as ToolCallID,Cu as carriedByJson};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Oy,zv,Hv,jv,Py,qv,$y,Wv,Vv,Zv,i_,Gv,Jv,Kv,Qv,Ly,Yv,a_,Xv,e0,t0,n0,r0,o0,s0,i0,a0,c0,u0,l0,d0,Dy,Fy,f0,p0,m0,h0,c_,g0,y0,x0,S0,b0,Bs,Uy,E0,v0,w0,k0,rh,zy,_0,T0,R0,u_,I0}from"./plugin-
|
|
2
|
+
import{Oy,zv,Hv,jv,Py,qv,$y,Wv,Vv,Zv,i_,Gv,Jv,Kv,Qv,Ly,Yv,a_,Xv,e0,t0,n0,r0,o0,s0,i0,a0,c0,u0,l0,d0,Dy,Fy,f0,p0,m0,h0,c_,g0,y0,x0,S0,b0,Bs,Uy,E0,v0,w0,k0,rh,zy,_0,T0,R0,u_,I0}from"./plugin-v80m00bq.js";import{Pu,g,gi,A0,Jo,bc,l_,Hy,Sn,On,St,M0,d_,sh,f_,O0,cd,Zs,Ir,no,Ye,Pn,zt,ah,Jf,Kf,dr,Qo,Zy,Gy,Wu,Jy,Do,Fo,gh,L0,Hc,qa,cx,ux,lx,pp,U0,nl,mp,p_,z0,Gn,$x,j0,_p,Ch,Ah,iS,bS,TS,pa,$p,zh,ci,Ya,m_,G0,HS,K0,qS,Q0,h_,rE,Zp,tg,ng,rg,sg,ag,ow,sw,oE,g_,sE,iw,aw,dw,y_,x_,fw,S_,b_}from"./plugin-xfcgt5ba.js";export{zv as Arbitrary,dr as Array,$x as BigDecimal,j0 as BigInt,Hv as Boolean,jv as Brand,_p as ByteSize,Py as Cache,Do as Cause,oE as Channel,qv as ChannelSchema,Ch as Chunk,ux as Clock,cd as Combiner,Wv as Config,$y as ConfigProvider,Vv as Console,Pn as Context,U0 as Cron,Zv as Crypto,Wu as Data,Ah as DateTime,gh as Deferred,i_ as Differ,Qo as Duration,Gn as Effect,O0 as Effectable,St as Equal,Ir as Equivalence,S_ as ErrorReporter,cx as ExecutionPlan,Fo as Exit,Zp as Fiber,Gv as FiberHandle,Jv as FiberMap,Kv as FiberSet,y_ as FileSystem,Zy as Filter,d_ as Formatter,Hy as Function,Qv as Graph,a_ as HKT,On as Hash,iS as HashMap,Yv as HashRing,bS as HashSet,sh as Inspectable,Jf as Iterable,K0 as JsonPatch,m_ as JsonPointer,G0 as JsonSchema,tg as Latch,qa as Layer,Xv as LayerMap,e0 as LayerRef,fw as LogLevel,t0 as Logger,n0 as ManagedRuntime,r0 as Match,z0 as Metric,rE as MutableHashMap,o0 as MutableHashSet,rg as MutableList,ng as MutableRef,s0 as Newtype,i0 as NonEmptyIterable,lx as Number,Q0 as Optic,Ye as Option,no as Order,a0 as Ordering,c0 as PartitionedSemaphore,x_ as Path,Pu as Pipeable,g_ as PlatformError,u0 as Pool,Sn as Predicate,Ly as PrimaryKey,sg as PubSub,nl as Pull,ag as Queue,Oy as Random,iw as RcMap,aw as RcRef,Kf as Record,M0 as Redactable,TS as Redacted,Zs as Reducer,b_ as Ref,L0 as References,HS as RegExp,p_ as Request,d0 as RequestResolver,f0 as Resource,zt as Result,p0 as Runtime,mp as Schedule,Gy as Scheduler,h_ as Schema,ci as SchemaAST,$p as SchemaGetter,pa as SchemaIssue,Ya as SchemaParser,m0 as SchemaRepresentation,zh as SchemaTransformation,Hc as Scope,h0 as ScopedCache,Fy as ScopedRef,ow as Semaphore,sE as Sink,c_ as StandardSchema,g0 as Stdio,dw as Stream,pp as String,qS as Struct,y0 as SubscriptionRef,x0 as Symbol,Dy as SynchronizedRef,sw as Take,S0 as Terminal,Jy as Tracer,b0 as Trie,ah as Tuple,Uy as TxChunk,E0 as TxDeferred,v0 as TxHashMap,w0 as TxHashSet,k0 as TxPriorityQueue,zy as TxPubSub,rh as TxQueue,_0 as TxReentrantLock,Bs as TxRef,T0 as TxSemaphore,R0 as TxSubscriptionRef,u_ as Types,l0 as UndefinedOr,I0 as Unify,f_ as Utils,A0 as absurd,gi as cast,bc as flow,l_ as hole,g as identity,Jo as pipe};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Wm,gc,Gl,hy,Zm,_u,yc,Lf,Jm,Km,Nv,gy,yy,hi,xy,Qm,Ff,Ym,Sy,by,Kl,Ey,vy,wy,ky,Lv,Dv}from"./plugin-
|
|
2
|
+
import{Wm,gc,Gl,hy,Zm,_u,yc,Lf,Jm,Km,Nv,gy,yy,hi,xy,Qm,Ff,Ym,Sy,by,Kl,Ey,vy,wy,ky,Lv,Dv}from"./plugin-d28d8jar.js";import{q0,B0,W0}from"./plugin-xfcgt5ba.js";export{q0 as Cookies,Wm as Etag,Nv as FetchHttpClient,gy as FindMyWay,B0 as Headers,gc as HttpBody,Km as HttpClient,Gl as HttpClientError,_u as HttpClientRequest,Lf as HttpClientResponse,vy as HttpEffect,yc as HttpIncomingMessage,hy as HttpMethod,Ey as HttpMiddleware,Qm as HttpPlatform,ky as HttpRouter,wy as HttpServer,Ym as HttpServerError,Kl as HttpServerRequest,Ff as HttpServerRespondable,hi as HttpServerResponse,Lv as HttpStaticServer,Dv as HttpStatus,Jm as HttpTraceContext,xy as Mime,by as Multipart,Sy as MultipartParser,yy as Template,Zm as Url,W0 as UrlParams};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Cs,nn,Vo,Ol,cs,yr,Pl,As}from"./plugin-zsv7wawc.js";import"./plugin-24j9hnc7.js";import"./plugin-yp736z4n.js";import"./plugin-a3vzpk4e.js";import"./plugin-g7hrtg2p.js";import"./plugin-7te9b50h.js";import"./plugin-me00x60n.js";import"./plugin-q6pvb1xf.js";import"./plugin-v80m00bq.js";export{As as finish,Cs as initial,cs as reasoningDelta,yr as reasoningEnd,Ol as reasoningStart,nn as stepStart,Vo as textDelta,Pl as textEnd};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ck,Ak,Mk,Ok,Os,Mm,Om,_f,Pk,$k,Nk,dn,Lk,pi,Dk,$T,fc,Fk,us}from"./plugin-
|
|
2
|
+
import{Ck,Ak,Mk,Ok,Os,Mm,Om,_f,Pk,$k,Nk,dn,Lk,pi,Dk,$T,fc,Fk,us}from"./plugin-yp736z4n.js";import"./plugin-a3vzpk4e.js";import"./plugin-7te9b50h.js";import"./plugin-me00x60n.js";import"./plugin-q6pvb1xf.js";import"./plugin-v80m00bq.js";export{Nk as ContentPart,us as LLMRequest,Mk as MediaPart,dn as Message,$k as ModelFallbackPart,Pk as ReasoningPart,Fk as ResponseFormat,Ck as SystemPart,Ak as TextPart,Om as ToolCallPart,fc as ToolChoice,pi as ToolDefinition,Mm as ToolOutput,_f as ToolResultPart,Ok as ToolResultRetention,Os as ToolResultValue,Lk as VendorWire,Dk as toJsonSchema,$T as toolInputSchema};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./plugin-
|
|
2
|
+
import"./plugin-v80m00bq.js";import{Tm}from"./plugin-yg0h5k5d.js";import{F,$r,t,_t}from"./plugin-xfcgt5ba.js";import{isAbsolute as y,join as p}from"path";class s extends F("MetadataInvalid"){}var k=()=>({model:null,effort:null,title:null}),b=t.check(_t(Tm)),T=(e,n=null)=>e===void 0||e===null||e.trim()===""?null:{value:e,claim:"last-recorded",turnId:n},h=(e)=>{try{return JSON.parse(e)}catch{throw new s({reason:"malformed"})}},A=(e)=>{let n=$r(e);return(r)=>{let a=n(r);if(a._tag==="Failure")throw new s({reason:"malformed"});return a.success}},V=(e,n,r)=>{let a=new Map(e.storage.entries.map((i)=>[i.name,i.value])),l=a.get(n),o=a.get("HOME"),d=l??(o===void 0?void 0:p(o,r));return d!==void 0&&y(d)?d:null};function R(e,n,r,a,l="transcript",o=!1){if(e===null||n===void 0)return{kind:"unreadable",reason:"source-location-unavailable",source:l,fields:a};return o?{kind:"file",root:e,path:n,fold:r,computed:o,source:l,fields:a}:{kind:"file",root:e,path:n,fold:r,source:l,fields:a}}var H=()=>({said:[],requests:new Map,compacted:null}),u=(e)=>{let n=e===void 0?Number.NaN:Date.parse(e);return Number.isNaN(n)?null:n};function c(e){if(typeof e==="string")return[e];if(!Array.isArray(e))return[];return e.flatMap((n)=>{if(typeof n!=="object"||n===null)return[];let r=n;return(r.type==="text"||r.type==="input_text")&&typeof r.text==="string"?[r.text]:[]})}function N(e,n){let r=c(e);if(r.join(`
|
|
3
3
|
`).trim()==="")return null;let a=r.filter((l)=>{let o=l.trim();return o!==""&&!o.startsWith("<")&&!o.startsWith("# AGENTS.md")});return{texts:r,typed:a,at:u(n)}}var g=(e)=>typeof e==="object"&&e!==null&&!Array.isArray(e)?e:null,_=(e)=>typeof e==="string"?e:null,m=(e)=>Array.isArray(e)?e.flatMap((n)=>{let r=g(n);return r===null?[]:[r]}):[],j=(e)=>typeof e==="string"?e:m(e).flatMap((n)=>n.type==="text"&&typeof n.text==="string"?[n.text]:[]).join(`
|
|
4
4
|
`),W=(e)=>({_tag:"Completed",message:e.trim()===""?null:e}),C=(e)=>typeof e==="string"?u(e):null;export{s as MetadataInvalid,W as answered,m as blocksOf,k as emptyValues,g as fieldsOf,R as fileSource,C as isoStamp,h as jsonValue,A as metadataDecode,b as metadataText,T as recordedValue,u as stampMillis,V as storageHome,j as textBlocks,_ as textOf,N as transcriptSaid,H as unsaid,c as userTexts};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import"./plugin-v80m00bq.js";import"./plugin-d28d8jar.js";import"./plugin-me00x60n.js";import"./plugin-q6pvb1xf.js";import"./plugin-7te9b50h.js";import"./plugin-6vzw5yyr.js";import"./plugin-3t0qp574.js";import"./plugin-g4hst0jz.js";import"./plugin-8q44b578.js";import"./plugin-72xxqm1t.js";import"./plugin-y9cdpmbv.js";import"./plugin-a3vzpk4e.js";import"./plugin-yp736z4n.js";import"./plugin-g7hrtg2p.js";import"./plugin-24j9hnc7.js";import"./plugin-r7g3vqrm.js";import"./plugin-p6x7emar.js";import"./plugin-w3zbkmy6.js";import"./plugin-krbbb4ts.js";import"./plugin-e5ybk2a2.js";import"./plugin-fjsmz1vy.js";import"./plugin-7xmwhj5h.js";import"./plugin-pdww1ma8.js";import"./plugin-7swap1ad.js";import"./plugin-psj9935q.js";import{Rs,as}from"./plugin-zrb8bbr4.js";import"./plugin-zsv7wawc.js";import"./plugin-2s6bq45c.js";import"./plugin-9gha9fx3.js";import{ef,$g,um}from"./plugin-gh857xdd.js";import{Hn}from"./plugin-dd951075.js";import{Ng}from"./plugin-mqr325kz.js";import{Is}from"./plugin-fre9hdcg.js";import{Yn}from"./plugin-g0zv4vrz.js";import"./plugin-kc4z9msd.js";import{r}from"./plugin-xfcgt5ba.js";var t=32000,i=(o)=>`muse-build/${o.client.name}`;function s(o){let e=o.rung==="none"?void 0:Yn(o.rung);return Rs({store:!1,reasoningEffort:e,reasoningSummary:e!==void 0&&o.reasoningOutput?"auto":void 0,promptCacheKey:o.cacheGroup,parallelToolCalls:o.parallelToolCalls})}var n={fromHeaders:()=>null,read:Is},u=(o)=>({output:{budget:t,sent:!0},model:(e)=>r(as.with({provider:ef,quota:n.fromHeaders,endpoint:{baseURL:$g},limits:{output:t},auth:Hn(e.credentials,e.ownerId,ef,e.account).bearer(),headers:{"user-agent":i(o)}}).model({id:e.model,compatibility:{toolSchema:Ng}})),options:s}),g=(o)=>({...um,profile:u(o),quota:n});export{t as MUSE_OUTPUT_RESERVATION,g as museConsoleRegistration,s as museOptions,i as museUserAgent};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{rf,ac,Aw,mu,OE,lm,Mw,of,Ug,Ow,zg,j_}from"./plugin-
|
|
2
|
+
import{rf,ac,Aw,mu,OE,lm,Mw,of,Ug,Ow,zg,j_}from"./plugin-3969dy0b.js";import"./plugin-dsjq4tye.js";import"./plugin-9gha9fx3.js";import"./plugin-v80m00bq.js";export{Aw as CODEX_PROVIDER,Ug as DEFAULT_CODEX_MODEL,mu as DEFAULT_OPENAI_MODEL,OE as DEFAULT_OPENAI_OAUTH_MODEL,Mw as OPENAI_IMAGE_MODEL,ac as OPENAI_OAUTH_PROVIDER,rf as OPENAI_PROVIDER,zg as OpenAISubscriptionCredential,Ow as codexDescription,lm as openaiConsoleDescription,of as openaiSubscriptionDescription,j_ as openaiVendor};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Ea,tk,va}from"./plugin-er1kc6f6.js";import"./plugin-psj9935q.js";import"./plugin-zsv7wawc.js";import"./plugin-2s6bq45c.js";import"./plugin-pdww1ma8.js";import"./plugin-kc4z9msd.js";import"./plugin-7xmwhj5h.js";import"./plugin-fjsmz1vy.js";import"./plugin-24j9hnc7.js";import"./plugin-yp736z4n.js";import"./plugin-a3vzpk4e.js";import"./plugin-r7g3vqrm.js";import"./plugin-g7hrtg2p.js";import"./plugin-e5ybk2a2.js";import"./plugin-8q44b578.js";import"./plugin-p6x7emar.js";import"./plugin-y9cdpmbv.js";import"./plugin-g4hst0jz.js";import"./plugin-3t0qp574.js";import"./plugin-w3zbkmy6.js";import"./plugin-6vzw5yyr.js";import"./plugin-d28d8jar.js";import"./plugin-7te9b50h.js";import"./plugin-krbbb4ts.js";import"./plugin-72xxqm1t.js";import"./plugin-me00x60n.js";import"./plugin-q6pvb1xf.js";import"./plugin-v80m00bq.js";export{Ea as options,tk as protocol,va as route};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{yw,xw,Sw,Dg}from"./plugin-92sxs4r1.js";import"./plugin-e5ybk2a2.js";import"./plugin-8q44b578.js";import"./plugin-p6x7emar.js";import"./plugin-y9cdpmbv.js";import"./plugin-g4hst0jz.js";import"./plugin-3t0qp574.js";import"./plugin-w3zbkmy6.js";import"./plugin-6vzw5yyr.js";import"./plugin-d28d8jar.js";import"./plugin-7te9b50h.js";import"./plugin-krbbb4ts.js";import"./plugin-72xxqm1t.js";import"./plugin-me00x60n.js";import"./plugin-q6pvb1xf.js";import"./plugin-v80m00bq.js";export{xw as EDITS,yw as GENERATIONS,Dg as generateImages,Sw as imagesBody};
|