@appsolutely-io/waypoint 0.0.0-stage → 0.1.1-next.1
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/LICENSE +21 -0
- package/README.md +297 -2
- package/dist/block-reply-r8u-DNmZ.d.cts +181 -0
- package/dist/block-reply-z8El20nD.d.ts +181 -0
- package/dist/blocks-2ABWECKG.js +1 -0
- package/dist/blocks-7453YTYJ.cjs +1 -0
- package/dist/chunk-3KV7TDDR.cjs +3 -0
- package/dist/chunk-4BWV3SEL.cjs +1 -0
- package/dist/chunk-5Q3INHKA.js +1 -0
- package/dist/chunk-5TBO732O.js +1 -0
- package/dist/chunk-6OZSKCPT.cjs +1 -0
- package/dist/chunk-A3YOSFLE.cjs +1 -0
- package/dist/chunk-BRUQ75G3.cjs +1 -0
- package/dist/chunk-C3VS33WJ.js +1 -0
- package/dist/chunk-D2EGPBCX.cjs +1 -0
- package/dist/chunk-D4Q46KWA.js +1 -0
- package/dist/chunk-FBADWFRR.cjs +1 -0
- package/dist/chunk-FQSWQLRW.js +1 -0
- package/dist/chunk-GT6PI4CT.cjs +1 -0
- package/dist/chunk-II26UWZM.cjs +1 -0
- package/dist/chunk-IPI4O4LP.js +1 -0
- package/dist/chunk-JFMVVGGB.js +1 -0
- package/dist/chunk-K73VV7KA.js +1 -0
- package/dist/chunk-L4PFFRDE.js +3 -0
- package/dist/chunk-LLPGVQUT.cjs +1 -0
- package/dist/chunk-M63QOANE.js +1 -0
- package/dist/chunk-MEKDQDSV.js +1 -0
- package/dist/chunk-OEPKPDLD.js +1 -0
- package/dist/chunk-OWT55N6J.js +3 -0
- package/dist/chunk-PFR2J5BV.js +1 -0
- package/dist/chunk-Q7BULGQG.cjs +1 -0
- package/dist/chunk-QFBAOEPD.js +1 -0
- package/dist/chunk-QS3MKZOY.cjs +3 -0
- package/dist/chunk-RZ3AGK3U.cjs +1 -0
- package/dist/chunk-RZZDQWC2.js +1 -0
- package/dist/chunk-S73WZWDP.js +1 -0
- package/dist/chunk-T5XF2R74.js +1 -0
- package/dist/chunk-TCFCSGQ3.js +1 -0
- package/dist/chunk-TODYQ3SG.cjs +1 -0
- package/dist/chunk-TVSQHTK2.cjs +1 -0
- package/dist/chunk-VGGJGRNK.cjs +1 -0
- package/dist/chunk-XSHOLIC7.cjs +1 -0
- package/dist/chunk-XTKUDSDK.cjs +1 -0
- package/dist/chunk-XWDB2LS3.cjs +1 -0
- package/dist/cli.js +3 -0
- package/dist/confirmation-view-5BZ2PP7J.cjs +1 -0
- package/dist/confirmation-view-Z5JHY2F5.js +1 -0
- package/dist/conformance.cjs +1 -0
- package/dist/conformance.d.cts +10 -0
- package/dist/conformance.d.ts +10 -0
- package/dist/conformance.js +1 -0
- package/dist/flow-parser.cjs +1 -0
- package/dist/flow-parser.d.cts +3 -0
- package/dist/flow-parser.d.ts +3 -0
- package/dist/flow-parser.js +1 -0
- package/dist/flows-panel-2SCPYZ3X.js +1 -0
- package/dist/flows-panel-HQYJMOP4.cjs +1 -0
- package/dist/form-extras-RNMBCYV7.cjs +1 -0
- package/dist/form-extras-X3B3JCMH.js +1 -0
- package/dist/form-fill-C32AHxSr.d.cts +653 -0
- package/dist/form-fill-Dp3ut1_Y.d.ts +653 -0
- package/dist/form-session.cjs +1 -0
- package/dist/form-session.d.cts +7 -0
- package/dist/form-session.d.ts +7 -0
- package/dist/form-session.js +1 -0
- package/dist/frame-decoder.cjs +3 -0
- package/dist/frame-decoder.d.cts +5 -0
- package/dist/frame-decoder.d.ts +5 -0
- package/dist/frame-decoder.js +3 -0
- package/dist/generated-C9tbjwK0.d.cts +797 -0
- package/dist/generated-C9tbjwK0.d.ts +797 -0
- package/dist/hooks/index.cjs +1 -0
- package/dist/hooks/index.d.cts +48 -0
- package/dist/hooks/index.d.ts +48 -0
- package/dist/hooks/index.js +1 -0
- package/dist/i18n-WC9f-h_q.d.cts +151 -0
- package/dist/i18n-WC9f-h_q.d.ts +151 -0
- package/dist/index-B5idIFTx.d.cts +34 -0
- package/dist/index-DPzoKXCK.d.ts +34 -0
- package/dist/index.cjs +3 -0
- package/dist/index.d.cts +38 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.js +3 -0
- package/dist/intent-BQPPows1.d.cts +154 -0
- package/dist/intent-BuvqEU3Q.d.ts +154 -0
- package/dist/intent.cjs +1 -0
- package/dist/intent.d.cts +2 -0
- package/dist/intent.d.ts +2 -0
- package/dist/intent.js +1 -0
- package/dist/markdown-5NUOCOGY.js +23 -0
- package/dist/markdown-CG7NXI7X.cjs +23 -0
- package/dist/message-actions-ORBVYGNE.cjs +1 -0
- package/dist/message-actions-XNBBFHGW.js +1 -0
- package/dist/messages/en/index.cjs +1 -0
- package/dist/messages/en/index.d.cts +3 -0
- package/dist/messages/en/index.d.ts +3 -0
- package/dist/messages/en/index.js +1 -0
- package/dist/messages/index.cjs +1 -0
- package/dist/messages/index.d.cts +14 -0
- package/dist/messages/index.d.ts +14 -0
- package/dist/messages/index.js +1 -0
- package/dist/messages/zh-Hans/index.cjs +1 -0
- package/dist/messages/zh-Hans/index.d.cts +3 -0
- package/dist/messages/zh-Hans/index.d.ts +3 -0
- package/dist/messages/zh-Hans/index.js +1 -0
- package/dist/on-demand.cjs +1 -0
- package/dist/on-demand.d.cts +56 -0
- package/dist/on-demand.d.ts +56 -0
- package/dist/on-demand.js +1 -0
- package/dist/problem-messages-THONMXFZ.cjs +1 -0
- package/dist/problem-messages-Z5QGO6RE.js +1 -0
- package/dist/react/index.cjs +1 -0
- package/dist/react/index.d.cts +421 -0
- package/dist/react/index.d.ts +421 -0
- package/dist/react/index.js +1 -0
- package/dist/reads-Bk84x_rt.d.ts +38 -0
- package/dist/reads-DlpCt8dE.d.cts +38 -0
- package/dist/recovery-panel-6EBUMANX.js +3 -0
- package/dist/recovery-panel-EQIIV7TT.cjs +3 -0
- package/dist/reply-controls-HUYHUO3W.js +1 -0
- package/dist/reply-controls-LGY2RKRJ.cjs +1 -0
- package/dist/run-XBABOEXK.js +1 -0
- package/dist/schema.json +2900 -0
- package/dist/skin-antd/index.cjs +1 -0
- package/dist/skin-antd/index.d.cts +30 -0
- package/dist/skin-antd/index.d.ts +30 -0
- package/dist/skin-antd/index.js +1 -0
- package/dist/skin-default/index.cjs +1 -0
- package/dist/skin-default/index.d.cts +42 -0
- package/dist/skin-default/index.d.ts +42 -0
- package/dist/skin-default/index.js +1 -0
- package/dist/step-name-BlgVvshf.d.ts +19 -0
- package/dist/step-name-CB3d3kkP.d.cts +19 -0
- package/dist/storage-commit.cjs +1 -0
- package/dist/storage-commit.d.cts +17 -0
- package/dist/storage-commit.d.ts +17 -0
- package/dist/storage-commit.js +1 -0
- package/dist/stream-reads.cjs +1 -0
- package/dist/stream-reads.d.cts +22 -0
- package/dist/stream-reads.d.ts +22 -0
- package/dist/stream-reads.js +1 -0
- package/dist/styles.css +811 -0
- package/dist/testing/index.cjs +1 -0
- package/dist/testing/index.d.cts +57 -0
- package/dist/testing/index.d.ts +57 -0
- package/dist/testing/index.js +1 -0
- package/docs/examples/message-versions.tsx +74 -0
- package/docs/form-fill-protocol.md +83 -0
- package/docs/message-versions.md +64 -0
- package/docs/plan-protocol.md +83 -0
- package/docs/reply-protocol.md +75 -0
- package/etc/hooks.api.md +2394 -0
- package/etc/index.api.md +2159 -0
- package/etc/messages-en.api.md +13 -0
- package/etc/messages-zh-Hans.api.md +13 -0
- package/etc/messages.api.md +186 -0
- package/etc/react.api.md +2977 -0
- package/etc/skin-antd.api.md +2998 -0
- package/etc/skin-default.api.md +61 -0
- package/etc/testing.api.md +3043 -0
- package/package.json +169 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRZ3AGK3Ucjs = require('../chunk-RZ3AGK3U.cjs');require('../chunk-3KV7TDDR.cjs');require('../chunk-Q7BULGQG.cjs');require('../chunk-XSHOLIC7.cjs');require('../chunk-II26UWZM.cjs');exports.cardReplyId = _chunkRZ3AGK3Ucjs.j; exports.keepSheet = _chunkRZ3AGK3Ucjs.c; exports.planView = _chunkRZ3AGK3Ucjs.b; exports.problemAction = _chunkRZ3AGK3Ucjs.l; exports.problemView = _chunkRZ3AGK3Ucjs.m; exports.replyRowView = _chunkRZ3AGK3Ucjs.n; exports.useBlockReply = _chunkRZ3AGK3Ucjs.k; exports.usePlanView = _chunkRZ3AGK3Ucjs.i; exports.useWaypointMessage = _chunkRZ3AGK3Ucjs.g; exports.useWaypointSelector = _chunkRZ3AGK3Ucjs.f; exports.useWaypointSnapshot = _chunkRZ3AGK3Ucjs.e;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export { A as ActionEntry, a as ActionId, B as BlockAnswer, b as BlockReply, K as KeepSheet, c as KeepSheetView, P as PlanView, d as PlanViewAlert, e as PlanViewInput, f as PlanViewStatus, S as StepStatus, T as Tone, V as ViewMessage, g as cardReplyId, k as keepSheet, p as planView, u as useBlockReply, h as usePlanView, i as useWaypointMessage, j as useWaypointSelector, l as useWaypointSnapshot } from '../block-reply-r8u-DNmZ.cjs';
|
|
2
|
+
import { g as ReplyState } from '../form-fill-C32AHxSr.cjs';
|
|
3
|
+
export { A as AttachmentPort, B as BuiltinFlowTab, h as CAPABILITIES, i as Capability, C as ClientConfig, b as ClientSnapshot, j as ComposerContribution, k as ConversationReadError, d as ConversationReadResult, l as ConversationSource, m as ConversationSummary, D as DEFAULT_FLOW_TABS, n as FORM_SESSION_UNAVAILABLE, o as FeedbackInput, p as FeedbackPort, q as FlowSource, r as FlowSummary, s as FlowTab, t as FormDraft, u as FormField, v as FormMaterial, a as FormSession, F as FormSessionConfig, w as FormSnapshot, K as KeepChangesReview, x as KeepChangesReviewResult, y as KeepDisabledReason, M as MaybePromise, z as MessageVersionInput, E as MessageVersionPort, N as NegotiationOffer, P as PendingSend, G as PlanReadRefused, H as PlanRunner, I as PlatformPorts, f as ReadPorts, J as ReaderRequestContext, e as ReplyDelivery, R as ReplyInput, L as ReplyOutcome, O as RestoredMessage, Q as RunnerPorts, S as StepContext, T as StoragePort, U as ToolStep, V as TransportEvent, X as TransportPort, W as WaypointClient, c as WaypointEvent, Y as asProblem, Z as canTransition, _ as confirmationOf, $ as createMemoryStorage, a0 as createPlanRunner, a1 as createWaypointClient, a2 as flowTabId, a3 as loadFormSession, a4 as readProblem, a5 as replyRow, a6 as versionWalk } from '../form-fill-C32AHxSr.cjs';
|
|
4
|
+
import { P as Problem } from '../generated-C9tbjwK0.cjs';
|
|
5
|
+
export { B as Block, b as BlockButtons, c as BlockCard, d as BlockChoice, e as BlockDetails, f as BlockDiff, g as BlockForm, h as BlockFormFill, i as BlockList, j as BlockMarkdown, k as BlockNotice, l as BlockPlan, m as BlockRouteLink, n as BlockTable, C as CanonicalRequest, o as CardAnswer, p as ConfirmationItem, q as ConfirmationRecord, r as ConfirmationSchedule, s as Conversation, t as CreateConversation, D as DecisionVersions, E as ExecutionAcceptance, u as ExtensionBlock, v as FinalHistory, a as Flow, w as FlowParameter, x as FormFillField, y as FormFillRequest, z as FormFillValue, A as FormSubject, G as FormValidation, F as Frame, H as FrameBlock, I as FrameMessageEnd, J as FrameMessageStart, K as FramePlanDraft, L as FramePlanFinal, N as FramePlanStep, O as FramePlanningRead, Q as FrameProblem, S as FrameStale, U as FrameTextDelta, V as FrameToolCall, W as ImmediateDraft, X as ImmediatePlan, Y as IntentCause, Z as IntentKind, _ as IntentRequest, $ as IntentTarget, a0 as IntentWinner, a1 as KeptFact, a2 as LeaveAcknowledgment, M as ManifestEntry, a3 as Message, a4 as Negotiated, a5 as Negotiation, a6 as NegotiationOfferWire, a7 as Outcome, a8 as PatchFlow, a9 as Plan, aa as PlanCommand, ab as PlanIntentReply, ac as PlanRecord, ad as PlanState, R as ReadTemplate, ae as RecoveryPhase, af as RecoveryView, ag as Reply, ah as ReplyAction, ai as ReplyConfirm, aj as ReplyDecline, ak as ReplyForm, al as ReplyFormFill, am as ReplyMessage, an as ReplyPlanValues, ao as ReplyStop, ap as ReplyToolResult, aq as RunFlow, ar as Source, as as Step, at as TimedPlan, T as ToolCall, au as WaypointProtocol, av as WinnerKind } from '../generated-C9tbjwK0.cjs';
|
|
6
|
+
import { M as MessageKey } from '../i18n-WC9f-h_q.cjs';
|
|
7
|
+
export { B as BlockCatalogue, a as BlockMessageKey, C as ConfirmationCatalogue, b as ConfirmationMessageKey, F as FormCatalogue, c as FormMessageKey, d as FormatMessage, e as MessageValues, P as ProblemCatalogue, f as ProblemMessageKey, R as RecoveryCatalogue, g as RecoveryMessageKey, h as ReplyCatalogue, i as ReplyMessageKey, j as english } from '../i18n-WC9f-h_q.cjs';
|
|
8
|
+
export { I as IntentAlert, b as IntentFailure, c as IntentNotice, d as IntentOverlay, a as ScopeSignal } from '../intent-BQPPows1.cjs';
|
|
9
|
+
|
|
10
|
+
/** The one action a default problem text offers. */
|
|
11
|
+
declare const problemAction: (problem: Problem) => "retry" | "refresh" | undefined;
|
|
12
|
+
interface ProblemView {
|
|
13
|
+
/** The plain words for the problem. */
|
|
14
|
+
key: MessageKey;
|
|
15
|
+
/** The one action they lead to, when there is one. */
|
|
16
|
+
action?: "retry" | "refresh";
|
|
17
|
+
/** What to show behind a disclosure (`chat.problem.code`, `.reference`). */
|
|
18
|
+
code: Problem["code"];
|
|
19
|
+
id: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* How the chat words a problem by default. `answeredElsewhere`: a card
|
|
23
|
+
* answer was refused and the read after it shows the card answered (see the
|
|
24
|
+
* README's Card answers).
|
|
25
|
+
*/
|
|
26
|
+
declare function problemView(problem: Problem, options?: {
|
|
27
|
+
answeredElsewhere?: boolean;
|
|
28
|
+
}): ProblemView;
|
|
29
|
+
interface ReplyRowAction {
|
|
30
|
+
id: "keepWaiting" | "retry" | "stop";
|
|
31
|
+
labelKey: MessageKey;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* The reply row's words and buttons for a `replyState`: Keep waiting and
|
|
35
|
+
* Retry for an overdue reply (`keepWaiting()`, `retryReply()`), Retry for a
|
|
36
|
+
* failed or unavailable one unless `canRetry` is false (`canRetryReply()`),
|
|
37
|
+
* Stop while one is written when `canStop` (`canStopReply()`,
|
|
38
|
+
* `stopReply()`).
|
|
39
|
+
*/
|
|
40
|
+
declare function replyRowView(state: ReplyState, options?: {
|
|
41
|
+
canStop?: boolean;
|
|
42
|
+
canRetry?: boolean;
|
|
43
|
+
}): {
|
|
44
|
+
key?: MessageKey;
|
|
45
|
+
actions: ReplyRowAction[];
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export { MessageKey, Problem, type ProblemView, type ReplyRowAction, ReplyState, problemAction, problemView, replyRowView };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export { A as ActionEntry, a as ActionId, B as BlockAnswer, b as BlockReply, K as KeepSheet, c as KeepSheetView, P as PlanView, d as PlanViewAlert, e as PlanViewInput, f as PlanViewStatus, S as StepStatus, T as Tone, V as ViewMessage, g as cardReplyId, k as keepSheet, p as planView, u as useBlockReply, h as usePlanView, i as useWaypointMessage, j as useWaypointSelector, l as useWaypointSnapshot } from '../block-reply-z8El20nD.js';
|
|
2
|
+
import { g as ReplyState } from '../form-fill-Dp3ut1_Y.js';
|
|
3
|
+
export { A as AttachmentPort, B as BuiltinFlowTab, h as CAPABILITIES, i as Capability, C as ClientConfig, b as ClientSnapshot, j as ComposerContribution, k as ConversationReadError, d as ConversationReadResult, l as ConversationSource, m as ConversationSummary, D as DEFAULT_FLOW_TABS, n as FORM_SESSION_UNAVAILABLE, o as FeedbackInput, p as FeedbackPort, q as FlowSource, r as FlowSummary, s as FlowTab, t as FormDraft, u as FormField, v as FormMaterial, a as FormSession, F as FormSessionConfig, w as FormSnapshot, K as KeepChangesReview, x as KeepChangesReviewResult, y as KeepDisabledReason, M as MaybePromise, z as MessageVersionInput, E as MessageVersionPort, N as NegotiationOffer, P as PendingSend, G as PlanReadRefused, H as PlanRunner, I as PlatformPorts, f as ReadPorts, J as ReaderRequestContext, e as ReplyDelivery, R as ReplyInput, L as ReplyOutcome, O as RestoredMessage, Q as RunnerPorts, S as StepContext, T as StoragePort, U as ToolStep, V as TransportEvent, X as TransportPort, W as WaypointClient, c as WaypointEvent, Y as asProblem, Z as canTransition, _ as confirmationOf, $ as createMemoryStorage, a0 as createPlanRunner, a1 as createWaypointClient, a2 as flowTabId, a3 as loadFormSession, a4 as readProblem, a5 as replyRow, a6 as versionWalk } from '../form-fill-Dp3ut1_Y.js';
|
|
4
|
+
import { P as Problem } from '../generated-C9tbjwK0.js';
|
|
5
|
+
export { B as Block, b as BlockButtons, c as BlockCard, d as BlockChoice, e as BlockDetails, f as BlockDiff, g as BlockForm, h as BlockFormFill, i as BlockList, j as BlockMarkdown, k as BlockNotice, l as BlockPlan, m as BlockRouteLink, n as BlockTable, C as CanonicalRequest, o as CardAnswer, p as ConfirmationItem, q as ConfirmationRecord, r as ConfirmationSchedule, s as Conversation, t as CreateConversation, D as DecisionVersions, E as ExecutionAcceptance, u as ExtensionBlock, v as FinalHistory, a as Flow, w as FlowParameter, x as FormFillField, y as FormFillRequest, z as FormFillValue, A as FormSubject, G as FormValidation, F as Frame, H as FrameBlock, I as FrameMessageEnd, J as FrameMessageStart, K as FramePlanDraft, L as FramePlanFinal, N as FramePlanStep, O as FramePlanningRead, Q as FrameProblem, S as FrameStale, U as FrameTextDelta, V as FrameToolCall, W as ImmediateDraft, X as ImmediatePlan, Y as IntentCause, Z as IntentKind, _ as IntentRequest, $ as IntentTarget, a0 as IntentWinner, a1 as KeptFact, a2 as LeaveAcknowledgment, M as ManifestEntry, a3 as Message, a4 as Negotiated, a5 as Negotiation, a6 as NegotiationOfferWire, a7 as Outcome, a8 as PatchFlow, a9 as Plan, aa as PlanCommand, ab as PlanIntentReply, ac as PlanRecord, ad as PlanState, R as ReadTemplate, ae as RecoveryPhase, af as RecoveryView, ag as Reply, ah as ReplyAction, ai as ReplyConfirm, aj as ReplyDecline, ak as ReplyForm, al as ReplyFormFill, am as ReplyMessage, an as ReplyPlanValues, ao as ReplyStop, ap as ReplyToolResult, aq as RunFlow, ar as Source, as as Step, at as TimedPlan, T as ToolCall, au as WaypointProtocol, av as WinnerKind } from '../generated-C9tbjwK0.js';
|
|
6
|
+
import { M as MessageKey } from '../i18n-WC9f-h_q.js';
|
|
7
|
+
export { B as BlockCatalogue, a as BlockMessageKey, C as ConfirmationCatalogue, b as ConfirmationMessageKey, F as FormCatalogue, c as FormMessageKey, d as FormatMessage, e as MessageValues, P as ProblemCatalogue, f as ProblemMessageKey, R as RecoveryCatalogue, g as RecoveryMessageKey, h as ReplyCatalogue, i as ReplyMessageKey, j as english } from '../i18n-WC9f-h_q.js';
|
|
8
|
+
export { I as IntentAlert, b as IntentFailure, c as IntentNotice, d as IntentOverlay, a as ScopeSignal } from '../intent-BuvqEU3Q.js';
|
|
9
|
+
|
|
10
|
+
/** The one action a default problem text offers. */
|
|
11
|
+
declare const problemAction: (problem: Problem) => "retry" | "refresh" | undefined;
|
|
12
|
+
interface ProblemView {
|
|
13
|
+
/** The plain words for the problem. */
|
|
14
|
+
key: MessageKey;
|
|
15
|
+
/** The one action they lead to, when there is one. */
|
|
16
|
+
action?: "retry" | "refresh";
|
|
17
|
+
/** What to show behind a disclosure (`chat.problem.code`, `.reference`). */
|
|
18
|
+
code: Problem["code"];
|
|
19
|
+
id: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* How the chat words a problem by default. `answeredElsewhere`: a card
|
|
23
|
+
* answer was refused and the read after it shows the card answered (see the
|
|
24
|
+
* README's Card answers).
|
|
25
|
+
*/
|
|
26
|
+
declare function problemView(problem: Problem, options?: {
|
|
27
|
+
answeredElsewhere?: boolean;
|
|
28
|
+
}): ProblemView;
|
|
29
|
+
interface ReplyRowAction {
|
|
30
|
+
id: "keepWaiting" | "retry" | "stop";
|
|
31
|
+
labelKey: MessageKey;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* The reply row's words and buttons for a `replyState`: Keep waiting and
|
|
35
|
+
* Retry for an overdue reply (`keepWaiting()`, `retryReply()`), Retry for a
|
|
36
|
+
* failed or unavailable one unless `canRetry` is false (`canRetryReply()`),
|
|
37
|
+
* Stop while one is written when `canStop` (`canStopReply()`,
|
|
38
|
+
* `stopReply()`).
|
|
39
|
+
*/
|
|
40
|
+
declare function replyRowView(state: ReplyState, options?: {
|
|
41
|
+
canStop?: boolean;
|
|
42
|
+
canRetry?: boolean;
|
|
43
|
+
}): {
|
|
44
|
+
key?: MessageKey;
|
|
45
|
+
actions: ReplyRowAction[];
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export { MessageKey, Problem, type ProblemView, type ReplyRowAction, ReplyState, problemAction, problemView, replyRowView };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as e,c as o,e as r,f as t,g as p,i as a,j as s,k as l,l as m,m as y,n as c}from"../chunk-QFBAOEPD.js";import"../chunk-L4PFFRDE.js";import"../chunk-T5XF2R74.js";import"../chunk-K73VV7KA.js";import"../chunk-5TBO732O.js";export{s as cardReplyId,o as keepSheet,e as planView,m as problemAction,y as problemView,c as replyRowView,l as useBlockReply,a as usePlanView,p as useWaypointMessage,t as useWaypointSelector,r as useWaypointSnapshot};
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
type RecoveryMessageKey = "chat.recovery.heading" | "chat.recovery.updateToControl" | "chat.recovery.stopping" | "chat.recovery.cancelling" | "chat.recovery.leavePending" | "chat.recovery.currentRunning" | "chat.recovery.currentStopped" | "chat.recovery.cancelledNoChanges" | "chat.recovery.leftKnown" | "chat.recovery.leftUnconfirmed" | "chat.recovery.keptKnown" | "chat.recovery.done" | "chat.recovery.notDone" | "chat.recovery.unknown" | "chat.recovery.stopped" | "chat.recovery.capabilityMissing" | "chat.recovery.intentPendingReason" | "chat.recovery.refreshConversation" | "chat.recovery.hostGuidance" | "chat.recovery.checkIntentStatus" | "chat.recovery.checkSavedChoice" | "chat.recovery.checkKeepStatus" | "chat.recovery.keepChanges" | "chat.recovery.leave" | "chat.recovery.confirmKeepForwardOnly" | "chat.recovery.confirmEndRetention" | "chat.recovery.keepReasonActive" | "chat.recovery.keepReasonUnknown" | "chat.recovery.keepReasonUnavailable" | "chat.recovery.keepReasonChanged" | "chat.recovery.keepReasonPreview" | "chat.recovery.keepReasonNoSource" | "chat.recovery.alreadyKept" | "chat.recovery.stopNotSent" | "chat.recovery.stopNotSentElsewhere" | "chat.recovery.stopUnconfirmed" | "chat.recovery.cancelNotSent" | "chat.recovery.cancelUnconfirmed" | "chat.recovery.reviewCancelNotSent" | "chat.recovery.reviewCancelUnconfirmed" | "chat.recovery.leaveNotSent" | "chat.recovery.leaveUnconfirmed" | "chat.recovery.keepNotSent" | "chat.recovery.keepUnconfirmed" | "chat.recovery.requestAlreadyStopped" | "chat.recovery.requestTargetStopped" | "chat.recovery.requestedIntentApplied" | "chat.recovery.requestedIntentNotApplied" | "chat.recovery.intentSuperseded" | "chat.recovery.intentTargetChanged" | "chat.recovery.alreadyClosedByWinner" | "chat.recovery.alreadyStoppedNeedsDecision" | "chat.recovery.cancelStarted" | "chat.recovery.stoppedNoChanges" | "chat.recovery.initialTargetSettled" | "chat.recovery.initialTargetStopped" | "chat.recovery.reviewTargetSettled" | "chat.recovery.reviewTargetStopped" | "chat.recovery.planClosedKept" | "chat.recovery.keptForwardClosed" | "chat.recovery.keptAlready" | "chat.recovery.leaveCompletedByKeep" | "chat.recovery.leaveCoveredByKeep" | "chat.recovery.leaveNeedsReview" | "chat.recovery.leaveSafetyNeedsReview" | "chat.recovery.laterReceiptAfterKeep" | "chat.recovery.undoSelected" | "chat.recovery.continue" | "chat.recovery.statusProposal" | "chat.recovery.statusCompleted" | "chat.recovery.stepsNotKnownYet" | "chat.recovery.stepsUnknown" | "chat.recovery.stepsNotDone" | "chat.recovery.laterReportAfterKeep" | "chat.recovery.reportedDifferently" | "chat.recovery.notAvailableYet" | "chat.recovery.actionLoading" | "chat.recovery.retryAfterSeconds" | "chat.recovery.keepPending" | "chat.recovery.keepRemainingSteps" | "chat.recovery.signInRequired" | "chat.recovery.requestRefused" | "chat.recovery.acknowledgmentAhead" | "chat.recovery.cancelCoveredByLeaveSafety" | "chat.recovery.cancelCoveredByStopNoChanges" | "chat.recovery.cancelDefeatedByStop" | "chat.recovery.choiceReplacedByStop" | "chat.recovery.initialTargetClosed" | "chat.recovery.keepDefeatedByWinner" | "chat.recovery.leaveDefeatedByWinner" | "chat.recovery.leaveNoDecision" | "chat.recovery.leaveSafetyAlreadyStopped" | "chat.recovery.reopenedEvidence" | "chat.recovery.winnerStopUser" | "chat.recovery.winnerStopConnection" | "chat.recovery.winnerStopRenewal" | "chat.recovery.winnerStopStep" | "chat.recovery.winnerStopStepUp" | "chat.recovery.winnerStopIdentity" | "chat.recovery.winnerStopAttribution" | "chat.recovery.winnerStopChanged" | "chat.recovery.winnerStopAdapter" | "chat.recovery.winnerCancel" | "chat.recovery.winnerLeave" | "chat.recovery.winnerKeep" | "chat.recovery.stepStatusChanged" | "chat.recovery.stepNotKnownYet";
|
|
2
|
+
type RecoveryCatalogue = Readonly<Record<RecoveryMessageKey, string>>;
|
|
3
|
+
|
|
4
|
+
type BlockMessageKey = "chat.block.required" | "chat.block.requiredMissing" | "chat.block.answerMissing" | "chat.block.empty" | "chat.block.tierLow" | "chat.block.tierSensitive" | "chat.block.undoCompareAndSet" | "chat.block.undoArchiveCreated" | "chat.block.undoInverse" | "chat.block.status" | "chat.block.outcomeDone" | "chat.block.outcomeFailed" | "chat.block.retryable" | "chat.block.notRetryable" | "chat.block.state.proposed" | "chat.block.state.awaiting-confirmation" | "chat.block.state.running" | "chat.block.state.undoing" | "chat.block.state.completed" | "chat.block.state.submitted" | "chat.block.state.undone" | "chat.block.state.needs-attention" | "chat.block.state.cancelled" | "chat.block.run" | "chat.block.runMissing" | "chat.block.favourite" | "chat.block.flowLoading" | "chat.block.flowsLoading" | "chat.block.flowsEmpty" | "chat.block.answered" | "chat.block.answeredWith";
|
|
5
|
+
type BlockCatalogue = Readonly<Record<BlockMessageKey, string>>;
|
|
6
|
+
|
|
7
|
+
type ConfirmationMessageKey = "chat.confirmation.heading" | "chat.confirmation.apply" | "chat.confirmation.schedule" | "chat.confirmation.applyCount" | "chat.confirmation.scheduleCount" | "chat.confirmation.unavailable" | "chat.confirmation.expired" | "chat.confirmation.used" | "chat.confirmation.changed" | "chat.confirmation.mismatch" | "chat.confirmation.irreversible" | "chat.confirmation.before" | "chat.confirmation.after" | "chat.confirmation.refresh" | "chat.confirmation.verifications" | "chat.confirmation.expires" | "chat.confirmation.showAll";
|
|
8
|
+
type ConfirmationCatalogue = Readonly<Record<ConfirmationMessageKey, string>>;
|
|
9
|
+
|
|
10
|
+
type ProblemMessageKey = "chat.problem.signIn" | "chat.problem.retryable" | "chat.problem.rateLimited" | "chat.problem.refused" | "chat.problem.closed" | "chat.problem.full" | "chat.problem.declined" | "chat.problem.unavailable" | "chat.problem.stepUp" | "chat.problem.invalid" | "chat.problem.mismatch" | "chat.problem.agreement" | "chat.problem.inDoubt" | "chat.problem.replaced" | "chat.problem.needsAttention" | "chat.problem.answered" | "chat.problem.details" | "chat.problem.code" | "chat.problem.reference" | "chat.problem.refresh";
|
|
11
|
+
type ProblemCatalogue = Readonly<Record<ProblemMessageKey, string>>;
|
|
12
|
+
|
|
13
|
+
type ReplyMessageKey = "chat.reply.stop" | "chat.reply.keepWaiting" | "chat.tool.working" | "chat.tool.running" | "chat.tool.done" | "chat.tool.failed" | "chat.tool.show" | "chat.tool.hide" | "chat.message.actions" | "chat.message.copy" | "chat.message.copied" | "chat.message.copyFailed" | "chat.message.regenerate" | "chat.message.edit" | "chat.message.editLabel" | "chat.message.resend" | "chat.message.good" | "chat.message.bad" | "chat.message.previous" | "chat.message.next" | "chat.message.version";
|
|
14
|
+
type ReplyCatalogue = Readonly<Record<ReplyMessageKey, string>>;
|
|
15
|
+
|
|
16
|
+
type FormMessageKey = "form.generating" | "form.ready" | "form.attention" | "form.reverted" | "form.revert" | "form.revertWait" | "form.suggested" | "form.replaceIt" | "form.keepMine" | "form.attach" | "form.remove" | "form.uploading" | "form.attached" | "form.attachFailed" | "form.removeFailed" | "form.onlyImages" | "form.busy" | "form.unusable";
|
|
17
|
+
type FormCatalogue = Readonly<Record<FormMessageKey, string>>;
|
|
18
|
+
|
|
19
|
+
declare const english: {
|
|
20
|
+
readonly "form.valid": "Valid";
|
|
21
|
+
readonly "form.invalid": "Invalid";
|
|
22
|
+
readonly "form.title": "Fill this form";
|
|
23
|
+
readonly "form.closeHint": "Closing discards this fill; the reply stays in the conversation.";
|
|
24
|
+
readonly "form.generate": "Generate draft";
|
|
25
|
+
readonly "form.references": "Reference links";
|
|
26
|
+
readonly "form.attachment": "Private attachment";
|
|
27
|
+
readonly "form.regenerate": "Regenerate {field}";
|
|
28
|
+
readonly "form.replace": "Replace your edit?";
|
|
29
|
+
readonly "form.marker": "Form";
|
|
30
|
+
readonly "form.filter": "Filter by topic";
|
|
31
|
+
readonly "form.all": "All topics";
|
|
32
|
+
readonly "form.threads": "Sub-threads";
|
|
33
|
+
readonly "form.return": "Back to form or record";
|
|
34
|
+
readonly "form.unlinked": "Saved, not linked";
|
|
35
|
+
readonly "form.toolsLoading": "Draft tools are still loading.";
|
|
36
|
+
readonly "form.toolsFailed": "Draft tools couldn't load. Retry first.";
|
|
37
|
+
readonly "form.fixFirst": "Fix the highlighted fields first.";
|
|
38
|
+
readonly "form.number": "Enter a number.";
|
|
39
|
+
readonly "form.editInForm": "Edit this value in the form.";
|
|
40
|
+
readonly "form.imagesNow": "Images can't be attached right now.";
|
|
41
|
+
readonly "form.imagesHere": "Images can't be attached here.";
|
|
42
|
+
readonly "chat.title": "Conversation";
|
|
43
|
+
readonly "chat.empty": "Start a conversation";
|
|
44
|
+
readonly "chat.message": "Message";
|
|
45
|
+
readonly "chat.send": "Send";
|
|
46
|
+
readonly "chat.sending": "Sending";
|
|
47
|
+
readonly "chat.pendingSending": "Sending…";
|
|
48
|
+
readonly "chat.pendingFailed": "Not sent";
|
|
49
|
+
readonly "chat.planUnavailable": "The plan's steps could not be loaded.";
|
|
50
|
+
readonly "chat.arrival": "New reply";
|
|
51
|
+
readonly "chat.arrivalExcerpt": "New reply: {excerpt}";
|
|
52
|
+
readonly "chat.arrivalFailed": "A reply could not be completed.";
|
|
53
|
+
readonly "chat.arrivalMany": "{count} new replies. Latest: {excerpt}";
|
|
54
|
+
readonly "chat.arrivalManyPlain": "{count} new replies";
|
|
55
|
+
readonly "chat.arrivalManyFailed": "{count} new replies; {failed} could not be completed.";
|
|
56
|
+
readonly "chat.arrivalAllFailed": "{count} replies could not be completed.";
|
|
57
|
+
readonly "chat.transcript": "Messages";
|
|
58
|
+
readonly "chat.outlineItem": "{role}, message {position}: {excerpt}";
|
|
59
|
+
readonly "chat.outlineItemPlain": "{role}, message {position}";
|
|
60
|
+
readonly "chat.roleUser": "You";
|
|
61
|
+
readonly "chat.roleAssistant": "Assistant";
|
|
62
|
+
readonly "chat.messageLoading": "Loading message…";
|
|
63
|
+
readonly "chat.messageUnavailable": "This message cannot be shown right now.";
|
|
64
|
+
readonly "chat.changesTo": "changes to";
|
|
65
|
+
readonly "chat.stepName": "Change {index}";
|
|
66
|
+
readonly "chat.stepNamed": "{name} {index}";
|
|
67
|
+
readonly "chat.fieldName": "Value {index}";
|
|
68
|
+
readonly "chat.scrollRegion": "Scrollable content";
|
|
69
|
+
readonly "chat.conversationReadFailed": "This conversation could not be loaded.";
|
|
70
|
+
readonly "chat.conversationsFailed": "Your conversations could not be loaded.";
|
|
71
|
+
readonly "chat.messagesUnavailable": "Some messages cannot be shown right now.";
|
|
72
|
+
readonly unsupportedContent: "Some content cannot be shown here. Contact the site administrator.";
|
|
73
|
+
readonly "chat.failure": "The request could not be completed.";
|
|
74
|
+
readonly "chat.update": "This chat needs an update.";
|
|
75
|
+
readonly "chat.conversationUnavailable": "This conversation is unavailable. Reload to continue; this does not stop a server turn.";
|
|
76
|
+
readonly "chat.reload": "Reload conversation";
|
|
77
|
+
readonly "chat.retry": "Retry";
|
|
78
|
+
readonly "chat.withdraw": "Withdraw";
|
|
79
|
+
readonly "chat.restored": "Withdrawn messages";
|
|
80
|
+
readonly "chat.restoredEdit": "Edit";
|
|
81
|
+
readonly "chat.restoredDiscard": "Discard";
|
|
82
|
+
readonly "chat.dismiss": "Dismiss";
|
|
83
|
+
readonly "chat.latest": "Back to latest";
|
|
84
|
+
readonly "chat.latestNew": "{count, plural, one {Back to latest, # new reply} other {Back to latest, # new replies}}";
|
|
85
|
+
readonly "chat.outline": "Message outline";
|
|
86
|
+
readonly "chat.outlineFilter": "Filter messages";
|
|
87
|
+
readonly "chat.outlineMatches": "{count, plural, =0 {No messages match} one {# message matches} other {# messages match}}";
|
|
88
|
+
readonly "chat.outlineSearching": "Searching…";
|
|
89
|
+
readonly "chat.rail": "Conversations";
|
|
90
|
+
readonly "chat.close": "Close";
|
|
91
|
+
readonly "chat.quota": "Usage";
|
|
92
|
+
readonly "chat.actions": "Actions";
|
|
93
|
+
readonly "chat.panels": "Extra panels";
|
|
94
|
+
readonly "chat.submit": "Submit";
|
|
95
|
+
readonly "chat.confirm": "Confirm";
|
|
96
|
+
readonly "chat.cancel": "Cancel";
|
|
97
|
+
readonly "chat.stop": "Stop";
|
|
98
|
+
readonly "chat.planChanged": "The plan changed; confirm again.";
|
|
99
|
+
readonly "chat.stopped": "The plan was stopped. Start a new plan to continue.";
|
|
100
|
+
readonly "chat.scheduleUnavailable": "Scheduling is unavailable in this chat.";
|
|
101
|
+
readonly "chat.start": "Start time";
|
|
102
|
+
readonly "chat.end": "End time";
|
|
103
|
+
readonly "chat.view": "View change";
|
|
104
|
+
readonly "chat.irreversible": "Cannot be undone";
|
|
105
|
+
readonly "chat.stepUp": "{count, plural, one {# verification prompt} other {# verification prompts}}";
|
|
106
|
+
readonly "chat.stepUpLabel": "Verification code";
|
|
107
|
+
readonly "chat.plan": "Plan";
|
|
108
|
+
readonly "chat.favourite": "Favourite";
|
|
109
|
+
readonly "chat.run": "Run";
|
|
110
|
+
readonly "chat.flows": "Saved requests";
|
|
111
|
+
readonly "flow.favourites": "Favourites";
|
|
112
|
+
readonly "flow.most-used": "Most used";
|
|
113
|
+
readonly "flow.recent": "Recent";
|
|
114
|
+
readonly "flow.presets": "Presets";
|
|
115
|
+
readonly "reply.writing": "Writing";
|
|
116
|
+
readonly "reply.stopped": "Stopped";
|
|
117
|
+
readonly "chat.sources": "Sources ({count})";
|
|
118
|
+
readonly "chat.source": "Source {index}: {title}";
|
|
119
|
+
readonly "reply.unavailable": "Reply unavailable";
|
|
120
|
+
readonly "reply.failed": "Reply failed";
|
|
121
|
+
readonly "reply.overdue": "Reply overdue";
|
|
122
|
+
readonly "chat.loading": "Loading";
|
|
123
|
+
readonly "chat.before": "Before";
|
|
124
|
+
readonly "chat.after": "After";
|
|
125
|
+
readonly "chat.undo": "Undo";
|
|
126
|
+
readonly "chat.verify": "Verification required";
|
|
127
|
+
readonly "chat.startupLoading": "Loading this conversation…";
|
|
128
|
+
};
|
|
129
|
+
type MessageKey = keyof typeof english | keyof RecoveryCatalogue | keyof ConfirmationCatalogue | keyof BlockCatalogue | keyof ProblemCatalogue | keyof ReplyCatalogue | keyof FormCatalogue;
|
|
130
|
+
declare function addMessages(en: Record<string, string>, zh: Record<string, string>): void;
|
|
131
|
+
type MessageValues = Record<string, string | number | boolean>;
|
|
132
|
+
type FormatMessage = (key: MessageKey, values?: MessageValues) => string;
|
|
133
|
+
declare const simplifiedChinese: Record<keyof typeof english, string>;
|
|
134
|
+
/**
|
|
135
|
+
* The catalogue a BCP 47 tag gets. A tag that is not well formed under the
|
|
136
|
+
* RFC 5646 grammar gets English, and so do the grandfathered Chinese tags
|
|
137
|
+
* of languages other than Mandarin. Otherwise the language is the extended
|
|
138
|
+
* language subtag when there is one, else the primary one; the script is
|
|
139
|
+
* read right after the language and the region right after that, never
|
|
140
|
+
* from extensions or private use. Mandarin with the Hans script, or with no
|
|
141
|
+
* script and a region that is not Traditional, gets Simplified Chinese;
|
|
142
|
+
* every other script and language gets English. `lang` is the tag itself
|
|
143
|
+
* when its catalogue matches it, `en` otherwise.
|
|
144
|
+
*/
|
|
145
|
+
declare function catalogueFor(locale?: string): {
|
|
146
|
+
catalogue: "en" | "zh";
|
|
147
|
+
lang: string;
|
|
148
|
+
};
|
|
149
|
+
declare function createFormatter(locale?: string): FormatMessage;
|
|
150
|
+
|
|
151
|
+
export { type BlockCatalogue as B, type ConfirmationCatalogue as C, type FormCatalogue as F, type MessageKey as M, type ProblemCatalogue as P, type RecoveryCatalogue as R, type BlockMessageKey as a, type ConfirmationMessageKey as b, type FormMessageKey as c, type FormatMessage as d, type MessageValues as e, type ProblemMessageKey as f, type RecoveryMessageKey as g, type ReplyCatalogue as h, type ReplyMessageKey as i, english as j, addMessages as k, catalogueFor as l, createFormatter as m, simplifiedChinese as s };
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
type RecoveryMessageKey = "chat.recovery.heading" | "chat.recovery.updateToControl" | "chat.recovery.stopping" | "chat.recovery.cancelling" | "chat.recovery.leavePending" | "chat.recovery.currentRunning" | "chat.recovery.currentStopped" | "chat.recovery.cancelledNoChanges" | "chat.recovery.leftKnown" | "chat.recovery.leftUnconfirmed" | "chat.recovery.keptKnown" | "chat.recovery.done" | "chat.recovery.notDone" | "chat.recovery.unknown" | "chat.recovery.stopped" | "chat.recovery.capabilityMissing" | "chat.recovery.intentPendingReason" | "chat.recovery.refreshConversation" | "chat.recovery.hostGuidance" | "chat.recovery.checkIntentStatus" | "chat.recovery.checkSavedChoice" | "chat.recovery.checkKeepStatus" | "chat.recovery.keepChanges" | "chat.recovery.leave" | "chat.recovery.confirmKeepForwardOnly" | "chat.recovery.confirmEndRetention" | "chat.recovery.keepReasonActive" | "chat.recovery.keepReasonUnknown" | "chat.recovery.keepReasonUnavailable" | "chat.recovery.keepReasonChanged" | "chat.recovery.keepReasonPreview" | "chat.recovery.keepReasonNoSource" | "chat.recovery.alreadyKept" | "chat.recovery.stopNotSent" | "chat.recovery.stopNotSentElsewhere" | "chat.recovery.stopUnconfirmed" | "chat.recovery.cancelNotSent" | "chat.recovery.cancelUnconfirmed" | "chat.recovery.reviewCancelNotSent" | "chat.recovery.reviewCancelUnconfirmed" | "chat.recovery.leaveNotSent" | "chat.recovery.leaveUnconfirmed" | "chat.recovery.keepNotSent" | "chat.recovery.keepUnconfirmed" | "chat.recovery.requestAlreadyStopped" | "chat.recovery.requestTargetStopped" | "chat.recovery.requestedIntentApplied" | "chat.recovery.requestedIntentNotApplied" | "chat.recovery.intentSuperseded" | "chat.recovery.intentTargetChanged" | "chat.recovery.alreadyClosedByWinner" | "chat.recovery.alreadyStoppedNeedsDecision" | "chat.recovery.cancelStarted" | "chat.recovery.stoppedNoChanges" | "chat.recovery.initialTargetSettled" | "chat.recovery.initialTargetStopped" | "chat.recovery.reviewTargetSettled" | "chat.recovery.reviewTargetStopped" | "chat.recovery.planClosedKept" | "chat.recovery.keptForwardClosed" | "chat.recovery.keptAlready" | "chat.recovery.leaveCompletedByKeep" | "chat.recovery.leaveCoveredByKeep" | "chat.recovery.leaveNeedsReview" | "chat.recovery.leaveSafetyNeedsReview" | "chat.recovery.laterReceiptAfterKeep" | "chat.recovery.undoSelected" | "chat.recovery.continue" | "chat.recovery.statusProposal" | "chat.recovery.statusCompleted" | "chat.recovery.stepsNotKnownYet" | "chat.recovery.stepsUnknown" | "chat.recovery.stepsNotDone" | "chat.recovery.laterReportAfterKeep" | "chat.recovery.reportedDifferently" | "chat.recovery.notAvailableYet" | "chat.recovery.actionLoading" | "chat.recovery.retryAfterSeconds" | "chat.recovery.keepPending" | "chat.recovery.keepRemainingSteps" | "chat.recovery.signInRequired" | "chat.recovery.requestRefused" | "chat.recovery.acknowledgmentAhead" | "chat.recovery.cancelCoveredByLeaveSafety" | "chat.recovery.cancelCoveredByStopNoChanges" | "chat.recovery.cancelDefeatedByStop" | "chat.recovery.choiceReplacedByStop" | "chat.recovery.initialTargetClosed" | "chat.recovery.keepDefeatedByWinner" | "chat.recovery.leaveDefeatedByWinner" | "chat.recovery.leaveNoDecision" | "chat.recovery.leaveSafetyAlreadyStopped" | "chat.recovery.reopenedEvidence" | "chat.recovery.winnerStopUser" | "chat.recovery.winnerStopConnection" | "chat.recovery.winnerStopRenewal" | "chat.recovery.winnerStopStep" | "chat.recovery.winnerStopStepUp" | "chat.recovery.winnerStopIdentity" | "chat.recovery.winnerStopAttribution" | "chat.recovery.winnerStopChanged" | "chat.recovery.winnerStopAdapter" | "chat.recovery.winnerCancel" | "chat.recovery.winnerLeave" | "chat.recovery.winnerKeep" | "chat.recovery.stepStatusChanged" | "chat.recovery.stepNotKnownYet";
|
|
2
|
+
type RecoveryCatalogue = Readonly<Record<RecoveryMessageKey, string>>;
|
|
3
|
+
|
|
4
|
+
type BlockMessageKey = "chat.block.required" | "chat.block.requiredMissing" | "chat.block.answerMissing" | "chat.block.empty" | "chat.block.tierLow" | "chat.block.tierSensitive" | "chat.block.undoCompareAndSet" | "chat.block.undoArchiveCreated" | "chat.block.undoInverse" | "chat.block.status" | "chat.block.outcomeDone" | "chat.block.outcomeFailed" | "chat.block.retryable" | "chat.block.notRetryable" | "chat.block.state.proposed" | "chat.block.state.awaiting-confirmation" | "chat.block.state.running" | "chat.block.state.undoing" | "chat.block.state.completed" | "chat.block.state.submitted" | "chat.block.state.undone" | "chat.block.state.needs-attention" | "chat.block.state.cancelled" | "chat.block.run" | "chat.block.runMissing" | "chat.block.favourite" | "chat.block.flowLoading" | "chat.block.flowsLoading" | "chat.block.flowsEmpty" | "chat.block.answered" | "chat.block.answeredWith";
|
|
5
|
+
type BlockCatalogue = Readonly<Record<BlockMessageKey, string>>;
|
|
6
|
+
|
|
7
|
+
type ConfirmationMessageKey = "chat.confirmation.heading" | "chat.confirmation.apply" | "chat.confirmation.schedule" | "chat.confirmation.applyCount" | "chat.confirmation.scheduleCount" | "chat.confirmation.unavailable" | "chat.confirmation.expired" | "chat.confirmation.used" | "chat.confirmation.changed" | "chat.confirmation.mismatch" | "chat.confirmation.irreversible" | "chat.confirmation.before" | "chat.confirmation.after" | "chat.confirmation.refresh" | "chat.confirmation.verifications" | "chat.confirmation.expires" | "chat.confirmation.showAll";
|
|
8
|
+
type ConfirmationCatalogue = Readonly<Record<ConfirmationMessageKey, string>>;
|
|
9
|
+
|
|
10
|
+
type ProblemMessageKey = "chat.problem.signIn" | "chat.problem.retryable" | "chat.problem.rateLimited" | "chat.problem.refused" | "chat.problem.closed" | "chat.problem.full" | "chat.problem.declined" | "chat.problem.unavailable" | "chat.problem.stepUp" | "chat.problem.invalid" | "chat.problem.mismatch" | "chat.problem.agreement" | "chat.problem.inDoubt" | "chat.problem.replaced" | "chat.problem.needsAttention" | "chat.problem.answered" | "chat.problem.details" | "chat.problem.code" | "chat.problem.reference" | "chat.problem.refresh";
|
|
11
|
+
type ProblemCatalogue = Readonly<Record<ProblemMessageKey, string>>;
|
|
12
|
+
|
|
13
|
+
type ReplyMessageKey = "chat.reply.stop" | "chat.reply.keepWaiting" | "chat.tool.working" | "chat.tool.running" | "chat.tool.done" | "chat.tool.failed" | "chat.tool.show" | "chat.tool.hide" | "chat.message.actions" | "chat.message.copy" | "chat.message.copied" | "chat.message.copyFailed" | "chat.message.regenerate" | "chat.message.edit" | "chat.message.editLabel" | "chat.message.resend" | "chat.message.good" | "chat.message.bad" | "chat.message.previous" | "chat.message.next" | "chat.message.version";
|
|
14
|
+
type ReplyCatalogue = Readonly<Record<ReplyMessageKey, string>>;
|
|
15
|
+
|
|
16
|
+
type FormMessageKey = "form.generating" | "form.ready" | "form.attention" | "form.reverted" | "form.revert" | "form.revertWait" | "form.suggested" | "form.replaceIt" | "form.keepMine" | "form.attach" | "form.remove" | "form.uploading" | "form.attached" | "form.attachFailed" | "form.removeFailed" | "form.onlyImages" | "form.busy" | "form.unusable";
|
|
17
|
+
type FormCatalogue = Readonly<Record<FormMessageKey, string>>;
|
|
18
|
+
|
|
19
|
+
declare const english: {
|
|
20
|
+
readonly "form.valid": "Valid";
|
|
21
|
+
readonly "form.invalid": "Invalid";
|
|
22
|
+
readonly "form.title": "Fill this form";
|
|
23
|
+
readonly "form.closeHint": "Closing discards this fill; the reply stays in the conversation.";
|
|
24
|
+
readonly "form.generate": "Generate draft";
|
|
25
|
+
readonly "form.references": "Reference links";
|
|
26
|
+
readonly "form.attachment": "Private attachment";
|
|
27
|
+
readonly "form.regenerate": "Regenerate {field}";
|
|
28
|
+
readonly "form.replace": "Replace your edit?";
|
|
29
|
+
readonly "form.marker": "Form";
|
|
30
|
+
readonly "form.filter": "Filter by topic";
|
|
31
|
+
readonly "form.all": "All topics";
|
|
32
|
+
readonly "form.threads": "Sub-threads";
|
|
33
|
+
readonly "form.return": "Back to form or record";
|
|
34
|
+
readonly "form.unlinked": "Saved, not linked";
|
|
35
|
+
readonly "form.toolsLoading": "Draft tools are still loading.";
|
|
36
|
+
readonly "form.toolsFailed": "Draft tools couldn't load. Retry first.";
|
|
37
|
+
readonly "form.fixFirst": "Fix the highlighted fields first.";
|
|
38
|
+
readonly "form.number": "Enter a number.";
|
|
39
|
+
readonly "form.editInForm": "Edit this value in the form.";
|
|
40
|
+
readonly "form.imagesNow": "Images can't be attached right now.";
|
|
41
|
+
readonly "form.imagesHere": "Images can't be attached here.";
|
|
42
|
+
readonly "chat.title": "Conversation";
|
|
43
|
+
readonly "chat.empty": "Start a conversation";
|
|
44
|
+
readonly "chat.message": "Message";
|
|
45
|
+
readonly "chat.send": "Send";
|
|
46
|
+
readonly "chat.sending": "Sending";
|
|
47
|
+
readonly "chat.pendingSending": "Sending…";
|
|
48
|
+
readonly "chat.pendingFailed": "Not sent";
|
|
49
|
+
readonly "chat.planUnavailable": "The plan's steps could not be loaded.";
|
|
50
|
+
readonly "chat.arrival": "New reply";
|
|
51
|
+
readonly "chat.arrivalExcerpt": "New reply: {excerpt}";
|
|
52
|
+
readonly "chat.arrivalFailed": "A reply could not be completed.";
|
|
53
|
+
readonly "chat.arrivalMany": "{count} new replies. Latest: {excerpt}";
|
|
54
|
+
readonly "chat.arrivalManyPlain": "{count} new replies";
|
|
55
|
+
readonly "chat.arrivalManyFailed": "{count} new replies; {failed} could not be completed.";
|
|
56
|
+
readonly "chat.arrivalAllFailed": "{count} replies could not be completed.";
|
|
57
|
+
readonly "chat.transcript": "Messages";
|
|
58
|
+
readonly "chat.outlineItem": "{role}, message {position}: {excerpt}";
|
|
59
|
+
readonly "chat.outlineItemPlain": "{role}, message {position}";
|
|
60
|
+
readonly "chat.roleUser": "You";
|
|
61
|
+
readonly "chat.roleAssistant": "Assistant";
|
|
62
|
+
readonly "chat.messageLoading": "Loading message…";
|
|
63
|
+
readonly "chat.messageUnavailable": "This message cannot be shown right now.";
|
|
64
|
+
readonly "chat.changesTo": "changes to";
|
|
65
|
+
readonly "chat.stepName": "Change {index}";
|
|
66
|
+
readonly "chat.stepNamed": "{name} {index}";
|
|
67
|
+
readonly "chat.fieldName": "Value {index}";
|
|
68
|
+
readonly "chat.scrollRegion": "Scrollable content";
|
|
69
|
+
readonly "chat.conversationReadFailed": "This conversation could not be loaded.";
|
|
70
|
+
readonly "chat.conversationsFailed": "Your conversations could not be loaded.";
|
|
71
|
+
readonly "chat.messagesUnavailable": "Some messages cannot be shown right now.";
|
|
72
|
+
readonly unsupportedContent: "Some content cannot be shown here. Contact the site administrator.";
|
|
73
|
+
readonly "chat.failure": "The request could not be completed.";
|
|
74
|
+
readonly "chat.update": "This chat needs an update.";
|
|
75
|
+
readonly "chat.conversationUnavailable": "This conversation is unavailable. Reload to continue; this does not stop a server turn.";
|
|
76
|
+
readonly "chat.reload": "Reload conversation";
|
|
77
|
+
readonly "chat.retry": "Retry";
|
|
78
|
+
readonly "chat.withdraw": "Withdraw";
|
|
79
|
+
readonly "chat.restored": "Withdrawn messages";
|
|
80
|
+
readonly "chat.restoredEdit": "Edit";
|
|
81
|
+
readonly "chat.restoredDiscard": "Discard";
|
|
82
|
+
readonly "chat.dismiss": "Dismiss";
|
|
83
|
+
readonly "chat.latest": "Back to latest";
|
|
84
|
+
readonly "chat.latestNew": "{count, plural, one {Back to latest, # new reply} other {Back to latest, # new replies}}";
|
|
85
|
+
readonly "chat.outline": "Message outline";
|
|
86
|
+
readonly "chat.outlineFilter": "Filter messages";
|
|
87
|
+
readonly "chat.outlineMatches": "{count, plural, =0 {No messages match} one {# message matches} other {# messages match}}";
|
|
88
|
+
readonly "chat.outlineSearching": "Searching…";
|
|
89
|
+
readonly "chat.rail": "Conversations";
|
|
90
|
+
readonly "chat.close": "Close";
|
|
91
|
+
readonly "chat.quota": "Usage";
|
|
92
|
+
readonly "chat.actions": "Actions";
|
|
93
|
+
readonly "chat.panels": "Extra panels";
|
|
94
|
+
readonly "chat.submit": "Submit";
|
|
95
|
+
readonly "chat.confirm": "Confirm";
|
|
96
|
+
readonly "chat.cancel": "Cancel";
|
|
97
|
+
readonly "chat.stop": "Stop";
|
|
98
|
+
readonly "chat.planChanged": "The plan changed; confirm again.";
|
|
99
|
+
readonly "chat.stopped": "The plan was stopped. Start a new plan to continue.";
|
|
100
|
+
readonly "chat.scheduleUnavailable": "Scheduling is unavailable in this chat.";
|
|
101
|
+
readonly "chat.start": "Start time";
|
|
102
|
+
readonly "chat.end": "End time";
|
|
103
|
+
readonly "chat.view": "View change";
|
|
104
|
+
readonly "chat.irreversible": "Cannot be undone";
|
|
105
|
+
readonly "chat.stepUp": "{count, plural, one {# verification prompt} other {# verification prompts}}";
|
|
106
|
+
readonly "chat.stepUpLabel": "Verification code";
|
|
107
|
+
readonly "chat.plan": "Plan";
|
|
108
|
+
readonly "chat.favourite": "Favourite";
|
|
109
|
+
readonly "chat.run": "Run";
|
|
110
|
+
readonly "chat.flows": "Saved requests";
|
|
111
|
+
readonly "flow.favourites": "Favourites";
|
|
112
|
+
readonly "flow.most-used": "Most used";
|
|
113
|
+
readonly "flow.recent": "Recent";
|
|
114
|
+
readonly "flow.presets": "Presets";
|
|
115
|
+
readonly "reply.writing": "Writing";
|
|
116
|
+
readonly "reply.stopped": "Stopped";
|
|
117
|
+
readonly "chat.sources": "Sources ({count})";
|
|
118
|
+
readonly "chat.source": "Source {index}: {title}";
|
|
119
|
+
readonly "reply.unavailable": "Reply unavailable";
|
|
120
|
+
readonly "reply.failed": "Reply failed";
|
|
121
|
+
readonly "reply.overdue": "Reply overdue";
|
|
122
|
+
readonly "chat.loading": "Loading";
|
|
123
|
+
readonly "chat.before": "Before";
|
|
124
|
+
readonly "chat.after": "After";
|
|
125
|
+
readonly "chat.undo": "Undo";
|
|
126
|
+
readonly "chat.verify": "Verification required";
|
|
127
|
+
readonly "chat.startupLoading": "Loading this conversation…";
|
|
128
|
+
};
|
|
129
|
+
type MessageKey = keyof typeof english | keyof RecoveryCatalogue | keyof ConfirmationCatalogue | keyof BlockCatalogue | keyof ProblemCatalogue | keyof ReplyCatalogue | keyof FormCatalogue;
|
|
130
|
+
declare function addMessages(en: Record<string, string>, zh: Record<string, string>): void;
|
|
131
|
+
type MessageValues = Record<string, string | number | boolean>;
|
|
132
|
+
type FormatMessage = (key: MessageKey, values?: MessageValues) => string;
|
|
133
|
+
declare const simplifiedChinese: Record<keyof typeof english, string>;
|
|
134
|
+
/**
|
|
135
|
+
* The catalogue a BCP 47 tag gets. A tag that is not well formed under the
|
|
136
|
+
* RFC 5646 grammar gets English, and so do the grandfathered Chinese tags
|
|
137
|
+
* of languages other than Mandarin. Otherwise the language is the extended
|
|
138
|
+
* language subtag when there is one, else the primary one; the script is
|
|
139
|
+
* read right after the language and the region right after that, never
|
|
140
|
+
* from extensions or private use. Mandarin with the Hans script, or with no
|
|
141
|
+
* script and a region that is not Traditional, gets Simplified Chinese;
|
|
142
|
+
* every other script and language gets English. `lang` is the tag itself
|
|
143
|
+
* when its catalogue matches it, `en` otherwise.
|
|
144
|
+
*/
|
|
145
|
+
declare function catalogueFor(locale?: string): {
|
|
146
|
+
catalogue: "en" | "zh";
|
|
147
|
+
lang: string;
|
|
148
|
+
};
|
|
149
|
+
declare function createFormatter(locale?: string): FormatMessage;
|
|
150
|
+
|
|
151
|
+
export { type BlockCatalogue as B, type ConfirmationCatalogue as C, type FormCatalogue as F, type MessageKey as M, type ProblemCatalogue as P, type RecoveryCatalogue as R, type BlockMessageKey as a, type ConfirmationMessageKey as b, type FormMessageKey as c, type FormatMessage as d, type MessageValues as e, type ProblemMessageKey as f, type RecoveryMessageKey as g, type ReplyCatalogue as h, type ReplyMessageKey as i, english as j, addMessages as k, catalogueFor as l, createFormatter as m, simplifiedChinese as s };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { B as Block } from './generated-C9tbjwK0.cjs';
|
|
2
|
+
|
|
3
|
+
interface HttpResult {
|
|
4
|
+
status: number;
|
|
5
|
+
body: unknown;
|
|
6
|
+
}
|
|
7
|
+
interface HttpInit {
|
|
8
|
+
method?: string;
|
|
9
|
+
headers?: Record<string, string>;
|
|
10
|
+
body?: string;
|
|
11
|
+
}
|
|
12
|
+
type HttpRequest = (path: string, init?: HttpInit) => Promise<HttpResult>;
|
|
13
|
+
interface ConformanceConfig {
|
|
14
|
+
baseUrl: string;
|
|
15
|
+
request: HttpRequest;
|
|
16
|
+
profile: "admin-host" | "app-host";
|
|
17
|
+
noStepUp?: boolean;
|
|
18
|
+
}
|
|
19
|
+
interface ConformanceResult {
|
|
20
|
+
passed: boolean;
|
|
21
|
+
failures: string[];
|
|
22
|
+
scenarios: string[];
|
|
23
|
+
}
|
|
24
|
+
/** The problem a failed load of the conformance code rejects with. */
|
|
25
|
+
declare const CONFORMANCE_UNAVAILABLE: {
|
|
26
|
+
readonly code: "retryable";
|
|
27
|
+
readonly id: "conformance-load";
|
|
28
|
+
};
|
|
29
|
+
declare function runConformance(config: ConformanceConfig): Promise<ConformanceResult>;
|
|
30
|
+
declare function runPlanConformance(request: HttpRequest): Promise<ConformanceResult>;
|
|
31
|
+
declare function runFormFillConformance(request: HttpRequest): Promise<ConformanceResult>;
|
|
32
|
+
type ConformanceBlock = Block;
|
|
33
|
+
|
|
34
|
+
export { type ConformanceResult as C, type HttpRequest as H, type ConformanceConfig as a, CONFORMANCE_UNAVAILABLE as b, type ConformanceBlock as c, type HttpInit as d, type HttpResult as e, runFormFillConformance as f, runPlanConformance as g, runConformance as r };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { B as Block } from './generated-C9tbjwK0.js';
|
|
2
|
+
|
|
3
|
+
interface HttpResult {
|
|
4
|
+
status: number;
|
|
5
|
+
body: unknown;
|
|
6
|
+
}
|
|
7
|
+
interface HttpInit {
|
|
8
|
+
method?: string;
|
|
9
|
+
headers?: Record<string, string>;
|
|
10
|
+
body?: string;
|
|
11
|
+
}
|
|
12
|
+
type HttpRequest = (path: string, init?: HttpInit) => Promise<HttpResult>;
|
|
13
|
+
interface ConformanceConfig {
|
|
14
|
+
baseUrl: string;
|
|
15
|
+
request: HttpRequest;
|
|
16
|
+
profile: "admin-host" | "app-host";
|
|
17
|
+
noStepUp?: boolean;
|
|
18
|
+
}
|
|
19
|
+
interface ConformanceResult {
|
|
20
|
+
passed: boolean;
|
|
21
|
+
failures: string[];
|
|
22
|
+
scenarios: string[];
|
|
23
|
+
}
|
|
24
|
+
/** The problem a failed load of the conformance code rejects with. */
|
|
25
|
+
declare const CONFORMANCE_UNAVAILABLE: {
|
|
26
|
+
readonly code: "retryable";
|
|
27
|
+
readonly id: "conformance-load";
|
|
28
|
+
};
|
|
29
|
+
declare function runConformance(config: ConformanceConfig): Promise<ConformanceResult>;
|
|
30
|
+
declare function runPlanConformance(request: HttpRequest): Promise<ConformanceResult>;
|
|
31
|
+
declare function runFormFillConformance(request: HttpRequest): Promise<ConformanceResult>;
|
|
32
|
+
type ConformanceBlock = Block;
|
|
33
|
+
|
|
34
|
+
export { type ConformanceResult as C, type HttpRequest as H, type ConformanceConfig as a, CONFORMANCE_UNAVAILABLE as b, type ConformanceBlock as c, type HttpInit as d, type HttpResult as e, runFormFillConformance as f, runPlanConformance as g, runConformance as r };
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunk6OZSKCPTcjs = require('./chunk-6OZSKCPT.cjs');var _chunk3KV7TDDRcjs = require('./chunk-3KV7TDDR.cjs');var _chunkQ7BULGQGcjs = require('./chunk-Q7BULGQG.cjs');require('./chunk-XSHOLIC7.cjs');require('./chunk-II26UWZM.cjs');var b={code:"retryable",id:"conformance-load"},m=async()=>{try{return await Promise.resolve().then(() => _interopRequireWildcard(require("./conformance.cjs")))}catch (e2){throw{...b}}};async function J(e){return(await m()).runConformance(e)}async function _(e){return(await m()).runPlanConformance(e)}async function D(e){return(await m()).runFormFillConformance(e)}async function*z(e,t){yield*(await Promise.resolve().then(() => _interopRequireWildcard(require("./frame-decoder.cjs")))).decodeFrames(e,t)}function d(e,t,i="sse"){let u=o=>o?{"Waypoint-Agreement":o.agreementId}:{},y=async(o,n,r)=>{let s=await e(o,{method:"POST",headers:{"Content-Type":"application/json",...u(r)},body:JSON.stringify(n)});if(s.status<200||s.status>=300)throw s.body;return s.body};return{negotiate:async(o,n)=>{let r=await e("/negotiate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({protocol:"1.0",supported:o,...n?{offer:{capabilities:[...n.capabilities]}}:{}})});if(r.status===401)throw{code:"sign-in",id:"negotiation"};if(r.status<200||r.status>=300)throw r.body;return r.body},read:async(o,n)=>{let r=await e(`/conversations/${encodeURIComponent(o)}`,n?{headers:u(n)}:void 0);if(r.status!==200)throw new (0, _chunk3KV7TDDRcjs.g)(o,r.status,r.body);return r.body},send:async(o,n,r)=>await y(`/conversations/${encodeURIComponent(n)}/${o.kind==="message"?"messages":"replies"}`,o,r),subscribe(o,n,r){let s="",p=[],f=a=>{try{let l=JSON.parse(a);n({type:"frame",frame:l})}catch (e3){n({type:"status",status:"unavailable"})}};return t.subscribe(`/conversations/${encodeURIComponent(o)}/stream${r?`?waypointAgreement=${encodeURIComponent(r.agreementId)}`:""}`,a=>{s+=a;let l;for(;(l=s.indexOf(`
|
|
2
|
+
`))>=0;){let c=s.slice(0,l).replace(/\r$/,"");s=s.slice(l+1),i==="signals"?c.trim()&&n({type:"invalidate"}):i!=="sse"?c.trim()&&f(c):c===""?(p.length&&f(p.join(`
|
|
3
|
+
`)),p=[]):c.startsWith("data:")&&p.push(c.slice(5).replace(/^ /,""))}},a=>{(a==="reconnecting"||a==="open")&&(s="",p=[]),n({type:"status",status:a})})}}}function K(e,t){return d(e,t,"signals")}function Q(e,t){return d(e,t,"sse")}function X(e,t){return d(e,t,"ndjson")}function Y(e){return{async list(t){let i=await e(`/conversations${t?`?subject=${encodeURIComponent(t)}`:""}`);if(i.status!==200||!Array.isArray(i.body))throw new Error("Conversation list unavailable");return i.body},async create(t){let i=await e("/conversations",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(i.status<200||i.status>=300)throw i.body;return i.body}}}var v={code:"retryable",id:"form-session-load"};async function ee(e){let t;try{t=await Promise.resolve().then(() => _interopRequireWildcard(require("./form-session.cjs")))}catch (e4){throw{...v}}return t.createFormSession(e)}exports.CAPABILITIES = _chunkQ7BULGQGcjs.b; exports.CONFORMANCE_UNAVAILABLE = b; exports.ConversationReadError = _chunk3KV7TDDRcjs.g; exports.DEFAULT_FLOW_TABS = _chunk3KV7TDDRcjs.e; exports.FORM_SESSION_UNAVAILABLE = v; exports.PlanReadRefused = _chunkQ7BULGQGcjs.h; exports.STREAM_READS_UNAVAILABLE = _chunk3KV7TDDRcjs.a; exports.SUPPORTED_PROTOCOLS = _chunkQ7BULGQGcjs.a; exports.asProblem = _chunk3KV7TDDRcjs.j; exports.bindFlow = _chunk6OZSKCPTcjs.c; exports.blockFallback = _chunkQ7BULGQGcjs.e; exports.canTransition = _chunkQ7BULGQGcjs.i; exports.confirmationOf = _chunk3KV7TDDRcjs.l; exports.createFetchStreamTransport = X; exports.createHttpConversationSource = Y; exports.createHttpTransport = d; exports.createMemoryStorage = _chunk3KV7TDDRcjs.h; exports.createPlanRunner = _chunkQ7BULGQGcjs.j; exports.createSignalTransport = K; exports.createSseTransport = Q; exports.createWaypointClient = _chunk3KV7TDDRcjs.i; exports.decodeFrames = z; exports.flowTabId = _chunk3KV7TDDRcjs.f; exports.handlePlanningRead = _chunk3KV7TDDRcjs.d; exports.handleToolRead = _chunk3KV7TDDRcjs.c; exports.loadFormSession = ee; exports.loadReadHandlers = _chunk3KV7TDDRcjs.b; exports.negotiate = _chunkQ7BULGQGcjs.d; exports.parseFlow = _chunk6OZSKCPTcjs.a; exports.readProblem = _chunk3KV7TDDRcjs.k; exports.replyRow = _chunk3KV7TDDRcjs.m; exports.runConformance = J; exports.runFormFillConformance = D; exports.runPlanConformance = _; exports.validateFlowDocument = _chunk6OZSKCPTcjs.b; exports.versionWalk = _chunk3KV7TDDRcjs.n; exports.withPrerequisites = _chunkQ7BULGQGcjs.c;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { V as TransportEvent, X as TransportPort, l as ConversationSource } from './form-fill-C32AHxSr.cjs';
|
|
2
|
+
export { A as AttachmentPort, B as BuiltinFlowTab, h as CAPABILITIES, i as Capability, C as ClientConfig, b as ClientSnapshot, j as ComposerContribution, k as ConversationReadError, d as ConversationReadResult, m as ConversationSummary, D as DEFAULT_FLOW_TABS, n as FORM_SESSION_UNAVAILABLE, o as FeedbackInput, p as FeedbackPort, q as FlowSource, r as FlowSummary, s as FlowTab, t as FormDraft, u as FormField, v as FormMaterial, a as FormSession, F as FormSessionConfig, w as FormSnapshot, K as KeepChangesReview, x as KeepChangesReviewResult, y as KeepDisabledReason, M as MaybePromise, z as MessageVersionInput, E as MessageVersionPort, N as NegotiationOffer, P as PendingSend, G as PlanReadRefused, H as PlanRunner, I as PlatformPorts, f as ReadPorts, J as ReaderRequestContext, e as ReplyDelivery, R as ReplyInput, L as ReplyOutcome, g as ReplyState, O as RestoredMessage, Q as RunnerPorts, a7 as SUPPORTED_PROTOCOLS, S as StepContext, T as StoragePort, U as ToolStep, W as WaypointClient, c as WaypointEvent, Y as asProblem, a8 as blockFallback, Z as canTransition, _ as confirmationOf, $ as createMemoryStorage, a0 as createPlanRunner, a1 as createWaypointClient, a2 as flowTabId, a3 as loadFormSession, a9 as negotiate, a4 as readProblem, a5 as replyRow, a6 as versionWalk, aa as withPrerequisites } from './form-fill-C32AHxSr.cjs';
|
|
3
|
+
import { H as HttpRequest } from './index-B5idIFTx.cjs';
|
|
4
|
+
export { b as CONFORMANCE_UNAVAILABLE, c as ConformanceBlock, a as ConformanceConfig, C as ConformanceResult, d as HttpInit, e as HttpResult, r as runConformance, f as runFormFillConformance, g as runPlanConformance } from './index-B5idIFTx.cjs';
|
|
5
|
+
export { R as ReadResult, h as handlePlanningRead, a as handleToolRead, l as loadReadHandlers } from './reads-DlpCt8dE.cjs';
|
|
6
|
+
import { F as Frame, a as Flow } from './generated-C9tbjwK0.cjs';
|
|
7
|
+
export { B as Block, b as BlockButtons, c as BlockCard, d as BlockChoice, e as BlockDetails, f as BlockDiff, g as BlockForm, h as BlockFormFill, i as BlockList, j as BlockMarkdown, k as BlockNotice, l as BlockPlan, m as BlockRouteLink, n as BlockTable, C as CanonicalRequest, o as CardAnswer, p as ConfirmationItem, q as ConfirmationRecord, r as ConfirmationSchedule, s as Conversation, t as CreateConversation, D as DecisionVersions, E as ExecutionAcceptance, u as ExtensionBlock, v as FinalHistory, w as FlowParameter, x as FormFillField, y as FormFillRequest, z as FormFillValue, A as FormSubject, G as FormValidation, H as FrameBlock, I as FrameMessageEnd, J as FrameMessageStart, K as FramePlanDraft, L as FramePlanFinal, N as FramePlanStep, O as FramePlanningRead, Q as FrameProblem, S as FrameStale, U as FrameTextDelta, V as FrameToolCall, W as ImmediateDraft, X as ImmediatePlan, Y as IntentCause, Z as IntentKind, _ as IntentRequest, $ as IntentTarget, a0 as IntentWinner, a1 as KeptFact, a2 as LeaveAcknowledgment, M as ManifestEntry, a3 as Message, a4 as Negotiated, a5 as Negotiation, a6 as NegotiationOfferWire, a7 as Outcome, a8 as PatchFlow, a9 as Plan, aa as PlanCommand, ab as PlanIntentReply, ac as PlanRecord, ad as PlanState, P as Problem, R as ReadTemplate, ae as RecoveryPhase, af as RecoveryView, ag as Reply, ah as ReplyAction, ai as ReplyConfirm, aj as ReplyDecline, ak as ReplyForm, al as ReplyFormFill, am as ReplyMessage, an as ReplyPlanValues, ao as ReplyStop, ap as ReplyToolResult, aq as RunFlow, ar as Source, as as Step, at as TimedPlan, T as ToolCall, au as WaypointProtocol, av as WinnerKind } from './generated-C9tbjwK0.cjs';
|
|
8
|
+
export { I as IntentAlert, b as IntentFailure, c as IntentNotice, d as IntentOverlay, a as ScopeSignal } from './intent-BQPPows1.cjs';
|
|
9
|
+
|
|
10
|
+
/** The problem a failed load of the read handlers' code rejects with. */
|
|
11
|
+
declare const STREAM_READS_UNAVAILABLE: {
|
|
12
|
+
readonly code: "retryable";
|
|
13
|
+
readonly id: "stream-reads-load";
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Decodes SSE or NDJSON text chunks into frames. Its code is loaded on
|
|
18
|
+
* first use, outside the core bundle.
|
|
19
|
+
*/
|
|
20
|
+
declare function decodeFrames(chunks: AsyncIterable<string>, format: "sse" | "ndjson"): AsyncGenerator<Frame>;
|
|
21
|
+
interface StreamPort {
|
|
22
|
+
subscribe(path: string, onChunk: (chunk: string) => void, onStatus: (status: "connecting" | "open" | "reconnecting" | "unavailable") => void): () => void;
|
|
23
|
+
}
|
|
24
|
+
declare function createHttpTransport(request: HttpRequest, stream: StreamPort, format?: "sse" | "ndjson" | "signals"): TransportPort;
|
|
25
|
+
declare function createSignalTransport(request: HttpRequest, stream: StreamPort): TransportPort;
|
|
26
|
+
declare function createSseTransport(request: HttpRequest, stream: StreamPort): TransportPort;
|
|
27
|
+
declare function createFetchStreamTransport(request: HttpRequest, stream: StreamPort): TransportPort;
|
|
28
|
+
type TransportListener = (event: TransportEvent) => void;
|
|
29
|
+
declare function createHttpConversationSource(request: HttpRequest): ConversationSource;
|
|
30
|
+
|
|
31
|
+
declare function parseFlow(source: string, operations: readonly string[]): Promise<Flow>;
|
|
32
|
+
declare function validateFlowDocument(value: unknown, operations: readonly string[]): Flow;
|
|
33
|
+
declare function bindFlow(flow: Flow, values: Record<string, unknown>): {
|
|
34
|
+
operation: string;
|
|
35
|
+
arguments: Record<string, unknown>;
|
|
36
|
+
}[];
|
|
37
|
+
|
|
38
|
+
export { ConversationSource, Flow, Frame, HttpRequest, STREAM_READS_UNAVAILABLE, type StreamPort, TransportEvent, type TransportListener, TransportPort, bindFlow, createFetchStreamTransport, createHttpConversationSource, createHttpTransport, createSignalTransport, createSseTransport, decodeFrames, parseFlow, validateFlowDocument };
|