@adhdev/mesh-shared 1.0.82-rc.31 → 1.0.82-rc.33
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/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/dist/outbound-message.d.ts +2 -2
- package/dist/turn-evidence.d.ts +5 -1
- package/package.json +1 -1
- package/src/outbound-message.ts +2 -0
- package/src/turn-evidence.ts +5 -1
|
@@ -126,7 +126,7 @@ export type SendPolicy = {
|
|
|
126
126
|
* `unsupported_input`), which `satisfies readonly SendRefusal[]` there keeps
|
|
127
127
|
* honest at compile time.
|
|
128
128
|
*/
|
|
129
|
-
export type SendRefusal = 'not_ready' | 'send_in_flight' | 'not_generating' | 'not_supported' | 'platform_unsupported' | 'modal_parked' | 'interrupt_not_implemented' | 'interrupt_refused' | 'idle_timeout' | 'session_exited' | 'unsupported_input' | 'no_target' | 'bootstrap_pending' | 'duplicate_dispatch' | 'internal_error';
|
|
129
|
+
export type SendRefusal = 'not_ready' | 'send_in_flight' | 'not_generating' | 'not_supported' | 'platform_unsupported' | 'modal_parked' | 'interrupt_not_implemented' | 'interrupt_refused' | 'idle_timeout' | 'session_exited' | 'unsupported_input' | 'no_target' | 'bootstrap_pending' | 'duplicate_dispatch' | 'new_work_held' | 'internal_error';
|
|
130
130
|
/**
|
|
131
131
|
* Which write path carried a delivered/queued message (Phase D2, additive
|
|
132
132
|
* detail — callers branch on `kind`; `route` only refines the report):
|
|
@@ -197,7 +197,7 @@ export declare function isOutboundMessageOrigin(value: unknown): value is Outbou
|
|
|
197
197
|
export declare const SEND_POLICY_MODES: readonly ["queue", "send_now", "interrupt"];
|
|
198
198
|
export declare function isSendPolicyMode(value: unknown): value is SendPolicy['mode'];
|
|
199
199
|
export declare function isSendPolicy(value: unknown): value is SendPolicy;
|
|
200
|
-
export declare const SEND_REFUSAL_REASONS: readonly ["not_ready", "send_in_flight", "not_generating", "not_supported", "platform_unsupported", "modal_parked", "interrupt_not_implemented", "interrupt_refused", "idle_timeout", "session_exited", "unsupported_input", "no_target", "bootstrap_pending", "duplicate_dispatch", "internal_error"];
|
|
200
|
+
export declare const SEND_REFUSAL_REASONS: readonly ["not_ready", "send_in_flight", "not_generating", "not_supported", "platform_unsupported", "modal_parked", "interrupt_not_implemented", "interrupt_refused", "idle_timeout", "session_exited", "unsupported_input", "no_target", "bootstrap_pending", "duplicate_dispatch", "new_work_held", "internal_error"];
|
|
201
201
|
export declare function isSendRefusal(value: unknown): value is SendRefusal;
|
|
202
202
|
export declare function isSubmitOutcome(value: unknown): value is SubmitOutcome;
|
|
203
203
|
export declare function isInputEnvelopeWire(value: unknown): value is InputEnvelopeWire;
|
package/dist/turn-evidence.d.ts
CHANGED
|
@@ -40,7 +40,11 @@ export declare const DELIVERY_OUTCOMES: readonly ["delivered", "queued"];
|
|
|
40
40
|
export type DeliveryOutcome = typeof DELIVERY_OUTCOMES[number];
|
|
41
41
|
export declare const DELIVERY_VIAS: readonly ["local", "p2p"];
|
|
42
42
|
export type DeliveryVia = typeof DELIVERY_VIAS[number];
|
|
43
|
-
|
|
43
|
+
/** `submit_unconfirmed` (SUBMIT-UNCONFIRMED-RECLAIM): the worker's CLI never
|
|
44
|
+
* took the written prompt — the submit budget and one re-paste were spent at
|
|
45
|
+
* an idle composer. An owner daemon older than this value drops the evidence
|
|
46
|
+
* as invalid and falls back to its consume/turn holds (the pre-fix path). */
|
|
47
|
+
export declare const DISPATCH_FAILURE_REASONS: readonly ["worker_absent", "transport_error", "spawn_failed", "rejected_by_worker", "timeout", "submit_unconfirmed"];
|
|
44
48
|
export type DispatchFailureReason = typeof DISPATCH_FAILURE_REASONS[number];
|
|
45
49
|
/**
|
|
46
50
|
* Normalize a worker's own refusal code (e.g. `session_busy_with_task`,
|
package/package.json
CHANGED
package/src/outbound-message.ts
CHANGED
|
@@ -160,6 +160,7 @@ export type SendRefusal =
|
|
|
160
160
|
| 'no_target'
|
|
161
161
|
| 'bootstrap_pending'
|
|
162
162
|
| 'duplicate_dispatch'
|
|
163
|
+
| 'new_work_held'
|
|
163
164
|
| 'internal_error'
|
|
164
165
|
|
|
165
166
|
/**
|
|
@@ -278,6 +279,7 @@ export const SEND_REFUSAL_REASONS = [
|
|
|
278
279
|
'no_target',
|
|
279
280
|
'bootstrap_pending',
|
|
280
281
|
'duplicate_dispatch',
|
|
282
|
+
'new_work_held',
|
|
281
283
|
'internal_error',
|
|
282
284
|
] as const satisfies readonly SendRefusal[]
|
|
283
285
|
|
package/src/turn-evidence.ts
CHANGED
|
@@ -56,7 +56,11 @@ export type DeliveryOutcome = typeof DELIVERY_OUTCOMES[number]
|
|
|
56
56
|
export const DELIVERY_VIAS = ['local', 'p2p'] as const
|
|
57
57
|
export type DeliveryVia = typeof DELIVERY_VIAS[number]
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
/** `submit_unconfirmed` (SUBMIT-UNCONFIRMED-RECLAIM): the worker's CLI never
|
|
60
|
+
* took the written prompt — the submit budget and one re-paste were spent at
|
|
61
|
+
* an idle composer. An owner daemon older than this value drops the evidence
|
|
62
|
+
* as invalid and falls back to its consume/turn holds (the pre-fix path). */
|
|
63
|
+
export const DISPATCH_FAILURE_REASONS = ['worker_absent', 'transport_error', 'spawn_failed', 'rejected_by_worker', 'timeout', 'submit_unconfirmed'] as const
|
|
60
64
|
export type DispatchFailureReason = typeof DISPATCH_FAILURE_REASONS[number]
|
|
61
65
|
|
|
62
66
|
/**
|