@dudko.dev/agent-web-ui 0.0.1 → 0.0.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/README.md +94 -3
- package/dist/canvas.cjs +0 -1
- package/dist/canvas.js +1 -2
- package/dist/{chunk-EL2YCROY.js → chunk-D64VLIRY.js} +0 -1
- package/dist/chunk-G7LQTOA2.js +1439 -0
- package/dist/{chunk-4EHUITGU.js → chunk-S5AHUAFG.js} +6 -1
- package/dist/{chunk-7O64ZI6Z.js → chunk-TJBGZM6D.js} +0 -1
- package/dist/{chunk-P2F2P3JC.js → chunk-UNIXGP4N.js} +6 -1
- package/dist/{chunk-A55Q377T.js → chunk-V33T6VX3.js} +6 -1
- package/dist/{chunk-TPK25QGK.js → chunk-VZCQXE3P.js} +6 -1
- package/dist/{chunk-GB7RZJMG.js → chunk-WEYQMUKY.js} +0 -1
- package/dist/{chunk-KZQB35LS.js → chunk-Y6QYUFSC.js} +0 -1
- package/dist/controller.cjs +1890 -0
- package/dist/controller.d.cts +253 -0
- package/dist/controller.d.ts +253 -0
- package/dist/controller.js +481 -0
- package/dist/{en-CcNUz2tN.d.ts → en-Dg2MtzcJ.d.cts} +6 -0
- package/dist/{en-CcNUz2tN.d.cts → en-Dg2MtzcJ.d.ts} +6 -0
- package/dist/index.cjs +133 -1
- package/dist/index.d.cts +82 -4
- package/dist/index.d.ts +82 -4
- package/dist/index.js +144 -1422
- package/dist/{labels-UuWI7wPo.d.ts → labels-CmiTBLWD.d.cts} +68 -100
- package/dist/{labels-D5BrHct4.d.cts → labels-DH1ESUtm.d.ts} +68 -100
- package/dist/locales/be.cjs +12 -1
- package/dist/locales/be.d.cts +4 -2
- package/dist/locales/be.d.ts +4 -2
- package/dist/locales/be.js +7 -2
- package/dist/locales/bg.cjs +12 -1
- package/dist/locales/bg.d.cts +4 -2
- package/dist/locales/bg.d.ts +4 -2
- package/dist/locales/bg.js +7 -2
- package/dist/locales/ca.cjs +12 -1
- package/dist/locales/ca.d.cts +4 -2
- package/dist/locales/ca.d.ts +4 -2
- package/dist/locales/ca.js +7 -2
- package/dist/locales/cs.cjs +12 -1
- package/dist/locales/cs.d.cts +4 -2
- package/dist/locales/cs.d.ts +4 -2
- package/dist/locales/cs.js +7 -2
- package/dist/locales/da.cjs +12 -1
- package/dist/locales/da.d.cts +4 -2
- package/dist/locales/da.d.ts +4 -2
- package/dist/locales/da.js +7 -2
- package/dist/locales/de.cjs +12 -1
- package/dist/locales/de.d.cts +4 -2
- package/dist/locales/de.d.ts +4 -2
- package/dist/locales/de.js +7 -2
- package/dist/locales/el.cjs +12 -1
- package/dist/locales/el.d.cts +4 -2
- package/dist/locales/el.d.ts +4 -2
- package/dist/locales/el.js +7 -2
- package/dist/locales/en.cjs +12 -1
- package/dist/locales/en.d.cts +4 -2
- package/dist/locales/en.d.ts +4 -2
- package/dist/locales/en.js +7 -2
- package/dist/locales/es-419.cjs +16 -2
- package/dist/locales/es-419.d.cts +4 -2
- package/dist/locales/es-419.d.ts +4 -2
- package/dist/locales/es-419.js +6 -4
- package/dist/locales/es.cjs +12 -1
- package/dist/locales/es.d.cts +4 -2
- package/dist/locales/es.d.ts +4 -2
- package/dist/locales/es.js +2 -3
- package/dist/locales/fi.cjs +12 -1
- package/dist/locales/fi.d.cts +4 -2
- package/dist/locales/fi.d.ts +4 -2
- package/dist/locales/fi.js +7 -2
- package/dist/locales/fr-CA.cjs +12 -1
- package/dist/locales/fr-CA.d.cts +4 -2
- package/dist/locales/fr-CA.d.ts +4 -2
- package/dist/locales/fr-CA.js +2 -3
- package/dist/locales/fr.cjs +12 -1
- package/dist/locales/fr.d.cts +4 -2
- package/dist/locales/fr.d.ts +4 -2
- package/dist/locales/fr.js +2 -3
- package/dist/locales/gn.cjs +12 -1
- package/dist/locales/gn.d.cts +4 -2
- package/dist/locales/gn.d.ts +4 -2
- package/dist/locales/gn.js +7 -2
- package/dist/locales/hr.cjs +12 -1
- package/dist/locales/hr.d.cts +4 -2
- package/dist/locales/hr.d.ts +4 -2
- package/dist/locales/hr.js +7 -2
- package/dist/locales/ht.cjs +12 -1
- package/dist/locales/ht.d.cts +4 -2
- package/dist/locales/ht.d.ts +4 -2
- package/dist/locales/ht.js +7 -2
- package/dist/locales/hu.cjs +12 -1
- package/dist/locales/hu.d.cts +4 -2
- package/dist/locales/hu.d.ts +4 -2
- package/dist/locales/hu.js +7 -2
- package/dist/locales/index.cjs +6 -1
- package/dist/locales/index.d.cts +6 -4
- package/dist/locales/index.d.ts +6 -4
- package/dist/locales/index.js +1 -2
- package/dist/locales/it.cjs +12 -1
- package/dist/locales/it.d.cts +4 -2
- package/dist/locales/it.d.ts +4 -2
- package/dist/locales/it.js +7 -2
- package/dist/locales/nb.cjs +12 -1
- package/dist/locales/nb.d.cts +4 -2
- package/dist/locales/nb.d.ts +4 -2
- package/dist/locales/nb.js +7 -2
- package/dist/locales/nl.cjs +12 -1
- package/dist/locales/nl.d.cts +4 -2
- package/dist/locales/nl.d.ts +4 -2
- package/dist/locales/nl.js +7 -2
- package/dist/locales/pl.cjs +12 -1
- package/dist/locales/pl.d.cts +4 -2
- package/dist/locales/pl.d.ts +4 -2
- package/dist/locales/pl.js +7 -2
- package/dist/locales/pt-BR.cjs +12 -1
- package/dist/locales/pt-BR.d.cts +4 -2
- package/dist/locales/pt-BR.d.ts +4 -2
- package/dist/locales/pt-BR.js +7 -2
- package/dist/locales/pt.cjs +12 -1
- package/dist/locales/pt.d.cts +4 -2
- package/dist/locales/pt.d.ts +4 -2
- package/dist/locales/pt.js +7 -2
- package/dist/locales/qu.cjs +12 -1
- package/dist/locales/qu.d.cts +4 -2
- package/dist/locales/qu.d.ts +4 -2
- package/dist/locales/qu.js +7 -2
- package/dist/locales/ro.cjs +12 -1
- package/dist/locales/ro.d.cts +4 -2
- package/dist/locales/ro.d.ts +4 -2
- package/dist/locales/ro.js +7 -2
- package/dist/locales/ru.cjs +12 -1
- package/dist/locales/ru.d.cts +4 -2
- package/dist/locales/ru.d.ts +4 -2
- package/dist/locales/ru.js +7 -2
- package/dist/locales/sk.cjs +12 -1
- package/dist/locales/sk.d.cts +4 -2
- package/dist/locales/sk.d.ts +4 -2
- package/dist/locales/sk.js +7 -2
- package/dist/locales/sq.cjs +12 -1
- package/dist/locales/sq.d.cts +4 -2
- package/dist/locales/sq.d.ts +4 -2
- package/dist/locales/sq.js +7 -2
- package/dist/locales/sr-Latn.cjs +12 -1
- package/dist/locales/sr-Latn.d.cts +4 -2
- package/dist/locales/sr-Latn.d.ts +4 -2
- package/dist/locales/sr-Latn.js +2 -3
- package/dist/locales/sr.cjs +12 -1
- package/dist/locales/sr.d.cts +4 -2
- package/dist/locales/sr.d.ts +4 -2
- package/dist/locales/sr.js +2 -3
- package/dist/locales/sv.cjs +12 -1
- package/dist/locales/sv.d.cts +4 -2
- package/dist/locales/sv.d.ts +4 -2
- package/dist/locales/sv.js +7 -2
- package/dist/locales/tr.cjs +12 -1
- package/dist/locales/tr.d.cts +4 -2
- package/dist/locales/tr.d.ts +4 -2
- package/dist/locales/tr.js +7 -2
- package/dist/locales/uk.cjs +12 -1
- package/dist/locales/uk.d.cts +4 -2
- package/dist/locales/uk.d.ts +4 -2
- package/dist/locales/uk.js +7 -2
- package/dist/markdown.cjs +0 -1
- package/dist/markdown.js +1 -2
- package/dist/mcp-app-sandbox.cjs +0 -1
- package/dist/mcp-app-sandbox.js +1 -2
- package/dist/mcp-app.cjs +0 -1
- package/dist/mcp-app.d.cts +491 -3
- package/dist/mcp-app.d.ts +491 -3
- package/dist/mcp-app.js +2 -3
- package/dist/pipeline.cjs +0 -1
- package/dist/pipeline.js +1 -2
- package/dist/questions-Dw--IEjT.d.cts +100 -0
- package/dist/questions-Dw--IEjT.d.ts +100 -0
- package/dist/{types-BmvgYUzF.d.cts → types-CQquuZpl.d.cts} +1 -1
- package/dist/{types-Cr5gmUts.d.ts → types-CXZfZVP5.d.ts} +1 -1
- package/dist/{mcp-app-entry-BA-Ca39z.d.ts → types-DnBCok3z.d.cts} +2 -488
- package/dist/{mcp-app-entry-tybABaHg.d.cts → types-DnBCok3z.d.ts} +2 -488
- package/package.json +13 -3
- package/dist/canvas.cjs.map +0 -1
- package/dist/canvas.js.map +0 -1
- package/dist/chunk-4EHUITGU.js.map +0 -1
- package/dist/chunk-7O64ZI6Z.js.map +0 -1
- package/dist/chunk-A55Q377T.js.map +0 -1
- package/dist/chunk-EL2YCROY.js.map +0 -1
- package/dist/chunk-GB7RZJMG.js.map +0 -1
- package/dist/chunk-KZQB35LS.js.map +0 -1
- package/dist/chunk-P2F2P3JC.js.map +0 -1
- package/dist/chunk-TPK25QGK.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/locales/be.cjs.map +0 -1
- package/dist/locales/be.js.map +0 -1
- package/dist/locales/bg.cjs.map +0 -1
- package/dist/locales/bg.js.map +0 -1
- package/dist/locales/ca.cjs.map +0 -1
- package/dist/locales/ca.js.map +0 -1
- package/dist/locales/cs.cjs.map +0 -1
- package/dist/locales/cs.js.map +0 -1
- package/dist/locales/da.cjs.map +0 -1
- package/dist/locales/da.js.map +0 -1
- package/dist/locales/de.cjs.map +0 -1
- package/dist/locales/de.js.map +0 -1
- package/dist/locales/el.cjs.map +0 -1
- package/dist/locales/el.js.map +0 -1
- package/dist/locales/en.cjs.map +0 -1
- package/dist/locales/en.js.map +0 -1
- package/dist/locales/es-419.cjs.map +0 -1
- package/dist/locales/es-419.js.map +0 -1
- package/dist/locales/es.cjs.map +0 -1
- package/dist/locales/es.js.map +0 -1
- package/dist/locales/fi.cjs.map +0 -1
- package/dist/locales/fi.js.map +0 -1
- package/dist/locales/fr-CA.cjs.map +0 -1
- package/dist/locales/fr-CA.js.map +0 -1
- package/dist/locales/fr.cjs.map +0 -1
- package/dist/locales/fr.js.map +0 -1
- package/dist/locales/gn.cjs.map +0 -1
- package/dist/locales/gn.js.map +0 -1
- package/dist/locales/hr.cjs.map +0 -1
- package/dist/locales/hr.js.map +0 -1
- package/dist/locales/ht.cjs.map +0 -1
- package/dist/locales/ht.js.map +0 -1
- package/dist/locales/hu.cjs.map +0 -1
- package/dist/locales/hu.js.map +0 -1
- package/dist/locales/index.cjs.map +0 -1
- package/dist/locales/index.js.map +0 -1
- package/dist/locales/it.cjs.map +0 -1
- package/dist/locales/it.js.map +0 -1
- package/dist/locales/nb.cjs.map +0 -1
- package/dist/locales/nb.js.map +0 -1
- package/dist/locales/nl.cjs.map +0 -1
- package/dist/locales/nl.js.map +0 -1
- package/dist/locales/pl.cjs.map +0 -1
- package/dist/locales/pl.js.map +0 -1
- package/dist/locales/pt-BR.cjs.map +0 -1
- package/dist/locales/pt-BR.js.map +0 -1
- package/dist/locales/pt.cjs.map +0 -1
- package/dist/locales/pt.js.map +0 -1
- package/dist/locales/qu.cjs.map +0 -1
- package/dist/locales/qu.js.map +0 -1
- package/dist/locales/ro.cjs.map +0 -1
- package/dist/locales/ro.js.map +0 -1
- package/dist/locales/ru.cjs.map +0 -1
- package/dist/locales/ru.js.map +0 -1
- package/dist/locales/sk.cjs.map +0 -1
- package/dist/locales/sk.js.map +0 -1
- package/dist/locales/sq.cjs.map +0 -1
- package/dist/locales/sq.js.map +0 -1
- package/dist/locales/sr-Latn.cjs.map +0 -1
- package/dist/locales/sr-Latn.js.map +0 -1
- package/dist/locales/sr.cjs.map +0 -1
- package/dist/locales/sr.js.map +0 -1
- package/dist/locales/sv.cjs.map +0 -1
- package/dist/locales/sv.js.map +0 -1
- package/dist/locales/tr.cjs.map +0 -1
- package/dist/locales/tr.js.map +0 -1
- package/dist/locales/uk.cjs.map +0 -1
- package/dist/locales/uk.js.map +0 -1
- package/dist/markdown.cjs.map +0 -1
- package/dist/markdown.js.map +0 -1
- package/dist/mcp-app-sandbox.cjs.map +0 -1
- package/dist/mcp-app-sandbox.js.map +0 -1
- package/dist/mcp-app.cjs.map +0 -1
- package/dist/mcp-app.js.map +0 -1
- package/dist/pipeline.cjs.map +0 -1
- package/dist/pipeline.js.map +0 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as AgentUiState, M as McpElicitationFieldSchema,
|
|
1
|
+
import { ToolApprovalMode, ModelTier, TierReason, EscalationReason, DecisionFallbackReason } from '@dudko.dev/agent-web';
|
|
2
|
+
import { A as AgentUiState, M as McpElicitationFieldSchema, c as McpElicitationHandler, d as McpElicitationRequest, e as McpElicitationResult, f as McpElicitationOptions, g as McpElicitationSchema, h as AgentStatus } from './types-DnBCok3z.cjs';
|
|
3
|
+
import { McpAppSandboxReason } from './mcp-app.cjs';
|
|
4
|
+
import { Q as QuestionOutcomeReason } from './questions-Dw--IEjT.cjs';
|
|
3
5
|
|
|
4
6
|
/**
|
|
5
7
|
* Pure helpers behind `<AgentComposer>`: slash commands, attachments, notices
|
|
@@ -49,6 +51,56 @@ declare const steerIntent: (input: {
|
|
|
49
51
|
steering: boolean;
|
|
50
52
|
hasAttachments: boolean;
|
|
51
53
|
}) => SteerIntent;
|
|
54
|
+
/** What a send (Enter or the Send button) does when the agent is not working (see {@link notReadyIntent}). */
|
|
55
|
+
type NotReadyIntent =
|
|
56
|
+
/** The agent is ready: send now. */
|
|
57
|
+
'send'
|
|
58
|
+
/** The agent is starting: remember the send and make it when the agent is ready. */
|
|
59
|
+
| 'wait'
|
|
60
|
+
/** The send cannot go and is not remembered: say why ({@link NotReadyReason}), keep the text. */
|
|
61
|
+
| 'refuse'
|
|
62
|
+
/** Nothing to send (an empty box): nothing happens, as before. */
|
|
63
|
+
| 'ignore';
|
|
64
|
+
/** Why a send cannot go now. */
|
|
65
|
+
type NotReadyReason =
|
|
66
|
+
/** The host turned the composer off (`disabled`). */
|
|
67
|
+
'disabled'
|
|
68
|
+
/** The agent could not be built (`status === 'error'`). */
|
|
69
|
+
| 'failed'
|
|
70
|
+
/** There is no agent: nothing is being built (no model yet, say). */
|
|
71
|
+
| 'unavailable';
|
|
72
|
+
/** What decides {@link notReadyIntent} and {@link waitingSendStep}. */
|
|
73
|
+
interface NotReadyInput {
|
|
74
|
+
/** The agent's status as the composer shows it (`useAgent().status`). */
|
|
75
|
+
status: AgentUiState['status'];
|
|
76
|
+
/** The agent can take a run now (`useAgent().isReady`). */
|
|
77
|
+
ready: boolean;
|
|
78
|
+
/** The host turned the composer off. */
|
|
79
|
+
disabled: boolean;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Decide what a send means when the agent is not working: a ready agent takes it now; one that
|
|
83
|
+
* is starting takes it when it is ready (the composer remembers it, keeping the text in the box);
|
|
84
|
+
* every other state refuses it out loud - never a send that does nothing and says nothing.
|
|
85
|
+
* A run that goes on is {@link steerIntent}'s, decided before this.
|
|
86
|
+
*/
|
|
87
|
+
declare const notReadyIntent: (input: NotReadyInput & {
|
|
88
|
+
hasContent: boolean;
|
|
89
|
+
}) => NotReadyIntent;
|
|
90
|
+
/** Why a send is refused now (the words of the notice). */
|
|
91
|
+
declare const notReadyReason: (input: Pick<NotReadyInput, "status" | "disabled">) => NotReadyReason;
|
|
92
|
+
/** What becomes of a remembered send as the agent's state changes. */
|
|
93
|
+
type WaitingSendStep =
|
|
94
|
+
/** Still starting (or another tab's run holds the conversation): keep waiting. */
|
|
95
|
+
'wait'
|
|
96
|
+
/** Ready: send what is in the box now. */
|
|
97
|
+
| 'send'
|
|
98
|
+
/** The agent could not start: the wait ends, nothing is sent, the text stays. */
|
|
99
|
+
| 'failed'
|
|
100
|
+
/** Anything else (turned off, no agent any more): the wait ends, nothing is sent. */
|
|
101
|
+
| 'stop';
|
|
102
|
+
/** Where a remembered send stands now (see {@link notReadyIntent}). */
|
|
103
|
+
declare const waitingSendStep: (input: NotReadyInput) => WaitingSendStep;
|
|
52
104
|
/** Commands matching what was typed after "/" — name prefix first, then substring. */
|
|
53
105
|
declare const filterCommands: (commands: SlashCommand[], query: string) => SlashCommand[];
|
|
54
106
|
/**
|
|
@@ -520,102 +572,6 @@ declare const fileKindOf: (path: string, mediaType: string) => FileKind;
|
|
|
520
572
|
/** The last segment of a path: what a chip is called and what a download is saved as. */
|
|
521
573
|
declare const fileNameOf: (path: string) => string;
|
|
522
574
|
|
|
523
|
-
/**
|
|
524
|
-
* The model asks the person ONE closed question (the core's `ask_user`, `config.askUser`): the
|
|
525
|
-
* part of it that is not React - the queue the hook hands the core as `askUser.onQuestion`, the
|
|
526
|
-
* answer a prompt builds, and what of a question's tool result may be kept.
|
|
527
|
-
*
|
|
528
|
-
* Pure: no React, no clock of its own (the queue takes `now`), no import of the core at run time
|
|
529
|
-
* (types only), so the main entry still loads next to an older core.
|
|
530
|
-
*
|
|
531
|
-
* Nothing here keeps, logs or returns what the person typed (`{ other }`) except to the one caller
|
|
532
|
-
* that hands it to the core: the queue passes an answer straight to the core's resolver, and
|
|
533
|
-
* {@link withoutOwnWords} takes the person's words out of the events before a view keeps them.
|
|
534
|
-
*/
|
|
535
|
-
/** The core's tool name (`ASK_USER_TOOL`). */
|
|
536
|
-
declare const ASK_USER_TOOL_NAME = "ask_user";
|
|
537
|
-
/** The core's default for `askUser.timeoutMs` (`ASK_USER_TIMEOUT_MS`). */
|
|
538
|
-
declare const QUESTION_TIMEOUT_MS = 300000;
|
|
539
|
-
/**
|
|
540
|
-
* A question waiting for the person: the core's request (the question and every option are the
|
|
541
|
-
* MODEL's text, cleaned - show them as plain text), and when the core stops waiting for it.
|
|
542
|
-
*/
|
|
543
|
-
interface PendingQuestion extends AskUserRequest {
|
|
544
|
-
/** Epoch ms after which the core answers it by itself ("did not answer in time"); absent: no limit. */
|
|
545
|
-
expiresAt?: number;
|
|
546
|
-
}
|
|
547
|
-
/**
|
|
548
|
-
* How long the core waits for an answer with this `askUser`; `undefined` = no limit of its own
|
|
549
|
-
* (`0`, `Infinity`, more than a timer holds - the core's own rules).
|
|
550
|
-
*/
|
|
551
|
-
declare const questionTimeoutOf: (askUser: boolean | AskUserConfig | undefined) => number | undefined;
|
|
552
|
-
/**
|
|
553
|
-
* `config.askUser` as `useAgent` builds the agent with it: on without a handler of its own
|
|
554
|
-
* (`true`, `{ timeoutMs, maxPerRun }`) it gets `handler`; a host's own `onQuestion` wins, and off
|
|
555
|
-
* (absent, `false`) stays off - nothing is added, so the core mounts no tool.
|
|
556
|
-
*/
|
|
557
|
-
declare const askUserWith: (askUser: boolean | AskUserConfig | undefined, handler: AskUserHandler) => boolean | AskUserConfig | undefined;
|
|
558
|
-
interface QuestionQueueOptions {
|
|
559
|
-
/**
|
|
560
|
-
* How long the core waits (ms), for `expiresAt`; `undefined` = no limit. A function is read when
|
|
561
|
-
* a question arrives (the settings of the agent that asks).
|
|
562
|
-
*/
|
|
563
|
-
timeoutMs?: number | (() => number | undefined);
|
|
564
|
-
/** Called whenever the list of waiting questions changed. */
|
|
565
|
-
onChange?: (pending: PendingQuestion[]) => void;
|
|
566
|
-
/** The clock (tests). */
|
|
567
|
-
now?: () => number;
|
|
568
|
-
}
|
|
569
|
-
interface QuestionQueue {
|
|
570
|
-
/** The core's `askUser.onQuestion`: resolves when the person answers, or as `{ declined: true }`. */
|
|
571
|
-
handler: (request: AskUserRequest, ctx?: AskUserContext) => Promise<AskUserAnswer>;
|
|
572
|
-
/** The questions waiting, oldest first. */
|
|
573
|
-
pending: () => PendingQuestion[];
|
|
574
|
-
/** Answer one. False when no such question is waiting (answered, expired, cancelled). */
|
|
575
|
-
answer: (id: string, answer: AskUserAnswer) => boolean;
|
|
576
|
-
/**
|
|
577
|
-
* Take the waiting questions down - all of them, or those `match` picks - as declined (the run
|
|
578
|
-
* ended, it was stopped). The core has usually stopped waiting already; this only makes sure no
|
|
579
|
-
* resolver is left.
|
|
580
|
-
*/
|
|
581
|
-
cancel: (match?: (question: PendingQuestion) => boolean) => void;
|
|
582
|
-
/** Cancel everything and stop reporting: the owner is gone. A later question is declined at once. */
|
|
583
|
-
dispose: () => void;
|
|
584
|
-
}
|
|
585
|
-
/**
|
|
586
|
-
* The questions the model is waiting on: `request.id → resolver`. A question leaves the queue
|
|
587
|
-
* exactly once - answered by the person, dropped because the core no longer wants the answer
|
|
588
|
-
* (`ctx.signal`: its time ran out, the run stopped), or cancelled by its owner (the run ended, an
|
|
589
|
-
* unmount) - and the queue never holds an answer: `answer` passes it straight to the resolver.
|
|
590
|
-
*/
|
|
591
|
-
declare const createQuestionQueue: (options?: QuestionQueueOptions) => QuestionQueue;
|
|
592
|
-
/**
|
|
593
|
-
* Why a question ended without the person deciding: the core's `AskUserReason`
|
|
594
|
-
* (`handler-error`, `invalid-answer`, `cannot-park`), or its action (`timeout`, `stopped`).
|
|
595
|
-
*/
|
|
596
|
-
type QuestionOutcomeReason = 'timeout' | 'stopped' | 'handler-error' | 'invalid-answer' | 'cannot-park';
|
|
597
|
-
/**
|
|
598
|
-
* The person's picks as the core's answer: the labels that were offered, in the order they were
|
|
599
|
-
* offered, each once - and one only unless the question allows several. `undefined` when nothing
|
|
600
|
-
* that was offered is picked (Send stays off).
|
|
601
|
-
*/
|
|
602
|
-
declare const questionChoiceOf: (question: Pick<AskUserRequest, "options" | "multiple">, picked: readonly string[]) => AskUserAnswer | undefined;
|
|
603
|
-
/**
|
|
604
|
-
* The person's own words as the core's answer, when the question allows them and there is
|
|
605
|
-
* anything but spaces; `undefined` otherwise (Send stays off). The text goes to the caller only.
|
|
606
|
-
*/
|
|
607
|
-
declare const questionOtherOf: (question: Pick<AskUserRequest, "allowOther">, text: string) => AskUserAnswer | undefined;
|
|
608
|
-
/** Whether an `ask_user` result may be kept by a view: it holds no word the person typed. */
|
|
609
|
-
declare const askUserOutputKept: (output: unknown, ok: boolean) => boolean;
|
|
610
|
-
/**
|
|
611
|
-
* The event with the person's own words taken out: the result of an `ask_user` call that is not
|
|
612
|
-
* known to hold labels only (an answer in their own words) loses its `output` - in
|
|
613
|
-
* `step.tool-result`, in `step.complete`'s tool calls, and in a subagent's events at any depth.
|
|
614
|
-
* Everything else comes back as it was (the same object). The model was given the words; the
|
|
615
|
-
* view, the saved chat and the event log are not.
|
|
616
|
-
*/
|
|
617
|
-
declare const withoutOwnWords: (event: AgentEvent) => AgentEvent;
|
|
618
|
-
|
|
619
575
|
/**
|
|
620
576
|
* Every string the pre-styled components render — override any of them for
|
|
621
577
|
* another language or wording, per component (`labels` prop) or for a whole
|
|
@@ -814,6 +770,18 @@ interface AgentLabels {
|
|
|
814
770
|
steer: string;
|
|
815
771
|
/** Shown when files are attached while the agent works (they can't be added then). */
|
|
816
772
|
noAttachmentsWhileBusy: string;
|
|
773
|
+
/** A send made while the agent starts: remembered, made when the agent is ready (a notice). */
|
|
774
|
+
sendWhenReady: string;
|
|
775
|
+
/** The send button's name while the agent starts (a click is remembered). */
|
|
776
|
+
sendWhenReadyButton: string;
|
|
777
|
+
/** The remembered send's notice: the button that cancels it. */
|
|
778
|
+
cancelSendWhenReady: string;
|
|
779
|
+
/** Nothing was sent: the agent could not start (its error is shown on its own). */
|
|
780
|
+
notSentFailed: string;
|
|
781
|
+
/** Nothing was sent: there is no agent to take it (no model yet, say). */
|
|
782
|
+
notSentUnavailable: string;
|
|
783
|
+
/** Nothing was sent: the composer is turned off. */
|
|
784
|
+
notSentDisabled: string;
|
|
817
785
|
/** A message waiting to reach the agent. */
|
|
818
786
|
queuedWaiting: string;
|
|
819
787
|
/**
|
|
@@ -1204,5 +1172,5 @@ type AgentLabelsOverride = Partial<Omit<AgentLabels, 'status' | 'modes' | 'comma
|
|
|
1204
1172
|
/** `base` with `over` applied (nested groups merged, not replaced). */
|
|
1205
1173
|
declare const mergeLabels: (base: AgentLabels, over?: AgentLabelsOverride) => AgentLabels;
|
|
1206
1174
|
|
|
1207
|
-
export {
|
|
1208
|
-
export type { AgentLabelsOverride as A,
|
|
1175
|
+
export { elicitationLink as $, attachmentFileName as D, ELICITATION_MAX_OPTIONS as E, attachmentKindOf as G, attachmentLabel as H, INPUT_COUNTER_FROM as I, attachmentOverLimit as J, attachmentRefusal as K, attachmentTransformOf as L, boxLength as O, createElicitationQueue as Q, dataUrlParts as R, defaultLabels as U, defaultNoticeTexts as V, elicitationConnectOptions as X, elicitationFields as Y, elicitationFormAnswer as Z, elicitationInitialDraft as _, ATTACHMENT_BOUNDS as a, elicitationSettings as a0, elicitationTimeoutOf as a1, excerptNote as a2, fileKindOf as a3, fileNameOf as a4, filterCommands as a5, formatClock as a6, formatCountdown as a7, formatElapsed as a8, freeAttachmentPath as a9, inputCounterShown as aa, insertionFits as ab, isOneCharacter as ac, lineCountOf as ad, longTextName as ae, longTextRoute as af, menuKeyTarget as ag, menuSections as ah, mergeLabels as ai, messageOverLimit as aj, micProblemText as ak, notReadyIntent as al, notReadyReason as am, noticesOf as an, overflowOf as ao, parseSlash as ap, saveAttachments as aq, steerIntent as ar, textExcerpt as as, voiceMessageName as at, waitingSendStep as au, withAttachments as av, ELICITATION_TIMEOUT_MS as i, ELICITATION_VALUE_MAX_CHARS as j };
|
|
1176
|
+
export type { AgentLabelsOverride as A, SteerIntent as B, ComposerAttachment as C, FileKind as F, MenuSection as M, NotReadyInput as N, PendingElicitation as P, SavedAttachments as S, TextExcerpt as T, WaitingSendStep as W, AgentLabels as b, AttachmentBounds as c, AttachmentFiles as d, AttachmentOverLimit as e, AttachmentTextOptions as f, AttachmentTransform as g, ComposerNotice as h, ElicitationControl as k, ElicitationDraft as l, ElicitationDraftValue as m, ElicitationField as n, ElicitationFormOutcome as o, ElicitationIssue as p, ElicitationIssueKind as q, ElicitationLink as r, ElicitationOption as s, ElicitationOutcomeReason as t, ElicitationQueue as u, ElicitationQueueOptions as v, NotReadyIntent as w, NotReadyReason as x, NoticeTexts as y, SlashCommand as z };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as AgentUiState, M as McpElicitationFieldSchema,
|
|
1
|
+
import { ToolApprovalMode, ModelTier, TierReason, EscalationReason, DecisionFallbackReason } from '@dudko.dev/agent-web';
|
|
2
|
+
import { A as AgentUiState, M as McpElicitationFieldSchema, c as McpElicitationHandler, d as McpElicitationRequest, e as McpElicitationResult, f as McpElicitationOptions, g as McpElicitationSchema, h as AgentStatus } from './types-DnBCok3z.js';
|
|
3
|
+
import { McpAppSandboxReason } from './mcp-app.js';
|
|
4
|
+
import { Q as QuestionOutcomeReason } from './questions-Dw--IEjT.js';
|
|
3
5
|
|
|
4
6
|
/**
|
|
5
7
|
* Pure helpers behind `<AgentComposer>`: slash commands, attachments, notices
|
|
@@ -49,6 +51,56 @@ declare const steerIntent: (input: {
|
|
|
49
51
|
steering: boolean;
|
|
50
52
|
hasAttachments: boolean;
|
|
51
53
|
}) => SteerIntent;
|
|
54
|
+
/** What a send (Enter or the Send button) does when the agent is not working (see {@link notReadyIntent}). */
|
|
55
|
+
type NotReadyIntent =
|
|
56
|
+
/** The agent is ready: send now. */
|
|
57
|
+
'send'
|
|
58
|
+
/** The agent is starting: remember the send and make it when the agent is ready. */
|
|
59
|
+
| 'wait'
|
|
60
|
+
/** The send cannot go and is not remembered: say why ({@link NotReadyReason}), keep the text. */
|
|
61
|
+
| 'refuse'
|
|
62
|
+
/** Nothing to send (an empty box): nothing happens, as before. */
|
|
63
|
+
| 'ignore';
|
|
64
|
+
/** Why a send cannot go now. */
|
|
65
|
+
type NotReadyReason =
|
|
66
|
+
/** The host turned the composer off (`disabled`). */
|
|
67
|
+
'disabled'
|
|
68
|
+
/** The agent could not be built (`status === 'error'`). */
|
|
69
|
+
| 'failed'
|
|
70
|
+
/** There is no agent: nothing is being built (no model yet, say). */
|
|
71
|
+
| 'unavailable';
|
|
72
|
+
/** What decides {@link notReadyIntent} and {@link waitingSendStep}. */
|
|
73
|
+
interface NotReadyInput {
|
|
74
|
+
/** The agent's status as the composer shows it (`useAgent().status`). */
|
|
75
|
+
status: AgentUiState['status'];
|
|
76
|
+
/** The agent can take a run now (`useAgent().isReady`). */
|
|
77
|
+
ready: boolean;
|
|
78
|
+
/** The host turned the composer off. */
|
|
79
|
+
disabled: boolean;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Decide what a send means when the agent is not working: a ready agent takes it now; one that
|
|
83
|
+
* is starting takes it when it is ready (the composer remembers it, keeping the text in the box);
|
|
84
|
+
* every other state refuses it out loud - never a send that does nothing and says nothing.
|
|
85
|
+
* A run that goes on is {@link steerIntent}'s, decided before this.
|
|
86
|
+
*/
|
|
87
|
+
declare const notReadyIntent: (input: NotReadyInput & {
|
|
88
|
+
hasContent: boolean;
|
|
89
|
+
}) => NotReadyIntent;
|
|
90
|
+
/** Why a send is refused now (the words of the notice). */
|
|
91
|
+
declare const notReadyReason: (input: Pick<NotReadyInput, "status" | "disabled">) => NotReadyReason;
|
|
92
|
+
/** What becomes of a remembered send as the agent's state changes. */
|
|
93
|
+
type WaitingSendStep =
|
|
94
|
+
/** Still starting (or another tab's run holds the conversation): keep waiting. */
|
|
95
|
+
'wait'
|
|
96
|
+
/** Ready: send what is in the box now. */
|
|
97
|
+
| 'send'
|
|
98
|
+
/** The agent could not start: the wait ends, nothing is sent, the text stays. */
|
|
99
|
+
| 'failed'
|
|
100
|
+
/** Anything else (turned off, no agent any more): the wait ends, nothing is sent. */
|
|
101
|
+
| 'stop';
|
|
102
|
+
/** Where a remembered send stands now (see {@link notReadyIntent}). */
|
|
103
|
+
declare const waitingSendStep: (input: NotReadyInput) => WaitingSendStep;
|
|
52
104
|
/** Commands matching what was typed after "/" — name prefix first, then substring. */
|
|
53
105
|
declare const filterCommands: (commands: SlashCommand[], query: string) => SlashCommand[];
|
|
54
106
|
/**
|
|
@@ -520,102 +572,6 @@ declare const fileKindOf: (path: string, mediaType: string) => FileKind;
|
|
|
520
572
|
/** The last segment of a path: what a chip is called and what a download is saved as. */
|
|
521
573
|
declare const fileNameOf: (path: string) => string;
|
|
522
574
|
|
|
523
|
-
/**
|
|
524
|
-
* The model asks the person ONE closed question (the core's `ask_user`, `config.askUser`): the
|
|
525
|
-
* part of it that is not React - the queue the hook hands the core as `askUser.onQuestion`, the
|
|
526
|
-
* answer a prompt builds, and what of a question's tool result may be kept.
|
|
527
|
-
*
|
|
528
|
-
* Pure: no React, no clock of its own (the queue takes `now`), no import of the core at run time
|
|
529
|
-
* (types only), so the main entry still loads next to an older core.
|
|
530
|
-
*
|
|
531
|
-
* Nothing here keeps, logs or returns what the person typed (`{ other }`) except to the one caller
|
|
532
|
-
* that hands it to the core: the queue passes an answer straight to the core's resolver, and
|
|
533
|
-
* {@link withoutOwnWords} takes the person's words out of the events before a view keeps them.
|
|
534
|
-
*/
|
|
535
|
-
/** The core's tool name (`ASK_USER_TOOL`). */
|
|
536
|
-
declare const ASK_USER_TOOL_NAME = "ask_user";
|
|
537
|
-
/** The core's default for `askUser.timeoutMs` (`ASK_USER_TIMEOUT_MS`). */
|
|
538
|
-
declare const QUESTION_TIMEOUT_MS = 300000;
|
|
539
|
-
/**
|
|
540
|
-
* A question waiting for the person: the core's request (the question and every option are the
|
|
541
|
-
* MODEL's text, cleaned - show them as plain text), and when the core stops waiting for it.
|
|
542
|
-
*/
|
|
543
|
-
interface PendingQuestion extends AskUserRequest {
|
|
544
|
-
/** Epoch ms after which the core answers it by itself ("did not answer in time"); absent: no limit. */
|
|
545
|
-
expiresAt?: number;
|
|
546
|
-
}
|
|
547
|
-
/**
|
|
548
|
-
* How long the core waits for an answer with this `askUser`; `undefined` = no limit of its own
|
|
549
|
-
* (`0`, `Infinity`, more than a timer holds - the core's own rules).
|
|
550
|
-
*/
|
|
551
|
-
declare const questionTimeoutOf: (askUser: boolean | AskUserConfig | undefined) => number | undefined;
|
|
552
|
-
/**
|
|
553
|
-
* `config.askUser` as `useAgent` builds the agent with it: on without a handler of its own
|
|
554
|
-
* (`true`, `{ timeoutMs, maxPerRun }`) it gets `handler`; a host's own `onQuestion` wins, and off
|
|
555
|
-
* (absent, `false`) stays off - nothing is added, so the core mounts no tool.
|
|
556
|
-
*/
|
|
557
|
-
declare const askUserWith: (askUser: boolean | AskUserConfig | undefined, handler: AskUserHandler) => boolean | AskUserConfig | undefined;
|
|
558
|
-
interface QuestionQueueOptions {
|
|
559
|
-
/**
|
|
560
|
-
* How long the core waits (ms), for `expiresAt`; `undefined` = no limit. A function is read when
|
|
561
|
-
* a question arrives (the settings of the agent that asks).
|
|
562
|
-
*/
|
|
563
|
-
timeoutMs?: number | (() => number | undefined);
|
|
564
|
-
/** Called whenever the list of waiting questions changed. */
|
|
565
|
-
onChange?: (pending: PendingQuestion[]) => void;
|
|
566
|
-
/** The clock (tests). */
|
|
567
|
-
now?: () => number;
|
|
568
|
-
}
|
|
569
|
-
interface QuestionQueue {
|
|
570
|
-
/** The core's `askUser.onQuestion`: resolves when the person answers, or as `{ declined: true }`. */
|
|
571
|
-
handler: (request: AskUserRequest, ctx?: AskUserContext) => Promise<AskUserAnswer>;
|
|
572
|
-
/** The questions waiting, oldest first. */
|
|
573
|
-
pending: () => PendingQuestion[];
|
|
574
|
-
/** Answer one. False when no such question is waiting (answered, expired, cancelled). */
|
|
575
|
-
answer: (id: string, answer: AskUserAnswer) => boolean;
|
|
576
|
-
/**
|
|
577
|
-
* Take the waiting questions down - all of them, or those `match` picks - as declined (the run
|
|
578
|
-
* ended, it was stopped). The core has usually stopped waiting already; this only makes sure no
|
|
579
|
-
* resolver is left.
|
|
580
|
-
*/
|
|
581
|
-
cancel: (match?: (question: PendingQuestion) => boolean) => void;
|
|
582
|
-
/** Cancel everything and stop reporting: the owner is gone. A later question is declined at once. */
|
|
583
|
-
dispose: () => void;
|
|
584
|
-
}
|
|
585
|
-
/**
|
|
586
|
-
* The questions the model is waiting on: `request.id → resolver`. A question leaves the queue
|
|
587
|
-
* exactly once - answered by the person, dropped because the core no longer wants the answer
|
|
588
|
-
* (`ctx.signal`: its time ran out, the run stopped), or cancelled by its owner (the run ended, an
|
|
589
|
-
* unmount) - and the queue never holds an answer: `answer` passes it straight to the resolver.
|
|
590
|
-
*/
|
|
591
|
-
declare const createQuestionQueue: (options?: QuestionQueueOptions) => QuestionQueue;
|
|
592
|
-
/**
|
|
593
|
-
* Why a question ended without the person deciding: the core's `AskUserReason`
|
|
594
|
-
* (`handler-error`, `invalid-answer`, `cannot-park`), or its action (`timeout`, `stopped`).
|
|
595
|
-
*/
|
|
596
|
-
type QuestionOutcomeReason = 'timeout' | 'stopped' | 'handler-error' | 'invalid-answer' | 'cannot-park';
|
|
597
|
-
/**
|
|
598
|
-
* The person's picks as the core's answer: the labels that were offered, in the order they were
|
|
599
|
-
* offered, each once - and one only unless the question allows several. `undefined` when nothing
|
|
600
|
-
* that was offered is picked (Send stays off).
|
|
601
|
-
*/
|
|
602
|
-
declare const questionChoiceOf: (question: Pick<AskUserRequest, "options" | "multiple">, picked: readonly string[]) => AskUserAnswer | undefined;
|
|
603
|
-
/**
|
|
604
|
-
* The person's own words as the core's answer, when the question allows them and there is
|
|
605
|
-
* anything but spaces; `undefined` otherwise (Send stays off). The text goes to the caller only.
|
|
606
|
-
*/
|
|
607
|
-
declare const questionOtherOf: (question: Pick<AskUserRequest, "allowOther">, text: string) => AskUserAnswer | undefined;
|
|
608
|
-
/** Whether an `ask_user` result may be kept by a view: it holds no word the person typed. */
|
|
609
|
-
declare const askUserOutputKept: (output: unknown, ok: boolean) => boolean;
|
|
610
|
-
/**
|
|
611
|
-
* The event with the person's own words taken out: the result of an `ask_user` call that is not
|
|
612
|
-
* known to hold labels only (an answer in their own words) loses its `output` - in
|
|
613
|
-
* `step.tool-result`, in `step.complete`'s tool calls, and in a subagent's events at any depth.
|
|
614
|
-
* Everything else comes back as it was (the same object). The model was given the words; the
|
|
615
|
-
* view, the saved chat and the event log are not.
|
|
616
|
-
*/
|
|
617
|
-
declare const withoutOwnWords: (event: AgentEvent) => AgentEvent;
|
|
618
|
-
|
|
619
575
|
/**
|
|
620
576
|
* Every string the pre-styled components render — override any of them for
|
|
621
577
|
* another language or wording, per component (`labels` prop) or for a whole
|
|
@@ -814,6 +770,18 @@ interface AgentLabels {
|
|
|
814
770
|
steer: string;
|
|
815
771
|
/** Shown when files are attached while the agent works (they can't be added then). */
|
|
816
772
|
noAttachmentsWhileBusy: string;
|
|
773
|
+
/** A send made while the agent starts: remembered, made when the agent is ready (a notice). */
|
|
774
|
+
sendWhenReady: string;
|
|
775
|
+
/** The send button's name while the agent starts (a click is remembered). */
|
|
776
|
+
sendWhenReadyButton: string;
|
|
777
|
+
/** The remembered send's notice: the button that cancels it. */
|
|
778
|
+
cancelSendWhenReady: string;
|
|
779
|
+
/** Nothing was sent: the agent could not start (its error is shown on its own). */
|
|
780
|
+
notSentFailed: string;
|
|
781
|
+
/** Nothing was sent: there is no agent to take it (no model yet, say). */
|
|
782
|
+
notSentUnavailable: string;
|
|
783
|
+
/** Nothing was sent: the composer is turned off. */
|
|
784
|
+
notSentDisabled: string;
|
|
817
785
|
/** A message waiting to reach the agent. */
|
|
818
786
|
queuedWaiting: string;
|
|
819
787
|
/**
|
|
@@ -1204,5 +1172,5 @@ type AgentLabelsOverride = Partial<Omit<AgentLabels, 'status' | 'modes' | 'comma
|
|
|
1204
1172
|
/** `base` with `over` applied (nested groups merged, not replaced). */
|
|
1205
1173
|
declare const mergeLabels: (base: AgentLabels, over?: AgentLabelsOverride) => AgentLabels;
|
|
1206
1174
|
|
|
1207
|
-
export {
|
|
1208
|
-
export type { AgentLabelsOverride as A,
|
|
1175
|
+
export { elicitationLink as $, attachmentFileName as D, ELICITATION_MAX_OPTIONS as E, attachmentKindOf as G, attachmentLabel as H, INPUT_COUNTER_FROM as I, attachmentOverLimit as J, attachmentRefusal as K, attachmentTransformOf as L, boxLength as O, createElicitationQueue as Q, dataUrlParts as R, defaultLabels as U, defaultNoticeTexts as V, elicitationConnectOptions as X, elicitationFields as Y, elicitationFormAnswer as Z, elicitationInitialDraft as _, ATTACHMENT_BOUNDS as a, elicitationSettings as a0, elicitationTimeoutOf as a1, excerptNote as a2, fileKindOf as a3, fileNameOf as a4, filterCommands as a5, formatClock as a6, formatCountdown as a7, formatElapsed as a8, freeAttachmentPath as a9, inputCounterShown as aa, insertionFits as ab, isOneCharacter as ac, lineCountOf as ad, longTextName as ae, longTextRoute as af, menuKeyTarget as ag, menuSections as ah, mergeLabels as ai, messageOverLimit as aj, micProblemText as ak, notReadyIntent as al, notReadyReason as am, noticesOf as an, overflowOf as ao, parseSlash as ap, saveAttachments as aq, steerIntent as ar, textExcerpt as as, voiceMessageName as at, waitingSendStep as au, withAttachments as av, ELICITATION_TIMEOUT_MS as i, ELICITATION_VALUE_MAX_CHARS as j };
|
|
1176
|
+
export type { AgentLabelsOverride as A, SteerIntent as B, ComposerAttachment as C, FileKind as F, MenuSection as M, NotReadyInput as N, PendingElicitation as P, SavedAttachments as S, TextExcerpt as T, WaitingSendStep as W, AgentLabels as b, AttachmentBounds as c, AttachmentFiles as d, AttachmentOverLimit as e, AttachmentTextOptions as f, AttachmentTransform as g, ComposerNotice as h, ElicitationControl as k, ElicitationDraft as l, ElicitationDraftValue as m, ElicitationField as n, ElicitationFormOutcome as o, ElicitationIssue as p, ElicitationIssueKind as q, ElicitationLink as r, ElicitationOption as s, ElicitationOutcomeReason as t, ElicitationQueue as u, ElicitationQueueOptions as v, NotReadyIntent as w, NotReadyReason as x, NoticeTexts as y, SlashCommand as z };
|
package/dist/locales/be.cjs
CHANGED
|
@@ -365,6 +365,12 @@ var labelsFromCatalog = (tag, catalog2) => {
|
|
|
365
365
|
dictatedAsFile: (count) => t("dictatedAsFile", { count }),
|
|
366
366
|
attachmentSaveFailed: (names) => t("attachmentSaveFailed", { names }),
|
|
367
367
|
noAttachmentsWhileBusy: t("noAttachmentsWhileBusy"),
|
|
368
|
+
sendWhenReady: t("sendWhenReady"),
|
|
369
|
+
sendWhenReadyButton: t("sendWhenReadyButton"),
|
|
370
|
+
cancelSendWhenReady: t("cancelSendWhenReady"),
|
|
371
|
+
notSentFailed: t("notSentFailed"),
|
|
372
|
+
notSentUnavailable: t("notSentUnavailable"),
|
|
373
|
+
notSentDisabled: t("notSentDisabled"),
|
|
368
374
|
filesEmpty: t("filesEmpty"),
|
|
369
375
|
upload: t("upload"),
|
|
370
376
|
download: t("download"),
|
|
@@ -718,6 +724,12 @@ var catalog = {
|
|
|
718
724
|
tooLarge: "Файл {name} большы за {mb} МБ, таму ён не дададзены.",
|
|
719
725
|
tooManyPixels: "У выяве {name} больш за {mp} мегапікселяў, таму яна не дададзена.",
|
|
720
726
|
noAttachmentsWhileBusy: "Нельга дадаваць файлы, пакуль асістэнт працуе. Адпраўце іх з наступным паведамленнем.",
|
|
727
|
+
sendWhenReady: "Адправіцца, калі асістэнт будзе гатовы",
|
|
728
|
+
sendWhenReadyButton: "Адправіць, калі асістэнт будзе гатовы",
|
|
729
|
+
cancelSendWhenReady: "Не адпраўляць",
|
|
730
|
+
notSentFailed: "Не адпраўлена: асістэнт не змог запусціцца. Паведамленне засталося ў полі ўводу.",
|
|
731
|
+
notSentUnavailable: "Не адпраўлена: асістэнт не гатовы. Паведамленне засталося ў полі ўводу.",
|
|
732
|
+
notSentDisabled: "Не адпраўлена: адпраўка выключана. Паведамленне засталося ў полі ўводу.",
|
|
721
733
|
mediaImage: "Малюнак, створаны асістэнтам: {path}",
|
|
722
734
|
mediaReferences: "Па ўзоры: {names}",
|
|
723
735
|
mediaReferencesUnused: "Не выкарыстана: гэтая мадэль выяў не прымае выявы-ўзоры: {names}",
|
|
@@ -791,4 +803,3 @@ var labels = labelsFromCatalog("be", catalog);
|
|
|
791
803
|
catalog,
|
|
792
804
|
labels
|
|
793
805
|
});
|
|
794
|
-
//# sourceMappingURL=be.cjs.map
|
package/dist/locales/be.d.cts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { AgentLabelsOverride } from '../index.cjs';
|
|
2
2
|
import { AgentLabelCatalog } from './index.cjs';
|
|
3
3
|
import '@dudko.dev/agent-web';
|
|
4
|
-
import '../
|
|
4
|
+
import '../types-DnBCok3z.cjs';
|
|
5
|
+
import '../mcp-app.cjs';
|
|
5
6
|
import '../mcp-app-policy-DXKQ2jjM.cjs';
|
|
6
|
-
import '../
|
|
7
|
+
import '../questions-Dw--IEjT.cjs';
|
|
8
|
+
import '../en-Dg2MtzcJ.cjs';
|
|
7
9
|
|
|
8
10
|
/** Беларуская (`be`). */
|
|
9
11
|
declare const catalog: AgentLabelCatalog;
|
package/dist/locales/be.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { AgentLabelsOverride } from '../index.js';
|
|
2
2
|
import { AgentLabelCatalog } from './index.js';
|
|
3
3
|
import '@dudko.dev/agent-web';
|
|
4
|
-
import '../
|
|
4
|
+
import '../types-DnBCok3z.js';
|
|
5
|
+
import '../mcp-app.js';
|
|
5
6
|
import '../mcp-app-policy-DXKQ2jjM.js';
|
|
6
|
-
import '../
|
|
7
|
+
import '../questions-Dw--IEjT.js';
|
|
8
|
+
import '../en-Dg2MtzcJ.js';
|
|
7
9
|
|
|
8
10
|
/** Беларуская (`be`). */
|
|
9
11
|
declare const catalog: AgentLabelCatalog;
|
package/dist/locales/be.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
labelsFromCatalog
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-UNIXGP4N.js";
|
|
4
4
|
|
|
5
5
|
// src/locales/catalogs/be.ts
|
|
6
6
|
var catalog = {
|
|
@@ -299,6 +299,12 @@ var catalog = {
|
|
|
299
299
|
tooLarge: "Файл {name} большы за {mb} МБ, таму ён не дададзены.",
|
|
300
300
|
tooManyPixels: "У выяве {name} больш за {mp} мегапікселяў, таму яна не дададзена.",
|
|
301
301
|
noAttachmentsWhileBusy: "Нельга дадаваць файлы, пакуль асістэнт працуе. Адпраўце іх з наступным паведамленнем.",
|
|
302
|
+
sendWhenReady: "Адправіцца, калі асістэнт будзе гатовы",
|
|
303
|
+
sendWhenReadyButton: "Адправіць, калі асістэнт будзе гатовы",
|
|
304
|
+
cancelSendWhenReady: "Не адпраўляць",
|
|
305
|
+
notSentFailed: "Не адпраўлена: асістэнт не змог запусціцца. Паведамленне засталося ў полі ўводу.",
|
|
306
|
+
notSentUnavailable: "Не адпраўлена: асістэнт не гатовы. Паведамленне засталося ў полі ўводу.",
|
|
307
|
+
notSentDisabled: "Не адпраўлена: адпраўка выключана. Паведамленне засталося ў полі ўводу.",
|
|
302
308
|
mediaImage: "Малюнак, створаны асістэнтам: {path}",
|
|
303
309
|
mediaReferences: "Па ўзоры: {names}",
|
|
304
310
|
mediaReferencesUnused: "Не выкарыстана: гэтая мадэль выяў не прымае выявы-ўзоры: {names}",
|
|
@@ -371,4 +377,3 @@ export {
|
|
|
371
377
|
catalog,
|
|
372
378
|
labels
|
|
373
379
|
};
|
|
374
|
-
//# sourceMappingURL=be.js.map
|
package/dist/locales/bg.cjs
CHANGED
|
@@ -365,6 +365,12 @@ var labelsFromCatalog = (tag, catalog2) => {
|
|
|
365
365
|
dictatedAsFile: (count) => t("dictatedAsFile", { count }),
|
|
366
366
|
attachmentSaveFailed: (names) => t("attachmentSaveFailed", { names }),
|
|
367
367
|
noAttachmentsWhileBusy: t("noAttachmentsWhileBusy"),
|
|
368
|
+
sendWhenReady: t("sendWhenReady"),
|
|
369
|
+
sendWhenReadyButton: t("sendWhenReadyButton"),
|
|
370
|
+
cancelSendWhenReady: t("cancelSendWhenReady"),
|
|
371
|
+
notSentFailed: t("notSentFailed"),
|
|
372
|
+
notSentUnavailable: t("notSentUnavailable"),
|
|
373
|
+
notSentDisabled: t("notSentDisabled"),
|
|
368
374
|
filesEmpty: t("filesEmpty"),
|
|
369
375
|
upload: t("upload"),
|
|
370
376
|
download: t("download"),
|
|
@@ -671,6 +677,12 @@ var catalog = {
|
|
|
671
677
|
tooLarge: "Файлът {name} е по-голям от {mb} MB, затова не е добавен.",
|
|
672
678
|
tooManyPixels: "Изображението {name} има повече от {mp} мегапиксела, затова не е добавено.",
|
|
673
679
|
noAttachmentsWhileBusy: "Не могат да се добавят файлове, докато асистентът работи. Изпратете ги със следващото съобщение.",
|
|
680
|
+
sendWhenReady: "Ще се изпрати, когато асистентът е готов",
|
|
681
|
+
sendWhenReadyButton: "Изпращане, когато асистентът е готов",
|
|
682
|
+
cancelSendWhenReady: "Не изпращай",
|
|
683
|
+
notSentFailed: "Не е изпратено: асистентът не успя да се стартира. Съобщението е все още в полето.",
|
|
684
|
+
notSentUnavailable: "Не е изпратено: асистентът не е готов. Съобщението е все още в полето.",
|
|
685
|
+
notSentDisabled: "Не е изпратено: изпращането е изключено. Съобщението е все още в полето.",
|
|
674
686
|
mediaImage: "Картина, създадена от асистента: {path}",
|
|
675
687
|
mediaReferences: "По образец: {names}",
|
|
676
688
|
mediaReferencesUnused: "Не е използвано: този модел за изображения не приема образци: {names}",
|
|
@@ -744,4 +756,3 @@ var labels = labelsFromCatalog("bg", catalog);
|
|
|
744
756
|
catalog,
|
|
745
757
|
labels
|
|
746
758
|
});
|
|
747
|
-
//# sourceMappingURL=bg.cjs.map
|
package/dist/locales/bg.d.cts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { AgentLabelsOverride } from '../index.cjs';
|
|
2
2
|
import { AgentLabelCatalog } from './index.cjs';
|
|
3
3
|
import '@dudko.dev/agent-web';
|
|
4
|
-
import '../
|
|
4
|
+
import '../types-DnBCok3z.cjs';
|
|
5
|
+
import '../mcp-app.cjs';
|
|
5
6
|
import '../mcp-app-policy-DXKQ2jjM.cjs';
|
|
6
|
-
import '../
|
|
7
|
+
import '../questions-Dw--IEjT.cjs';
|
|
8
|
+
import '../en-Dg2MtzcJ.cjs';
|
|
7
9
|
|
|
8
10
|
/** Български (`bg`). */
|
|
9
11
|
declare const catalog: AgentLabelCatalog;
|
package/dist/locales/bg.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { AgentLabelsOverride } from '../index.js';
|
|
2
2
|
import { AgentLabelCatalog } from './index.js';
|
|
3
3
|
import '@dudko.dev/agent-web';
|
|
4
|
-
import '../
|
|
4
|
+
import '../types-DnBCok3z.js';
|
|
5
|
+
import '../mcp-app.js';
|
|
5
6
|
import '../mcp-app-policy-DXKQ2jjM.js';
|
|
6
|
-
import '../
|
|
7
|
+
import '../questions-Dw--IEjT.js';
|
|
8
|
+
import '../en-Dg2MtzcJ.js';
|
|
7
9
|
|
|
8
10
|
/** Български (`bg`). */
|
|
9
11
|
declare const catalog: AgentLabelCatalog;
|
package/dist/locales/bg.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
labelsFromCatalog
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-UNIXGP4N.js";
|
|
4
4
|
|
|
5
5
|
// src/locales/catalogs/bg.ts
|
|
6
6
|
var catalog = {
|
|
@@ -252,6 +252,12 @@ var catalog = {
|
|
|
252
252
|
tooLarge: "Файлът {name} е по-голям от {mb} MB, затова не е добавен.",
|
|
253
253
|
tooManyPixels: "Изображението {name} има повече от {mp} мегапиксела, затова не е добавено.",
|
|
254
254
|
noAttachmentsWhileBusy: "Не могат да се добавят файлове, докато асистентът работи. Изпратете ги със следващото съобщение.",
|
|
255
|
+
sendWhenReady: "Ще се изпрати, когато асистентът е готов",
|
|
256
|
+
sendWhenReadyButton: "Изпращане, когато асистентът е готов",
|
|
257
|
+
cancelSendWhenReady: "Не изпращай",
|
|
258
|
+
notSentFailed: "Не е изпратено: асистентът не успя да се стартира. Съобщението е все още в полето.",
|
|
259
|
+
notSentUnavailable: "Не е изпратено: асистентът не е готов. Съобщението е все още в полето.",
|
|
260
|
+
notSentDisabled: "Не е изпратено: изпращането е изключено. Съобщението е все още в полето.",
|
|
255
261
|
mediaImage: "Картина, създадена от асистента: {path}",
|
|
256
262
|
mediaReferences: "По образец: {names}",
|
|
257
263
|
mediaReferencesUnused: "Не е използвано: този модел за изображения не приема образци: {names}",
|
|
@@ -324,4 +330,3 @@ export {
|
|
|
324
330
|
catalog,
|
|
325
331
|
labels
|
|
326
332
|
};
|
|
327
|
-
//# sourceMappingURL=bg.js.map
|
package/dist/locales/ca.cjs
CHANGED
|
@@ -365,6 +365,12 @@ var labelsFromCatalog = (tag, catalog2) => {
|
|
|
365
365
|
dictatedAsFile: (count) => t("dictatedAsFile", { count }),
|
|
366
366
|
attachmentSaveFailed: (names) => t("attachmentSaveFailed", { names }),
|
|
367
367
|
noAttachmentsWhileBusy: t("noAttachmentsWhileBusy"),
|
|
368
|
+
sendWhenReady: t("sendWhenReady"),
|
|
369
|
+
sendWhenReadyButton: t("sendWhenReadyButton"),
|
|
370
|
+
cancelSendWhenReady: t("cancelSendWhenReady"),
|
|
371
|
+
notSentFailed: t("notSentFailed"),
|
|
372
|
+
notSentUnavailable: t("notSentUnavailable"),
|
|
373
|
+
notSentDisabled: t("notSentDisabled"),
|
|
368
374
|
filesEmpty: t("filesEmpty"),
|
|
369
375
|
upload: t("upload"),
|
|
370
376
|
download: t("download"),
|
|
@@ -697,6 +703,12 @@ var catalog = {
|
|
|
697
703
|
tooLarge: "{name} fa més de {mb} MB, així que no s’ha afegit.",
|
|
698
704
|
tooManyPixels: "{name} té més de {mp} megapíxels, així que no s’ha afegit.",
|
|
699
705
|
noAttachmentsWhileBusy: "No es poden afegir fitxers mentre l’assistent treballa. Envia’ls amb el teu proper missatge.",
|
|
706
|
+
sendWhenReady: "S’enviarà quan l’assistent estigui a punt",
|
|
707
|
+
sendWhenReadyButton: "Envia quan l’assistent estigui a punt",
|
|
708
|
+
cancelSendWhenReady: "No l’enviïs",
|
|
709
|
+
notSentFailed: "No s’ha enviat: l’assistent no s’ha pogut iniciar. El missatge encara és al quadre.",
|
|
710
|
+
notSentUnavailable: "No s’ha enviat: l’assistent no està a punt. El missatge encara és al quadre.",
|
|
711
|
+
notSentDisabled: "No s’ha enviat: l’enviament està desactivat. El missatge encara és al quadre.",
|
|
700
712
|
mediaImage: "Imatge creada per l’assistent: {path}",
|
|
701
713
|
mediaReferences: "Referència: {names}",
|
|
702
714
|
mediaReferencesUnused: "No s’ha fet servir: aquest model d’imatges no accepta imatges de referència: {names}",
|
|
@@ -770,4 +782,3 @@ var labels = labelsFromCatalog("ca", catalog);
|
|
|
770
782
|
catalog,
|
|
771
783
|
labels
|
|
772
784
|
});
|
|
773
|
-
//# sourceMappingURL=ca.cjs.map
|
package/dist/locales/ca.d.cts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { AgentLabelsOverride } from '../index.cjs';
|
|
2
2
|
import { AgentLabelCatalog } from './index.cjs';
|
|
3
3
|
import '@dudko.dev/agent-web';
|
|
4
|
-
import '../
|
|
4
|
+
import '../types-DnBCok3z.cjs';
|
|
5
|
+
import '../mcp-app.cjs';
|
|
5
6
|
import '../mcp-app-policy-DXKQ2jjM.cjs';
|
|
6
|
-
import '../
|
|
7
|
+
import '../questions-Dw--IEjT.cjs';
|
|
8
|
+
import '../en-Dg2MtzcJ.cjs';
|
|
7
9
|
|
|
8
10
|
/** Català (`ca`). */
|
|
9
11
|
declare const catalog: AgentLabelCatalog;
|