@runlith/tagma 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/adapter/claudeHooks.d.ts +10 -0
- package/adapter/claudeHooks.js +4 -0
- package/adapter/declaration.d.ts +14 -0
- package/adapter/declaration.js +2 -0
- package/adapter/harness.d.ts +454 -0
- package/adapter/harness.js +2 -0
- package/adapter/hook.d.ts +43 -0
- package/adapter/hook.js +2 -0
- package/adapter/hostModules.d.ts +19 -0
- package/adapter/hostModules.js +2 -0
- package/adapter/loader.d.ts +10 -0
- package/adapter/loader.js +2 -0
- package/adapter/metadata.d.ts +179 -0
- package/adapter/metadata.js +4 -0
- package/adapter/payload.d.ts +19 -0
- package/adapter/payload.js +3 -0
- package/adapter/provider.d.ts +209 -0
- package/adapter/provider.js +2 -0
- package/adapter/settings.d.ts +182 -0
- package/adapter/settings.js +2 -0
- package/adapter/speech.d.ts +4 -0
- package/adapter/speech.js +2 -0
- package/host.d.ts +61223 -0
- package/package.json +129 -3
- package/plugin/Held-6krt6ncs.js +6 -0
- package/plugin/accountKey-tdjj67f5.js +2 -0
- package/plugin/adapter-qdnpxs6n.js +1 -0
- package/plugin/anthropic-a4pdzrv2.js +2 -0
- package/plugin/anthropic-messages-7gtja121.js +2 -0
- package/plugin/anthropic-z9xqmm3q.js +2 -0
- package/plugin/auth-0w6kk39v.js +2 -0
- package/plugin/authStatus-a1g3eb9p.js +2 -0
- package/plugin/bundling.d.ts +30 -0
- package/plugin/bundling.js +2 -0
- package/plugin/cacheLifetime-c5mpw676.js +2 -0
- package/plugin/callback-server-0wrzmjfx.js +16 -0
- package/plugin/capabilities-n3vfpy41.js +2 -0
- package/plugin/claudeHooks-edpg1e46.js +3 -0
- package/plugin/cli.js +21 -0
- package/plugin/cliStore-9rhjxtht.js +2 -0
- package/plugin/clientSession-tmmxm39z.js +2 -0
- package/plugin/codec-aa8mxqyr.js +1 -0
- package/plugin/connect-vrdsw05j.js +2 -0
- package/plugin/contract-qn0z7r9c.js +1 -0
- package/plugin/credential-5sgapkh0.js +2 -0
- package/plugin/deepseek-fvdrmjr9.js +2 -0
- package/plugin/deepseek-v388d1wv.js +2 -0
- package/plugin/definition-s3xx207f.js +2 -0
- package/plugin/description-8xhxryaq.js +2 -0
- package/plugin/deviceGrant-vgbscpr4.js +2 -0
- package/plugin/devin-hy98d305.js +2 -0
- package/plugin/duplex-kpmftvf7.js +2 -0
- package/plugin/endpoint-kvf97tz7.js +2 -0
- package/plugin/errors-5t42p4q1.js +2 -0
- package/plugin/events-e8vv9hda.js +2 -0
- package/plugin/events-s95ybm4g.js +2 -0
- package/plugin/executor-q8kp5q8h.js +2 -0
- package/plugin/failure-vr32debc.js +2 -0
- package/plugin/framing-nktw5sts.js +2 -0
- package/plugin/grant-67b10nhx.js +2 -0
- package/plugin/harness-nrh78w4d.js +2 -0
- package/plugin/headers-ss3dzznj.js +2 -0
- package/plugin/hook-hjrk83m8.js +2 -0
- package/plugin/icon-044pa3y8.js +6 -0
- package/plugin/icon-j22svmgp.js +4 -0
- package/plugin/icon-ny6qbjvc.js +4 -0
- package/plugin/icon-pz54e8n3.js +4 -0
- package/plugin/icon-qy92jx2b.js +4 -0
- package/plugin/ids-n269hc5k.js +2 -0
- package/plugin/images-q80x3bt1.js +2 -0
- package/plugin/index-cyd7v366.js +2 -0
- package/plugin/index-jpmjpmkn.js +2 -0
- package/plugin/lifecycle-qf4fh5m8.js +2 -0
- package/plugin/manual-2mdscj84.js +2 -0
- package/plugin/messages-1szh3p3k.js +2 -0
- package/plugin/metadata-zm1v3ptf.js +4 -0
- package/plugin/muse-r16jp51z.js +2 -0
- package/plugin/muse-tfe6sph7.js +2 -0
- package/plugin/museToolSchema-tbe0f3wa.js +2 -0
- package/plugin/notes-6amdhm6h.js +2 -0
- package/plugin/object-9pjtdam7.js +2 -0
- package/plugin/open-browser-vqb7ckt1.js +2 -0
- package/plugin/openai-0z6fy497.js +2 -0
- package/plugin/openai-37dne8v0.js +2 -0
- package/plugin/openai-compatible-chat-tq9w69h4.js +2 -0
- package/plugin/openai-images-x1sj79qh.js +2 -0
- package/plugin/openai-responses-dka6k753.js +2 -0
- package/plugin/opencodeGo-173fz5c5.js +3 -0
- package/plugin/opencodeGo-qgw3pfg6.js +2 -0
- package/plugin/options-pxwjpfdk.js +2 -0
- package/plugin/payload-2gr4q9g8.js +2 -0
- package/plugin/pkce-nrpept7w.js +2 -0
- package/plugin/plugin-1n46me5n.js +6 -0
- package/plugin/plugin-1vpp5mqk.js +4 -0
- package/plugin/plugin-1x94cj6e.js +3 -0
- package/plugin/plugin-1xze8f5y.js +3 -0
- package/plugin/plugin-285exjxd.js +3 -0
- package/plugin/plugin-3b8x73y6.js +3 -0
- package/plugin/plugin-3pfrkxg1.js +3 -0
- package/plugin/plugin-3whwpedj.js +3 -0
- package/plugin/plugin-521srf94.js +3 -0
- package/plugin/plugin-55fbx586.js +3 -0
- package/plugin/plugin-5zq084fb.js +3 -0
- package/plugin/plugin-60bdzk1r.js +4 -0
- package/plugin/plugin-6a56xsx3.js +3 -0
- package/plugin/plugin-6xpcmvm3.js +36 -0
- package/plugin/plugin-72xxqm1t.js +3 -0
- package/plugin/plugin-7y7ndrk9.js +3 -0
- package/plugin/plugin-80gqwmjy.js +3 -0
- package/plugin/plugin-8230g28p.js +3 -0
- package/plugin/plugin-8jf7f360.js +3 -0
- package/plugin/plugin-92redty0.js +3 -0
- package/plugin/plugin-9gha9fx3.js +3 -0
- package/plugin/plugin-a4ng6krf.js +3 -0
- package/plugin/plugin-ak62rhwz.js +3 -0
- package/plugin/plugin-ay29ch70.js +3 -0
- package/plugin/plugin-ba1sv0th.js +3 -0
- package/plugin/plugin-ca4vf4j5.js +3 -0
- package/plugin/plugin-cydz2zhy.js +3 -0
- package/plugin/plugin-d6hbav22.js +3 -0
- package/plugin/plugin-e2y95zm5.js +3 -0
- package/plugin/plugin-ff38dxy1.js +3 -0
- package/plugin/plugin-ff9hx5a4.js +3 -0
- package/plugin/plugin-fhc5q7r3.js +3 -0
- package/plugin/plugin-frrvs5yc.js +3 -0
- package/plugin/plugin-g65b14k1.js +3 -0
- package/plugin/plugin-gh857xdd.js +3 -0
- package/plugin/plugin-gkgs7vfv.js +3 -0
- package/plugin/plugin-h66k1zhn.js +14 -0
- package/plugin/plugin-je5cfnqn.js +3 -0
- package/plugin/plugin-jjm52353.js +3 -0
- package/plugin/plugin-jxvmq18y.js +3 -0
- package/plugin/plugin-kc4z9msd.js +3 -0
- package/plugin/plugin-kjtzm2q6.js +3 -0
- package/plugin/plugin-krbbb4ts.js +3 -0
- package/plugin/plugin-me00x60n.js +3 -0
- package/plugin/plugin-mqr325kz.js +3 -0
- package/plugin/plugin-njh1f7b2.js +5 -0
- package/plugin/plugin-nkb5bb2q.js +3 -0
- package/plugin/plugin-nqmb78ez.js +4 -0
- package/plugin/plugin-nzacjxf9.js +3 -0
- package/plugin/plugin-p59gy5xd.js +3 -0
- package/plugin/plugin-pfj9nc2e.js +3 -0
- package/plugin/plugin-pkxw1pfs.js +3 -0
- package/plugin/plugin-q1n5kwx0.js +3 -0
- package/plugin/plugin-q1sqj2tc.js +3 -0
- package/plugin/plugin-q7rk75bs.js +3 -0
- package/plugin/plugin-qpda63gv.js +3 -0
- package/plugin/plugin-rrgyjesv.js +3 -0
- package/plugin/plugin-sfdxgkds.js +3 -0
- package/plugin/plugin-v7k9fx92.js +3 -0
- package/plugin/plugin-vfjhxng8.js +3 -0
- package/plugin/plugin-vv72e4ah.js +3 -0
- package/plugin/plugin-w8f977my.js +3 -0
- package/plugin/plugin-xbnw80pk.js +3 -0
- package/plugin/plugin-yxgg03s0.js +5 -0
- package/plugin/plugin-z6hkd9rw.js +3 -0
- package/plugin/plugin-zew2m18x.js +3 -0
- package/plugin/plugin-zphe2a5v.js +9 -0
- package/plugin/plugin-zvyk8bnr.js +3 -0
- package/plugin/plugin-zw3ywa4b.js +3 -0
- package/plugin/plugin-zxe49p72.js +3 -0
- package/plugin/plugin-zz7yc97m.js +3 -0
- package/plugin/plugin.d.ts +175 -0
- package/plugin/plugin.js +2 -0
- package/plugin/points.generated.d.ts +341 -0
- package/plugin/points.generated.js +2 -0
- package/plugin/process.d.ts +4 -0
- package/plugin/process.js +85 -0
- package/plugin/protocol-hwnfh4h1.js +2 -0
- package/plugin/protocol.d.ts +115 -0
- package/plugin/protocol.js +2 -0
- package/plugin/provider-0b7xxyhn.js +2 -0
- package/plugin/quota-vrrmfag6.js +2 -0
- package/plugin/quotaRead-vj6e90xc.js +2 -0
- package/plugin/reasoning-5nanktp2.js +2 -0
- package/plugin/record-1m3vvy60.js +2 -0
- package/plugin/requests-2zyr1g8e.js +1 -0
- package/plugin/responseFold-w4526gvb.js +2 -0
- package/plugin/settings-vdypzert.js +2 -0
- package/plugin/shared-a2yyy8ry.js +2 -0
- package/plugin/speech-067caz1a.js +2 -0
- package/plugin/stepfun-3en5g41d.js +2 -0
- package/plugin/stepfun-bwsz4nrd.js +2 -0
- package/plugin/stream-bt8etfpc.js +2 -0
- package/plugin/svelteProgram-73v9yajk.js +2 -0
- package/plugin/synthesisDuplex-m2j6pmyv.js +2 -0
- package/plugin/template.d.ts +14 -0
- package/plugin/template.js +2 -0
- package/plugin/testing.d.ts +85 -0
- package/plugin/testing.js +4 -0
- package/plugin/tool-content-b9jtprr7.js +2 -0
- package/plugin/tool-stream-gdajdxn0.js +2 -0
- package/plugin/transport-7hfp9sn4.js +2 -0
- package/plugin/ui.generated.d.ts +1044 -0
- package/plugin/value.d.ts +8 -0
- package/plugin/value.js +2 -0
- package/plugin/vendor-pn6b5a8f.js +2 -0
- package/plugin/vendorCall-6n5chrn0.js +2 -0
- package/plugin/vendorCall-hv01nwsp.js +2 -0
- package/plugin/vendorPayload-awxqr7t8.js +2 -0
- package/plugin/vendorWeb-vnf344r1.js +2 -0
- package/plugin/verbatim-mqt9x4aa.js +2 -0
- package/plugin/xai-e8sbtk6a.js +2 -0
- package/plugin/xai-z1ysta23.js +2 -0
- package/rules/effect.d.ts +55 -0
- package/rules/effect.js +11 -0
- package/rules/rules.d.ts +342 -0
- package/rules/rules.js +50 -0
- package/types/node/assert/strict.d.ts +12 -0
- package/types/node/assert.d.ts +76 -0
- package/types/node/async_hooks.d.ts +113 -0
- package/types/node/buffer.buffer.d.ts +29 -0
- package/types/node/buffer.d.ts +162 -0
- package/types/node/child_process.d.ts +337 -0
- package/types/node/cluster.d.ts +118 -0
- package/types/node/compatibility/iterators.d.ts +11 -0
- package/types/node/console.d.ts +48 -0
- package/types/node/constants.d.ts +8 -0
- package/types/node/crypto.d.ts +847 -0
- package/types/node/dgram.d.ts +88 -0
- package/types/node/diagnostics_channel.d.ts +61 -0
- package/types/node/dns/promises.d.ts +94 -0
- package/types/node/dns.d.ts +276 -0
- package/types/node/domain.d.ts +17 -0
- package/types/node/events.d.ts +138 -0
- package/types/node/fs/promises.d.ts +253 -0
- package/types/node/fs.d.ts +1038 -0
- package/types/node/globals.d.ts +73 -0
- package/types/node/globals.typedarray.d.ts +22 -0
- package/types/node/http.d.ts +530 -0
- package/types/node/http2.d.ts +794 -0
- package/types/node/https.d.ts +66 -0
- package/types/node/index.d.ts +84 -0
- package/types/node/inspector/promises.d.ts +13 -0
- package/types/node/inspector.d.ts +61 -0
- package/types/node/inspector.generated.d.ts +1624 -0
- package/types/node/module.d.ts +187 -0
- package/types/node/net.d.ts +266 -0
- package/types/node/os.d.ts +236 -0
- package/types/node/path/posix.d.ts +8 -0
- package/types/node/path/win32.d.ts +8 -0
- package/types/node/path.d.ts +40 -0
- package/types/node/perf_hooks.d.ts +236 -0
- package/types/node/process.d.ts +436 -0
- package/types/node/punycode.d.ts +15 -0
- package/types/node/querystring.d.ts +22 -0
- package/types/node/quic.d.ts +203 -0
- package/types/node/readline/promises.d.ts +28 -0
- package/types/node/readline.d.ts +94 -0
- package/types/node/repl.d.ts +104 -0
- package/types/node/sea.d.ts +11 -0
- package/types/node/sqlite.d.ts +183 -0
- package/types/node/stream/consumers.d.ts +13 -0
- package/types/node/stream/iter.d.ts +240 -0
- package/types/node/stream/promises.d.ts +37 -0
- package/types/node/stream/web.d.ts +297 -0
- package/types/node/stream.d.ts +378 -0
- package/types/node/string_decoder.d.ts +10 -0
- package/types/node/test/reporters.d.ts +66 -0
- package/types/node/test.d.ts +462 -0
- package/types/node/timers/promises.d.ts +16 -0
- package/types/node/timers.d.ts +43 -0
- package/types/node/tls.d.ts +279 -0
- package/types/node/trace_events.d.ts +16 -0
- package/types/node/ts5.6/buffer.buffer.d.ts +26 -0
- package/types/node/ts5.6/compatibility/float16array.d.ts +43 -0
- package/types/node/ts5.6/globals.typedarray.d.ts +22 -0
- package/types/node/ts5.6/index.d.ts +84 -0
- package/types/node/ts5.7/compatibility/float16array.d.ts +50 -0
- package/types/node/ts5.7/index.d.ts +84 -0
- package/types/node/tty.d.ts +61 -0
- package/types/node/url.d.ts +165 -0
- package/types/node/util/types.d.ts +49 -0
- package/types/node/util.d.ts +320 -0
- package/types/node/v8.d.ts +178 -0
- package/types/node/vm.d.ts +130 -0
- package/types/node/wasi.d.ts +26 -0
- package/types/node/web-globals/abortcontroller.d.ts +47 -0
- package/types/node/web-globals/blob.d.ts +34 -0
- package/types/node/web-globals/console.d.ts +7 -0
- package/types/node/web-globals/crypto.d.ts +46 -0
- package/types/node/web-globals/domexception.d.ts +74 -0
- package/types/node/web-globals/encoding.d.ts +16 -0
- package/types/node/web-globals/events.d.ts +111 -0
- package/types/node/web-globals/fetch.d.ts +121 -0
- package/types/node/web-globals/importmeta.d.ts +11 -0
- package/types/node/web-globals/messaging.d.ts +32 -0
- package/types/node/web-globals/navigator.d.ts +28 -0
- package/types/node/web-globals/performance.d.ts +71 -0
- package/types/node/web-globals/storage.d.ts +26 -0
- package/types/node/web-globals/streams.d.ts +162 -0
- package/types/node/web-globals/timers.d.ts +22 -0
- package/types/node/web-globals/url.d.ts +27 -0
- package/types/node/worker_threads.d.ts +199 -0
- package/types/node/zlib/iter.d.ts +49 -0
- package/types/node/zlib.d.ts +360 -0
- package/types/undici/agent.d.ts +24 -0
- package/types/undici/api.d.ts +19 -0
- package/types/undici/balanced-pool.d.ts +16 -0
- package/types/undici/cache-interceptor.d.ts +98 -0
- package/types/undici/cache.d.ts +30 -0
- package/types/undici/client-stats.d.ts +9 -0
- package/types/undici/client.d.ts +61 -0
- package/types/undici/connector.d.ts +37 -0
- package/types/undici/content-type.d.ts +9 -0
- package/types/undici/cookies.d.ts +22 -0
- package/types/undici/diagnostics-channel.d.ts +72 -0
- package/types/undici/dispatcher.d.ts +207 -0
- package/types/undici/env-http-proxy-agent.d.ts +15 -0
- package/types/undici/errors.d.ts +117 -0
- package/types/undici/eventsource.d.ts +39 -0
- package/types/undici/fetch.d.ts +122 -0
- package/types/undici/formdata.d.ts +24 -0
- package/types/undici/global-dispatcher.d.ts +4 -0
- package/types/undici/global-origin.d.ts +3 -0
- package/types/undici/h2c-client.d.ts +35 -0
- package/types/undici/handlers.d.ts +7 -0
- package/types/undici/header.d.ts +10 -0
- package/types/undici/index.d.ts +85 -0
- package/types/undici/interceptors.d.ts +70 -0
- package/types/undici/mock-agent.d.ts +43 -0
- package/types/undici/mock-call-history.d.ts +57 -0
- package/types/undici/mock-client.d.ts +17 -0
- package/types/undici/mock-errors.d.ts +9 -0
- package/types/undici/mock-interceptor.d.ts +60 -0
- package/types/undici/mock-pool.d.ts +17 -0
- package/types/undici/patch.d.ts +21 -0
- package/types/undici/pool-stats.d.ts +11 -0
- package/types/undici/pool.d.ts +25 -0
- package/types/undici/proxy-agent.d.ts +22 -0
- package/types/undici/readable.d.ts +24 -0
- package/types/undici/retry-agent.d.ts +6 -0
- package/types/undici/retry-handler.d.ts +41 -0
- package/types/undici/round-robin-pool.d.ts +25 -0
- package/types/undici/snapshot-agent.d.ts +98 -0
- package/types/undici/socks5-proxy-agent.d.ts +17 -0
- package/types/undici/util.d.ts +4 -0
- package/types/undici/utility.d.ts +2 -0
- package/types/undici/webidl.d.ts +121 -0
- package/types/undici/websocket.d.ts +130 -0
- package/README.md +0 -3
|
@@ -0,0 +1,1044 @@
|
|
|
1
|
+
/// <reference path="../types/node/index.d.ts" />
|
|
2
|
+
/// <reference path="../host.d.ts" />
|
|
3
|
+
/// <reference lib="dom" />
|
|
4
|
+
import type { ViewServers, ViewTools } from "@runlith/tagma/plugin";
|
|
5
|
+
import type { Component, Snippet } from "@runlith/tagma/internal/node_modules/.bun/svelte@5.57.0/node_modules/svelte/types/index";
|
|
6
|
+
import type { HTMLAnchorAttributes, HTMLAttributes, HTMLButtonAttributes, HTMLInputAttributes, HTMLTextareaAttributes } from "@runlith/tagma/internal/node_modules/.bun/svelte@5.57.0/node_modules/svelte/elements";
|
|
7
|
+
export type TagmaView<Plugin = unknown> = {
|
|
8
|
+
readonly projectId: number;
|
|
9
|
+
readonly plugin: string;
|
|
10
|
+
readonly view: string;
|
|
11
|
+
readonly threadId: string | null;
|
|
12
|
+
readonly key: string | null;
|
|
13
|
+
} & {
|
|
14
|
+
readonly storage: ViewStorage;
|
|
15
|
+
readonly theme: {
|
|
16
|
+
readonly id: string;
|
|
17
|
+
readonly mode: "dark" | "light";
|
|
18
|
+
readonly terminal: {
|
|
19
|
+
black: string;
|
|
20
|
+
red: string;
|
|
21
|
+
green: string;
|
|
22
|
+
yellow: string;
|
|
23
|
+
blue: string;
|
|
24
|
+
magenta: string;
|
|
25
|
+
cyan: string;
|
|
26
|
+
white: string;
|
|
27
|
+
brightBlack: string;
|
|
28
|
+
brightRed: string;
|
|
29
|
+
brightGreen: string;
|
|
30
|
+
brightYellow: string;
|
|
31
|
+
brightBlue: string;
|
|
32
|
+
brightMagenta: string;
|
|
33
|
+
brightCyan: string;
|
|
34
|
+
brightWhite: string;
|
|
35
|
+
} & {
|
|
36
|
+
readonly background: string;
|
|
37
|
+
readonly foreground: string;
|
|
38
|
+
readonly cursor: string;
|
|
39
|
+
readonly cursorAccent: string;
|
|
40
|
+
readonly selectionBackground: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
resource: (uri: string) => Reading<unknown>;
|
|
44
|
+
thread: (threadId: string) => Reading<{
|
|
45
|
+
readonly threadId: string;
|
|
46
|
+
readonly life: "awaiting" | "idle" | "stalled" | "working";
|
|
47
|
+
readonly runId: string | null;
|
|
48
|
+
readonly text: string | null;
|
|
49
|
+
readonly ended: string | null;
|
|
50
|
+
} | {
|
|
51
|
+
readonly threadId: string;
|
|
52
|
+
readonly missing: "deleted" | "foreign-project" | "not-found";
|
|
53
|
+
} | null>;
|
|
54
|
+
transcript: (threadId: string) => Transcript;
|
|
55
|
+
open: (opening: ViewOpening) => Promise<void>;
|
|
56
|
+
openLink: (url: string) => void;
|
|
57
|
+
} & {
|
|
58
|
+
readonly speech: {
|
|
59
|
+
status: () => Promise<{
|
|
60
|
+
devices: {
|
|
61
|
+
capabilities: {
|
|
62
|
+
mic: boolean;
|
|
63
|
+
system: boolean;
|
|
64
|
+
excludeSelf: boolean;
|
|
65
|
+
echoCancel: boolean;
|
|
66
|
+
muteOutput: boolean;
|
|
67
|
+
permissionPrompt: boolean;
|
|
68
|
+
};
|
|
69
|
+
availability: {
|
|
70
|
+
readonly _tag: "absent";
|
|
71
|
+
reason: string;
|
|
72
|
+
unblock: ReadonlyArray<string>;
|
|
73
|
+
} | {
|
|
74
|
+
readonly _tag: "present";
|
|
75
|
+
};
|
|
76
|
+
inputs: ReadonlyArray<{
|
|
77
|
+
id: string;
|
|
78
|
+
label: string;
|
|
79
|
+
}>;
|
|
80
|
+
permissions: {
|
|
81
|
+
mic: "denied" | "granted" | "not-asked" | "unknown";
|
|
82
|
+
system: "denied" | "granted" | "not-asked" | "unknown";
|
|
83
|
+
} | null;
|
|
84
|
+
refusal: string | null;
|
|
85
|
+
said: string | null;
|
|
86
|
+
};
|
|
87
|
+
detector: {
|
|
88
|
+
readonly _tag: "absent";
|
|
89
|
+
reason: string;
|
|
90
|
+
unblock: ReadonlyArray<string>;
|
|
91
|
+
} | {
|
|
92
|
+
readonly _tag: "present";
|
|
93
|
+
};
|
|
94
|
+
models: ReadonlyArray<{
|
|
95
|
+
provider: string;
|
|
96
|
+
model: string;
|
|
97
|
+
label: string;
|
|
98
|
+
kind: "file" | "recognition" | "synthesis";
|
|
99
|
+
recorded: boolean;
|
|
100
|
+
again: boolean;
|
|
101
|
+
speakers: boolean;
|
|
102
|
+
availability: {
|
|
103
|
+
readonly _tag: "absent";
|
|
104
|
+
reason: string;
|
|
105
|
+
unblock: ReadonlyArray<string>;
|
|
106
|
+
} | {
|
|
107
|
+
readonly _tag: "present";
|
|
108
|
+
};
|
|
109
|
+
turns: ReadonlyArray<"client" | "none" | "provider">;
|
|
110
|
+
languages: ReadonlyArray<string>;
|
|
111
|
+
tuning: ReadonlyArray<{
|
|
112
|
+
id: string;
|
|
113
|
+
label: string;
|
|
114
|
+
min: number;
|
|
115
|
+
max: number;
|
|
116
|
+
initial: number;
|
|
117
|
+
modes: ReadonlyArray<"client" | "none" | "provider">;
|
|
118
|
+
}>;
|
|
119
|
+
voices: ReadonlyArray<{
|
|
120
|
+
id: string;
|
|
121
|
+
label: string;
|
|
122
|
+
languages: ReadonlyArray<string>;
|
|
123
|
+
}>;
|
|
124
|
+
}>;
|
|
125
|
+
dictation: {
|
|
126
|
+
kind: "blocked";
|
|
127
|
+
reason: string;
|
|
128
|
+
unblock: ReadonlyArray<string>;
|
|
129
|
+
said: string;
|
|
130
|
+
} | {
|
|
131
|
+
kind: "ready";
|
|
132
|
+
provider: string;
|
|
133
|
+
model: string;
|
|
134
|
+
label: string;
|
|
135
|
+
};
|
|
136
|
+
mic: "caller" | "server";
|
|
137
|
+
local: ReadonlyArray<{
|
|
138
|
+
id: string;
|
|
139
|
+
label: string;
|
|
140
|
+
size: number;
|
|
141
|
+
installed: boolean;
|
|
142
|
+
partial: number;
|
|
143
|
+
received: number | null;
|
|
144
|
+
failure: string | null;
|
|
145
|
+
}>;
|
|
146
|
+
}>;
|
|
147
|
+
recognize: (ask: {
|
|
148
|
+
readonly recognizer?: {
|
|
149
|
+
model?: string;
|
|
150
|
+
account?: string;
|
|
151
|
+
provider?: string;
|
|
152
|
+
turns?: "client" | "none" | "provider";
|
|
153
|
+
languages?: ReadonlyArray<string>;
|
|
154
|
+
speakers?: "prefer" | boolean;
|
|
155
|
+
};
|
|
156
|
+
}, listener: {
|
|
157
|
+
readonly heard: (event: {
|
|
158
|
+
kind: "gap";
|
|
159
|
+
track: string;
|
|
160
|
+
from: number;
|
|
161
|
+
to: number | null;
|
|
162
|
+
cause: "budget" | "device-change" | "device-lost" | "handoff" | "helper-failed" | "overflow" | "recognition-failed" | "reconnect" | "transport" | "unconfirmed-tail";
|
|
163
|
+
message: string;
|
|
164
|
+
} | {
|
|
165
|
+
kind: "level";
|
|
166
|
+
track: string;
|
|
167
|
+
at: number;
|
|
168
|
+
rms: number;
|
|
169
|
+
peak: number;
|
|
170
|
+
} | {
|
|
171
|
+
kind: "state";
|
|
172
|
+
state: "live";
|
|
173
|
+
} | {
|
|
174
|
+
kind: "track";
|
|
175
|
+
track: string;
|
|
176
|
+
phase: "connecting" | "ended" | "failed" | "finished" | "live" | "waiting";
|
|
177
|
+
queuedMs: number | null;
|
|
178
|
+
retryInMs: number | null;
|
|
179
|
+
reason: string | null;
|
|
180
|
+
} | {
|
|
181
|
+
kind: "utterance";
|
|
182
|
+
track: string;
|
|
183
|
+
segment: number;
|
|
184
|
+
seq: number;
|
|
185
|
+
revision: number;
|
|
186
|
+
closed: boolean;
|
|
187
|
+
text: string;
|
|
188
|
+
hypothesis: string;
|
|
189
|
+
from: number | null;
|
|
190
|
+
to: number | null;
|
|
191
|
+
speaker: number | null;
|
|
192
|
+
}) => void;
|
|
193
|
+
readonly ended: (failure: string | null) => void;
|
|
194
|
+
}) => Promise<{
|
|
195
|
+
finish: () => Promise<unknown>;
|
|
196
|
+
stop: () => void;
|
|
197
|
+
}>;
|
|
198
|
+
speak: (ask: {
|
|
199
|
+
text: string;
|
|
200
|
+
model?: string;
|
|
201
|
+
provider?: string;
|
|
202
|
+
voice?: string;
|
|
203
|
+
language?: string;
|
|
204
|
+
}) => Promise<{
|
|
205
|
+
provider: string;
|
|
206
|
+
model: string;
|
|
207
|
+
voice: string;
|
|
208
|
+
}>;
|
|
209
|
+
silence: () => number;
|
|
210
|
+
};
|
|
211
|
+
} & {
|
|
212
|
+
readonly tools: unknown extends Plugin ? Readonly<Record<string, (input?: Readonly<Record<string, unknown>>) => Promise<unknown>>> : ViewTools<Plugin>;
|
|
213
|
+
readonly servers: unknown extends Plugin ? Readonly<Record<string, {
|
|
214
|
+
readonly call: (tool: string, input?: Readonly<Record<string, unknown>>) => Promise<{
|
|
215
|
+
content: ReadonlyArray<{
|
|
216
|
+
readonly [key: string]: unknown;
|
|
217
|
+
}>;
|
|
218
|
+
_meta?: {
|
|
219
|
+
readonly [key: string]: unknown;
|
|
220
|
+
};
|
|
221
|
+
isError?: boolean;
|
|
222
|
+
structuredContent?: {
|
|
223
|
+
readonly [key: string]: unknown;
|
|
224
|
+
};
|
|
225
|
+
}>;
|
|
226
|
+
}>> : ViewServers<Plugin>;
|
|
227
|
+
};
|
|
228
|
+
export declare const useTagma: <Plugin = unknown>() => TagmaView<Plugin>;
|
|
229
|
+
export { TagmaRefused } from "@runlith/tagma/plugin";
|
|
230
|
+
export type { ToolFace } from "@runlith/tagma/plugin";
|
|
231
|
+
export type ComposerFace = {
|
|
232
|
+
readonly thread: {
|
|
233
|
+
readonly id: string | null;
|
|
234
|
+
readonly projectId: number;
|
|
235
|
+
readonly life: "awaiting" | "idle" | "stalled" | "working" | null;
|
|
236
|
+
};
|
|
237
|
+
readonly draft: {
|
|
238
|
+
readonly text: string;
|
|
239
|
+
readonly setText: (text: string) => void;
|
|
240
|
+
readonly insert: (text: string) => void;
|
|
241
|
+
readonly attach: (files: ReadonlyArray<File>) => Promise<void>;
|
|
242
|
+
};
|
|
243
|
+
readonly send: () => Promise<boolean>;
|
|
244
|
+
};
|
|
245
|
+
export declare const Thread: Component<{
|
|
246
|
+
id: string;
|
|
247
|
+
}, {}, "">;
|
|
248
|
+
export type Reading<A> = {
|
|
249
|
+
readonly current: A;
|
|
250
|
+
readonly failure: string | null;
|
|
251
|
+
};
|
|
252
|
+
export type ThreadReading = {
|
|
253
|
+
readonly threadId: string;
|
|
254
|
+
readonly life: "awaiting" | "idle" | "stalled" | "working";
|
|
255
|
+
readonly runId: string | null;
|
|
256
|
+
readonly text: string | null;
|
|
257
|
+
readonly ended: string | null;
|
|
258
|
+
} | {
|
|
259
|
+
readonly threadId: string;
|
|
260
|
+
readonly missing: "deleted" | "foreign-project" | "not-found";
|
|
261
|
+
};
|
|
262
|
+
export type ViewOpening = {
|
|
263
|
+
readonly pane: string;
|
|
264
|
+
} | {
|
|
265
|
+
readonly section: string;
|
|
266
|
+
} | {
|
|
267
|
+
readonly threadId: string;
|
|
268
|
+
readonly beside?: boolean;
|
|
269
|
+
};
|
|
270
|
+
export type ViewStorage = {
|
|
271
|
+
get: (key: string) => Promise<{
|
|
272
|
+
readonly stored: boolean;
|
|
273
|
+
readonly value?: unknown;
|
|
274
|
+
}>;
|
|
275
|
+
set: (key: string, value?: unknown) => Promise<boolean>;
|
|
276
|
+
};
|
|
277
|
+
export type Transcript = {
|
|
278
|
+
readonly entries: ReadonlyArray<{
|
|
279
|
+
runId: string | null;
|
|
280
|
+
id: string;
|
|
281
|
+
role: "assistant" | "notice" | "question" | "tool" | "user";
|
|
282
|
+
text?: string;
|
|
283
|
+
question?: {
|
|
284
|
+
id: string;
|
|
285
|
+
prompts: ReadonlyArray<{
|
|
286
|
+
id: string;
|
|
287
|
+
toolCallId: string;
|
|
288
|
+
prompt: string;
|
|
289
|
+
kind?: string;
|
|
290
|
+
options?: ReadonlyArray<{
|
|
291
|
+
label: string;
|
|
292
|
+
value: string;
|
|
293
|
+
description?: string;
|
|
294
|
+
preview?: string;
|
|
295
|
+
}>;
|
|
296
|
+
header?: string;
|
|
297
|
+
secret?: boolean;
|
|
298
|
+
data?: {
|
|
299
|
+
readonly [key: string]: ReadonlyArray<Json> | boolean | number | string | {
|
|
300
|
+
readonly [key: string]: Json;
|
|
301
|
+
} | null;
|
|
302
|
+
};
|
|
303
|
+
approves?: string;
|
|
304
|
+
allowMultiple?: boolean;
|
|
305
|
+
allowFreeform?: boolean;
|
|
306
|
+
}>;
|
|
307
|
+
answered: boolean;
|
|
308
|
+
};
|
|
309
|
+
tool?: {
|
|
310
|
+
input: unknown;
|
|
311
|
+
state: "done" | "failed" | "refused" | "running";
|
|
312
|
+
name: string;
|
|
313
|
+
output?: unknown;
|
|
314
|
+
};
|
|
315
|
+
sender?: {
|
|
316
|
+
name: string;
|
|
317
|
+
threadId?: string;
|
|
318
|
+
};
|
|
319
|
+
}>;
|
|
320
|
+
readonly tail: ReadonlyArray<{
|
|
321
|
+
runId: string | null;
|
|
322
|
+
id: string;
|
|
323
|
+
role: "assistant" | "notice" | "question" | "tool" | "user";
|
|
324
|
+
text?: string;
|
|
325
|
+
question?: {
|
|
326
|
+
id: string;
|
|
327
|
+
prompts: ReadonlyArray<{
|
|
328
|
+
id: string;
|
|
329
|
+
toolCallId: string;
|
|
330
|
+
prompt: string;
|
|
331
|
+
kind?: string;
|
|
332
|
+
options?: ReadonlyArray<{
|
|
333
|
+
label: string;
|
|
334
|
+
value: string;
|
|
335
|
+
description?: string;
|
|
336
|
+
preview?: string;
|
|
337
|
+
}>;
|
|
338
|
+
header?: string;
|
|
339
|
+
secret?: boolean;
|
|
340
|
+
data?: {
|
|
341
|
+
readonly [key: string]: ReadonlyArray<Json> | boolean | number | string | {
|
|
342
|
+
readonly [key: string]: Json;
|
|
343
|
+
} | null;
|
|
344
|
+
};
|
|
345
|
+
approves?: string;
|
|
346
|
+
allowMultiple?: boolean;
|
|
347
|
+
allowFreeform?: boolean;
|
|
348
|
+
}>;
|
|
349
|
+
answered: boolean;
|
|
350
|
+
};
|
|
351
|
+
tool?: {
|
|
352
|
+
input: unknown;
|
|
353
|
+
state: "done" | "failed" | "refused" | "running";
|
|
354
|
+
name: string;
|
|
355
|
+
output?: unknown;
|
|
356
|
+
};
|
|
357
|
+
sender?: {
|
|
358
|
+
name: string;
|
|
359
|
+
threadId?: string;
|
|
360
|
+
};
|
|
361
|
+
}>;
|
|
362
|
+
readonly more: boolean;
|
|
363
|
+
readonly loaded: boolean;
|
|
364
|
+
readonly failure: string | null;
|
|
365
|
+
older: () => Promise<void>;
|
|
366
|
+
};
|
|
367
|
+
export declare const Frame: Component<{
|
|
368
|
+
src: string;
|
|
369
|
+
title: string;
|
|
370
|
+
height?: number | null;
|
|
371
|
+
fill?: boolean;
|
|
372
|
+
media?: boolean;
|
|
373
|
+
}, {}, "">;
|
|
374
|
+
export declare const Button: Component<HTMLButtonAttributes & {
|
|
375
|
+
ref?: HTMLElement | null;
|
|
376
|
+
} & HTMLAnchorAttributes & {
|
|
377
|
+
variant?: "confirm" | "default" | "destructive" | "ghost" | "link" | "outline" | "quiet" | "secondary";
|
|
378
|
+
size?: "default" | "icon" | "icon-sm" | "icon-xs" | "sm" | "xs";
|
|
379
|
+
}, {}, "ref">;
|
|
380
|
+
export declare const Input: Component<(Omit<HTMLInputAttributes, "type"> & {
|
|
381
|
+
type: "file";
|
|
382
|
+
files?: FileList;
|
|
383
|
+
} & {
|
|
384
|
+
ref?: HTMLElement | null;
|
|
385
|
+
}) | (Omit<HTMLInputAttributes, "type"> & {
|
|
386
|
+
type?: "button" | "checkbox" | "color" | "date" | "datetime-local" | "email" | "hidden" | "image" | "month" | "number" | "password" | "radio" | "range" | "reset" | "search" | "submit" | "tel" | "text" | "time" | "url" | "week" | (string & {});
|
|
387
|
+
files?: undefined;
|
|
388
|
+
} & {
|
|
389
|
+
ref?: HTMLElement | null;
|
|
390
|
+
}), {}, "files" | "ref" | "value">;
|
|
391
|
+
export declare const Textarea: Component<Omit<HTMLTextareaAttributes & {
|
|
392
|
+
ref?: HTMLElement | null;
|
|
393
|
+
}, "children">, {}, "ref" | "value">;
|
|
394
|
+
export declare const Tooltip: Component<{
|
|
395
|
+
text?: string | null;
|
|
396
|
+
keys?: string | null;
|
|
397
|
+
hints?: ReadonlyArray<{
|
|
398
|
+
readonly keys: string;
|
|
399
|
+
readonly words: string;
|
|
400
|
+
}>;
|
|
401
|
+
side?: "bottom" | "left" | "right" | "top";
|
|
402
|
+
delayMs?: number;
|
|
403
|
+
class?: Array<ClassArray | bigint | boolean | number | string | {
|
|
404
|
+
[key: string]: any;
|
|
405
|
+
} | null | undefined> | string | {
|
|
406
|
+
[key: string]: any;
|
|
407
|
+
};
|
|
408
|
+
style?: string;
|
|
409
|
+
children: Snippet;
|
|
410
|
+
} & Omit<HTMLAttributes<HTMLSpanElement>, "children" | "class" | "style">, {}, "">;
|
|
411
|
+
export declare const Kbd: Component<{
|
|
412
|
+
chord: string;
|
|
413
|
+
size?: "md" | "sm";
|
|
414
|
+
class?: Array<ClassArray | bigint | boolean | number | string | {
|
|
415
|
+
[key: string]: any;
|
|
416
|
+
} | null | undefined> | string | {
|
|
417
|
+
[key: string]: any;
|
|
418
|
+
};
|
|
419
|
+
}, {}, "">;
|
|
420
|
+
export declare const FadeText: Component<{
|
|
421
|
+
text?: string;
|
|
422
|
+
children?: Snippet;
|
|
423
|
+
fade?: "end" | "start";
|
|
424
|
+
} & Omit<HTMLAttributes<HTMLSpanElement>, "children">, {}, "">;
|
|
425
|
+
export declare const PathText: Component<{
|
|
426
|
+
path: string;
|
|
427
|
+
suffix?: string;
|
|
428
|
+
directory?: "after" | "before" | "none";
|
|
429
|
+
nameClass?: string;
|
|
430
|
+
directoryClass?: string;
|
|
431
|
+
onDirectory?: (() => void);
|
|
432
|
+
directoryTitle?: string;
|
|
433
|
+
piece?: Snippet<[
|
|
434
|
+
from: number,
|
|
435
|
+
to: number
|
|
436
|
+
]>;
|
|
437
|
+
} & Omit<HTMLAttributes<HTMLSpanElement>, "children">, {}, "">;
|
|
438
|
+
export declare const Glyph: Component<{
|
|
439
|
+
class?: string;
|
|
440
|
+
children: Snippet;
|
|
441
|
+
}, {}, "">;
|
|
442
|
+
export declare const TileMeter: Component<{
|
|
443
|
+
count: number;
|
|
444
|
+
lit: number;
|
|
445
|
+
fill?: string;
|
|
446
|
+
track?: "filled" | "none" | "outlined";
|
|
447
|
+
class?: Array<ClassArray | bigint | boolean | number | string | {
|
|
448
|
+
[key: string]: any;
|
|
449
|
+
} | null | undefined> | string | {
|
|
450
|
+
[key: string]: any;
|
|
451
|
+
};
|
|
452
|
+
}, {}, "">;
|
|
453
|
+
export declare namespace DropdownMenu {
|
|
454
|
+
const CheckboxItem: Component<(Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
|
|
455
|
+
checked?: boolean;
|
|
456
|
+
indeterminate?: boolean;
|
|
457
|
+
onCheckedChange?: ((checked: boolean) => void);
|
|
458
|
+
disabled?: boolean;
|
|
459
|
+
closeOnSelect?: boolean;
|
|
460
|
+
textValue?: string;
|
|
461
|
+
tail?: Snippet;
|
|
462
|
+
children?: Snippet;
|
|
463
|
+
} & {
|
|
464
|
+
readonly icon: Component<{
|
|
465
|
+
class?: string;
|
|
466
|
+
}>;
|
|
467
|
+
readonly lead?: undefined;
|
|
468
|
+
}) | (Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
|
|
469
|
+
checked?: boolean;
|
|
470
|
+
indeterminate?: boolean;
|
|
471
|
+
onCheckedChange?: ((checked: boolean) => void);
|
|
472
|
+
disabled?: boolean;
|
|
473
|
+
closeOnSelect?: boolean;
|
|
474
|
+
textValue?: string;
|
|
475
|
+
tail?: Snippet;
|
|
476
|
+
children?: Snippet;
|
|
477
|
+
} & {
|
|
478
|
+
readonly icon?: undefined;
|
|
479
|
+
readonly lead?: undefined;
|
|
480
|
+
}) | (Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
|
|
481
|
+
checked?: boolean;
|
|
482
|
+
indeterminate?: boolean;
|
|
483
|
+
onCheckedChange?: ((checked: boolean) => void);
|
|
484
|
+
disabled?: boolean;
|
|
485
|
+
closeOnSelect?: boolean;
|
|
486
|
+
textValue?: string;
|
|
487
|
+
tail?: Snippet;
|
|
488
|
+
children?: Snippet;
|
|
489
|
+
} & {
|
|
490
|
+
readonly lead: Snippet;
|
|
491
|
+
readonly icon?: undefined;
|
|
492
|
+
}), {}, "checked">;
|
|
493
|
+
const Content: Component<HTMLAttributes<HTMLDivElement> & {
|
|
494
|
+
readonly anchor?: HTMLElement | {
|
|
495
|
+
readonly x: number;
|
|
496
|
+
readonly y: number;
|
|
497
|
+
} | {
|
|
498
|
+
rect: () => {
|
|
499
|
+
readonly x: number;
|
|
500
|
+
readonly y: number;
|
|
501
|
+
readonly width: number;
|
|
502
|
+
readonly height: number;
|
|
503
|
+
};
|
|
504
|
+
readonly element: Element;
|
|
505
|
+
};
|
|
506
|
+
readonly returnFocus?: (() => HTMLElement | null) | false;
|
|
507
|
+
readonly dismissOnFocusOutside?: boolean;
|
|
508
|
+
readonly side?: "bottom" | "left" | "right" | "top";
|
|
509
|
+
readonly align?: "center" | "end" | "start";
|
|
510
|
+
readonly sideOffset?: number;
|
|
511
|
+
readonly alignOffset?: number;
|
|
512
|
+
readonly collisionPadding?: number | {
|
|
513
|
+
readonly top?: number;
|
|
514
|
+
readonly right?: number;
|
|
515
|
+
readonly bottom?: number;
|
|
516
|
+
readonly left?: number;
|
|
517
|
+
};
|
|
518
|
+
} & {
|
|
519
|
+
portal?: HTMLElement;
|
|
520
|
+
}, {}, "">;
|
|
521
|
+
const Group: Component<HTMLAttributes<HTMLDivElement>, {}, "">;
|
|
522
|
+
const GroupHeading: Component<Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
523
|
+
children?: Snippet;
|
|
524
|
+
}, {}, "">;
|
|
525
|
+
const Item: Component<(Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
|
|
526
|
+
readonly closeOnSelect?: boolean;
|
|
527
|
+
readonly onSelect?: ((event: Event) => void);
|
|
528
|
+
readonly disabled?: boolean;
|
|
529
|
+
readonly textValue?: string;
|
|
530
|
+
} & {
|
|
531
|
+
variant?: "default" | "destructive";
|
|
532
|
+
children?: Snippet;
|
|
533
|
+
} & {
|
|
534
|
+
readonly unstyled: true;
|
|
535
|
+
readonly icon?: undefined;
|
|
536
|
+
readonly lead?: undefined;
|
|
537
|
+
} & {} & {
|
|
538
|
+
tail?: undefined;
|
|
539
|
+
keys?: undefined;
|
|
540
|
+
hint?: undefined;
|
|
541
|
+
here?: undefined;
|
|
542
|
+
current?: undefined;
|
|
543
|
+
}) | (Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
|
|
544
|
+
readonly closeOnSelect?: boolean;
|
|
545
|
+
readonly onSelect?: ((event: Event) => void);
|
|
546
|
+
readonly disabled?: boolean;
|
|
547
|
+
readonly textValue?: string;
|
|
548
|
+
} & {
|
|
549
|
+
variant?: "default" | "destructive";
|
|
550
|
+
children?: Snippet;
|
|
551
|
+
} & {
|
|
552
|
+
unstyled?: false;
|
|
553
|
+
} & {
|
|
554
|
+
readonly icon: Component<{
|
|
555
|
+
class?: string;
|
|
556
|
+
}>;
|
|
557
|
+
readonly lead?: undefined;
|
|
558
|
+
} & {
|
|
559
|
+
current?: string | null;
|
|
560
|
+
} & {
|
|
561
|
+
tail?: undefined;
|
|
562
|
+
keys?: undefined;
|
|
563
|
+
hint?: undefined;
|
|
564
|
+
here?: undefined;
|
|
565
|
+
}) | (Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
|
|
566
|
+
readonly closeOnSelect?: boolean;
|
|
567
|
+
readonly onSelect?: ((event: Event) => void);
|
|
568
|
+
readonly disabled?: boolean;
|
|
569
|
+
readonly textValue?: string;
|
|
570
|
+
} & {
|
|
571
|
+
variant?: "default" | "destructive";
|
|
572
|
+
children?: Snippet;
|
|
573
|
+
} & {
|
|
574
|
+
unstyled?: false;
|
|
575
|
+
} & {
|
|
576
|
+
readonly icon: Component<{
|
|
577
|
+
class?: string;
|
|
578
|
+
}>;
|
|
579
|
+
readonly lead?: undefined;
|
|
580
|
+
} & {
|
|
581
|
+
here?: boolean;
|
|
582
|
+
} & {
|
|
583
|
+
tail?: undefined;
|
|
584
|
+
keys?: undefined;
|
|
585
|
+
hint?: undefined;
|
|
586
|
+
current?: undefined;
|
|
587
|
+
}) | (Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
|
|
588
|
+
readonly closeOnSelect?: boolean;
|
|
589
|
+
readonly onSelect?: ((event: Event) => void);
|
|
590
|
+
readonly disabled?: boolean;
|
|
591
|
+
readonly textValue?: string;
|
|
592
|
+
} & {
|
|
593
|
+
variant?: "default" | "destructive";
|
|
594
|
+
children?: Snippet;
|
|
595
|
+
} & {
|
|
596
|
+
unstyled?: false;
|
|
597
|
+
} & {
|
|
598
|
+
readonly icon: Component<{
|
|
599
|
+
class?: string;
|
|
600
|
+
}>;
|
|
601
|
+
readonly lead?: undefined;
|
|
602
|
+
} & {
|
|
603
|
+
hint?: string;
|
|
604
|
+
} & {
|
|
605
|
+
tail?: undefined;
|
|
606
|
+
keys?: undefined;
|
|
607
|
+
here?: undefined;
|
|
608
|
+
current?: undefined;
|
|
609
|
+
}) | (Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
|
|
610
|
+
readonly closeOnSelect?: boolean;
|
|
611
|
+
readonly onSelect?: ((event: Event) => void);
|
|
612
|
+
readonly disabled?: boolean;
|
|
613
|
+
readonly textValue?: string;
|
|
614
|
+
} & {
|
|
615
|
+
variant?: "default" | "destructive";
|
|
616
|
+
children?: Snippet;
|
|
617
|
+
} & {
|
|
618
|
+
unstyled?: false;
|
|
619
|
+
} & {
|
|
620
|
+
readonly icon: Component<{
|
|
621
|
+
class?: string;
|
|
622
|
+
}>;
|
|
623
|
+
readonly lead?: undefined;
|
|
624
|
+
} & {
|
|
625
|
+
keys?: string | null;
|
|
626
|
+
} & {
|
|
627
|
+
tail?: undefined;
|
|
628
|
+
hint?: undefined;
|
|
629
|
+
here?: undefined;
|
|
630
|
+
current?: undefined;
|
|
631
|
+
}) | (Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
|
|
632
|
+
readonly closeOnSelect?: boolean;
|
|
633
|
+
readonly onSelect?: ((event: Event) => void);
|
|
634
|
+
readonly disabled?: boolean;
|
|
635
|
+
readonly textValue?: string;
|
|
636
|
+
} & {
|
|
637
|
+
variant?: "default" | "destructive";
|
|
638
|
+
children?: Snippet;
|
|
639
|
+
} & {
|
|
640
|
+
unstyled?: false;
|
|
641
|
+
} & {
|
|
642
|
+
readonly icon: Component<{
|
|
643
|
+
class?: string;
|
|
644
|
+
}>;
|
|
645
|
+
readonly lead?: undefined;
|
|
646
|
+
} & {
|
|
647
|
+
tail?: Snippet;
|
|
648
|
+
} & {
|
|
649
|
+
keys?: undefined;
|
|
650
|
+
hint?: undefined;
|
|
651
|
+
here?: undefined;
|
|
652
|
+
current?: undefined;
|
|
653
|
+
}) | (Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
|
|
654
|
+
readonly closeOnSelect?: boolean;
|
|
655
|
+
readonly onSelect?: ((event: Event) => void);
|
|
656
|
+
readonly disabled?: boolean;
|
|
657
|
+
readonly textValue?: string;
|
|
658
|
+
} & {
|
|
659
|
+
variant?: "default" | "destructive";
|
|
660
|
+
children?: Snippet;
|
|
661
|
+
} & {
|
|
662
|
+
unstyled?: false;
|
|
663
|
+
} & {
|
|
664
|
+
readonly lead: Snippet;
|
|
665
|
+
readonly icon?: undefined;
|
|
666
|
+
} & {
|
|
667
|
+
current?: string | null;
|
|
668
|
+
} & {
|
|
669
|
+
tail?: undefined;
|
|
670
|
+
keys?: undefined;
|
|
671
|
+
hint?: undefined;
|
|
672
|
+
here?: undefined;
|
|
673
|
+
}) | (Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
|
|
674
|
+
readonly closeOnSelect?: boolean;
|
|
675
|
+
readonly onSelect?: ((event: Event) => void);
|
|
676
|
+
readonly disabled?: boolean;
|
|
677
|
+
readonly textValue?: string;
|
|
678
|
+
} & {
|
|
679
|
+
variant?: "default" | "destructive";
|
|
680
|
+
children?: Snippet;
|
|
681
|
+
} & {
|
|
682
|
+
unstyled?: false;
|
|
683
|
+
} & {
|
|
684
|
+
readonly lead: Snippet;
|
|
685
|
+
readonly icon?: undefined;
|
|
686
|
+
} & {
|
|
687
|
+
here?: boolean;
|
|
688
|
+
} & {
|
|
689
|
+
tail?: undefined;
|
|
690
|
+
keys?: undefined;
|
|
691
|
+
hint?: undefined;
|
|
692
|
+
current?: undefined;
|
|
693
|
+
}) | (Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
|
|
694
|
+
readonly closeOnSelect?: boolean;
|
|
695
|
+
readonly onSelect?: ((event: Event) => void);
|
|
696
|
+
readonly disabled?: boolean;
|
|
697
|
+
readonly textValue?: string;
|
|
698
|
+
} & {
|
|
699
|
+
variant?: "default" | "destructive";
|
|
700
|
+
children?: Snippet;
|
|
701
|
+
} & {
|
|
702
|
+
unstyled?: false;
|
|
703
|
+
} & {
|
|
704
|
+
readonly lead: Snippet;
|
|
705
|
+
readonly icon?: undefined;
|
|
706
|
+
} & {
|
|
707
|
+
hint?: string;
|
|
708
|
+
} & {
|
|
709
|
+
tail?: undefined;
|
|
710
|
+
keys?: undefined;
|
|
711
|
+
here?: undefined;
|
|
712
|
+
current?: undefined;
|
|
713
|
+
}) | (Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
|
|
714
|
+
readonly closeOnSelect?: boolean;
|
|
715
|
+
readonly onSelect?: ((event: Event) => void);
|
|
716
|
+
readonly disabled?: boolean;
|
|
717
|
+
readonly textValue?: string;
|
|
718
|
+
} & {
|
|
719
|
+
variant?: "default" | "destructive";
|
|
720
|
+
children?: Snippet;
|
|
721
|
+
} & {
|
|
722
|
+
unstyled?: false;
|
|
723
|
+
} & {
|
|
724
|
+
readonly lead: Snippet;
|
|
725
|
+
readonly icon?: undefined;
|
|
726
|
+
} & {
|
|
727
|
+
keys?: string | null;
|
|
728
|
+
} & {
|
|
729
|
+
tail?: undefined;
|
|
730
|
+
hint?: undefined;
|
|
731
|
+
here?: undefined;
|
|
732
|
+
current?: undefined;
|
|
733
|
+
}) | (Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
|
|
734
|
+
readonly closeOnSelect?: boolean;
|
|
735
|
+
readonly onSelect?: ((event: Event) => void);
|
|
736
|
+
readonly disabled?: boolean;
|
|
737
|
+
readonly textValue?: string;
|
|
738
|
+
} & {
|
|
739
|
+
variant?: "default" | "destructive";
|
|
740
|
+
children?: Snippet;
|
|
741
|
+
} & {
|
|
742
|
+
unstyled?: false;
|
|
743
|
+
} & {
|
|
744
|
+
readonly lead: Snippet;
|
|
745
|
+
readonly icon?: undefined;
|
|
746
|
+
} & {
|
|
747
|
+
tail?: Snippet;
|
|
748
|
+
} & {
|
|
749
|
+
keys?: undefined;
|
|
750
|
+
hint?: undefined;
|
|
751
|
+
here?: undefined;
|
|
752
|
+
current?: undefined;
|
|
753
|
+
}), {}, "">;
|
|
754
|
+
const Label: Component<Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
755
|
+
lead?: Snippet;
|
|
756
|
+
children?: Snippet;
|
|
757
|
+
}, {}, "">;
|
|
758
|
+
const Note: Component<Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
759
|
+
text?: string;
|
|
760
|
+
tone?: "destructive" | "muted";
|
|
761
|
+
children?: Snippet;
|
|
762
|
+
}, {}, "">;
|
|
763
|
+
const RadioGroup: Component<HTMLAttributes<HTMLDivElement> & {
|
|
764
|
+
value?: string;
|
|
765
|
+
onValueChange?: ((value: string) => void);
|
|
766
|
+
}, {}, "value">;
|
|
767
|
+
const RadioItem: Component<(Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
|
|
768
|
+
value: string;
|
|
769
|
+
disabled?: boolean;
|
|
770
|
+
closeOnSelect?: boolean;
|
|
771
|
+
textValue?: string;
|
|
772
|
+
unstyled?: boolean;
|
|
773
|
+
children?: Snippet;
|
|
774
|
+
} & {
|
|
775
|
+
readonly icon: Component<{
|
|
776
|
+
class?: string;
|
|
777
|
+
}>;
|
|
778
|
+
readonly lead?: undefined;
|
|
779
|
+
}) | (Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
|
|
780
|
+
value: string;
|
|
781
|
+
disabled?: boolean;
|
|
782
|
+
closeOnSelect?: boolean;
|
|
783
|
+
textValue?: string;
|
|
784
|
+
unstyled?: boolean;
|
|
785
|
+
children?: Snippet;
|
|
786
|
+
} & {
|
|
787
|
+
readonly icon?: undefined;
|
|
788
|
+
readonly lead?: undefined;
|
|
789
|
+
}) | (Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
|
|
790
|
+
value: string;
|
|
791
|
+
disabled?: boolean;
|
|
792
|
+
closeOnSelect?: boolean;
|
|
793
|
+
textValue?: string;
|
|
794
|
+
unstyled?: boolean;
|
|
795
|
+
children?: Snippet;
|
|
796
|
+
} & {
|
|
797
|
+
readonly lead: Snippet;
|
|
798
|
+
readonly icon?: undefined;
|
|
799
|
+
}), {}, "">;
|
|
800
|
+
const Root: Component<{
|
|
801
|
+
open?: boolean;
|
|
802
|
+
onOpenChange?: ((open: boolean) => void);
|
|
803
|
+
children: Snippet;
|
|
804
|
+
}, {}, "open">;
|
|
805
|
+
const Separator: Component<HTMLAttributes<HTMLDivElement> & {
|
|
806
|
+
unstyled?: boolean;
|
|
807
|
+
}, {}, "">;
|
|
808
|
+
const Sub: Component<{
|
|
809
|
+
open?: boolean;
|
|
810
|
+
onOpenChange?: ((open: boolean) => void);
|
|
811
|
+
children: Snippet;
|
|
812
|
+
}, {}, "open">;
|
|
813
|
+
const SubContent: Component<HTMLAttributes<HTMLDivElement> & {
|
|
814
|
+
readonly side?: "bottom" | "left" | "right" | "top";
|
|
815
|
+
readonly align?: "center" | "end" | "start";
|
|
816
|
+
readonly sideOffset?: number;
|
|
817
|
+
readonly alignOffset?: number;
|
|
818
|
+
readonly collisionPadding?: number | {
|
|
819
|
+
readonly top?: number;
|
|
820
|
+
readonly right?: number;
|
|
821
|
+
readonly bottom?: number;
|
|
822
|
+
readonly left?: number;
|
|
823
|
+
};
|
|
824
|
+
}, {}, "">;
|
|
825
|
+
const SubTrigger: Component<(Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
|
|
826
|
+
disabled?: boolean;
|
|
827
|
+
textValue?: string;
|
|
828
|
+
children?: Snippet;
|
|
829
|
+
} & {
|
|
830
|
+
unstyled: true;
|
|
831
|
+
icon?: undefined;
|
|
832
|
+
lead?: undefined;
|
|
833
|
+
current?: undefined;
|
|
834
|
+
}) | (Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
|
|
835
|
+
disabled?: boolean;
|
|
836
|
+
textValue?: string;
|
|
837
|
+
children?: Snippet;
|
|
838
|
+
} & {
|
|
839
|
+
unstyled?: false;
|
|
840
|
+
current?: string | null;
|
|
841
|
+
} & {
|
|
842
|
+
readonly icon: Component<{
|
|
843
|
+
class?: string;
|
|
844
|
+
}>;
|
|
845
|
+
readonly lead?: undefined;
|
|
846
|
+
}) | (Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
|
|
847
|
+
disabled?: boolean;
|
|
848
|
+
textValue?: string;
|
|
849
|
+
children?: Snippet;
|
|
850
|
+
} & {
|
|
851
|
+
unstyled?: false;
|
|
852
|
+
current?: string | null;
|
|
853
|
+
} & {
|
|
854
|
+
readonly lead: Snippet;
|
|
855
|
+
readonly icon?: undefined;
|
|
856
|
+
}), {}, "">;
|
|
857
|
+
const Trigger: Component<HTMLButtonAttributes, {}, "">;
|
|
858
|
+
}
|
|
859
|
+
export declare namespace Dialog {
|
|
860
|
+
const Root: Component<{
|
|
861
|
+
open?: boolean;
|
|
862
|
+
interactOutsideBehavior?: "close" | "ignore";
|
|
863
|
+
escapeKeydownBehavior?: "close" | "ignore";
|
|
864
|
+
motion?: {
|
|
865
|
+
overlay?: {
|
|
866
|
+
durationMs?: number;
|
|
867
|
+
easing?: ((t: number) => number);
|
|
868
|
+
};
|
|
869
|
+
content?: {
|
|
870
|
+
variant?: "scale" | "sheet";
|
|
871
|
+
durationMs?: number;
|
|
872
|
+
easing?: ((t: number) => number);
|
|
873
|
+
startScale?: number;
|
|
874
|
+
startOpacity?: number;
|
|
875
|
+
startYpx?: number;
|
|
876
|
+
startXPercent?: number;
|
|
877
|
+
startYPercent?: number;
|
|
878
|
+
startInlinePercent?: number;
|
|
879
|
+
};
|
|
880
|
+
};
|
|
881
|
+
overlayKey?: string;
|
|
882
|
+
announced?: boolean;
|
|
883
|
+
onOpenChange?: ((open: boolean) => void);
|
|
884
|
+
onEscapeIgnored?: (() => void);
|
|
885
|
+
children: Snippet;
|
|
886
|
+
}, {}, "open">;
|
|
887
|
+
const Title: Component<HTMLAttributes<HTMLHeadingElement> & {
|
|
888
|
+
children: Snippet;
|
|
889
|
+
}, {}, "">;
|
|
890
|
+
const Portal: Component<{
|
|
891
|
+
disabled?: boolean;
|
|
892
|
+
target?: HTMLElement;
|
|
893
|
+
children: Snippet;
|
|
894
|
+
}, {}, "">;
|
|
895
|
+
const Footer: Component<HTMLAttributes<HTMLDivElement> & {
|
|
896
|
+
ref?: HTMLElement | null;
|
|
897
|
+
} & {
|
|
898
|
+
showCloseButton?: boolean;
|
|
899
|
+
}, {}, "ref">;
|
|
900
|
+
const Header: Component<HTMLAttributes<HTMLDivElement> & {
|
|
901
|
+
ref?: HTMLElement | null;
|
|
902
|
+
}, {}, "ref">;
|
|
903
|
+
const Trigger: Component<HTMLButtonAttributes & {
|
|
904
|
+
ref?: HTMLButtonElement | null;
|
|
905
|
+
children?: Snippet;
|
|
906
|
+
}, {}, "ref">;
|
|
907
|
+
const Overlay: Component<HTMLAttributes<HTMLDivElement> & {
|
|
908
|
+
ref?: HTMLDivElement | null;
|
|
909
|
+
}, {}, "ref">;
|
|
910
|
+
const Content: Component<HTMLAttributes<HTMLDivElement> & {
|
|
911
|
+
ref?: HTMLDivElement | null;
|
|
912
|
+
children: Snippet;
|
|
913
|
+
motion?: {
|
|
914
|
+
variant?: "scale" | "sheet";
|
|
915
|
+
durationMs?: number;
|
|
916
|
+
easing?: ((t: number) => number);
|
|
917
|
+
startScale?: number;
|
|
918
|
+
startOpacity?: number;
|
|
919
|
+
startYpx?: number;
|
|
920
|
+
startXPercent?: number;
|
|
921
|
+
startYPercent?: number;
|
|
922
|
+
startInlinePercent?: number;
|
|
923
|
+
};
|
|
924
|
+
onCloseComplete?: (() => void);
|
|
925
|
+
onPresent?: (() => void);
|
|
926
|
+
role?: "alertdialog" | "dialog";
|
|
927
|
+
} & {
|
|
928
|
+
portalProps?: {
|
|
929
|
+
disabled?: boolean;
|
|
930
|
+
target?: HTMLElement;
|
|
931
|
+
children: Snippet;
|
|
932
|
+
};
|
|
933
|
+
children: Snippet;
|
|
934
|
+
showCloseButton?: boolean;
|
|
935
|
+
}, {}, "ref">;
|
|
936
|
+
const Description: Component<HTMLAttributes<HTMLParagraphElement> & {
|
|
937
|
+
children: Snippet;
|
|
938
|
+
}, {}, "">;
|
|
939
|
+
const Close: Component<Omit<HTMLButtonAttributes, "onclick"> & {
|
|
940
|
+
onclick?: ((event: MouseEvent) => void);
|
|
941
|
+
child?: Snippet<[
|
|
942
|
+
{
|
|
943
|
+
props: Record<string, unknown>;
|
|
944
|
+
}
|
|
945
|
+
]>;
|
|
946
|
+
children?: Snippet;
|
|
947
|
+
dataSlot?: string;
|
|
948
|
+
}, {}, "">;
|
|
949
|
+
const Dialog: Component<{
|
|
950
|
+
open?: boolean;
|
|
951
|
+
interactOutsideBehavior?: "close" | "ignore";
|
|
952
|
+
escapeKeydownBehavior?: "close" | "ignore";
|
|
953
|
+
motion?: {
|
|
954
|
+
overlay?: {
|
|
955
|
+
durationMs?: number;
|
|
956
|
+
easing?: ((t: number) => number);
|
|
957
|
+
};
|
|
958
|
+
content?: {
|
|
959
|
+
variant?: "scale" | "sheet";
|
|
960
|
+
durationMs?: number;
|
|
961
|
+
easing?: ((t: number) => number);
|
|
962
|
+
startScale?: number;
|
|
963
|
+
startOpacity?: number;
|
|
964
|
+
startYpx?: number;
|
|
965
|
+
startXPercent?: number;
|
|
966
|
+
startYPercent?: number;
|
|
967
|
+
startInlinePercent?: number;
|
|
968
|
+
};
|
|
969
|
+
};
|
|
970
|
+
overlayKey?: string;
|
|
971
|
+
announced?: boolean;
|
|
972
|
+
onOpenChange?: ((open: boolean) => void);
|
|
973
|
+
onEscapeIgnored?: (() => void);
|
|
974
|
+
children: Snippet;
|
|
975
|
+
}, {}, "open">;
|
|
976
|
+
const DialogTitle: Component<HTMLAttributes<HTMLHeadingElement> & {
|
|
977
|
+
children: Snippet;
|
|
978
|
+
}, {}, "">;
|
|
979
|
+
const DialogPortal: Component<{
|
|
980
|
+
disabled?: boolean;
|
|
981
|
+
target?: HTMLElement;
|
|
982
|
+
children: Snippet;
|
|
983
|
+
}, {}, "">;
|
|
984
|
+
const DialogFooter: Component<HTMLAttributes<HTMLDivElement> & {
|
|
985
|
+
ref?: HTMLElement | null;
|
|
986
|
+
} & {
|
|
987
|
+
showCloseButton?: boolean;
|
|
988
|
+
}, {}, "ref">;
|
|
989
|
+
const DialogHeader: Component<HTMLAttributes<HTMLDivElement> & {
|
|
990
|
+
ref?: HTMLElement | null;
|
|
991
|
+
}, {}, "ref">;
|
|
992
|
+
const DialogTrigger: Component<HTMLButtonAttributes & {
|
|
993
|
+
ref?: HTMLButtonElement | null;
|
|
994
|
+
children?: Snippet;
|
|
995
|
+
}, {}, "ref">;
|
|
996
|
+
const DialogOverlay: Component<HTMLAttributes<HTMLDivElement> & {
|
|
997
|
+
ref?: HTMLDivElement | null;
|
|
998
|
+
}, {}, "ref">;
|
|
999
|
+
const DialogContent: Component<HTMLAttributes<HTMLDivElement> & {
|
|
1000
|
+
ref?: HTMLDivElement | null;
|
|
1001
|
+
children: Snippet;
|
|
1002
|
+
motion?: {
|
|
1003
|
+
variant?: "scale" | "sheet";
|
|
1004
|
+
durationMs?: number;
|
|
1005
|
+
easing?: ((t: number) => number);
|
|
1006
|
+
startScale?: number;
|
|
1007
|
+
startOpacity?: number;
|
|
1008
|
+
startYpx?: number;
|
|
1009
|
+
startXPercent?: number;
|
|
1010
|
+
startYPercent?: number;
|
|
1011
|
+
startInlinePercent?: number;
|
|
1012
|
+
};
|
|
1013
|
+
onCloseComplete?: (() => void);
|
|
1014
|
+
onPresent?: (() => void);
|
|
1015
|
+
role?: "alertdialog" | "dialog";
|
|
1016
|
+
} & {
|
|
1017
|
+
portalProps?: {
|
|
1018
|
+
disabled?: boolean;
|
|
1019
|
+
target?: HTMLElement;
|
|
1020
|
+
children: Snippet;
|
|
1021
|
+
};
|
|
1022
|
+
children: Snippet;
|
|
1023
|
+
showCloseButton?: boolean;
|
|
1024
|
+
}, {}, "ref">;
|
|
1025
|
+
const DialogDescription: Component<HTMLAttributes<HTMLParagraphElement> & {
|
|
1026
|
+
children: Snippet;
|
|
1027
|
+
}, {}, "">;
|
|
1028
|
+
const DialogClose: Component<Omit<HTMLButtonAttributes, "onclick"> & {
|
|
1029
|
+
onclick?: ((event: MouseEvent) => void);
|
|
1030
|
+
child?: Snippet<[
|
|
1031
|
+
{
|
|
1032
|
+
props: Record<string, unknown>;
|
|
1033
|
+
}
|
|
1034
|
+
]>;
|
|
1035
|
+
children?: Snippet;
|
|
1036
|
+
dataSlot?: string;
|
|
1037
|
+
}, {}, "">;
|
|
1038
|
+
}
|
|
1039
|
+
type Json = ReadonlyArray<Json> | boolean | number | string | {
|
|
1040
|
+
readonly [key: string]: Json;
|
|
1041
|
+
} | null;
|
|
1042
|
+
type ClassArray = Array<ClassArray | bigint | boolean | number | string | {
|
|
1043
|
+
[key: string]: any;
|
|
1044
|
+
} | null | undefined>;
|