@teaflask/assistant 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/custom-elements.json +264 -0
- package/dist/appearance/theme.d.ts +138 -0
- package/dist/components/approval-card.js +3 -3
- package/dist/components/approval-context.d.ts +20 -0
- package/dist/components/assistant-companion.d.ts +15 -0
- package/dist/components/assistant-page.d.ts +61 -0
- package/dist/components/assistant-palette.d.ts +12 -0
- package/dist/components/assistant-palette.js +2 -2
- package/dist/components/child-transcript.js +1 -1
- package/dist/components/companion-header-disclosure.js +1 -1
- package/dist/components/companion-history-menu.js +1 -1
- package/dist/components/composer.js +11 -65
- package/dist/components/conversation-context.d.ts +6 -0
- package/dist/components/conversation-gate-card.js +1 -1
- package/dist/components/conversation-view.d.ts +11 -0
- package/dist/components/elicitation-context.d.ts +39 -0
- package/dist/components/model-picker-chip.js +4 -2
- package/dist/components/primitives/button.js +25 -17
- package/dist/components/primitives/floating-panel.js +1 -1
- package/dist/components/provider-chip.js +8 -1
- package/dist/components/question-panel-footer.js +1 -1
- package/dist/components/react-tool-view.d.ts +7 -0
- package/dist/components/subagent-count-pill.js +2 -2
- package/dist/components/subagent-group-row.js +1 -26
- package/dist/components/subagent-preview-popover.js +1 -1
- package/dist/components/subscription-connect-arms.js +6 -4
- package/dist/components/subscription-connect-flow.js +30 -45
- package/dist/components/subscription-connected-standing.js +9 -6
- package/dist/components/subscription-plan-notice.js +4 -2
- package/dist/components/teaflask-assistant-provider.d.ts +99 -0
- package/dist/components/teaflask-assistant.d.ts +33 -0
- package/dist/components/tool-views/action-view.js +1 -1
- package/dist/components/tool-views/parts-classes.d.ts +5 -5
- package/dist/components/tool-views/parts-classes.js +5 -5
- package/dist/components/tool-views/parts.d.ts +44 -0
- package/dist/components/tool-views/questions-view.js +2 -2
- package/dist/components/tool-views/view-dom.d.ts +76 -0
- package/dist/components/transcript.js +2 -2
- package/dist/components/use-assistant-activity.d.ts +5 -0
- package/dist/components/use-assistant-conversation.d.ts +99 -2
- package/dist/components/use-store-cell.d.ts +5 -0
- package/dist/components/use-thread-dispatches.js +8 -366
- package/dist/components/use-transcript-folds.js +2 -1
- package/dist/components/use-transcript.d.ts +55 -2
- package/dist/components/use-transcript.js +7 -2
- package/dist/contract/actions-adapter.d.ts +78 -0
- package/dist/contract/errors.d.ts +6 -1
- package/dist/contract/events.d.ts +1 -3
- package/dist/contract/identity.d.ts +1 -1
- package/dist/contract/subscriptions.d.ts +2 -2
- package/dist/contract/subscriptions.js +1 -1
- package/dist/contract/telemetry.d.ts +45 -0
- package/dist/contract/threads.d.ts +5 -1
- package/dist/core/activity.d.ts +44 -0
- package/dist/core/approval-inbox.d.ts +69 -0
- package/dist/core/assistant-session-registry.js +15 -0
- package/dist/core/composer-attachments.js +82 -0
- package/dist/core/composer-input-state.js +1 -0
- package/dist/core/composer-policy.d.ts +20 -0
- package/dist/core/connection-epoch.d.ts +65 -2
- package/dist/core/conversation-adoption.js +3 -0
- package/dist/core/conversation-contract.d.ts +112 -1
- package/dist/core/conversation-publish.js +1 -0
- package/dist/core/conversation-store.d.ts +3 -0
- package/dist/core/conversation-store.js +7 -0
- package/dist/core/dispatch-poll.js +81 -0
- package/dist/core/elicitation-answers.js +12 -0
- package/dist/core/elicitation-cards.d.ts +14 -0
- package/dist/core/elicitation-pickers.d.ts +16 -0
- package/dist/core/memory-provenance-anchors.d.ts +16 -0
- package/dist/core/observable-cell.d.ts +12 -0
- package/dist/core/pending-decision-gap.d.ts +9 -0
- package/dist/core/question-drafts.d.ts +59 -0
- package/dist/core/receipt-anchors.d.ts +9 -0
- package/dist/core/segment-timing.d.ts +23 -0
- package/dist/core/subagent-delivery-anchors.d.ts +7 -0
- package/dist/core/subagent-ledger-join.js +176 -0
- package/dist/core/subagent-rows.d.ts +68 -0
- package/dist/core/thread-dispatch-ledger.js +303 -0
- package/dist/core/tool-call-display.d.ts +71 -0
- package/dist/core/tool-call-presentation.d.ts +34 -1
- package/dist/core/tool-call-presentation.js +0 -1
- package/dist/core/tool-schema-anchors.d.ts +6 -0
- package/dist/core/tool-view.d.ts +174 -1
- package/dist/core/transcript-rows.d.ts +138 -3
- package/dist/core/turn-failed-anchors.d.ts +4 -0
- package/dist/core/user-turn-ledger.d.ts +3 -0
- package/dist/generated/models/apiErrorCode.d.ts +1 -0
- package/dist/generated/models/apiErrorCode.js +1 -0
- package/dist/generated/models/assistantTurnStatus.d.ts +16 -0
- package/dist/generated/models/servingAssistantThreadResponse.d.ts +23 -0
- package/dist/generated/models/servingAttachmentResponse.d.ts +29 -0
- package/dist/generated/models/servingErrorCode.d.ts +18 -0
- package/dist/generated/models/servingTurnAttachmentResponse.d.ts +12 -0
- package/dist/generated/models/siteTheme.d.ts +1 -0
- package/dist/generated/models/thinkingEffort.d.ts +10 -0
- package/dist/generated/models/threadModelPickResponse.d.ts +12 -0
- package/dist/headless.d.ts +9 -4
- package/dist/index.d.ts +2 -6
- package/dist/index.js +0 -3
- package/dist/persistence/stored-thread.d.ts +5 -0
- package/dist/styles.css +1 -1
- package/dist/transport/serving-error.d.ts +21 -0
- package/package.json +6 -25
- package/dist/affordances/highlight.d.ts +0 -3
- package/dist/affordances/prefill.d.ts +0 -14
- package/dist/components/activity-rail.d.ts +0 -12
- package/dist/components/activity-shelf.d.ts +0 -7
- package/dist/components/agent-identity-mark.d.ts +0 -7
- package/dist/components/appearance-context.d.ts +0 -14
- package/dist/components/approval-card.d.ts +0 -7
- package/dist/components/assistant-palette-body.d.ts +0 -3
- package/dist/components/assistant-transcript.d.ts +0 -47
- package/dist/components/attachment-chips.d.ts +0 -4
- package/dist/components/child-transcript.d.ts +0 -22
- package/dist/components/companion-drawer-body.d.ts +0 -1
- package/dist/components/companion-drawer.d.ts +0 -10
- package/dist/components/companion-header-disclosure.d.ts +0 -20
- package/dist/components/companion-history-menu.d.ts +0 -15
- package/dist/components/companion-mark-image.d.ts +0 -3
- package/dist/components/companion-mark-image.js +0 -18
- package/dist/components/companion-mark.d.ts +0 -1
- package/dist/components/companion-mode-menu.d.ts +0 -15
- package/dist/components/composer-attachment-chip.d.ts +0 -7
- package/dist/components/composer-banner.d.ts +0 -4
- package/dist/components/composer.d.ts +0 -4
- package/dist/components/conversation-gate-card.d.ts +0 -8
- package/dist/components/conversation-surfaces-provider.d.ts +0 -6
- package/dist/components/copy-text-button.d.ts +0 -5
- package/dist/components/elicitation-receipt-row.d.ts +0 -4
- package/dist/components/human-file-size.d.ts +0 -1
- package/dist/components/icons.d.ts +0 -15
- package/dist/components/lazy-body.d.ts +0 -4
- package/dist/components/markdown/assistant-markdown.d.ts +0 -3
- package/dist/components/markdown/code-block.d.ts +0 -4
- package/dist/components/markdown/highlight.d.ts +0 -1
- package/dist/components/markdown/markdown-structure.d.ts +0 -16
- package/dist/components/markdown/memoized-blocks.d.ts +0 -6
- package/dist/components/markdown/paced-assistant-markdown.d.ts +0 -4
- package/dist/components/markdown/reveal-pacer.d.ts +0 -20
- package/dist/components/markdown/shiki-highlighter.d.ts +0 -1
- package/dist/components/markdown/streaming-repair.d.ts +0 -1
- package/dist/components/markdown/use-highlighted-html.d.ts +0 -1
- package/dist/components/markdown/use-paced-reveal.d.ts +0 -5
- package/dist/components/memory-updated-footer.d.ts +0 -4
- package/dist/components/message-list-row.d.ts +0 -13
- package/dist/components/message-list-slots.d.ts +0 -25
- package/dist/components/message-list-slots.js +0 -1
- package/dist/components/message-list.d.ts +0 -23
- package/dist/components/model-picker-chip.d.ts +0 -1
- package/dist/components/model-picker-effort.d.ts +0 -4
- package/dist/components/model-picker-panels.d.ts +0 -22
- package/dist/components/notice-banner.d.ts +0 -8
- package/dist/components/operation-icons.d.ts +0 -19
- package/dist/components/pretty-print.d.ts +0 -1
- package/dist/components/primitives/autofocus.d.ts +0 -1
- package/dist/components/primitives/button.d.ts +0 -10
- package/dist/components/primitives/cx.d.ts +0 -1
- package/dist/components/primitives/dialog.d.ts +0 -7
- package/dist/components/primitives/disclosure.d.ts +0 -22
- package/dist/components/primitives/file-input.d.ts +0 -5
- package/dist/components/primitives/floating-panel.d.ts +0 -15
- package/dist/components/primitives/kbd.d.ts +0 -2
- package/dist/components/primitives/sheet.d.ts +0 -11
- package/dist/components/primitives/sheet.js +0 -18
- package/dist/components/primitives/textarea.d.ts +0 -7
- package/dist/components/primitives/use-dock-reflow.d.ts +0 -2
- package/dist/components/primitives/use-swipe-dismiss.d.ts +0 -17
- package/dist/components/provider-chip.d.ts +0 -8
- package/dist/components/question-panel-answers.d.ts +0 -29
- package/dist/components/question-panel-footer.d.ts +0 -9
- package/dist/components/question-panel.d.ts +0 -4
- package/dist/components/reasoning-row.d.ts +0 -4
- package/dist/components/receipt-rows.d.ts +0 -3
- package/dist/components/run-status-announcer.d.ts +0 -5
- package/dist/components/scroll-follow-guards.d.ts +0 -1
- package/dist/components/served-suggestions.d.ts +0 -3
- package/dist/components/slot-boundary.d.ts +0 -11
- package/dist/components/standing-poll.d.ts +0 -1
- package/dist/components/streaming-states.d.ts +0 -12
- package/dist/components/subagent-count-pill.d.ts +0 -8
- package/dist/components/subagent-current-work.d.ts +0 -6
- package/dist/components/subagent-delegation-surface.d.ts +0 -9
- package/dist/components/subagent-delivery-divider.d.ts +0 -5
- package/dist/components/subagent-drill-in.d.ts +0 -8
- package/dist/components/subagent-execution-work.d.ts +0 -3
- package/dist/components/subagent-group-row.d.ts +0 -26
- package/dist/components/subagent-preview-popover.d.ts +0 -8
- package/dist/components/subscription-connect-arms.d.ts +0 -25
- package/dist/components/subscription-connect-flow.d.ts +0 -60
- package/dist/components/subscription-connected-standing.d.ts +0 -16
- package/dist/components/subscription-plan-notice.d.ts +0 -1
- package/dist/components/subscription-recheck.d.ts +0 -10
- package/dist/components/surface-boundary.d.ts +0 -8
- package/dist/components/suspension-surfaces.d.ts +0 -3
- package/dist/components/thread-list.d.ts +0 -16
- package/dist/components/tool-arguments-summary.d.ts +0 -2
- package/dist/components/tool-call-rows.d.ts +0 -10
- package/dist/components/tool-row.d.ts +0 -7
- package/dist/components/tool-view-registry-context.d.ts +0 -3
- package/dist/components/tool-view-slot.d.ts +0 -11
- package/dist/components/tool-views/action-view.d.ts +0 -1
- package/dist/components/tool-views/command-view.d.ts +0 -1
- package/dist/components/tool-views/docs-search-view.d.ts +0 -10
- package/dist/components/tool-views/file-edit-view.d.ts +0 -1
- package/dist/components/tool-views/questions-view.d.ts +0 -1
- package/dist/components/transcript.d.ts +0 -3
- package/dist/components/use-agent-subscriber.d.ts +0 -3
- package/dist/components/use-agent-subscriber.js +0 -13
- package/dist/components/use-answer-list-fold.d.ts +0 -6
- package/dist/components/use-assistant-surface-presence.d.ts +0 -2
- package/dist/components/use-child-replay-stream.d.ts +0 -20
- package/dist/components/use-latest-ref.d.ts +0 -2
- package/dist/components/use-member-toggle-outrank.d.ts +0 -6
- package/dist/components/use-perch-clearance.d.ts +0 -2
- package/dist/components/use-question-panel-keys.d.ts +0 -32
- package/dist/components/use-register-assistant-surface.d.ts +0 -2
- package/dist/components/use-resolved-theme-mode.d.ts +0 -3
- package/dist/components/use-roster-disclosure.d.ts +0 -20
- package/dist/components/use-roster-preview.d.ts +0 -24
- package/dist/components/use-thread-dispatches.d.ts +0 -8
- package/dist/components/use-transcript-folds.d.ts +0 -26
- package/dist/components/user-message.d.ts +0 -6
- package/dist/contract/actions-adapter.js +0 -1
- package/dist/contract/assistant-config.js +0 -1
- package/dist/contract/dispatches.d.ts +0 -15
- package/dist/contract/errors.js +0 -1
- package/dist/contract/identity.js +0 -1
- package/dist/core/activity-title.d.ts +0 -1
- package/dist/core/agent-identity.d.ts +0 -2
- package/dist/core/approval-decision.d.ts +0 -6
- package/dist/core/approval-resolved.d.ts +0 -7
- package/dist/core/assistant-prose.d.ts +0 -2
- package/dist/core/assistant-session-registry.d.ts +0 -51
- package/dist/core/attachment-uploads.d.ts +0 -5
- package/dist/core/block-timing-anchors.d.ts +0 -5
- package/dist/core/companion-drawer-flag.d.ts +0 -4
- package/dist/core/companion-presence.d.ts +0 -7
- package/dist/core/composer-input-state.d.ts +0 -8
- package/dist/core/connection-driver.d.ts +0 -3
- package/dist/core/conversation-adoption.d.ts +0 -13
- package/dist/core/conversation-contract.js +0 -1
- package/dist/core/conversation-publish.d.ts +0 -8
- package/dist/core/conversation-refresh.d.ts +0 -4
- package/dist/core/conversation-send.d.ts +0 -6
- package/dist/core/disposable-subscriber.d.ts +0 -6
- package/dist/core/disposable-subscriber.js +0 -18
- package/dist/core/dock-reflow.d.ts +0 -5
- package/dist/core/elicitation-answers.d.ts +0 -7
- package/dist/core/epoch-sync.d.ts +0 -12
- package/dist/core/error-copy.d.ts +0 -3
- package/dist/core/execution-driver.d.ts +0 -37
- package/dist/core/host-fill.d.ts +0 -1
- package/dist/core/hotkey.d.ts +0 -18
- package/dist/core/identity-pair.d.ts +0 -14
- package/dist/core/idle-recheck.d.ts +0 -3
- package/dist/core/messages-cell.d.ts +0 -11
- package/dist/core/perch-clearance.d.ts +0 -19
- package/dist/core/question-receipt.d.ts +0 -11
- package/dist/core/reasoning-copy.d.ts +0 -2
- package/dist/core/run-folds.d.ts +0 -43
- package/dist/core/run-status.d.ts +0 -4
- package/dist/core/settle-refresh.d.ts +0 -9
- package/dist/core/step-caption.d.ts +0 -2
- package/dist/core/stop-copy.d.ts +0 -1
- package/dist/core/stop-settle.d.ts +0 -5
- package/dist/core/stream-trouble.d.ts +0 -5
- package/dist/core/subagent-brief.d.ts +0 -3
- package/dist/core/subagent-presence.d.ts +0 -10
- package/dist/core/subagent-roster.d.ts +0 -35
- package/dist/core/surface-registry.d.ts +0 -16
- package/dist/core/suspension-queue.d.ts +0 -14
- package/dist/core/tail-slot-pool.d.ts +0 -13
- package/dist/core/time-labels.d.ts +0 -7
- package/dist/core/tool-call-display-anchors.d.ts +0 -11
- package/dist/core/tool-cancel-anchors.d.ts +0 -5
- package/dist/core/tool-decision-anchors.d.ts +0 -6
- package/dist/core/tool-error-anchors.d.ts +0 -5
- package/dist/core/tool-flag-anchors.d.ts +0 -9
- package/dist/core/tool-offload-anchors.d.ts +0 -5
- package/dist/core/tool-outcome.d.ts +0 -9
- package/dist/core/tool-refusal-anchors.d.ts +0 -5
- package/dist/core/tool-result-envelope.d.ts +0 -3
- package/dist/core/tool-sentence-anchors.d.ts +0 -11
- package/dist/core/transcript-lease.d.ts +0 -2
- package/dist/core/turn-failure-copy.d.ts +0 -4
- package/dist/core/turns-backfill.d.ts +0 -14
- package/dist/core/wire-sentence-cap.d.ts +0 -1
- package/dist/generated/serving.d.ts +0 -38
- package/dist/markdown.d.ts +0 -4
- package/dist/markdown.js +0 -4
- package/dist/persistence/execution-ledger.d.ts +0 -7
- package/dist/persistence/panel-mode.d.ts +0 -6
- package/dist/persistence/plan-notice.d.ts +0 -3
- package/dist/reader/accessible-name.d.ts +0 -3
- package/dist/reader/interactivity.d.ts +0 -11
- package/dist/reader/layout-probe.d.ts +0 -29
- package/dist/reader/line-diff.d.ts +0 -1
- package/dist/reader/read-page.d.ts +0 -12
- package/dist/reader/redaction.d.ts +0 -3
- package/dist/reader/render.d.ts +0 -3
- package/dist/reader/roles.d.ts +0 -8
- package/dist/reader/snapshot-compaction.d.ts +0 -5
- package/dist/reader/snapshot-node.d.ts +0 -4
- package/dist/reader/snapshot-root.d.ts +0 -15
- package/dist/reader/snapshot.d.ts +0 -60
- package/dist/reader/visibility.d.ts +0 -8
- package/dist/scroll.d.ts +0 -1
- package/dist/scroll.js +0 -1
- package/dist/transcript-ui.d.ts +0 -15
- package/dist/transcript-ui.js +0 -8
- package/dist/transcript.d.ts +0 -43
- package/dist/transcript.js +0 -38
- package/dist/transport/actions-adapter.d.ts +0 -4
- package/dist/transport/door-budget.d.ts +0 -4
- package/dist/transport/serving-api.d.ts +0 -33
- package/dist/transport/serving-fetch.d.ts +0 -11
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { type RefObject } from "react";
|
|
2
|
-
interface PreviewChoreography {
|
|
3
|
-
previewKey: string | null;
|
|
4
|
-
setPreviewKey: (key: string | null) => void;
|
|
5
|
-
previewRef: RefObject<HTMLDivElement | null>;
|
|
6
|
-
previewOpenerRef: RefObject<HTMLButtonElement | null>;
|
|
7
|
-
mutePreviewFocusOpenRef: RefObject<boolean>;
|
|
8
|
-
onPreviewChange: (key: string, open: boolean) => void;
|
|
9
|
-
onPreviewOpener: (opener: HTMLButtonElement) => void;
|
|
10
|
-
onPreviewFocus: (key: string, opener: HTMLButtonElement) => void;
|
|
11
|
-
focusPreview: () => void;
|
|
12
|
-
}
|
|
13
|
-
export declare function usePreviewChoreography(): PreviewChoreography;
|
|
14
|
-
export declare function usePreviewEscape(wires: {
|
|
15
|
-
floatingRef: RefObject<HTMLDivElement | null>;
|
|
16
|
-
previewRef: RefObject<HTMLDivElement | null>;
|
|
17
|
-
previewOpenerRef: RefObject<HTMLButtonElement | null>;
|
|
18
|
-
mutePreviewFocusOpenRef: RefObject<boolean>;
|
|
19
|
-
previewKey: string | null;
|
|
20
|
-
setPreviewKey: (key: string | null) => void;
|
|
21
|
-
onClose: () => void;
|
|
22
|
-
refocusTrigger: () => void;
|
|
23
|
-
}): void;
|
|
24
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type ThreadDispatch } from "../contract/dispatches.js";
|
|
2
|
-
import type { TranscriptRow } from "../core/transcript-rows.js";
|
|
3
|
-
import type { TokenSession } from "../transport/token-session.js";
|
|
4
|
-
export declare function useThreadDispatches(session: TokenSession, threadId: string | null, rows: readonly TranscriptRow[], onDispatchSettled?: () => void, onDispatchPaused?: () => void): ReadonlyMap<number, ThreadDispatch>;
|
|
5
|
-
export declare function useChildDispatch(session: TokenSession, threadId: string | null, childSessionId: string): {
|
|
6
|
-
dispatch: ThreadDispatch | undefined;
|
|
7
|
-
refreshLedger: () => Promise<ThreadDispatch | undefined>;
|
|
8
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
import { type FoldedBlock, type FoldedTranscriptRow, type RunFoldMember } from "../core/run-folds.js";
|
|
3
|
-
import type { MarkerBoundaries } from "../core/transcript-rows.js";
|
|
4
|
-
import type { MessageListSource } from "./message-list-slots.js";
|
|
5
|
-
export type DisplayRow = FoldedTranscriptRow;
|
|
6
|
-
export declare function useMessageListDerivations(source: MessageListSource, { live, typing, turnOpen, markerBoundaries, turnStartIds, decisionSurfacesInShelf, frameClaimsLiveness, emptyFallback, }: {
|
|
7
|
-
live: boolean;
|
|
8
|
-
typing: boolean;
|
|
9
|
-
turnOpen: boolean | undefined;
|
|
10
|
-
markerBoundaries?: MarkerBoundaries;
|
|
11
|
-
turnStartIds?: ReadonlySet<string>;
|
|
12
|
-
decisionSurfacesInShelf: boolean;
|
|
13
|
-
frameClaimsLiveness: boolean;
|
|
14
|
-
emptyFallback: ReactNode;
|
|
15
|
-
}): {
|
|
16
|
-
foldedBlocks: FoldedBlock[] | null;
|
|
17
|
-
displayRows: readonly FoldedTranscriptRow[];
|
|
18
|
-
currentTurnStart: number;
|
|
19
|
-
blockStarts: number[];
|
|
20
|
-
unrowedAnsweredAsks: import("../headless.js").QuestionSetCardModel[];
|
|
21
|
-
liveIndex: number;
|
|
22
|
-
hostEmptySurfaceShown: boolean;
|
|
23
|
-
livenessClaimant: TrailingLivenessClaimant;
|
|
24
|
-
};
|
|
25
|
-
export type TrailingLivenessClaimant = "tail-row" | "standalone-headline" | "typing-dot" | "none";
|
|
26
|
-
export declare function _foldClaimsLiveness(members: readonly RunFoldMember[], turnLive: boolean): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { AgentDispatchStatus } from "../generated/models/index.js";
|
|
2
|
-
export type { ServingAgentDispatchResponse as ThreadDispatch } from "../generated/models/index.js";
|
|
3
|
-
export type ThreadDispatchStatus = AgentDispatchStatus;
|
|
4
|
-
export declare function dispatchIsRunning(dispatch: {
|
|
5
|
-
status: ThreadDispatchStatus;
|
|
6
|
-
}): boolean;
|
|
7
|
-
export declare function dispatchFailed(dispatch: {
|
|
8
|
-
status: ThreadDispatchStatus;
|
|
9
|
-
}): boolean;
|
|
10
|
-
export declare function dispatchIsPaused(dispatch: {
|
|
11
|
-
status: ThreadDispatchStatus;
|
|
12
|
-
}): boolean;
|
|
13
|
-
export declare function dispatchHasSettled(dispatch: {
|
|
14
|
-
status: ThreadDispatchStatus;
|
|
15
|
-
} | undefined): boolean;
|
package/dist/contract/errors.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function activityTitleOf(label: string): string;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type ApprovalCardModel, type ApprovalDecisionInput } from "./approval-inbox.js";
|
|
2
|
-
import type { ActiveConversation } from "./conversation-contract.js";
|
|
3
|
-
import type { AssistantConversationStore } from "./conversation-store.js";
|
|
4
|
-
import type { ElicitationCardModel } from "./elicitation-cards.js";
|
|
5
|
-
export declare function submitApprovalDecisionFromStore(store: AssistantConversationStore, card: ApprovalCardModel, decision: ApprovalDecisionInput): Promise<void>;
|
|
6
|
-
export declare function turnIdAnsweredBy(store: AssistantConversationStore, active: ActiveConversation, card: ElicitationCardModel): Promise<string | null>;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import type { ServedAttachmentPolicy, ServedModelChoice, ServedSuggestionsConfig } from "../contract/assistant-config.js";
|
|
2
|
-
import type { VisitorTier } from "../contract/identity.js";
|
|
3
|
-
import type { SubscriptionProvider, SubscriptionStatus } from "../contract/subscriptions.js";
|
|
4
|
-
import type { AssistantTelemetryEvent } from "../contract/telemetry.js";
|
|
5
|
-
import type { ServingApiError } from "../transport/serving-error.js";
|
|
6
|
-
import { TokenSession } from "../transport/token-session.js";
|
|
7
|
-
import { type ConversationGate } from "./connect-gate.js";
|
|
8
|
-
import { AssistantConversationStore, type HostCapabilities } from "./conversation-store.js";
|
|
9
|
-
import { type ReadonlyCell } from "./observable-cell.js";
|
|
10
|
-
export declare const DEFAULT_BASE_URL = "https://api.teaflask.com";
|
|
11
|
-
export interface AssistantSessionSpec {
|
|
12
|
-
publishableKey: string;
|
|
13
|
-
baseUrl?: string;
|
|
14
|
-
userId?: string;
|
|
15
|
-
}
|
|
16
|
-
export interface AssistantSessionRegistrant {
|
|
17
|
-
resolveEndUserToken: (() => string | null | Promise<string | null>) | null;
|
|
18
|
-
hostCapabilitiesOf: () => HostCapabilities;
|
|
19
|
-
reportError: (error: Error) => void;
|
|
20
|
-
onTelemetry: ((event: AssistantTelemetryEvent) => void) | null;
|
|
21
|
-
}
|
|
22
|
-
export interface AssistantSessionEntry {
|
|
23
|
-
readonly session: TokenSession;
|
|
24
|
-
readonly store: AssistantConversationStore;
|
|
25
|
-
readonly tier: ReadonlyCell<VisitorTier | null>;
|
|
26
|
-
readonly setupError: ReadonlyCell<ServingApiError | null>;
|
|
27
|
-
readonly assistantConfig: ReadonlyCell<ServedSuggestionsConfig | null>;
|
|
28
|
-
readonly attachmentPolicy: ReadonlyCell<ServedAttachmentPolicy | null>;
|
|
29
|
-
readonly modelChoice: ReadonlyCell<ServedModelChoice | null>;
|
|
30
|
-
readonly configAnswered: ReadonlyCell<boolean>;
|
|
31
|
-
readonly ensureAssistantConfig: () => void;
|
|
32
|
-
readonly refreshAssistantConfig: () => void;
|
|
33
|
-
readonly conversationGate: ReadonlyCell<ConversationGate>;
|
|
34
|
-
readonly subscriptions: ReadonlyCell<SubscriptionStatus[] | null>;
|
|
35
|
-
readonly ensureSubscriptions: () => void;
|
|
36
|
-
readonly refreshSubscriptions: () => void;
|
|
37
|
-
readonly connectOpenRequested: ReadonlyCell<boolean>;
|
|
38
|
-
readonly requestSubscriptionConnect: () => void;
|
|
39
|
-
readonly acknowledgeSubscriptionConnect: () => void;
|
|
40
|
-
readonly planNoticeDue: ReadonlyCell<SubscriptionProvider | null>;
|
|
41
|
-
readonly notePlanSignedIn: (provider: SubscriptionProvider) => void;
|
|
42
|
-
readonly acknowledgePlanNotice: () => void;
|
|
43
|
-
}
|
|
44
|
-
export declare class AssistantSessionRegistry {
|
|
45
|
-
private readonly entries;
|
|
46
|
-
entryFor(requested: AssistantSessionSpec): AssistantSessionEntry;
|
|
47
|
-
retain(entry: AssistantSessionEntry, registrant: AssistantSessionRegistrant): () => void;
|
|
48
|
-
private _reviveIfSwept;
|
|
49
|
-
private _sweepIfStillUnretained;
|
|
50
|
-
}
|
|
51
|
-
export declare const assistantSessionRegistry: AssistantSessionRegistry;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { ServingAttachment } from "../contract/threads.js";
|
|
2
|
-
import type { MintedDownloadUrl } from "./conversation-contract.js";
|
|
3
|
-
import type { AssistantConversationStore } from "./conversation-store.js";
|
|
4
|
-
export declare function uploadAttachmentFromStore(store: AssistantConversationStore, file: File): Promise<ServingAttachment>;
|
|
5
|
-
export declare function mintAttachmentDownloadUrlFromStore(store: AssistantConversationStore, attachmentId: string): Promise<MintedDownloadUrl>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { AgentSubscriber } from "@ag-ui/client";
|
|
2
|
-
import type { BlockTiming } from "./segment-timing.js";
|
|
3
|
-
export declare function foldBlockTimingObserved(timings: Map<string, BlockTiming>, blockId: string, observedAtMs: number): boolean;
|
|
4
|
-
export declare function wellFormedBlockTimingAnchorsOf(stored: ReadonlyMap<string, BlockTiming>): ReadonlyMap<string, BlockTiming>;
|
|
5
|
-
export declare function blockTimingRecorder(onTimingObserved: (blockId: string, observedAtMs: number) => void): AgentSubscriber;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { AssistantSurfacePresence } from "./surface-registry.js";
|
|
2
|
-
export type CompanionChrome = "companion" | "drawer" | "none";
|
|
3
|
-
export interface CompanionChromeInput {
|
|
4
|
-
surfaces: AssistantSurfacePresence;
|
|
5
|
-
expanded: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare function companionChromeOf(input: CompanionChromeInput): CompanionChrome;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { AttachmentDraft, ComposerModelPick } from "./conversation-contract.js";
|
|
2
|
-
import type { AssistantConversationStore } from "./conversation-store.js";
|
|
3
|
-
export declare function setModelPickFromStore(store: AssistantConversationStore, pick: ComposerModelPick): void;
|
|
4
|
-
export declare function setComposerDraftFromStore(store: AssistantConversationStore, next: string | ((current: string) => string)): void;
|
|
5
|
-
export declare function setComposerAttachmentsFromStore(store: AssistantConversationStore, next: readonly AttachmentDraft[] | ((current: readonly AttachmentDraft[]) => readonly AttachmentDraft[])): void;
|
|
6
|
-
export declare function resetComposerInput(store: AssistantConversationStore, threadId: string | null): void;
|
|
7
|
-
export declare function noteComposerFocusFromStore(store: AssistantConversationStore, owner: string | null): void;
|
|
8
|
-
export declare function takeComposerCaretReturnFromStore(store: AssistantConversationStore, surface: string): boolean;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { AssistantThreadDetailResponse, ServingAssistantThread, ServingAssistantTurn } from "../contract/threads.js";
|
|
2
|
-
import type { ComposerModelPick } from "./conversation-contract.js";
|
|
3
|
-
import type { AssistantConversationStore } from "./conversation-store.js";
|
|
4
|
-
export declare function resumeStoredThreadFromStore(store: AssistantConversationStore): void;
|
|
5
|
-
export declare function openThreadFromStore(store: AssistantConversationStore, thread: ServingAssistantThread): void;
|
|
6
|
-
export declare function startNewConversationFromStore(store: AssistantConversationStore): void;
|
|
7
|
-
export declare function adoptRefreshedDetail(store: AssistantConversationStore, detail: AssistantThreadDetailResponse): void;
|
|
8
|
-
export declare function enterConversationFromSend(store: AssistantConversationStore, thread: ServingAssistantThread, turn: ServingAssistantTurn, sentPick: ComposerModelPick | null): void;
|
|
9
|
-
export declare function invalidateInFlightResume(store: AssistantConversationStore): void;
|
|
10
|
-
export declare function refreshThreads(store: AssistantConversationStore): Promise<void>;
|
|
11
|
-
export declare function loadHistoryOnceExpected(store: AssistantConversationStore): void;
|
|
12
|
-
export declare function historyExpected(store: AssistantConversationStore): boolean;
|
|
13
|
-
export declare function sameModelPick(a: ComposerModelPick | null, b: ComposerModelPick | null): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { ComposerContract, ConversationSnapshot } from "./conversation-contract.js";
|
|
2
|
-
import type { AssistantConversationStore } from "./conversation-store.js";
|
|
3
|
-
export declare function publishStore(store: AssistantConversationStore): void;
|
|
4
|
-
export declare function scheduleConnectionSync(store: AssistantConversationStore): void;
|
|
5
|
-
export declare function conversationSnapshotOf(store: AssistantConversationStore): ConversationSnapshot;
|
|
6
|
-
export declare function noteInterruptAnswerConsumed(store: AssistantConversationStore, runId: string, interruptId: string, round: number): void;
|
|
7
|
-
export declare function composerSnapshotOf(store: AssistantConversationStore): ComposerContract;
|
|
8
|
-
export declare function busyOf(store: AssistantConversationStore): boolean;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { AssistantConversationStore } from "./conversation-store.js";
|
|
2
|
-
export declare function refreshConversationFromStore(store: AssistantConversationStore): Promise<void>;
|
|
3
|
-
export declare function noteDispatchSettledFromStore(store: AssistantConversationStore): void;
|
|
4
|
-
export declare function settlesFor(delayMs: number): Promise<void>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { TurnAttachment } from "../contract/threads.js";
|
|
2
|
-
import type { AssistantConversationStore } from "./conversation-store.js";
|
|
3
|
-
export declare function sendMessageFromStore(store: AssistantConversationStore, message: string, attachmentIds?: string[], optimisticAttachments?: TurnAttachment[]): Promise<boolean>;
|
|
4
|
-
export declare function markComposerRefocusHandledFromStore(store: AssistantConversationStore): void;
|
|
5
|
-
export declare function stopTurnFromStore(store: AssistantConversationStore): Promise<void>;
|
|
6
|
-
export declare function handleUserMessageInjectedFromStore(store: AssistantConversationStore, messageId: string): void;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export function disposableSubscriber(inner) {
|
|
2
|
-
let disposed = false;
|
|
3
|
-
const subscriber = new Proxy(inner, {
|
|
4
|
-
get(target, property, receiver) {
|
|
5
|
-
const member = Reflect.get(target, property, receiver);
|
|
6
|
-
if (typeof member !== "function") {
|
|
7
|
-
return member;
|
|
8
|
-
}
|
|
9
|
-
return (...args) => disposed ? undefined : Reflect.apply(member, target, args);
|
|
10
|
-
},
|
|
11
|
-
});
|
|
12
|
-
return {
|
|
13
|
-
subscriber,
|
|
14
|
-
dispose: () => {
|
|
15
|
-
disposed = true;
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { AssistantConversationStore } from "./conversation-store.js";
|
|
2
|
-
import type { QuestionSetCardModel } from "./elicitation-cards.js";
|
|
3
|
-
export declare function submitQuestionAnswersFromStore(store: AssistantConversationStore, card: QuestionSetCardModel, answers: readonly {
|
|
4
|
-
id: string;
|
|
5
|
-
text: string;
|
|
6
|
-
}[]): Promise<void>;
|
|
7
|
-
export declare function cancelQuestionSetFromStore(store: AssistantConversationStore, card: QuestionSetCardModel): Promise<void>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ServingAssistantTurn } from "../contract/threads.js";
|
|
2
|
-
import type { ApprovalCardModel } from "./approval-inbox.js";
|
|
3
|
-
import type { AssistantConversationStore } from "./conversation-store.js";
|
|
4
|
-
import type { ExecutionEntryModel } from "./execution-inbox.js";
|
|
5
|
-
export declare function syncEpoch(store: AssistantConversationStore): void;
|
|
6
|
-
export declare function retireEpoch(store: AssistantConversationStore): void;
|
|
7
|
-
export declare function noteNewestTurn(store: AssistantConversationStore, turn: ServingAssistantTurn | null, switchedThread?: boolean): void;
|
|
8
|
-
export declare function publishApprovalCards(store: AssistantConversationStore, cards: readonly ApprovalCardModel[]): void;
|
|
9
|
-
export declare function reconcileApprovals(store: AssistantConversationStore, turns: readonly ServingAssistantTurn[]): void;
|
|
10
|
-
export declare function theAnswerablePause(store: AssistantConversationStore): ServingAssistantTurn | null;
|
|
11
|
-
export declare function publishExecutionEntries(store: AssistantConversationStore, entries: readonly ExecutionEntryModel[]): void;
|
|
12
|
-
export declare function publishActivity(store: AssistantConversationStore): void;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { AssistantThreadDetailResponse, ResolveTurnToolResultsRequest, ResolveTurnToolResultsResponse } from "../contract/threads.js";
|
|
2
|
-
import { type ExecutionHandler } from "./execution-handlers.js";
|
|
3
|
-
import { type ExecutionEntryModel, type ExecutionInbox } from "./execution-inbox.js";
|
|
4
|
-
export interface ExecutionPassContext {
|
|
5
|
-
inbox: ExecutionInbox;
|
|
6
|
-
threadId: string;
|
|
7
|
-
handlers: ReadonlyMap<string, ExecutionHandler>;
|
|
8
|
-
attempts: Map<string, number>;
|
|
9
|
-
fetchThreadDetail: () => Promise<AssistantThreadDetailResponse>;
|
|
10
|
-
postResults: (turnId: string, request: ResolveTurnToolResultsRequest) => Promise<ResolveTurnToolResultsResponse>;
|
|
11
|
-
publishEntries: (entries: readonly ExecutionEntryModel[]) => void;
|
|
12
|
-
onWorkflowRestarted: () => void;
|
|
13
|
-
}
|
|
14
|
-
export declare function runExecutionPass(context: ExecutionPassContext): Promise<void>;
|
|
15
|
-
export interface ExecutionDriverDeps {
|
|
16
|
-
inbox: ExecutionInbox;
|
|
17
|
-
threadId: string;
|
|
18
|
-
handlersOf: () => ReadonlyMap<string, ExecutionHandler>;
|
|
19
|
-
fetchThreadDetail: () => Promise<AssistantThreadDetailResponse>;
|
|
20
|
-
postResults: (turnId: string, request: ResolveTurnToolResultsRequest) => Promise<ResolveTurnToolResultsResponse>;
|
|
21
|
-
publishEntries: (entries: readonly ExecutionEntryModel[]) => void;
|
|
22
|
-
onWorkflowRestarted: () => void;
|
|
23
|
-
}
|
|
24
|
-
export declare class ExecutionDriver {
|
|
25
|
-
private readonly deps;
|
|
26
|
-
private readonly attempts;
|
|
27
|
-
private passRunning;
|
|
28
|
-
private passQueued;
|
|
29
|
-
private timer;
|
|
30
|
-
private disposed;
|
|
31
|
-
constructor(deps: ExecutionDriverDeps);
|
|
32
|
-
noteEntriesChanged(entries: readonly ExecutionEntryModel[]): void;
|
|
33
|
-
dispose(): void;
|
|
34
|
-
private _drainInbox;
|
|
35
|
-
private _someDeliveryWasAttempted;
|
|
36
|
-
private _clearTimer;
|
|
37
|
-
}
|
package/dist/core/host-fill.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function hostFillDeclines(fill: unknown): boolean;
|
package/dist/core/hotkey.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare const DEFAULT_ASSISTANT_HOTKEY = "mod+k";
|
|
2
|
-
export interface HotkeyEventLike {
|
|
3
|
-
key: string;
|
|
4
|
-
metaKey: boolean;
|
|
5
|
-
ctrlKey: boolean;
|
|
6
|
-
altKey: boolean;
|
|
7
|
-
shiftKey: boolean;
|
|
8
|
-
}
|
|
9
|
-
export interface HotkeyBinding {
|
|
10
|
-
key: string;
|
|
11
|
-
mod: boolean;
|
|
12
|
-
ctrl: boolean;
|
|
13
|
-
meta: boolean;
|
|
14
|
-
alt: boolean;
|
|
15
|
-
shift: boolean;
|
|
16
|
-
}
|
|
17
|
-
export declare function parseHotkey(spec: string): HotkeyBinding | null;
|
|
18
|
-
export declare function hotkeyMatches(binding: HotkeyBinding, event: HotkeyEventLike): boolean;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
type GetEndUserToken = () => string | null | Promise<string | null>;
|
|
2
|
-
export interface IdentityPairInput {
|
|
3
|
-
userId?: string | null;
|
|
4
|
-
getEndUserToken?: GetEndUserToken | null;
|
|
5
|
-
}
|
|
6
|
-
export interface NamedIdentity {
|
|
7
|
-
userId: string;
|
|
8
|
-
getEndUserToken: GetEndUserToken;
|
|
9
|
-
}
|
|
10
|
-
export declare const IDENTITY_PAIR_WARNING = "userId and getEndUserToken must be set together \u2014 a non-empty id with its vouch; the session runs anonymous until both are.";
|
|
11
|
-
export declare function namedIdentityOf(input: IdentityPairInput): NamedIdentity | null;
|
|
12
|
-
export declare function identityPairIsHalfSet(input: IdentityPairInput): boolean;
|
|
13
|
-
export declare function namedUserIdOf(userId: string | null | undefined): string | undefined;
|
|
14
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { AgentSubscriber } from "@ag-ui/client";
|
|
2
|
-
import type { Message } from "@ag-ui/core";
|
|
3
|
-
export declare function messagesRecorder(publish: (messages: readonly Message[]) => void): AgentSubscriber;
|
|
4
|
-
export declare function streamErrorRecorder(onStreamError: (error: Error) => void): AgentSubscriber;
|
|
5
|
-
export declare function isAbortShaped(error: Error): boolean;
|
|
6
|
-
export interface MessagesSnapshot {
|
|
7
|
-
messages: readonly Message[];
|
|
8
|
-
running: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare function messagesSnapshotRecorder(publish: (snapshot: MessagesSnapshot) => void): AgentSubscriber;
|
|
11
|
-
export declare function connectionErrorRecorder(onStreamError: (error: Error) => void): AgentSubscriber;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export interface ClearancePoint {
|
|
2
|
-
x: number;
|
|
3
|
-
y: number;
|
|
4
|
-
}
|
|
5
|
-
export interface ClearanceRect {
|
|
6
|
-
left: number;
|
|
7
|
-
top: number;
|
|
8
|
-
width: number;
|
|
9
|
-
height: number;
|
|
10
|
-
}
|
|
11
|
-
export declare const PERCH_LIFT_STEPS_PX: readonly number[];
|
|
12
|
-
export declare function probePointsOf(rect: ClearanceRect): ClearancePoint[];
|
|
13
|
-
export declare function liftedBy(rect: ClearanceRect, liftPx: number): ClearanceRect;
|
|
14
|
-
export declare function firstClearLiftFor(options: {
|
|
15
|
-
rect: ClearanceRect;
|
|
16
|
-
probe: (point: ClearancePoint) => boolean;
|
|
17
|
-
liftSteps?: readonly number[];
|
|
18
|
-
}): number;
|
|
19
|
-
export declare const INTERACTIVE_OBSTRUCTION_SELECTOR: string;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { AnsweredQuestions } from "./elicitation-cards.js";
|
|
2
|
-
import { type QuestionModel } from "./elicitation-pickers.js";
|
|
3
|
-
export interface SettledQuestionsReceipt {
|
|
4
|
-
questions: readonly QuestionModel[];
|
|
5
|
-
answers: readonly {
|
|
6
|
-
id: string;
|
|
7
|
-
text: string;
|
|
8
|
-
}[];
|
|
9
|
-
}
|
|
10
|
-
export declare function settledQuestionsReceiptOfCard(questions: readonly QuestionModel[], answered: AnsweredQuestions | null): SettledQuestionsReceipt | null;
|
|
11
|
-
export declare function settledQuestionsReceiptOf(toolName: string, argsText: string, resultText: string | undefined): SettledQuestionsReceipt | null;
|
package/dist/core/run-folds.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { type SegmentDuration } from "./segment-timing.js";
|
|
2
|
-
import { type AssistantTextRow, type MarkerBoundaries, type ReasoningRow, type ToolCallRow, type TranscriptBlock, type TranscriptRow } from "./transcript-rows.js";
|
|
3
|
-
export type RunFoldMember = ReasoningRow | ToolCallRow | AssistantTextRow;
|
|
4
|
-
export type RunFoldStep = {
|
|
5
|
-
kind: "reasoning";
|
|
6
|
-
view: ReasoningRow;
|
|
7
|
-
} | {
|
|
8
|
-
kind: "tool-call";
|
|
9
|
-
row: ToolCallRow;
|
|
10
|
-
} | {
|
|
11
|
-
kind: "narration";
|
|
12
|
-
view: AssistantTextRow;
|
|
13
|
-
};
|
|
14
|
-
export interface RunFoldRow {
|
|
15
|
-
kind: "run-fold";
|
|
16
|
-
key: string;
|
|
17
|
-
members: readonly RunFoldMember[];
|
|
18
|
-
steps: readonly RunFoldStep[];
|
|
19
|
-
duration: SegmentDuration;
|
|
20
|
-
}
|
|
21
|
-
export type FoldedTranscriptRow = Exclude<TranscriptRow, ReasoningRow> | RunFoldRow;
|
|
22
|
-
export interface RunFoldsOptions {
|
|
23
|
-
openTailTurn?: boolean;
|
|
24
|
-
tailStart?: number;
|
|
25
|
-
}
|
|
26
|
-
export declare function runFoldsOf(rows: readonly TranscriptRow[], options?: RunFoldsOptions): FoldedTranscriptRow[];
|
|
27
|
-
type TurnBoundaryRow = TranscriptRow | FoldedTranscriptRow;
|
|
28
|
-
interface CountableBlock {
|
|
29
|
-
messageId: string;
|
|
30
|
-
rows: readonly TurnBoundaryRow[];
|
|
31
|
-
}
|
|
32
|
-
export declare function currentTurnStartOf(rows: readonly TurnBoundaryRow[], blocks: readonly CountableBlock[] | null, turnStartIds?: ReadonlySet<string>): number;
|
|
33
|
-
export declare function settledFoldHeadlineOf(duration: SegmentDuration): string;
|
|
34
|
-
export declare function liveFoldHeadlineOf(steps: readonly RunFoldStep[]): string;
|
|
35
|
-
export interface FoldedBlock {
|
|
36
|
-
messageId: string;
|
|
37
|
-
rows: FoldedTranscriptRow[];
|
|
38
|
-
}
|
|
39
|
-
export declare function foldedBlocksOf(blocks: readonly TranscriptBlock[], options?: Omit<RunFoldsOptions, "tailStart"> & {
|
|
40
|
-
markerBoundaries?: MarkerBoundaries;
|
|
41
|
-
turnStartIds?: ReadonlySet<string>;
|
|
42
|
-
}): FoldedBlock[];
|
|
43
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { TurnStatus } from "../contract/threads.js";
|
|
2
|
-
export type AnnouncedStatus = "working" | "waiting";
|
|
3
|
-
export declare function announcedStatusOf(status: TurnStatus | null, decisionsPending: boolean): AnnouncedStatus | null;
|
|
4
|
-
export declare function runReadsAsWorking(status: TurnStatus | null, decisionsPending: boolean): boolean;
|
package/dist/core/stop-copy.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const STOP_NOT_DELIVERED_SENTENCE = "The stop couldn't be delivered right now. Please try again in a moment.";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { AssistantConversationStore } from "./conversation-store.js";
|
|
2
|
-
export declare function handleStreamErrorFromStore(store: AssistantConversationStore, error: Error): void;
|
|
3
|
-
export declare function handleStreamClosedQuietlyFromStore(store: AssistantConversationStore, stillStreaming: () => boolean): void;
|
|
4
|
-
export declare function retryStreamFromStore(store: AssistantConversationStore): void;
|
|
5
|
-
export declare function handleWorkflowRestartedFromStore(store: AssistantConversationStore): void;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { Message } from "@ag-ui/core";
|
|
2
|
-
export declare function openingBriefOf(parentMessages: readonly Message[], childSessionId: string): string | null;
|
|
3
|
-
export declare function withOpeningBrief(childMessages: readonly Message[], brief: string | null, childSessionId: string): readonly Message[];
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ToolCallViewModel } from "./tool-call-display.js";
|
|
2
|
-
import type { TranscriptRow } from "./transcript-rows.js";
|
|
3
|
-
export declare function coworkerIndicesOf(dispatches: Iterable<{
|
|
4
|
-
ordinal: number;
|
|
5
|
-
child_session_id: string;
|
|
6
|
-
}>): ReadonlyMap<string, number>;
|
|
7
|
-
export declare function newestToolCallViewOf(rows: readonly TranscriptRow[]): ToolCallViewModel | null;
|
|
8
|
-
export declare function sameCurrentWorkView(a: ToolCallViewModel, b: ToolCallViewModel): boolean;
|
|
9
|
-
export declare function settledSpanMsOf(startedAt: string, settledAt: string | null): number | null;
|
|
10
|
-
export declare function settledWorkedLabelOf(startedAt: string, settledAt: string | null): string | null;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export interface RosterSourceDispatch {
|
|
2
|
-
ordinal: number;
|
|
3
|
-
label: string;
|
|
4
|
-
error: string | null;
|
|
5
|
-
child_session_id: string;
|
|
6
|
-
created_at: string;
|
|
7
|
-
updated_at: string;
|
|
8
|
-
}
|
|
9
|
-
export interface RosterStatusPredicates<D extends RosterSourceDispatch> {
|
|
10
|
-
isRunning: (dispatch: D) => boolean;
|
|
11
|
-
hasFailed: (dispatch: D) => boolean;
|
|
12
|
-
}
|
|
13
|
-
export interface SubagentRosterEntry {
|
|
14
|
-
key: string;
|
|
15
|
-
childSessionId: string;
|
|
16
|
-
ordinal: number;
|
|
17
|
-
label: string;
|
|
18
|
-
running: boolean;
|
|
19
|
-
failed: boolean;
|
|
20
|
-
note: string | null;
|
|
21
|
-
startedAt: string;
|
|
22
|
-
settledAt: string | null;
|
|
23
|
-
}
|
|
24
|
-
export interface SubagentRoster {
|
|
25
|
-
running: SubagentRosterEntry[];
|
|
26
|
-
completed: SubagentRosterEntry[];
|
|
27
|
-
failed: SubagentRosterEntry[];
|
|
28
|
-
total: number;
|
|
29
|
-
distinctSessions: number;
|
|
30
|
-
failedSessions: number;
|
|
31
|
-
}
|
|
32
|
-
export declare function rosterEntriesOf<D extends RosterSourceDispatch>(dispatches: Iterable<D>, predicates: RosterStatusPredicates<D>): SubagentRosterEntry[];
|
|
33
|
-
export declare function subagentRosterOf(entries: readonly SubagentRosterEntry[]): SubagentRoster;
|
|
34
|
-
export declare function subagentPillLabelOf(roster: SubagentRoster): string | null;
|
|
35
|
-
export declare function settledDurationLabelOf(startedAt: string, settledAt: string | null): string | null;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export type AssistantSurfaceKind = "full-surface" | "transient";
|
|
2
|
-
export interface AssistantSurfacePresence {
|
|
3
|
-
readonly fullSurfaceMounted: boolean;
|
|
4
|
-
readonly transientOpen: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare class AssistantSurfaceRegistry {
|
|
7
|
-
private readonly tokens;
|
|
8
|
-
private readonly listeners;
|
|
9
|
-
private snapshot;
|
|
10
|
-
register(kind: AssistantSurfaceKind): () => void;
|
|
11
|
-
subscribe(listener: () => void): () => void;
|
|
12
|
-
getSnapshot(): AssistantSurfacePresence;
|
|
13
|
-
private _publishIfPresenceChanged;
|
|
14
|
-
private _derivePresence;
|
|
15
|
-
}
|
|
16
|
-
export declare const assistantSurfaceRegistry: AssistantSurfaceRegistry;
|