@yielded/agent 0.1.0-beta.171 → 0.1.0-beta.172

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.
Files changed (94) hide show
  1. package/dist/{Admin-BmALDmj8.d.mts → Admin-BX9ns28E.d.mts} +2 -2
  2. package/dist/{DurableAgentRuntime-CQGiSnCa.mjs → DurableAgentRuntime-BAmSkWYr.mjs} +10 -9
  3. package/dist/DurableAgentRuntime-BAmSkWYr.mjs.map +1 -0
  4. package/dist/{EventSource-CVXzC_8E.d.mts → EventSource-BwliwQz9.d.mts} +2 -2
  5. package/dist/{MessageDelivery-BGKWdjUu.d.mts → MessageDelivery-CeSDfHZa.d.mts} +4 -4
  6. package/dist/{PreparedInputAdmission-C1xt29pl.d.mts → PreparedInputAdmission-CxSJSiTl.d.mts} +3 -3
  7. package/dist/{RecordFormat-BphUsB6Q.d.mts → RecordFormat-BNiLpe43.d.mts} +9 -3
  8. package/dist/{RunContinuation-CNWMmymY.mjs → RunContinuation-DHYNAQFi.mjs} +2 -2
  9. package/dist/{RunContinuation-CNWMmymY.mjs.map → RunContinuation-DHYNAQFi.mjs.map} +1 -1
  10. package/dist/{RunContinuation-B7a2dK8k.d.mts → RunContinuation-FHM7XPjq.d.mts} +3 -3
  11. package/dist/{RunStorage-FFaYE4-2.mjs → RunStorage-uqPxps09.mjs} +2 -2
  12. package/dist/{RunStorage-FFaYE4-2.mjs.map → RunStorage-uqPxps09.mjs.map} +1 -1
  13. package/dist/{Subscription-CQqYNUqy.d.mts → Subscription-DONig54Q.d.mts} +2 -2
  14. package/dist/{SubscriptionInput-BibUlnWP.d.mts → SubscriptionInput-mJIRxWJM.d.mts} +2 -2
  15. package/dist/{ThreadImport-mLZiwu30.d.mts → ThreadImport-CoQTZywm.d.mts} +42 -42
  16. package/dist/{ThreadImport-BsOXD7qr.mjs → ThreadImport-DckUMEqJ.mjs} +4 -4
  17. package/dist/{ThreadImport-BsOXD7qr.mjs.map → ThreadImport-DckUMEqJ.mjs.map} +1 -1
  18. package/dist/{ThreadStore-B5sew3ir.mjs → ThreadStore-CEekRa80.mjs} +2 -2
  19. package/dist/ThreadStore-CEekRa80.mjs.map +1 -0
  20. package/dist/{ThreadTransfer-DeO03GBg.mjs → ThreadTransfer-B4gTQLIl.mjs} +3 -5
  21. package/dist/ThreadTransfer-B4gTQLIl.mjs.map +1 -0
  22. package/dist/{WorkerAdmission-C1TxLQPT.mjs → WorkerAdmission-DFVbbVh2.mjs} +2 -2
  23. package/dist/{WorkerAdmission-C1TxLQPT.mjs.map → WorkerAdmission-DFVbbVh2.mjs.map} +1 -1
  24. package/dist/durable/Admin.d.mts +1 -1
  25. package/dist/durable/AgentRegistration.d.mts +1 -1
  26. package/dist/durable/Certification.d.mts +1 -1
  27. package/dist/durable/CommittedActivity.d.mts +1 -1
  28. package/dist/durable/CommittedActivity.mjs +1 -1
  29. package/dist/durable/DurableAgentRuntime.d.mts +1 -1
  30. package/dist/durable/DurableAgentRuntime.mjs +2 -2
  31. package/dist/durable/EventSource.d.mts +1 -1
  32. package/dist/durable/GitHubWorkflowSource.d.mts +3 -3
  33. package/dist/durable/LifecyclePublication.d.mts +1 -1
  34. package/dist/durable/LifecyclePublication.mjs +1 -1
  35. package/dist/durable/MessageDelivery.d.mts +1 -1
  36. package/dist/durable/MessageDeliveryStoreConformance.d.mts +2 -2
  37. package/dist/durable/PersistentHistory.d.mts +1 -1
  38. package/dist/durable/PersistentHistory.mjs +2 -2
  39. package/dist/durable/PreparedInputAdmission.d.mts +1 -1
  40. package/dist/durable/RecordFormat.d.mts +2 -2
  41. package/dist/durable/RecordFormat.mjs +14 -2
  42. package/dist/durable/RecordFormat.mjs.map +1 -1
  43. package/dist/durable/Recovery.d.mts +1 -1
  44. package/dist/durable/RunContinuation.d.mts +2 -2
  45. package/dist/durable/RunContinuation.mjs +2 -2
  46. package/dist/durable/RunJournal.d.mts +1 -1
  47. package/dist/durable/RunStorage.d.mts +1 -1
  48. package/dist/durable/RunStorage.mjs +1 -1
  49. package/dist/durable/Scheduling.d.mts +1 -1
  50. package/dist/durable/SettlementPublisher.d.mts +1 -1
  51. package/dist/durable/SettlementPublisher.mjs +1 -1
  52. package/dist/durable/SubmissionLedger.d.mts +1 -1
  53. package/dist/durable/SubmissionLedgerConformance.d.mts +1 -1
  54. package/dist/durable/SubmissionLedgerConformance.mjs +2 -2
  55. package/dist/durable/SubmissionStatus.d.mts +1 -1
  56. package/dist/durable/Subscription.d.mts +1 -1
  57. package/dist/durable/SubscriptionInput.d.mts +1 -1
  58. package/dist/durable/SubscriptionStoreConformance.d.mts +1 -1
  59. package/dist/durable/SubscriptionTools.d.mts +2 -2
  60. package/dist/durable/SubscriptionTransition.d.mts +1 -1
  61. package/dist/durable/Subscriptions.d.mts +5 -5
  62. package/dist/durable/ThreadArchiveRange.d.mts +1 -1
  63. package/dist/durable/ThreadContextHistory.d.mts +1 -1
  64. package/dist/durable/ThreadContextHistory.mjs +1 -1
  65. package/dist/durable/ThreadImport.d.mts +1 -1
  66. package/dist/durable/ThreadImport.mjs +1 -1
  67. package/dist/durable/ThreadInvariants.d.mts +3 -3
  68. package/dist/durable/ThreadInvariants.mjs +3 -3
  69. package/dist/durable/ThreadProjectionMaintenance.d.mts +1 -1
  70. package/dist/durable/ThreadReader.d.mts +1 -1
  71. package/dist/durable/ThreadReader.mjs +1 -1
  72. package/dist/durable/ThreadStore.d.mts +1 -1
  73. package/dist/durable/ThreadStore.mjs +1 -1
  74. package/dist/durable/ThreadStoreConformance.d.mts +1 -1
  75. package/dist/durable/ThreadStoreConformance.mjs +2 -2
  76. package/dist/durable/ThreadTransfer.d.mts +1 -1
  77. package/dist/durable/ThreadTransfer.mjs +1 -1
  78. package/dist/durable/ThreadWork.d.mts +1 -1
  79. package/dist/durable/ThreadWork.mjs +2 -2
  80. package/dist/durable/WorkerAdmission.d.mts +1 -1
  81. package/dist/durable/WorkerAdmission.mjs +1 -1
  82. package/dist/durable/WorkerHost.d.mts +1 -1
  83. package/dist/index.d.mts +9 -9
  84. package/dist/index.mjs +6 -6
  85. package/dist/{run-context-reader-BrbZ8tb7.d.mts → run-context-reader-OcsZr4bk.d.mts} +2 -2
  86. package/package.json +1 -1
  87. package/src/durable/DurableAgentRuntime.ts +4 -1
  88. package/src/durable/RecordFormat.ts +18 -0
  89. package/src/durable/ThreadStore.ts +1 -1
  90. package/src/durable/ThreadTransfer.ts +1 -8
  91. package/src/durable/internal/agent-updates.ts +10 -2
  92. package/dist/DurableAgentRuntime-CQGiSnCa.mjs.map +0 -1
  93. package/dist/ThreadStore-B5sew3ir.mjs.map +0 -1
  94. package/dist/ThreadTransfer-DeO03GBg.mjs.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { K as PersistedJson } from "./Records-BTnGRdcf.mjs";
2
- import { E as SubscriptionSourceError, b as SubscriptionRecord, i as EventSourceVersion, t as AcceptedEvent } from "./Subscription-CQqYNUqy.mjs";
2
+ import { E as SubscriptionSourceError, b as SubscriptionRecord, i as EventSourceVersion, t as AcceptedEvent } from "./Subscription-DONig54Q.mjs";
3
3
  import { Context, Effect, Schema, Scope } from "effect";
4
4
  declare namespace EventSource_d_exports {
5
5
  export { EventSource, EventSources, NormalizedEvent, makeEventSource };
@@ -48,4 +48,4 @@ declare const makeEventSource: <Event extends Schema.Top, Parameters extends Sch
48
48
  }) => Effect.Effect<EventSource, never, Exclude<R, Scope.Scope> | Exclude<Event["DecodingServices"], Scope.Scope> | Exclude<Event["EncodingServices"], Scope.Scope> | Exclude<Parameters["DecodingServices"], Scope.Scope> | Exclude<Parameters["EncodingServices"], Scope.Scope>>;
49
49
  //#endregion
50
50
  export { makeEventSource as a, NormalizedEvent as i, EventSource_d_exports as n, EventSources as r, EventSource as t };
51
- //# sourceMappingURL=EventSource-CVXzC_8E.d.mts.map
51
+ //# sourceMappingURL=EventSource-BwliwQz9.d.mts.map
@@ -5,9 +5,9 @@ import { r as Update } from "./AgentUpdates-DksV4D0A.mjs";
5
5
  import { a as FailureDiagnostic_d_exports, r as Diagnostic } from "./FailureDiagnostic-DvHruCSJ.mjs";
6
6
  import { t as AgentPolicy } from "./AgentPolicy-B4lbCU2T.mjs";
7
7
  import { b as DefinitionDigests } from "./Records-BTnGRdcf.mjs";
8
- import { sn as Settlement, uo as LifecyclePublicationStorage } from "./Admin-BmALDmj8.mjs";
9
- import { a as PreparedInput } from "./Subscription-CQqYNUqy.mjs";
10
- import { t as PreparedInputAdmission } from "./PreparedInputAdmission-C1xt29pl.mjs";
8
+ import { sn as Settlement, uo as LifecyclePublicationStorage } from "./Admin-BX9ns28E.mjs";
9
+ import { a as PreparedInput } from "./Subscription-DONig54Q.mjs";
10
+ import { t as PreparedInputAdmission } from "./PreparedInputAdmission-CxSJSiTl.mjs";
11
11
  import { Context, Crypto, Effect, Layer, Result, Schema } from "effect";
12
12
  declare namespace MessageDelivery_d_exports {
13
13
  export { MessageDeliveryChange, MessageDeliveryCompletion, MessageDeliveryDriver, MessageDeliveryDriverLimits, MessageDeliveryError, MessageDeliveryFailpoint, MessageDeliveryFailpointError, MessageDeliveryFailure, MessageDeliveryKey, MessageDeliveryPage, MessageDeliveryPageRequest, MessageDeliveryPolicy, MessageDeliveryRecord, MessageDeliveryStore, MessageDeliveryStoreLimits, applyMessageDeliveryChange, defaultMessageDeliveryPolicy, defaultMessageDeliveryStoreLimits, isWorkerUpdateDelivery, messageDeliveryCapacity, messageDeliveryDeadline, messageDeliveryKeyString, messageDeliveryUsesCapacity, peerMessageRetentionDeadline, prepareMessageDelivery, readPending, sameMessageDeliveryIdentity, validateMessageDelivery };
@@ -950,4 +950,4 @@ declare class MessageDeliveryDriver extends MessageDeliveryDriver_base {
950
950
  }
951
951
  //#endregion
952
952
  export { messageDeliveryKeyString as C, readPending as D, prepareMessageDelivery as E, sameMessageDeliveryIdentity as O, messageDeliveryDeadline as S, peerMessageRetentionDeadline as T, applyMessageDeliveryChange as _, MessageDeliveryError as a, isWorkerUpdateDelivery as b, MessageDeliveryFailure as c, MessageDeliveryPageRequest as d, MessageDeliveryPolicy as f, MessageDelivery_d_exports as g, MessageDeliveryStoreLimits as h, MessageDeliveryDriverLimits as i, validateMessageDelivery as k, MessageDeliveryKey as l, MessageDeliveryStore as m, MessageDeliveryCompletion as n, MessageDeliveryFailpoint as o, MessageDeliveryRecord as p, MessageDeliveryDriver as r, MessageDeliveryFailpointError as s, MessageDeliveryChange as t, MessageDeliveryPage as u, defaultMessageDeliveryPolicy as v, messageDeliveryUsesCapacity as w, messageDeliveryCapacity as x, defaultMessageDeliveryStoreLimits as y };
953
- //# sourceMappingURL=MessageDelivery-BGKWdjUu.d.mts.map
953
+ //# sourceMappingURL=MessageDelivery-CeSDfHZa.d.mts.map
@@ -1,8 +1,8 @@
1
1
  import { a as Receipt } from "./Receipt-BkM21Qiu.mjs";
2
2
  import { a as FailureDiagnostic_d_exports, r as Diagnostic } from "./FailureDiagnostic-DvHruCSJ.mjs";
3
- import { kr as SubmissionStatus } from "./Admin-BmALDmj8.mjs";
3
+ import { kr as SubmissionStatus } from "./Admin-BX9ns28E.mjs";
4
4
  import { H as ScheduledInputRefused, V as ScheduledInputFailure, j as ScheduleStorageError } from "./Schedule-CDgTz0vj.mjs";
5
- import { a as PreparedInput } from "./Subscription-CQqYNUqy.mjs";
5
+ import { a as PreparedInput } from "./Subscription-DONig54Q.mjs";
6
6
  import { Context, Effect } from "effect";
7
7
  declare namespace PreparedInputAdmission_d_exports {
8
8
  export { PreparedInputAdmission, admitPreparedInput };
@@ -39,4 +39,4 @@ declare const admitPreparedInput: <R>(submit: Effect.Effect<Receipt, ScheduledIn
39
39
  }, ScheduleStorageError, R>;
40
40
  //#endregion
41
41
  export { PreparedInputAdmission_d_exports as n, admitPreparedInput as r, PreparedInputAdmission as t };
42
- //# sourceMappingURL=PreparedInputAdmission-C1xt29pl.d.mts.map
42
+ //# sourceMappingURL=PreparedInputAdmission-CxSJSiTl.d.mts.map
@@ -1,7 +1,7 @@
1
1
  import { $ as RecordEnvelope, At as ToolStepSettled, B as ModelCompleted, Bt as WorkerOriginRecorded, Ct as ToolApprovalDecided, Dt as ToolCallSettled, Et as ToolCallResolved, G as PeerMessagePrepared, H as ModelResponseRecorded, Ht as WorkerReportRefused, It as WorkerInputCompleted, Lt as WorkerInputRefused, Mt as UserInputRecorded, Nt as WorkHandoffCompleted, Ot as ToolCallUnknown, Rt as WorkerInputRequested, St as ThreadCreated, V as ModelResponseInterrupted, Vt as WorkerReportPrepared, Wt as WorkerStopRequested, _t as SubagentRequested, at as RunCompleted, bt as SubmissionSettledRecord, ct as RunDurationExhausted, d as CanonicalRecordEnvelope, ft as RunStartedRecord, gt as SubagentLineageRecorded, ht as SubagentJoined, lt as RunFailed, m as CompactionCreated, ot as RunContextRecorded, r as AgentUpdateEmitted, rt as RepairAnnotated, st as RunContinuation, t as AbortRequested, ut as RunPolicyUsageReserved, vt as SubagentStarted, wt as ToolApprovalRequested, xt as SubtreeBudgetReserved, yt as SubmissionSettled, z as ModelCallAborted } from "./Records-BTnGRdcf.mjs";
2
2
  import { Effect, Schema } from "effect";
3
3
  declare namespace RecordFormat_d_exports {
4
- export { ExportBatch, ExportRecord, ExportedRecord, ReadEnvelope, ReadRecord, RecordFormatError, decodeExportRecord };
4
+ export { ExportBatch, ExportRecord, ExportedRecord, ReadEnvelope, ReadRecord, RecordFormatError, decodeExportRecord, decodeExportRecordJson };
5
5
  }
6
6
  declare const RecordFormatError_base: Schema.Class<RecordFormatError, Schema.TaggedStruct<"RecordFormatError", {
7
7
  readonly format: Schema.String;
@@ -19,6 +19,12 @@ declare const ExportedRecord_base: Schema.Class<ExportedRecord, Schema.Struct<{
19
19
  }>, RecordEnvelope> & Pick<{}, never>;
20
20
  /** An archive owns its wire JSON explicitly; the typed fields are only a read view. */
21
21
  declare class ExportedRecord extends ExportedRecord_base {}
22
+ /**
23
+ * Decode stored text directly into its final record, retaining additive wire.
24
+ * Parsing owns the object; the final schema checks the wire bounds and supported fields once.
25
+ * Object-input codecs still validate caller-owned wire when constructing the read view.
26
+ */
27
+ declare const decodeExportRecordJson: (encoded: string) => Effect.Effect<ExportedRecord, Schema.SchemaError>;
22
28
  /** Decode at the archive boundary, retaining unknown additive fields for a lossless backup. */
23
29
  declare const decodeExportRecord: (format: string, input: Schema.Json) => Effect.Effect<ExportedRecord, RecordFormatError, never>;
24
30
  /**
@@ -43,5 +49,5 @@ declare const ExportBatch: Schema.Struct<{
43
49
  readonly records: Schema.NonEmptyArray<Schema.decodeTo<Schema.toType<typeof ExportedRecord>, Schema.declare<Schema.Json, Schema.Json>, never, never>>;
44
50
  }>;
45
51
  //#endregion
46
- export { ReadRecord as a, decodeExportRecord as c, ReadEnvelope as i, ExportRecord as n, RecordFormatError as o, ExportedRecord as r, RecordFormat_d_exports as s, ExportBatch as t };
47
- //# sourceMappingURL=RecordFormat-BphUsB6Q.d.mts.map
52
+ export { ReadRecord as a, decodeExportRecord as c, ReadEnvelope as i, decodeExportRecordJson as l, ExportRecord as n, RecordFormatError as o, ExportedRecord as r, RecordFormat_d_exports as s, ExportBatch as t };
53
+ //# sourceMappingURL=RecordFormat-BNiLpe43.d.mts.map
@@ -7,7 +7,7 @@ import { G as PromptRecord, J as RUN_TERMINAL_RESERVE_BYTES, O as MAX_RUN_CONTIN
7
7
  import { i as digestCanonicalJson, r as canonicalJson } from "./Digest-DCuPlhNk.mjs";
8
8
  import { submissionAbortRecordId, submissionInputRecordId, submissionSettlementBatchId, submissionSettlementRecordId } from "./durable/SubmissionLedger.mjs";
9
9
  import { I as toolCallResultBatchId, Q as toolCallSettledRecordId, g as projectRunJournalStream, j as subagentStartedRecordId, k as subagentRequestedRecordId, t as RunJournalError, v as runCompletedRecordId, x as runIdForSubmission } from "./RunJournal-kfKVxJj7.mjs";
10
- import { U as ThreadReader, X as ThreadStoreError, _t as isPreContinuationFact, a as CommitBatch, bt as terminalUsageCharge, c as ExecutionUpdate, gt as executionRunIds, ht as canonicalRunIds, mt as recordEncoding, o as ExecutionCheckpoint, ot as getRecord, pt as captureRecord, st as getRunInput, vt as isTerminalBudgetFact, yt as isWorkHandoff } from "./ThreadStore-B5sew3ir.mjs";
10
+ import { U as ThreadReader, X as ThreadStoreError, _t as isPreContinuationFact, a as CommitBatch, bt as terminalUsageCharge, c as ExecutionUpdate, gt as executionRunIds, ht as canonicalRunIds, mt as recordEncoding, o as ExecutionCheckpoint, ot as getRecord, pt as captureRecord, st as getRunInput, vt as isTerminalBudgetFact, yt as isWorkHandoff } from "./ThreadStore-CEekRa80.mjs";
11
11
  import { Context, Crypto, DateTime, Effect, Layer, Option, Schema, Semaphore, Stream } from "effect";
12
12
  import { Prompt } from "effect/ai";
13
13
  //#region src/durable/internal/evidence.ts
@@ -1000,4 +1000,4 @@ const makeProgressWriter = Effect.fnUntraced(function* (threadId, deploymentId)
1000
1000
  //#endregion
1001
1001
  export { readRunContext as _, canonicalRecordBytes as a, reference as b, prepareProgressAppend as c, resolveExecutionEvidence as d, runEvidence as f, digestRunHistory as g, verifyRunContinuations as h, RunContinuation_exports as i, readContinuation as l, validateSuffix as m, CurrentRunWriter as n, isOperationalRecord as o, validateProgressAppend as p, ProgressAppendReader as r, makeProgressWriter as s, CurrentRunSettlement as t, readRunEvidenceSnapshot as u, validateContextBoundary as v, resolveEvidence as x, RunContextReader as y };
1002
1002
 
1003
- //# sourceMappingURL=RunContinuation-CNWMmymY.mjs.map
1003
+ //# sourceMappingURL=RunContinuation-DHYNAQFi.mjs.map