agentchatme 1.5.0 → 1.5.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/CHANGELOG.md +34 -0
- package/README.md +1 -1
- package/dist/index.cjs +296 -53
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +131 -14
- package/dist/index.d.ts +131 -14
- package/dist/index.js +296 -53
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3865,16 +3865,30 @@ declare function probeHostedTools(options: ProbeHostedToolsOptions): Promise<Pro
|
|
|
3865
3865
|
* runtime check fails is dropped (a broken runtime reports nothing: that is
|
|
3866
3866
|
* the integration's runs-failing path, and the server's re-wakes). A
|
|
3867
3867
|
* failure reported as its attempt ends keeps its conversation held (no other
|
|
3868
|
-
* cycle starts it) until the server has answered.
|
|
3868
|
+
* cycle starts it) until the server has answered. So does one reported
|
|
3869
|
+
* later (on another conversation's completion, or on the runtime check),
|
|
3870
|
+
* from the moment its report is due: no cycle gates or runs it, and a run or
|
|
3871
|
+
* turn of it waiting for a slot waits for the answer. A run or
|
|
3869
3872
|
* turn that answered, or recorded a verdict, before it failed (read on a
|
|
3870
3873
|
* fresh tray) is not a failure, nor is one `stop()` cut short. The report
|
|
3871
3874
|
* reads through the card's anchor as it was when the failed attempt started;
|
|
3872
3875
|
* the server picks the span and answers: `retry` or `hidden` → that
|
|
3873
3876
|
* conversation goes again, after the others already queued (a gate call
|
|
3874
3877
|
* after `hidden` in the next cycle, on the fresh card); `paused` or `none`
|
|
3875
|
-
* → the loop stops for it
|
|
3876
|
-
*
|
|
3877
|
-
*
|
|
3878
|
+
* → the loop stops for it and holds it at the anchor it reported: no later
|
|
3879
|
+
* cycle runs it or gates it again (a message elsewhere, a wake frame, a
|
|
3880
|
+
* reconnect, an `unanswered` re-wake included), and a run or turn of it at
|
|
3881
|
+
* that anchor does not start: one waiting for a slot is dropped, one
|
|
3882
|
+
* decided before the answer came is checked again at its start, and a run
|
|
3883
|
+
* of it already under way that ends silent there does not lift the hold. A
|
|
3884
|
+
* failed message is not
|
|
3885
|
+
* redelivered to the model; new messages flow: a newer message in that
|
|
3886
|
+
* conversation moves its anchor and ends the hold (its failures are reported
|
|
3887
|
+
* afresh), and so does a verdict or mark-read that takes the card off the
|
|
3888
|
+
* tray. In memory: a restart may try it once more, and that report holds it
|
|
3889
|
+
* again. At most `MAX_RERUNS_PER_CYCLE` (3) re-runs per
|
|
3890
|
+
* conversation per cycle. `status().processingFailures` counts it all and
|
|
3891
|
+
* lists what is held (`held`); each report is a `processing_failure` event.
|
|
3878
3892
|
*
|
|
3879
3893
|
* Wakes: a `message.new` frame that is not the echo of the agent's own send,
|
|
3880
3894
|
* a `wake` frame (a reminder, or unanswered cards), every accepted HELLO (a
|
|
@@ -3904,7 +3918,8 @@ declare function probeHostedTools(options: ProbeHostedToolsOptions): Promise<Pro
|
|
|
3904
3918
|
* unless a newer message moves its anchor or an `unanswered` wake names it;
|
|
3905
3919
|
* after an invite turn that left the invite pending, no second invite turn
|
|
3906
3920
|
* for it within `paceMs` unless an `unanswered` wake arrives (those name no
|
|
3907
|
-
* invites). In memory.
|
|
3921
|
+
* invites). In memory. The could-not-process hold above is the same hold
|
|
3922
|
+
* without the time limit, and an `unanswered` wake does not lift it.
|
|
3908
3923
|
*
|
|
3909
3924
|
* There is no retry ladder here. A cycle that could not finish (the tray
|
|
3910
3925
|
* could not be read, the model failed, a turn was refused or failed) leaves
|
|
@@ -4031,7 +4046,7 @@ type WakeSource = 'message' | 'wake_frame' | 'connect' | 'invite' | 'external' |
|
|
|
4031
4046
|
type CycleOutcome =
|
|
4032
4047
|
/** The tray had no cards and no invites. */
|
|
4033
4048
|
'empty'
|
|
4034
|
-
/** Cards were there, but only muted ones, paced ones or ones a
|
|
4049
|
+
/** Cards were there, but only muted ones, paced ones, ones a turn holds, or ones held after a could-not-process answer. */
|
|
4035
4050
|
| 'nothing_owed' | 'tray_failed' | 'texts_missing' | 'tools_unavailable'
|
|
4036
4051
|
/**
|
|
4037
4052
|
* gateCall: the gate decided (turns started or queued for the replies). With
|
|
@@ -4070,10 +4085,17 @@ interface CycleSummary {
|
|
|
4070
4085
|
readonly turnsRefused: number;
|
|
4071
4086
|
/** Reply or invite turns (conversation runs: runs) waiting for a slot (`maxConcurrentTurns`). */
|
|
4072
4087
|
readonly turnsQueued: number;
|
|
4073
|
-
/** Cards left out because a turn for their conversation is running or waiting. */
|
|
4088
|
+
/** Cards left out because a turn for their conversation is running or waiting (or its could-not-process report is out). */
|
|
4074
4089
|
readonly heldByTurns: number;
|
|
4075
4090
|
/** Cards and invites left out by D5 pacing (a recent silent turn). */
|
|
4076
4091
|
readonly paced: number;
|
|
4092
|
+
/**
|
|
4093
|
+
* Cards left out because a could-not-process report through their anchor
|
|
4094
|
+
* was answered `none` or `paused`: not run again until a newer message.
|
|
4095
|
+
* Always set by `ReceiveLoop` (optional in the type, so summaries built
|
|
4096
|
+
* elsewhere keep compiling).
|
|
4097
|
+
*/
|
|
4098
|
+
readonly heldAfterFailure?: number;
|
|
4077
4099
|
/** gateCall: gate calls (one per chunk of at most `gateChunkSize` cards) whose answer gave verdicts. */
|
|
4078
4100
|
readonly chunksOk: number;
|
|
4079
4101
|
/**
|
|
@@ -4157,10 +4179,29 @@ interface ProcessingFailureReport {
|
|
|
4157
4179
|
* `hidden`, but its next attempt is already under way: running, queued, or
|
|
4158
4180
|
* being gated now), `stop` (`paused`, `none`, or the report failed),
|
|
4159
4181
|
* `rerun_capped` (`retry` / `hidden`, but it already ran again
|
|
4160
|
-
* `MAX_RERUNS_PER_CYCLE` times in this cycle).
|
|
4182
|
+
* `MAX_RERUNS_PER_CYCLE` times in this cycle). After a `paused` or `none`
|
|
4183
|
+
* answer the conversation is also held at `throughMessageId` until a newer
|
|
4184
|
+
* message arrives (`status().processingFailures.held`).
|
|
4161
4185
|
*/
|
|
4162
4186
|
readonly next: 'rerun' | 'running' | 'stop' | 'rerun_capped';
|
|
4163
4187
|
}
|
|
4188
|
+
/** The server's answer that holds a conversation after a could-not-process report. */
|
|
4189
|
+
type FailureHoldReason = 'none' | 'paused';
|
|
4190
|
+
/**
|
|
4191
|
+
* A conversation the loop does not run again until a newer message moves its
|
|
4192
|
+
* card's anchor: the server answered `none` or `paused` to a could-not-process
|
|
4193
|
+
* report through `anchor`. In memory: a restart may try it once more (that
|
|
4194
|
+
* report answers the same and holds it again).
|
|
4195
|
+
*/
|
|
4196
|
+
interface HeldConversation {
|
|
4197
|
+
readonly conversationId: string;
|
|
4198
|
+
/** The anchor the failed attempt read through (the report's `throughMessageId`). */
|
|
4199
|
+
readonly anchor: string;
|
|
4200
|
+
/** When the answer came (ISO 8601). */
|
|
4201
|
+
readonly since: string;
|
|
4202
|
+
/** The server's answer. */
|
|
4203
|
+
readonly reason: FailureHoldReason;
|
|
4204
|
+
}
|
|
4164
4205
|
type ReceiveLoopEvent = {
|
|
4165
4206
|
readonly type: 'wake';
|
|
4166
4207
|
readonly source: WakeSource;
|
|
@@ -4420,12 +4461,27 @@ interface ReceiveLoopStatus {
|
|
|
4420
4461
|
readonly runtimeChecksFailed: number;
|
|
4421
4462
|
/** Gate splits stopped (`split_stopped`), since start. */
|
|
4422
4463
|
readonly splitsStopped: number;
|
|
4464
|
+
/**
|
|
4465
|
+
* Runs and reply turns not started because their conversation is held
|
|
4466
|
+
* after a could-not-process answer (dropped from the queue, or stopped at
|
|
4467
|
+
* their start), since start. Always set by `ReceiveLoop`.
|
|
4468
|
+
*/
|
|
4469
|
+
readonly startsHeld?: number;
|
|
4423
4470
|
/** The last `checkRuntime()` answer, or null. */
|
|
4424
4471
|
readonly lastRuntimeCheck: {
|
|
4425
4472
|
readonly at: string;
|
|
4426
4473
|
readonly ok: boolean;
|
|
4427
4474
|
readonly detail: string | null;
|
|
4428
4475
|
} | null;
|
|
4476
|
+
/**
|
|
4477
|
+
* Conversations not run again until a new message arrives: the server
|
|
4478
|
+
* answered `none` or `paused` to their report (oldest first). As of the
|
|
4479
|
+
* last tray read: a card read since (a verdict, a mark-read) or moved to
|
|
4480
|
+
* a newer anchor leaves the list at the next one. Always set by
|
|
4481
|
+
* `ReceiveLoop` (optional in the type, so status objects built elsewhere
|
|
4482
|
+
* keep compiling).
|
|
4483
|
+
*/
|
|
4484
|
+
readonly held?: HeldConversation[];
|
|
4429
4485
|
};
|
|
4430
4486
|
readonly lastError: string | null;
|
|
4431
4487
|
}
|
|
@@ -4481,12 +4537,20 @@ declare class ReceiveLoop {
|
|
|
4481
4537
|
private readonly failureCounts;
|
|
4482
4538
|
/** Conversations whose verdict a gate call is recording right now (an abandoned cycle's included). */
|
|
4483
4539
|
private readonly recordsInFlight;
|
|
4540
|
+
/**
|
|
4541
|
+
* Could not process: conversations whose report is out on another's
|
|
4542
|
+
* completion (`takeDue`): held out of the gate and of new runs, and a run
|
|
4543
|
+
* or turn of theirs waiting for a slot waits, until the server answers.
|
|
4544
|
+
*/
|
|
4545
|
+
private readonly reporting;
|
|
4484
4546
|
/** Turns holding a slot (admitted, not yet ended or released). */
|
|
4485
4547
|
private readonly slotted;
|
|
4486
4548
|
private handle;
|
|
4487
4549
|
private started;
|
|
4488
4550
|
private stopped;
|
|
4489
4551
|
private heldWhileRunning;
|
|
4552
|
+
/** A cycle left a card out because its could-not-process report was out: `letGo` reads the tray again. */
|
|
4553
|
+
private heldWhileReporting;
|
|
4490
4554
|
private activeTurns;
|
|
4491
4555
|
private noProgressStreak;
|
|
4492
4556
|
private moreTimer;
|
|
@@ -4554,9 +4618,29 @@ declare class ReceiveLoop {
|
|
|
4554
4618
|
/**
|
|
4555
4619
|
* Held out of the gate: a running or waiting turn, or a verdict still being
|
|
4556
4620
|
* recorded (an abandoned cycle's last call): gating it again could record
|
|
4557
|
-
* the same verdict twice (a second defer climbs the ladder).
|
|
4621
|
+
* the same verdict twice (a second defer climbs the ladder). Also a
|
|
4622
|
+
* conversation whose could-not-process report is out (`reporting`): its
|
|
4623
|
+
* answer may hold it.
|
|
4558
4624
|
*/
|
|
4559
4625
|
private unheld;
|
|
4626
|
+
/**
|
|
4627
|
+
* The cards neither paced (D5) nor held after a could-not-process answer
|
|
4628
|
+
* (`none` / `paused` through the anchor they still show), and how many of
|
|
4629
|
+
* each were left out. A card whose anchor moved is no longer held.
|
|
4630
|
+
*/
|
|
4631
|
+
private paceCards;
|
|
4632
|
+
/** Held after a could-not-process answer, at the anchor this card still shows. */
|
|
4633
|
+
private heldAfterFailure;
|
|
4634
|
+
/**
|
|
4635
|
+
* A tray read after `mark`, every card on it (a turn's included): a held
|
|
4636
|
+
* conversation whose card shows a newer anchor is no longer held, and on
|
|
4637
|
+
* a complete tray (not truncated) neither is one whose card is gone (read
|
|
4638
|
+
* meanwhile: a verdict, a mark-read). A truncated tray proves nothing
|
|
4639
|
+
* about the cards it does not show.
|
|
4640
|
+
*/
|
|
4641
|
+
private forgetCleared;
|
|
4642
|
+
/** The start of a run or reply turn: held after a could-not-process answer at the anchor it was started for. */
|
|
4643
|
+
private failureHeld;
|
|
4560
4644
|
/**
|
|
4561
4645
|
* The gate in chunks (contract v1 §3.6): the cards, in tray order, split
|
|
4562
4646
|
* into chunks of at most `gateChunkSize`, one gate call per chunk, one
|
|
@@ -4634,6 +4718,7 @@ declare class ReceiveLoop {
|
|
|
4634
4718
|
/** The turn's slot is free (it ended, was refused, or was released): start the turns waiting for one. */
|
|
4635
4719
|
private releaseSlot;
|
|
4636
4720
|
private pump;
|
|
4721
|
+
private awaitsAnswer;
|
|
4637
4722
|
private afterReplyTurn;
|
|
4638
4723
|
private recordReplyOutcome;
|
|
4639
4724
|
private afterInviteTurn;
|
|
@@ -4651,11 +4736,26 @@ declare class ReceiveLoop {
|
|
|
4651
4736
|
*/
|
|
4652
4737
|
private completed;
|
|
4653
4738
|
/**
|
|
4654
|
-
*
|
|
4655
|
-
*
|
|
4656
|
-
*
|
|
4739
|
+
* The failures this completion is the evidence for (each once), taken off
|
|
4740
|
+
* the waiting list. Their conversations are held from now until the
|
|
4741
|
+
* server has answered (`reporting`): no gate, and a run or turn of theirs
|
|
4742
|
+
* waiting for a slot waits for the answer, so it never starts on the input
|
|
4743
|
+
* the answer is about. Take them before the completed work's slot frees.
|
|
4744
|
+
* One that waited past `AWAITING_EVIDENCE_MS` is dropped instead: a
|
|
4745
|
+
* completion that late says little about the runtime when it failed.
|
|
4657
4746
|
*/
|
|
4747
|
+
private takeDue;
|
|
4748
|
+
/** Report what `takeDue` took, letting go of each conversation once its answer is in: what waits for it goes on (or was dropped). */
|
|
4658
4749
|
private reportDue;
|
|
4750
|
+
/** A report for this failure is due: its conversation is held until `letGo` (counted: two reports out hold it until both are answered). */
|
|
4751
|
+
private holdForReport;
|
|
4752
|
+
/**
|
|
4753
|
+
* The answers are in (or the report is off): those conversations are no
|
|
4754
|
+
* longer held for it, what waits for them goes on, and a card a cycle left
|
|
4755
|
+
* out meanwhile for a report is read again (only then: a wake for
|
|
4756
|
+
* anything else could spin while a turn runs).
|
|
4757
|
+
*/
|
|
4758
|
+
private letGo;
|
|
4659
4759
|
/** An attempt of this kind failed for these conversations (whatever comes of it): see `failingSince`. */
|
|
4660
4760
|
private failedAttempt;
|
|
4661
4761
|
/**
|
|
@@ -4689,6 +4789,17 @@ declare class ReceiveLoop {
|
|
|
4689
4789
|
private runtimeCheck;
|
|
4690
4790
|
/** Tell the server, and do what it answers: run the conversation again (`retry`, `hidden`) or stop (`paused`, `none`). */
|
|
4691
4791
|
private reportFailure;
|
|
4792
|
+
/**
|
|
4793
|
+
* The server answered `none` or `paused`: the conversation is held at the
|
|
4794
|
+
* anchor the report read through, so no later cycle (a message elsewhere,
|
|
4795
|
+
* a wake frame, a reconnect, an `unanswered` re-wake, a turn's end) runs it
|
|
4796
|
+
* again on the same input. A newer message moves its anchor and lifts the
|
|
4797
|
+
* hold (`paceCards`); a card read meanwhile leaves the tray, and the hold
|
|
4798
|
+
* with it (`forgetCleared`). What waits for it does not start: a run or
|
|
4799
|
+
* reply turn queued at that anchor (after `paused`, the server's mute, any),
|
|
4800
|
+
* and a reply turn to start again after the gate.
|
|
4801
|
+
*/
|
|
4802
|
+
private holdFailed;
|
|
4692
4803
|
/**
|
|
4693
4804
|
* Run the conversation again after a `retry` or `hidden` answer, after the
|
|
4694
4805
|
* others already queued, and say what was done. Its run or reply turn takes
|
|
@@ -4704,7 +4815,11 @@ declare class ReceiveLoop {
|
|
|
4704
4815
|
private rerun;
|
|
4705
4816
|
/** The reply turns asked for while a gate was deciding: started now, after the cycle's own turns. */
|
|
4706
4817
|
private flushTurnReruns;
|
|
4707
|
-
/**
|
|
4818
|
+
/**
|
|
4819
|
+
* A held conversation: a run or turn still waiting for a slot for it does
|
|
4820
|
+
* not start; with an `anchor`, only one for that anchor (one queued for a
|
|
4821
|
+
* newer message is new input, and goes on).
|
|
4822
|
+
*/
|
|
4708
4823
|
private dropWaiting;
|
|
4709
4824
|
private rememberGateAlone;
|
|
4710
4825
|
/** Recording under way after a turn's confirmed end: `stop()` waits for it. */
|
|
@@ -5048,11 +5163,13 @@ type index_CycleOutcome = CycleOutcome;
|
|
|
5048
5163
|
type index_CycleSummary = CycleSummary;
|
|
5049
5164
|
declare const index_DEFAULT_MAX_MS: typeof DEFAULT_MAX_MS;
|
|
5050
5165
|
declare const index_DEFAULT_QUIET_MS: typeof DEFAULT_QUIET_MS;
|
|
5166
|
+
type index_FailureHoldReason = FailureHoldReason;
|
|
5051
5167
|
type index_FailureSource = FailureSource;
|
|
5052
5168
|
type index_FindOptions = FindOptions;
|
|
5053
5169
|
type index_FoundBlock = FoundBlock;
|
|
5054
5170
|
type index_GateChunkReport = GateChunkReport;
|
|
5055
5171
|
declare const index_HOSTED_MCP_PATH: typeof HOSTED_MCP_PATH;
|
|
5172
|
+
type index_HeldConversation = HeldConversation;
|
|
5056
5173
|
type index_InviteOutcome = InviteOutcome;
|
|
5057
5174
|
type index_InviteOutcomeClient = InviteOutcomeClient;
|
|
5058
5175
|
type index_InviteOutcomeInput = InviteOutcomeInput;
|
|
@@ -5136,7 +5253,7 @@ declare const index_syncManual: typeof syncManual;
|
|
|
5136
5253
|
declare const index_turnOutcome: typeof turnOutcome;
|
|
5137
5254
|
declare const index_writeAtomic: typeof writeAtomic;
|
|
5138
5255
|
declare namespace index {
|
|
5139
|
-
export { type index_AccountAnswer as AccountAnswer, type index_AccountCallOptions as AccountCallOptions, type index_AccountKind as AccountKind, type index_AccountLabels as AccountLabels, type index_AccountQuestion as AccountQuestion, type RunOptions as AccountRunOptions, type RunResult as AccountRunResult, type StepResult as AccountStepResult, type index_AgentChatCallCount as AgentChatCallCount, type index_CheckKeyResult as CheckKeyResult, type index_CoalescerCounters as CoalescerCounters, type index_CoalescerState as CoalescerState, type index_ConfirmedTurnEnd as ConfirmedTurnEnd, type index_CycleOutcome as CycleOutcome, type index_CycleSummary as CycleSummary, index_DEFAULT_MAX_MS as DEFAULT_MAX_MS, index_DEFAULT_QUIET_MS as DEFAULT_QUIET_MS, type index_FailureSource as FailureSource, type index_FindOptions as FindOptions, type index_FoundBlock as FoundBlock, type index_GateChunkReport as GateChunkReport, index_HOSTED_MCP_PATH as HOSTED_MCP_PATH, type index_InviteOutcome as InviteOutcome, type index_InviteOutcomeClient as InviteOutcomeClient, type index_InviteOutcomeInput as InviteOutcomeInput, type index_InviteOutcomeReason as InviteOutcomeReason, index_MANUAL_FETCH_TIMEOUT_MS as MANUAL_FETCH_TIMEOUT_MS, index_MANUAL_MAX_BYTES as MANUAL_MAX_BYTES, index_MANUAL_MAX_REDIRECTS as MANUAL_MAX_REDIRECTS, index_MANUAL_SKILL_NAME as MANUAL_SKILL_NAME, type index_ManualFetch as ManualFetch, index_ManualSync as ManualSync, type index_ManualSyncOptions as ManualSyncOptions, type index_ManualSyncResult as ManualSyncResult, type index_ManualSyncState as ManualSyncState, type index_OutcomeClient as OutcomeClient, type index_ProbeHostedToolsOptions as ProbeHostedToolsOptions, type index_ProbeHostedToolsResult as ProbeHostedToolsResult, type index_ProcessingFailureReport as ProcessingFailureReport, index_REQUIRED_HOSTED_TOOLS as REQUIRED_HOSTED_TOOLS, type index_Readiness as Readiness, index_ReceiveLoop as ReceiveLoop, type index_ReceiveLoopClient as ReceiveLoopClient, type index_ReceiveLoopEvent as ReceiveLoopEvent, type index_ReceiveLoopMode as ReceiveLoopMode, type index_ReceiveLoopOptions as ReceiveLoopOptions, type index_ReceiveLoopSocketOptions as ReceiveLoopSocketOptions, type index_ReceiveLoopStatus as ReceiveLoopStatus, type index_RecoverInput as RecoverInput, type index_RegisterInput as RegisterInput, type index_RunEnd as RunEnd, type index_RunKind as RunKind, type index_RunRequest as RunRequest, type index_RunStarter as RunStarter, type index_RunningTurn as RunningTurn, type index_RuntimeCheck as RuntimeCheck, type index_ServedManual as ServedManual, type index_SignupAction as SignupAction, type index_SyncManualOptions as SyncManualOptions, index_TEXTS_FETCH_TIMEOUT_MS as TEXTS_FETCH_TIMEOUT_MS, index_TEXTS_REFRESH_MS as TEXTS_REFRESH_MS, index_TEXTS_RETRY_MAX_MS as TEXTS_RETRY_MAX_MS, index_TEXTS_RETRY_MS as TEXTS_RETRY_MS, index_TextsCache as TextsCache, type index_TextsCacheOptions as TextsCacheOptions, type TextsSource$1 as TextsCacheSource, type index_TextsClient as TextsClient, type index_TextsListener as TextsListener, type index_TextsSource as TextsSource, type index_TimerHandle as TimerHandle, type index_TrackedTurn as TrackedTurn, type index_TurnAdmission as TurnAdmission, type index_TurnEnd as TurnEnd, type index_TurnHandle as TurnHandle, type index_TurnOutcome as TurnOutcome, type index_TurnOutcomeInput as TurnOutcomeInput, type index_TurnOutcomeReason as TurnOutcomeReason, type index_TurnRequest as TurnRequest, type index_TurnStarter as TurnStarter, index_TurnTracker as TurnTracker, index_WakeCoalescer as WakeCoalescer, type index_WakeCoalescerOptions as WakeCoalescerOptions, type index_WakeSource as WakeSource, type index_WriteAtomicOptions as WriteAtomicOptions, index_account as account, index_anchor as anchor, index_applyInviteOutcome as applyInviteOutcome, index_applyOutcome as applyOutcome, index_conversationRunPrompt as conversationRunPrompt, index_hostedMcpUrl as hostedMcpUrl, index_inviteOutcome as inviteOutcome, index_isTexts as isTexts, index_manualFrontMatter as manualFrontMatter, index_manualVersion as manualVersion, index_probeHostedTools as probeHostedTools, index_renameWithRetry as renameWithRetry, index_replyPrompt as replyPrompt, index_syncManual as syncManual, index_turnOutcome as turnOutcome, index_writeAtomic as writeAtomic };
|
|
5256
|
+
export { type index_AccountAnswer as AccountAnswer, type index_AccountCallOptions as AccountCallOptions, type index_AccountKind as AccountKind, type index_AccountLabels as AccountLabels, type index_AccountQuestion as AccountQuestion, type RunOptions as AccountRunOptions, type RunResult as AccountRunResult, type StepResult as AccountStepResult, type index_AgentChatCallCount as AgentChatCallCount, type index_CheckKeyResult as CheckKeyResult, type index_CoalescerCounters as CoalescerCounters, type index_CoalescerState as CoalescerState, type index_ConfirmedTurnEnd as ConfirmedTurnEnd, type index_CycleOutcome as CycleOutcome, type index_CycleSummary as CycleSummary, index_DEFAULT_MAX_MS as DEFAULT_MAX_MS, index_DEFAULT_QUIET_MS as DEFAULT_QUIET_MS, type index_FailureHoldReason as FailureHoldReason, type index_FailureSource as FailureSource, type index_FindOptions as FindOptions, type index_FoundBlock as FoundBlock, type index_GateChunkReport as GateChunkReport, index_HOSTED_MCP_PATH as HOSTED_MCP_PATH, type index_HeldConversation as HeldConversation, type index_InviteOutcome as InviteOutcome, type index_InviteOutcomeClient as InviteOutcomeClient, type index_InviteOutcomeInput as InviteOutcomeInput, type index_InviteOutcomeReason as InviteOutcomeReason, index_MANUAL_FETCH_TIMEOUT_MS as MANUAL_FETCH_TIMEOUT_MS, index_MANUAL_MAX_BYTES as MANUAL_MAX_BYTES, index_MANUAL_MAX_REDIRECTS as MANUAL_MAX_REDIRECTS, index_MANUAL_SKILL_NAME as MANUAL_SKILL_NAME, type index_ManualFetch as ManualFetch, index_ManualSync as ManualSync, type index_ManualSyncOptions as ManualSyncOptions, type index_ManualSyncResult as ManualSyncResult, type index_ManualSyncState as ManualSyncState, type index_OutcomeClient as OutcomeClient, type index_ProbeHostedToolsOptions as ProbeHostedToolsOptions, type index_ProbeHostedToolsResult as ProbeHostedToolsResult, type index_ProcessingFailureReport as ProcessingFailureReport, index_REQUIRED_HOSTED_TOOLS as REQUIRED_HOSTED_TOOLS, type index_Readiness as Readiness, index_ReceiveLoop as ReceiveLoop, type index_ReceiveLoopClient as ReceiveLoopClient, type index_ReceiveLoopEvent as ReceiveLoopEvent, type index_ReceiveLoopMode as ReceiveLoopMode, type index_ReceiveLoopOptions as ReceiveLoopOptions, type index_ReceiveLoopSocketOptions as ReceiveLoopSocketOptions, type index_ReceiveLoopStatus as ReceiveLoopStatus, type index_RecoverInput as RecoverInput, type index_RegisterInput as RegisterInput, type index_RunEnd as RunEnd, type index_RunKind as RunKind, type index_RunRequest as RunRequest, type index_RunStarter as RunStarter, type index_RunningTurn as RunningTurn, type index_RuntimeCheck as RuntimeCheck, type index_ServedManual as ServedManual, type index_SignupAction as SignupAction, type index_SyncManualOptions as SyncManualOptions, index_TEXTS_FETCH_TIMEOUT_MS as TEXTS_FETCH_TIMEOUT_MS, index_TEXTS_REFRESH_MS as TEXTS_REFRESH_MS, index_TEXTS_RETRY_MAX_MS as TEXTS_RETRY_MAX_MS, index_TEXTS_RETRY_MS as TEXTS_RETRY_MS, index_TextsCache as TextsCache, type index_TextsCacheOptions as TextsCacheOptions, type TextsSource$1 as TextsCacheSource, type index_TextsClient as TextsClient, type index_TextsListener as TextsListener, type index_TextsSource as TextsSource, type index_TimerHandle as TimerHandle, type index_TrackedTurn as TrackedTurn, type index_TurnAdmission as TurnAdmission, type index_TurnEnd as TurnEnd, type index_TurnHandle as TurnHandle, type index_TurnOutcome as TurnOutcome, type index_TurnOutcomeInput as TurnOutcomeInput, type index_TurnOutcomeReason as TurnOutcomeReason, type index_TurnRequest as TurnRequest, type index_TurnStarter as TurnStarter, index_TurnTracker as TurnTracker, index_WakeCoalescer as WakeCoalescer, type index_WakeCoalescerOptions as WakeCoalescerOptions, type index_WakeSource as WakeSource, type index_WriteAtomicOptions as WriteAtomicOptions, index_account as account, index_anchor as anchor, index_applyInviteOutcome as applyInviteOutcome, index_applyOutcome as applyOutcome, index_conversationRunPrompt as conversationRunPrompt, index_hostedMcpUrl as hostedMcpUrl, index_inviteOutcome as inviteOutcome, index_isTexts as isTexts, index_manualFrontMatter as manualFrontMatter, index_manualVersion as manualVersion, index_probeHostedTools as probeHostedTools, index_renameWithRetry as renameWithRetry, index_replyPrompt as replyPrompt, index_syncManual as syncManual, index_turnOutcome as turnOutcome, index_writeAtomic as writeAtomic };
|
|
5140
5257
|
}
|
|
5141
5258
|
|
|
5142
5259
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -3865,16 +3865,30 @@ declare function probeHostedTools(options: ProbeHostedToolsOptions): Promise<Pro
|
|
|
3865
3865
|
* runtime check fails is dropped (a broken runtime reports nothing: that is
|
|
3866
3866
|
* the integration's runs-failing path, and the server's re-wakes). A
|
|
3867
3867
|
* failure reported as its attempt ends keeps its conversation held (no other
|
|
3868
|
-
* cycle starts it) until the server has answered.
|
|
3868
|
+
* cycle starts it) until the server has answered. So does one reported
|
|
3869
|
+
* later (on another conversation's completion, or on the runtime check),
|
|
3870
|
+
* from the moment its report is due: no cycle gates or runs it, and a run or
|
|
3871
|
+
* turn of it waiting for a slot waits for the answer. A run or
|
|
3869
3872
|
* turn that answered, or recorded a verdict, before it failed (read on a
|
|
3870
3873
|
* fresh tray) is not a failure, nor is one `stop()` cut short. The report
|
|
3871
3874
|
* reads through the card's anchor as it was when the failed attempt started;
|
|
3872
3875
|
* the server picks the span and answers: `retry` or `hidden` → that
|
|
3873
3876
|
* conversation goes again, after the others already queued (a gate call
|
|
3874
3877
|
* after `hidden` in the next cycle, on the fresh card); `paused` or `none`
|
|
3875
|
-
* → the loop stops for it
|
|
3876
|
-
*
|
|
3877
|
-
*
|
|
3878
|
+
* → the loop stops for it and holds it at the anchor it reported: no later
|
|
3879
|
+
* cycle runs it or gates it again (a message elsewhere, a wake frame, a
|
|
3880
|
+
* reconnect, an `unanswered` re-wake included), and a run or turn of it at
|
|
3881
|
+
* that anchor does not start: one waiting for a slot is dropped, one
|
|
3882
|
+
* decided before the answer came is checked again at its start, and a run
|
|
3883
|
+
* of it already under way that ends silent there does not lift the hold. A
|
|
3884
|
+
* failed message is not
|
|
3885
|
+
* redelivered to the model; new messages flow: a newer message in that
|
|
3886
|
+
* conversation moves its anchor and ends the hold (its failures are reported
|
|
3887
|
+
* afresh), and so does a verdict or mark-read that takes the card off the
|
|
3888
|
+
* tray. In memory: a restart may try it once more, and that report holds it
|
|
3889
|
+
* again. At most `MAX_RERUNS_PER_CYCLE` (3) re-runs per
|
|
3890
|
+
* conversation per cycle. `status().processingFailures` counts it all and
|
|
3891
|
+
* lists what is held (`held`); each report is a `processing_failure` event.
|
|
3878
3892
|
*
|
|
3879
3893
|
* Wakes: a `message.new` frame that is not the echo of the agent's own send,
|
|
3880
3894
|
* a `wake` frame (a reminder, or unanswered cards), every accepted HELLO (a
|
|
@@ -3904,7 +3918,8 @@ declare function probeHostedTools(options: ProbeHostedToolsOptions): Promise<Pro
|
|
|
3904
3918
|
* unless a newer message moves its anchor or an `unanswered` wake names it;
|
|
3905
3919
|
* after an invite turn that left the invite pending, no second invite turn
|
|
3906
3920
|
* for it within `paceMs` unless an `unanswered` wake arrives (those name no
|
|
3907
|
-
* invites). In memory.
|
|
3921
|
+
* invites). In memory. The could-not-process hold above is the same hold
|
|
3922
|
+
* without the time limit, and an `unanswered` wake does not lift it.
|
|
3908
3923
|
*
|
|
3909
3924
|
* There is no retry ladder here. A cycle that could not finish (the tray
|
|
3910
3925
|
* could not be read, the model failed, a turn was refused or failed) leaves
|
|
@@ -4031,7 +4046,7 @@ type WakeSource = 'message' | 'wake_frame' | 'connect' | 'invite' | 'external' |
|
|
|
4031
4046
|
type CycleOutcome =
|
|
4032
4047
|
/** The tray had no cards and no invites. */
|
|
4033
4048
|
'empty'
|
|
4034
|
-
/** Cards were there, but only muted ones, paced ones or ones a
|
|
4049
|
+
/** Cards were there, but only muted ones, paced ones, ones a turn holds, or ones held after a could-not-process answer. */
|
|
4035
4050
|
| 'nothing_owed' | 'tray_failed' | 'texts_missing' | 'tools_unavailable'
|
|
4036
4051
|
/**
|
|
4037
4052
|
* gateCall: the gate decided (turns started or queued for the replies). With
|
|
@@ -4070,10 +4085,17 @@ interface CycleSummary {
|
|
|
4070
4085
|
readonly turnsRefused: number;
|
|
4071
4086
|
/** Reply or invite turns (conversation runs: runs) waiting for a slot (`maxConcurrentTurns`). */
|
|
4072
4087
|
readonly turnsQueued: number;
|
|
4073
|
-
/** Cards left out because a turn for their conversation is running or waiting. */
|
|
4088
|
+
/** Cards left out because a turn for their conversation is running or waiting (or its could-not-process report is out). */
|
|
4074
4089
|
readonly heldByTurns: number;
|
|
4075
4090
|
/** Cards and invites left out by D5 pacing (a recent silent turn). */
|
|
4076
4091
|
readonly paced: number;
|
|
4092
|
+
/**
|
|
4093
|
+
* Cards left out because a could-not-process report through their anchor
|
|
4094
|
+
* was answered `none` or `paused`: not run again until a newer message.
|
|
4095
|
+
* Always set by `ReceiveLoop` (optional in the type, so summaries built
|
|
4096
|
+
* elsewhere keep compiling).
|
|
4097
|
+
*/
|
|
4098
|
+
readonly heldAfterFailure?: number;
|
|
4077
4099
|
/** gateCall: gate calls (one per chunk of at most `gateChunkSize` cards) whose answer gave verdicts. */
|
|
4078
4100
|
readonly chunksOk: number;
|
|
4079
4101
|
/**
|
|
@@ -4157,10 +4179,29 @@ interface ProcessingFailureReport {
|
|
|
4157
4179
|
* `hidden`, but its next attempt is already under way: running, queued, or
|
|
4158
4180
|
* being gated now), `stop` (`paused`, `none`, or the report failed),
|
|
4159
4181
|
* `rerun_capped` (`retry` / `hidden`, but it already ran again
|
|
4160
|
-
* `MAX_RERUNS_PER_CYCLE` times in this cycle).
|
|
4182
|
+
* `MAX_RERUNS_PER_CYCLE` times in this cycle). After a `paused` or `none`
|
|
4183
|
+
* answer the conversation is also held at `throughMessageId` until a newer
|
|
4184
|
+
* message arrives (`status().processingFailures.held`).
|
|
4161
4185
|
*/
|
|
4162
4186
|
readonly next: 'rerun' | 'running' | 'stop' | 'rerun_capped';
|
|
4163
4187
|
}
|
|
4188
|
+
/** The server's answer that holds a conversation after a could-not-process report. */
|
|
4189
|
+
type FailureHoldReason = 'none' | 'paused';
|
|
4190
|
+
/**
|
|
4191
|
+
* A conversation the loop does not run again until a newer message moves its
|
|
4192
|
+
* card's anchor: the server answered `none` or `paused` to a could-not-process
|
|
4193
|
+
* report through `anchor`. In memory: a restart may try it once more (that
|
|
4194
|
+
* report answers the same and holds it again).
|
|
4195
|
+
*/
|
|
4196
|
+
interface HeldConversation {
|
|
4197
|
+
readonly conversationId: string;
|
|
4198
|
+
/** The anchor the failed attempt read through (the report's `throughMessageId`). */
|
|
4199
|
+
readonly anchor: string;
|
|
4200
|
+
/** When the answer came (ISO 8601). */
|
|
4201
|
+
readonly since: string;
|
|
4202
|
+
/** The server's answer. */
|
|
4203
|
+
readonly reason: FailureHoldReason;
|
|
4204
|
+
}
|
|
4164
4205
|
type ReceiveLoopEvent = {
|
|
4165
4206
|
readonly type: 'wake';
|
|
4166
4207
|
readonly source: WakeSource;
|
|
@@ -4420,12 +4461,27 @@ interface ReceiveLoopStatus {
|
|
|
4420
4461
|
readonly runtimeChecksFailed: number;
|
|
4421
4462
|
/** Gate splits stopped (`split_stopped`), since start. */
|
|
4422
4463
|
readonly splitsStopped: number;
|
|
4464
|
+
/**
|
|
4465
|
+
* Runs and reply turns not started because their conversation is held
|
|
4466
|
+
* after a could-not-process answer (dropped from the queue, or stopped at
|
|
4467
|
+
* their start), since start. Always set by `ReceiveLoop`.
|
|
4468
|
+
*/
|
|
4469
|
+
readonly startsHeld?: number;
|
|
4423
4470
|
/** The last `checkRuntime()` answer, or null. */
|
|
4424
4471
|
readonly lastRuntimeCheck: {
|
|
4425
4472
|
readonly at: string;
|
|
4426
4473
|
readonly ok: boolean;
|
|
4427
4474
|
readonly detail: string | null;
|
|
4428
4475
|
} | null;
|
|
4476
|
+
/**
|
|
4477
|
+
* Conversations not run again until a new message arrives: the server
|
|
4478
|
+
* answered `none` or `paused` to their report (oldest first). As of the
|
|
4479
|
+
* last tray read: a card read since (a verdict, a mark-read) or moved to
|
|
4480
|
+
* a newer anchor leaves the list at the next one. Always set by
|
|
4481
|
+
* `ReceiveLoop` (optional in the type, so status objects built elsewhere
|
|
4482
|
+
* keep compiling).
|
|
4483
|
+
*/
|
|
4484
|
+
readonly held?: HeldConversation[];
|
|
4429
4485
|
};
|
|
4430
4486
|
readonly lastError: string | null;
|
|
4431
4487
|
}
|
|
@@ -4481,12 +4537,20 @@ declare class ReceiveLoop {
|
|
|
4481
4537
|
private readonly failureCounts;
|
|
4482
4538
|
/** Conversations whose verdict a gate call is recording right now (an abandoned cycle's included). */
|
|
4483
4539
|
private readonly recordsInFlight;
|
|
4540
|
+
/**
|
|
4541
|
+
* Could not process: conversations whose report is out on another's
|
|
4542
|
+
* completion (`takeDue`): held out of the gate and of new runs, and a run
|
|
4543
|
+
* or turn of theirs waiting for a slot waits, until the server answers.
|
|
4544
|
+
*/
|
|
4545
|
+
private readonly reporting;
|
|
4484
4546
|
/** Turns holding a slot (admitted, not yet ended or released). */
|
|
4485
4547
|
private readonly slotted;
|
|
4486
4548
|
private handle;
|
|
4487
4549
|
private started;
|
|
4488
4550
|
private stopped;
|
|
4489
4551
|
private heldWhileRunning;
|
|
4552
|
+
/** A cycle left a card out because its could-not-process report was out: `letGo` reads the tray again. */
|
|
4553
|
+
private heldWhileReporting;
|
|
4490
4554
|
private activeTurns;
|
|
4491
4555
|
private noProgressStreak;
|
|
4492
4556
|
private moreTimer;
|
|
@@ -4554,9 +4618,29 @@ declare class ReceiveLoop {
|
|
|
4554
4618
|
/**
|
|
4555
4619
|
* Held out of the gate: a running or waiting turn, or a verdict still being
|
|
4556
4620
|
* recorded (an abandoned cycle's last call): gating it again could record
|
|
4557
|
-
* the same verdict twice (a second defer climbs the ladder).
|
|
4621
|
+
* the same verdict twice (a second defer climbs the ladder). Also a
|
|
4622
|
+
* conversation whose could-not-process report is out (`reporting`): its
|
|
4623
|
+
* answer may hold it.
|
|
4558
4624
|
*/
|
|
4559
4625
|
private unheld;
|
|
4626
|
+
/**
|
|
4627
|
+
* The cards neither paced (D5) nor held after a could-not-process answer
|
|
4628
|
+
* (`none` / `paused` through the anchor they still show), and how many of
|
|
4629
|
+
* each were left out. A card whose anchor moved is no longer held.
|
|
4630
|
+
*/
|
|
4631
|
+
private paceCards;
|
|
4632
|
+
/** Held after a could-not-process answer, at the anchor this card still shows. */
|
|
4633
|
+
private heldAfterFailure;
|
|
4634
|
+
/**
|
|
4635
|
+
* A tray read after `mark`, every card on it (a turn's included): a held
|
|
4636
|
+
* conversation whose card shows a newer anchor is no longer held, and on
|
|
4637
|
+
* a complete tray (not truncated) neither is one whose card is gone (read
|
|
4638
|
+
* meanwhile: a verdict, a mark-read). A truncated tray proves nothing
|
|
4639
|
+
* about the cards it does not show.
|
|
4640
|
+
*/
|
|
4641
|
+
private forgetCleared;
|
|
4642
|
+
/** The start of a run or reply turn: held after a could-not-process answer at the anchor it was started for. */
|
|
4643
|
+
private failureHeld;
|
|
4560
4644
|
/**
|
|
4561
4645
|
* The gate in chunks (contract v1 §3.6): the cards, in tray order, split
|
|
4562
4646
|
* into chunks of at most `gateChunkSize`, one gate call per chunk, one
|
|
@@ -4634,6 +4718,7 @@ declare class ReceiveLoop {
|
|
|
4634
4718
|
/** The turn's slot is free (it ended, was refused, or was released): start the turns waiting for one. */
|
|
4635
4719
|
private releaseSlot;
|
|
4636
4720
|
private pump;
|
|
4721
|
+
private awaitsAnswer;
|
|
4637
4722
|
private afterReplyTurn;
|
|
4638
4723
|
private recordReplyOutcome;
|
|
4639
4724
|
private afterInviteTurn;
|
|
@@ -4651,11 +4736,26 @@ declare class ReceiveLoop {
|
|
|
4651
4736
|
*/
|
|
4652
4737
|
private completed;
|
|
4653
4738
|
/**
|
|
4654
|
-
*
|
|
4655
|
-
*
|
|
4656
|
-
*
|
|
4739
|
+
* The failures this completion is the evidence for (each once), taken off
|
|
4740
|
+
* the waiting list. Their conversations are held from now until the
|
|
4741
|
+
* server has answered (`reporting`): no gate, and a run or turn of theirs
|
|
4742
|
+
* waiting for a slot waits for the answer, so it never starts on the input
|
|
4743
|
+
* the answer is about. Take them before the completed work's slot frees.
|
|
4744
|
+
* One that waited past `AWAITING_EVIDENCE_MS` is dropped instead: a
|
|
4745
|
+
* completion that late says little about the runtime when it failed.
|
|
4657
4746
|
*/
|
|
4747
|
+
private takeDue;
|
|
4748
|
+
/** Report what `takeDue` took, letting go of each conversation once its answer is in: what waits for it goes on (or was dropped). */
|
|
4658
4749
|
private reportDue;
|
|
4750
|
+
/** A report for this failure is due: its conversation is held until `letGo` (counted: two reports out hold it until both are answered). */
|
|
4751
|
+
private holdForReport;
|
|
4752
|
+
/**
|
|
4753
|
+
* The answers are in (or the report is off): those conversations are no
|
|
4754
|
+
* longer held for it, what waits for them goes on, and a card a cycle left
|
|
4755
|
+
* out meanwhile for a report is read again (only then: a wake for
|
|
4756
|
+
* anything else could spin while a turn runs).
|
|
4757
|
+
*/
|
|
4758
|
+
private letGo;
|
|
4659
4759
|
/** An attempt of this kind failed for these conversations (whatever comes of it): see `failingSince`. */
|
|
4660
4760
|
private failedAttempt;
|
|
4661
4761
|
/**
|
|
@@ -4689,6 +4789,17 @@ declare class ReceiveLoop {
|
|
|
4689
4789
|
private runtimeCheck;
|
|
4690
4790
|
/** Tell the server, and do what it answers: run the conversation again (`retry`, `hidden`) or stop (`paused`, `none`). */
|
|
4691
4791
|
private reportFailure;
|
|
4792
|
+
/**
|
|
4793
|
+
* The server answered `none` or `paused`: the conversation is held at the
|
|
4794
|
+
* anchor the report read through, so no later cycle (a message elsewhere,
|
|
4795
|
+
* a wake frame, a reconnect, an `unanswered` re-wake, a turn's end) runs it
|
|
4796
|
+
* again on the same input. A newer message moves its anchor and lifts the
|
|
4797
|
+
* hold (`paceCards`); a card read meanwhile leaves the tray, and the hold
|
|
4798
|
+
* with it (`forgetCleared`). What waits for it does not start: a run or
|
|
4799
|
+
* reply turn queued at that anchor (after `paused`, the server's mute, any),
|
|
4800
|
+
* and a reply turn to start again after the gate.
|
|
4801
|
+
*/
|
|
4802
|
+
private holdFailed;
|
|
4692
4803
|
/**
|
|
4693
4804
|
* Run the conversation again after a `retry` or `hidden` answer, after the
|
|
4694
4805
|
* others already queued, and say what was done. Its run or reply turn takes
|
|
@@ -4704,7 +4815,11 @@ declare class ReceiveLoop {
|
|
|
4704
4815
|
private rerun;
|
|
4705
4816
|
/** The reply turns asked for while a gate was deciding: started now, after the cycle's own turns. */
|
|
4706
4817
|
private flushTurnReruns;
|
|
4707
|
-
/**
|
|
4818
|
+
/**
|
|
4819
|
+
* A held conversation: a run or turn still waiting for a slot for it does
|
|
4820
|
+
* not start; with an `anchor`, only one for that anchor (one queued for a
|
|
4821
|
+
* newer message is new input, and goes on).
|
|
4822
|
+
*/
|
|
4708
4823
|
private dropWaiting;
|
|
4709
4824
|
private rememberGateAlone;
|
|
4710
4825
|
/** Recording under way after a turn's confirmed end: `stop()` waits for it. */
|
|
@@ -5048,11 +5163,13 @@ type index_CycleOutcome = CycleOutcome;
|
|
|
5048
5163
|
type index_CycleSummary = CycleSummary;
|
|
5049
5164
|
declare const index_DEFAULT_MAX_MS: typeof DEFAULT_MAX_MS;
|
|
5050
5165
|
declare const index_DEFAULT_QUIET_MS: typeof DEFAULT_QUIET_MS;
|
|
5166
|
+
type index_FailureHoldReason = FailureHoldReason;
|
|
5051
5167
|
type index_FailureSource = FailureSource;
|
|
5052
5168
|
type index_FindOptions = FindOptions;
|
|
5053
5169
|
type index_FoundBlock = FoundBlock;
|
|
5054
5170
|
type index_GateChunkReport = GateChunkReport;
|
|
5055
5171
|
declare const index_HOSTED_MCP_PATH: typeof HOSTED_MCP_PATH;
|
|
5172
|
+
type index_HeldConversation = HeldConversation;
|
|
5056
5173
|
type index_InviteOutcome = InviteOutcome;
|
|
5057
5174
|
type index_InviteOutcomeClient = InviteOutcomeClient;
|
|
5058
5175
|
type index_InviteOutcomeInput = InviteOutcomeInput;
|
|
@@ -5136,7 +5253,7 @@ declare const index_syncManual: typeof syncManual;
|
|
|
5136
5253
|
declare const index_turnOutcome: typeof turnOutcome;
|
|
5137
5254
|
declare const index_writeAtomic: typeof writeAtomic;
|
|
5138
5255
|
declare namespace index {
|
|
5139
|
-
export { type index_AccountAnswer as AccountAnswer, type index_AccountCallOptions as AccountCallOptions, type index_AccountKind as AccountKind, type index_AccountLabels as AccountLabels, type index_AccountQuestion as AccountQuestion, type RunOptions as AccountRunOptions, type RunResult as AccountRunResult, type StepResult as AccountStepResult, type index_AgentChatCallCount as AgentChatCallCount, type index_CheckKeyResult as CheckKeyResult, type index_CoalescerCounters as CoalescerCounters, type index_CoalescerState as CoalescerState, type index_ConfirmedTurnEnd as ConfirmedTurnEnd, type index_CycleOutcome as CycleOutcome, type index_CycleSummary as CycleSummary, index_DEFAULT_MAX_MS as DEFAULT_MAX_MS, index_DEFAULT_QUIET_MS as DEFAULT_QUIET_MS, type index_FailureSource as FailureSource, type index_FindOptions as FindOptions, type index_FoundBlock as FoundBlock, type index_GateChunkReport as GateChunkReport, index_HOSTED_MCP_PATH as HOSTED_MCP_PATH, type index_InviteOutcome as InviteOutcome, type index_InviteOutcomeClient as InviteOutcomeClient, type index_InviteOutcomeInput as InviteOutcomeInput, type index_InviteOutcomeReason as InviteOutcomeReason, index_MANUAL_FETCH_TIMEOUT_MS as MANUAL_FETCH_TIMEOUT_MS, index_MANUAL_MAX_BYTES as MANUAL_MAX_BYTES, index_MANUAL_MAX_REDIRECTS as MANUAL_MAX_REDIRECTS, index_MANUAL_SKILL_NAME as MANUAL_SKILL_NAME, type index_ManualFetch as ManualFetch, index_ManualSync as ManualSync, type index_ManualSyncOptions as ManualSyncOptions, type index_ManualSyncResult as ManualSyncResult, type index_ManualSyncState as ManualSyncState, type index_OutcomeClient as OutcomeClient, type index_ProbeHostedToolsOptions as ProbeHostedToolsOptions, type index_ProbeHostedToolsResult as ProbeHostedToolsResult, type index_ProcessingFailureReport as ProcessingFailureReport, index_REQUIRED_HOSTED_TOOLS as REQUIRED_HOSTED_TOOLS, type index_Readiness as Readiness, index_ReceiveLoop as ReceiveLoop, type index_ReceiveLoopClient as ReceiveLoopClient, type index_ReceiveLoopEvent as ReceiveLoopEvent, type index_ReceiveLoopMode as ReceiveLoopMode, type index_ReceiveLoopOptions as ReceiveLoopOptions, type index_ReceiveLoopSocketOptions as ReceiveLoopSocketOptions, type index_ReceiveLoopStatus as ReceiveLoopStatus, type index_RecoverInput as RecoverInput, type index_RegisterInput as RegisterInput, type index_RunEnd as RunEnd, type index_RunKind as RunKind, type index_RunRequest as RunRequest, type index_RunStarter as RunStarter, type index_RunningTurn as RunningTurn, type index_RuntimeCheck as RuntimeCheck, type index_ServedManual as ServedManual, type index_SignupAction as SignupAction, type index_SyncManualOptions as SyncManualOptions, index_TEXTS_FETCH_TIMEOUT_MS as TEXTS_FETCH_TIMEOUT_MS, index_TEXTS_REFRESH_MS as TEXTS_REFRESH_MS, index_TEXTS_RETRY_MAX_MS as TEXTS_RETRY_MAX_MS, index_TEXTS_RETRY_MS as TEXTS_RETRY_MS, index_TextsCache as TextsCache, type index_TextsCacheOptions as TextsCacheOptions, type TextsSource$1 as TextsCacheSource, type index_TextsClient as TextsClient, type index_TextsListener as TextsListener, type index_TextsSource as TextsSource, type index_TimerHandle as TimerHandle, type index_TrackedTurn as TrackedTurn, type index_TurnAdmission as TurnAdmission, type index_TurnEnd as TurnEnd, type index_TurnHandle as TurnHandle, type index_TurnOutcome as TurnOutcome, type index_TurnOutcomeInput as TurnOutcomeInput, type index_TurnOutcomeReason as TurnOutcomeReason, type index_TurnRequest as TurnRequest, type index_TurnStarter as TurnStarter, index_TurnTracker as TurnTracker, index_WakeCoalescer as WakeCoalescer, type index_WakeCoalescerOptions as WakeCoalescerOptions, type index_WakeSource as WakeSource, type index_WriteAtomicOptions as WriteAtomicOptions, index_account as account, index_anchor as anchor, index_applyInviteOutcome as applyInviteOutcome, index_applyOutcome as applyOutcome, index_conversationRunPrompt as conversationRunPrompt, index_hostedMcpUrl as hostedMcpUrl, index_inviteOutcome as inviteOutcome, index_isTexts as isTexts, index_manualFrontMatter as manualFrontMatter, index_manualVersion as manualVersion, index_probeHostedTools as probeHostedTools, index_renameWithRetry as renameWithRetry, index_replyPrompt as replyPrompt, index_syncManual as syncManual, index_turnOutcome as turnOutcome, index_writeAtomic as writeAtomic };
|
|
5256
|
+
export { type index_AccountAnswer as AccountAnswer, type index_AccountCallOptions as AccountCallOptions, type index_AccountKind as AccountKind, type index_AccountLabels as AccountLabels, type index_AccountQuestion as AccountQuestion, type RunOptions as AccountRunOptions, type RunResult as AccountRunResult, type StepResult as AccountStepResult, type index_AgentChatCallCount as AgentChatCallCount, type index_CheckKeyResult as CheckKeyResult, type index_CoalescerCounters as CoalescerCounters, type index_CoalescerState as CoalescerState, type index_ConfirmedTurnEnd as ConfirmedTurnEnd, type index_CycleOutcome as CycleOutcome, type index_CycleSummary as CycleSummary, index_DEFAULT_MAX_MS as DEFAULT_MAX_MS, index_DEFAULT_QUIET_MS as DEFAULT_QUIET_MS, type index_FailureHoldReason as FailureHoldReason, type index_FailureSource as FailureSource, type index_FindOptions as FindOptions, type index_FoundBlock as FoundBlock, type index_GateChunkReport as GateChunkReport, index_HOSTED_MCP_PATH as HOSTED_MCP_PATH, type index_HeldConversation as HeldConversation, type index_InviteOutcome as InviteOutcome, type index_InviteOutcomeClient as InviteOutcomeClient, type index_InviteOutcomeInput as InviteOutcomeInput, type index_InviteOutcomeReason as InviteOutcomeReason, index_MANUAL_FETCH_TIMEOUT_MS as MANUAL_FETCH_TIMEOUT_MS, index_MANUAL_MAX_BYTES as MANUAL_MAX_BYTES, index_MANUAL_MAX_REDIRECTS as MANUAL_MAX_REDIRECTS, index_MANUAL_SKILL_NAME as MANUAL_SKILL_NAME, type index_ManualFetch as ManualFetch, index_ManualSync as ManualSync, type index_ManualSyncOptions as ManualSyncOptions, type index_ManualSyncResult as ManualSyncResult, type index_ManualSyncState as ManualSyncState, type index_OutcomeClient as OutcomeClient, type index_ProbeHostedToolsOptions as ProbeHostedToolsOptions, type index_ProbeHostedToolsResult as ProbeHostedToolsResult, type index_ProcessingFailureReport as ProcessingFailureReport, index_REQUIRED_HOSTED_TOOLS as REQUIRED_HOSTED_TOOLS, type index_Readiness as Readiness, index_ReceiveLoop as ReceiveLoop, type index_ReceiveLoopClient as ReceiveLoopClient, type index_ReceiveLoopEvent as ReceiveLoopEvent, type index_ReceiveLoopMode as ReceiveLoopMode, type index_ReceiveLoopOptions as ReceiveLoopOptions, type index_ReceiveLoopSocketOptions as ReceiveLoopSocketOptions, type index_ReceiveLoopStatus as ReceiveLoopStatus, type index_RecoverInput as RecoverInput, type index_RegisterInput as RegisterInput, type index_RunEnd as RunEnd, type index_RunKind as RunKind, type index_RunRequest as RunRequest, type index_RunStarter as RunStarter, type index_RunningTurn as RunningTurn, type index_RuntimeCheck as RuntimeCheck, type index_ServedManual as ServedManual, type index_SignupAction as SignupAction, type index_SyncManualOptions as SyncManualOptions, index_TEXTS_FETCH_TIMEOUT_MS as TEXTS_FETCH_TIMEOUT_MS, index_TEXTS_REFRESH_MS as TEXTS_REFRESH_MS, index_TEXTS_RETRY_MAX_MS as TEXTS_RETRY_MAX_MS, index_TEXTS_RETRY_MS as TEXTS_RETRY_MS, index_TextsCache as TextsCache, type index_TextsCacheOptions as TextsCacheOptions, type TextsSource$1 as TextsCacheSource, type index_TextsClient as TextsClient, type index_TextsListener as TextsListener, type index_TextsSource as TextsSource, type index_TimerHandle as TimerHandle, type index_TrackedTurn as TrackedTurn, type index_TurnAdmission as TurnAdmission, type index_TurnEnd as TurnEnd, type index_TurnHandle as TurnHandle, type index_TurnOutcome as TurnOutcome, type index_TurnOutcomeInput as TurnOutcomeInput, type index_TurnOutcomeReason as TurnOutcomeReason, type index_TurnRequest as TurnRequest, type index_TurnStarter as TurnStarter, index_TurnTracker as TurnTracker, index_WakeCoalescer as WakeCoalescer, type index_WakeCoalescerOptions as WakeCoalescerOptions, type index_WakeSource as WakeSource, type index_WriteAtomicOptions as WriteAtomicOptions, index_account as account, index_anchor as anchor, index_applyInviteOutcome as applyInviteOutcome, index_applyOutcome as applyOutcome, index_conversationRunPrompt as conversationRunPrompt, index_hostedMcpUrl as hostedMcpUrl, index_inviteOutcome as inviteOutcome, index_isTexts as isTexts, index_manualFrontMatter as manualFrontMatter, index_manualVersion as manualVersion, index_probeHostedTools as probeHostedTools, index_renameWithRetry as renameWithRetry, index_replyPrompt as replyPrompt, index_syncManual as syncManual, index_turnOutcome as turnOutcome, index_writeAtomic as writeAtomic };
|
|
5140
5257
|
}
|
|
5141
5258
|
|
|
5142
5259
|
/**
|