diff --git a/.changeset/README.md b/.changeset/README.md index 73cd2385..1fd04a96 100644 --- a/.changeset/README.md +++ b/.changeset/README.md @@ -1,14 +1,7 @@ # Changesets -This directory contains release notes for public Yielded Agent packages. - -All public framework workspaces belong to one Changesets fixed group. A changeset names only the -packages whose behavior changed, while versioning advances every public workspace to the same -version and publishes unchanged packages on the same release train. - -Create a changeset, review the generated version plan, and merge the automated version PR to -publish. - -Pending changesets live directly in this directory. Changesets moves consumed -beta release notes to `pre/` and keeps only the prerelease mode and tag in -`pre.json`. Retain the archived notes for the eventual stable release. +One intent file per change to a publishable package, named by its frontmatter +(`"": `) and followed by a line for a consumer. +The Release workflow consumes the pending intents into a version PR, writes each +package's `CHANGELOG.md`, and on merge pushes the `@vX.Y.Z` tags and +creates the GitHub Releases. Packages are published to npm. diff --git a/.changeset/config.json b/.changeset/config.json deleted file mode 100644 index 41406171..00000000 --- a/.changeset/config.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "$schema": "https://unpkg.com/@changesets/config@4.0.1/schema.json", - "changelog": [ - "@changesets/changelog-github", - { - "repo": "yielded-dev/agent" - } - ], - "commit": false, - "fixed": [ - [ - "@yielded/agent", - "@yielded/agent-platform-node", - "@yielded/agent-storage-sql", - "@yielded/agent-storage-sqlite" - ] - ], - "linked": [], - "access": "public", - "baseBranch": "main", - "privatePackages": { - "version": false, - "tag": false - }, - "updateInternalDependencies": "patch", - "bumpVersionsWithWorkspaceProtocolOnly": true, - "ignore": [] -} diff --git a/.changeset/pre.json b/.changeset/pre.json deleted file mode 100644 index f6799931..00000000 --- a/.changeset/pre.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "mode": "pre", - "tag": "beta" -} diff --git a/.changeset/pre/acquisition-cleanup-evidence.md b/.changeset/pre/acquisition-cleanup-evidence.md deleted file mode 100644 index df4c0c64..00000000 --- a/.changeset/pre/acquisition-cleanup-evidence.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Report confirmed cleanup when browser allocation fails before ownership is retained. Preserve uncertain acquisition and caller-owned sessions without claiming closure. diff --git a/.changeset/pre/active-run-state.md b/.changeset/pre/active-run-state.md deleted file mode 100644 index ebc77808..00000000 --- a/.changeset/pre/active-run-state.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -"@yielded/agent": minor -"@yielded/agent-storage-memory": minor -"@yielded/agent-storage-sql": minor -"@yielded/agent-storage-sqlite": minor -"@yielded/agent-storage-postgres": minor -"@yielded/agent-storage-cloudflare": minor -"@yielded/agent-platform-node": minor -"@yielded/agent-platform-cloudflare": minor -"@yielded/agent-testing": minor ---- - -Persist only current Run state while a single process owns each Thread, and retire it at settlement. BEHAVIOR CHANGE: use matching packages on fresh layout-25 stores with thread@6 records and activity progress format 2; replace `ThreadIdentity.admissions` with `hasAdmissions`; transfers require an idle Thread and a completed archive, and distributed ownership, tamper evidence and historical progress replay are no longer supported. diff --git a/.changeset/pre/activity-progress-integrity.md b/.changeset/pre/activity-progress-integrity.md deleted file mode 100644 index c05e7907..00000000 --- a/.changeset/pre/activity-progress-integrity.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-storage-sqlite": patch -"@yielded/agent": patch ---- - -Reject oversized activity progress before persisting it and reject pending work beyond the captured Thread tail. Keep prior progress intact on rejected writes and release the pass's claim on inconsistent tails. diff --git a/.changeset/pre/approval-preparation.md b/.changeset/pre/approval-preparation.md deleted file mode 100644 index 181e62de..00000000 --- a/.changeset/pre/approval-preparation.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Retain every required batch approval before accepting decisions, preserve native readonly approval history, and enforce duration deadlines throughout approval preparation. diff --git a/.changeset/pre/async-lifecycle-batches.md b/.changeset/pre/async-lifecycle-batches.md deleted file mode 100644 index e5a38249..00000000 --- a/.changeset/pre/async-lifecycle-batches.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"@yielded/agent": minor -"@yielded/agent-storage-sql": minor -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-platform-cloudflare": minor ---- - -Publish retained lifecycle facts asynchronously in ordered owner batches without delaying model attempts, with atomic receipts and bounded retries that park exhausted work. - -BEHAVIOR CHANGE: Implement `LifecyclePublicationHandler.publish(batch)` for a nonempty array of at most eight facts and commit the entire batch idempotently in one host transaction; custom lifecycle storage implementations must return bounded owner batches, replace `defer` with `claim`, and implement `retryParked` instead of `pendingDeadlineFor`. diff --git a/.changeset/pre/atomic-message-publication.md b/.changeset/pre/atomic-message-publication.md deleted file mode 100644 index 39ae8eb6..00000000 --- a/.changeset/pre/atomic-message-publication.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sql": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-postgres": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Commit peer messages, worker reports, and parent updates atomically with their pending deliveries through paired native storage. Drain unresolved source publications with the previous release before upgrading an existing SQL store. diff --git a/.changeset/pre/attached-child-deadline.md b/.changeset/pre/attached-child-deadline.md deleted file mode 100644 index 7ec51d6d..00000000 --- a/.changeset/pre/attached-child-deadline.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Cap in-process attached child execution at the parent's remaining deadline. Add `SubagentPolicy.parentReserveDuration` so callers can leave time to handle a typed child duration failure and finish. diff --git a/.changeset/pre/audited-platform-boundaries.md b/.changeset/pre/audited-platform-boundaries.md deleted file mode 100644 index 17ae42ae..00000000 --- a/.changeset/pre/audited-platform-boundaries.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-platform-node": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Validate Node runtime configuration before opening SQLite. Keep Cloudflare RPC failures typed when foreign diagnostics are hostile, and close both Dynamic Worker RPC handles when a pass ends. diff --git a/.changeset/pre/authoritative-memory-identity.md b/.changeset/pre/authoritative-memory-identity.md deleted file mode 100644 index fe41e09a..00000000 --- a/.changeset/pre/authoritative-memory-identity.md +++ /dev/null @@ -1,4 +0,0 @@ ---- ---- - -Preserve the authorized namespace as private recall authority when revalidating passages, overriding candidate-supplied authority. diff --git a/.changeset/pre/authority-qualified-memory-recall.md b/.changeset/pre/authority-qualified-memory-recall.md deleted file mode 100644 index 95816fa5..00000000 --- a/.changeset/pre/authority-qualified-memory-recall.md +++ /dev/null @@ -1,4 +0,0 @@ ---- ---- - -Qualify recalled source identities by private authority and render only result-local authority labels. BEHAVIOR CHANGE: direct readers must set the same `MemoryPassage.authority` to deduplicate across reader declarations. diff --git a/.changeset/pre/authorize-tool-execution.md b/.changeset/pre/authorize-tool-execution.md deleted file mode 100644 index 6676051d..00000000 --- a/.changeset/pre/authorize-tool-execution.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": minor -"@yielded/agent": minor ---- - -Authorize every still-executable model-declared call in a fresh or resumed application Tool batch -through a host-supplied Run option before durable preparation or Handler execution. Settle denied -accepted work with a typed failure while preserving canonical Run, Turn, input, and Tool Call -identity across recovery. diff --git a/.changeset/pre/authorized-cloudflare-memory-reads.md b/.changeset/pre/authorized-cloudflare-memory-reads.md deleted file mode 100644 index 722d44e3..00000000 --- a/.changeset/pre/authorized-cloudflare-memory-reads.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent-storage-cloudflare": patch ---- - -Add authorized, bounded exact-key current document reads through `CloudflareMemoryClient.get`, returning explicit absence or withdrawal tombstones while preserving typed access, storage, and transport failures. diff --git a/.changeset/pre/automatic-parent-reports.md b/.changeset/pre/automatic-parent-reports.md deleted file mode 100644 index 439c5520..00000000 --- a/.changeset/pre/automatic-parent-reports.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"@yielded/agent-platform-node": minor -"@yielded/agent-platform-cloudflare": minor -"@yielded/agent-storage-memory": minor -"@yielded/agent-storage-sqlite": minor -"@yielded/agent-storage-cloudflare": minor -"@yielded/agent": minor ---- - -Opt into durable typed parent completion messages with `Subagent.background(Research, { start: true, followUp: true, reportToParent: true })`, without an application input union, mapper, or reporting registration. Pass a custom reporting descriptor as `reportToParent` when an application-specific input format is needed. diff --git a/.changeset/pre/background-remembering.md b/.changeset/pre/background-remembering.md deleted file mode 100644 index dbc997bb..00000000 --- a/.changeset/pre/background-remembering.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": minor -"@yielded/agent": minor ---- - -Admit remembering durably and process it in a separate host-owned worker with saved proposals, exact command retries, conflict rebase, and source invalidation. Bind the portable checkpoint contract to existing host jobs and retain source references for later cleanup. diff --git a/.changeset/pre/batch-cloudflare-lane-writes.md b/.changeset/pre/batch-cloudflare-lane-writes.md deleted file mode 100644 index 1f0f926f..00000000 --- a/.changeset/pre/batch-cloudflare-lane-writes.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Batch changed maintenance lanes within each source transaction while preserving revision fences and committed retry budgets. Skip inferred publication enrollment for the empty default handler while preserving custom publication barriers. diff --git a/.changeset/pre/batched-ephemeral-history.md b/.changeset/pre/batched-ephemeral-history.md deleted file mode 100644 index 4a8cdfa0..00000000 --- a/.changeset/pre/batched-ephemeral-history.md +++ /dev/null @@ -1,4 +0,0 @@ ---- ---- - -Build EphemeralThreads history suffixes in one atomic update while preserving exact prefix validation, limits, and mutable prompt values. diff --git a/.changeset/pre/batched-lifecycle-acknowledgements.md b/.changeset/pre/batched-lifecycle-acknowledgements.md deleted file mode 100644 index 04c1d3a5..00000000 --- a/.changeset/pre/batched-lifecycle-acknowledgements.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-sql": patch -"@yielded/agent-storage-cloudflare": patch ---- - -Batch lifecycle publication acknowledgements, and reduce recovery queries and redundant maintenance for exclusive SQLite owners. Preserve exact identities, persisted retry budgets, and compatibility with custom publication storage. diff --git a/.changeset/pre/batched-review-coverage.md b/.changeset/pre/batched-review-coverage.md deleted file mode 100644 index 97e92e13..00000000 --- a/.changeset/pre/batched-review-coverage.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-pr-review": patch ---- - -Review large inputs in sequential batches under a shared host spending limit, preserving findings and execution allowances across batches. Report admitted paths that never reached the model when a review stops early. diff --git a/.changeset/pre/beta107-runtime-fixes.md b/.changeset/pre/beta107-runtime-fixes.md deleted file mode 100644 index 219bbbcf..00000000 --- a/.changeset/pre/beta107-runtime-fixes.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-platform-node": patch -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent-testing": patch ---- - -Align every public package with Effect 4.0.0-beta.107. Also expose per-incarnation Cloudflare -Binding capture with live Durable Object context and derived identities, and prevent incomplete -application Tool batches from a failed or aborted Run from poisoning prompts for later Runs. diff --git a/.changeset/pre/bound-engine-buffers.md b/.changeset/pre/bound-engine-buffers.md deleted file mode 100644 index f723f076..00000000 --- a/.changeset/pre/bound-engine-buffers.md +++ /dev/null @@ -1,6 +0,0 @@ ---- ---- - -Bound model responses, Run event replay, Subagent event bursts, diagnostics, and programmatic Tool -results with engine-owned limits. BEHAVIOR CHANGE: `ToolBroker.openPass` now requires an explicit -positive `maxResultBytes`. diff --git a/.changeset/pre/bound-sandbox-boundaries.md b/.changeset/pre/bound-sandbox-boundaries.md deleted file mode 100644 index 35c80322..00000000 --- a/.changeset/pre/bound-sandbox-boundaries.md +++ /dev/null @@ -1,4 +0,0 @@ ---- ---- - -Bound sandbox diagnostics and terminal artifact metadata. Reject mismatched local runtime identities and report post-start transport failures as exit failures. diff --git a/.changeset/pre/bounded-admission-identities.md b/.changeset/pre/bounded-admission-identities.md deleted file mode 100644 index c05b3960..00000000 --- a/.changeset/pre/bounded-admission-identities.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sql": patch -"@yielded/agent-storage-cloudflare": patch ---- - -Keep work and recovery continuations representable for accepted Thread identities and reject oversized fresh admissions before retaining work. Bound fresh Memory identities independently of imported facts and preserve exact receipt replays when UUID generation is unavailable. diff --git a/.changeset/pre/bounded-browser-screenshots.md b/.changeset/pre/bounded-browser-screenshots.md deleted file mode 100644 index 090ed1a2..00000000 --- a/.changeset/pre/bounded-browser-screenshots.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Add a bounded `PageScreenshot` PNG port and the native Cloudflare Browser Run Quick Action Layer. -Screenshot bytes remain caller-owned and are never persisted or projected by the framework. diff --git a/.changeset/pre/bounded-certification-work.md b/.changeset/pre/bounded-certification-work.md deleted file mode 100644 index 3cce418d..00000000 --- a/.changeset/pre/bounded-certification-work.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-testing": patch -"@yielded/agent": patch ---- - -Reduce the time required to certify durable adapters and run subscription-store conformance. diff --git a/.changeset/pre/bounded-cloudflare-runtime.md b/.changeset/pre/bounded-cloudflare-runtime.md deleted file mode 100644 index 6bfb9cb8..00000000 --- a/.changeset/pre/bounded-cloudflare-runtime.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent": patch ---- - -Stream durable history and bound Cloudflare journal read payloads while removing unused startup modules and temporary encodings. Bound alarm execution time and let durable runs yield between committed turns while preserving recovery and original run budgets. diff --git a/.changeset/pre/bounded-durable-recovery.md b/.changeset/pre/bounded-durable-recovery.md deleted file mode 100644 index 8143e97f..00000000 --- a/.changeset/pre/bounded-durable-recovery.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@yielded/agent-testing": patch -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent": patch ---- - -Resume durable runs from disposable recovery checkpoints while preserving canonical side-effect obligations and cumulative accounting. Support up to 131,072 canonical records in storage, exports, and verification, with preserving upgrades for supported SQLite and Durable Object stores. diff --git a/.changeset/pre/bounded-fresh-thread-context.md b/.changeset/pre/bounded-fresh-thread-context.md deleted file mode 100644 index 88f40f5a..00000000 --- a/.changeset/pre/bounded-fresh-thread-context.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-sql": patch -"@yielded/agent-storage-cloudflare": patch ---- - -Reuse eligible compacted Thread context across fresh durable Runs, refreshing it from new canonical records while preserving full replay for incompatible histories. Validate stored checkpoints through indexed canonical batch lookups. diff --git a/.changeset/pre/bounded-host-cleanup.md b/.changeset/pre/bounded-host-cleanup.md deleted file mode 100644 index 1a104971..00000000 --- a/.changeset/pre/bounded-host-cleanup.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Bound Cloudflare progress-wait cancellation and Quick Action response cleanup, and retain cancellation hints for late progress retries. Apply sandbox wall-time limits to configuration, process startup, and execution together. diff --git a/.changeset/pre/bounded-memory-revalidation.md b/.changeset/pre/bounded-memory-revalidation.md deleted file mode 100644 index 4d52d1bf..00000000 --- a/.changeset/pre/bounded-memory-revalidation.md +++ /dev/null @@ -1,4 +0,0 @@ ---- ---- - -Bound authoritative recall replacements before retaining them. Pass the optional `maxInputBytes` limit to `revalidateMemoryLookup` to share the recall input budget. diff --git a/.changeset/pre/bounded-operation-evidence.md b/.changeset/pre/bounded-operation-evidence.md deleted file mode 100644 index 7b4f925f..00000000 --- a/.changeset/pre/bounded-operation-evidence.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-storage-sql": patch ---- - -Load operation-evidence payloads only after selecting the bounded page. diff --git a/.changeset/pre/bounded-recovery-history.md b/.changeset/pre/bounded-recovery-history.md deleted file mode 100644 index df5a9de3..00000000 --- a/.changeset/pre/bounded-recovery-history.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Bound each recovery pass to one verified canonical-history prefix read per Thread. diff --git a/.changeset/pre/bounded-selector-scrape.md b/.changeset/pre/bounded-selector-scrape.md deleted file mode 100644 index 653b377a..00000000 --- a/.changeset/pre/bounded-selector-scrape.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Add bounded selector scrape to `PageCapture`, `WebCapture.makeScrape`, and the Cloudflare binding and REST adapters. diff --git a/.changeset/pre/bounded-value-plain.md b/.changeset/pre/bounded-value-plain.md deleted file mode 100644 index 634c822b..00000000 --- a/.changeset/pre/bounded-value-plain.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reduce CPU overhead for ordinary model responses. Preserve native ArrayBuffer and URL prototypes in application and provider values so their retained storage remains measurable. diff --git a/.changeset/pre/bounded-work-rebuild-batches.md b/.changeset/pre/bounded-work-rebuild-batches.md deleted file mode 100644 index 6cb92877..00000000 --- a/.changeset/pre/bounded-work-rebuild-batches.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Rebuild up to 256 canonical records per work-index pass while retaining the 32 MiB byte cap. Set the request's `limit` to select smaller passes. diff --git a/.changeset/pre/bright-agents-trace.md b/.changeset/pre/bright-agents-trace.md deleted file mode 100644 index 522bec00..00000000 --- a/.changeset/pre/bright-agents-trace.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Label agent and model spans with GenAI operation names and agent, conversation, and model identity for agent dashboards. Update span-name filters from `AgentRuntime.run` to `invoke_agent ` and from `LanguageModel.streamText` to `chat `. diff --git a/.changeset/pre/bright-rivers-own.md b/.changeset/pre/bright-rivers-own.md deleted file mode 100644 index 39748ccb..00000000 --- a/.changeset/pre/bright-rivers-own.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Route Dynamic Worker host calls through a pass-scoped RPC target owned by the caller's event context. -Remove the application-provided Code Mode host entrypoint binding. diff --git a/.changeset/pre/browser-code-mode.md b/.changeset/pre/browser-code-mode.md deleted file mode 100644 index 2186e61c..00000000 --- a/.changeset/pre/browser-code-mode.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent": minor -"@yielded/agent-platform-cloudflare": minor ---- - -Replace ref-based browser actions and Jev with a Code Mode browser tool backed by host-authorized CDP commands. BEHAVIOR CHANGE: compose `BrowserUse.make().tool`, `BrowserUse.layer`, a scoped CDP adapter, and a Code Mode executor; authorize arbitrary page JavaScript as a broad browser capability. diff --git a/.changeset/pre/browser-create-attached.md b/.changeset/pre/browser-create-attached.md deleted file mode 100644 index 5809bb62..00000000 --- a/.changeset/pre/browser-create-attached.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": minor ---- - -Add `BrowserSessions.createAttached` to retain a new browser and use its initial scoped attachment without reconnecting before the first command. Preserve durable ownership, per-command authorization and timeouts, and exact-session cleanup. diff --git a/.changeset/pre/browser-input-recovery.md b/.changeset/pre/browser-input-recovery.md deleted file mode 100644 index 065da052..00000000 --- a/.changeset/pre/browser-input-recovery.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Preserve browser dispatch evidence and add exact-page checkpoint recovery with pending-input fences. Expose structured page observations and refuse stale click/fill targets before dispatch. diff --git a/.changeset/pre/browser-jev-loop.md b/.changeset/pre/browser-jev-loop.md deleted file mode 100644 index eadd82e7..00000000 --- a/.changeset/pre/browser-jev-loop.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@yielded/agent": minor -"@yielded/agent-platform-cloudflare": minor ---- - -Add `BrowserUse.runJev` to drive a page with a native `DecisionModel`, and `act(actions, { observe: false })` for hosts that read the next page themselves. Cloudflare native browser actions are faster and now work through payment frames, navigations and Wrangler-bundled Workers. - -BEHAVIOR CHANGE: `grounding: "decision"`, `mode: "plan"`, `selectTargets`, `TargetAction`, `act_ref` and the optional `BrowserActions.latestObservation` are removed. Use `BrowserUse.make({ mode })` for a model agent or `BrowserUse.runJev` for decision-model control. diff --git a/.changeset/pre/browser-run-page-capture.md b/.changeset/pre/browser-run-page-capture.md deleted file mode 100644 index daf23eb1..00000000 --- a/.changeset/pre/browser-run-page-capture.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Add the schema-first `PageCapture` port and conservative `WebCapture.make`/`WebCapture.makeExtract` Tools over an immutable, deny-by-default browser-request allowlist. Add native `BrowserRun` Quick Action Layers with bounded response streaming and a typed Workers AI authorization and accounting failure for structured extraction. - -```ts -const readDocs = WebCapture.make("read_webpage", { - description: "Read documentation pages.", - urls: ["docs.example.com", "*.effect.website"], -}); -// worker: browserQuickActionCaptureLayer().pipe( -// Layer.provide(BrowserQuickActionBrowserBinding.layer({ browser: env.BROWSER })), -// ) -``` diff --git a/.changeset/pre/browser-run-rest-capture.md b/.changeset/pre/browser-run-rest-capture.md deleted file mode 100644 index 7769bbfd..00000000 --- a/.changeset/pre/browser-run-rest-capture.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Add a Node-safe Cloudflare Browser Run REST PageCapture Layer with explicit Chromium and Kitesurf selection. diff --git a/.changeset/pre/budget-extension.md b/.changeset/pre/budget-extension.md deleted file mode 100644 index 251874dc..00000000 --- a/.changeset/pre/budget-extension.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Budget extension (D-037, ADR-0019 S3, RUN-021/SUB-034): `RunOptions` gains tightening-only -`toolCallAllowance` and `turnAllowance` — the effective limit is -`min(policy bound, max(1, floor(allowance)))`, never wider, and the `onExhaustion` soft landing -keys off the effective limits. `Subagent.define` gains -`toolCallAllowance: { default, fromParameters }`, clamped fail-closed to the delegation's -per-invocation `SubagentPolicy.maxToolCalls` slice and threaded into ephemeral child runs, so an -orchestrator model grants a scout more budget by re-delegating with a raised allowance (fresh -child; never a mid-flight top-up). `projectResult` now receives a bounded -`SubagentResultContext` whose `budgetExhausted` marker is honest on both paths — from the -ephemeral child result's `finishReason`, or from the child Settlement's durable marker carried -through the new optional `ChildEstablishSettled.finishReason` (threaded by the thread -coordinator shared by the DN and DC assemblies; exercised in the DN-profile durable-subagent -suites) — so a budget-truncated partial can be surfaced in the declared success Schema. Existing one-argument `projectResult` functions keep -compiling unchanged. Also hardens S2 containment per its autoreviewer findings: `Subagent.define` -is overloaded so the Tool channels follow the `failureMode` value; genuine engine signals are -classified by unspoofable provenance instead of `instanceof` on exported classes; each delegation -exposes its canonical `containedFailure` schema (pr-review's coverage decoder now derives from -it); and the pr-review child reviewer deliberately returns to typed exhaustion — a review is a -coverage claim, so a budget-exhausted unit stays honestly unreviewed (contained as result data, -never run-fatal). diff --git a/.changeset/pre/budget-soft-landing.md b/.changeset/pre/budget-soft-landing.md deleted file mode 100644 index 80123247..00000000 --- a/.changeset/pre/budget-soft-landing.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -"@yielded/agent": minor ---- - -Budget soft landing (D-037, ADR-0019, RUN-018/019/020): `AgentPolicy` gains -`onExhaustion: "final-answer" | "fail"`, defaulting to `"final-answer"` — Turn and Tool Call -exhaustion now settle the Run through one constrained final-answer opportunity instead of failing -it. An over-budget Tool batch settles synthetically as model-visible failed results (no handler -starts, no durable batch declaration, exempt from repeated-failure folding), subsequent model -requests carry `toolChoice: "none"`, Turn exhaustion admits exactly one grace Turn, and the Run -completes with the honest `finishReason: "budget-exhausted"` on the live event, the reduced -`AgentResult`, and (additively) the durable `SubmissionSettled` record. Duration, token, cost, and -repeated-failure bounds stay hard rails; `onExhaustion: "fail"` preserves the prior run-fatal -behavior exactly. BEHAVIOR CHANGE ON UPGRADE: Turn/Tool-Call budget deaths become honest -completions unless a policy pins `"fail"`. diff --git a/.changeset/pre/cached-message-token-estimates.md b/.changeset/pre/cached-message-token-estimates.md deleted file mode 100644 index cf85a37e..00000000 --- a/.changeset/pre/cached-message-token-estimates.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reuse structural token estimates within each prepared prompt. Keep public estimators stateless and refresh engine estimates after each context preparation. diff --git a/.changeset/pre/calm-browsers-report.md b/.changeset/pre/calm-browsers-report.md deleted file mode 100644 index 2aac6255..00000000 --- a/.changeset/pre/calm-browsers-report.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent-testing": patch -"@yielded/agent": patch ---- - -Preserve structured host-failure details when generated code catches and stringifies an error. diff --git a/.changeset/pre/calm-frames-inspect.md b/.changeset/pre/calm-frames-inspect.md deleted file mode 100644 index d2ef3052..00000000 --- a/.changeset/pre/calm-frames-inspect.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reject missing or inconsistent frame routing before browser commands are dispatched, with guidance for inspecting cross-origin frames without losing the browser session. diff --git a/.changeset/pre/calm-model-consumer.md b/.changeset/pre/calm-model-consumer.md deleted file mode 100644 index 8aa0b50f..00000000 --- a/.changeset/pre/calm-model-consumer.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reduce per-part model response processing and repeated checks when capturing validated usage, preserving stream ordering and durable record bytes. diff --git a/.changeset/pre/calm-trace-context.md b/.changeset/pre/calm-trace-context.md deleted file mode 100644 index 287ba79e..00000000 --- a/.changeset/pre/calm-trace-context.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Preserve each invocation's tracing context and sampling decision when running registered attempts or preparing reports. Remove per-poll, digest, and response-part helper spans while retaining operation boundaries and errors, and allow hosts to use effect-cf 0.45. diff --git a/.changeset/pre/cancelled-tool-authorization.md b/.changeset/pre/cancelled-tool-authorization.md deleted file mode 100644 index 1ac90222..00000000 --- a/.changeset/pre/cancelled-tool-authorization.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Settle cancelled durable runs as aborted when tool authorization observes their abort intent before the cancellation watcher. diff --git a/.changeset/pre/canonical-action-completion.md b/.changeset/pre/canonical-action-completion.md deleted file mode 100644 index 3483d735..00000000 --- a/.changeset/pre/canonical-action-completion.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Add `completionFromTools` to complete a Run from a successful canonical action result without another model turn. Let pure projectors decline completion while preserving ordinary action budgets, authorization, approvals, and durable recovery. diff --git a/.changeset/pre/canonical-continuation-verify.md b/.changeset/pre/canonical-continuation-verify.md deleted file mode 100644 index b5f0a497..00000000 --- a/.changeset/pre/canonical-continuation-verify.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Validate every Run continuation against its canonical facts during `verify`, even when the Run directory is incomplete. diff --git a/.changeset/pre/canonical-run-continuations.md b/.changeset/pre/canonical-run-continuations.md deleted file mode 100644 index da0d1050..00000000 --- a/.changeset/pre/canonical-run-continuations.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sql": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-postgres": patch -"@yielded/agent-storage-cloudflare": patch ---- - -Resume durable Runs from canonical continuations and referenced context, expose `@yielded/agent/run-continuation`, and remove `ThreadStore.recoveryCheckpoints`. **BEHAVIOR CHANGE:** use fresh layout-21 storage and `effect-agent/thread@3` archives; predecessor stores and formats are rejected. diff --git a/.changeset/pre/canonical-run-duration.md b/.changeset/pre/canonical-run-duration.md deleted file mode 100644 index 9b49bf75..00000000 --- a/.changeset/pre/canonical-run-duration.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Preserve each durable Run's original start and duration across recovery, report truthful elapsed time, and complete verified child cleanup without allowing execution after expiry. Reject incompatible execution history without canonical start evidence; reset affected private-development data before resuming it. diff --git a/.changeset/pre/canonical-settlement-publication.md b/.changeset/pre/canonical-settlement-publication.md deleted file mode 100644 index fee091a8..00000000 --- a/.changeset/pre/canonical-settlement-publication.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -"@yielded/agent": minor -"@yielded/agent-storage-sql": minor -"@yielded/agent-storage-sqlite": minor -"@yielded/agent-storage-postgres": minor -"@yielded/agent-storage-cloudflare": minor -"@yielded/agent-storage-memory": minor -"@yielded/agent-platform-cloudflare": minor -"@yielded/agent-platform-node": minor -"@yielded/agent-testing": minor ---- - -Publish settlement intent atomically in the canonical log and remove the separate settlement reservation protocol. Combine eligible SQL receipt finalization with publication and exclusive-session input markers with their canonical append. - -BEHAVIOR CHANGE: custom durable assemblies must provide a co-owned `SettlementPublisher`; pair Memory ledger and thread layers with `Layer.provideMerge`, and use fresh thread storage or format 16. diff --git a/.changeset/pre/capped-review-turns.md b/.changeset/pre/capped-review-turns.md deleted file mode 100644 index ce14df64..00000000 --- a/.changeset/pre/capped-review-turns.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-pr-review": patch ---- - -Let cost-admitted reviews continue beyond eight turns within the existing spending, tool-call, time, and context limits. Keep uncapped reviews at eight turns. diff --git a/.changeset/pre/capture-final-continuations.md b/.changeset/pre/capture-final-continuations.md deleted file mode 100644 index aa58b727..00000000 --- a/.changeset/pre/capture-final-continuations.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reduce durable continuation overhead by capturing each final continuation once while preserving exact canonical byte accounting. diff --git a/.changeset/pre/captured-append-bounds.md b/.changeset/pre/captured-append-bounds.md deleted file mode 100644 index 292409d5..00000000 --- a/.changeset/pre/captured-append-bounds.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reduce repeated validation when committing captured Run state. diff --git a/.changeset/pre/captured-canonical-appends.md b/.changeset/pre/captured-canonical-appends.md deleted file mode 100644 index 8f9b79c8..00000000 --- a/.changeset/pre/captured-canonical-appends.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@yielded/agent": minor -"@yielded/agent-storage-sql": minor -"@yielded/agent-storage-sqlite": minor -"@yielded/agent-storage-postgres": minor -"@yielded/agent-storage-cloudflare": minor ---- - -Capture canonical appends before asynchronous work so later caller mutations cannot change the persisted value or invalidate its digest. Reuse captured record JSON across hashing and SQL writes, and commit eligible readonly responses with their completed results. - -BEHAVIOR CHANGE: custom SQL adapters must prepare raw append requests with `prepareSqlAppend`; `RawAppendRequest` is now a typed value instead of a Schema factory, and `RawRecord` is removed. diff --git a/.changeset/pre/captured-policy-tool-replay.md b/.changeset/pre/captured-policy-tool-replay.md deleted file mode 100644 index fd8c4286..00000000 --- a/.changeset/pre/captured-policy-tool-replay.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Preserve registered tool replay contracts when an attempt copies its Agent Definition to restore accepted execution limits. Keep interrupted idempotent operations recoverable without repeating their committed durable steps. diff --git a/.changeset/pre/captured-worker-policy.md b/.changeset/pre/captured-worker-policy.md deleted file mode 100644 index 526bbb69..00000000 --- a/.changeset/pre/captured-worker-policy.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Resolve background worker policies from host-authorized immutable input while retaining each worker's admitted policy across followups and recovery. Preserve static policy defaults and support an explicitly selected owner Submission for captured source policy. diff --git a/.changeset/pre/check-review-variants.md b/.changeset/pre/check-review-variants.md deleted file mode 100644 index 82feb2fa..00000000 --- a/.changeset/pre/check-review-variants.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-pr-review": patch ---- - -Check record selection across pages and separate reads, verify nullable guard states, and describe required behavior without prescribing an exact edit. Use a 128,000-token working context in the GitHub Action to reduce rollovers. diff --git a/.changeset/pre/chronological-openai-context.md b/.changeset/pre/chronological-openai-context.md deleted file mode 100644 index 2139f84b..00000000 --- a/.changeset/pre/chronological-openai-context.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Preserve OpenAI conversation prefixes when per-run instructions or appended system context change. Retain instruction precedence, native cache controls, and Anthropic instruction handling. diff --git a/.changeset/pre/chunked-model-progress.md b/.changeset/pre/chunked-model-progress.md deleted file mode 100644 index 7ca74e07..00000000 --- a/.changeset/pre/chunked-model-progress.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reuse model response parsers while validating and publishing each part in order. Preserve earlier progress and reported usage when a later part fails or is interrupted. diff --git a/.changeset/pre/clear-addressed-pr-reviews.md b/.changeset/pre/clear-addressed-pr-reviews.md deleted file mode 100644 index 7fd26495..00000000 --- a/.changeset/pre/clear-addressed-pr-reviews.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-pr-review": minor ---- - -Verify host-supplied prior blockers against current source and return explicit resolutions after complete review. Let the GitHub Action dismiss verified bot change requests while keeping new findings scoped to the current diff. diff --git a/.changeset/pre/clear-durable-run-failures.md b/.changeset/pre/clear-durable-run-failures.md deleted file mode 100644 index 91ce89d6..00000000 --- a/.changeset/pre/clear-durable-run-failures.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Report terminal durable Agent failures with their original cause and execution identity before storing the bounded settlement diagnostic. diff --git a/.changeset/pre/clear-export-ownership.md b/.changeset/pre/clear-export-ownership.md deleted file mode 100644 index b2fcf8e7..00000000 --- a/.changeset/pre/clear-export-ownership.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -"@yielded/agent": minor -"@yielded/agent-storage-memory": minor -"@yielded/agent-storage-sqlite": minor -"@yielded/agent-storage-cloudflare": minor -"@yielded/agent-platform-node": minor -"@yielded/agent-platform-cloudflare": minor -"@yielded/agent-pr-review": minor -"@yielded/agent-testing": minor ---- - -Import module namespaces from package roots, or import declarations from their explicit PascalCase module paths, following the package map's migration examples. Discard unused modules from audited packages when bundling consumers. -BEHAVIOR CHANGE: Replace flat declaration imports, lowercase aggregate paths, cross-package aliases, and internal helper imports with their documented owning modules; use `MemoryThreadStoreLive` instead of `MemoryStorageLive`. diff --git a/.changeset/pre/clear-review-stop-reasons.md b/.changeset/pre/clear-review-stop-reasons.md deleted file mode 100644 index 199ee1b2..00000000 --- a/.changeset/pre/clear-review-stop-reasons.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-pr-review": patch ---- - -Preserve safe host accounting diagnostics in incomplete review summaries so callers can identify why a review stopped. diff --git a/.changeset/pre/clear-rollover-guidance.md b/.changeset/pre/clear-rollover-guidance.md deleted file mode 100644 index e83f624f..00000000 --- a/.changeset/pre/clear-rollover-guidance.md +++ /dev/null @@ -1,4 +0,0 @@ ---- ---- - -Clarify that starting a context window accepts an optional inline handoff without requiring separate note writes. diff --git a/.changeset/pre/clear-tool-failure-routing.md b/.changeset/pre/clear-tool-failure-routing.md deleted file mode 100644 index 6b1a6bf7..00000000 --- a/.changeset/pre/clear-tool-failure-routing.md +++ /dev/null @@ -1,4 +0,0 @@ ---- ---- - -Expose native tool failure modes through `Agent.inspectTools` and distinguish propagated failures from returned results in tool events, spans, and logs. Clarify when declared tool failures end a run and when the model or programmatic caller receives them. diff --git a/.changeset/pre/close-idle-observers.md b/.changeset/pre/close-idle-observers.md deleted file mode 100644 index 5db7ab8d..00000000 --- a/.changeset/pre/close-idle-observers.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Release provisional text observers when their RPC scope ends. BEHAVIOR CHANGE: Deploy the Cloudflare client and Thread Object together; direct `watchTextEncoded` callers must read `stream` and dispose the returned `lifetime`. diff --git a/.changeset/pre/cloudflare-044-peer.md b/.changeset/pre/cloudflare-044-peer.md deleted file mode 100644 index c1421def..00000000 --- a/.changeset/pre/cloudflare-044-peer.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Require effect-cf ^0.44.1 so native callback completion retains its callback scheduler. diff --git a/.changeset/pre/cloudflare-admission-wake.md b/.changeset/pre/cloudflare-admission-wake.md deleted file mode 100644 index 6e119165..00000000 --- a/.changeset/pre/cloudflare-admission-wake.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Reduce Cloudflare admission latency by reusing the pre-armed alarm; larger `alarmBackoffBase` values can now delay healthy work, and custom hosts calling `ThreadObject.submit` must provide `DurableAlarmService`. diff --git a/.changeset/pre/cloudflare-binding-layers.md b/.changeset/pre/cloudflare-binding-layers.md deleted file mode 100644 index d4819415..00000000 --- a/.changeset/pre/cloudflare-binding-layers.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent-platform-node": patch -"@yielded/agent-testing": patch -"@yielded/agent": patch ---- - -Compose Cloudflare Thread Objects from application Layers and typed Agent version declarations, preserving initialization failures and scoped dependencies. Resolve durable work from explicit exact-version bindings and reject digest-transparent registrations. - -BEHAVIOR CHANGE: Replace `makeConversationObjectClass` with `ThreadObject.make`. Pass a composed `ThreadObject.layer(registrations)` to `ThreadObject.make`, move preparation and Tool authorization into Layers, and use `options.eventLayer` for observability. Pass bindings directly to resolved worker methods and `NodeDurableHost.layer(bindings)` instead of providing `AgentBindingResolver`. diff --git a/.changeset/pre/cloudflare-code-mode-host-bridge.md b/.changeset/pre/cloudflare-code-mode-host-bridge.md deleted file mode 100644 index f2e347ac..00000000 --- a/.changeset/pre/cloudflare-code-mode-host-bridge.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Run Dynamic Worker Code Mode host callbacks on retained independent Effect fibers so guest RPC -callbacks can complete without deadlocking the in-flight worker RPC. Bound callback execution by -the pass deadline and host-call limits, and close, interrupt, and settle callback work on teardown. diff --git a/.changeset/pre/cloudflare-context-compactor.md b/.changeset/pre/cloudflare-context-compactor.md deleted file mode 100644 index 7c4b5e64..00000000 --- a/.changeset/pre/cloudflare-context-compactor.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": minor -"@yielded/agent": patch ---- - -Expose host-supplied model-context preparation through Cloudflare Thread Object options -(#49). A generic scoped `RunContextPreparation` service now composes after canonical durable -resume reconstruction, `contextCompactorRunContextLayer` adapts the digest-bound -`ContextCompactor` capability with typed failures, and `CloudflareDurableRuntimeOptions.runContext` -accepts a closed Layer or per-incarnation Layer factory. Compaction changes only model-visible -context; canonical history remains recoverable across Durable Object eviction and retries. diff --git a/.changeset/pre/cloudflare-digest-input.md b/.changeset/pre/cloudflare-digest-input.md deleted file mode 100644 index 6d2011e1..00000000 --- a/.changeset/pre/cloudflare-digest-input.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Reduce memory allocation for SHA-256 hashing on Cloudflare. diff --git a/.changeset/pre/cloudflare-digest-latency.md b/.changeset/pre/cloudflare-digest-latency.md deleted file mode 100644 index d943e1f9..00000000 --- a/.changeset/pre/cloudflare-digest-latency.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Reduce Cloudflare reply latency while preserving existing digest values and injected crypto providers. diff --git a/.changeset/pre/cloudflare-event-ownership.md b/.changeset/pre/cloudflare-event-ownership.md deleted file mode 100644 index e79a8460..00000000 --- a/.changeset/pre/cloudflare-event-ownership.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Retire alarm-owned host delivery and disposable projection work after finite dispatch opportunities while preserving native delivery timeout/retry commits and wake-driven overlap. BEHAVIOR CHANGE: Declare `ThreadHostMaintenance.dispatchTimeoutMillis`, keep admission listeners in the event Scope, and use the single `drainUntil(sourceFinished, dispatchUntil)` hook instead of the native `drain` fallback. diff --git a/.changeset/pre/cloudflare-gateway-web-search.md b/.changeset/pre/cloudflare-gateway-web-search.md deleted file mode 100644 index 640a56d2..00000000 --- a/.changeset/pre/cloudflare-gateway-web-search.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": minor -"@yielded/agent": minor ---- - -Add a WebSearch tool with interchangeable native search backends and bounded, cited results. Route upstream Effect clients through Cloudflare AI Gateway with a pipeable Layer helper for search, model calls, streaming, and supported provider APIs. diff --git a/.changeset/pre/cloudflare-layer-from-bindings.md b/.changeset/pre/cloudflare-layer-from-bindings.md deleted file mode 100644 index 0ec3706e..00000000 --- a/.changeset/pre/cloudflare-layer-from-bindings.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Export `layerFromBindings` from the package root to assemble a Cloudflare durable runtime from resolved Agent Bindings. diff --git a/.changeset/pre/cloudflare-layout-once.md b/.changeset/pre/cloudflare-layout-once.md deleted file mode 100644 index 780bd51e..00000000 --- a/.changeset/pre/cloudflare-layout-once.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-storage-cloudflare": patch ---- - -Validate Cloudflare storage layouts once per Object owner while retaining strict compatibility and upgrade checks. diff --git a/.changeset/pre/cloudflare-port-composites.md b/.changeset/pre/cloudflare-port-composites.md deleted file mode 100644 index 6b05d5b6..00000000 --- a/.changeset/pre/cloudflare-port-composites.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Reuse Cloudflare port compositions within each Object to avoid repeated initialization work. diff --git a/.changeset/pre/cloudflare-publication-requirements.md b/.changeset/pre/cloudflare-publication-requirements.md deleted file mode 100644 index a9becac8..00000000 --- a/.changeset/pre/cloudflare-publication-requirements.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Remove the host-provided mutation gate from publication Layer requirements while preserving application dependencies and setup errors. diff --git a/.changeset/pre/cloudflare-routed-replay.md b/.changeset/pre/cloudflare-routed-replay.md deleted file mode 100644 index c8a7bc57..00000000 --- a/.changeset/pre/cloudflare-routed-replay.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reuse compacted Thread context for Cloudflare's routed Submission IDs while preserving canonical replay for ambiguous or incompatible histories. Keep eligible Thread context cached when retaining the completed Run's recovery data would exceed cache bounds. diff --git a/.changeset/pre/cloudflare-shared-memory.md b/.changeset/pre/cloudflare-shared-memory.md deleted file mode 100644 index a4620adf..00000000 --- a/.changeset/pre/cloudflare-shared-memory.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-cloudflare": minor -"@yielded/agent-platform-cloudflare": minor -"@yielded/agent": minor ---- - -Add optional namespace-owned Cloudflare memory with bounded batch recall, authoritative semantic-candidate validation, and durable conditional writes shared across Threads. Limit semantic recall output with `maxOutputBytes`, counting repeated attribution and metadata. - -BEHAVIOR CHANGE: Construct access and document scopes with `MemoryScope.make` or decode them with its Schema; Cloudflare memory clients require the existing branded `Principal`, capped at 256 characters. - -BEHAVIOR CHANGE: Replace `recallMemory` with `Memory.recall` for multi-source composition, or use `client.recall(candidates, limits)` for a bound Cloudflare memory client. The old function is removed without an alias. diff --git a/.changeset/pre/cloudflare-warm-validation.md b/.changeset/pre/cloudflare-warm-validation.md deleted file mode 100644 index d163a56a..00000000 --- a/.changeset/pre/cloudflare-warm-validation.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent-storage-cloudflare": patch ---- - -Reduce repeated validation and intermediate allocations during Cloudflare turns. diff --git a/.changeset/pre/coalesce-cloudflare-admission.md b/.changeset/pre/coalesce-cloudflare-admission.md deleted file mode 100644 index 7fc267f3..00000000 --- a/.changeset/pre/coalesce-cloudflare-admission.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Coalesce receipt admission and readiness for initialized Cloudflare Threads to avoid a redundant storage transaction while preserving initialization, recovery, and lifecycle publication. diff --git a/.changeset/pre/coalesce-cloudflare-scheduling.md b/.changeset/pre/coalesce-cloudflare-scheduling.md deleted file mode 100644 index b0e0f305..00000000 --- a/.changeset/pre/coalesce-cloudflare-scheduling.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-storage-sql": patch -"@yielded/agent": patch ---- - -Coalesce Cloudflare maintenance scheduling writes within each transaction and reuse its queue view without changing retry, publication, or recovery behavior. diff --git a/.changeset/pre/code-mode-drop-allow-experimental.md b/.changeset/pre/code-mode-drop-allow-experimental.md deleted file mode 100644 index 47e08f63..00000000 --- a/.changeset/pre/code-mode-drop-allow-experimental.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Stop requesting the `allowExperimental` Worker Loader option for Code Mode dynamic workers — it made every pass fail to load unless the calling worker had the `experimental` compatibility flag, which deployed Workers cannot set. diff --git a/.changeset/pre/code-mode-empty-object.md b/.changeset/pre/code-mode-empty-object.md deleted file mode 100644 index 3e22a3fe..00000000 --- a/.changeset/pre/code-mode-empty-object.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Allow Code Mode tools with strict empty-object parameter and result schemas. diff --git a/.changeset/pre/code-mode-parallel-writes.md b/.changeset/pre/code-mode-parallel-writes.md deleted file mode 100644 index e9377f7b..00000000 --- a/.changeset/pre/code-mode-parallel-writes.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent-testing": patch ---- - -Allow authorized writes and bounded concurrent tool calls in Code Mode, with individual outcome reports after partial failure or interruption. Classify generated programs as uncertain to prevent automatic replay after ownership loss. - -BEHAVIOR CHANGE: Host Tool authorization now checks inner calls; policies must allow the selected Tools explicitly. diff --git a/.changeset/pre/code-mode-pass-scope.md b/.changeset/pre/code-mode-pass-scope.md deleted file mode 100644 index f0f2e6c1..00000000 --- a/.changeset/pre/code-mode-pass-scope.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Run Dynamic Worker Code Mode host calls on a Scope-owned pass fiber so they inherit the `execute` Context and die with the pass. - -BEHAVIOR CHANGE: `CodeExecutionHost.call` now sees services provided to `execute` instead of Effect defaults from a `runFork` root. diff --git a/.changeset/pre/coding-context-windows.md b/.changeset/pre/coding-context-windows.md deleted file mode 100644 index 93c35e74..00000000 --- a/.changeset/pre/coding-context-windows.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Summarize settled work within an active run using a retained context window. Allow native model layers to supply their context capacity through `ModelCallContext.current`. diff --git a/.changeset/pre/cold-layer-composites.md b/.changeset/pre/cold-layer-composites.md deleted file mode 100644 index 11880575..00000000 --- a/.changeset/pre/cold-layer-composites.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Reuse shared Layer composites within each Cloudflare Thread Object to reduce construction work. diff --git a/.changeset/pre/cold-module-evaluation.md b/.changeset/pre/cold-module-evaluation.md deleted file mode 100644 index 842da1db..00000000 --- a/.changeset/pre/cold-module-evaluation.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-sql": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Avoid loading the optional memory adapter for Thread storage ownership, and derive archive, remote-port, and admin encoders only when used. diff --git a/.changeset/pre/cold-object-runtime.md b/.changeset/pre/cold-object-runtime.md deleted file mode 100644 index 77e98a68..00000000 --- a/.changeset/pre/cold-object-runtime.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Reduce Thread Object initialization work by sharing runtime assembly with maintenance and using effect-cf's constructor gate. diff --git a/.changeset/pre/cold-prompt-decode.md b/.changeset/pre/cold-prompt-decode.md deleted file mode 100644 index 46399688..00000000 --- a/.changeset/pre/cold-prompt-decode.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reduce cold Thread checkpoint decoding work while preserving Schema validation and the model-visible transcript. diff --git a/.changeset/pre/cold-thread-construction.md b/.changeset/pre/cold-thread-construction.md deleted file mode 100644 index 2f08fbcc..00000000 --- a/.changeset/pre/cold-thread-construction.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Reduce cold Thread Object construction by omitting unused publication and projection providers and combining platform service setup. diff --git a/.changeset/pre/committed-memory-processing.md b/.changeset/pre/committed-memory-processing.md deleted file mode 100644 index a036f3c0..00000000 --- a/.changeset/pre/committed-memory-processing.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-storage-sqlite": minor -"@yielded/agent": minor ---- - -Process application-selected committed Thread activity in bounded, resumable passes with durable extraction output and fenced progress. Use the optional SQLite adapter to resume memory ingestion safely after interrupted application or lost acknowledgments. diff --git a/.changeset/pre/compacted-attempt-metadata.md b/.changeset/pre/compacted-attempt-metadata.md deleted file mode 100644 index 22b0f80a..00000000 --- a/.changeset/pre/compacted-attempt-metadata.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Avoid an extra history traversal when starting a durable Attempt on a compacted Thread while preserving canonical compaction and unresolved-tool validation. diff --git a/.changeset/pre/compiled-sql-row-readers.md b/.changeset/pre/compiled-sql-row-readers.md deleted file mode 100644 index a1b95a3b..00000000 --- a/.changeset/pre/compiled-sql-row-readers.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-storage-sql": patch ---- - -Reduce Schema overhead in repeated SQL reads. BEHAVIOR CHANGE: Bind `decodeRows(schema)` or `decodeSingleRow(schema)` once, then pass `(table, rowKey, rows)` to the returned decoder. diff --git a/.changeset/pre/completed-worker-successor.md b/.changeset/pre/completed-worker-successor.md deleted file mode 100644 index d3fdfd02..00000000 --- a/.changeset/pre/completed-worker-successor.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-memory": patch ---- - -Allow an authorized `Subagent.start` with `continuationOf` to create a new worker from a successfully completed assignment while preserving its seal, lineage and policy bounds. Retain explicit worker stops in native worker-state reads. diff --git a/.changeset/pre/completion-tool-output-guidance.md b/.changeset/pre/completion-tool-output-guidance.md deleted file mode 100644 index f3f9fcd9..00000000 --- a/.changeset/pre/completion-tool-output-guidance.md +++ /dev/null @@ -1,4 +0,0 @@ ---- ---- - -Keep completion Tool arguments governed by their own Schema instead of the private Agent output contract. Retain JSON final-text completion when the designated completion Tool is not called. diff --git a/.changeset/pre/concurrent-native-threads.md b/.changeset/pre/concurrent-native-threads.md deleted file mode 100644 index ecd9e385..00000000 --- a/.changeset/pre/concurrent-native-threads.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Dispatch up to two independent Threads concurrently in a Cloudflare maintenance event so newly ready input can start while another Thread is busy. Preserve per-Thread FIFO, scoped claim cleanup, and durable alarm recovery. diff --git a/.changeset/pre/concurrent-worker-progress.md b/.changeset/pre/concurrent-worker-progress.md deleted file mode 100644 index 51ce4013..00000000 --- a/.changeset/pre/concurrent-worker-progress.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Publish intermediate worker updates in bounded asynchronous batches while native execution continues, preserving ordered receipts and retries across Object eviction. diff --git a/.changeset/pre/configurable-sqlite-synchronization.md b/.changeset/pre/configurable-sqlite-synchronization.md deleted file mode 100644 index b9e26199..00000000 --- a/.changeset/pre/configurable-sqlite-synchronization.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-storage-sqlite": minor -"@yielded/agent-platform-node": minor ---- - -Add a per-store `synchronous: "NORMAL"` option while keeping `FULL` as the default. `NORMAL` preserves process-crash recovery but can lose acknowledged commits after power loss or an OS crash, allowing external effects to repeat. diff --git a/.changeset/pre/confirm-browser-terminal-cleanup.md b/.changeset/pre/confirm-browser-terminal-cleanup.md deleted file mode 100644 index 40016fa4..00000000 --- a/.changeset/pre/confirm-browser-terminal-cleanup.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Confirm exact Browser Run session termination before reporting cleanup success, including already-absent sessions. Provide `BrowserRunSessionLifecycle.layer({ accountId, apiToken })` with an account-scoped Browser Rendering Write token when constructing the interactive binding. diff --git a/.changeset/pre/consistent-settlement-usage.md b/.changeset/pre/consistent-settlement-usage.md deleted file mode 100644 index be4471d0..00000000 --- a/.changeset/pre/consistent-settlement-usage.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Omit empty uncommitted model usage from settlements so uninterrupted completion and crash recovery produce equivalent canonical records. diff --git a/.changeset/pre/consistent-storage-recovery.md b/.changeset/pre/consistent-storage-recovery.md deleted file mode 100644 index 14c4b6a0..00000000 --- a/.changeset/pre/consistent-storage-recovery.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-cloudflare": patch ---- - -Keep admission identities and applied input markers consistent across storage adapters, and reject checkpoints whose payload disagrees with stored metadata. Read SQLite recovery snapshots without acquiring a write lock. diff --git a/.changeset/pre/consolidate-framework-packages.md b/.changeset/pre/consolidate-framework-packages.md deleted file mode 100644 index 0c6a39f4..00000000 --- a/.changeset/pre/consolidate-framework-packages.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": minor -"@yielded/agent-platform-node": minor -"@yielded/agent-pr-review": minor -"@yielded/agent-storage-cloudflare": minor -"@yielded/agent-storage-memory": minor -"@yielded/agent-storage-sqlite": minor -"@yielded/agent-testing": minor -"@yielded/agent": minor ---- - -Consolidate agent definitions, execution, capabilities, and sandbox contracts into `@yielded/agent`, and use kebab-case public module paths across framework packages. - -BEHAVIOR CHANGE: Replace `@effect-agent/core`, `@effect-agent/engine`, `@effect-agent/capabilities`, and `@effect-agent/sandbox` dependencies with `@yielded/agent`; migrate direct imports such as `@yielded/agent/AgentRuntime` to `@yielded/agent/agent-runtime` and upgrade framework packages together. diff --git a/.changeset/pre/consolidate-memory-validation.md b/.changeset/pre/consolidate-memory-validation.md deleted file mode 100644 index e3e2df71..00000000 --- a/.changeset/pre/consolidate-memory-validation.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Share current-source validation across memory recall and semantic indexing while retaining live access and stale-index checks. Preserve UTF-8 byte budgets and digest identities with shared byte counting and direct encoding. diff --git a/.changeset/pre/construct-durable-identities.md b/.changeset/pre/construct-durable-identities.md deleted file mode 100644 index e7877bce..00000000 --- a/.changeset/pre/construct-durable-identities.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reduce durable execution overhead by constructing deterministic nonempty identities without decoding them again. diff --git a/.changeset/pre/context-economics.md b/.changeset/pre/context-economics.md deleted file mode 100644 index 28e9ecf8..00000000 --- a/.changeset/pre/context-economics.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"@yielded/agent-testing": minor -"@yielded/agent": minor ---- - -Context economics (#54, RUN-022–027/CAP-017): application tool results are bounded by default (50 KiB -`TruncatedToolResult` envelopes), budget accounting becomes cache-aware with last-call -live-context tracking, every request can carry a derived run-status message, the token -dimension joins the `onExhaustion` soft landing (RUN-018) with the `exhausted` dimension marker, -and the engine compacts natively at the pre-Turn seam (prune, then one metered summarize) -with a canonical `CompactionCreated` record that projections fold across Runs; provider -context-length rejections compact-and-retry once, then fail typed (`ContextOverflowError`). diff --git a/.changeset/pre/context-review-fixes.md b/.changeset/pre/context-review-fixes.md deleted file mode 100644 index 5bc94885..00000000 --- a/.changeset/pre/context-review-fixes.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Harden context economics per the reviewer's second pass: the cost budget is -enforced even when a token breach soft-lands the same response; tool results -that cannot serialize become a bounded `UnserializableToolResult` sentinel -instead of passing through unbounded; recovery re-seeds spend and derives -token-exhaustion state (fail mode rejects an already-over-budget resume before -any model call); compaction summarizer usage is staged into the canonical -turn record; staged usage is validated as non-negative finite integers; and a -provider-only breaching stop settles honestly as budget-exhausted. diff --git a/.changeset/pre/context-service-errors.md b/.changeset/pre/context-service-errors.md deleted file mode 100644 index b37f7754..00000000 --- a/.changeset/pre/context-service-errors.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@yielded/agent-testing": patch -"@yielded/agent": minor ---- - -Provide optional context loading through `RunContextPreparation` for ephemeral and durable runs, and catch its concrete tagged errors directly. - -BEHAVIOR CHANGE: replace `RunContextPreparationError.make` with a declared `AgentInputError`, `MemoryRecallError`, or `CompactionError`. diff --git a/.changeset/pre/continuity-across-deployments.md b/.changeset/pre/continuity-across-deployments.md deleted file mode 100644 index 5ff1f589..00000000 --- a/.changeset/pre/continuity-across-deployments.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent": minor -"@yielded/agent-platform-cloudflare": minor ---- - -Resume retained requests using explicit replay contracts and back off failed and blocked Cloudflare maintenance without abandoning child obligations or changing receipts. BEHAVIOR CHANGE: bound durable execution duration per active Attempt, retain actual duration exhaustion, and deploy matching runtime and storage packages before writing the new record. diff --git a/.changeset/pre/correct-browser-evaluations.md b/.changeset/pre/correct-browser-evaluations.md deleted file mode 100644 index cfd767d7..00000000 --- a/.changeset/pre/correct-browser-evaluations.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Surface CDP page exceptions as `BrowserUseError` evaluation failures and guide models to correct recoverable Code Mode errors before continuing authorized work. Successful CDP responses retain their raw shape; catch evaluation failures when a program needs to handle them explicitly. diff --git a/.changeset/pre/correct-mixed-completion.md b/.changeset/pre/correct-mixed-completion.md deleted file mode 100644 index b9e3e78b..00000000 --- a/.changeset/pre/correct-mixed-completion.md +++ /dev/null @@ -1,4 +0,0 @@ ---- ---- - -Let agents correct mixed completion-tool batches before application tools execute, within existing run budgets. Preserve failed call diagnostics and durable recovery without replaying rejected tools. diff --git a/.changeset/pre/counts-first-sql-boundaries.md b/.changeset/pre/counts-first-sql-boundaries.md deleted file mode 100644 index 679296d8..00000000 --- a/.changeset/pre/counts-first-sql-boundaries.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-storage-sql": patch -"@yielded/agent-storage-cloudflare": patch ---- - -Reduce SQL adapter work on each durable turn without changing storage formats, validation, or producer fencing. diff --git a/.changeset/pre/credential-timeout-progress.md b/.changeset/pre/credential-timeout-progress.md deleted file mode 100644 index dbad5a47..00000000 --- a/.changeset/pre/credential-timeout-progress.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Preserve acknowledged credential writes, dispatch evidence, and browser cleanup status in credential timeout failures. - -BEHAVIOR CHANGE: Call `session.fillCredential(request)` instead of the standalone `fillCredential(page, request)` helper. diff --git a/.changeset/pre/current-operation-recovery.md b/.changeset/pre/current-operation-recovery.md deleted file mode 100644 index 6c3515d6..00000000 --- a/.changeset/pre/current-operation-recovery.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-platform-node": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Continue accepted requests with current Agent bindings, retaining original operations and outcomes while allowing later input around unknown work under one Thread lease. BEHAVIOR CHANGE: replace historical binding manifests with per-operation replay versions and deploy matching runtime and storage packages together. diff --git a/.changeset/pre/declared-tool-recovery.md b/.changeset/pre/declared-tool-recovery.md deleted file mode 100644 index d08f84f3..00000000 --- a/.changeset/pre/declared-tool-recovery.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -"@yielded/agent": minor -"@yielded/agent-storage-sql": minor -"@yielded/agent-storage-sqlite": minor -"@yielded/agent-storage-postgres": minor -"@yielded/agent-storage-cloudflare": minor -"@yielded/agent-storage-memory": minor ---- - -Recover unfinished tools from their committed model declarations and remove the separate preparation write and outstanding-operation index. - -BEHAVIOR CHANGE: a crash after declaration can leave a mutating tool outcome unknown; durable Runs require unique tool call IDs and reject responses exceeding 4,096 distinct IDs with `RunJournalError` before commit or dispatch; thread stores require fresh storage or format 16. Use runtime `explain` in place of `readOutstanding`, and `DeclaredToolCallEvidence` in custom reconcilers. - -Supply JSON tool arguments and results in history used by function-based approval hooks. diff --git a/.changeset/pre/delegation-containment.md b/.changeset/pre/delegation-containment.md deleted file mode 100644 index f8ffe7b5..00000000 --- a/.changeset/pre/delegation-containment.md +++ /dev/null @@ -1,12 +0,0 @@ ---- ---- - -Delegation containment (D-037, ADR-0019 S2, SUB-033): `Subagent.define` gains -`failureMode: "error" | "return"` (default `"error"`, today's semantics). Under `"return"` every -expected delegation failure — the declared child failure plus `SubagentPrestartDenied`, -`SubagentBudgetExhausted`, `SubagentProjectionFailure`, and `SubagentExecutionFailure` — becomes -model-visible result data in the Tool success union instead of failing the parent Run, so one -dead child cannot detonate a fan-out. The engine signals (`ToolCallWaiting`, -`SubagentDurabilityError`) always stay in the error channel, preserving durable suspension by -construction, and the durable settlement join records the contained failure with the same -non-failure polarity the live batch continues with. diff --git a/.changeset/pre/delivery-deadlines-own-wakes.md b/.changeset/pre/delivery-deadlines-own-wakes.md deleted file mode 100644 index f1f4b144..00000000 --- a/.changeset/pre/delivery-deadlines-own-wakes.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Schedule message delivery maintenance from its durable due index without waking source execution recovery for delivery bookkeeping. Preserve prearmed recovery across eviction and wake retained deliveries when they become due. diff --git a/.changeset/pre/direct-browser-capture.md b/.changeset/pre/direct-browser-capture.md deleted file mode 100644 index f9b6373d..00000000 --- a/.changeset/pre/direct-browser-capture.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Compose native tools over `PageCapture` for HTML, Markdown, links, and selector scraping, and retain `PageScreenshot` for bounded PNG capture. **BEHAVIOR CHANGE:** Remove structured extraction and its inference policy, the `WebCapture` factories and convenience adapter assemblies, and `PageCrawl` with its REST job adapter. diff --git a/.changeset/pre/direct-compaction-services.md b/.changeset/pre/direct-compaction-services.md deleted file mode 100644 index 7c1ffb0e..00000000 --- a/.changeset/pre/direct-compaction-services.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": minor ---- - -Inject compaction strategies directly through `ContextCompactor`, and supply Effect AI's `IdGenerator` when constructing `MemoryNotes.layer`. BEHAVIOR CHANGE: Replace `RunContextPreparation.compactor` and `contextCompactorRunContextLayer` with `Layer.provide(CompactorLive)` at the runtime Layer. diff --git a/.changeset/pre/direct-live-text.md b/.changeset/pre/direct-live-text.md deleted file mode 100644 index 0061c236..00000000 --- a/.changeset/pre/direct-live-text.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Deliver provisional text directly to ready Cloudflare stream readers while retaining bounded buffering and overflow snapshots. diff --git a/.changeset/pre/direct-runtime-startup.md b/.changeset/pre/direct-runtime-startup.md deleted file mode 100644 index 2913224c..00000000 --- a/.changeset/pre/direct-runtime-startup.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reduce unbundled startup work when using direct Agent, AgentRuntime, and InMemory imports. diff --git a/.changeset/pre/direct-thread-storage.md b/.changeset/pre/direct-thread-storage.md deleted file mode 100644 index a9111fd2..00000000 --- a/.changeset/pre/direct-thread-storage.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-storage-sqlite": patch ---- - -Initialize SQLite storage directly with the complete Thread schema. diff --git a/.changeset/pre/direct-tool-construction.md b/.changeset/pre/direct-tool-construction.md deleted file mode 100644 index bc743991..00000000 --- a/.changeset/pre/direct-tool-construction.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-testing": patch ---- - -Construct MCP toolkits once from validated discovery, render CodeMode declarations only when requested, and keep task-continuation policy in Agent instructions. -**BEHAVIOR CHANGE:** supply discovery schemas and `callTool` from custom MCP connectors, and use native readonly discovery Tools instead of `ToolDiscovery.make` search and failure callbacks. diff --git a/.changeset/pre/distinct-budget-identities.md b/.changeset/pre/distinct-budget-identities.md deleted file mode 100644 index f6ad3ac1..00000000 --- a/.changeset/pre/distinct-budget-identities.md +++ /dev/null @@ -1,4 +0,0 @@ ---- ---- - -Keep delimiter-containing budget IDs independent and retain typed subagent result projection failures in durable delegation. Reduce UTF-8 sizing allocations and repeated JSON validation without changing encoded limits. diff --git a/.changeset/pre/dormant-delivery-maintenance.md b/.changeset/pre/dormant-delivery-maintenance.md deleted file mode 100644 index 4812af13..00000000 --- a/.changeset/pre/dormant-delivery-maintenance.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-sql": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Park accepted message deliveries without status polling and acknowledge native sources on terminal settlement. Bound no-progress Cloudflare maintenance and reuse canonical hydration codecs and a bounded multi-page cache. - -BEHAVIOR CHANGE: generic host envelopes need an exact terminal `Complete` acknowledgement or explicit receipt recovery. Draining a host lane resets its scheduling budget; eight unchanged self-rearming passes park pending work for hourly recovery and report once through the installed error reporter. New source-transaction `recordProgress` or a strictly increasing retained commit cursor resumes it immediately. Canonical hydration retention is bounded by one shared eight-MiB serialized-byte budget per isolate. diff --git a/.changeset/pre/durable-agent-input-scheduling.md b/.changeset/pre/durable-agent-input-scheduling.md deleted file mode 100644 index 13edda98..00000000 --- a/.changeset/pre/durable-agent-input-scheduling.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"@yielded/agent-storage-memory": minor -"@yielded/agent-storage-sqlite": minor -"@yielded/agent-storage-cloudflare": minor -"@yielded/agent-platform-node": minor -"@yielded/agent-platform-cloudflare": minor -"@yielded/agent": minor ---- - -Add durable schedules for typed Agent input with owner authorization, one-shot, interval and cron timing, and recovery through ordinary Submission admission on Node and Cloudflare. - -BEHAVIOR CHANGE: Reset older private-development SQLite databases for storage version 5, and provide `effect-cf ^0.37.0` to Cloudflare hosts. diff --git a/.changeset/pre/durable-api-audit.md b/.changeset/pre/durable-api-audit.md deleted file mode 100644 index b7dbe91a..00000000 --- a/.changeset/pre/durable-api-audit.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"@yielded/agent-platform-node": minor -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent-testing": minor -"@yielded/agent": minor ---- - -Enforce durable child tool-call allowances across recovery and distinguish passing checks from complete adapter certification. Rename the custom durable assembly to `layerWithServices` and preserve Node extension-layer construction errors and dependencies. - -BEHAVIOR CHANGE: Replace `DurableAgentRuntime.layerWithContext` with `layerWithServices`, still supplying both separate services. Regenerate certification reports with the `@yielded/agent/certification@2` schema and use `fullyCertified` for gates requiring executed real-loss checks; `ok` retains its executed-check meaning. Existing child records without an allowance keep their original definition policy; start a new delegation to apply a limit. diff --git a/.changeset/pre/durable-event-subscriptions.md b/.changeset/pre/durable-event-subscriptions.md deleted file mode 100644 index 725c125f..00000000 --- a/.changeset/pre/durable-event-subscriptions.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"@yielded/agent-storage-memory": minor -"@yielded/agent-storage-sqlite": minor -"@yielded/agent-storage-cloudflare": minor -"@yielded/agent-platform-node": minor -"@yielded/agent-platform-cloudflare": minor -"@yielded/agent": minor ---- - -Add durable once and continuous event subscriptions that deliver Schema-defined input through ordinary Thread admission. Provide owner-scoped management Tools and a GitHub workflow run completion source with missed-webhook reconciliation. - -BEHAVIOR CHANGE: Reset incompatible private-development SQLite databases before opening them with storage version 6. diff --git a/.changeset/pre/durable-host-publication.md b/.changeset/pre/durable-host-publication.md deleted file mode 100644 index 794f1577..00000000 --- a/.changeset/pre/durable-host-publication.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Add scoped host publication hooks to Thread Object Layers, with durable producer generations and publication deadlines sharing the native maintenance alarm. Drain pending host publications before runtime recovery and Agent work. diff --git a/.changeset/pre/durable-lifecycle-publication.md b/.changeset/pre/durable-lifecycle-publication.md deleted file mode 100644 index a80154c1..00000000 --- a/.changeset/pre/durable-lifecycle-publication.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-sql": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Add an optional typed lifecycle publication handler with atomically retained native obligations and acknowledgement retries through existing Cloudflare maintenance. Publish application records from exact native admissions and transitions without scanning execution history. diff --git a/.changeset/pre/durable-progress-wait.md b/.changeset/pre/durable-progress-wait.md deleted file mode 100644 index 52ef6ba7..00000000 --- a/.changeset/pre/durable-progress-wait.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": minor -"@yielded/agent": minor ---- - -Add the Effect-native durable progress wait from #94. Runtime and Cloudflare callers now subscribe -before an authoritative canonical read, wake from post-commit hints without polling, broadcast to -concurrent same-thread waiters, clean up on interruption, and reconnect safely after Durable -Object eviction. Cloudflare observation and resolution calls also preserve typed authorization -denials, and the client Layer now requires an explicit `Crypto.Crypto` provider for cancellation -identities. diff --git a/.changeset/pre/durable-run-duration.md b/.changeset/pre/durable-run-duration.md deleted file mode 100644 index 01405918..00000000 --- a/.changeset/pre/durable-run-duration.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -"@yielded/agent-testing": patch -"@yielded/agent": patch ---- - -Preserve one wall-clock `maxDuration` deadline across durable Attempts. The coordinator now -derives the logical Run deadline from its first canonical input record, so recovery and -`waitingForChild` suspension cannot reset the parent allowance; queue time remains excluded and -the engine's deadline option is tightening-only. Already-settled child joins remain mandatory -recovery cleanup before an expired parent records its typed duration failure; cleanup authority -names the exact open delegation Calls and duration interruption resumes before continuation. -Adapter certification fixtures now keep their Run duration above the deliberate multi-round -virtual lease-expiry horizon instead of relying on replacement Attempts to reset it. diff --git a/.changeset/pre/durable-subagent-capabilities.md b/.changeset/pre/durable-subagent-capabilities.md deleted file mode 100644 index 751a6b5d..00000000 --- a/.changeset/pre/durable-subagent-capabilities.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": minor ---- - -Construct subagent capabilities with `Subagent.make`, application-chosen names, and exact host registration resolution. Start and control durable background workers with typed follow-up, completion reporting, authorized history, and bounded nested delegation. diff --git a/.changeset/pre/durable-tool-scheduling.md b/.changeset/pre/durable-tool-scheduling.md deleted file mode 100644 index dc2c4530..00000000 --- a/.changeset/pre/durable-tool-scheduling.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Expose host tool scheduling through `RunToolScheduling` so durable agents can run independent tools concurrently while preserving barriers around sequential tools. Capture the host policy across replacement attempts and retain the agent's admitted concurrency bound. diff --git a/.changeset/pre/early-durable-storage-capabilities.md b/.changeset/pre/early-durable-storage-capabilities.md deleted file mode 100644 index b32fed5c..00000000 --- a/.changeset/pre/early-durable-storage-capabilities.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-platform-node": patch -"@yielded/agent-testing": patch ---- - -Reject incomplete durable storage adapters during runtime and work-discovery Layer construction, before accepting work. Handle `ThreadStoreError` when constructing custom runtimes or certifying adapters; prompt checkpoints and fresh-admission accelerators remain optional. diff --git a/.changeset/pre/early-native-progress.md b/.changeset/pre/early-native-progress.md deleted file mode 100644 index b9ff36c3..00000000 --- a/.changeset/pre/early-native-progress.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-storage-sql": patch ---- - -Publish committed Run and Subagent start progress while native execution continues. Reduce SQLite statements for warm Durable Object turns while preserving recovery and ownership fencing. diff --git a/.changeset/pre/easy-ephemeral-defaults.md b/.changeset/pre/easy-ephemeral-defaults.md deleted file mode 100644 index 551e608a..00000000 --- a/.changeset/pre/easy-ephemeral-defaults.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Run agents and attached subagents with `Ephemeral.layer` for in-memory conversation history, default IDs, and module-level `Subagent.layer` and `ThreadHistory.layer` APIs. - -BEHAVIOR CHANGE: Replace `SubagentRuntime.layer` with `Subagent.layer`. - -BEHAVIOR CHANGE: Remove `IdGenerator` from service requirement unions and omit routine ID Layer provisions; custom generator overrides still work, and explicitly selecting the default uses the module-level `layer` export from `@yielded/agent/id-generator`. - -BEHAVIOR CHANGE: Replace `ThreadHistory.layerTransient` with `ThreadHistory.layer`; share one application Layer and reuse Thread IDs to retain conversations between Runs. Complete history updates remain after a failed or interrupted Run and are released when the application Scope closes. Custom history adapters must declare `retention` as `"incremental"` or `"on-success"` and return a history owner from `open`. diff --git a/.changeset/pre/effect-4-1.md b/.changeset/pre/effect-4-1.md deleted file mode 100644 index d7bb8732..00000000 --- a/.changeset/pre/effect-4-1.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-ai-decision": patch -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent-platform-node": patch -"@yielded/agent-pr-review": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-postgres": patch -"@yielded/agent-storage-sql": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-testing": patch ---- - -Upgrade to Effect 4.1 and effect-cf 0.59. BEHAVIOR CHANGE: Replace custom Crypto layers with the required `Digest` and `SecureRandom` services from `effect/crypto`; `NodeCrypto.layer` and `BrowserCrypto.layer` supply both. diff --git a/.changeset/pre/effect-404.md b/.changeset/pre/effect-404.md deleted file mode 100644 index 79c56a2a..00000000 --- a/.changeset/pre/effect-404.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Update the Effect runtime family to 4.0.4 while preserving existing stored-record compatibility. diff --git a/.changeset/pre/effect-agent-umbrella.md b/.changeset/pre/effect-agent-umbrella.md deleted file mode 100644 index 72e2a935..00000000 --- a/.changeset/pre/effect-agent-umbrella.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-platform-node": patch -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent-testing": patch ---- - -Introduce the `@yielded/agent` umbrella package: the framework's complete pure -surface — schema-first authoring (core), the bounded interpreter (engine), -and operational capabilities — as one dependency-clean root package, -mirroring how `effect` fronts the `@effect/*` satellites. Platform adapters -remain scoped. The umbrella is version-fixed to its three constituents. diff --git a/.changeset/pre/effect-cf-040-upgrade.md b/.changeset/pre/effect-cf-040-upgrade.md deleted file mode 100644 index e53656fd..00000000 --- a/.changeset/pre/effect-cf-040-upgrade.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-platform-node": patch -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent-pr-review": patch -"@yielded/agent-testing": patch ---- - -Upgrade to Effect rc.112 and `effect-cf` 0.40.0 while preserving MCP transports and Cloudflare host behavior. - -BEHAVIOR CHANGE: Upgrade Effect and its provider/platform/SQL packages to rc.112 or a compatible version. In Cloudflare hosts, provide `effect-cf@^0.40.0` and enable `nodejs_compat` for its async context support. diff --git a/.changeset/pre/effect-cf-0564.md b/.changeset/pre/effect-cf-0564.md deleted file mode 100644 index 51aceefd..00000000 --- a/.changeset/pre/effect-cf-0564.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Update effect-cf to 0.56.4 to reduce Cloudflare binding, alarm, and storage transaction overhead. diff --git a/.changeset/pre/effect-execution-owner.md b/.changeset/pre/effect-execution-owner.md deleted file mode 100644 index 9485f28e..00000000 --- a/.changeset/pre/effect-execution-owner.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@yielded/agent": minor ---- - -Run agents through one scoped Effect owner and adapt public streams with bounded backpressure. Commit validated Turn facts directly, retaining completion-tool results before input draining and declared failure values for siblings retained during child suspension. - -BEHAVIOR CHANGE: Provide services for the whole execution; per-pull Context changes no longer reconfigure streams. Terminal Tool events follow call-local telemetry and failure observation, and `maxRunEvents` bounds observed progress rather than headless execution. Replace `bufferLimits.maxSubagentEventsPerBatch` with `maxBufferedEvents` to bound the public stream queue. - -Custom durability hooks must implement `initialize`, `commitTurn`, and `checkpoint`, retaining exposure and parameter-rejection evidence from `RunTurnResponse` and propagating retained infrastructure failures. Return `"committed"` from `commitTurn`; return `"deferred"` only when the response explicitly permits readonly deferral, and persist that response before any call-scoped durable capability. Keep completion projections pure because recovery may reevaluate persisted results before `RunCompleted` fixes the output. Decode retained sibling failures with the Tool's failure Schema instead of expecting `{ errorTag, message }` diagnostics. diff --git a/.changeset/pre/effect-patch-upgrade.md b/.changeset/pre/effect-patch-upgrade.md deleted file mode 100644 index 16ff87a2..00000000 --- a/.changeset/pre/effect-patch-upgrade.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sql": patch -"@yielded/agent-platform-node": patch -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-cloudflare": patch ---- - -Update Effect platform and SQL dependencies to 4.0.3 and require Effect 4.0.3 for the updated Crypto API. Preserve typed SQLite initialization failures. diff --git a/.changeset/pre/effect-rc110-upgrade.md b/.changeset/pre/effect-rc110-upgrade.md deleted file mode 100644 index 2c616dc7..00000000 --- a/.changeset/pre/effect-rc110-upgrade.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-platform-node": patch -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent-pr-review": patch -"@yielded/agent-testing": patch ---- - -Align every public package with the Effect 4.0.0-rc.110 family. diff --git a/.changeset/pre/effect-rc111-upgrade.md b/.changeset/pre/effect-rc111-upgrade.md deleted file mode 100644 index a0743354..00000000 --- a/.changeset/pre/effect-rc111-upgrade.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-platform-node": patch -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent-pr-review": patch -"@yielded/agent-testing": patch ---- - -Align the Effect family with rc.111 to decode nested OpenAI error events, and preserve transformed Tool parameters under its encoded response contract. diff --git a/.changeset/pre/effect-rc115.md b/.changeset/pre/effect-rc115.md deleted file mode 100644 index c5745f3d..00000000 --- a/.changeset/pre/effect-rc115.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent-platform-node": patch -"@yielded/agent-pr-review": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-testing": patch -"@yielded/agent": patch ---- - -Require Effect rc.115 across the packages and effect-cf 0.43.0 for Cloudflare hosts. diff --git a/.changeset/pre/effect-requirements-and-callback-scopes.md b/.changeset/pre/effect-requirements-and-callback-scopes.md deleted file mode 100644 index 117b6a67..00000000 --- a/.changeset/pre/effect-requirements-and-callback-scopes.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@yielded/agent-platform-node": patch -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent": minor ---- - -Compose service-backed callbacks and reconciler Layers through Effect requirements, and finalize subscription and redaction resources per invocation. Preserve the caller's clock during late browser cleanup. - -BEHAVIOR CHANGE: call `toRunThreadOptions(threadId, runId)` with `EphemeralThreads` provided; ephemeral runs now honor a provided `RunToolAuthorization` unless a per-run hook overrides it. diff --git a/.changeset/pre/eligible-common-tool-pins.md b/.changeset/pre/eligible-common-tool-pins.md deleted file mode 100644 index 4a8f2df0..00000000 --- a/.changeset/pre/eligible-common-tool-pins.md +++ /dev/null @@ -1,4 +0,0 @@ ---- ---- - -Keep explicit tool pins selected only while authorized, so disabling a common tool does not prevent other work. Omit unavailable optional completion tools from final-answer requests while preserving mandatory tool checks. diff --git a/.changeset/pre/empty-commit-byte-count.md b/.changeset/pre/empty-commit-byte-count.md deleted file mode 100644 index 414f7831..00000000 --- a/.changeset/pre/empty-commit-byte-count.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Count both closing bytes when checking the size of a progress-only commit. diff --git a/.changeset/pre/empty-model-stop.md b/.changeset/pre/empty-model-stop.md deleted file mode 100644 index 78376431..00000000 --- a/.changeset/pre/empty-model-stop.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Settle a model stop with no text and no Tool Call through the Agent's output Schema, instead of ending every worker of the host. diff --git a/.changeset/pre/engine-preserve-run-policy-compaction.md b/.changeset/pre/engine-preserve-run-policy-compaction.md deleted file mode 100644 index 452abba8..00000000 --- a/.changeset/pre/engine-preserve-run-policy-compaction.md +++ /dev/null @@ -1,6 +0,0 @@ ---- ---- - -Preserve Run policy allowances across replacement Attempts and reserve programmatic calls and grace finalization before execution. Reject unusable compaction summaries while retaining reported usage and the previous summary. - -BEHAVIOR CHANGE: Supply complete, consistent `resumeUsage` whenever a custom coordinator passes `resume` to the runtime. diff --git a/.changeset/pre/exact-memory-import-identities.md b/.changeset/pre/exact-memory-import-identities.md deleted file mode 100644 index be0d4c09..00000000 --- a/.changeset/pre/exact-memory-import-identities.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-storage-memory": patch ---- - -Preserve unique in-memory Submission, Receipt, and Attempt identities after importing large identity suffixes. diff --git a/.changeset/pre/explicit-browser-network-policy.md b/.changeset/pre/explicit-browser-network-policy.md deleted file mode 100644 index 80df76ff..00000000 --- a/.changeset/pre/explicit-browser-network-policy.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Add an explicit interactive browser network policy and reject `PublicWeb` with a typed unsupported error before Cloudflare launches a browser. - -BEHAVIOR CHANGE: Move `allowedHosts` into `network: { _tag: "ExactHosts", allowedHosts }` for existing page-request allowlist workflows; `PublicWeb` remains unsupported on Cloudflare. diff --git a/.changeset/pre/explicit-model-selection.md b/.changeset/pre/explicit-model-selection.md deleted file mode 100644 index 44e933cb..00000000 --- a/.changeset/pre/explicit-model-selection.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-ai-decision": patch ---- - -Resolve AutoModel choices explicitly before passing the returned native model to `Agent.withModel` or a durable registration. -**BEHAVIOR CHANGE:** authorize and validate selection input in the host, and apply a Scope and timeout around selection plus execution; `AutoModel.make` no longer returns a model Layer. diff --git a/.changeset/pre/explicit-worker-actions.md b/.changeset/pre/explicit-worker-actions.md deleted file mode 100644 index bbc78fcc..00000000 --- a/.changeset/pre/explicit-worker-actions.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Construct background actions with `startTool`, `followUpTool`, `inspectTool`, `summaryTool`, `listTool`, and `cancelTool`, and register `Subagent.reporting` explicitly on the parent. diff --git a/.changeset/pre/fair-recovery-status.md b/.changeset/pre/fair-recovery-status.md deleted file mode 100644 index 0e52776c..00000000 --- a/.changeset/pre/fair-recovery-status.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent-platform-node": patch ---- - -Isolate Thread recovery faults with history-independent status and bounded retries, let Cloudflare dispatch fresh Threads while old cleanup is pending, and keep Node startup closed on blocked recovery. Preserve content-free storage diagnostics. - -BEHAVIOR CHANGE: Call `runtime.runRecovery()` instead of yielding `runtime.runRecovery`; its result contains ordinary Submission `reports` and one `blocked` fault per failed Thread. Blocked Threads remain ineligible for claims; pass `{ threadId }` to recover only a selected Thread. - -`SubmissionLedger.scanNonterminal` now emits control-only `SubmissionWorkItem` entries. Use `lookup` or `loadRecoverySnapshot` for selected execution payloads. diff --git a/.changeset/pre/faster-durable-execution.md b/.changeset/pre/faster-durable-execution.md deleted file mode 100644 index 47b680a0..00000000 --- a/.changeset/pre/faster-durable-execution.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-sql": patch -"@yielded/agent-platform-node": patch -"@yielded/agent-storage-sqlite": patch ---- - -Reduce latency for durable settlement, streamed responses, retained SQL history reads, and idle SQL ledger claims. Reduce cold startup time for Node hosts. diff --git a/.changeset/pre/faster-persisted-json-bytes.md b/.changeset/pre/faster-persisted-json-bytes.md deleted file mode 100644 index 198cba45..00000000 --- a/.changeset/pre/faster-persisted-json-bytes.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reduce persistence-validation CPU for ASCII JSON while preserving byte and structure limits. diff --git a/.changeset/pre/faster-sql-memory-receipts.md b/.changeset/pre/faster-sql-memory-receipts.md deleted file mode 100644 index fc321a8c..00000000 --- a/.changeset/pre/faster-sql-memory-receipts.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reduce CPU work for large SQL memory writes and receipt replay while preserving storage limits and receipt validation. diff --git a/.changeset/pre/fence-joining-recovery.md b/.changeset/pre/fence-joining-recovery.md deleted file mode 100644 index 0b0fe37b..00000000 --- a/.changeset/pre/fence-joining-recovery.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"@yielded/agent": minor -"@yielded/agent-storage-memory": minor -"@yielded/agent-storage-sql": minor -"@yielded/agent-storage-cloudflare": minor ---- - -Prevent recovery from reverting joined input while its host is still processing it. Recheck canonical input after acquiring recovery ownership and fence rollback against the current host. - -BEHAVIOR CHANGE: Custom `SubmissionLedger` adapters must validate a supplied `RevertJoiningRequest.guard` atomically with rollback; requests without a guard retain their existing behavior. diff --git a/.changeset/pre/fewer-cloudflare-index-writes.md b/.changeset/pre/fewer-cloudflare-index-writes.md deleted file mode 100644 index fe0e31f3..00000000 --- a/.changeset/pre/fewer-cloudflare-index-writes.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-storage-sql": patch ---- - -Reduce Cloudflare storage writes for canonical appends while preserving existing records, receipts, and recovery. diff --git a/.changeset/pre/fewer-native-index-writes.md b/.changeset/pre/fewer-native-index-writes.md deleted file mode 100644 index fea0b5b0..00000000 --- a/.changeset/pre/fewer-native-index-writes.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-postgres": patch ---- - -Remove the redundant batch-end index from SQLite and PostgreSQL stores while preserving existing tables, Threads and receipts. diff --git a/.changeset/pre/filter-worker-completion.md b/.changeset/pre/filter-worker-completion.md deleted file mode 100644 index a5d35498..00000000 --- a/.changeset/pre/filter-worker-completion.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Allow background workers to filter automatic completion reports while retaining durable decisions and independent final reports. diff --git a/.changeset/pre/finite-cloudflare-maintenance.md b/.changeset/pre/finite-cloudflare-maintenance.md deleted file mode 100644 index 6d53e5dd..00000000 --- a/.changeset/pre/finite-cloudflare-maintenance.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": minor ---- - -Let the Cloudflare alarm schedule independent finite host lanes and native message waves. BEHAVIOR CHANGE: replace `ThreadHostMaintenance.drainUntil` and `ThreadMaintenanceActivity` with `lanes` of `run`, `pendingDeadline` and `dispatchTimeoutMillis`; route producer hints through `WakeScheduler`, and replace `ThreadMessageDelivery.drainUntil` with `prepare`. diff --git a/.changeset/pre/finite-turn-lifetime.md b/.changeset/pre/finite-turn-lifetime.md deleted file mode 100644 index 60e5df15..00000000 --- a/.changeset/pre/finite-turn-lifetime.md +++ /dev/null @@ -1,6 +0,0 @@ ---- ---- - -Release completed turn state before starting the next turn to reduce memory retained during long runs. - -BEHAVIOR CHANGE: Resources acquired by `beforeTurn` or `context.prepare` now close with that turn. Move resources needed across turns into a surrounding run Layer or Scope. diff --git a/.changeset/pre/first-text-preview.md b/.changeset/pre/first-text-preview.md deleted file mode 100644 index b85e1805..00000000 --- a/.changeset/pre/first-text-preview.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Preview provisional assistant text from durable Cloudflare Threads with `CloudflareThreadClient.watchText`, including current drafts when connecting or catching up. Reconcile drafts by Attempt and model-call identity to committed history. diff --git a/.changeset/pre/fix-screenshot-context.md b/.changeset/pre/fix-screenshot-context.md deleted file mode 100644 index bf12ff1a..00000000 --- a/.changeset/pre/fix-screenshot-context.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Estimate native image inputs automatically without counting their binary or base64 payload as text. Preserve the original images across context admission and compaction. diff --git a/.changeset/pre/fixed-native-cloudflare-gates.md b/.changeset/pre/fixed-native-cloudflare-gates.md deleted file mode 100644 index 9c092070..00000000 --- a/.changeset/pre/fixed-native-cloudflare-gates.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Require effect-cf 0.42.1 for correct Durable Object initialization ordering and native callback scheduling. diff --git a/.changeset/pre/focused-diff-review.md b/.changeset/pre/focused-diff-review.md deleted file mode 100644 index bdf0ebac..00000000 --- a/.changeset/pre/focused-diff-review.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-pr-review": patch ---- - -Review supplied diffs first and use source lookups to resolve concrete defect questions. Preserve findings and explicitly report incomplete coverage when the reviewer cannot finish. diff --git a/.changeset/pre/fresh-browsers-keep-size.md b/.changeset/pre/fresh-browsers-keep-size.md deleted file mode 100644 index 43460246..00000000 --- a/.changeset/pre/fresh-browsers-keep-size.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Preserve the host's browser viewport when attaching to an existing session. diff --git a/.changeset/pre/fresh-context-windows.md b/.changeset/pre/fresh-context-windows.md deleted file mode 100644 index 59279718..00000000 --- a/.changeset/pre/fresh-context-windows.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": minor ---- - -Add native context-window rollover with durable recovery, model-directed context tools, retained transcript lookup, and revision-checked working notes. BEHAVIOR CHANGE: Update custom compactors to use `trigger`, `modelCallAllowed`, and `state.replacement` instead of the summary-specific flags and state fields. diff --git a/.changeset/pre/fresh-empty-maintenance.md b/.changeset/pre/fresh-empty-maintenance.md deleted file mode 100644 index 0138f76f..00000000 --- a/.changeset/pre/fresh-empty-maintenance.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Acknowledge fresh empty native maintenance snapshots while independent host work remains active, avoiding repeated empty ledger scans without losing overlapping admissions. diff --git a/.changeset/pre/fresh-run-context.md b/.changeset/pre/fresh-run-context.md deleted file mode 100644 index c71f7888..00000000 --- a/.changeset/pre/fresh-run-context.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Expose `priorRunPrefixLength` to durable context preparation hooks so applications can replace earlier runs' prompt history while preserving current-run recovery and canonical receipts. diff --git a/.changeset/pre/fresh-startup-commit.md b/.changeset/pre/fresh-startup-commit.md deleted file mode 100644 index 362b446c..00000000 --- a/.changeset/pre/fresh-startup-commit.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Commit fresh Cloudflare Run inputs, original context, and applied markers atomically before model dispatch. Preserve configured projections and lifecycle publication while avoiding a second initial checkpoint write. diff --git a/.changeset/pre/friendly-cloudflare-peer.md b/.changeset/pre/friendly-cloudflare-peer.md deleted file mode 100644 index f0c1c7d9..00000000 --- a/.changeset/pre/friendly-cloudflare-peer.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Publish `effect-cf` as a compatible host-owned peer and update the workspace integration to 0.27.0, avoiding consumer overrides and duplicate Effect service identities. diff --git a/.changeset/pre/fuse-live-text-pulls.md b/.changeset/pre/fuse-live-text-pulls.md deleted file mode 100644 index cfab48b2..00000000 --- a/.changeset/pre/fuse-live-text-pulls.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Reduce provisional text streaming overhead while preserving snapshot replacement and slow-observer buffering. -Stop idle text observers when their owning scope closes. diff --git a/.changeset/pre/gentle-tools-acknowledge.md b/.changeset/pre/gentle-tools-acknowledge.md deleted file mode 100644 index b766979e..00000000 --- a/.changeset/pre/gentle-tools-acknowledge.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Acknowledge native `emit_update` success with `{ emitted: true }` after the Run accepts the update. Represent `Schema.Void` success encodings as JSON `null` in model history and programmatic broker results. diff --git a/.changeset/pre/gpt-six-effect-rc.md b/.changeset/pre/gpt-six-effect-rc.md deleted file mode 100644 index ada40439..00000000 --- a/.changeset/pre/gpt-six-effect-rc.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-ai-decision": patch -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent-platform-node": patch -"@yielded/agent-pr-review": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-testing": patch ---- - -Require Effect 4.0.0-rc.117 and update the model examples to GPT-6. diff --git a/.changeset/pre/harden-engine-recovery.md b/.changeset/pre/harden-engine-recovery.md deleted file mode 100644 index 9ee8028e..00000000 --- a/.changeset/pre/harden-engine-recovery.md +++ /dev/null @@ -1,7 +0,0 @@ ---- ---- - -Reject malformed DN/DC resume Tool results and usage seeds before external execution, and preserve -engine infrastructure causes on live errors without exposing them in public diagnostics. BEHAVIOR -CHANGE: pass a positive finite `maxResultBytes` to `ToolBroker.openPass`; `AgentRuntime.layer` is -removed. diff --git a/.changeset/pre/harden-session-boundaries.md b/.changeset/pre/harden-session-boundaries.md deleted file mode 100644 index c1e8ca07..00000000 --- a/.changeset/pre/harden-session-boundaries.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Harden durable thread recovery against hostile foreign diagnostics and encode joined inputs through Schema-owned JSON. Require ledger adapters to replay semantically identical canonical JSON regardless of object key order. diff --git a/.changeset/pre/harden-storage-boundaries.md b/.changeset/pre/harden-storage-boundaries.md deleted file mode 100644 index aea636b3..00000000 --- a/.changeset/pre/harden-storage-boundaries.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-cloudflare": patch ---- - -Validate storage configuration before acquiring SQLite resources, and compare replayed persisted JSON by Schema semantics instead of serialized key order. Keep Cloudflare transport failures typed under hostile foreign values and narrow routed responses with operation schemas. diff --git a/.changeset/pre/harden-testing-boundaries.md b/.changeset/pre/harden-testing-boundaries.md deleted file mode 100644 index 44c3a567..00000000 --- a/.changeset/pre/harden-testing-boundaries.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-testing": patch ---- - -Harden deterministic chaos replay, MCP Schema decoding, and SQL fixture boundaries. Preserve concrete Effect failures inside chaos lanes and reject malformed seed configuration instead of partially parsing it. diff --git a/.changeset/pre/healthy-cloudflare-storage-spans.md b/.changeset/pre/healthy-cloudflare-storage-spans.md deleted file mode 100644 index acd3e16a..00000000 --- a/.changeset/pre/healthy-cloudflare-storage-spans.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-storage-cloudflare": patch ---- - -Record expected ownership cleanup, stale fences, and append contention as successful storage span outcomes and skip unnecessary write transactions. Preserve concrete error and cause tags on real storage failures without adding payloads to trace attributes. diff --git a/.changeset/pre/honest-worker-delivery.md b/.changeset/pre/honest-worker-delivery.md deleted file mode 100644 index 06754d53..00000000 --- a/.changeset/pre/honest-worker-delivery.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Return retained worker delivery states with stable message references and inspect the same operation through destination acceptance and settlement. - -BEHAVIOR CHANGE: Read `Subagent.start(...).delivery` and the `MessageStatus` returned by `followUp`; inspect their `message` instead of resending pending input, and use an accepted `receipt` for execution results, waiting, or cancellation. diff --git a/.changeset/pre/host-browser-viewport.md b/.changeset/pre/host-browser-viewport.md deleted file mode 100644 index 00d9979f..00000000 --- a/.changeset/pre/host-browser-viewport.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": minor ---- - -Expose a validated launch viewport and host-only session resizing without spending the agent action budget. - -BEHAVIOR CHANGE: Handle `InteractiveBrowserPolicyDeniedError` when building `BrowserRunInteractiveBinding.layer` with invalid viewport configuration. diff --git a/.changeset/pre/host-coordinator-checkpoints.md b/.changeset/pre/host-coordinator-checkpoints.md deleted file mode 100644 index f6783e9b..00000000 --- a/.changeset/pre/host-coordinator-checkpoints.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Reduce repeated coordinator work during durable turns and redundant recovery scans in single-Thread Cloudflare Objects. diff --git a/.changeset/pre/in-memory-assembly.md b/.changeset/pre/in-memory-assembly.md deleted file mode 100644 index 930b171d..00000000 --- a/.changeset/pre/in-memory-assembly.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Rename the in-memory runtime setup to `InMemory.layer` and clarify that conversations can span Runs for the lifetime of the application Scope. - -BEHAVIOR CHANGE: Replace the `Ephemeral` root import with `InMemory` and the `@yielded/agent/ephemeral` module path with `@yielded/agent/in-memory`. diff --git a/.changeset/pre/incremental-retained-history.md b/.changeset/pre/incremental-retained-history.md deleted file mode 100644 index 7c532aa0..00000000 --- a/.changeset/pre/incremental-retained-history.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reduce retained-history staging work while enforcing persistence limits on every update. diff --git a/.changeset/pre/independent-resume-context.md b/.changeset/pre/independent-resume-context.md deleted file mode 100644 index fa426f54..00000000 --- a/.changeset/pre/independent-resume-context.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Resume each Run with its original input and its own continuation, preserving late results for prior calls. Keep other interleaved exchanges visible in Thread history when compacting a Run's context. diff --git a/.changeset/pre/independent-run-authority.md b/.changeset/pre/independent-run-authority.md deleted file mode 100644 index 46aa6d92..00000000 --- a/.changeset/pre/independent-run-authority.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@yielded/agent-platform-node": patch -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent": patch ---- - -Compose prompt preparation and Tool authorization independently in durable hosts, preserving both across recovery. - -BEHAVIOR CHANGE: move `RunContextPreparation.toolAuthorization` to a separate `RunToolAuthorization` Layer and provide both services to `DurableAgentRuntime.layerWithServices`. diff --git a/.changeset/pre/independent-run-lease-renewal.md b/.changeset/pre/independent-run-lease-renewal.md deleted file mode 100644 index 12bf8f6d..00000000 --- a/.changeset/pre/independent-run-lease-renewal.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Allow generic Run storage sessions to renew ownership during canonical writes and between settlement retries while coordinating mutations with token rotation. Release the latest renewed token when a session closes. diff --git a/.changeset/pre/independent-worker-reporting.md b/.changeset/pre/independent-worker-reporting.md deleted file mode 100644 index 334dd552..00000000 --- a/.changeset/pre/independent-worker-reporting.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Keep standard worker progress and completion independent of parent runtime reads, with live -permission checks at destination admission. Distinguish tool calls that never reached required -durable preparation from genuinely uncertain outcomes in historical model context. - -BEHAVIOR CHANGE: Retire pre-production standard-report worker families lacking the captured -return address before upgrading: their execution journals, native admissions, and queued -deliveries. Reconcile uncertain external operations before retiring receipts; source resource -data is outside this reset scope. diff --git a/.changeset/pre/independent-worker-run-budgets.md b/.changeset/pre/independent-worker-run-budgets.md deleted file mode 100644 index d64dd671..00000000 --- a/.changeset/pre/independent-worker-run-budgets.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Add host-authorized independent allowances for background worker Runs while preserving delegation lineage and bounded attached descendants. Keep joined inputs and replacement Attempts on the same durable allowance. diff --git a/.changeset/pre/initial-live-test-release.md b/.changeset/pre/initial-live-test-release.md deleted file mode 100644 index e11b5a33..00000000 --- a/.changeset/pre/initial-live-test-release.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-platform-node": patch -"@yielded/agent-testing": patch -"@yielded/agent": patch ---- - -Initial beta-channel release of the Effect Agent framework packages for live -integration testing: the schema-first authoring core, the ephemeral -interpreter, operational capabilities, sandbox contracts and the local -adapter, canonical thread records with the durable coordinator, the memory -and SQLite storage adapters, the Node platform assembly, and the -deterministic testing kit. The Cloudflare packages stay private until their -declaration-emit blocker (TS4094) is resolved. diff --git a/.changeset/pre/interactive-browser-host-controls.md b/.changeset/pre/interactive-browser-host-controls.md deleted file mode 100644 index 140f548e..00000000 --- a/.changeset/pre/interactive-browser-host-controls.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": minor ---- - -Add same-session PNG screenshots, viewport scrolling, and explicit closure to interactive browser handles. Expose host-only Cloudflare Live View, handoff, and cleanup through redacted session identities. - -BEHAVIOR CHANGE: Custom browser adapters must implement `screenshot`, `scroll`, and the `close` Effect. diff --git a/.changeset/pre/join-completion-followups.md b/.changeset/pre/join-completion-followups.md deleted file mode 100644 index 2f9e11bf..00000000 --- a/.changeset/pre/join-completion-followups.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Drain ready follow-ups together at durable turn boundaries, including after completion tools. Keep inputs arriving during a completion tool in the active run for the next model turn. diff --git a/.changeset/pre/joined-input-restart.md b/.changeset/pre/joined-input-restart.md deleted file mode 100644 index d8f4dc8b..00000000 --- a/.changeset/pre/joined-input-restart.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Enable `policy.restartOnJoinedInput` to replace a disposable model call with joined input, at most twice per run, while preserving durable usage and settlement. When enabling it, handle `ModelRestarted` by clearing drafts for its `turnId`; calls exposing provider-defined tools retain seam steering. diff --git a/.changeset/pre/joined-input-turn-identity.md b/.changeset/pre/joined-input-turn-identity.md deleted file mode 100644 index 8ed085ea..00000000 --- a/.changeset/pre/joined-input-turn-identity.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Keep durable history recoverable when new input restarts an unfinished model response, including across eviction. diff --git a/.changeset/pre/kitesurf-capture.md b/.changeset/pre/kitesurf-capture.md deleted file mode 100644 index c7250ee4..00000000 --- a/.changeset/pre/kitesurf-capture.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Enable Kitesurf page captures and PNG screenshots through the Cloudflare Browser Run binding while preserving Chromium as the default and requiring explicit Workers AI authorization for structured extraction. diff --git a/.changeset/pre/kom-durable-recovery-authorization.md b/.changeset/pre/kom-durable-recovery-authorization.md deleted file mode 100644 index 80c6b163..00000000 --- a/.changeset/pre/kom-durable-recovery-authorization.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent": patch ---- - -Preserve Run limits across durable recovery, require explicit delegation replay authority, and reject unusable compaction summaries. Authorize settlement waits and aborts through the runtime authorizer and reject settlement Receipts whose Submission belongs to another Thread. - -BEHAVIOR CHANGE: Reset private-development histories whose RunStarted records predate policy accounting version 1 before resuming them. diff --git a/.changeset/pre/language-model-decisions.md b/.changeset/pre/language-model-decisions.md deleted file mode 100644 index 27fce620..00000000 --- a/.changeset/pre/language-model-decisions.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-ai-decision": minor ---- - -Add `LanguageModelDecisionModel.layer` to answer native Effect decisions through any structured-output language model. diff --git a/.changeset/pre/large-review-patches.md b/.changeset/pre/large-review-patches.md deleted file mode 100644 index a0c4eb03..00000000 --- a/.changeset/pre/large-review-patches.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-pr-review": patch ---- - -Accept complete patches up to the 256,000-character review batch capacity instead of excluding files above 80,000 characters. -Return incomplete token-budget results with unreviewed paths when input exceeds the engine or provider context limit, including before the first paid request. diff --git a/.changeset/pre/lazy-message-delivery.md b/.changeset/pre/lazy-message-delivery.md deleted file mode 100644 index 7b8963da..00000000 --- a/.changeset/pre/lazy-message-delivery.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Defer Cloudflare message delivery driver construction until retained delivery work is due. diff --git a/.changeset/pre/lazy-optional-services.md b/.changeset/pre/lazy-optional-services.md deleted file mode 100644 index 4f1c3a0b..00000000 --- a/.changeset/pre/lazy-optional-services.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Defer SQL memory equivalence derivation and unavailable messaging-context errors until first use to reduce eager initialization work. diff --git a/.changeset/pre/lean-alarm-transactions.md b/.changeset/pre/lean-alarm-transactions.md deleted file mode 100644 index ce93fd91..00000000 --- a/.changeset/pre/lean-alarm-transactions.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Reduce maintenance transaction overhead while preserving scheduling, ownership checks and rollback. diff --git a/.changeset/pre/lean-internal-schema-work.md b/.changeset/pre/lean-internal-schema-work.md deleted file mode 100644 index 6778505e..00000000 --- a/.changeset/pre/lean-internal-schema-work.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reduce CPU overhead in model streaming and successful tool calls while preserving validation and operation spans. diff --git a/.changeset/pre/lean-ledger-observation.md b/.changeset/pre/lean-ledger-observation.md deleted file mode 100644 index 12b1e27a..00000000 --- a/.changeset/pre/lean-ledger-observation.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-cloudflare": patch ---- - -Index unfinished submissions and seek between recovery scan pages with an automatic data-preserving storage upgrade. Replay settled outcomes without acquiring a write transaction. diff --git a/.changeset/pre/lean-native-turn.md b/.changeset/pre/lean-native-turn.md deleted file mode 100644 index 47da5bb0..00000000 --- a/.changeset/pre/lean-native-turn.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent-storage-cloudflare": patch ---- - -Reduce empty maintenance waves, repeated decoding and per-Run service construction during durable Cloudflare turns. Preserve scoped cancellation, receipts and recovery. diff --git a/.changeset/pre/lean-pr-review.md b/.changeset/pre/lean-pr-review.md deleted file mode 100644 index 1e09e1df..00000000 --- a/.changeset/pre/lean-pr-review.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@yielded/agent-pr-review": minor ---- - -Replace the reviewer with a provider-neutral, single-pass agent and move GitHub and provider policy -to the private channel. Review large diffs in one bounded four-shard parallel wave, make the -automatic attempt limit consumer-configurable, show when automatic reviews pause, estimate known -GPT-6 costs, report cached and uncached input usage, publish one no-model closing review after the -limit is reached, and present findings with severity and category labels plus agent-ready prompts. diff --git a/.changeset/pre/lean-startup-estimation.md b/.changeset/pre/lean-startup-estimation.md deleted file mode 100644 index 3102b228..00000000 --- a/.changeset/pre/lean-startup-estimation.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reduce fresh durable startup work for uncompacted histories and speed up native prompt token estimation while preserving admission and recovery behavior. diff --git a/.changeset/pre/lean-text-frame-encoding.md b/.changeset/pre/lean-text-frame-encoding.md deleted file mode 100644 index 416305e7..00000000 --- a/.changeset/pre/lean-text-frame-encoding.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Reduce provisional text encoding overhead while preserving Schema validation, frame bytes, and wire bounds. diff --git a/.changeset/pre/literal-review-diffs.md b/.changeset/pre/literal-review-diffs.md deleted file mode 100644 index 09e85576..00000000 --- a/.changeset/pre/literal-review-diffs.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-pr-review": patch ---- - -Send each admitted review patch once as a literal unified diff to reduce repeated input overhead while preserving every supplied change and its metadata. diff --git a/.changeset/pre/live-peer-message-delivery.md b/.changeset/pre/live-peer-message-delivery.md deleted file mode 100644 index dbe2c8e1..00000000 --- a/.changeset/pre/live-peer-message-delivery.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Deliver messages created during an active Cloudflare source Run without waiting for that Run to finish. diff --git a/.changeset/pre/live-thread-projection.md b/.changeset/pre/live-thread-projection.md deleted file mode 100644 index 5cab849b..00000000 --- a/.changeset/pre/live-thread-projection.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent": patch ---- - -Add typed Thread projection maintenance with live committed-batch hooks and bounded background backfill. Share host index services with Cloudflare Tools while preserving canonical commits and independent approval publication. diff --git a/.changeset/pre/long-thread-follow-up.md b/.changeset/pre/long-thread-follow-up.md deleted file mode 100644 index 30522d03..00000000 --- a/.changeset/pre/long-thread-follow-up.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sql": patch -"@yielded/agent-storage-cloudflare": patch ---- - -Apply saved-context limits after compaction so new Runs can follow long compacted Runs. Reject unrepresentable queued facts before admission and detect orphan or out-of-range canonical data during Cloudflare startup verification. diff --git a/.changeset/pre/long-thread-storage.md b/.changeset/pre/long-thread-storage.md deleted file mode 100644 index 56d3025a..00000000 --- a/.changeset/pre/long-thread-storage.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -"@yielded/agent": minor -"@yielded/agent-storage-memory": minor -"@yielded/agent-storage-sql": minor -"@yielded/agent-storage-sqlite": minor -"@yielded/agent-storage-postgres": minor -"@yielded/agent-storage-cloudflare": minor -"@yielded/agent-platform-node": minor -"@yielded/agent-platform-cloudflare": minor -"@yielded/agent-testing": minor ---- - -Remove cumulative Thread record, worker-input, peer-message, and delivery limits while preserving live capacity and per-Run bounds, and refuse batches whose expanded identities and references cannot fit a complete transfer page. **BEHAVIOR CHANGE:** Use fresh layout-21 stores and `effect-agent/thread@3` records, provide `ThreadExportSource` for `streamExport({ threadId })`, and configure compaction within retained model-context bounds. diff --git a/.changeset/pre/manual-thread-alarms.md b/.changeset/pre/manual-thread-alarms.md deleted file mode 100644 index 307353f7..00000000 --- a/.changeset/pre/manual-thread-alarms.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Delegate Thread maintenance scheduling to effect-cf 0.56 and compose application alarms through `ThreadObject.make`. - -BEHAVIOR CHANGE: shared hosts must register `ThreadObject.alarms`. diff --git a/.changeset/pre/mcp-client-transports.md b/.changeset/pre/mcp-client-transports.md deleted file mode 100644 index dfd74e69..00000000 --- a/.changeset/pre/mcp-client-transports.md +++ /dev/null @@ -1,4 +0,0 @@ ---- ---- - -Connect agents to MCP servers over Streamable HTTP or stdio with `McpClient.layer`, `McpHttpTransport.make`, and `McpStdioTransport.make`. `connectMcp` now returns dynamic tools with a handler Layer that forwards `tools/call`, and `McpConnectionRequest.expectedToolkitSchemaDigest` rejects servers whose tools drifted. diff --git a/.changeset/pre/mcp-ref-schema-normalization.md b/.changeset/pre/mcp-ref-schema-normalization.md deleted file mode 100644 index 8923ef9c..00000000 --- a/.changeset/pre/mcp-ref-schema-normalization.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-platform-node": patch -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent-testing": patch ---- - -Fix `validateMcpDiscovery` reporting a permanent schema drift for MCP tools whose parameters or success type is a named, refined Schema (a branded ID, a bounded string, a `Schema.Class`) — both schema derivations now resolve a top-level `$ref` before comparison. diff --git a/.changeset/pre/memory-receipt-integrity.md b/.changeset/pre/memory-receipt-integrity.md deleted file mode 100644 index ff17ba9e..00000000 --- a/.changeset/pre/memory-receipt-integrity.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-storage-sqlite": patch ---- - -Reject memory receipts whose saved result does not match the original write command. diff --git a/.changeset/pre/memory-revision-withdrawal.md b/.changeset/pre/memory-revision-withdrawal.md deleted file mode 100644 index f664f651..00000000 --- a/.changeset/pre/memory-revision-withdrawal.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-storage-sqlite": minor ---- - -Add optional conditional memory updates, idempotent write receipts, and terminal withdrawal with SQLite persistence. Revalidate cached passages against the current source revision and host-selected access scope before recall. diff --git a/.changeset/pre/mit-cloudflare-and-review-fixes.md b/.changeset/pre/mit-cloudflare-and-review-fixes.md deleted file mode 100644 index aefe5b2e..00000000 --- a/.changeset/pre/mit-cloudflare-and-review-fixes.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-platform-node": patch -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent-testing": patch -"@yielded/agent": patch ---- - -Adopt the MIT license across every published package, and ship the Cloudflare -packages with type declarations for the first time: their Durable Object -class factory now carries an explicit `ThreadObjectClass` return type, -which unblocks TypeScript declaration emit (TS4094). Supersedes the -0.0.1-beta.2 round (and the Cloudflare pair's 0.0.1-beta.0), which was -published out of band from an uncommitted tree, still UNLICENSED, and without -`.d.mts` for the Cloudflare packages. diff --git a/.changeset/pre/model-visible-input-projection.md b/.changeset/pre/model-visible-input-projection.md deleted file mode 100644 index c4343d3b..00000000 --- a/.changeset/pre/model-visible-input-projection.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": minor ---- - -Add Effectful `inputPrompt` projections to Agent Definitions so hosts can omit input fields from model requests while retaining canonical input for authorization and recovery. diff --git a/.changeset/pre/model-visible-output-contract.md b/.changeset/pre/model-visible-output-contract.md deleted file mode 100644 index 82a50a1e..00000000 --- a/.changeset/pre/model-visible-output-contract.md +++ /dev/null @@ -1,17 +0,0 @@ ---- ---- - -Model-visible output contract (#41, #55, RUN-028/TEST-016): every model request of a Run whose -Agent Definition declares an output Schema now carries a framework-owned system message stating -the final-output contract — a fixed directive plus the JSON Schema derived from the encoded side -of `agent.definition.output` via Effect AI's derivation, inserted immediately after the request's -last system message. The contract is a request-time projection applied after -`RunContextHook.prepare`: official history, canonical records, run events, and the DN/DC golden -are unchanged, and compaction cannot drop it. Context adapters receive the exact text through the -new additive optional `RunContextRequest.outputContract` field so a limit-targeting hook can -reserve its overhead; the field is absent entirely when the output Schema cannot render to JSON -Schema, in which case the Run behaves exactly as before with one Turn-1 diagnostic per Attempt. -`decodeFinalOutput` remains the conformance authority (AUTH-008). BEHAVIOR CHANGE ON UPGRADE: -model-visible prompts grow by the rendered Schema on every request, and tests asserting -request-message shapes will see one additional system message; hand-written JSON-shape prose in -`instructions` becomes redundant but stays harmless. diff --git a/.changeset/pre/narrow-abort-intent-reads.md b/.changeset/pre/narrow-abort-intent-reads.md deleted file mode 100644 index 075ccc3d..00000000 --- a/.changeset/pre/narrow-abort-intent-reads.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-platform-node": patch -"@yielded/agent": patch ---- - -Poll durable abort intent without loading unrelated recovery state. Implement `SubmissionLedger.readAbortIntent` in custom ledger adapters. diff --git a/.changeset/pre/narrow-ledger-rows.md b/.changeset/pre/narrow-ledger-rows.md deleted file mode 100644 index 8341a2e4..00000000 --- a/.changeset/pre/narrow-ledger-rows.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-storage-sql": patch ---- - -Reduce readiness and claim decoding work by selecting only the submission state, input, and authority fields those operations need. diff --git a/.changeset/pre/narrow-package-imports.md b/.changeset/pre/narrow-package-imports.md deleted file mode 100644 index 326a1ee6..00000000 --- a/.changeset/pre/narrow-package-imports.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"@yielded/agent-testing": minor -"@yielded/agent-platform-cloudflare": minor -"@yielded/agent-storage-sqlite": minor -"@yielded/agent-storage-cloudflare": minor -"@yielded/agent": minor ---- - -Import specialized testing utilities and fixtures from their documented subpaths, and use failpoint controls from `/testing` with `TestControl.layer` in place of `Failpoint.layerTest`; keep migration loaders internal. -Import Browser Run adapters from their dedicated Cloudflare subpaths and install `@cloudflare/puppeteer` explicitly when using `/interactive-browser`. diff --git a/.changeset/pre/narrow-saved-context-history.md b/.changeset/pre/narrow-saved-context-history.md deleted file mode 100644 index be65f2b2..00000000 --- a/.changeset/pre/narrow-saved-context-history.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reduce memory retained while recovering or verifying saved conversation context. diff --git a/.changeset/pre/native-agent-workflows.md b/.changeset/pre/native-agent-workflows.md deleted file mode 100644 index 6237975d..00000000 --- a/.changeset/pre/native-agent-workflows.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-platform-node": minor -"@yielded/agent": minor ---- - -Run registered agents inside native Effect Workflow handlers with `AgentWorkflow.execute` and suspend until their typed results are available. **BEHAVIOR CHANGE:** supply `principal` to `WorkflowAgentHost.layer`; custom dispatch stores must return the retained intent from `put`, preserve and atomically attach its completion token, and compare the full intent before removal. diff --git a/.changeset/pre/native-browser-search.md b/.changeset/pre/native-browser-search.md deleted file mode 100644 index f9d6027c..00000000 --- a/.changeset/pre/native-browser-search.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Use `WebSearch.native({ tool })` to run hosted search in the agent's own model call. **BEHAVIOR CHANGE:** Remove the separate `WebSearch.layer` handler and its tool, query, result, failure, and options exports; retain `WebSearch.Source` for citation validation. diff --git a/.changeset/pre/native-browser-tools.md b/.changeset/pre/native-browser-tools.md deleted file mode 100644 index 43082e79..00000000 --- a/.changeset/pre/native-browser-tools.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent": minor -"@yielded/agent-platform-cloudflare": minor ---- - -Add scoped native browser tools with bounded frame and shadow inspection, guarded inputs, tab and dialog controls, and explicit input receipts. Expose the same operations through ordinary tools and Code Mode with host authorization and separate preparation deadlines. diff --git a/.changeset/pre/native-chaos-generation.md b/.changeset/pre/native-chaos-generation.md deleted file mode 100644 index 5f18a232..00000000 --- a/.changeset/pre/native-chaos-generation.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-testing": patch ---- - -Generate seeded chaos plans with Effect native schema arbitraries. Yield `generateChaosPlans` as an Effect and pin the generator version when replaying seeds. diff --git a/.changeset/pre/native-closed-shadow.md b/.changeset/pre/native-closed-shadow.md deleted file mode 100644 index d01b4d00..00000000 --- a/.changeset/pre/native-closed-shadow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Observe and operate closed shadow-root controls and nested frames through the native browser's existing guarded references. diff --git a/.changeset/pre/native-effect-decisions.md b/.changeset/pre/native-effect-decisions.md deleted file mode 100644 index e2178109..00000000 --- a/.changeset/pre/native-effect-decisions.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -"@yielded/agent-ai-decision": minor -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent-platform-node": patch -"@yielded/agent-pr-review": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-testing": patch -"@yielded/agent": patch ---- - -Require Effect rc.116 and replace the local decision and TypeSafe APIs with native `Decision`, `DecisionModel`, and `@effect/ai-typesafe`, retaining `AutoModel` for thread selection. - -BEHAVIOR CHANGE: Import decisions from `effect/ai` and configure TypeSafe with `TypeSafeClient.layerConfig()`; AutoModel requires at least two profiles, writes version 2 selection records, and rejects version 1 records without reselection or mutation. Retain the previous runtime for active version 1 threads or explicitly upgrade their records in your storage adapter; native probability sums must be within `1e-6` of 1. diff --git a/.changeset/pre/native-empty-context-tools.md b/.changeset/pre/native-empty-context-tools.md deleted file mode 100644 index 0ceabe4e..00000000 --- a/.changeset/pre/native-empty-context-tools.md +++ /dev/null @@ -1,4 +0,0 @@ ---- ---- - -Use native empty tool parameters for context status and note reads so provider schema conversion accepts their no-argument calls. diff --git a/.changeset/pre/native-hosted-search.md b/.changeset/pre/native-hosted-search.md deleted file mode 100644 index 81df65a5..00000000 --- a/.changeset/pre/native-hosted-search.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": minor ---- - -Add `WebSearch.native({ tool })` to search inside the agent's own model call, with durable hosted-tool discovery and replay, read-only search restarts, and `webSearchCalls` usage for host pricing. Keep the existing nested `WebSearch.layer` available for separately selected search models. diff --git a/.changeset/pre/native-mcp-client.md b/.changeset/pre/native-mcp-client.md deleted file mode 100644 index 5244e3f8..00000000 --- a/.changeset/pre/native-mcp-client.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-testing": patch ---- - -Remove framework-owned MCP clients, connectors, discovery contracts, and unused discovery fixtures. BEHAVIOR CHANGE: Use `effect/ai/McpClient` with ordinary Toolkit handlers instead of `@yielded/agent/mcp` or `@yielded/agent/mcp-client`. diff --git a/.changeset/pre/native-messaging-subscriptions.md b/.changeset/pre/native-messaging-subscriptions.md deleted file mode 100644 index 9adb037d..00000000 --- a/.changeset/pre/native-messaging-subscriptions.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Use native EventSource and Subscriptions APIs in place of GitHubWorkflowSource and SubscriptionTools. Require Crypto only for messaging tools that prepare a new message. diff --git a/.changeset/pre/native-outstanding-reads.md b/.changeset/pre/native-outstanding-reads.md deleted file mode 100644 index 3efc7e62..00000000 --- a/.changeset/pre/native-outstanding-reads.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent-testing": patch ---- - -Expose bounded outstanding-operation and pending-delivery reads, exact canonical record locators, and native worker/peer admission lookups. Retain uncertain external outcomes after abort and retire worker inputs only after their effects are resolved. diff --git a/.changeset/pre/native-port-tracing.md b/.changeset/pre/native-port-tracing.md deleted file mode 100644 index 5e88b952..00000000 --- a/.changeset/pre/native-port-tracing.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Propagate opt-in native RPC trace context across routed Thread port calls. Preserve the encoded request and existing behavior when tracing is disabled. diff --git a/.changeset/pre/native-postgres-composition.md b/.changeset/pre/native-postgres-composition.md deleted file mode 100644 index 0df2adf4..00000000 --- a/.changeset/pre/native-postgres-composition.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@yielded/agent-storage-postgres": patch -"@yielded/agent-storage-sql": patch ---- - -Compose PostgreSQL storage with an application-provided Effect SQL client and Crypto layer, preserving native connection pooling, codecs, and schema defaults. - -BEHAVIOR CHANGE: Replace the `client` option and `PostgresStorageClient` with `PostgresStorage.layer` (or `layerWith(options)`) and native Layers. Install the service values returned by shared `makeSqlThreadStore` and `makeSqlSubmissionLedger` factories with `Layer.effect` for their corresponding ports; yield `makeSqlQuery(namespace?)` and call shared schema and index creation helpers as functions, optionally supplying a namespace. diff --git a/.changeset/pre/native-provider-history-cache.md b/.changeset/pre/native-provider-history-cache.md deleted file mode 100644 index 57568b37..00000000 --- a/.changeset/pre/native-provider-history-cache.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Preserve reusable history prefixes for xAI Responses and honor native model support for chronological system instructions. Keep Anthropic instructions grouped until a capable upstream adapter is installed. diff --git a/.changeset/pre/native-scheduling-during-delivery.md b/.changeset/pre/native-scheduling-during-delivery.md deleted file mode 100644 index 5100ab6f..00000000 --- a/.changeset/pre/native-scheduling-during-delivery.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Keep ready Thread work running while alarm-owned delivery finishes, preserving independent retry deadlines and one shared event budget. Treat `ThreadHostMaintenance`'s `dispatchClosed` signal as the end of new delivery waves; keep local admission listeners alive until their event Scope closes. diff --git a/.changeset/pre/native-subscription-alarm-services.md b/.changeset/pre/native-subscription-alarm-services.md deleted file mode 100644 index 1b55a3ad..00000000 --- a/.changeset/pre/native-subscription-alarm-services.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Allow ancillary alarm callbacks and payload decoders to use native partition subscription services while capturing host dependencies during assembly. diff --git a/.changeset/pre/native-tool-observability.md b/.changeset/pre/native-tool-observability.md deleted file mode 100644 index 0b45ff0f..00000000 --- a/.changeset/pre/native-tool-observability.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Export privacy-safe canonical Tool spans and bounded terminal logs from the engine, including -model-declared and programmatic broker calls, value-level failures, and delayed terminal event/ -trace commit, while isolating complete span-lifecycle defects through Effect's error reporter. -Build Cloudflare Thread Objects on `effect-cf`'s native `DurableObject.make` boundary so it -owns the cached runtime, event-scoped Layers, native RPC methods, `waitUntil`, and post-RPC OTLP -flush isolation. Upgrade to `effect-cf` 0.25.3 so the same upstream boundary flushes alarm -telemetry. Remove Effect Agent's duplicate telemetry service, flush coordinator, timeout -configuration, and lifecycle fixture matrix. diff --git a/.changeset/pre/native-worker-control.md b/.changeset/pre/native-worker-control.md deleted file mode 100644 index 6e996493..00000000 --- a/.changeset/pre/native-worker-control.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-platform-node": patch -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent-testing": patch ---- - -Add durable worker-wide stop and indexed summaries with exact accepted and applied input identities. Replay retained starts before public input preparation and drain up to 32 accepted worker inputs at each safe steering boundary. diff --git a/.changeset/pre/navigable-pr-review.md b/.changeset/pre/navigable-pr-review.md deleted file mode 100644 index 9ea654b7..00000000 --- a/.changeset/pre/navigable-pr-review.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@yielded/agent-pr-review": patch ---- - -Review large changes with a complete change index, paged diffs, caller search, and explicit unread coverage while retaining higher-priority findings when the report fills. -Check counterevidence before recording findings, and continue unread coverage with native context rollover under the same review budget while preserving specific missing-evidence reasons. - -BEHAVIOR CHANGE: Implement `searchCode` on custom `ReviewRepository` services, and treat `pendingPaths` as including partially read files. diff --git a/.changeset/pre/node-host-administration.md b/.changeset/pre/node-host-administration.md deleted file mode 100644 index edbcc089..00000000 --- a/.changeset/pre/node-host-administration.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-node": patch ---- - -Keep Node host admission and worker lifecycle separate from runtime administration. BEHAVIOR CHANGE: access inspection, retry, wake, work discovery, and recovery methods through the `DurableAgentRuntime` service supplied by the host Layer instead of `NodeDurableHost`. diff --git a/.changeset/pre/node-host-workers.md b/.changeset/pre/node-host-workers.md deleted file mode 100644 index ee1aeee6..00000000 --- a/.changeset/pre/node-host-workers.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-node": minor ---- - -Start a scoped worker pool with `NodeDurableHost.layer(registrations, options)` and supervise it with `NodeDurableHost.run`. Close admission when the pool exits and stop workers before releasing runtime resources. diff --git a/.changeset/pre/normalize-overlapping-cache-writes.md b/.changeset/pre/normalize-overlapping-cache-writes.md deleted file mode 100644 index 4f06443d..00000000 --- a/.changeset/pre/normalize-overlapping-cache-writes.md +++ /dev/null @@ -1,5 +0,0 @@ ---- ---- - -Normalize provider cache-write usage when the provider also includes those tokens in uncached -input. Preserve additive canonical usage totals without rejecting valid model responses. diff --git a/.changeset/pre/observed-browser-actions.md b/.changeset/pre/observed-browser-actions.md deleted file mode 100644 index a44462e6..00000000 --- a/.changeset/pre/observed-browser-actions.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Expose bounded JSON page text and form-control observations, including native option selection, and wait for DOM-ready navigation with a 30-second timeout. Require unique click/fill targets, export `isBrowserRunUndispatchedActionError`, and observe bounded fetch/XHR settlement while preserving uncertainty and cleanup on interruption. diff --git a/.changeset/pre/older-context-matches.md b/.changeset/pre/older-context-matches.md deleted file mode 100644 index 01e907b3..00000000 --- a/.changeset/pre/older-context-matches.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Add bounded older-match pagination with optional `beforeRecordId` to context history search and explain literal queries in the native tool. BEHAVIOR CHANGE: update custom `ContextHistory` adapters to honor the exclusive canonical anchor or explicitly reject anchored requests before adopting the updated tool. diff --git a/.changeset/pre/one-object-journal.md b/.changeset/pre/one-object-journal.md deleted file mode 100644 index 17cb32a5..00000000 --- a/.changeset/pre/one-object-journal.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Reuse one initialized journal for the local Thread store and submission ledger within each Durable Object. diff --git a/.changeset/pre/open-web-capture.md b/.changeset/pre/open-web-capture.md deleted file mode 100644 index e464b2d9..00000000 --- a/.changeset/pre/open-web-capture.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Allow hosts to set `WebCapture`'s `urls` policy to `"*"` for agents that research arbitrary HTTPS pages and subresources. diff --git a/.changeset/pre/operation-owned-tracing.md b/.changeset/pre/operation-owned-tracing.md deleted file mode 100644 index 2d94cbbf..00000000 --- a/.changeset/pre/operation-owned-tracing.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-sql": patch ---- - -Reduce nested runtime and SQL tracing overhead while preserving agent, model, tool, storage and recovery operation spans, attributes and typed failures. - -BEHAVIOR CHANGE: If your trace filters target removed private helper spans, use their enclosing operation instead; selected helpers no longer create spans or Effect call frames. diff --git a/.changeset/pre/optional-checkpoint-metadata.md b/.changeset/pre/optional-checkpoint-metadata.md deleted file mode 100644 index 53828df7..00000000 --- a/.changeset/pre/optional-checkpoint-metadata.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Allow application projection checkpoint callers to omit deprecated compatibility metadata while preserving and validating values in existing checkpoints. - -BEHAVIOR CHANGE: Older binaries cannot read newly written metadata-free checkpoints, including with `verifyOnOpen`. diff --git a/.changeset/pre/optional-input-continuity.md b/.changeset/pre/optional-input-continuity.md deleted file mode 100644 index ad4b86bd..00000000 --- a/.changeset/pre/optional-input-continuity.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Resume retained requests across compatible input changes and widened JSON Schema object declarations using their original payloads and receipts. Keep changed semantics and incompatible operations pending until compatible code is available. diff --git a/.changeset/pre/optional-semantic-memory.md b/.changeset/pre/optional-semantic-memory.md deleted file mode 100644 index 0bae697f..00000000 --- a/.changeset/pre/optional-semantic-memory.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-storage-memory": minor ---- - -Add optional native Effect embedding retrieval with bounded deterministic chunks and authoritative source validation. Provide a disposable exact cosine index with fenced replacement and withdrawal. diff --git a/.changeset/pre/original-provider-tool-schemas.md b/.changeset/pre/original-provider-tool-schemas.md deleted file mode 100644 index 3f2cf675..00000000 --- a/.changeset/pre/original-provider-tool-schemas.md +++ /dev/null @@ -1,4 +0,0 @@ ---- ---- - -Count original Tool schemas with the selected provider transformer so context admission includes the same definitions and annotations sent to the model. diff --git a/.changeset/pre/orthogonal-astra-narrow-context.md b/.changeset/pre/orthogonal-astra-narrow-context.md deleted file mode 100644 index 23653f91..00000000 --- a/.changeset/pre/orthogonal-astra-narrow-context.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reconstruct saved model context with narrow prompt reads while preserving exact history digests and full current-Run and verification checks. BEHAVIOR CHANGE: ordinary recovery no longer validates fields omitted from historical prompt pages. diff --git a/.changeset/pre/owned-progress-budget.md b/.changeset/pre/owned-progress-budget.md deleted file mode 100644 index ba33d4a2..00000000 --- a/.changeset/pre/owned-progress-budget.md +++ /dev/null @@ -1,4 +0,0 @@ ---- ---- - -Bound published Tool progress to 8 MiB of JSON per Run and retain owned snapshots for live events and detached replay. Reject invalid or oversized application progress with `ModelProtocolError`, and allow a smaller cumulative limit through `bufferLimits.maxToolProgressBytes`. diff --git a/.changeset/pre/owned-turn-initialization.md b/.changeset/pre/owned-turn-initialization.md deleted file mode 100644 index e88e2626..00000000 --- a/.changeset/pre/owned-turn-initialization.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-storage-sql": patch ---- - -Reuse verified state held by the current owner when starting durable Cloudflare turns. Retain canonical validation and recovery when the view is absent or no longer matches. diff --git a/.changeset/pre/page-archive-verification-reads.md b/.changeset/pre/page-archive-verification-reads.md deleted file mode 100644 index b03cb5a2..00000000 --- a/.changeset/pre/page-archive-verification-reads.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-storage-sql": patch ---- - -Read archived records in bounded pages during verification to reduce database queries. diff --git a/.changeset/pre/park-unavailable-bindings.md b/.changeset/pre/park-unavailable-bindings.md deleted file mode 100644 index e94bedf8..00000000 --- a/.changeset/pre/park-unavailable-bindings.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Park unavailable or ambiguous agent bindings without repeated alarm retries or error reports. Reconsider retained submissions on the next invocation after the registered identities or definition digests change. - -Allow explicit current binding selection from the canonical submission for shared stable agent identities, preserving existing admission digests and receipts during execution and recovery. Exact-definition admission remains unambiguous. diff --git a/.changeset/pre/persist-shared-search-values.md b/.changeset/pre/persist-shared-search-values.md deleted file mode 100644 index 119dfd83..00000000 --- a/.changeset/pre/persist-shared-search-values.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Persist native provider web-search responses without rejecting valid JSON, while retaining cycle rejection and existing persistence limits. diff --git a/.changeset/pre/persisted-prompt-checkpoint.md b/.changeset/pre/persisted-prompt-checkpoint.md deleted file mode 100644 index 90a46346..00000000 --- a/.changeset/pre/persisted-prompt-checkpoint.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-storage-sql": patch ---- - -Reuse verified prompt history across consecutive durable Runs and seed it from a persisted Cloudflare checkpoint after eviction. Amortize checkpoint refreshes while rebuilding from canonical history whenever the cached prefix or suffix cannot be verified. diff --git a/.changeset/pre/persistent-conversations.md b/.changeset/pre/persistent-conversations.md deleted file mode 100644 index fc4fee7e..00000000 --- a/.changeset/pre/persistent-conversations.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@yielded/agent-storage-memory": minor -"@yielded/agent-storage-sqlite": minor -"@yielded/agent-storage-cloudflare": minor -"@yielded/agent-testing": minor -"@yielded/agent": minor ---- - -Provide canonical thread history to `AgentRuntime.run`, `start`, and `stream` through `PersistentHistory.layer` without admitting durable work. Make checkpoint storage an optional `ThreadStore.checkpoints` capability. - -BEHAVIOR CHANGE: Provide `ThreadHistory.layer` for in-memory conversations or `PersistentHistory.layer` with a ThreadStore for atomic successful-Run retention. Use `store.checkpoints.save` and `store.checkpoints.load` after checking capability availability. `UserInputRecorded.submissionId` is present only for durably accepted input. diff --git a/.changeset/pre/pi-quiescent-observer.md b/.changeset/pre/pi-quiescent-observer.md deleted file mode 100644 index c11f55c0..00000000 --- a/.changeset/pre/pi-quiescent-observer.md +++ /dev/null @@ -1,4 +0,0 @@ ---- ---- - -Stop the pi benchmark's text observer before intentional quiescent shutdown while continuing to reject premature observation failures. diff --git a/.changeset/pre/pin-internal-dependency-versions.md b/.changeset/pre/pin-internal-dependency-versions.md deleted file mode 100644 index 7b41e177..00000000 --- a/.changeset/pre/pin-internal-dependency-versions.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-platform-node": patch -"@yielded/agent-testing": patch -"@yielded/agent": patch ---- - -Republish with correctly pinned internal dependencies. The 0.0.1-beta.0 -artifacts depended on internal `@effect-agent/*` versions that were never -published (`workspace:*` ranges were resolved from a stale lockfile at -publish time); the release script now pins internal ranges to the exact -workspace versions itself. diff --git a/.changeset/pre/pinned-review-source.md b/.changeset/pre/pinned-review-source.md deleted file mode 100644 index 71bc14e6..00000000 --- a/.changeset/pre/pinned-review-source.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-pr-review": patch ---- - -Expose host-authorized dependency source scopes at exact commits through the review source tools. Keep unavailable transitive internals from blocking reviews unless they prevent assessment of a specific material contract. diff --git a/.changeset/pre/plain-text-durable-pruning.md b/.changeset/pre/plain-text-durable-pruning.md deleted file mode 100644 index eebfae9f..00000000 --- a/.changeset/pre/plain-text-durable-pruning.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Support schema-validated plain-text final replies with `Output.text(schema)`. Honor prompt targets when pruning older tool results and durably replay pruning of fully settled current-run batches while preserving the newest result and incomplete work. diff --git a/.changeset/pre/polite-dogs-listen.md b/.changeset/pre/polite-dogs-listen.md deleted file mode 100644 index 673a438f..00000000 --- a/.changeset/pre/polite-dogs-listen.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-pr-review": patch ---- - -Allow reviewers to correct unknown or duplicate resolution IDs before finishing, within the original review budget. diff --git a/.changeset/pre/postgres-storage-adapter.md b/.changeset/pre/postgres-storage-adapter.md deleted file mode 100644 index 8f77f6ad..00000000 --- a/.changeset/pre/postgres-storage-adapter.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-storage-postgres": patch ---- - -Add Postgres storage for durable thread history, submissions, schedules, subscriptions, messages, and activity progress. diff --git a/.changeset/pre/precise-effect-imports.md b/.changeset/pre/precise-effect-imports.md deleted file mode 100644 index 0b805148..00000000 --- a/.changeset/pre/precise-effect-imports.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-storage-sql": patch ---- - -Import Effect modules by subpath so bundlers can drop unused Effect code. diff --git a/.changeset/pre/precise-frame-failures.md b/.changeset/pre/precise-frame-failures.md deleted file mode 100644 index 852e96ce..00000000 --- a/.changeset/pre/precise-frame-failures.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Preserve the failed frame operation and safe SDK error name in private browser diagnostics without exposing provider messages. Mark settled frame lookup and attachment rejections as not dispatched; keep requested-command failures uncertain. diff --git a/.changeset/pre/preserve-first-pass-findings.md b/.changeset/pre/preserve-first-pass-findings.md deleted file mode 100644 index de78ffd8..00000000 --- a/.changeset/pre/preserve-first-pass-findings.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-pr-review": patch ---- - -Preserve distinct findings with matching labels and remove premature wrap-up prompts from single-pass reviews. Publish maximum-length findings without repeating their text in inline agent prompts. diff --git a/.changeset/pre/preserve-required-delivery.md b/.changeset/pre/preserve-required-delivery.md deleted file mode 100644 index 48182223..00000000 --- a/.changeset/pre/preserve-required-delivery.md +++ /dev/null @@ -1,4 +0,0 @@ ---- ---- - -Preserve single-turn provider-hosted lookups for agents without required completion. Require the completion handler after provider-only responses exhaust the token budget. diff --git a/.changeset/pre/preserve-resumed-model-response.md b/.changeset/pre/preserve-resumed-model-response.md deleted file mode 100644 index 7d1a3384..00000000 --- a/.changeset/pre/preserve-resumed-model-response.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Preserve the canonical assistant response when resuming a durable Tool batch so provider metadata and assistant content survive recovery and subsequent context rollover. diff --git a/.changeset/pre/preserve-review-research.md b/.changeset/pre/preserve-review-research.md deleted file mode 100644 index ea9b966f..00000000 --- a/.changeset/pre/preserve-review-research.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-pr-review": patch ---- - -Let host spending admission replace the reviewer's cumulative token quota and retain usage diagnostics when an accounted attempt fails before recording findings. Preserve tool definitions when selecting a required completion tool. diff --git a/.changeset/pre/preserve-schema-requirements.md b/.changeset/pre/preserve-schema-requirements.md deleted file mode 100644 index 1d2207a1..00000000 --- a/.changeset/pre/preserve-schema-requirements.md +++ /dev/null @@ -1,4 +0,0 @@ ---- ---- - -Preserve tool parameter encoder requirements in agent composition and validate policy bounds through Schema. Reduce UTF-8 sizing allocations and repeated response and prompt traversal. diff --git a/.changeset/pre/preserve-supported-storage.md b/.changeset/pre/preserve-supported-storage.md deleted file mode 100644 index f5f24318..00000000 --- a/.changeset/pre/preserve-supported-storage.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-memory": patch -"@yielded/agent": patch ---- - -Upgrade supported beta49/beta50 persistent stores in place while preserving pending work, canonical history, receipts, and alarm state. Preserve unknown historical occurrence times when replaying retained events. diff --git a/.changeset/pre/preserve-testing-failures.md b/.changeset/pre/preserve-testing-failures.md deleted file mode 100644 index 43f69644..00000000 --- a/.changeset/pre/preserve-testing-failures.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-testing": patch ---- - -Reject hostile program outputs through typed errors and detach accepted JSON results and diagnostics from program-owned objects. Preserve defects and interruption when Chaos tolerates injected typed failures. diff --git a/.changeset/pre/press-durable-overhead.md b/.changeset/pre/press-durable-overhead.md deleted file mode 100644 index 98a61e1c..00000000 --- a/.changeset/pre/press-durable-overhead.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-sql": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Reduce per-turn durable storage and journal overhead while preserving captured values and recovery behavior. diff --git a/.changeset/pre/press-host-overhead.md b/.changeset/pre/press-host-overhead.md deleted file mode 100644 index 3b875819..00000000 --- a/.changeset/pre/press-host-overhead.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Reduce per-turn Cloudflare maintenance and wakeup overhead while preserving admission limits and recovery alarms. diff --git a/.changeset/pre/press-model-overhead.md b/.changeset/pre/press-model-overhead.md deleted file mode 100644 index 6a4131ca..00000000 --- a/.changeset/pre/press-model-overhead.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reduce per-turn engine and encoding overhead while preserving tool validation and cleanup. diff --git a/.changeset/pre/private-browser-entry.md b/.changeset/pre/private-browser-entry.md deleted file mode 100644 index bc2ead72..00000000 --- a/.changeset/pre/private-browser-entry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Prepare credential fills bound to an exact browser document and form for private user entry across attachments. Reject changed targets and prevent credential material from being JSON encoded. diff --git a/.changeset/pre/progressive-tool-discovery.md b/.changeset/pre/progressive-tool-discovery.md deleted file mode 100644 index de86d9f8..00000000 --- a/.changeset/pre/progressive-tool-discovery.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": minor ---- - -Add opt-in run-scoped tool exposure and `ToolDiscovery.make` with bounded namespace search and durable selection recovery. Add selective Code Mode documentation; set `includeDeclarations: false` when host visibility or subagent grants hide any allowlisted method. diff --git a/.changeset/pre/prompt-cloudflare-message-delivery.md b/.changeset/pre/prompt-cloudflare-message-delivery.md deleted file mode 100644 index d5174195..00000000 --- a/.changeset/pre/prompt-cloudflare-message-delivery.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Wake outgoing delivery immediately when messages are inserted during an active Cloudflare Run. Preserve bounded delivery, durable recovery, and periodic scans when wake notifications are lost. diff --git a/.changeset/pre/prompt-input-handoff.md b/.changeset/pre/prompt-input-handoff.md deleted file mode 100644 index b23c10c4..00000000 --- a/.changeset/pre/prompt-input-handoff.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-cloudflare": patch ---- - -Allow hosts to hand off at completed Turn boundaries to the next independent input while retaining each Run's authority, receipts and obligations. Install matching runtime and storage packages before enabling `SubmissionScheduling.yieldTo`. diff --git a/.changeset/pre/prompt-native-admission.md b/.changeset/pre/prompt-native-admission.md deleted file mode 100644 index c33ec866..00000000 --- a/.changeset/pre/prompt-native-admission.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Yield post-native maintenance when newly enrolled concurrent work becomes due, so saved input can be admitted promptly. Retain unfinished delivery obligations and their exact receipts for the next alarm. diff --git a/.changeset/pre/protect-prepared-context.md b/.changeset/pre/protect-prepared-context.md deleted file mode 100644 index 10ee5ecd..00000000 --- a/.changeset/pre/protect-prepared-context.md +++ /dev/null @@ -1,6 +0,0 @@ ---- ---- - -Enforce prepared-context limits and preserve protected history while reusing per-turn context estimates. Bound default summarizer requests to 80,000 characters and reject summaries above 65,536 characters. - -BEHAVIOR CHANGE: Custom compaction strategies must emit summaries of at most 65,536 characters. Preparation hooks must preserve covered prefixes after compaction and retain a mappable instruction/input block for nondurable compaction. diff --git a/.changeset/pre/protected-browser-busy-authority.md b/.changeset/pre/protected-browser-busy-authority.md deleted file mode 100644 index c4bb7ac4..00000000 --- a/.changeset/pre/protected-browser-busy-authority.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Allow credential access hooks to report recoverable `busy` while preserving known protected browser dispatch evidence and the same usable session. -Complete protected controller Return independently of observation authority, requiring a fresh authorized observation before subsequent operations. diff --git a/.changeset/pre/protected-browser-contact-email.md b/.changeset/pre/protected-browser-contact-email.md deleted file mode 100644 index 3083efa7..00000000 --- a/.changeset/pre/protected-browser-contact-email.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Allow ordinary protected browser filling for checkout and contact email fields. BEHAVIOR CHANGE: Treat email-only login forms marked solely `autocomplete="email"` as ordinary text without saved-login offers; retain offers for explicit `autocomplete="username"` and preserve password-form and card protections. diff --git a/.changeset/pre/protected-browser-credentials.md b/.changeset/pre/protected-browser-credentials.md deleted file mode 100644 index 36f2190b..00000000 --- a/.changeset/pre/protected-browser-credentials.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": minor -"@yielded/agent": minor ---- - -Add private login and card autofill with host-owned credential grants, opaque browser references, and explicit post-use recipient trust. Allow Agent Registrations to supply fresh scoped services for each durable Attempt. diff --git a/.changeset/pre/protected-browser-human-handoff.md b/.changeset/pre/protected-browser-human-handoff.md deleted file mode 100644 index 0b0be28d..00000000 --- a/.changeset/pre/protected-browser-human-handoff.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent": minor -"@yielded/agent-platform-cloudflare": minor ---- - -Add host-owned protected browser suspension, exact-page resume, and authorized human takeover while preserving credential exposure and browser budgets. Require fresh observation after Return and keep transferred sessions independent of the previous Attempt’s scope. diff --git a/.changeset/pre/protected-browser-ordinary-controls.md b/.changeset/pre/protected-browser-ordinary-controls.md deleted file mode 100644 index 65284ddf..00000000 --- a/.changeset/pre/protected-browser-ordinary-controls.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Add protected non-secret form filling, native choice state, billing-address metadata, and explicit host authorization for checkout submission and observation origins. Allow finite interactive browser passes up to one hour while preserving credential gates and private session cleanup. diff --git a/.changeset/pre/protected-browser-return-origin.md b/.changeset/pre/protected-browser-return-origin.md deleted file mode 100644 index 59f7e8c1..00000000 --- a/.changeset/pre/protected-browser-return-origin.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Expose the provider-verified current origin after protected human handoff completes, without resuming agent tools or reading page content. diff --git a/.changeset/pre/protected-browser-select-labels.md b/.changeset/pre/protected-browser-select-labels.md deleted file mode 100644 index fa2d62ca..00000000 --- a/.changeset/pre/protected-browser-select-labels.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Expose visible choices and selection state for ordinary protected selects, and preserve prior dispatch evidence after acknowledged no-write refusals. - -BEHAVIOR CHANGE: Fill ordinary selects with the exact observed option label; raw option values are no longer a fallback, while credential selects continue to use private values. diff --git a/.changeset/pre/protected-browser-workflow-pauses.md b/.changeset/pre/protected-browser-workflow-pauses.md deleted file mode 100644 index 2829cb9c..00000000 --- a/.changeset/pre/protected-browser-workflow-pauses.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Allow protected browser hosts to resume committed workflow pauses without a human handoff while preserving fresh observation, credential grants, and cumulative session limits. diff --git a/.changeset/pre/provider-call-accounting.md b/.changeset/pre/provider-call-accounting.md deleted file mode 100644 index 640b4f38..00000000 --- a/.changeset/pre/provider-call-accounting.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Expose actual provider response identity and finish metadata to cost estimators, and retain per-call accounting completeness alongside canonical usage. Preserve reported failed-call usage in settlements and distinguish unobserved calls from zero-cost work. diff --git a/.changeset/pre/pure-session-boundaries.md b/.changeset/pre/pure-session-boundaries.md deleted file mode 100644 index a9bfa63f..00000000 --- a/.changeset/pre/pure-session-boundaries.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Keep the production thread entrypoint free of certification, conformance, and Effect test-runtime code. Import adapter harnesses from `@effect-agent/thread/testing`. diff --git a/.changeset/pre/quick-browser-fill.md b/.changeset/pre/quick-browser-fill.md deleted file mode 100644 index d837b51f..00000000 --- a/.changeset/pre/quick-browser-fill.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Reduce text-fill latency, respect page scroll locks, and offer bounded settling and condition waits with native browser input. -Offer viewport and Jev observations, disambiguate duplicate control names, and re-authorize reads after navigation races without replaying input. diff --git a/.changeset/pre/quick-canonical-commits.md b/.changeset/pre/quick-canonical-commits.md deleted file mode 100644 index bb902085..00000000 --- a/.changeset/pre/quick-canonical-commits.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-sql": patch -"@yielded/agent-storage-cloudflare": patch ---- - -Reduce commit overhead for model responses and readonly tool results on Cloudflare while preserving durable replay, recovery, and existing stores. diff --git a/.changeset/pre/quick-memory-pages.md b/.changeset/pre/quick-memory-pages.md deleted file mode 100644 index c7b12917..00000000 --- a/.changeset/pre/quick-memory-pages.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-storage-memory": patch ---- - -Read in-memory Thread pages without scanning or copying the rest of the history. diff --git a/.changeset/pre/quick-primitive-responses.md b/.changeset/pre/quick-primitive-responses.md deleted file mode 100644 index fc175d28..00000000 --- a/.changeset/pre/quick-primitive-responses.md +++ /dev/null @@ -1,4 +0,0 @@ ---- ---- - -Reduce processing and tracing overhead for fragmented text and reasoning responses while preserving ownership and response limits. Preserve stable output-contract messages so opt-in incremental provider requests can reuse an unchanged prompt prefix. diff --git a/.changeset/pre/quick-retained-sql-history.md b/.changeset/pre/quick-retained-sql-history.md deleted file mode 100644 index 53675763..00000000 --- a/.changeset/pre/quick-retained-sql-history.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-storage-sql": patch ---- - -Reduce fresh durable Run latency on retained SQL histories while preserving all messages and validation. diff --git a/.changeset/pre/quick-thread-dispatch.md b/.changeset/pre/quick-thread-dispatch.md deleted file mode 100644 index 9c9e171d..00000000 --- a/.changeset/pre/quick-thread-dispatch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Enable post-response alarm dispatch by default for Thread Objects to start due work sooner. BEHAVIOR CHANGE: receipt delivery on cold Objects may take longer; provide `DurableObjectAlarm.ScheduleConfiguration` with `{ dispatchAfterEvent: false }` to opt out. diff --git a/.changeset/pre/quick-worker-admission.md b/.changeset/pre/quick-worker-admission.md deleted file mode 100644 index 52f41472..00000000 --- a/.changeset/pre/quick-worker-admission.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Admit background workers through one destination RPC and read child completion receipts concurrently only when capacity could block admission. - -BEHAVIOR CHANGE: Upgrade the framework and Cloudflare packages together; custom routed hosts must install `routedWorkerAdmissionLayer` and provide `WakeScheduler` and `DurableRuntimeFailpoint` to owner-side port handlers under their maintenance gate. Existing records and retry receipts require no reset. diff --git a/.changeset/pre/quiescent-conversation-maintenance.md b/.changeset/pre/quiescent-conversation-maintenance.md deleted file mode 100644 index ee9097c3..00000000 --- a/.changeset/pre/quiescent-conversation-maintenance.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent": patch ---- - -Make Cloudflare Thread maintenance durably incremental and quiescent (#93). Stable -externally-driven waits now clear their alarm after acknowledging the observed maintenance -generation, while pre-armed public and routed mutations, restart recovery, and bounded autonomous -rearming preserve liveness. A caught-up forced alarm takes an O(1) maintenance-record path without -recovery, ledger scans, or canonical-history reads. Child settlements also commit the parent's -durable wake before child ledger finalization, preventing eviction from losing a quiescent join. diff --git a/.changeset/pre/quiet-admission-retry.md b/.changeset/pre/quiet-admission-retry.md deleted file mode 100644 index 193f5646..00000000 --- a/.changeset/pre/quiet-admission-retry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Keep newly ready admissions eligible when maintenance overlaps their mutation, without inheriting another thread's recovery retry deadline. diff --git a/.changeset/pre/quiet-agent-boundary.md b/.changeset/pre/quiet-agent-boundary.md deleted file mode 100644 index 35e13412..00000000 --- a/.changeset/pre/quiet-agent-boundary.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": minor ---- - -Keep recovery, delegation, and accounting inputs inside the interpreter and expose application-only Run options. Remove interpreter-only output helpers and the unused terminal-defect wrapper, and drop the unused provider type parameter from binding and delegation signatures. diff --git a/.changeset/pre/quiet-browser-policy.md b/.changeset/pre/quiet-browser-policy.md deleted file mode 100644 index 6b081ec7..00000000 --- a/.changeset/pre/quiet-browser-policy.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Preserve host-confirmed, pre-dispatch browser policy refusals as `BrowserUsePolicyError` through BrowserUse and Code Mode. Let failure observers distinguish these refusals by tag without receiving page or provider content. diff --git a/.changeset/pre/quiet-browser-target.md b/.changeset/pre/quiet-browser-target.md deleted file mode 100644 index 4d910a41..00000000 --- a/.changeset/pre/quiet-browser-target.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Reduce Browser Run action latency by resolving a unique CSS target without collecting every matching element handle. Preserve isolated selector lookup, stale-target guards, and cancellation cleanup. diff --git a/.changeset/pre/quiet-browsers-explain.md b/.changeset/pre/quiet-browsers-explain.md deleted file mode 100644 index 0046cc4f..00000000 --- a/.changeset/pre/quiet-browsers-explain.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Retain Browser Run response status, request identifiers, and body truncation metadata in host-only failure causes. diff --git a/.changeset/pre/quiet-browsers-read.md b/.changeset/pre/quiet-browsers-read.md deleted file mode 100644 index 3a55ab33..00000000 --- a/.changeset/pre/quiet-browsers-read.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Compose WebCapture tool handlers and a Worker browser binding with `CloudflareBrowser.layer(ReadPage, { browser: env.BROWSER })`. Pass an explicit `workersAi` authorization and accounting policy to enable structured extraction. diff --git a/.changeset/pre/quiet-browsers-reconnect.md b/.changeset/pre/quiet-browsers-reconnect.md deleted file mode 100644 index 3bb509ea..00000000 --- a/.changeset/pre/quiet-browsers-reconnect.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Reconnect retained browser pages after navigation leaves cached cross-origin frames. Preserve the host-owned browser when attachment acquisition fails, and include the browser client as a runtime dependency. diff --git a/.changeset/pre/quiet-browsers-wait.md b/.changeset/pre/quiet-browsers-wait.md deleted file mode 100644 index e3b458de..00000000 --- a/.changeset/pre/quiet-browsers-wait.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Allow retained browser attachments up to ten seconds to acknowledge disconnection, preserving completed commands when the close handshake takes longer than one second. Continue fencing dispatch immediately and fail cleanup when closure remains unconfirmed. diff --git a/.changeset/pre/quiet-browsers-watch.md b/.changeset/pre/quiet-browsers-watch.md deleted file mode 100644 index 99bc9bde..00000000 --- a/.changeset/pre/quiet-browsers-watch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Add `BrowserSession.getReadOnlyLiveView` for provider-enforced read-only viewing of the retained page. Reject URLs unless Cloudflare confirms the requested read-only guardrail and exact target. diff --git a/.changeset/pre/quiet-cloudflare-due-queue.md b/.changeset/pre/quiet-cloudflare-due-queue.md deleted file mode 100644 index 5520fa01..00000000 --- a/.changeset/pre/quiet-cloudflare-due-queue.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Schedule Cloudflare maintenance through one durable due queue and alarm, running only explicitly enrolled host lanes without wake-scan polling. - -BEHAVIOR CHANGE: Give each `ThreadHostMaintenance` lane a stable, unique `id` and return `Option` (next epoch-millisecond deadline, or `None` when idle) from `run`; remove its `pendingDeadline` callback. Enroll only affected IDs through `ThreadMutationGate.withMutation(body, { invalidatesRecovery: false, lanes: [id] })`, or call `schedule(id, dueAt)` within the local source transaction. For remote sources, retain a scheduling notice atomically with the work and retry its delivery to `schedule` until acknowledged, preserving the source retry identity; prearming or a wake hint alone cannot recover a remote commit after Object eviction. Seed existing host obligations before serving traffic: registered host lanes no longer get an initial wave. Keep native admission/control mutations on the default recovery invalidation. Return the same deadline result from `ThreadPublication.drain` and `ThreadMessageDelivery.prepare().run`, removing their `pendingDeadline` callbacks, and remove `wakeScanInterval`. Retain existing authorization, delivery identities, outboxes and receipts; no data reset is required. diff --git a/.changeset/pre/quiet-codecs-share.md b/.changeset/pre/quiet-codecs-share.md deleted file mode 100644 index a61fcafa..00000000 --- a/.changeset/pre/quiet-codecs-share.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-storage-sql": patch ---- - -Reuse owner-independent storage codecs across store instances while preserving persisted validation. diff --git a/.changeset/pre/quiet-declared-failures.md b/.changeset/pre/quiet-declared-failures.md deleted file mode 100644 index c607a6fc..00000000 --- a/.changeset/pre/quiet-declared-failures.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Honor Effect error-reporting ignore annotations on declared tool failures in direct and programmatic observers while preserving tool outcomes and subsequent handler faults. diff --git a/.changeset/pre/quiet-engine-checks.md b/.changeset/pre/quiet-engine-checks.md deleted file mode 100644 index 9df7e9f9..00000000 --- a/.changeset/pre/quiet-engine-checks.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reduce repeated execution checks and service setup while preserving Run ownership and live capacity validation. diff --git a/.changeset/pre/quiet-host-maintenance.md b/.changeset/pre/quiet-host-maintenance.md deleted file mode 100644 index 1642f16b..00000000 --- a/.changeset/pre/quiet-host-maintenance.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Keep healthy admission, delivery, and native execution running when an independent maintenance lane fails. Join bounded auxiliary waves before reporting their failure and retaining recovery. diff --git a/.changeset/pre/quiet-host-obligations.md b/.changeset/pre/quiet-host-obligations.md deleted file mode 100644 index dd168094..00000000 --- a/.changeset/pre/quiet-host-obligations.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Enroll host maintenance lanes around native admissions, settlement finalization, and worker stops with `hostLanesForMutation`. Add `phase: "after-native"` for one independently checkpointed host wave after native attempt cleanup, including failed attempts. diff --git a/.changeset/pre/quiet-hosted-completion.md b/.changeset/pre/quiet-hosted-completion.md deleted file mode 100644 index 3d84ca97..00000000 --- a/.changeset/pre/quiet-hosted-completion.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Allow completion alongside terminal provider tool results during execution and recovery. Preserve hosted results when correcting mixed application completion calls, and keep provider work charged to run budgets. diff --git a/.changeset/pre/quiet-initial-progress.md b/.changeset/pre/quiet-initial-progress.md deleted file mode 100644 index eff896c1..00000000 --- a/.changeset/pre/quiet-initial-progress.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Allow progress subscriptions at sequence zero to wait for the first submission without creating a Thread. diff --git a/.changeset/pre/quiet-inline-thread-wakes.md b/.changeset/pre/quiet-inline-thread-wakes.md deleted file mode 100644 index 3cdc84ce..00000000 --- a/.changeset/pre/quiet-inline-thread-wakes.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Coalesce immediate Cloudflare alarm wakes while processing Threads inline and promptly schedule remaining work when processing exits. diff --git a/.changeset/pre/quiet-local-submission.md b/.changeset/pre/quiet-local-submission.md deleted file mode 100644 index e4a66777..00000000 --- a/.changeset/pre/quiet-local-submission.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Reject foreign submission identities and misplaced stored rows in local-only Thread Object lookups while preserving colocated threads and local absence. diff --git a/.changeset/pre/quiet-model-parameter-rejections.md b/.changeset/pre/quiet-model-parameter-rejections.md deleted file mode 100644 index 1662b492..00000000 --- a/.changeset/pre/quiet-model-parameter-rejections.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Exclude native model-call parameter rejections from the tool failure observer while retaining failed tool results and warning telemetry. Continue reporting failures returned by started handlers. diff --git a/.changeset/pre/quiet-model-threads.md b/.changeset/pre/quiet-model-threads.md deleted file mode 100644 index 22650d61..00000000 --- a/.changeset/pre/quiet-model-threads.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-ai-decision": minor -"@yielded/agent": minor ---- - -Provide AutoModel as a native Effect model Layer to select through DecisionModel automatically on each parent or subagent thread's first turn. Retain selections across follow-ups through a shared SelectionStore, with an in-memory Layer and schema-backed records for host-owned persistence. diff --git a/.changeset/pre/quiet-native-recovery.md b/.changeset/pre/quiet-native-recovery.md deleted file mode 100644 index b1433ce2..00000000 --- a/.changeset/pre/quiet-native-recovery.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Stop repeated empty native-maintenance scans after an overlapping admission completes while an unrelated host lane remains active. diff --git a/.changeset/pre/quiet-operation-tracing.md b/.changeset/pre/quiet-operation-tracing.md deleted file mode 100644 index 392a3eb7..00000000 --- a/.changeset/pre/quiet-operation-tracing.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-ai-decision": patch -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent-platform-node": patch -"@yielded/agent-pr-review": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-postgres": patch -"@yielded/agent-storage-sql": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-testing": patch ---- - -Reduce tracing overhead by keeping operation spans and removing private helper spans and stack frames. BEHAVIOR CHANGE: Update filters that use private helper span names to use the enclosing agent, model, tool, storage, or recovery operation. diff --git a/.changeset/pre/quiet-owls-retain.md b/.changeset/pre/quiet-owls-retain.md deleted file mode 100644 index 94d925dc..00000000 --- a/.changeset/pre/quiet-owls-retain.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Retain attempt resources before durable approval suspension with `DurableApprovalSuspension`. Resume approvals that arrive during retention with fresh attempt services and the same pending tool batch. diff --git a/.changeset/pre/quiet-progress-wake.md b/.changeset/pre/quiet-progress-wake.md deleted file mode 100644 index e5fad4e0..00000000 --- a/.changeset/pre/quiet-progress-wake.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Wake progress observers when a durable update is accepted, including updates omitted from parent reports. diff --git a/.changeset/pre/quiet-receipt-reads.md b/.changeset/pre/quiet-receipt-reads.md deleted file mode 100644 index fe028ee6..00000000 --- a/.changeset/pre/quiet-receipt-reads.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Read finalized settlements without hydrating recovery state. Add `awaitSettlementRecord` to the durable runtime and Cloudflare client to retrieve a receipt's canonical outcome and encoded result without transferring its Thread history. diff --git a/.changeset/pre/quiet-record-decoding.md b/.changeset/pre/quiet-record-decoding.md deleted file mode 100644 index c1afd6f6..00000000 --- a/.changeset/pre/quiet-record-decoding.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-storage-sql": patch ---- - -Reduce redundant record decoding and encoding in storage reads, SQL maintenance, and thread export while preserving complete wire values and schema validation. diff --git a/.changeset/pre/quiet-recovery-notices.md b/.changeset/pre/quiet-recovery-notices.md deleted file mode 100644 index 59605570..00000000 --- a/.changeset/pre/quiet-recovery-notices.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Notify recovery-status observers when a fault is created, updated or cleared, including while unrelated maintenance remains active. diff --git a/.changeset/pre/quiet-recovery-rows.md b/.changeset/pre/quiet-recovery-rows.md deleted file mode 100644 index 6cd59894..00000000 --- a/.changeset/pre/quiet-recovery-rows.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-storage-cloudflare": patch ---- - -Reuse validated ledger rows during admission and recovery, and simplify sequential recovery preparation. diff --git a/.changeset/pre/quiet-recovery-window.md b/.changeset/pre/quiet-recovery-window.md deleted file mode 100644 index af74d5a5..00000000 --- a/.changeset/pre/quiet-recovery-window.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": minor ---- - -Configure a recovery window to reuse alarms across nearby requests while keeping alarm-driven work prompt. - -BEHAVIOR CHANGE: Without a client, recovery can now take up to the configured window (60 seconds by default). Lower `recoveryWindowMillis` for faster recovery at the cost of an alarm write before the first model request; `0` restores the previous recovery deadlines. diff --git a/.changeset/pre/quiet-retained-prompts.md b/.changeset/pre/quiet-retained-prompts.md deleted file mode 100644 index 52de6d89..00000000 --- a/.changeset/pre/quiet-retained-prompts.md +++ /dev/null @@ -1,4 +0,0 @@ ---- ---- - -Default derived run-status messages to off so transient counters do not replace retained conversation cache boundaries. BEHAVIOR CHANGE: opt into `runStatus: "appended"` when model-visible counters are required; runtime limits and budget events remain enforced. diff --git a/.changeset/pre/quiet-run-start.md b/.changeset/pre/quiet-run-start.md deleted file mode 100644 index e7771d87..00000000 --- a/.changeset/pre/quiet-run-start.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Remove duplicate Run and model-start debug logs and their temporary log spans. Use lifecycle events, metrics, or tracing to observe execution starts. diff --git a/.changeset/pre/quiet-runs-own-scope.md b/.changeset/pre/quiet-runs-own-scope.md deleted file mode 100644 index acf63ad9..00000000 --- a/.changeset/pre/quiet-runs-own-scope.md +++ /dev/null @@ -1,4 +0,0 @@ ---- ---- - -Run self-contained Agents without an extra caller Scope. Preserve caller-supplied scoped requirements and application Layer lifetimes. diff --git a/.changeset/pre/quiet-runs-settle.md b/.changeset/pre/quiet-runs-settle.md deleted file mode 100644 index f4c72455..00000000 --- a/.changeset/pre/quiet-runs-settle.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reduce per-turn overhead when recording durable Run progress. diff --git a/.changeset/pre/quiet-runtime-sqlite.md b/.changeset/pre/quiet-runtime-sqlite.md deleted file mode 100644 index 7541d198..00000000 --- a/.changeset/pre/quiet-runtime-sqlite.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-sql": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Reduce Durable Object SQLite work with shared write-through reads and asynchronous lifecycle batches after native execution, preserving durable receipts across eviction. Use the SQL Memory Layer's `SqlMemoryBatchWriter.changeMany` to commit up to 128 ordered commands atomically and combine their writes. diff --git a/.changeset/pre/quiet-settlement-waits.md b/.changeset/pre/quiet-settlement-waits.md deleted file mode 100644 index 6352c424..00000000 --- a/.changeset/pre/quiet-settlement-waits.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-platform-node": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Avoid rereading unfinished submissions on canonical progress by separating progress and settlement wake hints. Preserve broad wake behavior for existing schedulers and external notifications. diff --git a/.changeset/pre/quiet-snapshot-validation.md b/.changeset/pre/quiet-snapshot-validation.md deleted file mode 100644 index 512ea565..00000000 --- a/.changeset/pre/quiet-snapshot-validation.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-storage-sql": patch -"@yielded/agent-storage-cloudflare": patch ---- - -Validate captured record fragments and submission snapshots once during storage operations while retaining their complete schema checks. diff --git a/.changeset/pre/quiet-start-admission.md b/.changeset/pre/quiet-start-admission.md deleted file mode 100644 index 27ad770c..00000000 --- a/.changeset/pre/quiet-start-admission.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Expose the current start admission to worker authorization, policy and budget hooks during preparation and synchronous delivery. Keep retries and changed source tails subject to fresh authorization. diff --git a/.changeset/pre/quiet-storage-continuations.md b/.changeset/pre/quiet-storage-continuations.md deleted file mode 100644 index 799c5498..00000000 --- a/.changeset/pre/quiet-storage-continuations.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-sql": patch -"@yielded/agent-storage-cloudflare": patch ---- - -Reduce storage transaction and record preparation overhead while preserving validation, rollback and canonical data. diff --git a/.changeset/pre/quiet-stream-parts.md b/.changeset/pre/quiet-stream-parts.md deleted file mode 100644 index 42bfbe05..00000000 --- a/.changeset/pre/quiet-stream-parts.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reduce per-part streaming overhead while preserving model validation, owned response data, and ordered text delivery. diff --git a/.changeset/pre/quiet-stream-tool-bounds.md b/.changeset/pre/quiet-stream-tool-bounds.md deleted file mode 100644 index 8f727f1c..00000000 --- a/.changeset/pre/quiet-stream-tool-bounds.md +++ /dev/null @@ -1,4 +0,0 @@ ---- ---- - -Reuse response codecs across streamed chunks and bound pending Tool stream fibers by the configured concurrency. Return owned JSON snapshots from programmatic Tool calls so later handler or redactor mutations cannot exceed the admitted result limit. diff --git a/.changeset/pre/quiet-successful-tool-logs.md b/.changeset/pre/quiet-successful-tool-logs.md deleted file mode 100644 index 500a7db4..00000000 --- a/.changeset/pre/quiet-successful-tool-logs.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Log successful tool executions at Debug while retaining Warning logs for failures and existing span attributes. Enable Debug logging to continue seeing successful tool execution logs. diff --git a/.changeset/pre/quiet-text-boundaries.md b/.changeset/pre/quiet-text-boundaries.md deleted file mode 100644 index 037cbc13..00000000 --- a/.changeset/pre/quiet-text-boundaries.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reduce per-turn overhead for text and reasoning response boundaries without provider metadata. Reduce warm tool-round overhead. diff --git a/.changeset/pre/quiet-thread-dispatch.md b/.changeset/pre/quiet-thread-dispatch.md deleted file mode 100644 index 17da7be3..00000000 --- a/.changeset/pre/quiet-thread-dispatch.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-platform-node": patch ---- - -Reduce redundant recovery reads and ledger scans during durable execution. Dispatch managed Node host work through one bounded queue that coalesces repeated thread notifications. diff --git a/.changeset/pre/quiet-tool-result-progress.md b/.changeset/pre/quiet-tool-result-progress.md deleted file mode 100644 index 9c4a950c..00000000 --- a/.changeset/pre/quiet-tool-result-progress.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reduce execution overhead for tool results and durable progress while preserving validation and stored records. diff --git a/.changeset/pre/quiet-wake-registration.md b/.changeset/pre/quiet-wake-registration.md deleted file mode 100644 index fab906be..00000000 --- a/.changeset/pre/quiet-wake-registration.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reduce allocation and Effect overhead when notifying scoped Thread waiters. diff --git a/.changeset/pre/quiet-workers-recover.md b/.changeset/pre/quiet-workers-recover.md deleted file mode 100644 index 39deb0e6..00000000 --- a/.changeset/pre/quiet-workers-recover.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent": patch ---- - -Resolve source-authorized background concurrency at the canonical reservation boundary, preserving active steering, retained origins, and retryable authority failures. Include the original owner submission in terminal report authorization and preserve native message recovery when applications rebuild Cloudflare runtime maintenance. diff --git a/.changeset/pre/range-based-run-context.md b/.changeset/pre/range-based-run-context.md deleted file mode 100644 index 8d6e10e1..00000000 --- a/.changeset/pre/range-based-run-context.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sql": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-postgres": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Store durable context as verified canonical ranges, eliminate duplicate hot SQL batch payloads, and skip unused token estimates. **BEHAVIOR CHANGE:** use fresh stores for the revised unreleased `effect-agent/thread@3` format; custom adapters must provide narrow `readPrompt` and snapshot-bound full history reads. diff --git a/.changeset/pre/rating-criterion-labels.md b/.changeset/pre/rating-criterion-labels.md deleted file mode 100644 index 95c0ea1c..00000000 --- a/.changeset/pre/rating-criterion-labels.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-ai-decision": patch ---- - -Support labeled rating criteria and structured descriptions in the language-model decision adapter. Require Effect 4.0.5 or later. diff --git a/.changeset/pre/react-controlled-browser-fill.md b/.changeset/pre/react-controlled-browser-fill.md deleted file mode 100644 index 30d496c9..00000000 --- a/.changeset/pre/react-controlled-browser-fill.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Update controlled React form state when filling interactive browser fields. diff --git a/.changeset/pre/readable-memory-recall.md b/.changeset/pre/readable-memory-recall.md deleted file mode 100644 index 31c004e0..00000000 --- a/.changeset/pre/readable-memory-recall.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": minor ---- - -Compose bounded, attributed Markdown or external corpus passages as optional transient model context. Keep recalled text outside Thread history and compaction coverage, and reload it when durable execution resumes. diff --git a/.changeset/pre/ready-floor-recovery.md b/.changeset/pre/ready-floor-recovery.md deleted file mode 100644 index 650b8ee5..00000000 --- a/.changeset/pre/ready-floor-recovery.md +++ /dev/null @@ -1,4 +0,0 @@ ---- ---- - -Allow deployed Effect AI floor comparisons to recover after build changes. diff --git a/.changeset/pre/ready-input-worker-claim.md b/.changeset/pre/ready-input-worker-claim.md deleted file mode 100644 index 782403cf..00000000 --- a/.changeset/pre/ready-input-worker-claim.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Leave untouched ready inputs for their normal worker claim while preserving interrupted input and marker repair. BEHAVIOR CHANGE: `runRecovery` and `recoverSubmission` report these inputs as `ApplyInput/deferred` until a worker runs them. diff --git a/.changeset/pre/reassess-pr-review-blockers.md b/.changeset/pre/reassess-pr-review-blockers.md deleted file mode 100644 index 901f174f..00000000 --- a/.changeset/pre/reassess-pr-review-blockers.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-pr-review": patch ---- - -Reassess earlier blockers for evidence that they are fixed, refuted, or obsolete, and identify unresolved reviews with their original titles, dates, commits, and links. Avoid redundant diff and status reads when the review already has the evidence it needs. diff --git a/.changeset/pre/recall-review-corrections.md b/.changeset/pre/recall-review-corrections.md deleted file mode 100644 index c691ade1..00000000 --- a/.changeset/pre/recall-review-corrections.md +++ /dev/null @@ -1,4 +0,0 @@ ---- ---- - -Deduplicate equivalent recalled JSON metadata regardless of object member order. Load transient references after initial canonical compaction, then compact further when needed to fit the complete prompt. diff --git a/.changeset/pre/recover-native-tool-arguments.md b/.changeset/pre/recover-native-tool-arguments.md deleted file mode 100644 index 6c044883..00000000 --- a/.changeset/pre/recover-native-tool-arguments.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Return invalid native tool arguments to the model when the tool uses `failureMode: "return"`, before approval or handler execution. Preserve rejection evidence through durable recovery and allow corrected Code Mode arguments in the same run. - -BEHAVIOR CHANGE: Custom durability hooks must persist `RunTurnResponseCommit.toolParameterRejections` and restore it through `RunTurnResume.toolParameterRejections`. diff --git a/.changeset/pre/recover-native-updates.md b/.changeset/pre/recover-native-updates.md deleted file mode 100644 index acc629d5..00000000 --- a/.changeset/pre/recover-native-updates.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Recover accepted native updates after interrupted tool batches without duplicating their findings or delivery. - -BEHAVIOR CHANGE: Update exhaustive handlers of `WorkerSummary.state` to handle `unknown`, now returned for unresolved workers previously reported as `active`. diff --git a/.changeset/pre/recoverable-discovery-budget.md b/.changeset/pre/recoverable-discovery-budget.md deleted file mode 100644 index 60757121..00000000 --- a/.changeset/pre/recoverable-discovery-budget.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Return complete tool discovery matches within the configured UTF-8 byte budget, with an actionable notice when documentation is omitted. Keep agent runs able to continue when no match fits, using an empty tool selection instead of a limit-exceeded failure. diff --git a/.changeset/pre/recoverable-tool-capacity.md b/.changeset/pre/recoverable-tool-capacity.md deleted file mode 100644 index 5d0f6d5a..00000000 --- a/.changeset/pre/recoverable-tool-capacity.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Return explicit not-dispatched tool results when a fresh durable batch exceeds result capacity, so the agent can continue with smaller batches. Preserve atomic refusal and existing recovery guarantees for already admitted operations. diff --git a/.changeset/pre/recovery-fault-transitions.md b/.changeset/pre/recovery-fault-transitions.md deleted file mode 100644 index 53bba9a8..00000000 --- a/.changeset/pre/recovery-fault-transitions.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": minor ---- - -Deliver durable per-submission recovery fault create, change, and clear events without notifying hosts for retry bookkeeping. - -BEHAVIOR CHANGE: Replace `ThreadMaintenance.recoveryStatus` polling with a `ThreadRecoveryEvents` handler supplied through `ThreadObject.layer` or `ThreadObject.layerInHost`; durably apply or enqueue events before acknowledging them, and deduplicate by physical Object and event sequence. diff --git a/.changeset/pre/reencode-canonical-threads.md b/.changeset/pre/reencode-canonical-threads.md deleted file mode 100644 index 5d39a495..00000000 --- a/.changeset/pre/reencode-canonical-threads.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sql": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-postgres": patch -"@yielded/agent-storage-cloudflare": patch ---- - -Export complete Thread archives and atomically import them into empty Threads with rebuilt ledger state and preserved admission facts. - -BEHAVIOR CHANGE: Quiesce the source and export/import into fresh storage for the layout-16 cutover; import only the current record format and convert archives explicitly for future semantic changes. Keep the source on destination admission conflicts or unsupported external obligations, and re-export older archives that lack batch identities. Decode custom exports through `ThreadExportRecord` to retain their wire, and pair the memory ledger and delivery store with the same `MemoryThreadStoreLive`. diff --git a/.changeset/pre/registered-subagent-policy.md b/.changeset/pre/registered-subagent-policy.md deleted file mode 100644 index feb4bd26..00000000 --- a/.changeset/pre/registered-subagent-policy.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-testing": patch ---- - -Use the registered child Definition for durable delegation identity and the resolved child policy for its tool allowance. Remove declaration digest overrides and parameter-based allowance callbacks. diff --git a/.changeset/pre/reject-premature-text-end.md b/.changeset/pre/reject-premature-text-end.md deleted file mode 100644 index a02ae979..00000000 --- a/.changeset/pre/reject-premature-text-end.md +++ /dev/null @@ -1,4 +0,0 @@ ---- ---- - -Reject benchmark samples when text observation fails before cancellation, including after first text or settlement. diff --git a/.changeset/pre/release-projected-history.md b/.changeset/pre/release-projected-history.md deleted file mode 100644 index 21077c89..00000000 --- a/.changeset/pre/release-projected-history.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reduce memory retained by durable Runs after projecting their initial conversation history. diff --git a/.changeset/pre/release-recovery-history.md b/.changeset/pre/release-recovery-history.md deleted file mode 100644 index 42cf51a7..00000000 --- a/.changeset/pre/release-recovery-history.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reduce transient memory during saved Run context reconstruction while preserving canonical history verification. diff --git a/.changeset/pre/reliable-review-category.md b/.changeset/pre/reliable-review-category.md deleted file mode 100644 index b74baff8..00000000 --- a/.changeset/pre/reliable-review-category.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-pr-review": patch ---- - -Accept reliability findings emitted from the reviewer's documented defect vocabulary. diff --git a/.changeset/pre/reliable-terminal-delivery.md b/.changeset/pre/reliable-terminal-delivery.md deleted file mode 100644 index fa318f39..00000000 --- a/.changeset/pre/reliable-terminal-delivery.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@yielded/agent-platform-node": minor -"@yielded/agent-platform-cloudflare": minor -"@yielded/agent-testing": patch -"@yielded/agent": minor ---- - -Add crash-safe terminal delivery Tools and final model responses, completion-capacity reservation, Run-scoped prompt provenance, and target-aware compaction. -Persist priced per-call model usage in the DN and DC assemblies and expose aggregate usage on Run settlements. diff --git a/.changeset/pre/remote-file-selection.md b/.changeset/pre/remote-file-selection.md deleted file mode 100644 index 0e60e8d5..00000000 --- a/.changeset/pre/remote-file-selection.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Add bounded byte-backed file selection to interactive browsers, including Cloudflare Browser Run file inputs and dynamic choosers. Distinguish confirmed selection from website upload or submission receipts. diff --git a/.changeset/pre/remove-custom-worker-reports.md b/.changeset/pre/remove-custom-worker-reports.md deleted file mode 100644 index 9f6d9814..00000000 --- a/.changeset/pre/remove-custom-worker-reports.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": minor ---- - -Remove custom worker-report APIs and registration mappers. **BEHAVIOR CHANGE:** replace `Subagent.reporting` / `reportingToWorker` with `reportToParent: true` and map typed reports on receipt; drain unprepared custom-report work with its original release before upgrading. diff --git a/.changeset/pre/remove-disconnected-model-context.md b/.changeset/pre/remove-disconnected-model-context.md deleted file mode 100644 index a8520c54..00000000 --- a/.changeset/pre/remove-disconnected-model-context.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Remove the disconnected `ModelContext` text-only preparation and compaction API. **BEHAVIOR CHANGE:** Use `RunContextPreparation` from `@yielded/agent/run-options` and `ContextCompactor` from `@yielded/agent/context-compactor` for native prompt preparation and compaction. diff --git a/.changeset/pre/remove-fixture-profile-metadata.md b/.changeset/pre/remove-fixture-profile-metadata.md deleted file mode 100644 index 26aca1a0..00000000 --- a/.changeset/pre/remove-fixture-profile-metadata.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@yielded/agent-testing": minor ---- - -Remove the unused Travel Planner phase-profile schemas and metadata constants. - -BEHAVIOR CHANGE: Remove imports of `TravelPlanner*Profile`, `phase3TravelPlannerProfile` through -`phase7TravelPlannerProfile`, and `s2TravelPlannerProfile` from `@yielded/agent-testing/travel-planner`; -the executable fixtures and live-test gate remain available. diff --git a/.changeset/pre/remove-legacy-review-surfaces.md b/.changeset/pre/remove-legacy-review-surfaces.md deleted file mode 100644 index f5d1d4eb..00000000 --- a/.changeset/pre/remove-legacy-review-surfaces.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": minor -"@yielded/agent-testing": minor ---- - -Remove unused Travel Planner fixtures. Require Cloudflare worker bindings to use the -per-incarnation callback. diff --git a/.changeset/pre/remove-remembering-coordinator.md b/.changeset/pre/remove-remembering-coordinator.md deleted file mode 100644 index 873109fc..00000000 --- a/.changeset/pre/remove-remembering-coordinator.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Remove the optional `Remembering` coordinator and its store protocol. **BEHAVIOR CHANGE:** Own background extraction through committed activity processing and memory writes; `SourcePosition` and `comparePosition` remain available from `@yielded/agent/remembering-store`. diff --git a/.changeset/pre/remove-unused-sql-schema-initializer.md b/.changeset/pre/remove-unused-sql-schema-initializer.md deleted file mode 100644 index d0a7afd0..00000000 --- a/.changeset/pre/remove-unused-sql-schema-initializer.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent-storage-sql": patch ---- - -Remove the unused SQL schema initializer and index-creation helpers. - -BEHAVIOR CHANGE: Initialize storage through an adapter's frozen layout steps instead of `createStorageSchema`, `createWorkerControlIndexes`, `createNativeReadIndexes`, or `createMessageDeliveryPendingIndex`. diff --git a/.changeset/pre/rename-conversations-to-threads.md b/.changeset/pre/rename-conversations-to-threads.md deleted file mode 100644 index e22a787a..00000000 --- a/.changeset/pre/rename-conversations-to-threads.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -"@yielded/agent": minor -"@yielded/agent-platform-cloudflare": minor -"@yielded/agent-platform-node": minor -"@yielded/agent-pr-review": minor -"@yielded/agent-storage-cloudflare": minor -"@yielded/agent-storage-memory": minor -"@yielded/agent-storage-sqlite": minor -"@yielded/agent-testing": minor ---- - -Rename `@effect-agent/session` to `@effect-agent/thread` and rename the Conversation framework API to Thread. - -BEHAVIOR CHANGE: Rename Conversation identifiers, fields, record families and tags, and the durable-admin `--conversation` selector to their Thread equivalents. Reset incompatible alpha storage before upgrading. diff --git a/.changeset/pre/replaceable-context-compaction.md b/.changeset/pre/replaceable-context-compaction.md deleted file mode 100644 index bc099986..00000000 --- a/.changeset/pre/replaceable-context-compaction.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Replace compaction through `ContextCompactor` Layers, with a bounded default and configurable summary Model. Preserve metered usage, protected Tool pairs, and canonical coverage of the selected history. - -BEHAVIOR CHANGE: migrate capabilities `ContextCompactor.compact(snapshot)` implementations to the engine request/decision contract; `contextCompactorRunContextLayer` now installs native compaction instead of a prompt hook. - -BEHAVIOR CHANGE: durable compaction fails if its coverage cannot map to complete prior-Run records or its summary exceeds 65,536 characters. Empty or incomplete model summaries and whitespace-only custom summaries are rejected. - -BEHAVIOR CHANGE: pressure compaction and overflow recovery share one prune, one summary, and one summary-model call per Turn. diff --git a/.changeset/pre/report-run-usage-on-completion.md b/.changeset/pre/report-run-usage-on-completion.md deleted file mode 100644 index 7b893c19..00000000 --- a/.changeset/pre/report-run-usage-on-completion.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Expose observed model usage and estimated cost on Run results, child projections, and terminal reports while preserving unknown coverage. Report nested attached-child usage separately and retain verified child totals across durable joins and recovery. diff --git a/.changeset/pre/required-failed-settlement-diagnostic.md b/.changeset/pre/required-failed-settlement-diagnostic.md deleted file mode 100644 index 454c980a..00000000 --- a/.changeset/pre/required-failed-settlement-diagnostic.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent": minor ---- - -Require every failed canonical `SubmissionSettled` record to carry the exact bounded generic -`{ errorTag, message }` diagnostic and expose it as `Settlement.failure`. Joined failure fanout, -recovery, durable adapter finalization, and idempotent replay preserve the host's canonical -diagnostic byte-for-byte. Result-less completed joins and aborted settlements remain explicitly -valid; malformed private-development failed records now fail closed at Schema decode. diff --git a/.changeset/pre/required-native-completion.md b/.changeset/pre/required-native-completion.md deleted file mode 100644 index 07c5eb20..00000000 --- a/.changeset/pre/required-native-completion.md +++ /dev/null @@ -1,4 +0,0 @@ ---- ---- - -Allow agents to require a native completion Tool, rejecting ordinary final text instead of parsing it as structured output. Permit a sole completion Tool on the final allowed turn when no further model call is needed. diff --git a/.changeset/pre/resolved-context-history.md b/.changeset/pre/resolved-context-history.md deleted file mode 100644 index dca27bd7..00000000 --- a/.changeset/pre/resolved-context-history.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": minor -"@yielded/agent": minor ---- - -Resolve model routing and context admission from the same per-turn configuration, and allow trusted hosts to request native rollover. Expose retained-history projections and lexical matching for authorized indexed history adapters, and the existing Thread Object SQL client for optional owner-local repositories. diff --git a/.changeset/pre/restore-history-prompts.md b/.changeset/pre/restore-history-prompts.md deleted file mode 100644 index e1239bbc..00000000 --- a/.changeset/pre/restore-history-prompts.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reduce the cost of preparing model context from immutable Thread history. diff --git a/.changeset/pre/retain-authorization-cause.md b/.changeset/pre/retain-authorization-cause.md deleted file mode 100644 index c9911a3f..00000000 --- a/.changeset/pre/retain-authorization-cause.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Distinguish authorization check failures from policy denials and preserve original local causes with structured private diagnostics across durable settlements, Worker admissions, retained message deliveries, and programmatic Worker observation. Add reusable diagnostic codecs and bounded diagnostic context copies while keeping generated tool results and completion reports free of private causal detail. - -BEHAVIOR CHANGE: Project Worker and validation errors into a safe failure schema before exposing them through custom tools with `failureMode: "return"`; their new causal fields are private diagnostics. diff --git a/.changeset/pre/retain-browser-startup-identity.md b/.changeset/pre/retain-browser-startup-identity.md deleted file mode 100644 index 8736e4ed..00000000 --- a/.changeset/pre/retain-browser-startup-identity.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Expose scoped browser acquisition so hosts can persist the cleanup identity before connection and page setup. Keep interrupted allocation cleanup bound to the exact provider session, and apply the configured initial viewport to the new page. diff --git a/.changeset/pre/retain-prompt-checkpoint-chunks.md b/.changeset/pre/retain-prompt-checkpoint-chunks.md deleted file mode 100644 index b1231c03..00000000 --- a/.changeset/pre/retain-prompt-checkpoint-chunks.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-storage-cloudflare": patch ---- - -Retain unchanged prompt checkpoint chunks when refreshing cached conversation history. diff --git a/.changeset/pre/retain-upgraded-worker-authority.md b/.changeset/pre/retain-upgraded-worker-authority.md deleted file mode 100644 index e533da72..00000000 --- a/.changeset/pre/retain-upgraded-worker-authority.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Allow an explicitly admitted root Agent upgrade to start background workers and receive their reports in an existing conversation. Preserve existing worker lineage and reject unregistered upgrade bindings. diff --git a/.changeset/pre/retained-context-tool-contracts.md b/.changeset/pre/retained-context-tool-contracts.md deleted file mode 100644 index 434beee0..00000000 --- a/.changeset/pre/retained-context-tool-contracts.md +++ /dev/null @@ -1,4 +0,0 @@ ---- ---- - -Add legacy context tool and handler exports that preserve the pre-pagination schemas and descriptions for retained Agent definitions. Keep the default context toolkit paginated for new definitions with compatible history adapters. diff --git a/.changeset/pre/retained-follow-up-input.md b/.changeset/pre/retained-follow-up-input.md deleted file mode 100644 index a2c28c4f..00000000 --- a/.changeset/pre/retained-follow-up-input.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reuse the original prepared input when a public worker follow-up repeats its command key and parameters across Runs. Preserve current authorization and reject changed parameters. diff --git a/.changeset/pre/retained-message-delivery.md b/.changeset/pre/retained-message-delivery.md deleted file mode 100644 index 97c37add..00000000 --- a/.changeset/pre/retained-message-delivery.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"@yielded/agent-storage-memory": minor -"@yielded/agent-storage-sqlite": minor -"@yielded/agent-storage-cloudflare": minor -"@yielded/agent-platform-node": minor -"@yielded/agent-platform-cloudflare": minor -"@yielded/agent": minor ---- - -Deliver typed peer messages and worker reports independently of active agent runs, with frozen input, bounded retries, and separate acceptance and processing status. Recover delivery through scoped Node polling and Cloudflare alarms while preserving existing thread data on supported storage upgrades. diff --git a/.changeset/pre/retained-worker-delivery.md b/.changeset/pre/retained-worker-delivery.md deleted file mode 100644 index 4a6c9606..00000000 --- a/.changeset/pre/retained-worker-delivery.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Distinguish durably retained worker input from storage failures with `WorkerError` reason `delivery-pending`. Treat this outcome as pending delivery, preserve the original idempotency key, and wait for a Receipt before reporting destination acceptance. diff --git a/.changeset/pre/retire-certification-reports.md b/.changeset/pre/retire-certification-reports.md deleted file mode 100644 index 6ecaf735..00000000 --- a/.changeset/pre/retire-certification-reports.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-testing": patch ---- - -BEHAVIOR CHANGE: Replace `@yielded/agent-testing/certification` and `@yielded/agent/testing/certification` with the aggregate `durableCoordinatorConformance` Effect from `@yielded/agent-testing/durable-coordinator-conformance`. Run storage-port conformance and actual restart checks separately; the coordinator helper checks recovery after injected faults without producing certification reports. diff --git a/.changeset/pre/retire-generic-thread-projections.md b/.changeset/pre/retire-generic-thread-projections.md deleted file mode 100644 index 8c5bda24..00000000 --- a/.changeset/pre/retire-generic-thread-projections.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -"@yielded/agent": minor -"@yielded/agent-storage-memory": minor -"@yielded/agent-storage-sql": minor -"@yielded/agent-storage-sqlite": minor -"@yielded/agent-storage-postgres": minor -"@yielded/agent-storage-cloudflare": minor -"@yielded/agent-testing": minor ---- - -Retire generic `ThreadCheckpoint` storage and `ThreadProjection` replay APIs, including their TravelPlanner helpers. Discard only the retired derived cache in the layout 28 → 29 upgrade, preserving conversation and operational bytes and retaining supported older upgrades. - -BEHAVIOR CHANGE: Keep application projections in application-owned storage; `ExecutionCheckpoint` and `PromptCheckpoint` remain supported. diff --git a/.changeset/pre/retire-optional-adapters.md b/.changeset/pre/retire-optional-adapters.md deleted file mode 100644 index 5da45ed3..00000000 --- a/.changeset/pre/retire-optional-adapters.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-platform-node": patch ---- - -Retire command queues, command-shaped Sandbox execution, the ephemeral approval adapters, and `redactedTranscript`; compose native Run hooks and Effect child-process services where needed. -**BEHAVIOR CHANGE:** remove `@yielded/agent-sandbox-local`, `@yielded/agent-workflow`, and NodeWorkflow; finish pending Agent work and parent Workflow notifications with the existing bridge deployment before upgrading. diff --git a/.changeset/pre/retire-orphaned-testing-fixtures.md b/.changeset/pre/retire-orphaned-testing-fixtures.md deleted file mode 100644 index e35a88ae..00000000 --- a/.changeset/pre/retire-orphaned-testing-fixtures.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-testing": patch ---- - -Remove unused planner phases 2, 3, 5, and 7, golden-history helpers, supplier fixtures, and lifecycle instrumentation. **BEHAVIOR CHANGE:** stop importing the seeded chaos kit from `@yielded/agent-testing/chaos` and the retired helpers from `@yielded/agent-testing/travel-planner`. diff --git a/.changeset/pre/returned-tool-results-before-input.md b/.changeset/pre/returned-tool-results-before-input.md deleted file mode 100644 index a33eb6d9..00000000 --- a/.changeset/pre/returned-tool-results-before-input.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Persist completed Tool results before draining new inputs. An admission read failure after a Tool returns no longer loses its outcome, turns it into an unknown call, or blocks later submissions behind it. Preserve atomic no-tool and completion-Tool terminal commits. diff --git a/.changeset/pre/reuse-captured-append-widths.md b/.changeset/pre/reuse-captured-append-widths.md deleted file mode 100644 index ba609079..00000000 --- a/.changeset/pre/reuse-captured-append-widths.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-storage-cloudflare": patch ---- - -Reduce Durable Object append overhead by reusing captured byte widths and validated thread rows. diff --git a/.changeset/pre/reuse-cold-history.md b/.changeset/pre/reuse-cold-history.md deleted file mode 100644 index 696d6255..00000000 --- a/.changeset/pre/reuse-cold-history.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reduce cold Thread startup work while preserving existing persisted history. diff --git a/.changeset/pre/reuse-durable-decoders.md b/.changeset/pre/reuse-durable-decoders.md deleted file mode 100644 index 246b6d8a..00000000 --- a/.changeset/pre/reuse-durable-decoders.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reduce repeated Schema setup and response Prompt decoding in durable Runs without changing validation or canonical history. diff --git a/.changeset/pre/reuse-immutable-replay-contracts.md b/.changeset/pre/reuse-immutable-replay-contracts.md deleted file mode 100644 index 521ab800..00000000 --- a/.changeset/pre/reuse-immutable-replay-contracts.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reuse immutable tool schema projections and successful fallback operation contracts across policy-only definition copies. Preserve operation hashes, host Crypto ownership, and validation failures. diff --git a/.changeset/pre/reuse-readonly-capture.md b/.changeset/pre/reuse-readonly-capture.md deleted file mode 100644 index 4397beef..00000000 --- a/.changeset/pre/reuse-readonly-capture.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reduce durable readonly tool overhead by reusing the captured model response through capacity reservation and settlement. diff --git a/.changeset/pre/reuse-storage-codecs.md b/.changeset/pre/reuse-storage-codecs.md deleted file mode 100644 index 396e4828..00000000 --- a/.changeset/pre/reuse-storage-codecs.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-storage-sql": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Reuse storage and live-text codecs across Thread operations to reduce repeated schema construction while preserving validation. diff --git a/.changeset/pre/reuse-tool-parameter-wrappers.md b/.changeset/pre/reuse-tool-parameter-wrappers.md deleted file mode 100644 index 90e61647..00000000 --- a/.changeset/pre/reuse-tool-parameter-wrappers.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reuse tool parameter wrappers across turns while preserving request-time decoding and tool visibility. diff --git a/.changeset/pre/review-budget-finalization.md b/.changeset/pre/review-budget-finalization.md deleted file mode 100644 index e7c29af2..00000000 --- a/.changeset/pre/review-budget-finalization.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent-pr-review": patch ---- - -Reserve a final review response when token, turn, or tool budgets stop investigation, preserving findings and usage. - -BEHAVIOR CHANGE: Treat outcomes with `exhausted` as incomplete coverage, even when no findings are returned. diff --git a/.changeset/pre/review-cache-cost.md b/.changeset/pre/review-cache-cost.md deleted file mode 100644 index d204a529..00000000 --- a/.changeset/pre/review-cache-cost.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-pr-review": patch ---- - -Retain recorded review findings when research stops, mark partial results with `incomplete` or `exhausted`, and admit review Action requests only below $1. Permit completion on the single grace turn and reuse stable OpenAI prompt prefixes. diff --git a/.changeset/pre/review-deadline-visibility.md b/.changeset/pre/review-deadline-visibility.md deleted file mode 100644 index 2307bac2..00000000 --- a/.changeset/pre/review-deadline-visibility.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-pr-review": patch ---- - -Show elapsed time and an approaching-deadline warning to cost-admitted reviewers. diff --git a/.changeset/pre/review-discussion-evidence.md b/.changeset/pre/review-discussion-evidence.md deleted file mode 100644 index d8258213..00000000 --- a/.changeset/pre/review-discussion-evidence.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-pr-review": patch ---- - -Carry bounded, attributed discussion into reviews and research so rebuttals can inform source verification. Require supported admission, recovery, API, and persisted-format evidence before reporting a defect. diff --git a/.changeset/pre/review-failure-diagnostics.md b/.changeset/pre/review-failure-diagnostics.md deleted file mode 100644 index e080a875..00000000 --- a/.changeset/pre/review-failure-diagnostics.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-pr-review": patch ---- - -Expose safe review failure and navigation diagnostics, identify deadline stops, and direct context recovery to unread diff ranges. diff --git a/.changeset/pre/review-feature-intent.md b/.changeset/pre/review-feature-intent.md deleted file mode 100644 index a7afd00a..00000000 --- a/.changeset/pre/review-feature-intent.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-pr-review": patch ---- - -Trace promised consumer outcomes across supported execution paths during review, distinguishing missing behavior from optional feature expansion. diff --git a/.changeset/pre/reviewer-web-evidence.md b/.changeset/pre/reviewer-web-evidence.md deleted file mode 100644 index e8c09829..00000000 --- a/.changeset/pre/reviewer-web-evidence.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-pr-review": patch ---- - -Enable host-configured web search during pull-request review and expose observed search usage. diff --git a/.changeset/pre/revision-aware-generated-reviews.md b/.changeset/pre/revision-aware-generated-reviews.md deleted file mode 100644 index 0c2aaad8..00000000 --- a/.changeset/pre/revision-aware-generated-reviews.md +++ /dev/null @@ -1,4 +0,0 @@ ---- ---- - -Ignore modified and deleted generated artifacts using GitHub classification at the trusted PR merge base, before reading their contents. Keep new paths and structural changes reviewable, and fail closed when classification cannot be verified. diff --git a/.changeset/pre/revisioned-subscription-admission.md b/.changeset/pre/revisioned-subscription-admission.md deleted file mode 100644 index 316d1d32..00000000 --- a/.changeset/pre/revisioned-subscription-admission.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-platform-node": patch -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent": patch ---- - -Add revisioned subscription management, bounded event retention, and explicit recovery of parked admissions. Fence fresh destination admission by host policy and retain one unsettled submission per optional admission group until canonical settlement. - -BEHAVIOR CHANGE: Reset incompatible development storage and update custom stores for required configuration revisions and retry generations. diff --git a/.changeset/pre/run-owned-subagent-reservations.md b/.changeset/pre/run-owned-subagent-reservations.md deleted file mode 100644 index 27281bb5..00000000 --- a/.changeset/pre/run-owned-subagent-reservations.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Release in-memory subagent reservation pools when their parent Run and attached children finish cleanup. Use the atomic `release` operation in place of `beginRelease`. diff --git a/.changeset/pre/run-progress-append-reader.md b/.changeset/pre/run-progress-append-reader.md deleted file mode 100644 index 7d4d98c1..00000000 --- a/.changeset/pre/run-progress-append-reader.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sql": patch ---- - -Provide a mutation-scoped `ProgressAppendReader` when validating canonical Run progress. Update custom adapters to call `validateProgressAppend(records)` inside their write boundary. diff --git a/.changeset/pre/run-scoped-thread-projections.md b/.changeset/pre/run-scoped-thread-projections.md deleted file mode 100644 index 133db5c1..00000000 --- a/.changeset/pre/run-scoped-thread-projections.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent": minor ---- - -Keep completed Steps and projected tool calls distinct when component IDs contain separators or are reused across runs. - -BEHAVIOR CHANGE: Include `schemaVersion: 2` on manually created `ThreadProjection` values and `runId` on `SubagentInvocationState`; discard and rebuild checkpoints whose projection state fails Schema decoding. diff --git a/.changeset/pre/runtime-guide-cleanup.md b/.changeset/pre/runtime-guide-cleanup.md deleted file mode 100644 index ce758f05..00000000 --- a/.changeset/pre/runtime-guide-cleanup.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Consolidate runtime guidance and clarify tool argument failures, resource cleanup, and deployment continuity. diff --git a/.changeset/pre/runtime-model-rules.md b/.changeset/pre/runtime-model-rules.md deleted file mode 100644 index 67cd6004..00000000 --- a/.changeset/pre/runtime-model-rules.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Define the runtime's turn, ownership, recovery, and Cloudflare wake rules in one authoritative guide. Clarify joined-input restarts, notification settlement, and platform-specific limits. diff --git a/.changeset/pre/runtime-simplify.md b/.changeset/pre/runtime-simplify.md deleted file mode 100644 index 4ca0e641..00000000 --- a/.changeset/pre/runtime-simplify.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-sql": patch ---- - -Remove obsolete runtime aliases, frozen context tools, and unused storage failpoint controls. Use indexed canonical reads for selected Thread records instead of decoding a cached full history. - -BEHAVIOR CHANGE: Use `Subagent.make`, `ContextTools.toolkit` with `ContextTools.layer`, and the registered `runResolvedWorker` in place of `Subagent.define`, legacy context tools, and `runWorker`; classify delegation with `DelegationTool` metadata instead of name helpers. Replace the removed `DoStorageFailpointTestControl` and SQLite testing module with the corresponding storage failpoint service Layers. diff --git a/.changeset/pre/safe-browser-diagnostics.md b/.changeset/pre/safe-browser-diagnostics.md deleted file mode 100644 index 2f938afd..00000000 --- a/.changeset/pre/safe-browser-diagnostics.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Report safe browser acquisition and cleanup diagnostics through Effect ErrorReporter without exposing provider content. Preserve mixed defects through protected policy recovery and use one recording-disabled acquisition path for interactive and protected sessions. diff --git a/.changeset/pre/scheduling-management-recovery.md b/.changeset/pre/scheduling-management-recovery.md deleted file mode 100644 index 49b851fc..00000000 --- a/.changeset/pre/scheduling-management-recovery.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-platform-node": minor -"@yielded/agent-platform-cloudflare": minor -"@yielded/agent": minor ---- - -Separate scheduling management from driver authority, expose explicit public status, and fix DST delivery, failed-record starvation, and repeated resume. Allow positive host interval minimums and release operational capacity when schedules finish while retaining creation replay guarantees. - -BEHAVIOR CHANGE: Cloudflare consumers yield `Scheduling` from `CloudflareSchedulingClient.layer`; local drivers use `ScheduleDriver.layer`. Status omits persisted input and admission internals, and `dueBatchSize` bounds a query page within a sweep. diff --git a/.changeset/pre/scoped-browser-crawl.md b/.changeset/pre/scoped-browser-crawl.md deleted file mode 100644 index a5820ef3..00000000 --- a/.changeset/pre/scoped-browser-crawl.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Add a bounded same-host `PageCrawl` stream and a Cloudflare Browser Run REST adapter with scoped -remote-job cleanup. diff --git a/.changeset/pre/scoped-interactive-browser.md b/.changeset/pre/scoped-interactive-browser.md deleted file mode 100644 index b0db8ef3..00000000 --- a/.changeset/pre/scoped-interactive-browser.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Add a scoped, provider-neutral `InteractiveBrowser` contract for bounded navigation and interaction, with typed busy, limit, capacity, expiry, and uncertain-execution semantics. - -Document the Cloudflare Browser Run Puppeteer adapter boundary and opt-in Worker proof requirements. diff --git a/.changeset/pre/scoped-layer-values.md b/.changeset/pre/scoped-layer-values.md deleted file mode 100644 index 9bbd44fe..00000000 --- a/.changeset/pre/scoped-layer-values.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent-storage-memory": patch ---- - -**BEHAVIOR CHANGE:** Use the exported run-storage, browser adapter, and memory schedule layers directly as values instead of calling zero-argument factories; each build retains fresh scoped state. Reject non-finite numeric record fields while retaining the unbounded policy limit's `Infinity`/`null` round trip. diff --git a/.changeset/pre/scoped-memory-conversations.md b/.changeset/pre/scoped-memory-conversations.md deleted file mode 100644 index 168ee828..00000000 --- a/.changeset/pre/scoped-memory-conversations.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Add `InMemory.scoped` to release disposable conversation history and attached-child history after a workflow while sharing the application's count and byte limits. Preserve default retention and multi-run continuation outside disposable workflows. diff --git a/.changeset/pre/scoped-run-storage.md b/.changeset/pre/scoped-run-storage.md deleted file mode 100644 index 49da1b59..00000000 --- a/.changeset/pre/scoped-run-storage.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -"@yielded/agent": minor -"@yielded/agent-platform-node": minor -"@yielded/agent-platform-cloudflare": minor -"@yielded/agent-storage-sql": minor -"@yielded/agent-storage-sqlite": minor -"@yielded/agent-storage-postgres": minor -"@yielded/agent-storage-memory": minor -"@yielded/agent-storage-cloudflare": minor -"@yielded/agent-testing": minor ---- - -Bind durable Attempts to scoped storage sessions and reduce repeated ownership and tail reads in managed Node hosts. - -BEHAVIOR CHANGE: provide `RunStorage` in manual runtime assemblies and provide `ThreadReader` for canonical read helpers (stock adapters include it). Managed Node hosts keep `SqlClient`, `ThreadStore`, and `SubmissionLedger` private and reject custom SQLite triggers; compose application SQL with a separate client. diff --git a/.changeset/pre/selective-worker-progress.md b/.changeset/pre/selective-worker-progress.md deleted file mode 100644 index 9054fcef..00000000 --- a/.changeset/pre/selective-worker-progress.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Add `reportUpdate` to background reporting so applications can retain routine progress for observers without starting a parent run. Selected updates and completion reports keep their existing durable delivery guarantees. diff --git a/.changeset/pre/semantic-recall-authority.md b/.changeset/pre/semantic-recall-authority.md deleted file mode 100644 index 64155dbe..00000000 --- a/.changeset/pre/semantic-recall-authority.md +++ /dev/null @@ -1,4 +0,0 @@ ---- ---- - -Carry the authorized namespace as private authority through semantic retrieval and recall composition. diff --git a/.changeset/pre/semantic-source-identity-budget.md b/.changeset/pre/semantic-source-identity-budget.md deleted file mode 100644 index 9ed347e5..00000000 --- a/.changeset/pre/semantic-source-identity-budget.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-storage-memory": patch ---- - -Bound retained semantic source identities and withdrawal tombstones with `maxSourceBytes`. Reject over-budget replacement or withdrawal without changing the previous index. diff --git a/.changeset/pre/semantic-vector-capacity.md b/.changeset/pre/semantic-vector-capacity.md deleted file mode 100644 index cc9a3be2..00000000 --- a/.changeset/pre/semantic-vector-capacity.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-storage-memory": patch ---- - -Reject in-memory semantic index configurations exceeding 16,777,216 stored vector components. Lower the chunk capacity when using higher-dimensional embedding profiles. diff --git a/.changeset/pre/separate-storage-layout-versions.md b/.changeset/pre/separate-storage-layout-versions.md deleted file mode 100644 index 316b9e80..00000000 --- a/.changeset/pre/separate-storage-layout-versions.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-postgres": patch -"@yielded/agent-storage-cloudflare": patch ---- - -Track table layouts separately from record formats and apply pending layout steps atomically when opening supported storage. - -BEHAVIOR CHANGE: Opening layout 16 advances its layout header to 17 without rewriting records; use the read-only export entry point when preserving the source for a format change. diff --git a/.changeset/pre/session-work-catalog.md b/.changeset/pre/session-work-catalog.md deleted file mode 100644 index d133765e..00000000 --- a/.changeset/pre/session-work-catalog.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-storage-sql": patch -"@yielded/agent-storage-cloudflare": patch ---- - -Avoid repeated work-index catalog probes within a storage session, invalidating schema presence after maintenance, rebuilds, and failed queries. diff --git a/.changeset/pre/settled-sibling-order.md b/.changeset/pre/settled-sibling-order.md deleted file mode 100644 index 3078b5cd..00000000 --- a/.changeset/pre/settled-sibling-order.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Preserve earlier tool results when attached subagents suspend a later turn, and restore completed result batches in declaration order so context rollover can continue after recovery. diff --git a/.changeset/pre/shared-application-owner.md b/.changeset/pre/shared-application-owner.md deleted file mode 100644 index f09e508b..00000000 --- a/.changeset/pre/shared-application-owner.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent-storage-cloudflare": patch ---- - -Host multiple logical Threads inside an application Durable Object using its existing SQL client and one shared alarm, with addressed controls, recovery across local lanes, and isolated native migration history. **BEHAVIOR CHANGE:** Define custom `ThreadObjectNamespace` services with `get(threadId)` to resolve each logical endpoint. diff --git a/.changeset/pre/shared-effect-peer.md b/.changeset/pre/shared-effect-peer.md deleted file mode 100644 index 3978faba..00000000 --- a/.changeset/pre/shared-effect-peer.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent-platform-node": patch -"@yielded/agent-pr-review": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-testing": patch -"@yielded/agent": patch ---- - -Declare `effect` as a required `^4.0.0-rc.111` peer across all public packages so they share the application's runtime and accept compatible upgrades. Keep `effect` in application dependencies at a version satisfying the framework's and providers' peer ranges. diff --git a/.changeset/pre/shared-node-recovery-scans.md b/.changeset/pre/shared-node-recovery-scans.md deleted file mode 100644 index 7e4ce29f..00000000 --- a/.changeset/pre/shared-node-recovery-scans.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-node": patch ---- - -Share periodic recovery scans across active wake subscribers while retaining every lane in large scans. Stop scanning when the last subscriber leaves and restart on later demand. diff --git a/.changeset/pre/shared-prepared-admission.md b/.changeset/pre/shared-prepared-admission.md deleted file mode 100644 index 4cf6d203..00000000 --- a/.changeset/pre/shared-prepared-admission.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-platform-node": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Use `PreparedInputAdmission` for schedule, subscription, and worker-message delivery. Replace the scheduling-specific admission service and import `PreparedInput`, authorization decisions, retry reasons, and admission errors from `@yielded/agent/prepared-input-admission` using their `PreparedInput` names. diff --git a/.changeset/pre/shared-publication-gate.md b/.changeset/pre/shared-publication-gate.md deleted file mode 100644 index 3199f28f..00000000 --- a/.changeset/pre/shared-publication-gate.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Expose the native producer gate through Thread Object services so rebuilt runtime and maintenance Layers share in-flight publication activity. diff --git a/.changeset/pre/shared-schedule-storage.md b/.changeset/pre/shared-schedule-storage.md deleted file mode 100644 index 23db8684..00000000 --- a/.changeset/pre/shared-schedule-storage.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-storage-sql": patch -"@yielded/agent-storage-cloudflare": patch ---- - -Reuse shared SQL schedule storage on Cloudflare while preserving atomic alarm updates and native record limits. diff --git a/.changeset/pre/shared-sql-storage.md b/.changeset/pre/shared-sql-storage.md deleted file mode 100644 index 043d0891..00000000 --- a/.changeset/pre/shared-sql-storage.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@yielded/agent-storage-sql": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent": patch ---- - -Share SQL persistence implementations through `@yielded/agent-storage-sql` while preserving SQLite storage formats and adapter APIs. BEHAVIOR CHANGE: import SQL subscription, message-delivery, native-read, and upgrade helpers from `@yielded/agent-storage-sql` instead of `@yielded/agent`, and pass custom transactions through the factory options. diff --git a/.changeset/pre/shared-storage-codecs.md b/.changeset/pre/shared-storage-codecs.md deleted file mode 100644 index 0c268b41..00000000 --- a/.changeset/pre/shared-storage-codecs.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-storage-sql": patch -"@yielded/agent-storage-cloudflare": patch ---- - -Use shared ledger row and observation-offset codecs while preserving native sequence decoding, value limits, and storage diagnostics. diff --git a/.changeset/pre/shared-subagent-defaults.md b/.changeset/pre/shared-subagent-defaults.md deleted file mode 100644 index 15f395ae..00000000 --- a/.changeset/pre/shared-subagent-defaults.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent": minor ---- - -Derive delegation schemas and mappings from child definitions, inherit omitted policy defaults within shared reservation limits, and accept model Layers directly for subagent execution and durable registration. - -BEHAVIOR CHANGE: Durable delegations enforce shared reservation caps; configure identical `parentCaps` when multiple delegation policies share a parent Run. diff --git a/.changeset/pre/shorter-durable-history-reads.md b/.changeset/pre/shorter-durable-history-reads.md deleted file mode 100644 index 966c5e8c..00000000 --- a/.changeset/pre/shorter-durable-history-reads.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reduce durable Run startup reads while preserving context compaction and recovery behavior. diff --git a/.changeset/pre/silent-web-capture-errors.md b/.changeset/pre/silent-web-capture-errors.md deleted file mode 100644 index e735e912..00000000 --- a/.changeset/pre/silent-web-capture-errors.md +++ /dev/null @@ -1,4 +0,0 @@ ---- ---- - -Keep structured extraction schema diagnostics out of model-visible WebCapture failures. diff --git a/.changeset/pre/silver-tools-resume.md b/.changeset/pre/silver-tools-resume.md deleted file mode 100644 index f4b736a9..00000000 --- a/.changeset/pre/silver-tools-resume.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Resume settled discovery selections after a selected tool is removed, preserving surviving selections and the original receipts. diff --git a/.changeset/pre/simple-platform-layers.md b/.changeset/pre/simple-platform-layers.md deleted file mode 100644 index aae5913e..00000000 --- a/.changeset/pre/simple-platform-layers.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent-platform-node": patch ---- - -Assemble Cloudflare Code Mode, REST capture tools, interactive browsers, and thread clients with platform-owned Layer constructors. Register Node agents through `NodeDurableHost.layerRegistered(registrations, options)` while preserving application service requirements and host-scoped cleanup. diff --git a/.changeset/pre/single-completion-path.md b/.changeset/pre/single-completion-path.md deleted file mode 100644 index f0dc12e8..00000000 --- a/.changeset/pre/single-completion-path.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": minor ---- - -Require the designated completion Tool whenever one is configured, and retire action-tool completion, Agent metadata, and Tool inspection helpers. Use the same validated completion metadata for results and events. diff --git a/.changeset/pre/single-thread-maintenance.md b/.changeset/pre/single-thread-maintenance.md deleted file mode 100644 index c605e375..00000000 --- a/.changeset/pre/single-thread-maintenance.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Skip redundant maintenance refills while a Cloudflare Object's single Thread is running. diff --git a/.changeset/pre/skip-empty-history-declarations.md b/.changeset/pre/skip-empty-history-declarations.md deleted file mode 100644 index c0c94928..00000000 --- a/.changeset/pre/skip-empty-history-declarations.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reduce startup memory for conversations whose model responses declare no application tool calls. diff --git a/.changeset/pre/skip-partial-child-wake.md b/.changeset/pre/skip-partial-child-wake.md deleted file mode 100644 index e9b89579..00000000 --- a/.changeset/pre/skip-partial-child-wake.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Skip redundant parent lookups and wake notifications while a Run still awaits other attached children. diff --git a/.changeset/pre/small-run-configuration.md b/.changeset/pre/small-run-configuration.md deleted file mode 100644 index 814e2d7d..00000000 --- a/.changeset/pre/small-run-configuration.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": minor ---- - -Use one cost-estimator request and an explicit estimate object, and express Run scheduling overrides as positive concurrency values. Keep recovery protocols internal and restrict child-spawn options to application settings and delegation facts. diff --git a/.changeset/pre/spend-governed-review.md b/.changeset/pre/spend-governed-review.md deleted file mode 100644 index 3375f515..00000000 --- a/.changeset/pre/spend-governed-review.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-pr-review": patch ---- - -Let reviews with host spending admission continue beyond the former turn and tool-call limits, retaining generous finite backstops and the five-minute deadline. Preserve the existing limits for hosts without spending admission. diff --git a/.changeset/pre/sql-run-authority-scope.md b/.changeset/pre/sql-run-authority-scope.md deleted file mode 100644 index b24bcdba..00000000 --- a/.changeset/pre/sql-run-authority-scope.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-storage-sql": patch ---- - -Preserve newer SQL writer fences and independent canonical appends when an exclusive Run session's cached state is stale. Keep valid sessions usable after failed claims and bind operation resources to the caller's Scope. diff --git a/.changeset/pre/sqlite-history-scheduler.md b/.changeset/pre/sqlite-history-scheduler.md deleted file mode 100644 index bfe4cfad..00000000 --- a/.changeset/pre/sqlite-history-scheduler.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Prevent sequential SQLite history runs from stalling during scheduler yields while preserving run duration limits. diff --git a/.changeset/pre/stable-cloudflare-rpc-targets.md b/.changeset/pre/stable-cloudflare-rpc-targets.md deleted file mode 100644 index ee8772da..00000000 --- a/.changeset/pre/stable-cloudflare-rpc-targets.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Reuse native RPC targets within each Cloudflare invocation so delegated work, progress observation, memory and scheduling callbacks do not exhaust subrequest depth. Replace failed channels and start fresh target scopes for incoming requests and durable retries. diff --git a/.changeset/pre/stable-effect-v4.md b/.changeset/pre/stable-effect-v4.md deleted file mode 100644 index 071fa638..00000000 --- a/.changeset/pre/stable-effect-v4.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -"@yielded/agent-ai-decision": patch -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent-platform-node": patch -"@yielded/agent-pr-review": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-postgres": patch -"@yielded/agent-storage-sql": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-testing": patch -"@yielded/agent": patch ---- - -Require Effect 4.0.0 and use its current module paths and encoding APIs. Require `effect-cf@^0.53.0` for the Cloudflare adapter. - -BEHAVIOR CHANGE: upgrade Effect and matching provider, platform, SQL, and Atom packages to 4.0.0; replace `effect/unstable/*` imports with `effect/*` and use `effect/http-api` for HTTP APIs. Cloudflare logical alarms now back off from one second and park for hourly recovery after eight attempts without reported source progress. diff --git a/.changeset/pre/stable-prompt-prefix.md b/.changeset/pre/stable-prompt-prefix.md deleted file mode 100644 index acda450b..00000000 --- a/.changeset/pre/stable-prompt-prefix.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Preserve reusable prompt prefixes across Runs by keeping system instructions and the output contract before conversation history. Retain native cache controls and distinct instruction precedence without rewriting stored history. diff --git a/.changeset/pre/stable-testing-release-artifacts.md b/.changeset/pre/stable-testing-release-artifacts.md deleted file mode 100644 index 9c17f400..00000000 --- a/.changeset/pre/stable-testing-release-artifacts.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-testing": patch ---- - -Stabilize the encoded Travel Planner persistence fixture's declaration so repeated package builds -produce the same release artifact. diff --git a/.changeset/pre/steady-prompts.md b/.changeset/pre/steady-prompts.md deleted file mode 100644 index 7e6838f8..00000000 --- a/.changeset/pre/steady-prompts.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reduce prompt preparation copies and commit continuation overhead while preserving model-visible messages and durable outcomes. diff --git a/.changeset/pre/steady-record-evidence.md b/.changeset/pre/steady-record-evidence.md deleted file mode 100644 index 4fdcef73..00000000 --- a/.changeset/pre/steady-record-evidence.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reduce durable response capture and progress-accounting work while preserving canonical record bytes and recovery validation. BEHAVIOR CHANGE: `ModelResponseRecorded.messages` is now typed as encoded Prompt messages; encode a `Prompt` before constructing the record. diff --git a/.changeset/pre/steady-status-cache.md b/.changeset/pre/steady-status-cache.md deleted file mode 100644 index 283b8375..00000000 --- a/.changeset/pre/steady-status-cache.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Preserve OpenAI implicit prompt-cache boundaries when `runStatus: "appended"` is enabled. -Keep discarded status and reference context out of later requests when native response-ID tracking is enabled. diff --git a/.changeset/pre/stop-seam-join-order.md b/.changeset/pre/stop-seam-join-order.md deleted file mode 100644 index d612e388..00000000 --- a/.changeset/pre/stop-seam-join-order.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Commit a stopped Turn's response before joined input enters history, so a restart delivers that input to the model instead of settling it unread. diff --git a/.changeset/pre/streamed-reasoning-previews.md b/.changeset/pre/streamed-reasoning-previews.md deleted file mode 100644 index 6df837aa..00000000 --- a/.changeset/pre/streamed-reasoning-previews.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Stream provider reasoning summaries alongside provisional assistant text, with keepalives that release disconnected observers. Export a browser-safe live-text decoder for clients that reconcile previews with canonical history. diff --git a/.changeset/pre/strict-follow-up-scope.md b/.changeset/pre/strict-follow-up-scope.md deleted file mode 100644 index 7d7d0afc..00000000 --- a/.changeset/pre/strict-follow-up-scope.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-pr-review": patch ---- - -Constrain follow-up reviews to defects introduced or newly exposed since the last completed review while continuing to verify prior blockers against current source. diff --git a/.changeset/pre/strict-mcp-jsonrpc.md b/.changeset/pre/strict-mcp-jsonrpc.md deleted file mode 100644 index 753fc80d..00000000 --- a/.changeset/pre/strict-mcp-jsonrpc.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Send MCP requests and notifications as strict JSON-RPC messages so servers that reject tracing extensions or null notification parameters can connect. Expose discovered MCP tools in non-strict model schema mode so providers can accept valid MCP input schemas outside their strict subset. diff --git a/.changeset/pre/structural-postgres-layout.md b/.changeset/pre/structural-postgres-layout.md deleted file mode 100644 index df2dd737..00000000 --- a/.changeset/pre/structural-postgres-layout.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-storage-postgres": patch ---- - -Validate PostgreSQL layout columns, indexes, and constraints through catalog structure while allowing physical index tuning. Reject incompatible keys, predicates, and constraints before applying layout steps. diff --git a/.changeset/pre/subagent-request-bound-projection.md b/.changeset/pre/subagent-request-bound-projection.md deleted file mode 100644 index 8af0ea14..00000000 --- a/.changeset/pre/subagent-request-bound-projection.md +++ /dev/null @@ -1,6 +0,0 @@ ---- ---- - -Pass the original Schema-decoded delegation parameters to `projectResult` on both ephemeral and -durable attached-subagent paths so result declassification can bind child output to the exact -request without trusting echoed identity fields. diff --git a/.changeset/pre/subscription-input-bindings.md b/.changeset/pre/subscription-input-bindings.md deleted file mode 100644 index 6ff61e7e..00000000 --- a/.changeset/pre/subscription-input-bindings.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@yielded/agent-platform-node": minor -"@yielded/agent-platform-cloudflare": minor -"@yielded/agent": minor ---- - -Bind subscription input preparation to each destination Agent's retained definition version, authorize reconciliation through explicit host policy, and preserve newer delivery retry state. - -BEHAVIOR CHANGE: Provide `SubscriptionInputBindings` and `SubscriptionAuthorizer.reconcile` in subscription hosts, and import GitHub integration from `@effect-agent/thread/github`. diff --git a/.changeset/pre/subscription-mixed-causes.md b/.changeset/pre/subscription-mixed-causes.md deleted file mode 100644 index 8770313d..00000000 --- a/.changeset/pre/subscription-mixed-causes.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-platform-node": patch -"@yielded/agent": patch ---- - -Keep subscription recovery and Node polling active after failures combined with sibling interruption, while still stopping when the host Scope closes. diff --git a/.changeset/pre/swift-local-host-recovery.md b/.changeset/pre/swift-local-host-recovery.md deleted file mode 100644 index 6f90bae7..00000000 --- a/.changeset/pre/swift-local-host-recovery.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-platform-node": patch -"@yielded/agent-storage-sqlite": patch ---- - -Recover automatically managed Node hosts after process death without waiting for retained ownership leases. BEHAVIOR CHANGE: automatic hosts require existing databases to use WAL and exclusively own their SQLite database; use the host's services for live administration or stop it before opening a separate connection. diff --git a/.changeset/pre/terminal-tool-history.md b/.changeset/pre/terminal-tool-history.md deleted file mode 100644 index e000b84a..00000000 --- a/.changeset/pre/terminal-tool-history.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Preserve completed Tool results before repeated-failure termination and allow later context rollover past invisible incomplete batches from canonically terminated prior Runs without rewriting or replaying their evidence. diff --git a/.changeset/pre/terminal-worker-assignments.md b/.changeset/pre/terminal-worker-assignments.md deleted file mode 100644 index 88c0ebe8..00000000 --- a/.changeset/pre/terminal-worker-assignments.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-cloudflare": patch ---- - -Add opt-in terminal worker assignments that remain steerable while waiting and permanently reject new work after completion, failure, or cancellation. Preserve existing reusable workers and upgrade native storage seals without resetting retained data. diff --git a/.changeset/pre/thin-browser-sessions.md b/.changeset/pre/thin-browser-sessions.md deleted file mode 100644 index 07a4e991..00000000 --- a/.changeset/pre/thin-browser-sessions.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@yielded/agent": minor -"@yielded/agent-platform-cloudflare": minor ---- - -Replace protected browser passes with application-owned Cloudflare sessions, native Puppeteer actions, and authorized credential filling. - -BEHAVIOR CHANGE: Migrate removed `protected-browser` APIs to `browser-session` and `browser-credentials`; ordinary page observations may expose filled values, and application owners must retain session references and close browsers on completion or expiry. diff --git a/.changeset/pre/thin-owned-startup.md b/.changeset/pre/thin-owned-startup.md deleted file mode 100644 index 476454e3..00000000 --- a/.changeset/pre/thin-owned-startup.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-sql": patch -"@yielded/agent-storage-cloudflare": patch ---- - -Reduce fresh durable Run preparation by reading root identity and empty execution evidence together under the current owner. Reuse captured startup and checkpoint values while preserving recovery validation and atomic persistence before model dispatch. diff --git a/.changeset/pre/thin-warm-startup-round-two.md b/.changeset/pre/thin-warm-startup-round-two.md deleted file mode 100644 index 2cceb92d..00000000 --- a/.changeset/pre/thin-warm-startup-round-two.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-sql": patch -"@yielded/agent-storage-cloudflare": patch ---- - -Start fresh durable Runs with less work before the first model request. diff --git a/.changeset/pre/thread-identity-snapshot.md b/.changeset/pre/thread-identity-snapshot.md deleted file mode 100644 index 65520602..00000000 --- a/.changeset/pre/thread-identity-snapshot.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Read canonical worker identity and its producer fence in one bounded owner snapshot instead of four serial remote reads. Custom ThreadStore adapters must implement `readIdentity`; deploy matching Cloudflare client and owner packages for the new read-only operation. diff --git a/.changeset/pre/thread-in-main.md b/.changeset/pre/thread-in-main.md deleted file mode 100644 index 72a3abc8..00000000 --- a/.changeset/pre/thread-in-main.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent": minor ---- - -Fold `@effect-agent/thread` into `@yielded/agent` and expose the in-memory conversation model through the `Thread` namespace. Keep database drivers and platform hosts in their adapter packages. - -BEHAVIOR CHANGE: Replace `@effect-agent/thread/*` imports with `@yielded/agent/*` and remove the old dependency. Use `Thread.Store`, `Thread.Thread`, `Thread.layerMemory`, and `Thread.toPrompt` in place of the `EphemeralThreads` module; import `PersistentHistory` from the package root for `PersistentHistory.layer`. Stored formats and service identities are unchanged. diff --git a/.changeset/pre/thread-work-discovery.md b/.changeset/pre/thread-work-discovery.md deleted file mode 100644 index 3abad8b5..00000000 --- a/.changeset/pre/thread-work-discovery.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sql": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-postgres": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-platform-node": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Discover unfinished Thread work through `@yielded/agent/thread-work`, recover bounded pages, and explicitly rebuild disposable indexes. **BEHAVIOR CHANGE:** follow `runRecovery().cursor` to finish a scan and use fresh layout-21 stores; factual effect closure remains available after execution decisions and Run settlement and must agree with any committed tool result. diff --git a/.changeset/pre/tidy-admission-writes.md b/.changeset/pre/tidy-admission-writes.md deleted file mode 100644 index d4b342f8..00000000 --- a/.changeset/pre/tidy-admission-writes.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Coalesce admission wake hints into source transactions to reduce work before dispatch. diff --git a/.changeset/pre/tidy-alarm-isolation.md b/.changeset/pre/tidy-alarm-isolation.md deleted file mode 100644 index 09a61b91..00000000 --- a/.changeset/pre/tidy-alarm-isolation.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Keep alarm updates independent of concurrent SQLite transactions, and retain the earliest requested recovery deadline atomically. Provide the owner's SqlClient when building standalone alarm or maintenance layers. diff --git a/.changeset/pre/tidy-browser-tools.md b/.changeset/pre/tidy-browser-tools.md deleted file mode 100644 index 2f595309..00000000 --- a/.changeset/pre/tidy-browser-tools.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": minor ---- - -Add `BrowserUse.make({ grounding: "decision" })` to pair browser tools with handlers and opt into native DecisionModel target selection. Supply application-owned browser actions through `@yielded/agent/browser-use` or the `BrowserUse` namespace. diff --git a/.changeset/pre/tidy-browsers-explain.md b/.changeset/pre/tidy-browsers-explain.md deleted file mode 100644 index 3b1d8e31..00000000 --- a/.changeset/pre/tidy-browsers-explain.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Retain validated HTTP status, request ID, and Retry-After metadata in failure diagnostics. Preserve bounded private browser acquisition errors and response cleanup causes without exposing response bodies publicly. diff --git a/.changeset/pre/tidy-browsers-reply.md b/.changeset/pre/tidy-browsers-reply.md deleted file mode 100644 index d12d6e32..00000000 --- a/.changeset/pre/tidy-browsers-reply.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Complete peer-initiated browser connection closure on Workers runtimes that require an explicit close reply. Preserve local attachment cleanup without closing the remote browser session. diff --git a/.changeset/pre/tidy-browsers-roam.md b/.changeset/pre/tidy-browsers-roam.md deleted file mode 100644 index ce05ce7b..00000000 --- a/.changeset/pre/tidy-browsers-roam.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Add an explicit `Unrestricted` interactive browser policy for arbitrary-site browsing without URL/host or private-network containment guarantees, retaining session limits and host controls. Admit credential-free HTTP and HTTPS interactive navigation and URL observations without changing PageCapture contracts. diff --git a/.changeset/pre/tidy-canonical-insert.md b/.changeset/pre/tidy-canonical-insert.md deleted file mode 100644 index 6add7e45..00000000 --- a/.changeset/pre/tidy-canonical-insert.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-storage-sql": patch ---- - -Reduce redundant writes when appending durable tool and worker records to SQLite or PostgreSQL. diff --git a/.changeset/pre/tidy-chats-compact.md b/.changeset/pre/tidy-chats-compact.md deleted file mode 100644 index b3c3d4cc..00000000 --- a/.changeset/pre/tidy-chats-compact.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Keep user inputs with their replies during summary compaction so durable chats continue successfully. diff --git a/.changeset/pre/tidy-cloudflare-submit.md b/.changeset/pre/tidy-cloudflare-submit.md deleted file mode 100644 index d78940c7..00000000 --- a/.changeset/pre/tidy-cloudflare-submit.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Reduce Cloudflare client imports and validate submission envelopes once. Expose scoped live-text bytes for forwarding and validate frames at the final consumer with `decodeLiveText`. diff --git a/.changeset/pre/tidy-clouds-listen.md b/.changeset/pre/tidy-clouds-listen.md deleted file mode 100644 index 98c1947b..00000000 --- a/.changeset/pre/tidy-clouds-listen.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Keep native dispatch and host abort/reply waves open together while unrelated alarm work retires. BEHAVIOR CHANGE: yield the event-scoped `ThreadMaintenanceActivity` service in `drainUntil`, acquire `subscribeChanges` before initial setup, register finite waves with `run`, and acknowledge readiness with `ready`; use `ThreadMaintenanceActivity.all` to compose independent pumps. diff --git a/.changeset/pre/tidy-clouds-progress.md b/.changeset/pre/tidy-clouds-progress.md deleted file mode 100644 index eaac389b..00000000 --- a/.changeset/pre/tidy-clouds-progress.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Keep ownership and maintenance caches consistent when Durable Object instrumentation wraps SQL handles. Prevent valid attempts from being rejected and newly scheduled work from being missed. diff --git a/.changeset/pre/tidy-inline-admission.md b/.changeset/pre/tidy-inline-admission.md deleted file mode 100644 index cb1ca997..00000000 --- a/.changeset/pre/tidy-inline-admission.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Start newly admitted Cloudflare work from the submit event without waiting for the post-event dispatcher. Keep receipts independent of execution and retain alarm recovery after interruption. diff --git a/.changeset/pre/tidy-memory-accounting.md b/.changeset/pre/tidy-memory-accounting.md deleted file mode 100644 index c4d6e51a..00000000 --- a/.changeset/pre/tidy-memory-accounting.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent": patch ---- - -Keep SQL memory admission work bounded as retained history grows, charge replacements by their byte delta, and preserve existing exact-result receipts. Add optional withdrawal capacity reserves within hard storage limits; deploy exclusively upgraded writers before relying on reserves. diff --git a/.changeset/pre/tidy-model-accounting.md b/.changeset/pre/tidy-model-accounting.md deleted file mode 100644 index 9c32c9bc..00000000 --- a/.changeset/pre/tidy-model-accounting.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reduce redundant validation during model and tool execution while preserving usage bounds and canonical conversation records. diff --git a/.changeset/pre/tidy-observation-cancellation.md b/.changeset/pre/tidy-observation-cancellation.md deleted file mode 100644 index f0387574..00000000 --- a/.changeset/pre/tidy-observation-cancellation.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Cancel remote settlement observations when their client Effect is interrupted, using the same bounded best-effort cleanup as progress observations. Keep the admitted Run active so another observer can await its completion. diff --git a/.changeset/pre/tidy-protected-browser-lifetime.md b/.changeset/pre/tidy-protected-browser-lifetime.md deleted file mode 100644 index cac9c1a3..00000000 --- a/.changeset/pre/tidy-protected-browser-lifetime.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Allow callers to set finite browser pass allowances beyond one hour and keep retained protected sessions active with `BrowserRunProtectedHost.keepAlive(sessionId)`. Preserve unrestricted service-worker handling and distinguish failed-resume attachment retirement from uncertain local cleanup. diff --git a/.changeset/pre/tidy-review-counterexamples.md b/.changeset/pre/tidy-review-counterexamples.md deleted file mode 100644 index e2dc93d3..00000000 --- a/.changeset/pre/tidy-review-counterexamples.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-pr-review": patch ---- - -Ask reviewers to construct supported counterexamples before filtering candidate defects. diff --git a/.changeset/pre/tidy-storage-capture.md b/.changeset/pre/tidy-storage-capture.md deleted file mode 100644 index 894b73f5..00000000 --- a/.changeset/pre/tidy-storage-capture.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-sql": patch -"@yielded/agent-storage-cloudflare": patch ---- - -Reduce repeated validation and dictionary work during durable turns. Capture canonical records by index and read execution arrays once, preserving their bounds even with custom iterators or getters. diff --git a/.changeset/pre/tidy-work-index-upgrade.md b/.changeset/pre/tidy-work-index-upgrade.md deleted file mode 100644 index 0b482e56..00000000 --- a/.changeset/pre/tidy-work-index-upgrade.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@yielded/agent-storage-sql": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-postgres": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Repair SQL work-index upgrades while preserving unfinished operations and unresolved external outcomes. SQL discovery advances incomplete upgrades in bounded passes; Cloudflare maintenance continues them automatically, including previously parked recovery. diff --git a/.changeset/pre/tool-cycle-pass-forward.md b/.changeset/pre/tool-cycle-pass-forward.md deleted file mode 100644 index a9198d8c..00000000 --- a/.changeset/pre/tool-cycle-pass-forward.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-sql": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-postgres": patch -"@yielded/agent-storage-cloudflare": patch ---- - -Reuse captured tool-cycle commits and settled prompt records, and retain each active Run continuation once. BEHAVIOR CHANGE: Execution checkpoints use wire version 2; native stores upgrade atomically from layouts 25 or 26 to 27, which older releases cannot reopen. diff --git a/.changeset/pre/tool-cycle-simplify.md b/.changeset/pre/tool-cycle-simplify.md deleted file mode 100644 index 3aa2d594..00000000 --- a/.changeset/pre/tool-cycle-simplify.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-sql": patch -"@yielded/agent-storage-cloudflare": patch ---- - -Remove repeated checks, reads, and unused policy preparation from durable tool cycles. diff --git a/.changeset/pre/transfer-journal-metadata.md b/.changeset/pre/transfer-journal-metadata.md deleted file mode 100644 index 1afb611a..00000000 --- a/.changeset/pre/transfer-journal-metadata.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Avoid duplicating durable journal metadata while preparing conversation history. diff --git a/.changeset/pre/transient-model-retries.md b/.changeset/pre/transient-model-retries.md deleted file mode 100644 index 16222e52..00000000 --- a/.changeset/pre/transient-model-retries.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": minor ---- - -Add `AgentPolicy.modelRetries` to retry transient model failures before content streams, honoring provider retry delays and requiring readonly hosted tools. diff --git a/.changeset/pre/transient-native-rpc-tracing.md b/.changeset/pre/transient-native-rpc-tracing.md deleted file mode 100644 index 33893c87..00000000 --- a/.changeset/pre/transient-native-rpc-tracing.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": minor -"@yielded/agent-storage-cloudflare": patch ---- - -Add opt-in native Thread RPC tracing with binding/method client spans, transient current-span propagation, and typed receiver invocation hooks. Remove routine storage codec, failpoint-wrapper, and engine identifier-helper spans while preserving validation, failures, and I/O tracing. - -BEHAVIOR CHANGE: Upgrade the host's `effect-cf` dependency to `^0.34.0` for the native tracing contract. diff --git a/.changeset/pre/travel-current-model.md b/.changeset/pre/travel-current-model.md deleted file mode 100644 index 497e8f80..00000000 --- a/.changeset/pre/travel-current-model.md +++ /dev/null @@ -1,4 +0,0 @@ ---- ---- - -Use hosted search and responsive input steering while delegated scouts report progress and complete automatically. Remove superseded planner definitions and research-plan approval controls; cancel previously paused scouts before starting fresh research. diff --git a/.changeset/pre/trim-worker-update-repair-reads.md b/.changeset/pre/trim-worker-update-repair-reads.md deleted file mode 100644 index 682e29cf..00000000 --- a/.changeset/pre/trim-worker-update-repair-reads.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Avoid redundant reads while repairing worker update deliveries. diff --git a/.changeset/pre/trusted-tool-failure-observer.md b/.changeset/pre/trusted-tool-failure-observer.md deleted file mode 100644 index 099608a9..00000000 --- a/.changeset/pre/trusted-tool-failure-observer.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent-platform-node": minor -"@yielded/agent-platform-cloudflare": minor -"@yielded/agent": minor ---- - -Expose non-propagating Tool failures to an opt-in trusted local observer, preserving live Causes without automatic export. Install the same observer through durable Node and Cloudflare runtime options while excluding settled-call replay. diff --git a/.changeset/pre/turn-commit-work.md b/.changeset/pre/turn-commit-work.md deleted file mode 100644 index d35194c6..00000000 --- a/.changeset/pre/turn-commit-work.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reduce work between model calls while preserving durable tool results and usage accounting. diff --git a/.changeset/pre/typed-agent-model-provision.md b/.changeset/pre/typed-agent-model-provision.md deleted file mode 100644 index 483a2ed8..00000000 --- a/.changeset/pre/typed-agent-model-provision.md +++ /dev/null @@ -1,6 +0,0 @@ ---- ---- - -Construct agents with `Agent.make` and execute Definitions with native model Layers through `Effect.provide`. Accept Schema-encoded inputs in `run`, `stream`, and `start`, and decode external data through `runUnknown`, `streamUnknown`, and `startUnknown`. - -BEHAVIOR CHANGE: Replace `Agent.define` with `Agent.make`; move inputs typed as `unknown` to the explicit unknown-input operations. diff --git a/.changeset/pre/typed-background-updates.md b/.changeset/pre/typed-background-updates.md deleted file mode 100644 index 29c68378..00000000 --- a/.changeset/pre/typed-background-updates.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@yielded/agent-testing": patch -"@yielded/agent-storage-memory": minor -"@yielded/agent-storage-sqlite": minor -"@yielded/agent-storage-cloudflare": minor -"@yielded/agent-platform-node": minor -"@yielded/agent-platform-cloudflare": minor -"@yielded/agent": minor ---- - -Accept Agent definitions directly in background subagent tools and declare typed intermediate updates on Agents. Deliver opted-in worker findings to the parent before completion, with durable retention, ordering, and bounded backpressure. diff --git a/.changeset/pre/typed-budget-settlement.md b/.changeset/pre/typed-budget-settlement.md deleted file mode 100644 index 4cd864cf..00000000 --- a/.changeset/pre/typed-budget-settlement.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -"@yielded/agent": minor ---- - -Typed budget dimension on durable settlements (RUN-011, #83): the canonical `SubmissionSettled` -record additively persists `exhausted` (`"tokens" | "tool-calls" | "turns"`) beside -`finishReason: "budget-exhausted"` for a completed soft landing, and `policyLimit` (the typed -`AgentPolicyError.limit`) beside the bounded `{errorTag, message}` failure projection for a -`failed` hard-rail settlement — consumers read the dimension typed instead of parsing message -text. Decode is family-bound fail-closed (`exhausted` only with the budget-exhausted -finishReason, `policyLimit` only on a failed outcome) and histories persisted before the -metadata existed keep decoding with it absent (schemaVersion 1 unchanged). -`@effect-agent/core` now exports the `ExhaustedLimit` and `PolicyLimit` literal schemas backing -the fields. diff --git a/.changeset/pre/typed-memory-namespaces.md b/.changeset/pre/typed-memory-namespaces.md deleted file mode 100644 index ddaeca41..00000000 --- a/.changeset/pre/typed-memory-namespaces.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sqlite": patch ---- - -Define memory namespaces with branded Schema identities and retain their types through reads, writes, and semantic indexing. Use one canonical address for document, receipt, and index isolation. - -BEHAVIOR CHANGE: Replace raw namespace strings with `MemoryNamespace.define(...).make(...)`, use `.Wire` Schemas at heterogeneous transport boundaries, and reset incompatible development memory and prepared processor data. diff --git a/.changeset/pre/typed-run-disposition.md b/.changeset/pre/typed-run-disposition.md deleted file mode 100644 index 3a9370fb..00000000 --- a/.changeset/pre/typed-run-disposition.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent": minor ---- - -Add a Definition-owned Schema boundary for typed application run dispositions and persist valid -ordinary-completion values on canonical `SubmissionSettled` records across crash recovery and -replay, including materialization through the public durable Settlement API. diff --git a/.changeset/pre/unbounded-counts-private-causes.md b/.changeset/pre/unbounded-counts-private-causes.md deleted file mode 100644 index 3ffd6988..00000000 --- a/.changeset/pre/unbounded-counts-private-causes.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Allow `null` turn, tool-call, and native browser command ceilings when the host owns execution lifetime. Preserve private browser and tool-validation causes, including a failed completion when exhaustion prevents correction. diff --git a/.changeset/pre/unbounded-thread-lifetime.md b/.changeset/pre/unbounded-thread-lifetime.md deleted file mode 100644 index fb733ced..00000000 --- a/.changeset/pre/unbounded-thread-lifetime.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"@yielded/agent": minor -"@yielded/agent-storage-memory": minor -"@yielded/agent-storage-sql": minor -"@yielded/agent-storage-sqlite": minor -"@yielded/agent-storage-postgres": minor -"@yielded/agent-storage-cloudflare": minor ---- - -Remove per-Thread conversation quotas and reuse messaging and subscription capacity after work settles or its retention window expires, preserving exact receipts and host capacity bounds. Upgrade released layout-25 stores and standalone Cloudflare subscription stores v3 atomically on open; custom Thread stores must count peer sends at the request's `nowMillis`. diff --git a/.changeset/pre/unchanged-native-maintenance.md b/.changeset/pre/unchanged-native-maintenance.md deleted file mode 100644 index 79a76735..00000000 --- a/.changeset/pre/unchanged-native-maintenance.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-platform-cloudflare": patch ---- - -Skip unchanged Cloudflare maintenance state writes during native turns. diff --git a/.changeset/pre/unknown-abort-recovery.md b/.changeset/pre/unknown-abort-recovery.md deleted file mode 100644 index 99d6b558..00000000 --- a/.changeset/pre/unknown-abort-recovery.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@yielded/agent-storage-memory": patch -"@yielded/agent-storage-sqlite": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-platform-cloudflare": patch -"@yielded/agent": patch ---- - -Allow durably authorized aborts to settle unknown submissions and release queued followers without replaying uncertain tools. Quiesce Cloudflare maintenance for ready followers behind an unresolved external wait. diff --git a/.changeset/pre/validate-changed-continuation-bytes.md b/.changeset/pre/validate-changed-continuation-bytes.md deleted file mode 100644 index 73d3e54e..00000000 --- a/.changeset/pre/validate-changed-continuation-bytes.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reduce repeated validation when recording durable progress while retaining canonical byte limits. diff --git a/.changeset/pre/verified-pr-review.md b/.changeset/pre/verified-pr-review.md deleted file mode 100644 index 814d7648..00000000 --- a/.changeset/pre/verified-pr-review.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent-pr-review": patch ---- - -Review independent pull-request defects against repository source in one bounded run while keeping incremental findings within the changed scope. BEHAVIOR CHANGE: invoke `reviewer.review` with an authorized, immutable `ReviewRepository` and use the `@effect-agent review` commands; direct definition/binding access, internal policy/sanitizer exports, the `style` category, and legacy slash commands are removed. diff --git a/.changeset/pre/warm-owned-thread-state.md b/.changeset/pre/warm-owned-thread-state.md deleted file mode 100644 index a82ad860..00000000 --- a/.changeset/pre/warm-owned-thread-state.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-storage-cloudflare": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Keep Cloudflare thread and submission state in bounded write-through memory, reuse decoded journal projections, and serve warm recovery snapshots without SQLite reads. Quiesce port operations during direct SQL maintenance and call `DoThreadStore.invalidate(ctx.storage)` before resuming them; adapter writes maintain the cache automatically, and stored data needs no reset. diff --git a/.changeset/pre/web-capture-budget.md b/.changeset/pre/web-capture-budget.md deleted file mode 100644 index d30ba76b..00000000 --- a/.changeset/pre/web-capture-budget.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@yielded/agent": patch -"@yielded/agent-platform-cloudflare": patch ---- - -Raise the default web-capture response budget to 5 MiB and accept large page text and scraped elements within that budget. Preserve oversized tool outputs with a host-provided store and retrieve omitted text through `read_tool_result`, including a private R2 adapter for Cloudflare hosts. diff --git a/.changeset/pre/worker-known-tail.md b/.changeset/pre/worker-known-tail.md deleted file mode 100644 index 1cbbc94a..00000000 --- a/.changeset/pre/worker-known-tail.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@yielded/agent": patch ---- - -Reduce worker origin and stop-request latency without weakening producer or history fencing. diff --git a/.changeset/pre/workflow-durable-host.md b/.changeset/pre/workflow-durable-host.md deleted file mode 100644 index 9001240b..00000000 --- a/.changeset/pre/workflow-durable-host.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -"@yielded/agent-platform-node": minor -"@yielded/agent-platform-cloudflare": minor -"@yielded/agent-testing": minor -"@yielded/agent": minor ---- - -Run existing registered agents through an application-supplied Effect Workflow engine with durable dispatch repair. Add SQLite dispatch storage, a scoped Node repair trigger, and bounded durable processing with attempt-scoped ownership release. - -BEHAVIOR CHANGE: Replace `NodeDurableRuntime` and its `Options`, `Config`, `ConfigValue`, `Services`, and `InitializationError` exports with the corresponding `NodeDurableAgentRuntime` names. - -BEHAVIOR CHANGE: Register agents with `DurableAgentRuntime.layerRegistered` or `NodeDurableAgentRuntime.layerRegistered`, and use `layerWithBindings` for precompiled bindings. Call `processThreadResolved(threadId)` and run the `runResolvedWorker` Effect without binding arguments; use `NodeDurableHost.layer` and `ThreadMaintenance.layer` as Layer values over an already-assembled runtime. - -BEHAVIOR CHANGE: Supply `WakeScheduler`, `ToolReconciler`, and `DurableRuntimeFailpoint` when calling `runChaosPlan`, which constructs registered runtimes for its delegation fixtures. diff --git a/.changeset/pre/yielded-agent-namespace.md b/.changeset/pre/yielded-agent-namespace.md deleted file mode 100644 index 5978a26e..00000000 --- a/.changeset/pre/yielded-agent-namespace.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -"@yielded/agent": minor -"@yielded/agent-ai-decision": minor -"@yielded/agent-platform-cloudflare": minor -"@yielded/agent-platform-node": minor -"@yielded/agent-pr-review": minor -"@yielded/agent-storage-cloudflare": minor -"@yielded/agent-storage-memory": minor -"@yielded/agent-storage-postgres": minor -"@yielded/agent-storage-sql": minor -"@yielded/agent-storage-sqlite": minor -"@yielded/agent-testing": minor ---- - -Move Effect Agent to `@yielded/agent` and its `@yielded/agent-*` adapters. Update dependencies and import prefixes together; APIs, service identities, and stored formats remain unchanged. diff --git a/.changeset/rename-to-systemfsoftware-scope.md b/.changeset/rename-to-systemfsoftware-scope.md new file mode 100644 index 00000000..90ec361c --- /dev/null +++ b/.changeset/rename-to-systemfsoftware-scope.md @@ -0,0 +1,8 @@ +--- +"@systemfsoftware/agent": none +"@systemfsoftware/agent-platform-node": none +"@systemfsoftware/agent-storage-sql": none +"@systemfsoftware/agent-storage-sqlite": none +--- + +Publish under the `@systemfsoftware` scope, starting at 0.1.0. diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ca577b24..64faff5e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,6 +52,14 @@ jobs: - run: pnpm check:package-purity - run: pnpm check:pack + changeset: + name: change intent + if: github.event_name == 'pull_request' && github.head_ref != 'changeset-release/main' + uses: systemfsoftware/pnpm-release-management/.github/workflows/changeset-check.yml@1e897828d917341fb7dd444c7bbd6cfa0998caa9 + permissions: + contents: read + pull-requests: read + test: name: test (node ${{ matrix.node }}) runs-on: ubuntu-latest @@ -72,19 +80,24 @@ jobs: - run: pnpm install --frozen-lockfile - run: pnpm test - # The one check the ruleset requires and the merge queue gates on. List every other job in `needs`: a job left out is - # not gated. The job always runs, and any dependency that did not conclude `success` fails it. + # The one check the ruleset requires and the merge queue gates on; the name matches the shared CI of the other + # systemfsoftware repositories. List every other job in `needs`: a job left out is not gated. The job always runs, + # and any dependency that did not conclude `success` fails it, so a run that did not execute the gate can never + # stand in for one that passed. The change-intent job is skipped on a push and on the release pull request. check: name: checks / check runs-on: ubuntu-latest timeout-minutes: 5 - needs: [static-checks, test] + needs: [static-checks, changeset, test] if: ${{ always() }} steps: - name: Require every job to succeed env: STATIC_CHECKS: ${{ needs.static-checks.result }} TEST: ${{ needs.test.result }} + CHANGESET: ${{ needs.changeset.result }} + EVENT: ${{ github.event_name }} + HEAD_REF: ${{ github.head_ref }} run: | status=0 for pair in "static-checks:$STATIC_CHECKS" "test:$TEST"; do @@ -93,4 +106,12 @@ jobs: *) echo "A required job finished as: $pair"; status=1 ;; esac done + if [ "$CHANGESET" != success ]; then + if [ "$CHANGESET" = skipped ] && { [ "$EVENT" != pull_request ] || [ "$HEAD_REF" = changeset-release/main ]; }; then + : + else + echo "A required job finished as: changeset:$CHANGESET" + status=1 + fi + fi exit "$status" diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml new file mode 100644 index 00000000..c9e286db --- /dev/null +++ b/.github/workflows/nix.yml @@ -0,0 +1,20 @@ +name: Nix + +on: + push: + branches: [main] + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.sha || github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + +jobs: + nix: + name: nix + uses: systemfsoftware/systemfsoftware/.github/workflows/reusable-nix.yml@15b4d2ab1e2af0a154fad2b9af7bd1f6449b3606 + with: + systems: '[{"system": "x86_64-linux", "runner": "ubuntu-latest"}]' diff --git a/.github/workflows/release-checks.yml b/.github/workflows/release-checks.yml new file mode 100644 index 00000000..4f472e67 --- /dev/null +++ b/.github/workflows/release-checks.yml @@ -0,0 +1,128 @@ +name: Release checks + +# The shared release workflow dispatches `ci-workflow` on the release PR branch. That branch changes only the +# version surfaces, and its tree is proved by the merge-queue draft, which runs the full CI on the merged tree: that +# is the binding gate. So this run does not rebuild the matrix for a version bump. It reuses the verdict main's own +# CI reported for the commit the release branch is based on, and it lints the squash message the release PR carries. +# Both jobs always run: a verdict that never reported, is still running past the wait, or did not conclude `success` +# fails the first, and a missing pull request fails the second, so neither can pass by being skipped. +on: + workflow_dispatch: + +permissions: + contents: read + actions: read + pull-requests: read + +jobs: + check: + name: checks / check + runs-on: ubuntu-latest + timeout-minutes: 25 + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + fetch-depth: 0 + persist-credentials: false + - id: base + name: The release branch changes only version surfaces + run: | + set -euo pipefail + git fetch --no-tags origin main + base=$(git merge-base HEAD origin/main) + echo "sha=$base" >> "$GITHUB_OUTPUT" + unexpected=$(git diff --name-status "$base" HEAD | grep -Ev '^(M[[:space:]]+packages/[^/]+/(package\.json|CHANGELOG\.md)|D[[:space:]]+\.changeset/[^/]+\.md)$' || true) + if [ -n "$unexpected" ]; then + echo "::error::the release branch changes files beyond the version surfaces, so main's verdict does not apply:" + printf '%s\n' "$unexpected" + exit 1 + fi + # A manifest may change its version value and nothing else, compared structurally so formatting and key + # order cannot hide a second change. + while IFS= read -r -d '' manifest; do + before=$(git show "$base:$manifest" | jq -S 'del(.version)') + after=$(jq -S 'del(.version)' "$manifest") + if [ "$before" != "$after" ]; then + echo "::error::$manifest changes more than its version" + exit 1 + fi + if [ "$(git show "$base:$manifest" | jq -r .version)" = "$(jq -r .version "$manifest")" ]; then + echo "::error::$manifest keeps its version" + exit 1 + fi + done < <(git diff -z --name-only "$base" HEAD -- 'packages/*/package.json') + - name: Main's CI on the base commit passed + env: + BASE: ${{ steps.base.outputs.sha }} + GH_TOKEN: ${{ github.token }} + run: | + set -euo pipefail + deadline=$((SECONDS + 1200)) + missing=0 + while :; do + if ! run=$(gh api --method GET "repos/$GITHUB_REPOSITORY/actions/workflows/ci.yml/runs" \ + -f head_sha="$BASE" -f event=push -f per_page=1 --jq '.workflow_runs[0] // empty' 2>/dev/null); then + status=unreachable + elif [ -z "$run" ]; then + status=missing + missing=$((missing + 1)) + else + status=$(jq -r .status <<< "$run") + fi + [ "$status" = completed ] && break + if [ "$missing" -ge 6 ] || [ "$SECONDS" -ge "$deadline" ]; then + echo "::error::main's CI for $BASE is ${status}; the release reuses that verdict and cannot proceed without a completed one" + exit 1 + fi + sleep 20 + done + id=$(jq -r .id <<< "$run") + conclusion=$(jq -r .conclusion <<< "$run") + aggregate=unreachable + for _ in 1 2 3; do + if out=$(gh api --method GET "repos/$GITHUB_REPOSITORY/actions/runs/$id/jobs" \ + -f filter=latest -f per_page=100 \ + --jq '[.jobs[] | select(.name == "checks / check")][0].conclusion // "missing"' 2>/dev/null); then + aggregate=$out + break + fi + sleep 5 + done + if [ "$conclusion" != success ] || [ "$aggregate" != success ]; then + echo "::error::main's CI run $id concluded ${conclusion} with checks / check ${aggregate}; the release reuses only a success" + exit 1 + fi + + squash-message: + name: squash message + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1 + - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 + with: + node-version: 24 + - run: pnpm install --frozen-lockfile --filter . + - name: Read the release pull request's message + env: + GH_TOKEN: ${{ github.token }} + run: | + set -euo pipefail + pr=$(gh api --method GET "repos/$GITHUB_REPOSITORY/pulls" -f state=open -f head="$GITHUB_REPOSITORY_OWNER:$GITHUB_REF_NAME" --jq '.[0] // empty') + if [ -z "$pr" ]; then + echo "::error::no open pull request for $GITHUB_REF_NAME, so there is no squash message to lint" + exit 1 + fi + jq -r .title <<< "$pr" > "$RUNNER_TEMP/pr-title" + jq -r '.body // ""' <<< "$pr" > "$RUNNER_TEMP/pr-body" + - name: Lint the squash message + run: | + set -euo pipefail + title=$(<"$RUNNER_TEMP/pr-title") + body=$(<"$RUNNER_TEMP/pr-body") + title=${title//$'\r'/} + body=${body//$'\r'/} + printf '%s\n\n%s' "$title" "$body" | pnpm exec commitlint --verbose diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..3cf391d0 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,35 @@ +name: Release + +on: + push: + branches: [main] + workflow_dispatch: + +concurrency: + group: release-${{ github.ref }} + cancel-in-progress: false + +permissions: + actions: write + contents: write + pull-requests: write + id-token: write + +jobs: + release: + if: github.ref == 'refs/heads/main' + uses: systemfsoftware/pnpm-release-management/.github/workflows/release.yml@1e897828d917341fb7dd444c7bbd6cfa0998caa9 + with: + # The release PR changes only version surfaces, so its own tree is proved by the merge-queue draft's full CI. + # `release-checks.yml` reuses main's verdict for the base commit and lints the squash message instead of + # rebuilding the matrix for a version bump. + ci-workflow: release-checks.yml + npm-publish: true + noop: + name: no release off main, so the run concludes success, not skipped + if: github.ref != 'refs/heads/main' + runs-on: ubuntu-latest + timeout-minutes: 1 + permissions: {} + steps: + - run: echo "Release writes only from refs/heads/main; $GITHUB_REF runs nothing." diff --git a/.gitignore b/.gitignore index 34bb3960..532e444c 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,6 @@ scripts/**/*.d.ts test/fixtures/*.d.ts .vitest/ .pack/ +.direnv/ +/result +/result-* diff --git a/AGENTS.md b/AGENTS.md index 598e99a2..b08802a6 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,7 +1,7 @@ # agent -Effect-native agents with durable Threads, published as four packages: `@yielded/agent`, -`@yielded/agent-storage-sql`, `@yielded/agent-storage-sqlite` and `@yielded/agent-platform-node`. +Effect-native agents with durable Threads, published as four packages: `@systemfsoftware/agent`, +`@systemfsoftware/agent-storage-sql`, `@systemfsoftware/agent-storage-sqlite` and `@systemfsoftware/agent-platform-node`. This repository is public: nothing private goes in files, commit messages, pull requests or comments. ## Commands diff --git a/CODING_STANDARDS.md b/CODING_STANDARDS.md index eee701c6..1c269d0f 100644 --- a/CODING_STANDARDS.md +++ b/CODING_STANDARDS.md @@ -47,8 +47,8 @@ fully enforces; each names what enforces it, or says that review does. ## Package dependency direction ```text -@yielded/agent <- storage-sql <- storage-sqlite -@yielded/agent + selected adapters <- platform-node +@systemfsoftware/agent <- storage-sql <- storage-sqlite +@systemfsoftware/agent + selected adapters <- platform-node ``` An inward package must not import an outward package. If a feature appears to require that, define diff --git a/README.md b/README.md index 0d878431..3b917743 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,8 @@

- npm - CI + npm + CI MIT license

@@ -42,11 +42,11 @@ There is no exactly-once external execution guarantee. ## Try it ```sh -bun add @yielded/agent@beta effect +bun add @systemfsoftware/agent@beta effect ``` ```ts -import { Agent, AgentRuntime } from '@yielded/agent' +import { Agent, AgentRuntime } from '@systemfsoftware/agent' import { Schema } from 'effect' import { Toolkit } from 'effect/ai' diff --git a/flake.lock b/flake.lock new file mode 100644 index 00000000..05224e6e --- /dev/null +++ b/flake.lock @@ -0,0 +1,927 @@ +{ + "nodes": { + "bend": { + "inputs": { + "nixpkgs": [ + "pnpm-release-management", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1794682988, + "narHash": "sha256-9x/0tizq1exCQxTec4xMDOj1biv5b2R6kWIi73P87zM=", + "owner": "bendlang", + "repo": "bend", + "rev": "f0cf0a7c573145501981c44d9c33e326185f008e", + "type": "github" + }, + "original": { + "owner": "bendlang", + "repo": "bend", + "type": "github" + } + }, + "comment-checker": { + "inputs": { + "nixpkgs": "nixpkgs", + "pnpm-release-management": "pnpm-release-management", + "rust-overlay": "rust-overlay_2" + }, + "locked": { + "lastModified": 1794548726, + "narHash": "sha256-tZ8LWVuUMyIolrJnFd6koGkNJr4qxK0i5A6zC2L062A=", + "owner": "systemfsoftware", + "repo": "comment-checker", + "rev": "f3fd49afd0f14fdf629197f1ff54aacebefe8f1d", + "type": "github" + }, + "original": { + "owner": "systemfsoftware", + "repo": "comment-checker", + "type": "github" + } + }, + "comment-checker_2": { + "inputs": { + "nixpkgs": [ + "core", + "comment-checker", + "pnpm-release-management", + "nixpkgs" + ], + "rust-overlay": "rust-overlay" + }, + "locked": { + "lastModified": 1790884787, + "narHash": "sha256-XZz0bdSY5zjlRDme0dfC98oYcAf3WOpMCueoU39iXjY=", + "owner": "systemfsoftware", + "repo": "comment-checker", + "rev": "3bfedd853c1d6dca666e65e71e9f8a31d47db336", + "type": "github" + }, + "original": { + "owner": "systemfsoftware", + "repo": "comment-checker", + "type": "github" + } + }, + "comment-checker_3": { + "inputs": { + "nixpkgs": [ + "core", + "gritlint", + "pnpm-release-management", + "nixpkgs" + ], + "rust-overlay": "rust-overlay_3" + }, + "locked": { + "lastModified": 1790884787, + "narHash": "sha256-XZz0bdSY5zjlRDme0dfC98oYcAf3WOpMCueoU39iXjY=", + "owner": "systemfsoftware", + "repo": "comment-checker", + "rev": "3bfedd853c1d6dca666e65e71e9f8a31d47db336", + "type": "github" + }, + "original": { + "owner": "systemfsoftware", + "repo": "comment-checker", + "type": "github" + } + }, + "comment-checker_4": { + "inputs": { + "nixpkgs": [ + "core", + "pnpm-release-management", + "nixpkgs" + ], + "pnpm-release-management": "pnpm-release-management_4", + "rust-overlay": "rust-overlay_6" + }, + "locked": { + "lastModified": 1794548726, + "narHash": "sha256-tZ8LWVuUMyIolrJnFd6koGkNJr4qxK0i5A6zC2L062A=", + "owner": "systemfsoftware", + "repo": "comment-checker", + "rev": "f3fd49afd0f14fdf629197f1ff54aacebefe8f1d", + "type": "github" + }, + "original": { + "owner": "systemfsoftware", + "repo": "comment-checker", + "type": "github" + } + }, + "comment-checker_5": { + "inputs": { + "nixpkgs": [ + "core", + "pnpm-release-management", + "comment-checker", + "pnpm-release-management", + "nixpkgs" + ], + "rust-overlay": "rust-overlay_5" + }, + "locked": { + "lastModified": 1790884787, + "narHash": "sha256-XZz0bdSY5zjlRDme0dfC98oYcAf3WOpMCueoU39iXjY=", + "owner": "systemfsoftware", + "repo": "comment-checker", + "rev": "3bfedd853c1d6dca666e65e71e9f8a31d47db336", + "type": "github" + }, + "original": { + "owner": "systemfsoftware", + "repo": "comment-checker", + "type": "github" + } + }, + "comment-checker_6": { + "inputs": { + "nixpkgs": [ + "pnpm-release-management", + "nixpkgs" + ], + "pnpm-release-management": "pnpm-release-management_6", + "rust-overlay": "rust-overlay_8" + }, + "locked": { + "lastModified": 1794559985, + "narHash": "sha256-r+H1HI/IS20s742HSPtwwk3Sx+/eL5dMhzJWXa8TOYQ=", + "owner": "systemfsoftware", + "repo": "comment-checker", + "rev": "42f048b014981b37e36e8c2f8a1cbee4c0bb4eb9", + "type": "github" + }, + "original": { + "owner": "systemfsoftware", + "repo": "comment-checker", + "type": "github" + } + }, + "comment-checker_7": { + "inputs": { + "nixpkgs": [ + "pnpm-release-management", + "comment-checker", + "pnpm-release-management", + "nixpkgs" + ], + "rust-overlay": "rust-overlay_7" + }, + "locked": { + "lastModified": 1790884787, + "narHash": "sha256-XZz0bdSY5zjlRDme0dfC98oYcAf3WOpMCueoU39iXjY=", + "owner": "systemfsoftware", + "repo": "comment-checker", + "rev": "3bfedd853c1d6dca666e65e71e9f8a31d47db336", + "type": "github" + }, + "original": { + "owner": "systemfsoftware", + "repo": "comment-checker", + "type": "github" + } + }, + "core": { + "inputs": { + "comment-checker": "comment-checker", + "gritlint": "gritlint", + "nixpkgs": "nixpkgs_4", + "pnpm-release-management": "pnpm-release-management_3" + }, + "locked": { + "lastModified": 1794548977, + "narHash": "sha256-aur1LL9cO6RTwEmy4pT+e4K8ySwv073U2mkGGIe8+bk=", + "owner": "systemfsoftware", + "repo": "systemfsoftware", + "rev": "15b4d2ab1e2af0a154fad2b9af7bd1f6449b3606", + "type": "github" + }, + "original": { + "owner": "systemfsoftware", + "repo": "systemfsoftware", + "rev": "15b4d2ab1e2af0a154fad2b9af7bd1f6449b3606", + "type": "github" + } + }, + "crane": { + "locked": { + "lastModified": 1787326676, + "narHash": "sha256-lWhBbBvC05/xwivKBBiM2YNizpmgqCgyOIzomvRuwxs=", + "owner": "ipetkov", + "repo": "crane", + "rev": "692f7e9ef2ece8125b466f66f2af532b3edaed0d", + "type": "github" + }, + "original": { + "owner": "ipetkov", + "ref": "v0.24.0", + "repo": "crane", + "type": "github" + } + }, + "gritlint": { + "inputs": { + "crane": "crane", + "nixpkgs": "nixpkgs_3", + "pnpm-release-management": "pnpm-release-management_2", + "rust-overlay": "rust-overlay_4" + }, + "locked": { + "lastModified": 1794547008, + "narHash": "sha256-01i0ullU492Cr+nlOSYOWZ0D9M+Uzi23yLP9vIYXits=", + "owner": "systemfsoftware", + "repo": "gritlint", + "rev": "99ec456979b17dc82a64a52948e6d604ab892b80", + "type": "github" + }, + "original": { + "owner": "systemfsoftware", + "repo": "gritlint", + "type": "github" + } + }, + "importPnpmLock": { + "inputs": { + "nixpkgs": [ + "core", + "comment-checker", + "pnpm-release-management", + "nixpkgs" + ], + "systems": "systems" + }, + "locked": { + "lastModified": 1790096829, + "narHash": "sha256-mnjMXjY/fo5OQH/iYNPijIqo0jAb/z7EhHtfXLlzOrs=", + "owner": "Scrumplex", + "repo": "importPnpmLock.nix", + "rev": "ca18d47b0e98a4b51404f69ce5ab51efb6ebc151", + "type": "github" + }, + "original": { + "owner": "Scrumplex", + "repo": "importPnpmLock.nix", + "rev": "ca18d47b0e98a4b51404f69ce5ab51efb6ebc151", + "type": "github" + } + }, + "importPnpmLock_2": { + "inputs": { + "nixpkgs": [ + "core", + "gritlint", + "pnpm-release-management", + "nixpkgs" + ], + "systems": "systems_2" + }, + "locked": { + "lastModified": 1790096829, + "narHash": "sha256-mnjMXjY/fo5OQH/iYNPijIqo0jAb/z7EhHtfXLlzOrs=", + "owner": "Scrumplex", + "repo": "importPnpmLock.nix", + "rev": "ca18d47b0e98a4b51404f69ce5ab51efb6ebc151", + "type": "github" + }, + "original": { + "owner": "Scrumplex", + "repo": "importPnpmLock.nix", + "rev": "ca18d47b0e98a4b51404f69ce5ab51efb6ebc151", + "type": "github" + } + }, + "importPnpmLock_3": { + "inputs": { + "nixpkgs": [ + "core", + "pnpm-release-management", + "comment-checker", + "pnpm-release-management", + "nixpkgs" + ], + "systems": "systems_3" + }, + "locked": { + "lastModified": 1790096829, + "narHash": "sha256-mnjMXjY/fo5OQH/iYNPijIqo0jAb/z7EhHtfXLlzOrs=", + "owner": "Scrumplex", + "repo": "importPnpmLock.nix", + "rev": "ca18d47b0e98a4b51404f69ce5ab51efb6ebc151", + "type": "github" + }, + "original": { + "owner": "Scrumplex", + "repo": "importPnpmLock.nix", + "rev": "ca18d47b0e98a4b51404f69ce5ab51efb6ebc151", + "type": "github" + } + }, + "importPnpmLock_4": { + "inputs": { + "nixpkgs": [ + "core", + "pnpm-release-management", + "nixpkgs" + ], + "systems": "systems_4" + }, + "locked": { + "lastModified": 1790096829, + "narHash": "sha256-mnjMXjY/fo5OQH/iYNPijIqo0jAb/z7EhHtfXLlzOrs=", + "owner": "Scrumplex", + "repo": "importPnpmLock.nix", + "rev": "ca18d47b0e98a4b51404f69ce5ab51efb6ebc151", + "type": "github" + }, + "original": { + "owner": "Scrumplex", + "repo": "importPnpmLock.nix", + "rev": "ca18d47b0e98a4b51404f69ce5ab51efb6ebc151", + "type": "github" + } + }, + "importPnpmLock_5": { + "inputs": { + "nixpkgs": [ + "pnpm-release-management", + "comment-checker", + "pnpm-release-management", + "nixpkgs" + ], + "systems": "systems_5" + }, + "locked": { + "lastModified": 1790096829, + "narHash": "sha256-mnjMXjY/fo5OQH/iYNPijIqo0jAb/z7EhHtfXLlzOrs=", + "owner": "Scrumplex", + "repo": "importPnpmLock.nix", + "rev": "ca18d47b0e98a4b51404f69ce5ab51efb6ebc151", + "type": "github" + }, + "original": { + "owner": "Scrumplex", + "repo": "importPnpmLock.nix", + "rev": "ca18d47b0e98a4b51404f69ce5ab51efb6ebc151", + "type": "github" + } + }, + "importPnpmLock_6": { + "inputs": { + "nixpkgs": [ + "pnpm-release-management", + "nixpkgs" + ], + "systems": "systems_6" + }, + "locked": { + "lastModified": 1790096829, + "narHash": "sha256-mnjMXjY/fo5OQH/iYNPijIqo0jAb/z7EhHtfXLlzOrs=", + "owner": "Scrumplex", + "repo": "importPnpmLock.nix", + "rev": "ca18d47b0e98a4b51404f69ce5ab51efb6ebc151", + "type": "github" + }, + "original": { + "owner": "Scrumplex", + "repo": "importPnpmLock.nix", + "rev": "ca18d47b0e98a4b51404f69ce5ab51efb6ebc151", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1790652569, + "narHash": "sha256-641r7xrlSOHYoktL9/aArPIYNgZJ9eM5URzSEOtPJDY=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "b6c8664de9b6cc07fe5666a29f91884ba81197c4", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_2": { + "locked": { + "lastModified": 1791191277, + "narHash": "sha256-i8KuaINOYLvB2oQikGvtRmdZRxATRxsI9Yad2pp7dEA=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "aa48d347080940b8a2b8d2f48228674e280a3514", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_3": { + "locked": { + "lastModified": 1791191277, + "narHash": "sha256-i8KuaINOYLvB2oQikGvtRmdZRxATRxsI9Yad2pp7dEA=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "aa48d347080940b8a2b8d2f48228674e280a3514", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_4": { + "locked": { + "lastModified": 1793726008, + "narHash": "sha256-jQp1wKvbwWdLBASTXkSi/VYmDJ5AbBi1WvcMt9HWJC8=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "1d060086d60cb76a40cf37109f979d88a5bd6396", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_5": { + "locked": { + "lastModified": 1791191277, + "narHash": "sha256-i8KuaINOYLvB2oQikGvtRmdZRxATRxsI9Yad2pp7dEA=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "aa48d347080940b8a2b8d2f48228674e280a3514", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_6": { + "locked": { + "lastModified": 1791191277, + "narHash": "sha256-i8KuaINOYLvB2oQikGvtRmdZRxATRxsI9Yad2pp7dEA=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "aa48d347080940b8a2b8d2f48228674e280a3514", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_7": { + "locked": { + "lastModified": 1794386569, + "narHash": "sha256-x9sADJvoVG0L6RejZB+/BB4YiGZFBZrfTlhF4uBq1tQ=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "d4f25a3e562008648d45bcf2d70bcc7422cad84e", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "pnpm-release-management": { + "inputs": { + "comment-checker": "comment-checker_2", + "importPnpmLock": "importPnpmLock", + "nixpkgs": "nixpkgs_2" + }, + "locked": { + "lastModified": 1791502173, + "narHash": "sha256-CG3v+ncF9PDDhiDd49u8OZXJw+i7UZHzKXOmFZr3alc=", + "owner": "systemfsoftware", + "repo": "pnpm-release-management", + "rev": "fbf617135160fbde74c64835d21dd918d13538d7", + "type": "github" + }, + "original": { + "owner": "systemfsoftware", + "repo": "pnpm-release-management", + "type": "github" + } + }, + "pnpm-release-management_2": { + "inputs": { + "comment-checker": "comment-checker_3", + "importPnpmLock": "importPnpmLock_2", + "nixpkgs": [ + "core", + "gritlint", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1791596974, + "narHash": "sha256-fE5LJdLoFR/aTaKhWCf3Xzgn0fx19AYQB2uEVVr25wM=", + "owner": "systemfsoftware", + "repo": "pnpm-release-management", + "rev": "b9b4a1d48cc16241b33f9afd8ab99b82b05ce04f", + "type": "github" + }, + "original": { + "owner": "systemfsoftware", + "repo": "pnpm-release-management", + "rev": "b9b4a1d48cc16241b33f9afd8ab99b82b05ce04f", + "type": "github" + } + }, + "pnpm-release-management_3": { + "inputs": { + "comment-checker": "comment-checker_4", + "importPnpmLock": "importPnpmLock_4", + "nixpkgs": [ + "core", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1794548935, + "narHash": "sha256-RyWkHbKKZB4SiOJeaoAGsKseapGXysPs6/OcJk3cgpA=", + "owner": "systemfsoftware", + "repo": "pnpm-release-management", + "rev": "43f24b21b3c475acd03eb576bba6cf48d7ca8e2f", + "type": "github" + }, + "original": { + "owner": "systemfsoftware", + "repo": "pnpm-release-management", + "rev": "43f24b21b3c475acd03eb576bba6cf48d7ca8e2f", + "type": "github" + } + }, + "pnpm-release-management_4": { + "inputs": { + "comment-checker": "comment-checker_5", + "importPnpmLock": "importPnpmLock_3", + "nixpkgs": "nixpkgs_5" + }, + "locked": { + "lastModified": 1791502173, + "narHash": "sha256-CG3v+ncF9PDDhiDd49u8OZXJw+i7UZHzKXOmFZr3alc=", + "owner": "systemfsoftware", + "repo": "pnpm-release-management", + "rev": "fbf617135160fbde74c64835d21dd918d13538d7", + "type": "github" + }, + "original": { + "owner": "systemfsoftware", + "repo": "pnpm-release-management", + "type": "github" + } + }, + "pnpm-release-management_5": { + "inputs": { + "bend": "bend", + "comment-checker": "comment-checker_6", + "importPnpmLock": "importPnpmLock_6", + "nixpkgs": "nixpkgs_7" + }, + "locked": { + "lastModified": 1795202863, + "narHash": "sha256-0d65tRr6t/9aBjSmtI+627Td3+dpolcO5QBN+qsCKrQ=", + "owner": "systemfsoftware", + "repo": "pnpm-release-management", + "rev": "1caca2828ed543409ae9ce0dceb949845a617564", + "type": "github" + }, + "original": { + "owner": "systemfsoftware", + "repo": "pnpm-release-management", + "rev": "1caca2828ed543409ae9ce0dceb949845a617564", + "type": "github" + } + }, + "pnpm-release-management_6": { + "inputs": { + "comment-checker": "comment-checker_7", + "importPnpmLock": "importPnpmLock_5", + "nixpkgs": "nixpkgs_6" + }, + "locked": { + "lastModified": 1791502173, + "narHash": "sha256-CG3v+ncF9PDDhiDd49u8OZXJw+i7UZHzKXOmFZr3alc=", + "owner": "systemfsoftware", + "repo": "pnpm-release-management", + "rev": "fbf617135160fbde74c64835d21dd918d13538d7", + "type": "github" + }, + "original": { + "owner": "systemfsoftware", + "repo": "pnpm-release-management", + "type": "github" + } + }, + "root": { + "inputs": { + "core": "core", + "nixpkgs": [ + "core", + "nixpkgs" + ], + "pnpm-release-management": "pnpm-release-management_5" + } + }, + "rust-overlay": { + "inputs": { + "nixpkgs": [ + "core", + "comment-checker", + "pnpm-release-management", + "comment-checker", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1790756160, + "narHash": "sha256-NPs4nNLxCpho3Ctj8O7t/bzmX0zR8r0zndKghAFEz5U=", + "owner": "oxalica", + "repo": "rust-overlay", + "rev": "ed3a19fd0439ed618ec5fe1e12f0ba69a8be38b5", + "type": "github" + }, + "original": { + "owner": "oxalica", + "repo": "rust-overlay", + "type": "github" + } + }, + "rust-overlay_2": { + "inputs": { + "nixpkgs": [ + "core", + "comment-checker", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1790756160, + "narHash": "sha256-NPs4nNLxCpho3Ctj8O7t/bzmX0zR8r0zndKghAFEz5U=", + "owner": "oxalica", + "repo": "rust-overlay", + "rev": "ed3a19fd0439ed618ec5fe1e12f0ba69a8be38b5", + "type": "github" + }, + "original": { + "owner": "oxalica", + "repo": "rust-overlay", + "type": "github" + } + }, + "rust-overlay_3": { + "inputs": { + "nixpkgs": [ + "core", + "gritlint", + "pnpm-release-management", + "comment-checker", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1790756160, + "narHash": "sha256-NPs4nNLxCpho3Ctj8O7t/bzmX0zR8r0zndKghAFEz5U=", + "owner": "oxalica", + "repo": "rust-overlay", + "rev": "ed3a19fd0439ed618ec5fe1e12f0ba69a8be38b5", + "type": "github" + }, + "original": { + "owner": "oxalica", + "repo": "rust-overlay", + "type": "github" + } + }, + "rust-overlay_4": { + "inputs": { + "nixpkgs": [ + "core", + "gritlint", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1790928989, + "narHash": "sha256-5r3MN/Rx7N9tLapCBmUq6/zCc3C9J7gNif1HybD1fJQ=", + "owner": "oxalica", + "repo": "rust-overlay", + "rev": "368fee9beaab04ca6fe7af28db63caa9badb22fa", + "type": "github" + }, + "original": { + "owner": "oxalica", + "repo": "rust-overlay", + "type": "github" + } + }, + "rust-overlay_5": { + "inputs": { + "nixpkgs": [ + "core", + "pnpm-release-management", + "comment-checker", + "pnpm-release-management", + "comment-checker", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1790756160, + "narHash": "sha256-NPs4nNLxCpho3Ctj8O7t/bzmX0zR8r0zndKghAFEz5U=", + "owner": "oxalica", + "repo": "rust-overlay", + "rev": "ed3a19fd0439ed618ec5fe1e12f0ba69a8be38b5", + "type": "github" + }, + "original": { + "owner": "oxalica", + "repo": "rust-overlay", + "type": "github" + } + }, + "rust-overlay_6": { + "inputs": { + "nixpkgs": [ + "core", + "pnpm-release-management", + "comment-checker", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1790756160, + "narHash": "sha256-NPs4nNLxCpho3Ctj8O7t/bzmX0zR8r0zndKghAFEz5U=", + "owner": "oxalica", + "repo": "rust-overlay", + "rev": "ed3a19fd0439ed618ec5fe1e12f0ba69a8be38b5", + "type": "github" + }, + "original": { + "owner": "oxalica", + "repo": "rust-overlay", + "type": "github" + } + }, + "rust-overlay_7": { + "inputs": { + "nixpkgs": [ + "pnpm-release-management", + "comment-checker", + "pnpm-release-management", + "comment-checker", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1790756160, + "narHash": "sha256-NPs4nNLxCpho3Ctj8O7t/bzmX0zR8r0zndKghAFEz5U=", + "owner": "oxalica", + "repo": "rust-overlay", + "rev": "ed3a19fd0439ed618ec5fe1e12f0ba69a8be38b5", + "type": "github" + }, + "original": { + "owner": "oxalica", + "repo": "rust-overlay", + "type": "github" + } + }, + "rust-overlay_8": { + "inputs": { + "nixpkgs": [ + "pnpm-release-management", + "comment-checker", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1790756160, + "narHash": "sha256-NPs4nNLxCpho3Ctj8O7t/bzmX0zR8r0zndKghAFEz5U=", + "owner": "oxalica", + "repo": "rust-overlay", + "rev": "ed3a19fd0439ed618ec5fe1e12f0ba69a8be38b5", + "type": "github" + }, + "original": { + "owner": "oxalica", + "repo": "rust-overlay", + "type": "github" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, + "systems_2": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, + "systems_3": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, + "systems_4": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, + "systems_5": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, + "systems_6": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 00000000..1dce066e --- /dev/null +++ b/flake.nix @@ -0,0 +1,50 @@ +{ + description = "Effect-native agents with durable Threads, as the agent, agent-storage-sql, agent-storage-sqlite and agent-platform-node packages."; + + nixConfig = { + extra-substituters = "https://nix.systemfsoftware.com"; + extra-trusted-public-keys = "nix-cache-1:wXA8I4DayNW9q6enUyQA/P/nT38pGSTLt374t3gsn7M="; + }; + + inputs = { + core.url = "github:systemfsoftware/systemfsoftware/15b4d2ab1e2af0a154fad2b9af7bd1f6449b3606"; + nixpkgs.follows = "core/nixpkgs"; + pnpm-release-management.url = "github:systemfsoftware/pnpm-release-management/1caca2828ed543409ae9ce0dceb949845a617564"; + }; + + outputs = { self, nixpkgs, pnpm-release-management, ... }: + let + lib = nixpkgs.lib; + systems = [ "x86_64-linux" "aarch64-linux" ]; + forEachSystem = fn: lib.genAttrs systems (system: fn nixpkgs.legacyPackages.${system}); + + workspaceOf = pkgs: + pnpm-release-management.lib.mkPnpmWorkspacePackages { + inherit pkgs; + src = self; + pname = "agent"; + pnpm = pkgs.pnpm_12; + }; + in + { + packages = forEachSystem workspaceOf; + + checks = forEachSystem (pkgs: { + consumer-store = pnpm-release-management.lib.mkPnpmConsumerStore { + inherit pkgs; + src = self; + pname = "agent"; + pnpm = pkgs.pnpm_12; + }; + }); + + devShells = forEachSystem (pkgs: { + default = pkgs.mkShell { + packages = [ + pkgs.nodejs_24 + pkgs.pnpm_12 + ]; + }; + }); + }; +} diff --git a/package.json b/package.json index 9f724440..ee609939 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,6 @@ }, "scripts": { "prepare": "effect-tsgo patch --oxlint --no-typescript", - "changeset": "changeset", "build": "pnpm -r run build", "typecheck": "pnpm -r run typecheck && pnpm run typecheck:scripts", "typecheck:scripts": "effect-tsgo tsrs --noEmit -p scripts/tsconfig.json", @@ -23,8 +22,6 @@ "check:pack": "pnpm -r --filter './packages/*' run check:pack" }, "devDependencies": { - "@changesets/changelog-github": "1.0.1", - "@changesets/cli": "3.0.3", "@commitlint/cli": "^21.2.4", "@commitlint/config-conventional": "^21.2.4", "@commitlint/types": "^21.2.3", @@ -32,8 +29,8 @@ "@effect/tsgo": "catalog:", "@systemfsoftware/oxlint-config-recommended": "^8.0.3", "@types/node": "catalog:", - "@yielded/agent": "workspace:*", - "@yielded/agent-storage-sql": "workspace:*", + "@systemfsoftware/agent": "workspace:*", + "@systemfsoftware/agent-storage-sql": "workspace:*", "dprint": "catalog:", "effect": "catalog:", "esbuild": "catalog:", diff --git a/packages/effect-agent/package.json b/packages/effect-agent/package.json index 4e3c3fd1..f98ab300 100644 --- a/packages/effect-agent/package.json +++ b/packages/effect-agent/package.json @@ -1,13 +1,17 @@ { - "name": "@yielded/agent", - "version": "0.1.0-beta.192", + "name": "@systemfsoftware/agent", + "version": "0.1.0", "description": "Effect-native agents, execution, subagents, and sandbox contracts in one tree-shakeable package.", "license": "MIT", "repository": { "type": "git", - "url": "git+https://github.com/yielded-dev/agent.git", + "url": "git+https://github.com/systemfsoftware/agent.git", "directory": "packages/effect-agent" }, + "bugs": { + "url": "https://github.com/systemfsoftware/agent/issues" + }, + "homepage": "https://github.com/systemfsoftware/agent/tree/main/packages/effect-agent#readme", "files": [ "dist", "src" diff --git a/packages/effect-agent/src/core/FailureDiagnostic.ts b/packages/effect-agent/src/core/FailureDiagnostic.ts index fb335b0e..4390dabf 100644 --- a/packages/effect-agent/src/core/FailureDiagnostic.ts +++ b/packages/effect-agent/src/core/FailureDiagnostic.ts @@ -7,7 +7,7 @@ import * as SchemaTransformation from 'effect/SchemaTransformation' import { strictSchema } from './internal/strict-schema.ts' -const PrivateCause = Symbol.for('@yielded/agent/FailureDiagnostic/PrivateCause') +const PrivateCause = Symbol.for('@systemfsoftware/agent/FailureDiagnostic/PrivateCause') const Text = Schema.String.check(Schema.isMaxLength(16 * 1024)) const Name = Schema.String.check(Schema.isMaxLength(1_024)) diff --git a/packages/effect-agent/src/durable/SubmissionLedgerConformance.ts b/packages/effect-agent/src/durable/SubmissionLedgerConformance.ts index e8083d3e..78fce4e5 100644 --- a/packages/effect-agent/src/durable/SubmissionLedgerConformance.ts +++ b/packages/effect-agent/src/durable/SubmissionLedgerConformance.ts @@ -4553,7 +4553,7 @@ const assignmentSettlement = conformanceCase( ) // Native turn-boundary yielding retained the active FIFO head: -// https://github.com/yielded-dev/agent/commit/2259fc05eec3bfac2a92a8d055953f3482e54735 +// https://github.com/systemfsoftware/agent/commit/2259fc05eec3bfac2a92a8d055953f3482e54735 const cooperativeHandoff = conformanceCase( 'hands off complete Turns without bypassing ownership, ordering, cancellation or approval', ({ ensure, expectSome }) => diff --git a/packages/effect-agent/src/durable/ThreadStoreConformance.ts b/packages/effect-agent/src/durable/ThreadStoreConformance.ts index c2d6acba..483dca39 100644 --- a/packages/effect-agent/src/durable/ThreadStoreConformance.ts +++ b/packages/effect-agent/src/durable/ThreadStoreConformance.ts @@ -479,7 +479,7 @@ const tailInspection = conformanceCase( afterAppend.tailSequence === first.lastSequence, 'Tail inspection must match the latest AppendResult', ) - // Regression: https://github.com/yielded-dev/agent/commit/6a4f4f870 + // Regression: https://github.com/systemfsoftware/agent/commit/6a4f4f870 const identity = yield* store.readIdentity(ThreadIdentityRequest.make({ threadId })) yield* ensure( @@ -686,7 +686,7 @@ const nativeWorkerAccounting = conformanceCase( Option.isSome(yield* getRecord({ threadId, recordId: decodeRecordId('requested') })), 'Proven completion retains its canonical reservation', ) - // Regression: https://github.com/yielded-dev/agent/commit/6a4f4f870 + // Regression: https://github.com/systemfsoftware/agent/commit/6a4f4f870 // Payloads do not select identity: the exact lineage locator precedes the // exact origin locator in the log, while replies retain first/origin/lineage order. tail = yield* append( @@ -786,7 +786,7 @@ const nativeWorkerAccounting = conformanceCase( accounting.tailSequence === tail.lastSequence, 'The accounting snapshot carries the full canonical CAS tail', ) - // Regression: https://github.com/yielded-dev/agent/blob/c721a292205e06185f0136c3ed05dcf53e29ca66/packages/effect-agent/src/durable/SqlThreadNativeReads.ts#L195-L214 + // Regression: https://github.com/systemfsoftware/agent/blob/c721a292205e06185f0136c3ed05dcf53e29ca66/packages/effect-agent/src/durable/SqlThreadNativeReads.ts#L195-L214 tail = yield* append( threadId, batch('stop-worker', [ diff --git a/packages/effect-agent/src/engine/ThreadHistory.ts b/packages/effect-agent/src/engine/ThreadHistory.ts index 12bb914d..2351da4d 100644 --- a/packages/effect-agent/src/engine/ThreadHistory.ts +++ b/packages/effect-agent/src/engine/ThreadHistory.ts @@ -52,7 +52,7 @@ export interface ThreadHistoryRun { /** * History shared by Runs with the same Thread ID. The default layer retains native messages * incrementally in memory for its application Scope, including completed updates before a failure. - * PersistentHistory.layer from @yielded/agent/persistent-history instead commits successful + * PersistentHistory.layer from @systemfsoftware/agent/persistent-history instead commits successful * Runs to an explicit ThreadStore. Durable hosts retain history through their journal hooks. * No implementation may retry model or Tool execution or claim interrupted-work recovery. */ diff --git a/packages/effect-agent/test/capabilities/capabilities.test.ts b/packages/effect-agent/test/capabilities/capabilities.test.ts index 24de8508..74f0819d 100644 --- a/packages/effect-agent/test/capabilities/capabilities.test.ts +++ b/packages/effect-agent/test/capabilities/capabilities.test.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from '@effect/vitest' -import { RunId, ThreadId } from '@yielded/agent/identifiers' -import { layerMemory, Store as ConversationStore, ThreadAppend, toPrompt } from '@yielded/agent/thread' +import { RunId, ThreadId } from '@systemfsoftware/agent/identifiers' +import { layerMemory, Store as ConversationStore, ThreadAppend, toPrompt } from '@systemfsoftware/agent/thread' import * as Prompt from 'effect/ai/Prompt' import * as Clock from 'effect/Clock' import * as Deferred from 'effect/Deferred' diff --git a/packages/effect-agent/test/capabilities/code-mode.test.ts b/packages/effect-agent/test/capabilities/code-mode.test.ts index 79d88c17..728fe6de 100644 --- a/packages/effect-agent/test/capabilities/code-mode.test.ts +++ b/packages/effect-agent/test/capabilities/code-mode.test.ts @@ -1,10 +1,10 @@ import { expect, it } from '@effect/vitest' -import { CodeExecutionHost, CodeExecutionResult, CodeExecutor } from '@yielded/agent/code-executor' -import * as CodeMode from '@yielded/agent/code-mode' -import { ToolExecutionClass } from '@yielded/agent/durable-step' -import { SandboxImplementation } from '@yielded/agent/sandbox' -import { ToolBroker } from '@yielded/agent/tool-broker' -import { CurrentToolCatalog } from '@yielded/agent/tool-exposure' +import { CodeExecutionHost, CodeExecutionResult, CodeExecutor } from '@systemfsoftware/agent/code-executor' +import * as CodeMode from '@systemfsoftware/agent/code-mode' +import { ToolExecutionClass } from '@systemfsoftware/agent/durable-step' +import { SandboxImplementation } from '@systemfsoftware/agent/sandbox' +import { ToolBroker } from '@systemfsoftware/agent/tool-broker' +import { CurrentToolCatalog } from '@systemfsoftware/agent/tool-exposure' import * as Tool from 'effect/ai/Tool' import * as Toolkit from 'effect/ai/Toolkit' import * as Context from 'effect/Context' diff --git a/packages/effect-agent/test/capabilities/context-tools.test.ts b/packages/effect-agent/test/capabilities/context-tools.test.ts index 9f6e5fda..9afee88a 100644 --- a/packages/effect-agent/test/capabilities/context-tools.test.ts +++ b/packages/effect-agent/test/capabilities/context-tools.test.ts @@ -1,8 +1,8 @@ import * as OpenAiClient from '@effect/ai-openai/OpenAiClient' import * as OpenAiLanguageModel from '@effect/ai-openai/OpenAiLanguageModel' import { describe, expect, it } from '@effect/vitest' -import { ContextWindow, ContextWindowStatus } from '@yielded/agent/context-window' -import { RunId, ThreadId } from '@yielded/agent/identifiers' +import { ContextWindow, ContextWindowStatus } from '@systemfsoftware/agent/context-window' +import { RunId, ThreadId } from '@systemfsoftware/agent/identifiers' import * as LanguageModel from 'effect/ai/LanguageModel' import * as Toolkit from 'effect/ai/Toolkit' import * as Effect from 'effect/Effect' diff --git a/packages/effect-agent/test/capabilities/context-tools.types.ts b/packages/effect-agent/test/capabilities/context-tools.types.ts index a3ebfb8e..20d852b0 100644 --- a/packages/effect-agent/test/capabilities/context-tools.types.ts +++ b/packages/effect-agent/test/capabilities/context-tools.types.ts @@ -1,13 +1,18 @@ -import * as Agent from '@yielded/agent/agent' -import { AgentPolicy } from '@yielded/agent/agent-policy' -import * as AgentRuntime from '@yielded/agent/agent-runtime' -import type { ContextHistory, ContextHistoryError } from '@yielded/agent/context-history' -import type { ContextWindow } from '@yielded/agent/context-window' -import type { DurableStep, DurableStepError } from '@yielded/agent/durable-step' -import * as MemoryNamespace from '@yielded/agent/memory-namespace' -import type { MemoryConflict, MemoryReader, MemoryStorageError, MemoryWriter } from '@yielded/agent/memory-store' -import { MemoryKey, MemoryScope } from '@yielded/agent/memory-store' -import type { ThreadHistory } from '@yielded/agent/thread-history' +import * as Agent from '@systemfsoftware/agent/agent' +import { AgentPolicy } from '@systemfsoftware/agent/agent-policy' +import * as AgentRuntime from '@systemfsoftware/agent/agent-runtime' +import type { ContextHistory, ContextHistoryError } from '@systemfsoftware/agent/context-history' +import type { ContextWindow } from '@systemfsoftware/agent/context-window' +import type { DurableStep, DurableStepError } from '@systemfsoftware/agent/durable-step' +import * as MemoryNamespace from '@systemfsoftware/agent/memory-namespace' +import type { + MemoryConflict, + MemoryReader, + MemoryStorageError, + MemoryWriter, +} from '@systemfsoftware/agent/memory-store' +import { MemoryKey, MemoryScope } from '@systemfsoftware/agent/memory-store' +import type { ThreadHistory } from '@systemfsoftware/agent/thread-history' import type * as EffectAiIdGenerator from 'effect/ai/IdGenerator' import type * as LanguageModel from 'effect/ai/LanguageModel' import type * as Model from 'effect/ai/Model' diff --git a/packages/effect-agent/test/capabilities/memory-lifecycle.test.ts b/packages/effect-agent/test/capabilities/memory-lifecycle.test.ts index 5d3fd7f3..ba74e47c 100644 --- a/packages/effect-agent/test/capabilities/memory-lifecycle.test.ts +++ b/packages/effect-agent/test/capabilities/memory-lifecycle.test.ts @@ -1,15 +1,15 @@ import { describe, expect, it } from '@effect/vitest' -import * as Memory from '@yielded/agent/memory' -import * as MemoryNamespace from '@yielded/agent/memory-namespace' +import * as Memory from '@systemfsoftware/agent/memory' +import * as MemoryNamespace from '@systemfsoftware/agent/memory-namespace' import { MemoryAttribution, MemoryContent, type MemoryLookup, MemoryPassage, MemoryRecallLimits, -} from '@yielded/agent/memory-reference' -import { MemoryAccess, revalidateMemoryLookup } from '@yielded/agent/memory-revalidation' -import { ActiveMemoryDocument, MemoryKey, MemoryReader, MemoryScope } from '@yielded/agent/memory-store' +} from '@systemfsoftware/agent/memory-reference' +import { MemoryAccess, revalidateMemoryLookup } from '@systemfsoftware/agent/memory-revalidation' +import { ActiveMemoryDocument, MemoryKey, MemoryReader, MemoryScope } from '@systemfsoftware/agent/memory-store' import * as Effect from 'effect/Effect' import * as Ref from 'effect/Ref' import * as NamespaceSchema from 'effect/Schema' diff --git a/packages/effect-agent/test/capabilities/memory-namespace.types.ts b/packages/effect-agent/test/capabilities/memory-namespace.types.ts index 5abf045f..f61fdc26 100644 --- a/packages/effect-agent/test/capabilities/memory-namespace.types.ts +++ b/packages/effect-agent/test/capabilities/memory-namespace.types.ts @@ -1,6 +1,6 @@ -import * as MemoryNamespace from '@yielded/agent/memory-namespace' -import { type MemoryNamespaceError } from '@yielded/agent/memory-namespace' -import { MemoryAccess } from '@yielded/agent/memory-revalidation' +import * as MemoryNamespace from '@systemfsoftware/agent/memory-namespace' +import { type MemoryNamespaceError } from '@systemfsoftware/agent/memory-namespace' +import { MemoryAccess } from '@systemfsoftware/agent/memory-revalidation' import { ActiveMemoryDocument, applyMemoryWrite, @@ -12,8 +12,8 @@ import { MemoryWrite, type MemoryWriteError, MemoryWriter, -} from '@yielded/agent/memory-store' -import { indexMemorySource, SemanticIndexLimits } from '@yielded/agent/semantic-memory' +} from '@systemfsoftware/agent/memory-store' +import { indexMemorySource, SemanticIndexLimits } from '@systemfsoftware/agent/semantic-memory' import { MemoryIndexCandidate, MemoryIndexQuery, @@ -22,7 +22,7 @@ import { MemoryIndexSource, SemanticMemoryIndex, type SemanticMemoryProfile, -} from '@yielded/agent/semantic-memory-index' +} from '@systemfsoftware/agent/semantic-memory-index' import * as Effect from 'effect/Effect' import * as Schema from 'effect/Schema' diff --git a/packages/effect-agent/test/capabilities/memory-notes.test.ts b/packages/effect-agent/test/capabilities/memory-notes.test.ts index bdb291b8..83612c2f 100644 --- a/packages/effect-agent/test/capabilities/memory-notes.test.ts +++ b/packages/effect-agent/test/capabilities/memory-notes.test.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from '@effect/vitest' -import { DurableStep, DurableStepError } from '@yielded/agent/durable-step' -import * as MemoryNamespace from '@yielded/agent/memory-namespace' -import { MemoryAttribution } from '@yielded/agent/memory-reference' +import { DurableStep, DurableStepError } from '@systemfsoftware/agent/durable-step' +import * as MemoryNamespace from '@systemfsoftware/agent/memory-namespace' +import { MemoryAttribution } from '@systemfsoftware/agent/memory-reference' import { applyMemoryWrite, type MemoryDocument, @@ -12,7 +12,7 @@ import { MemoryStorageError, type MemoryWrite, MemoryWriter, -} from '@yielded/agent/memory-store' +} from '@systemfsoftware/agent/memory-store' import * as IdGenerator from 'effect/ai/IdGenerator' import * as Clock from 'effect/Clock' import * as Effect from 'effect/Effect' diff --git a/packages/effect-agent/test/capabilities/memory.types.ts b/packages/effect-agent/test/capabilities/memory.types.ts index ea850d9d..2ea8d7bc 100644 --- a/packages/effect-agent/test/capabilities/memory.types.ts +++ b/packages/effect-agent/test/capabilities/memory.types.ts @@ -1,5 +1,5 @@ -import * as Memory from '@yielded/agent/memory' -import { type MemoryLookup, MemoryRecallError, MemoryRecallLimits } from '@yielded/agent/memory-reference' +import * as Memory from '@systemfsoftware/agent/memory' +import { type MemoryLookup, MemoryRecallError, MemoryRecallLimits } from '@systemfsoftware/agent/memory-reference' import * as Context from 'effect/Context' import * as Effect from 'effect/Effect' diff --git a/packages/effect-agent/test/capabilities/semantic-memory.test.ts b/packages/effect-agent/test/capabilities/semantic-memory.test.ts index 2d9f140a..475eebe6 100644 --- a/packages/effect-agent/test/capabilities/semantic-memory.test.ts +++ b/packages/effect-agent/test/capabilities/semantic-memory.test.ts @@ -1,7 +1,7 @@ import * as NodeCrypto from '@effect/platform-node/NodeCrypto' import { describe, expect, it } from '@effect/vitest' -import * as MemoryNamespace from '@yielded/agent/memory-namespace' -import { MemoryAccess } from '@yielded/agent/memory-revalidation' +import * as MemoryNamespace from '@systemfsoftware/agent/memory-namespace' +import { MemoryAccess } from '@systemfsoftware/agent/memory-revalidation' import { ActiveMemoryDocument, type MemoryDocument, @@ -10,21 +10,21 @@ import { MemoryScope, type MemoryStorageError, WithdrawnMemoryDocument, -} from '@yielded/agent/memory-store' +} from '@systemfsoftware/agent/memory-store' import { indexMemorySource, querySemanticMemory, SemanticIndexLimits, SemanticQueryLimits, -} from '@yielded/agent/semantic-memory' +} from '@systemfsoftware/agent/semantic-memory' import { MemoryIndexCandidate, type MemoryIndexError, type SemanticMemoryChunk, SemanticMemoryIndex, SemanticMemoryProfile, -} from '@yielded/agent/semantic-memory-index' -import { type SemanticMemoryError } from '@yielded/agent/semantic-memory-revalidation' +} from '@systemfsoftware/agent/semantic-memory-index' +import { type SemanticMemoryError } from '@systemfsoftware/agent/semantic-memory-revalidation' import type * as AiError from 'effect/ai/AiError' import * as EmbeddingModel from 'effect/ai/EmbeddingModel' import type * as CryptoDigest from 'effect/crypto/Digest' diff --git a/packages/effect-agent/test/capabilities/subagent-background.types.ts b/packages/effect-agent/test/capabilities/subagent-background.types.ts index 190ec11e..a646ed12 100644 --- a/packages/effect-agent/test/capabilities/subagent-background.types.ts +++ b/packages/effect-agent/test/capabilities/subagent-background.types.ts @@ -1,11 +1,11 @@ -import * as Agent from '@yielded/agent/agent' -import type { AgentRunDispositionError } from '@yielded/agent/agent-error' -import { MessageRef, type MessageStatus } from '@yielded/agent/messaging' -import { IdempotencyKey, type JoinedToHost, Receipt } from '@yielded/agent/receipt' -import * as Subagent from '@yielded/agent/subagent' -import { SubagentGrant } from '@yielded/agent/subagent-contract' -import type { FollowUpWorkerRequest, StartWorkerRequest, SubagentHost } from '@yielded/agent/subagent-host' -import type { WorkerError } from '@yielded/agent/worker' +import * as Agent from '@systemfsoftware/agent/agent' +import type { AgentRunDispositionError } from '@systemfsoftware/agent/agent-error' +import { MessageRef, type MessageStatus } from '@systemfsoftware/agent/messaging' +import { IdempotencyKey, type JoinedToHost, Receipt } from '@systemfsoftware/agent/receipt' +import * as Subagent from '@systemfsoftware/agent/subagent' +import { SubagentGrant } from '@systemfsoftware/agent/subagent-contract' +import type { FollowUpWorkerRequest, StartWorkerRequest, SubagentHost } from '@systemfsoftware/agent/subagent-host' +import type { WorkerError } from '@systemfsoftware/agent/worker' import type * as Tool from 'effect/ai/Tool' import * as Toolkit from 'effect/ai/Toolkit' import * as Context from 'effect/Context' diff --git a/packages/effect-agent/test/capabilities/subagent-reservation.test.ts b/packages/effect-agent/test/capabilities/subagent-reservation.test.ts index 11ce0e2e..c3dd8587 100644 --- a/packages/effect-agent/test/capabilities/subagent-reservation.test.ts +++ b/packages/effect-agent/test/capabilities/subagent-reservation.test.ts @@ -1,12 +1,12 @@ import { describe, expect, it } from '@effect/vitest' -import { RunId, ToolCallId } from '@yielded/agent/identifiers' -import { SubagentDelegationCaps, SubagentReservationAmounts } from '@yielded/agent/subagent-contract' -import type { SubagentParentBudgetView } from '@yielded/agent/subagent-reservations' +import { RunId, ToolCallId } from '@systemfsoftware/agent/identifiers' +import { SubagentDelegationCaps, SubagentReservationAmounts } from '@systemfsoftware/agent/subagent-contract' +import type { SubagentParentBudgetView } from '@systemfsoftware/agent/subagent-reservations' import { SubagentReservationRequest, SubagentReservations, SubagentReservationsMemoryLive, -} from '@yielded/agent/subagent-reservations' +} from '@systemfsoftware/agent/subagent-reservations' import * as Deferred from 'effect/Deferred' import * as Effect from 'effect/Effect' import * as Fiber from 'effect/Fiber' diff --git a/packages/effect-agent/test/capabilities/subagent.test.ts b/packages/effect-agent/test/capabilities/subagent.test.ts index 85003e0f..ba8344e6 100644 --- a/packages/effect-agent/test/capabilities/subagent.test.ts +++ b/packages/effect-agent/test/capabilities/subagent.test.ts @@ -1,34 +1,34 @@ import { expect, layer } from '@effect/vitest' -import * as Agent from '@yielded/agent/agent' -import { AgentPolicy } from '@yielded/agent/agent-policy' -import * as AgentRuntime from '@yielded/agent/agent-runtime' +import * as Agent from '@systemfsoftware/agent/agent' +import { AgentPolicy } from '@systemfsoftware/agent/agent-policy' +import * as AgentRuntime from '@systemfsoftware/agent/agent-runtime' import { type AgentSpawner, type RuntimeBinding, type SubagentDurability, type SubagentDurabilityError, type ToolCallWaiting, -} from '@yielded/agent/agent-runtime' -import { IdGenerator } from '@yielded/agent/id-generator' -import { RunId, ThreadId, TurnId } from '@yielded/agent/identifiers' -import { type RunEventSink } from '@yielded/agent/run-event-sink' -import { RunContextPreparationPassthrough } from '@yielded/agent/run-options' -import * as Subagent from '@yielded/agent/subagent' +} from '@systemfsoftware/agent/agent-runtime' +import { IdGenerator } from '@systemfsoftware/agent/id-generator' +import { RunId, ThreadId, TurnId } from '@systemfsoftware/agent/identifiers' +import { type RunEventSink } from '@systemfsoftware/agent/run-event-sink' +import { RunContextPreparationPassthrough } from '@systemfsoftware/agent/run-options' +import * as Subagent from '@systemfsoftware/agent/subagent' import { type SubagentChildRunFailure, type SubagentExecutionFailure, SubagentPolicy, type SubagentPrestartDenied, type SubagentProjectionFailure, -} from '@yielded/agent/subagent' +} from '@systemfsoftware/agent/subagent' import { type SubagentBudgetExhausted, type SubagentParentBudgetView, SubagentReservations, SubagentReservationsMemoryLive, type SubagentReservationView, -} from '@yielded/agent/subagent-reservations' -import { ThreadHistory } from '@yielded/agent/thread-history' +} from '@systemfsoftware/agent/subagent-reservations' +import { ThreadHistory } from '@systemfsoftware/agent/thread-history' import type * as AiError from 'effect/ai/AiError' import * as LanguageModel from 'effect/ai/LanguageModel' import * as Model from 'effect/ai/Model' @@ -304,7 +304,7 @@ layer(TestServices)('Subagent.layer S1 attached delegation', (it) => { expect(result.output).toBe('done') })) - // Regression: https://github.com/yielded-dev/agent/issues/961 + // Regression: https://github.com/systemfsoftware/agent/issues/961 it.effect('bounds late children by the parent deadline and leaves time to finish', () => Effect.gen(function*() { const childCalls = yield* Ref.make(0) diff --git a/packages/effect-agent/test/core/agent.types.ts b/packages/effect-agent/test/core/agent.types.ts index e0b368e4..fbf1c242 100644 --- a/packages/effect-agent/test/core/agent.types.ts +++ b/packages/effect-agent/test/core/agent.types.ts @@ -1,11 +1,11 @@ -import { Agent } from '@yielded/agent' +import { Agent } from '@systemfsoftware/agent' import { type AgentInputDecodeError, type AgentInputError, type AgentOutputError, type AgentRunDispositionError, -} from '@yielded/agent/agent-error' -import { AgentPolicy } from '@yielded/agent/agent-policy' +} from '@systemfsoftware/agent/agent-error' +import { AgentPolicy } from '@systemfsoftware/agent/agent-policy' import type * as AiError from 'effect/ai/AiError' import * as LanguageModel from 'effect/ai/LanguageModel' import * as Model from 'effect/ai/Model' diff --git a/packages/effect-agent/test/core/failure-diagnostic.test.ts b/packages/effect-agent/test/core/failure-diagnostic.test.ts index 95890880..9b836fca 100644 --- a/packages/effect-agent/test/core/failure-diagnostic.test.ts +++ b/packages/effect-agent/test/core/failure-diagnostic.test.ts @@ -1,6 +1,6 @@ -import { AgentToolAuthorizationCheckError } from '@yielded/agent/agent-error' -import * as FailureDiagnostic from '@yielded/agent/failure-diagnostic' -import { ToolCallId } from '@yielded/agent/identifiers' +import { AgentToolAuthorizationCheckError } from '@systemfsoftware/agent/agent-error' +import * as FailureDiagnostic from '@systemfsoftware/agent/failure-diagnostic' +import { ToolCallId } from '@systemfsoftware/agent/identifiers' import * as Cause from 'effect/Cause' import * as Redacted from 'effect/Redacted' import * as Schema from 'effect/Schema' @@ -16,7 +16,7 @@ class DependencyFailure extends Schema.TaggedError()('Depende }) {} describe('causal failure diagnostics', () => { - // https://github.com/yielded-dev/agent/commit/992d062a09 + // https://github.com/systemfsoftware/agent/commit/992d062a09 it('retains validated HTTP diagnostics through capture and JSON recapture', () => { const original = { name: 'ProviderFailure', diff --git a/packages/effect-agent/test/core/memory-namespace.test.ts b/packages/effect-agent/test/core/memory-namespace.test.ts index 9a837806..a160ec75 100644 --- a/packages/effect-agent/test/core/memory-namespace.test.ts +++ b/packages/effect-agent/test/core/memory-namespace.test.ts @@ -1,4 +1,4 @@ -import * as MemoryNamespace from '@yielded/agent/memory-namespace' +import * as MemoryNamespace from '@systemfsoftware/agent/memory-namespace' import * as Effect from 'effect/Effect' import * as Schema from 'effect/Schema' import { describe, expect, it } from 'vitest' diff --git a/packages/effect-agent/test/durable/committed-activity.test.ts b/packages/effect-agent/test/durable/committed-activity.test.ts index 0f7d9627..22b672da 100644 --- a/packages/effect-agent/test/durable/committed-activity.test.ts +++ b/packages/effect-agent/test/durable/committed-activity.test.ts @@ -1,15 +1,15 @@ import * as NodeCrypto from '@effect/platform-node/NodeCrypto' import { describe, expect, it } from '@effect/vitest' -import { type PreparedActivity } from '@yielded/agent/activity-store' +import { type PreparedActivity } from '@systemfsoftware/agent/activity-store' import { ActivityMutationFailure, ActivityOwnershipLost, ActivityProcessorKey, ActivityProcessorStore, ActivityProgress, -} from '@yielded/agent/activity-store' -import { ActivityPassLimits, processCommittedActivity } from '@yielded/agent/committed-activity' -import { ThreadId } from '@yielded/agent/identifiers' +} from '@systemfsoftware/agent/activity-store' +import { ActivityPassLimits, processCommittedActivity } from '@systemfsoftware/agent/committed-activity' +import { ThreadId } from '@systemfsoftware/agent/identifiers' import { BatchId, CanonicalRecordEnvelope, @@ -19,8 +19,8 @@ import { RecordEnvelope, RecordId, UserInputRecorded, -} from '@yielded/agent/records' -import { ThreadStore, ThreadTail } from '@yielded/agent/thread-store' +} from '@systemfsoftware/agent/records' +import { ThreadStore, ThreadTail } from '@systemfsoftware/agent/thread-store' import * as Cause from 'effect/Cause' import * as Clock from 'effect/Clock' import * as DateTime from 'effect/DateTime' diff --git a/packages/effect-agent/test/durable/committed-activity.types.ts b/packages/effect-agent/test/durable/committed-activity.types.ts index 697b8860..5dbcadd6 100644 --- a/packages/effect-agent/test/durable/committed-activity.types.ts +++ b/packages/effect-agent/test/durable/committed-activity.types.ts @@ -3,16 +3,20 @@ import { type ActivityProcessorStore, type ActivityStoreFailure, type PreparedActivity, -} from '@yielded/agent/activity-store' +} from '@systemfsoftware/agent/activity-store' import { ActivityPassLimits, type ActivityProcessingError, processCommittedActivity, -} from '@yielded/agent/committed-activity' -import { type DigestError } from '@yielded/agent/digest' -import { ThreadId } from '@yielded/agent/identifiers' -import { type PersistedJson } from '@yielded/agent/records' -import { type ThreadNotMaterialized, type ThreadStore, type ThreadStoreError } from '@yielded/agent/thread-store' +} from '@systemfsoftware/agent/committed-activity' +import { type DigestError } from '@systemfsoftware/agent/digest' +import { ThreadId } from '@systemfsoftware/agent/identifiers' +import { type PersistedJson } from '@systemfsoftware/agent/records' +import { + type ThreadNotMaterialized, + type ThreadStore, + type ThreadStoreError, +} from '@systemfsoftware/agent/thread-store' import * as Context from 'effect/Context' import type * as CryptoDigest from 'effect/crypto/Digest' import * as Effect from 'effect/Effect' diff --git a/packages/effect-agent/test/durable/context-history.test.ts b/packages/effect-agent/test/durable/context-history.test.ts index 9efa8300..de205f22 100644 --- a/packages/effect-agent/test/durable/context-history.test.ts +++ b/packages/effect-agent/test/durable/context-history.test.ts @@ -4,12 +4,12 @@ import { ContextHistoryError, ContextHistoryRead, ContextHistorySearch, -} from '@yielded/agent/context-history' -import { ThreadId } from '@yielded/agent/identifiers' -import type { RecordEnvelope } from '@yielded/agent/records' -import { CanonicalRecordEnvelope, CanonicalSequence, PersistedJson } from '@yielded/agent/records' -import * as ThreadContextHistory from '@yielded/agent/thread-context-history' -import { ThreadStore, ThreadStoreError, ThreadTail } from '@yielded/agent/thread-store' +} from '@systemfsoftware/agent/context-history' +import { ThreadId } from '@systemfsoftware/agent/identifiers' +import type { RecordEnvelope } from '@systemfsoftware/agent/records' +import { CanonicalRecordEnvelope, CanonicalSequence, PersistedJson } from '@systemfsoftware/agent/records' +import * as ThreadContextHistory from '@systemfsoftware/agent/thread-context-history' +import { ThreadStore, ThreadStoreError, ThreadTail } from '@systemfsoftware/agent/thread-store' import * as Prompt from 'effect/ai/Prompt' import * as Cause from 'effect/Cause' import * as Deferred from 'effect/Deferred' diff --git a/packages/effect-agent/test/durable/input-projection.types.ts b/packages/effect-agent/test/durable/input-projection.types.ts index b07299a8..bba40f9d 100644 --- a/packages/effect-agent/test/durable/input-projection.types.ts +++ b/packages/effect-agent/test/durable/input-projection.types.ts @@ -1,6 +1,6 @@ -import * as Agent from '@yielded/agent/agent' -import { AgentPolicy } from '@yielded/agent/agent-policy' -import { type DurableWorkerRequirements } from '@yielded/agent/durable-agent-runtime' +import * as Agent from '@systemfsoftware/agent/agent' +import { AgentPolicy } from '@systemfsoftware/agent/agent-policy' +import { type DurableWorkerRequirements } from '@systemfsoftware/agent/durable-agent-runtime' import type * as LanguageModel from 'effect/ai/LanguageModel' import type * as Model from 'effect/ai/Model' import * as Tool from 'effect/ai/Tool' diff --git a/packages/effect-agent/test/durable/run-journal.test.ts b/packages/effect-agent/test/durable/run-journal.test.ts index b6af651a..1b20aa60 100644 --- a/packages/effect-agent/test/durable/run-journal.test.ts +++ b/packages/effect-agent/test/durable/run-journal.test.ts @@ -1,10 +1,10 @@ import * as NodeCrypto from '@effect/platform-node/NodeCrypto' import { describe, expect, layer } from '@effect/vitest' -import * as Agent from '@yielded/agent/agent' -import * as AgentRuntime from '@yielded/agent/agent-runtime' -import { CLEARED_TOOL_RESULT, contextWindowId, contextWindowMessage } from '@yielded/agent/compaction' -import { SubmissionId, ThreadId, ToolCallId } from '@yielded/agent/identifiers' -import type { CanonicalBatch } from '@yielded/agent/records' +import * as Agent from '@systemfsoftware/agent/agent' +import * as AgentRuntime from '@systemfsoftware/agent/agent-runtime' +import { CLEARED_TOOL_RESULT, contextWindowId, contextWindowMessage } from '@systemfsoftware/agent/compaction' +import { SubmissionId, ThreadId, ToolCallId } from '@systemfsoftware/agent/identifiers' +import type { CanonicalBatch } from '@systemfsoftware/agent/records' import { BatchId, CanonicalRecordEnvelope, @@ -17,7 +17,7 @@ import { RecordEnvelope, ToolCallUnknown, ToolOperation, -} from '@yielded/agent/records' +} from '@systemfsoftware/agent/records' import { projectRunJournal, projectRunJournalStream, @@ -28,9 +28,9 @@ import { turnIdForRun, turnResponseBatch, turnResultsBatch, -} from '@yielded/agent/run-journal' -import { ThreadHistory } from '@yielded/agent/thread-history' -import { Selection, Snapshot } from '@yielded/agent/tool-exposure' +} from '@systemfsoftware/agent/run-journal' +import { ThreadHistory } from '@systemfsoftware/agent/thread-history' +import { Selection, Snapshot } from '@systemfsoftware/agent/tool-exposure' import * as LanguageModel from 'effect/ai/LanguageModel' import * as Model from 'effect/ai/Model' import * as Prompt from 'effect/ai/Prompt' @@ -714,7 +714,7 @@ describe('engine compaction records and projection (RUN-026)', () => { layer(NodeCrypto.layer)((it) => { // Independent Runs can both resume, so neither continuation nor compaction may absorb the other: - // https://github.com/yielded-dev/agent/commit/8fc53ad9eb6b110ca6faaaebbb6dbba08e3c292f + // https://github.com/systemfsoftware/agent/commit/8fc53ad9eb6b110ca6faaaebbb6dbba08e3c292f it.effect('preserves both interleaved Run contexts and their complete Thread history', () => Effect.gen(function*() { const first = yield* turnCanonicalBatch({ @@ -799,7 +799,7 @@ describe('engine compaction records and projection (RUN-026)', () => { })) // The same interleaving must retain each independently compacted context: - // https://github.com/yielded-dev/agent/commit/8fc53ad9eb6b110ca6faaaebbb6dbba08e3c292f + // https://github.com/systemfsoftware/agent/commit/8fc53ad9eb6b110ca6faaaebbb6dbba08e3c292f it.effect('does not restore retired exchanges when independent Runs both compact', () => Effect.gen(function*() { const first = yield* turnCanonicalBatch(turnInput(toolTurnAppended)) @@ -935,7 +935,7 @@ describe('engine compaction records and projection (RUN-026)', () => { ) } - // Regression: https://github.com/yielded-dev/agent/commit/afcdd64bbdd23c9985902a0192d8e2ed3a48c295 + // Regression: https://github.com/systemfsoftware/agent/commit/afcdd64bbdd23c9985902a0192d8e2ed3a48c295 // Saved ranges must retain the facts that keep compaction validation stable. const inputAt = (sequence: number, runId: typeof RUN_ID) => envelopeAt( @@ -1145,7 +1145,7 @@ describe('engine compaction records and projection (RUN-026)', () => { expect(otherView.policyUsage).toEqual(otherBaseline.policyUsage) if (projectionOwner === RUN_ID) { // A later independent Run cannot rewrite this Run's resume context: - // https://github.com/yielded-dev/agent/commit/8fc53ad9eb6b110ca6faaaebbb6dbba08e3c292f + // https://github.com/systemfsoftware/agent/commit/8fc53ad9eb6b110ca6faaaebbb6dbba08e3c292f expect(otherView).toEqual(otherBaseline) expect(otherBaseline.usage).toMatchObject({ inputTokens: 100, diff --git a/packages/effect-agent/test/durable/subscription-callbacks.test.ts b/packages/effect-agent/test/durable/subscription-callbacks.test.ts index 8159f61f..648eeefa 100644 --- a/packages/effect-agent/test/durable/subscription-callbacks.test.ts +++ b/packages/effect-agent/test/durable/subscription-callbacks.test.ts @@ -1,10 +1,15 @@ import { describe, expect, it } from '@effect/vitest' -import { makeEventSource } from '@yielded/agent/event-source' -import { AgentId, ThreadId } from '@yielded/agent/identifiers' -import { DefinitionDigests, Digest } from '@yielded/agent/records' -import { Principal } from '@yielded/agent/submission-ledger' -import { AcceptedEvent, EventSourceVersion, SourcePartition, SubscriptionRecord } from '@yielded/agent/subscription' -import { makeSubscriptionInputBinding } from '@yielded/agent/subscription-input' +import { makeEventSource } from '@systemfsoftware/agent/event-source' +import { AgentId, ThreadId } from '@systemfsoftware/agent/identifiers' +import { DefinitionDigests, Digest } from '@systemfsoftware/agent/records' +import { Principal } from '@systemfsoftware/agent/submission-ledger' +import { + AcceptedEvent, + EventSourceVersion, + SourcePartition, + SubscriptionRecord, +} from '@systemfsoftware/agent/subscription' +import { makeSubscriptionInputBinding } from '@systemfsoftware/agent/subscription-input' import * as Context from 'effect/Context' import * as Effect from 'effect/Effect' import * as Schema from 'effect/Schema' diff --git a/packages/effect-agent/test/durable/thread.test.ts b/packages/effect-agent/test/durable/thread.test.ts index 06a2afae..d2e344e8 100644 --- a/packages/effect-agent/test/durable/thread.test.ts +++ b/packages/effect-agent/test/durable/thread.test.ts @@ -1,7 +1,7 @@ import * as NodeCrypto from '@effect/platform-node/NodeCrypto' import { describe, expect, it, layer } from '@effect/vitest' -import { digestJson } from '@yielded/agent/digest' -import { MAX_PERSISTED_JSON_BYTES, PersistedJson } from '@yielded/agent/records' +import { digestJson } from '@systemfsoftware/agent/digest' +import { MAX_PERSISTED_JSON_BYTES, PersistedJson } from '@systemfsoftware/agent/records' import * as Effect from 'effect/Effect' import * as Schema from 'effect/Schema' diff --git a/packages/effect-agent/test/durable/worker-host.test.ts b/packages/effect-agent/test/durable/worker-host.test.ts index 695bd5c1..ea0d5980 100644 --- a/packages/effect-agent/test/durable/worker-host.test.ts +++ b/packages/effect-agent/test/durable/worker-host.test.ts @@ -1,24 +1,24 @@ import * as NodeCrypto from '@effect/platform-node/NodeCrypto' import { expect, layer } from '@effect/vitest' -import * as Agent from '@yielded/agent/agent' -import { AgentPolicy } from '@yielded/agent/agent-policy' -import { DelegationId, ReceiptId, RunId, SubmissionId, ThreadId, ToolCallId } from '@yielded/agent/identifiers' -import { IdempotencyKey, QueueSequence, Receipt } from '@yielded/agent/receipt' -import * as Subagent from '@yielded/agent/subagent' +import * as Agent from '@systemfsoftware/agent/agent' +import { AgentPolicy } from '@systemfsoftware/agent/agent-policy' +import { DelegationId, ReceiptId, RunId, SubmissionId, ThreadId, ToolCallId } from '@systemfsoftware/agent/identifiers' +import { IdempotencyKey, QueueSequence, Receipt } from '@systemfsoftware/agent/receipt' +import * as Subagent from '@systemfsoftware/agent/subagent' import { SubagentDelegationCaps, SubagentGrant, SubagentParentLink, SubagentReservationAmounts, -} from '@yielded/agent/subagent-contract' +} from '@systemfsoftware/agent/subagent-contract' import { type StartWorkerRequest, SubagentHost, type WorkerReporting, WorkerReportPreparationFailure, -} from '@yielded/agent/subagent-host' -import { ToolResultBounds } from '@yielded/agent/tool-result' -import { WorkerCompletion, WorkerError, WorkerUpdate } from '@yielded/agent/worker' +} from '@systemfsoftware/agent/subagent-host' +import { ToolResultBounds } from '@systemfsoftware/agent/tool-result' +import { WorkerCompletion, WorkerError, WorkerUpdate } from '@systemfsoftware/agent/worker' import * as Toolkit from 'effect/ai/Toolkit' import * as Clock from 'effect/Clock' import * as CryptoDigest from 'effect/crypto/Digest' @@ -1050,7 +1050,7 @@ const harness = Effect.fn('workerHostHarness')(function*( }) layer(NodeCrypto.layer)((it) => { - // Regression: https://github.com/yielded-dev/agent/commit/4ff21e2a4 + // Regression: https://github.com/systemfsoftware/agent/commit/4ff21e2a4 it.effect( 'reuses one start admission through preparation and rejects a later revoked start', () => @@ -1088,7 +1088,7 @@ layer(NodeCrypto.layer)((it) => { }), ) - // Regression: https://github.com/yielded-dev/agent/pull/621 + // Regression: https://github.com/systemfsoftware/agent/pull/621 it.effect('origin establishment retries a tail advance after its identity snapshot', () => Effect.gen(function*() { let onIdentity: Effect.Effect = Effect.void @@ -1113,7 +1113,7 @@ layer(NodeCrypto.layer)((it) => { ]) })) - // Regression: https://github.com/yielded-dev/agent/commit/6a4f4f870 + // Regression: https://github.com/systemfsoftware/agent/commit/6a4f4f870 it.effect( 'origin establishment replays the same identity and refuses incompatible canonical ancestry', () => @@ -1188,7 +1188,7 @@ layer(NodeCrypto.layer)((it) => { }), ) - // Regression: https://github.com/yielded-dev/agent/commit/4ff21e2a4c3735be34955e7d5caf64f623d33f81 + // Regression: https://github.com/systemfsoftware/agent/commit/4ff21e2a4c3735be34955e7d5caf64f623d33f81 // Reuse the public-start retained-command fixture from #568 for follow-up correction provenance. it.effect(`public follow-up replays its pending correction across Runs without preparation`, () => Effect.gen(function*() { @@ -1315,7 +1315,7 @@ layer(NodeCrypto.layer)((it) => { expect(h.deliveries.size).toBe(2) })) - // Equal-input regression: https://github.com/yielded-dev/agent/commit/3ab9045fc293d09a22801c7d881c4d89e562461a + // Equal-input regression: https://github.com/systemfsoftware/agent/commit/3ab9045fc293d09a22801c7d881c4d89e562461a for ( const [preparation, denied] of [ ['changed', undefined], @@ -1412,7 +1412,7 @@ layer(NodeCrypto.layer)((it) => { ) } - // Regression: https://github.com/yielded-dev/agent/commit/43882d187248665eaf7fd46950b3bc617edcb73d + // Regression: https://github.com/systemfsoftware/agent/commit/43882d187248665eaf7fd46950b3bc617edcb73d it.effect( 'serializes source-aware active slots across raced starts, steering and idle reactivation', () => @@ -1582,7 +1582,7 @@ layer(NodeCrypto.layer)((it) => { expect(pending.logs.has(retained.worker.threadId)).toBe(false) })) - // Regression: https://github.com/yielded-dev/agent/commit/43882d187248665eaf7fd46950b3bc617edcb73d + // Regression: https://github.com/systemfsoftware/agent/commit/43882d187248665eaf7fd46950b3bc617edcb73d it.effect( 'revalidates captured authority across a reserved admission retry and freezes later worker policy', () => diff --git a/packages/effect-agent/test/engine/agent-api.types.ts b/packages/effect-agent/test/engine/agent-api.types.ts index 9b1459b6..89fbe653 100644 --- a/packages/effect-agent/test/engine/agent-api.types.ts +++ b/packages/effect-agent/test/engine/agent-api.types.ts @@ -1,16 +1,16 @@ -import { AgentRuntime, Output } from '@yielded/agent' -import * as Agent from '@yielded/agent/agent' -import { AgentPolicy } from '@yielded/agent/agent-policy' +import { AgentRuntime, Output } from '@systemfsoftware/agent' +import * as Agent from '@systemfsoftware/agent/agent' +import { AgentPolicy } from '@systemfsoftware/agent/agent-policy' import { type AgentCompletionProjectionRequirements, type AgentResult, type AgentRuntimeFailure, type AgentRuntimeRequirements, -} from '@yielded/agent/agent-runtime' -import { ModelCallContext } from '@yielded/agent/context-window' -import { type RunBufferLimits, type RunContextHook } from '@yielded/agent/run-options' -import { type ThreadHistory } from '@yielded/agent/thread-history' -import { RunToolVisibility } from '@yielded/agent/tool-exposure' +} from '@systemfsoftware/agent/agent-runtime' +import { ModelCallContext } from '@systemfsoftware/agent/context-window' +import { type RunBufferLimits, type RunContextHook } from '@systemfsoftware/agent/run-options' +import { type ThreadHistory } from '@systemfsoftware/agent/thread-history' +import { RunToolVisibility } from '@systemfsoftware/agent/tool-exposure' import * as LanguageModel from 'effect/ai/LanguageModel' import * as Model from 'effect/ai/Model' import * as Tool from 'effect/ai/Tool' diff --git a/packages/effect-agent/test/engine/agent-runtime.test.ts b/packages/effect-agent/test/engine/agent-runtime.test.ts index 2bee8807..9ae0f8a0 100644 --- a/packages/effect-agent/test/engine/agent-runtime.test.ts +++ b/packages/effect-agent/test/engine/agent-runtime.test.ts @@ -1,11 +1,11 @@ import { expect, layer } from '@effect/vitest' -import * as Agent from '@yielded/agent/agent' -import { ModelProtocolError } from '@yielded/agent/agent-error' -import { AgentPolicy } from '@yielded/agent/agent-policy' -import * as AgentRuntime from '@yielded/agent/agent-runtime' -import { IdGenerator } from '@yielded/agent/id-generator' -import { RunId, ThreadId, TurnId } from '@yielded/agent/identifiers' -import { type RunEvent } from '@yielded/agent/run-event' +import * as Agent from '@systemfsoftware/agent/agent' +import { ModelProtocolError } from '@systemfsoftware/agent/agent-error' +import { AgentPolicy } from '@systemfsoftware/agent/agent-policy' +import * as AgentRuntime from '@systemfsoftware/agent/agent-runtime' +import { IdGenerator } from '@systemfsoftware/agent/id-generator' +import { RunId, ThreadId, TurnId } from '@systemfsoftware/agent/identifiers' +import { type RunEvent } from '@systemfsoftware/agent/run-event' import * as AiError from 'effect/ai/AiError' import * as LanguageModel from 'effect/ai/LanguageModel' import * as Model from 'effect/ai/Model' diff --git a/packages/effect-agent/test/engine/agent-updates.test.ts b/packages/effect-agent/test/engine/agent-updates.test.ts index 02c813e6..22de6788 100644 --- a/packages/effect-agent/test/engine/agent-updates.test.ts +++ b/packages/effect-agent/test/engine/agent-updates.test.ts @@ -1,7 +1,7 @@ import { expect, layer } from '@effect/vitest' -import * as Agent from '@yielded/agent/agent' -import * as AgentUpdates from '@yielded/agent/agent-updates' -import { IdempotencyKey } from '@yielded/agent/receipt' +import * as Agent from '@systemfsoftware/agent/agent' +import * as AgentUpdates from '@systemfsoftware/agent/agent-updates' +import { IdempotencyKey } from '@systemfsoftware/agent/receipt' import * as LanguageModel from 'effect/ai/LanguageModel' import * as Model from 'effect/ai/Model' import type * as Prompt from 'effect/ai/Prompt' diff --git a/packages/effect-agent/test/engine/compaction.test.ts b/packages/effect-agent/test/engine/compaction.test.ts index de125c2a..aa0b9234 100644 --- a/packages/effect-agent/test/engine/compaction.test.ts +++ b/packages/effect-agent/test/engine/compaction.test.ts @@ -1,11 +1,11 @@ import { expect, layer } from '@effect/vitest' -import * as Agent from '@yielded/agent/agent' -import { AgentPolicy, CompactionPolicy } from '@yielded/agent/agent-policy' -import { type CompactionDecision, CompactionError, ContextCompactor } from '@yielded/agent/context-compactor' -import { IdGenerator } from '@yielded/agent/id-generator' -import { RunId, ThreadId, TurnId } from '@yielded/agent/identifiers' -import { type RunEvent } from '@yielded/agent/run-event' -import { type RunContextHook } from '@yielded/agent/run-options' +import * as Agent from '@systemfsoftware/agent/agent' +import { AgentPolicy, CompactionPolicy } from '@systemfsoftware/agent/agent-policy' +import { type CompactionDecision, CompactionError, ContextCompactor } from '@systemfsoftware/agent/context-compactor' +import { IdGenerator } from '@systemfsoftware/agent/id-generator' +import { RunId, ThreadId, TurnId } from '@systemfsoftware/agent/identifiers' +import { type RunEvent } from '@systemfsoftware/agent/run-event' +import { type RunContextHook } from '@systemfsoftware/agent/run-options' import * as AiError from 'effect/ai/AiError' import * as LanguageModel from 'effect/ai/LanguageModel' import * as Model from 'effect/ai/Model' diff --git a/packages/effect-agent/test/engine/completion-correction.test.ts b/packages/effect-agent/test/engine/completion-correction.test.ts index c4275863..44dfce60 100644 --- a/packages/effect-agent/test/engine/completion-correction.test.ts +++ b/packages/effect-agent/test/engine/completion-correction.test.ts @@ -1,10 +1,10 @@ import { expect, layer } from '@effect/vitest' -import * as Agent from '@yielded/agent/agent' -import { AgentPolicy } from '@yielded/agent/agent-policy' -import { IdGenerator } from '@yielded/agent/id-generator' -import { RunId, ThreadId, TurnId } from '@yielded/agent/identifiers' -import { RunContextPreparationPassthrough, type RunUsageDelta } from '@yielded/agent/run-options' -import { ThreadHistory } from '@yielded/agent/thread-history' +import * as Agent from '@systemfsoftware/agent/agent' +import { AgentPolicy } from '@systemfsoftware/agent/agent-policy' +import { IdGenerator } from '@systemfsoftware/agent/id-generator' +import { RunId, ThreadId, TurnId } from '@systemfsoftware/agent/identifiers' +import { RunContextPreparationPassthrough, type RunUsageDelta } from '@systemfsoftware/agent/run-options' +import { ThreadHistory } from '@systemfsoftware/agent/thread-history' import * as LanguageModel from 'effect/ai/LanguageModel' import * as Model from 'effect/ai/Model' import type * as Prompt from 'effect/ai/Prompt' diff --git a/packages/effect-agent/test/engine/context-economics.test.ts b/packages/effect-agent/test/engine/context-economics.test.ts index e431002b..db65772c 100644 --- a/packages/effect-agent/test/engine/context-economics.test.ts +++ b/packages/effect-agent/test/engine/context-economics.test.ts @@ -1,15 +1,15 @@ import * as OpenAiClient from '@effect/ai-openai/OpenAiClient' import * as OpenAiLanguageModel from '@effect/ai-openai/OpenAiLanguageModel' import { expect, layer } from '@effect/vitest' -import * as Agent from '@yielded/agent/agent' -import { ContextBudgetError } from '@yielded/agent/agent-error' -import { AgentPolicy } from '@yielded/agent/agent-policy' -import { ModelCallContext } from '@yielded/agent/context-window' -import { IdGenerator } from '@yielded/agent/id-generator' -import { RunId, ThreadId, TurnId } from '@yielded/agent/identifiers' -import { type RunEvent } from '@yielded/agent/run-event' -import { ToolResultBounds, TruncatedToolResult } from '@yielded/agent/tool-result' -import { ToolResultStorage, ToolResultStorageError } from '@yielded/agent/tool-result-storage' +import * as Agent from '@systemfsoftware/agent/agent' +import { ContextBudgetError } from '@systemfsoftware/agent/agent-error' +import { AgentPolicy } from '@systemfsoftware/agent/agent-policy' +import { ModelCallContext } from '@systemfsoftware/agent/context-window' +import { IdGenerator } from '@systemfsoftware/agent/id-generator' +import { RunId, ThreadId, TurnId } from '@systemfsoftware/agent/identifiers' +import { type RunEvent } from '@systemfsoftware/agent/run-event' +import { ToolResultBounds, TruncatedToolResult } from '@systemfsoftware/agent/tool-result' +import { ToolResultStorage, ToolResultStorageError } from '@systemfsoftware/agent/tool-result-storage' import * as LanguageModel from 'effect/ai/LanguageModel' import * as Model from 'effect/ai/Model' import * as OpenAiStructuredOutput from 'effect/ai/OpenAiStructuredOutput' @@ -343,7 +343,7 @@ layer(testLayer)('context economics — bounding, tracking, status, exhaustion', }), ) - // Regression: https://github.com/yielded-dev/agent/commit/2259fc0 + // Regression: https://github.com/systemfsoftware/agent/commit/2259fc0 // KOM-125: a transformed Class retains provider definitions that Schema.toEncoded removes. it.effect('admits original Tool schemas exactly as native OpenAI serializes them', () => Effect.gen(function*() { diff --git a/packages/effect-agent/test/engine/context-rollover.test.ts b/packages/effect-agent/test/engine/context-rollover.test.ts index 0c65a696..6cf42514 100644 --- a/packages/effect-agent/test/engine/context-rollover.test.ts +++ b/packages/effect-agent/test/engine/context-rollover.test.ts @@ -1,25 +1,25 @@ import { expect, layer } from '@effect/vitest' -import * as Agent from '@yielded/agent/agent' -import { AgentPolicy } from '@yielded/agent/agent-policy' -import * as AgentRuntime from '@yielded/agent/agent-runtime' -import type { CompactionError } from '@yielded/agent/context-compactor' -import { ContextCompactor } from '@yielded/agent/context-compactor' +import * as Agent from '@systemfsoftware/agent/agent' +import { AgentPolicy } from '@systemfsoftware/agent/agent-policy' +import * as AgentRuntime from '@systemfsoftware/agent/agent-runtime' +import type { CompactionError } from '@systemfsoftware/agent/context-compactor' +import { ContextCompactor } from '@systemfsoftware/agent/context-compactor' import { ContextRolloverRequest, ContextRolloverTool, ContextWindow, ModelCallContext, -} from '@yielded/agent/context-window' -import { IdGenerator } from '@yielded/agent/id-generator' -import { RunId, ThreadId, TurnId } from '@yielded/agent/identifiers' -import { type RunEvent } from '@yielded/agent/run-event' +} from '@systemfsoftware/agent/context-window' +import { IdGenerator } from '@systemfsoftware/agent/id-generator' +import { RunId, ThreadId, TurnId } from '@systemfsoftware/agent/identifiers' +import { type RunEvent } from '@systemfsoftware/agent/run-event' import { type RunContextHook, RunContextPreparationPassthrough, type RunInputHook, type RunTransientContextHook, -} from '@yielded/agent/run-options' -import { ThreadHistory } from '@yielded/agent/thread-history' +} from '@systemfsoftware/agent/run-options' +import { ThreadHistory } from '@systemfsoftware/agent/thread-history' import * as LanguageModel from 'effect/ai/LanguageModel' import * as Model from 'effect/ai/Model' import * as Prompt from 'effect/ai/Prompt' diff --git a/packages/effect-agent/test/engine/durable-tool-seam.test.ts b/packages/effect-agent/test/engine/durable-tool-seam.test.ts index 3acf7fa1..094e2679 100644 --- a/packages/effect-agent/test/engine/durable-tool-seam.test.ts +++ b/packages/effect-agent/test/engine/durable-tool-seam.test.ts @@ -1,11 +1,11 @@ import { expect, layer } from '@effect/vitest' -import * as Agent from '@yielded/agent/agent' -import { AgentPolicyError } from '@yielded/agent/agent-error' -import { AgentPolicy } from '@yielded/agent/agent-policy' -import { IdGenerator } from '@yielded/agent/id-generator' -import { RunId, ThreadId, TurnId } from '@yielded/agent/identifiers' -import { type RunEvent } from '@yielded/agent/run-event' -import { RunContextPreparationPassthrough } from '@yielded/agent/run-options' +import * as Agent from '@systemfsoftware/agent/agent' +import { AgentPolicyError } from '@systemfsoftware/agent/agent-error' +import { AgentPolicy } from '@systemfsoftware/agent/agent-policy' +import { IdGenerator } from '@systemfsoftware/agent/id-generator' +import { RunId, ThreadId, TurnId } from '@systemfsoftware/agent/identifiers' +import { type RunEvent } from '@systemfsoftware/agent/run-event' +import { RunContextPreparationPassthrough } from '@systemfsoftware/agent/run-options' import * as LanguageModel from 'effect/ai/LanguageModel' import * as Model from 'effect/ai/Model' import type * as Response from 'effect/ai/Response' diff --git a/packages/effect-agent/test/engine/hosted-search.test.ts b/packages/effect-agent/test/engine/hosted-search.test.ts index 160a32f6..a1a4e5fd 100644 --- a/packages/effect-agent/test/engine/hosted-search.test.ts +++ b/packages/effect-agent/test/engine/hosted-search.test.ts @@ -3,9 +3,9 @@ import * as OpenAiLanguageModel from '@effect/ai-openai/OpenAiLanguageModel' import * as OpenAiTool from '@effect/ai-openai/OpenAiTool' import * as NodeCrypto from '@effect/platform-node/NodeCrypto' import { expect, it } from '@effect/vitest' -import { Agent, AgentRuntime, InMemory, ThreadHistory, WebSearch } from '@yielded/agent' -import { compileBindingContracts } from '@yielded/agent/agent-registration' -import * as ToolDiscovery from '@yielded/agent/tool-discovery' +import { Agent, AgentRuntime, InMemory, ThreadHistory, WebSearch } from '@systemfsoftware/agent' +import { compileBindingContracts } from '@systemfsoftware/agent/agent-registration' +import * as ToolDiscovery from '@systemfsoftware/agent/tool-discovery' import * as LanguageModel from 'effect/ai/LanguageModel' import * as Model from 'effect/ai/Model' import * as Tool from 'effect/ai/Tool' diff --git a/packages/effect-agent/test/engine/input-prompt.test.ts b/packages/effect-agent/test/engine/input-prompt.test.ts index 1424515f..d289c772 100644 --- a/packages/effect-agent/test/engine/input-prompt.test.ts +++ b/packages/effect-agent/test/engine/input-prompt.test.ts @@ -1,10 +1,10 @@ import { expect, layer } from '@effect/vitest' -import * as Agent from '@yielded/agent/agent' -import { AgentPolicy } from '@yielded/agent/agent-policy' -import * as AgentRuntime from '@yielded/agent/agent-runtime' -import { type CompactionDecision, ContextCompactor } from '@yielded/agent/context-compactor' -import { IdGenerator } from '@yielded/agent/id-generator' -import { RunId, ThreadId, TurnId } from '@yielded/agent/identifiers' +import * as Agent from '@systemfsoftware/agent/agent' +import { AgentPolicy } from '@systemfsoftware/agent/agent-policy' +import * as AgentRuntime from '@systemfsoftware/agent/agent-runtime' +import { type CompactionDecision, ContextCompactor } from '@systemfsoftware/agent/context-compactor' +import { IdGenerator } from '@systemfsoftware/agent/id-generator' +import { RunId, ThreadId, TurnId } from '@systemfsoftware/agent/identifiers' import * as LanguageModel from 'effect/ai/LanguageModel' import * as Model from 'effect/ai/Model' import * as Prompt from 'effect/ai/Prompt' diff --git a/packages/effect-agent/test/engine/join-restart.test.ts b/packages/effect-agent/test/engine/join-restart.test.ts index 2e1fcef1..9ae0ded9 100644 --- a/packages/effect-agent/test/engine/join-restart.test.ts +++ b/packages/effect-agent/test/engine/join-restart.test.ts @@ -1,11 +1,11 @@ import { expect, it } from '@effect/vitest' -import * as Agent from '@yielded/agent/agent' -import * as AgentRuntime from '@yielded/agent/agent-runtime' -import { IdGenerator } from '@yielded/agent/id-generator' -import { RunId, ThreadId, TurnId } from '@yielded/agent/identifiers' -import type { RunEvent } from '@yielded/agent/run-event' -import type { RunInputCommand } from '@yielded/agent/run-options' -import { ThreadHistory } from '@yielded/agent/thread-history' +import * as Agent from '@systemfsoftware/agent/agent' +import * as AgentRuntime from '@systemfsoftware/agent/agent-runtime' +import { IdGenerator } from '@systemfsoftware/agent/id-generator' +import { RunId, ThreadId, TurnId } from '@systemfsoftware/agent/identifiers' +import type { RunEvent } from '@systemfsoftware/agent/run-event' +import type { RunInputCommand } from '@systemfsoftware/agent/run-options' +import { ThreadHistory } from '@systemfsoftware/agent/thread-history' import * as LanguageModel from 'effect/ai/LanguageModel' import * as Model from 'effect/ai/Model' import type * as Response from 'effect/ai/Response' diff --git a/packages/effect-agent/test/engine/model-retry.test.ts b/packages/effect-agent/test/engine/model-retry.test.ts index 9fda51d0..9091f7b3 100644 --- a/packages/effect-agent/test/engine/model-retry.test.ts +++ b/packages/effect-agent/test/engine/model-retry.test.ts @@ -1,10 +1,10 @@ import { expect, layer } from '@effect/vitest' -import * as Agent from '@yielded/agent/agent' -import { AgentPolicy } from '@yielded/agent/agent-policy' -import * as AgentRuntime from '@yielded/agent/agent-runtime' -import { IdGenerator } from '@yielded/agent/id-generator' -import { RunId, ThreadId, TurnId } from '@yielded/agent/identifiers' -import { ThreadHistory } from '@yielded/agent/thread-history' +import * as Agent from '@systemfsoftware/agent/agent' +import { AgentPolicy } from '@systemfsoftware/agent/agent-policy' +import * as AgentRuntime from '@systemfsoftware/agent/agent-runtime' +import { IdGenerator } from '@systemfsoftware/agent/id-generator' +import { RunId, ThreadId, TurnId } from '@systemfsoftware/agent/identifiers' +import { ThreadHistory } from '@systemfsoftware/agent/thread-history' import * as AiError from 'effect/ai/AiError' import * as LanguageModel from 'effect/ai/LanguageModel' import * as Model from 'effect/ai/Model' diff --git a/packages/effect-agent/test/engine/prompt-caching.test.ts b/packages/effect-agent/test/engine/prompt-caching.test.ts index 71321c9d..e86f8e35 100644 --- a/packages/effect-agent/test/engine/prompt-caching.test.ts +++ b/packages/effect-agent/test/engine/prompt-caching.test.ts @@ -3,9 +3,9 @@ import * as AnthropicLanguageModel from '@effect/ai-anthropic/AnthropicLanguageM import * as OpenAiClient from '@effect/ai-openai/OpenAiClient' import * as OpenAiLanguageModel from '@effect/ai-openai/OpenAiLanguageModel' import { describe, expect, it } from '@effect/vitest' -import { Agent, AgentRuntime, InMemory, ThreadHistory } from '@yielded/agent' -import { ContextCompactor } from '@yielded/agent/context-compactor' -import { ModelCallContext } from '@yielded/agent/context-window' +import { Agent, AgentRuntime, InMemory, ThreadHistory } from '@systemfsoftware/agent' +import { ContextCompactor } from '@systemfsoftware/agent/context-compactor' +import { ModelCallContext } from '@systemfsoftware/agent/context-window' import * as Model from 'effect/ai/Model' import * as Prompt from 'effect/ai/Prompt' import * as ResponseIdTracker from 'effect/ai/ResponseIdTracker' @@ -165,7 +165,7 @@ const lookup = Toolkit.make( // #651: successful answers and reported usage do not prove a reusable prompt prefix. // These assertions compare real wire prefixes, without simulating the provider cache. -describe('prompt caching: https://github.com/yielded-dev/agent/issues/651', () => { +describe('prompt caching: https://github.com/systemfsoftware/agent/issues/651', () => { it.effect.each(['retained', 'prepared', 'conversation-only'] as const)( 'preserves user-ending prefixes within the context limit across three runs with %s history', (historyMode) => diff --git a/packages/effect-agent/test/engine/tool-broker.test.ts b/packages/effect-agent/test/engine/tool-broker.test.ts index c1c3dbf0..a117cbfa 100644 --- a/packages/effect-agent/test/engine/tool-broker.test.ts +++ b/packages/effect-agent/test/engine/tool-broker.test.ts @@ -1,10 +1,10 @@ import { expect, layer } from '@effect/vitest' -import * as Agent from '@yielded/agent/agent' -import { AgentPolicy } from '@yielded/agent/agent-policy' -import { IdGenerator } from '@yielded/agent/id-generator' -import { RunId, ThreadId, TurnId } from '@yielded/agent/identifiers' -import { RunToolAuthorization, type RunToolAuthorizationRequest } from '@yielded/agent/run-options' -import { ToolBroker, type ToolBrokerPass, type ToolBrokerPassOptions } from '@yielded/agent/tool-broker' +import * as Agent from '@systemfsoftware/agent/agent' +import { AgentPolicy } from '@systemfsoftware/agent/agent-policy' +import { IdGenerator } from '@systemfsoftware/agent/id-generator' +import { RunId, ThreadId, TurnId } from '@systemfsoftware/agent/identifiers' +import { RunToolAuthorization, type RunToolAuthorizationRequest } from '@systemfsoftware/agent/run-options' +import { ToolBroker, type ToolBrokerPass, type ToolBrokerPassOptions } from '@systemfsoftware/agent/tool-broker' import * as LanguageModel from 'effect/ai/LanguageModel' import * as Model from 'effect/ai/Model' import type * as Response from 'effect/ai/Response' diff --git a/packages/effect-agent/test/engine/tool-exposure.test.ts b/packages/effect-agent/test/engine/tool-exposure.test.ts index fadaad4e..a593425c 100644 --- a/packages/effect-agent/test/engine/tool-exposure.test.ts +++ b/packages/effect-agent/test/engine/tool-exposure.test.ts @@ -1,11 +1,11 @@ import { expect, layer } from '@effect/vitest' -import * as Agent from '@yielded/agent/agent' -import { ToolExecutionClass } from '@yielded/agent/durable-step' -import { IdGenerator } from '@yielded/agent/id-generator' -import { RunId, ThreadId, TurnId } from '@yielded/agent/identifiers' -import { SubagentGrant } from '@yielded/agent/subagent-contract' -import { ThreadHistory } from '@yielded/agent/thread-history' -import * as ToolDiscovery from '@yielded/agent/tool-discovery' +import * as Agent from '@systemfsoftware/agent/agent' +import { ToolExecutionClass } from '@systemfsoftware/agent/durable-step' +import { IdGenerator } from '@systemfsoftware/agent/id-generator' +import { RunId, ThreadId, TurnId } from '@systemfsoftware/agent/identifiers' +import { SubagentGrant } from '@systemfsoftware/agent/subagent-contract' +import { ThreadHistory } from '@systemfsoftware/agent/thread-history' +import * as ToolDiscovery from '@systemfsoftware/agent/tool-discovery' import { CurrentToolCatalog, DiscoveryTool, @@ -13,7 +13,7 @@ import { RunToolVisibility, Selection, Snapshot, -} from '@yielded/agent/tool-exposure' +} from '@systemfsoftware/agent/tool-exposure' import * as LanguageModel from 'effect/ai/LanguageModel' import * as Model from 'effect/ai/Model' import type * as Response from 'effect/ai/Response' @@ -130,7 +130,7 @@ const failure = (exit: Exit.Exit) => Exit.isFailure(exit) ? Option.getOrUndefined(Cause.findErrorOption(exit.cause)) : undefined layer(Layer.mergeAll(identifiers, ThreadHistory.layer))('native Tool exposure', (it) => { - // Regression: https://github.com/yielded-dev/agent/issues/496 + // Regression: https://github.com/systemfsoftware/agent/issues/496 { it.effect( 'continues after discovery result-byte overflow with only documented selections', diff --git a/packages/effect-agent/test/engine/tool-failure-observer.test.ts b/packages/effect-agent/test/engine/tool-failure-observer.test.ts index 3cfef32a..1a5c80dc 100644 --- a/packages/effect-agent/test/engine/tool-failure-observer.test.ts +++ b/packages/effect-agent/test/engine/tool-failure-observer.test.ts @@ -1,19 +1,19 @@ import { expect, layer } from '@effect/vitest' -import * as Agent from '@yielded/agent/agent' -import { AgentPolicy } from '@yielded/agent/agent-policy' -import * as AgentRuntime from '@yielded/agent/agent-runtime' -import { ToolExecutionClass } from '@yielded/agent/durable-step' -import * as FailureDiagnostic from '@yielded/agent/failure-diagnostic' -import { IdGenerator } from '@yielded/agent/id-generator' -import { RunId, ThreadId, TurnId } from '@yielded/agent/identifiers' -import { type RunEvent } from '@yielded/agent/run-event' +import * as Agent from '@systemfsoftware/agent/agent' +import { AgentPolicy } from '@systemfsoftware/agent/agent-policy' +import * as AgentRuntime from '@systemfsoftware/agent/agent-runtime' +import { ToolExecutionClass } from '@systemfsoftware/agent/durable-step' +import * as FailureDiagnostic from '@systemfsoftware/agent/failure-diagnostic' +import { IdGenerator } from '@systemfsoftware/agent/id-generator' +import { RunId, ThreadId, TurnId } from '@systemfsoftware/agent/identifiers' +import { type RunEvent } from '@systemfsoftware/agent/run-event' import { type RunOptions, type RunToolFailureObserver, type ToolFailureObservation, toolFailureObserverLayer, -} from '@yielded/agent/run-options' -import { ToolBroker, type ToolBrokerPass, type ToolBrokerService } from '@yielded/agent/tool-broker' +} from '@systemfsoftware/agent/run-options' +import { ToolBroker, type ToolBrokerPass, type ToolBrokerService } from '@systemfsoftware/agent/tool-broker' import * as LanguageModel from 'effect/ai/LanguageModel' import * as Model from 'effect/ai/Model' import type * as Response from 'effect/ai/Response' diff --git a/packages/effect-agent/test/engine/tool-progress.test.ts b/packages/effect-agent/test/engine/tool-progress.test.ts index 8e5c17df..502966ef 100644 --- a/packages/effect-agent/test/engine/tool-progress.test.ts +++ b/packages/effect-agent/test/engine/tool-progress.test.ts @@ -1,11 +1,11 @@ import { expect, layer } from '@effect/vitest' -import * as Agent from '@yielded/agent/agent' -import { AgentPolicy } from '@yielded/agent/agent-policy' -import * as AgentRuntime from '@yielded/agent/agent-runtime' -import { IdGenerator } from '@yielded/agent/id-generator' -import { RunId, ThreadId, TurnId } from '@yielded/agent/identifiers' -import { RunContextPreparationPassthrough } from '@yielded/agent/run-options' -import { ThreadHistory } from '@yielded/agent/thread-history' +import * as Agent from '@systemfsoftware/agent/agent' +import { AgentPolicy } from '@systemfsoftware/agent/agent-policy' +import * as AgentRuntime from '@systemfsoftware/agent/agent-runtime' +import { IdGenerator } from '@systemfsoftware/agent/id-generator' +import { RunId, ThreadId, TurnId } from '@systemfsoftware/agent/identifiers' +import { RunContextPreparationPassthrough } from '@systemfsoftware/agent/run-options' +import { ThreadHistory } from '@systemfsoftware/agent/thread-history' import * as LanguageModel from 'effect/ai/LanguageModel' import * as Model from 'effect/ai/Model' import type * as Response from 'effect/ai/Response' diff --git a/packages/effect-agent/test/engine/transient-context.test.ts b/packages/effect-agent/test/engine/transient-context.test.ts index aed7cbed..82143a4c 100644 --- a/packages/effect-agent/test/engine/transient-context.test.ts +++ b/packages/effect-agent/test/engine/transient-context.test.ts @@ -1,12 +1,12 @@ import { expect, layer } from '@effect/vitest' -import * as Agent from '@yielded/agent/agent' -import { AgentPolicy, CompactionPolicy } from '@yielded/agent/agent-policy' -import * as AgentRuntime from '@yielded/agent/agent-runtime' -import { estimateMessageTokens } from '@yielded/agent/compaction' -import { ContextCompactor } from '@yielded/agent/context-compactor' -import { IdGenerator } from '@yielded/agent/id-generator' -import { RunId, ThreadId, TurnId } from '@yielded/agent/identifiers' -import { RunContextPreparation } from '@yielded/agent/run-options' +import * as Agent from '@systemfsoftware/agent/agent' +import { AgentPolicy, CompactionPolicy } from '@systemfsoftware/agent/agent-policy' +import * as AgentRuntime from '@systemfsoftware/agent/agent-runtime' +import { estimateMessageTokens } from '@systemfsoftware/agent/compaction' +import { ContextCompactor } from '@systemfsoftware/agent/context-compactor' +import { IdGenerator } from '@systemfsoftware/agent/id-generator' +import { RunId, ThreadId, TurnId } from '@systemfsoftware/agent/identifiers' +import { RunContextPreparation } from '@systemfsoftware/agent/run-options' import * as AiError from 'effect/ai/AiError' import * as LanguageModel from 'effect/ai/LanguageModel' import * as Model from 'effect/ai/Model' diff --git a/packages/effect-agent/test/engine/turn-lifetime.test.ts b/packages/effect-agent/test/engine/turn-lifetime.test.ts index 8617c01d..e063c527 100644 --- a/packages/effect-agent/test/engine/turn-lifetime.test.ts +++ b/packages/effect-agent/test/engine/turn-lifetime.test.ts @@ -1,10 +1,10 @@ import { expect, layer } from '@effect/vitest' -import * as Agent from '@yielded/agent/agent' -import { AgentPolicy } from '@yielded/agent/agent-policy' -import * as AgentRuntime from '@yielded/agent/agent-runtime' -import { IdGenerator } from '@yielded/agent/id-generator' -import { RunId, ThreadId, TurnId } from '@yielded/agent/identifiers' -import { ThreadHistory } from '@yielded/agent/thread-history' +import * as Agent from '@systemfsoftware/agent/agent' +import { AgentPolicy } from '@systemfsoftware/agent/agent-policy' +import * as AgentRuntime from '@systemfsoftware/agent/agent-runtime' +import { IdGenerator } from '@systemfsoftware/agent/id-generator' +import { RunId, ThreadId, TurnId } from '@systemfsoftware/agent/identifiers' +import { ThreadHistory } from '@systemfsoftware/agent/thread-history' import * as LanguageModel from 'effect/ai/LanguageModel' import * as Model from 'effect/ai/Model' import type * as Response from 'effect/ai/Response' diff --git a/packages/platform-node/package.json b/packages/platform-node/package.json index db888aa4..bcd84f11 100644 --- a/packages/platform-node/package.json +++ b/packages/platform-node/package.json @@ -1,13 +1,17 @@ { - "name": "@yielded/agent-platform-node", - "version": "0.1.0-beta.192", + "name": "@systemfsoftware/agent-platform-node", + "version": "0.1.0", "description": "Class DN layer assembly for Effect Agent: the durable Node/SQLite runtime host, wake scheduler, and ownership drain.", "license": "MIT", "repository": { "type": "git", - "url": "git+https://github.com/yielded-dev/agent.git", + "url": "git+https://github.com/systemfsoftware/agent.git", "directory": "packages/platform-node" }, + "bugs": { + "url": "https://github.com/systemfsoftware/agent/issues" + }, + "homepage": "https://github.com/systemfsoftware/agent/tree/main/packages/platform-node#readme", "files": [ "dist", "src" @@ -60,8 +64,8 @@ "dependencies": { "@effect/platform-node": "catalog:", "@effect/sql-sqlite-node": "catalog:", - "@yielded/agent": "workspace:*", - "@yielded/agent-storage-sqlite": "workspace:*" + "@systemfsoftware/agent": "workspace:*", + "@systemfsoftware/agent-storage-sqlite": "workspace:*" }, "devDependencies": { "@arethetypeswrong/cli": "catalog:", diff --git a/packages/platform-node/src/NodeDurableAgentRuntime.ts b/packages/platform-node/src/NodeDurableAgentRuntime.ts index aa3096ad..c8133a10 100644 --- a/packages/platform-node/src/NodeDurableAgentRuntime.ts +++ b/packages/platform-node/src/NodeDurableAgentRuntime.ts @@ -1,26 +1,33 @@ import * as NodeCrypto from '@effect/platform-node/NodeCrypto' import * as SqliteClient from '@effect/sql-sqlite-node/SqliteClient' -import { messageDeliveryStoreLayer } from '@yielded/agent-storage-sqlite/sqlite-message-delivery-store' -import { scheduleStoreLayer } from '@yielded/agent-storage-sqlite/sqlite-schedule-store' -import { SqliteStorageConfig, SqliteStorageConfigValue } from '@yielded/agent-storage-sqlite/sqlite-storage-config' -import { SqliteStorageError } from '@yielded/agent-storage-sqlite/sqlite-storage-error' +import { messageDeliveryStoreLayer } from '@systemfsoftware/agent-storage-sqlite/sqlite-message-delivery-store' +import { scheduleStoreLayer } from '@systemfsoftware/agent-storage-sqlite/sqlite-schedule-store' +import { + SqliteStorageConfig, + SqliteStorageConfigValue, +} from '@systemfsoftware/agent-storage-sqlite/sqlite-storage-config' +import { SqliteStorageError } from '@systemfsoftware/agent-storage-sqlite/sqlite-storage-error' import { SqliteStorageFailpoint, type SqliteStorageFailpointHandler, -} from '@yielded/agent-storage-sqlite/sqlite-storage-failpoint' -import { submissionLedgerLayer } from '@yielded/agent-storage-sqlite/sqlite-submission-ledger' +} from '@systemfsoftware/agent-storage-sqlite/sqlite-storage-failpoint' +import { submissionLedgerLayer } from '@systemfsoftware/agent-storage-sqlite/sqlite-submission-ledger' import { exclusiveHostClientLayer, exclusiveRunStorageLayer, type SqliteStorageInitializationError, storageFailpointLayer, threadStoreLayer, -} from '@yielded/agent-storage-sqlite/sqlite-thread-store' -import { type AgentRegistration, compileRegistrations, type ResolvedBinding } from '@yielded/agent/agent-registration' -import { DurableAgentRuntime, DurableRuntimeConfig } from '@yielded/agent/durable-agent-runtime' -import { DurableRuntimeFailpoint, type DurableRuntimeFailpointHandler } from '@yielded/agent/durable-failpoint' -import { type MessageDeliveryError, MessageDeliveryStore } from '@yielded/agent/message-delivery' -import { DeploymentId, ProducerId } from '@yielded/agent/records' +} from '@systemfsoftware/agent-storage-sqlite/sqlite-thread-store' +import { + type AgentRegistration, + compileRegistrations, + type ResolvedBinding, +} from '@systemfsoftware/agent/agent-registration' +import { DurableAgentRuntime, DurableRuntimeConfig } from '@systemfsoftware/agent/durable-agent-runtime' +import { DurableRuntimeFailpoint, type DurableRuntimeFailpointHandler } from '@systemfsoftware/agent/durable-failpoint' +import { type MessageDeliveryError, MessageDeliveryStore } from '@systemfsoftware/agent/message-delivery' +import { DeploymentId, ProducerId } from '@systemfsoftware/agent/records' import { CurrentToolFailureObserver, type RunContextPreparation, @@ -29,10 +36,10 @@ import { RunToolAuthorization, type RunToolFailureObserver, toolFailureObserverLayer, -} from '@yielded/agent/run-options' -import { layer as runStorageLayer } from '@yielded/agent/run-storage' -import { ThreadReader } from '@yielded/agent/thread-store' -import { ToolReconciler } from '@yielded/agent/tool-reconciler' +} from '@systemfsoftware/agent/run-options' +import { layer as runStorageLayer } from '@systemfsoftware/agent/run-storage' +import { ThreadReader } from '@systemfsoftware/agent/thread-store' +import { ToolReconciler } from '@systemfsoftware/agent/tool-reconciler' import * as Context from 'effect/Context' import * as CryptoDigest from 'effect/crypto/Digest' import type * as SecureRandom from 'effect/crypto/SecureRandom' diff --git a/packages/platform-node/src/NodeDurableHost.ts b/packages/platform-node/src/NodeDurableHost.ts index 257d5ce3..bab1da5f 100644 --- a/packages/platform-node/src/NodeDurableHost.ts +++ b/packages/platform-node/src/NodeDurableHost.ts @@ -3,7 +3,7 @@ import { type AgentRegistration, type DurableBindingFailure, type ResolvedBinding, -} from '@yielded/agent/agent-registration' +} from '@systemfsoftware/agent/agent-registration' import { type DurableAbortFailure, DurableAgentRuntime, @@ -16,20 +16,24 @@ import { type Receipt, type RecoveryBlocked, type RecoveryReport, -} from '@yielded/agent/durable-agent-runtime' -import { MessageDeliveryDriver, type MessageDeliveryError, MessageDeliveryStore } from '@yielded/agent/message-delivery' -import { type OperationDenied } from '@yielded/agent/operation-authorizer' -import { PreparedInputAdmission } from '@yielded/agent/prepared-input-admission' -import { type CanonicalRecordEnvelope } from '@yielded/agent/records' +} from '@systemfsoftware/agent/durable-agent-runtime' +import { + MessageDeliveryDriver, + type MessageDeliveryError, + MessageDeliveryStore, +} from '@systemfsoftware/agent/message-delivery' +import { type OperationDenied } from '@systemfsoftware/agent/operation-authorizer' +import { PreparedInputAdmission } from '@systemfsoftware/agent/prepared-input-admission' +import { type CanonicalRecordEnvelope } from '@systemfsoftware/agent/records' import { type AbortCommand, type AbortIntent, type Settlement, SubmissionLedger, -} from '@yielded/agent/submission-ledger' -import { type ThreadNotMaterialized, ThreadReader, type ThreadStoreError } from '@yielded/agent/thread-store' -import { MAX_RECOVERY_WORK_ITEMS } from '@yielded/agent/thread-work' -import { WakeScheduler } from '@yielded/agent/wake-scheduler' +} from '@systemfsoftware/agent/submission-ledger' +import { type ThreadNotMaterialized, ThreadReader, type ThreadStoreError } from '@systemfsoftware/agent/thread-store' +import { MAX_RECOVERY_WORK_ITEMS } from '@systemfsoftware/agent/thread-work' +import { WakeScheduler } from '@systemfsoftware/agent/wake-scheduler' import * as Context from 'effect/Context' import * as Effect from 'effect/Effect' import * as Fiber from 'effect/Fiber' diff --git a/packages/platform-node/src/NodeScheduling.ts b/packages/platform-node/src/NodeScheduling.ts index 64ba3cfc..fabe9240 100644 --- a/packages/platform-node/src/NodeScheduling.ts +++ b/packages/platform-node/src/NodeScheduling.ts @@ -7,8 +7,8 @@ import { type ScheduleValidationError, ScheduleWake, type SchedulingLimits, -} from '@yielded/agent/schedule' -import { ScheduleDriver, type ScheduleProcessFailure, Scheduling } from '@yielded/agent/scheduling' +} from '@systemfsoftware/agent/schedule' +import { ScheduleDriver, type ScheduleProcessFailure, Scheduling } from '@systemfsoftware/agent/scheduling' import * as Cause from 'effect/Cause' import * as Duration from 'effect/Duration' import * as Effect from 'effect/Effect' diff --git a/packages/platform-node/src/NodeSubscriptions.ts b/packages/platform-node/src/NodeSubscriptions.ts index 2c1d3c45..42c00154 100644 --- a/packages/platform-node/src/NodeSubscriptions.ts +++ b/packages/platform-node/src/NodeSubscriptions.ts @@ -1,6 +1,6 @@ import * as NodeCrypto from '@effect/platform-node/NodeCrypto' -import { type EventSources } from '@yielded/agent/event-source' -import { PreparedInputAdmission } from '@yielded/agent/prepared-input-admission' +import { type EventSources } from '@systemfsoftware/agent/event-source' +import { PreparedInputAdmission } from '@systemfsoftware/agent/prepared-input-admission' import { defaultSubscriptionLimits, type SubscriptionAuthorizer, @@ -8,9 +8,9 @@ import { type SubscriptionLimits, SubscriptionStore, type SubscriptionStoreFailure, -} from '@yielded/agent/subscription' -import { type SubscriptionInputBindings } from '@yielded/agent/subscription-input' -import { SubscriptionDriver, SubscriptionIntake, Subscriptions } from '@yielded/agent/subscriptions' +} from '@systemfsoftware/agent/subscription' +import { type SubscriptionInputBindings } from '@systemfsoftware/agent/subscription-input' +import { SubscriptionDriver, SubscriptionIntake, Subscriptions } from '@systemfsoftware/agent/subscriptions' import * as Cause from 'effect/Cause' import * as Duration from 'effect/Duration' import * as Effect from 'effect/Effect' diff --git a/packages/platform-node/src/NodeWakeScheduler.ts b/packages/platform-node/src/NodeWakeScheduler.ts index aa00ae5f..81686f17 100644 --- a/packages/platform-node/src/NodeWakeScheduler.ts +++ b/packages/platform-node/src/NodeWakeScheduler.ts @@ -1,7 +1,7 @@ -import { type ThreadId } from '@yielded/agent/identifiers' -import type { ThreadStore, ThreadStoreError } from '@yielded/agent/thread-store' -import { ThreadWorkDiscovery } from '@yielded/agent/thread-work' -import { makeWakeSubscriptionHub, WakeScheduler } from '@yielded/agent/wake-scheduler' +import { type ThreadId } from '@systemfsoftware/agent/identifiers' +import type { ThreadStore, ThreadStoreError } from '@systemfsoftware/agent/thread-store' +import { ThreadWorkDiscovery } from '@systemfsoftware/agent/thread-work' +import { makeWakeSubscriptionHub, WakeScheduler } from '@systemfsoftware/agent/wake-scheduler' import * as Clock from 'effect/Clock' import * as Context from 'effect/Context' import type * as Duration from 'effect/Duration' diff --git a/packages/platform-node/src/internal/message-delivery.ts b/packages/platform-node/src/internal/message-delivery.ts index fe6e6c98..94f8b3d9 100644 --- a/packages/platform-node/src/internal/message-delivery.ts +++ b/packages/platform-node/src/internal/message-delivery.ts @@ -2,7 +2,7 @@ import { MessageDeliveryDriver, type MessageDeliveryFailure, MessageDeliveryStore, -} from '@yielded/agent/message-delivery' +} from '@systemfsoftware/agent/message-delivery' import * as Cause from 'effect/Cause' import * as Clock from 'effect/Clock' import * as Effect from 'effect/Effect' diff --git a/packages/platform-node/src/internal/prepared-admission.ts b/packages/platform-node/src/internal/prepared-admission.ts index 5cc97b64..8dae0463 100644 --- a/packages/platform-node/src/internal/prepared-admission.ts +++ b/packages/platform-node/src/internal/prepared-admission.ts @@ -1,12 +1,12 @@ -import { type DurableSubmitAgent } from '@yielded/agent/durable-agent-runtime' -import { type AgentId } from '@yielded/agent/identifiers' +import { type DurableSubmitAgent } from '@systemfsoftware/agent/durable-agent-runtime' +import { type AgentId } from '@systemfsoftware/agent/identifiers' import { PreparedInputAdmission, PreparedInputRefused, PreparedInputRetryable, -} from '@yielded/agent/prepared-input-admission' -import { PersistedJson } from '@yielded/agent/records' -import { ScheduleStorageError } from '@yielded/agent/schedule' +} from '@systemfsoftware/agent/prepared-input-admission' +import { PersistedJson } from '@systemfsoftware/agent/records' +import { ScheduleStorageError } from '@systemfsoftware/agent/schedule' import * as Context from 'effect/Context' import * as Effect from 'effect/Effect' diff --git a/packages/platform-node/src/internal/worker-dispatch.ts b/packages/platform-node/src/internal/worker-dispatch.ts index fb715a93..f8048536 100644 --- a/packages/platform-node/src/internal/worker-dispatch.ts +++ b/packages/platform-node/src/internal/worker-dispatch.ts @@ -1,7 +1,7 @@ -import type { DurableBindingFailure } from '@yielded/agent/agent-registration' -import { DurableAgentRuntime, type DurableWorkerFailure } from '@yielded/agent/durable-agent-runtime' -import type { ThreadId } from '@yielded/agent/identifiers' -import { WakeScheduler } from '@yielded/agent/wake-scheduler' +import type { DurableBindingFailure } from '@systemfsoftware/agent/agent-registration' +import { DurableAgentRuntime, type DurableWorkerFailure } from '@systemfsoftware/agent/durable-agent-runtime' +import type { ThreadId } from '@systemfsoftware/agent/identifiers' +import { WakeScheduler } from '@systemfsoftware/agent/wake-scheduler' import * as Effect from 'effect/Effect' import * as Option from 'effect/Option' import * as Queue from 'effect/Queue' diff --git a/packages/platform-node/test/automatic-worker-reports.test.ts b/packages/platform-node/test/automatic-worker-reports.test.ts index 93e73eec..e03c665b 100644 --- a/packages/platform-node/test/automatic-worker-reports.test.ts +++ b/packages/platform-node/test/automatic-worker-reports.test.ts @@ -1,15 +1,15 @@ import * as NodeFileSystem from '@effect/platform-node/NodeFileSystem' import { expect, it } from '@effect/vitest' -import * as NodeHost from '@yielded/agent-platform-node/node-durable-host' -import * as Agent from '@yielded/agent/agent' -import { DurableAgentRuntime } from '@yielded/agent/durable-agent-runtime' -import { ThreadId } from '@yielded/agent/identifiers' -import { MessageDeliveryStore } from '@yielded/agent/message-delivery' -import { DefinitionDigestInput } from '@yielded/agent/records' -import * as Subagent from '@yielded/agent/subagent' -import { SubagentHost } from '@yielded/agent/subagent-host' -import { IdempotencyKey, Principal } from '@yielded/agent/submission-ledger' -import { WorkerHostAuthorizer } from '@yielded/agent/worker-host' +import * as NodeHost from '@systemfsoftware/agent-platform-node/node-durable-host' +import * as Agent from '@systemfsoftware/agent/agent' +import { DurableAgentRuntime } from '@systemfsoftware/agent/durable-agent-runtime' +import { ThreadId } from '@systemfsoftware/agent/identifiers' +import { MessageDeliveryStore } from '@systemfsoftware/agent/message-delivery' +import { DefinitionDigestInput } from '@systemfsoftware/agent/records' +import * as Subagent from '@systemfsoftware/agent/subagent' +import { SubagentHost } from '@systemfsoftware/agent/subagent-host' +import { IdempotencyKey, Principal } from '@systemfsoftware/agent/submission-ledger' +import { WorkerHostAuthorizer } from '@systemfsoftware/agent/worker-host' import * as LanguageModel from 'effect/ai/LanguageModel' import * as Model from 'effect/ai/Model' import type * as Response from 'effect/ai/Response' @@ -48,7 +48,7 @@ const model = (name: string, streamText: Parameters[0 ), ) -// Regression: https://github.com/yielded-dev/agent/blob/36a411fc3f468fa87d4dd91234988a716d4ebbc5/packages/effect-agent/src/durable/internal/worker-host.ts#L3058-L3075 +// Regression: https://github.com/systemfsoftware/agent/blob/36a411fc3f468fa87d4dd91234988a716d4ebbc5/packages/effect-agent/src/durable/internal/worker-host.ts#L3058-L3075 it.effect( 'authorizes successor completion reports as the current source principal', () => diff --git a/packages/platform-node/test/background-workers.test.ts b/packages/platform-node/test/background-workers.test.ts index 1ea2fd23..cd3de68a 100644 --- a/packages/platform-node/test/background-workers.test.ts +++ b/packages/platform-node/test/background-workers.test.ts @@ -1,29 +1,29 @@ import * as NodeFileSystem from '@effect/platform-node/NodeFileSystem' import { expect, it } from '@effect/vitest' -import * as NodeHost from '@yielded/agent-platform-node/node-durable-host' -import * as Agent from '@yielded/agent/agent' -import { DurableAgentRuntime } from '@yielded/agent/durable-agent-runtime' -import { DurableRuntimeFailpointError } from '@yielded/agent/durable-failpoint' -import { ThreadId, ToolCallId } from '@yielded/agent/identifiers' -import { MessageDeliveryFailpoint, MessageDeliveryStore } from '@yielded/agent/message-delivery' -import type { Receipt } from '@yielded/agent/receipt' -import { DefinitionDigestInput } from '@yielded/agent/records' -import { canonicalRecordBytes, runEvidence } from '@yielded/agent/run-continuation' -import { runIdForSubmission } from '@yielded/agent/run-journal' -import { RunToolAuthorization } from '@yielded/agent/run-options' -import * as Subagent from '@yielded/agent/subagent' -import { SubagentHost } from '@yielded/agent/subagent-host' -import { ApprovalDecisionCommand, IdempotencyKey, Principal } from '@yielded/agent/submission-ledger' -import { readTestThread } from '@yielded/agent/testing/thread-store-conformance' +import * as NodeHost from '@systemfsoftware/agent-platform-node/node-durable-host' +import * as Agent from '@systemfsoftware/agent/agent' +import { DurableAgentRuntime } from '@systemfsoftware/agent/durable-agent-runtime' +import { DurableRuntimeFailpointError } from '@systemfsoftware/agent/durable-failpoint' +import { ThreadId, ToolCallId } from '@systemfsoftware/agent/identifiers' +import { MessageDeliveryFailpoint, MessageDeliveryStore } from '@systemfsoftware/agent/message-delivery' +import type { Receipt } from '@systemfsoftware/agent/receipt' +import { DefinitionDigestInput } from '@systemfsoftware/agent/records' +import { canonicalRecordBytes, runEvidence } from '@systemfsoftware/agent/run-continuation' +import { runIdForSubmission } from '@systemfsoftware/agent/run-journal' +import { RunToolAuthorization } from '@systemfsoftware/agent/run-options' +import * as Subagent from '@systemfsoftware/agent/subagent' +import { SubagentHost } from '@systemfsoftware/agent/subagent-host' +import { ApprovalDecisionCommand, IdempotencyKey, Principal } from '@systemfsoftware/agent/submission-ledger' +import { readTestThread } from '@systemfsoftware/agent/testing/thread-store-conformance' import { readWorkerState, ThreadExportRequest, ThreadIdentityRequest, ThreadReader, ThreadStore, -} from '@yielded/agent/thread-store' -import { AssignmentDisposition, WorkerError, type WorkerSummary } from '@yielded/agent/worker' -import { WorkerBudgetAuthorizer, WorkerHostAuthorizer } from '@yielded/agent/worker-host' +} from '@systemfsoftware/agent/thread-store' +import { AssignmentDisposition, WorkerError, type WorkerSummary } from '@systemfsoftware/agent/worker' +import { WorkerBudgetAuthorizer, WorkerHostAuthorizer } from '@systemfsoftware/agent/worker-host' import * as LanguageModel from 'effect/ai/LanguageModel' import * as Model from 'effect/ai/Model' import type * as Response from 'effect/ai/Response' @@ -235,7 +235,7 @@ it.effect('reports an unknown worker without replaying its uncertain operation', }), ).pipe(Effect.provide(NodeFileSystem.layer))) -// Regression: https://github.com/yielded-dev/agent/commit/6ceda1d221d990d4959f21596eedad84e742c95f +// Regression: https://github.com/systemfsoftware/agent/commit/6ceda1d221d990d4959f21596eedad84e742c95f it.effect( 'keeps launching Run evidence unchanged across independently funded worker follow-ups', () => @@ -552,7 +552,7 @@ it.effect( 15_000, ) -// Regression: https://github.com/yielded-dev/agent/blob/4c417d98e8cc790c42ab4200a54a0548fe32e6e3/packages/effect-agent/src/durable/internal/worker-host.ts#L1645-L1691 +// Regression: https://github.com/systemfsoftware/agent/blob/4c417d98e8cc790c42ab4200a54a0548fe32e6e3/packages/effect-agent/src/durable/internal/worker-host.ts#L1645-L1691 for (const completion of ['interrupted'] as const) { it.effect( `tracks one retained delivery through acceptance and completion after its ${completion} claim`, @@ -1869,7 +1869,7 @@ it.effect( 15_000, ) -// Regression: https://github.com/yielded-dev/agent/blob/c721a292205e06185f0136c3ed05dcf53e29ca66/packages/effect-agent/src/durable/internal/worker-host.ts#L2189-L2210 +// Regression: https://github.com/systemfsoftware/agent/blob/c721a292205e06185f0136c3ed05dcf53e29ca66/packages/effect-agent/src/durable/internal/worker-host.ts#L2189-L2210 for (const point of ['worker:after-source-append', 'worker:after-origin-append'] as const) { it.effect( `recovers a successor after interruption at ${point}`, diff --git a/packages/platform-node/test/crash/crash-subagents.test.ts b/packages/platform-node/test/crash/crash-subagents.test.ts index 5df2ca29..897b23eb 100644 --- a/packages/platform-node/test/crash/crash-subagents.test.ts +++ b/packages/platform-node/test/crash/crash-subagents.test.ts @@ -1,26 +1,26 @@ import * as NodeFileSystem from '@effect/platform-node/NodeFileSystem' import { expect, layer } from '@effect/vitest' -import { NodeDurableHost } from '@yielded/agent-platform-node/node-durable-host' -import { DurableAgentRuntime, DurableRuntimeConfig } from '@yielded/agent/durable-agent-runtime' -import { DurableRuntimeFailpoint, type DurableRuntimeFailpointLocation } from '@yielded/agent/durable-failpoint' -import { type SubmissionId } from '@yielded/agent/identifiers' -import { DeploymentId, ProducerId } from '@yielded/agent/records' +import { NodeDurableHost } from '@systemfsoftware/agent-platform-node/node-durable-host' +import { DurableAgentRuntime, DurableRuntimeConfig } from '@systemfsoftware/agent/durable-agent-runtime' +import { DurableRuntimeFailpoint, type DurableRuntimeFailpointLocation } from '@systemfsoftware/agent/durable-failpoint' +import { type SubmissionId } from '@systemfsoftware/agent/identifiers' +import { DeploymentId, ProducerId } from '@systemfsoftware/agent/records' import { childIdempotencyKeyFor, childThreadIdFor, runIdForSubmission, toolCallSettledRecordId, -} from '@yielded/agent/run-journal' -import { RunToolAuthorization } from '@yielded/agent/run-options' -import { StorageOwner } from '@yielded/agent/run-storage' +} from '@systemfsoftware/agent/run-journal' +import { RunToolAuthorization } from '@systemfsoftware/agent/run-options' +import { StorageOwner } from '@systemfsoftware/agent/run-storage' import { AbortCommand, RecoverySnapshotRequest, SubmissionLedger, SubmissionLookupById, SubmissionLookupByKey, -} from '@yielded/agent/submission-ledger' -import { ToolReconciler } from '@yielded/agent/tool-reconciler' +} from '@systemfsoftware/agent/submission-ledger' +import { ToolReconciler } from '@systemfsoftware/agent/tool-reconciler' import * as Effect from 'effect/Effect' import * as Fiber from 'effect/Fiber' import * as Layer from 'effect/Layer' diff --git a/packages/platform-node/test/crash/crash.test.ts b/packages/platform-node/test/crash/crash.test.ts index 7f99d096..42d7a536 100644 --- a/packages/platform-node/test/crash/crash.test.ts +++ b/packages/platform-node/test/crash/crash.test.ts @@ -1,9 +1,9 @@ import * as NodeFileSystem from '@effect/platform-node/NodeFileSystem' import { expect, layer } from '@effect/vitest' -import { NodeDurableHost } from '@yielded/agent-platform-node/node-durable-host' -import * as Agent from '@yielded/agent/agent' -import { DurableAgentRuntime, recoveryRepairRecordId } from '@yielded/agent/durable-agent-runtime' -import { type CanonicalRecordEnvelope, type RecordEnvelope } from '@yielded/agent/records' +import { NodeDurableHost } from '@systemfsoftware/agent-platform-node/node-durable-host' +import * as Agent from '@systemfsoftware/agent/agent' +import { DurableAgentRuntime, recoveryRepairRecordId } from '@systemfsoftware/agent/durable-agent-runtime' +import { type CanonicalRecordEnvelope, type RecordEnvelope } from '@systemfsoftware/agent/records' import { modelResponseInterruptedRecordId, modelResponseRecordId, @@ -14,8 +14,8 @@ import { toolCallSettledRecordId, toolCallUnknownRecordId, toolStepSettledRecordId, -} from '@yielded/agent/run-journal' -import { RunStorage, StorageOwner } from '@yielded/agent/run-storage' +} from '@systemfsoftware/agent/run-journal' +import { RunStorage, StorageOwner } from '@systemfsoftware/agent/run-storage' import { AbortCommand, ApprovalDecisionCommand, @@ -24,8 +24,8 @@ import { submissionInputRecordId, SubmissionLedger, submissionSettlementRecordId, -} from '@yielded/agent/submission-ledger' -import { ThreadStore } from '@yielded/agent/thread-store' +} from '@systemfsoftware/agent/submission-ledger' +import { ThreadStore } from '@systemfsoftware/agent/thread-store' import * as Prompt from 'effect/ai/Prompt' import * as Deferred from 'effect/Deferred' import * as Effect from 'effect/Effect' diff --git a/packages/platform-node/test/crash/fixtures.ts b/packages/platform-node/test/crash/fixtures.ts index 1b22b2e3..2fd1654c 100644 --- a/packages/platform-node/test/crash/fixtures.ts +++ b/packages/platform-node/test/crash/fixtures.ts @@ -1,25 +1,25 @@ import * as fs from 'node:fs' -import * as Agent from '@yielded/agent/agent' -import { AgentPolicy } from '@yielded/agent/agent-policy' -import { DurableWorkerBinding, type ResolvedBinding } from '@yielded/agent/agent-registration' -import { type DurableSubmitOptions, Receipt } from '@yielded/agent/durable-agent-runtime' -import { DurableStep, DurableStepError, ToolExecutionClass } from '@yielded/agent/durable-step' -import { IdGenerator } from '@yielded/agent/id-generator' -import { RunId, ThreadId, ToolCallId, TurnId } from '@yielded/agent/identifiers' -import { DefinitionDigests, Digest } from '@yielded/agent/records' -import { RunContextPreparation } from '@yielded/agent/run-options' -import * as Subagent from '@yielded/agent/subagent' -import { SubagentPolicy } from '@yielded/agent/subagent' -import { SubagentReservationsMemoryLive } from '@yielded/agent/subagent-reservations' -import { IdempotencyKey, Principal, Settlement } from '@yielded/agent/submission-ledger' +import * as Agent from '@systemfsoftware/agent/agent' +import { AgentPolicy } from '@systemfsoftware/agent/agent-policy' +import { DurableWorkerBinding, type ResolvedBinding } from '@systemfsoftware/agent/agent-registration' +import { type DurableSubmitOptions, Receipt } from '@systemfsoftware/agent/durable-agent-runtime' +import { DurableStep, DurableStepError, ToolExecutionClass } from '@systemfsoftware/agent/durable-step' +import { IdGenerator } from '@systemfsoftware/agent/id-generator' +import { RunId, ThreadId, ToolCallId, TurnId } from '@systemfsoftware/agent/identifiers' +import { DefinitionDigests, Digest } from '@systemfsoftware/agent/records' +import { RunContextPreparation } from '@systemfsoftware/agent/run-options' +import * as Subagent from '@systemfsoftware/agent/subagent' +import { SubagentPolicy } from '@systemfsoftware/agent/subagent' +import { SubagentReservationsMemoryLive } from '@systemfsoftware/agent/subagent-reservations' +import { IdempotencyKey, Principal, Settlement } from '@systemfsoftware/agent/submission-ledger' import { ReconciliationCompleted, ReconciliationNeverStarted, ReconciliationSafeToRetry, ReconciliationUncertain, ToolReconciler, -} from '@yielded/agent/tool-reconciler' +} from '@systemfsoftware/agent/tool-reconciler' import * as LanguageModel from 'effect/ai/LanguageModel' import * as Model from 'effect/ai/Model' import type * as Response from 'effect/ai/Response' diff --git a/packages/platform-node/test/crash/harness.ts b/packages/platform-node/test/crash/harness.ts index fa5d2ab2..f57695b7 100644 --- a/packages/platform-node/test/crash/harness.ts +++ b/packages/platform-node/test/crash/harness.ts @@ -6,13 +6,13 @@ import { expect } from '@effect/vitest' import { NodeDurableAgentRuntime, type NodeDurableAgentRuntimeOptions, -} from '@yielded/agent-platform-node/node-durable-agent-runtime' -import { NodeDurableHost } from '@yielded/agent-platform-node/node-durable-host' -import { type SqliteStorageFailpointLocation } from '@yielded/agent-storage-sqlite/sqlite-storage-error' -import { type ResolvedBinding } from '@yielded/agent/agent-registration' -import { type DurableRuntimeFailpointLocation } from '@yielded/agent/durable-failpoint' -import { type SubmissionId } from '@yielded/agent/identifiers' -import { type CanonicalRecordEnvelope } from '@yielded/agent/records' +} from '@systemfsoftware/agent-platform-node/node-durable-agent-runtime' +import { NodeDurableHost } from '@systemfsoftware/agent-platform-node/node-durable-host' +import { type SqliteStorageFailpointLocation } from '@systemfsoftware/agent-storage-sqlite/sqlite-storage-error' +import { type ResolvedBinding } from '@systemfsoftware/agent/agent-registration' +import { type DurableRuntimeFailpointLocation } from '@systemfsoftware/agent/durable-failpoint' +import { type SubmissionId } from '@systemfsoftware/agent/identifiers' +import { type CanonicalRecordEnvelope } from '@systemfsoftware/agent/records' import { submissionInputRecordId, SubmissionLedger, @@ -20,8 +20,8 @@ import { SubmissionLookupByKey, submissionSettlementRecordId, type SubmissionSnapshot, -} from '@yielded/agent/submission-ledger' -import { ThreadRead, ThreadStore } from '@yielded/agent/thread-store' +} from '@systemfsoftware/agent/submission-ledger' +import { ThreadRead, ThreadStore } from '@systemfsoftware/agent/thread-store' import * as Cause from 'effect/Cause' import * as Duration from 'effect/Duration' import * as Effect from 'effect/Effect' diff --git a/packages/platform-node/test/crash/run-continuation.test.ts b/packages/platform-node/test/crash/run-continuation.test.ts index abd8b8ce..8631f579 100644 --- a/packages/platform-node/test/crash/run-continuation.test.ts +++ b/packages/platform-node/test/crash/run-continuation.test.ts @@ -1,10 +1,10 @@ import * as NodeFileSystem from '@effect/platform-node/NodeFileSystem' import { expect, layer } from '@effect/vitest' -import { NodeDurableHost } from '@yielded/agent-platform-node/node-durable-host' -import * as Agent from '@yielded/agent/agent' -import { DurableAgentRuntime } from '@yielded/agent/durable-agent-runtime' -import { runIdForSubmission } from '@yielded/agent/run-journal' -import { ThreadStore } from '@yielded/agent/thread-store' +import { NodeDurableHost } from '@systemfsoftware/agent-platform-node/node-durable-host' +import * as Agent from '@systemfsoftware/agent/agent' +import { DurableAgentRuntime } from '@systemfsoftware/agent/durable-agent-runtime' +import { runIdForSubmission } from '@systemfsoftware/agent/run-journal' +import { ThreadStore } from '@systemfsoftware/agent/thread-store' import * as LanguageModel from 'effect/ai/LanguageModel' import * as Model from 'effect/ai/Model' import type * as Prompt from 'effect/ai/Prompt' diff --git a/packages/platform-node/test/crash/scheduling-crash.test.ts b/packages/platform-node/test/crash/scheduling-crash.test.ts index 408b4fd5..be260776 100644 --- a/packages/platform-node/test/crash/scheduling-crash.test.ts +++ b/packages/platform-node/test/crash/scheduling-crash.test.ts @@ -1,10 +1,10 @@ import * as NodeServices from '@effect/platform-node/NodeServices' import * as SqliteClient from '@effect/sql-sqlite-node/SqliteClient' import { expect, it } from '@effect/vitest' -import { NodeDurableHost } from '@yielded/agent-platform-node/node-durable-host' -import { NodeScheduling } from '@yielded/agent-platform-node/node-scheduling' -import { defaultSchedulingLimits, ScheduleAuthorizer, ScheduleRecord } from '@yielded/agent/schedule' -import { Scheduling } from '@yielded/agent/scheduling' +import { NodeDurableHost } from '@systemfsoftware/agent-platform-node/node-durable-host' +import { NodeScheduling } from '@systemfsoftware/agent-platform-node/node-scheduling' +import { defaultSchedulingLimits, ScheduleAuthorizer, ScheduleRecord } from '@systemfsoftware/agent/schedule' +import { Scheduling } from '@systemfsoftware/agent/scheduling' import * as Context from 'effect/Context' import * as Duration from 'effect/Duration' import * as Effect from 'effect/Effect' diff --git a/packages/platform-node/test/crash/scheduling-worker.ts b/packages/platform-node/test/crash/scheduling-worker.ts index 68e62c43..7a8a3817 100644 --- a/packages/platform-node/test/crash/scheduling-worker.ts +++ b/packages/platform-node/test/crash/scheduling-worker.ts @@ -1,10 +1,10 @@ -import { NodeDurableHost } from '@yielded/agent-platform-node/node-durable-host' -import { NodeScheduling } from '@yielded/agent-platform-node/node-scheduling' -import { AgentId } from '@yielded/agent/identifiers' -import { DefinitionDigests, Digest } from '@yielded/agent/records' -import { ScheduleAuthorizer, ScheduleFailpoint, ScheduleId } from '@yielded/agent/schedule' -import { Scheduling } from '@yielded/agent/scheduling' -import { Principal } from '@yielded/agent/submission-ledger' +import { NodeDurableHost } from '@systemfsoftware/agent-platform-node/node-durable-host' +import { NodeScheduling } from '@systemfsoftware/agent-platform-node/node-scheduling' +import { AgentId } from '@systemfsoftware/agent/identifiers' +import { DefinitionDigests, Digest } from '@systemfsoftware/agent/records' +import { ScheduleAuthorizer, ScheduleFailpoint, ScheduleId } from '@systemfsoftware/agent/schedule' +import { Scheduling } from '@systemfsoftware/agent/scheduling' +import { Principal } from '@systemfsoftware/agent/submission-ledger' import * as Config from 'effect/Config' import * as Console from 'effect/Console' import * as Effect from 'effect/Effect' diff --git a/packages/platform-node/test/crash/thread-transfer.test.ts b/packages/platform-node/test/crash/thread-transfer.test.ts index bbb175f9..9a71f098 100644 --- a/packages/platform-node/test/crash/thread-transfer.test.ts +++ b/packages/platform-node/test/crash/thread-transfer.test.ts @@ -2,21 +2,21 @@ import { DatabaseSync } from 'node:sqlite' import * as NodeFileSystem from '@effect/platform-node/NodeFileSystem' import { expect, layer } from '@effect/vitest' -import { NodeDurableHost } from '@yielded/agent-platform-node/node-durable-host' -import * as SqliteThreadStore from '@yielded/agent-storage-sqlite/sqlite-thread-store' -import * as Agent from '@yielded/agent/agent' -import { DurableAgentRuntime } from '@yielded/agent/durable-agent-runtime' -import { Receipt } from '@yielded/agent/receipt' -import { CanonicalRecordEnvelope, CURRENT_RECORD_FORMAT } from '@yielded/agent/records' -import { runIdForSubmission } from '@yielded/agent/run-journal' -import { ThreadArchive, ThreadImport } from '@yielded/agent/thread-import' +import { NodeDurableHost } from '@systemfsoftware/agent-platform-node/node-durable-host' +import * as SqliteThreadStore from '@systemfsoftware/agent-storage-sqlite/sqlite-thread-store' +import * as Agent from '@systemfsoftware/agent/agent' +import { DurableAgentRuntime } from '@systemfsoftware/agent/durable-agent-runtime' +import { Receipt } from '@systemfsoftware/agent/receipt' +import { CanonicalRecordEnvelope, CURRENT_RECORD_FORMAT } from '@systemfsoftware/agent/records' +import { runIdForSubmission } from '@systemfsoftware/agent/run-journal' +import { ThreadArchive, ThreadImport } from '@systemfsoftware/agent/thread-import' import { streamExport, ThreadExport, ThreadExportRequest, ThreadStore, ThreadTailRequest, -} from '@yielded/agent/thread-store' +} from '@systemfsoftware/agent/thread-store' import * as LanguageModel from 'effect/ai/LanguageModel' import * as Model from 'effect/ai/Model' import type * as Prompt from 'effect/ai/Prompt' diff --git a/packages/platform-node/test/crash/worker-entry.ts b/packages/platform-node/test/crash/worker-entry.ts index 6fbe15a0..998d5b84 100644 --- a/packages/platform-node/test/crash/worker-entry.ts +++ b/packages/platform-node/test/crash/worker-entry.ts @@ -3,15 +3,18 @@ import * as fs from 'node:fs' import { NodeDurableAgentRuntime, type NodeDurableAgentRuntimeOptions, -} from '@yielded/agent-platform-node/node-durable-agent-runtime' -import { NodeDurableHost } from '@yielded/agent-platform-node/node-durable-host' -import { SqliteStorageFailpointLocation } from '@yielded/agent-storage-sqlite/sqlite-storage-error' -import { type SqliteStorageFailpointHandler } from '@yielded/agent-storage-sqlite/sqlite-storage-failpoint' -import * as Agent from '@yielded/agent/agent' -import { DurableAgentRuntime, type Receipt } from '@yielded/agent/durable-agent-runtime' -import { type DurableRuntimeFailpointHandler, DurableRuntimeFailpointLocation } from '@yielded/agent/durable-failpoint' -import { type ThreadId } from '@yielded/agent/identifiers' -import { childThreadIdFor } from '@yielded/agent/run-journal' +} from '@systemfsoftware/agent-platform-node/node-durable-agent-runtime' +import { NodeDurableHost } from '@systemfsoftware/agent-platform-node/node-durable-host' +import { SqliteStorageFailpointLocation } from '@systemfsoftware/agent-storage-sqlite/sqlite-storage-error' +import { type SqliteStorageFailpointHandler } from '@systemfsoftware/agent-storage-sqlite/sqlite-storage-failpoint' +import * as Agent from '@systemfsoftware/agent/agent' +import { DurableAgentRuntime, type Receipt } from '@systemfsoftware/agent/durable-agent-runtime' +import { + type DurableRuntimeFailpointHandler, + DurableRuntimeFailpointLocation, +} from '@systemfsoftware/agent/durable-failpoint' +import { type ThreadId } from '@systemfsoftware/agent/identifiers' +import { childThreadIdFor } from '@systemfsoftware/agent/run-journal' import { AbortCommand, ApprovalDecisionCommand, @@ -21,7 +24,7 @@ import { SubmissionLookupByKey, type SubmissionSnapshot, UnknownResolutionCommand, -} from '@yielded/agent/submission-ledger' +} from '@systemfsoftware/agent/submission-ledger' import type * as Response from 'effect/ai/Response' import * as Cause from 'effect/Cause' import * as Duration from 'effect/Duration' diff --git a/packages/platform-node/test/fixtures/scheduling-example.ts b/packages/platform-node/test/fixtures/scheduling-example.ts index 2249b593..ac59a82b 100644 --- a/packages/platform-node/test/fixtures/scheduling-example.ts +++ b/packages/platform-node/test/fixtures/scheduling-example.ts @@ -1,9 +1,9 @@ -import { type NodeDurableAgentRuntimeOptions } from '@yielded/agent-platform-node/node-durable-agent-runtime' -import { NodeDurableHost } from '@yielded/agent-platform-node/node-durable-host' -import { NodeScheduling } from '@yielded/agent-platform-node/node-scheduling' -import { type ResolvedBinding } from '@yielded/agent/agent-registration' -import { type DurableSubmitAgent } from '@yielded/agent/durable-agent-runtime' -import { type ScheduleCreateOptions, Scheduling } from '@yielded/agent/scheduling' +import { type NodeDurableAgentRuntimeOptions } from '@systemfsoftware/agent-platform-node/node-durable-agent-runtime' +import { NodeDurableHost } from '@systemfsoftware/agent-platform-node/node-durable-host' +import { NodeScheduling } from '@systemfsoftware/agent-platform-node/node-scheduling' +import { type ResolvedBinding } from '@systemfsoftware/agent/agent-registration' +import { type DurableSubmitAgent } from '@systemfsoftware/agent/durable-agent-runtime' +import { type ScheduleCreateOptions, Scheduling } from '@systemfsoftware/agent/scheduling' import * as Effect from 'effect/Effect' import * as Layer from 'effect/Layer' import type * as Schema from 'effect/Schema' diff --git a/packages/platform-node/test/fixtures/subscriptions-example.ts b/packages/platform-node/test/fixtures/subscriptions-example.ts index ee2c327d..300e8832 100644 --- a/packages/platform-node/test/fixtures/subscriptions-example.ts +++ b/packages/platform-node/test/fixtures/subscriptions-example.ts @@ -1,11 +1,11 @@ -import { type NodeDurableAgentRuntimeOptions } from '@yielded/agent-platform-node/node-durable-agent-runtime' -import { NodeDurableHost } from '@yielded/agent-platform-node/node-durable-host' -import { NodeSubscriptions } from '@yielded/agent-platform-node/node-subscriptions' -import { subscriptionStoreLayer } from '@yielded/agent-storage-sqlite/sqlite-subscription-store' -import { type EventSource, EventSources } from '@yielded/agent/event-source' -import { type SourcePartition, SubscriptionAuthorizer } from '@yielded/agent/subscription' -import { type SubscriptionInputBinding, SubscriptionInputBindings } from '@yielded/agent/subscription-input' -import { SubscriptionIntake, Subscriptions } from '@yielded/agent/subscriptions' +import { type NodeDurableAgentRuntimeOptions } from '@systemfsoftware/agent-platform-node/node-durable-agent-runtime' +import { NodeDurableHost } from '@systemfsoftware/agent-platform-node/node-durable-host' +import { NodeSubscriptions } from '@systemfsoftware/agent-platform-node/node-subscriptions' +import { subscriptionStoreLayer } from '@systemfsoftware/agent-storage-sqlite/sqlite-subscription-store' +import { type EventSource, EventSources } from '@systemfsoftware/agent/event-source' +import { type SourcePartition, SubscriptionAuthorizer } from '@systemfsoftware/agent/subscription' +import { type SubscriptionInputBinding, SubscriptionInputBindings } from '@systemfsoftware/agent/subscription-input' +import { SubscriptionIntake, Subscriptions } from '@systemfsoftware/agent/subscriptions' import * as Effect from 'effect/Effect' import * as Layer from 'effect/Layer' diff --git a/packages/platform-node/test/layers.test.ts b/packages/platform-node/test/layers.test.ts index d8c19b49..e04928d7 100644 --- a/packages/platform-node/test/layers.test.ts +++ b/packages/platform-node/test/layers.test.ts @@ -6,29 +6,29 @@ import { type NodeDurableAgentRuntimeInitializationError, type NodeDurableAgentRuntimeOptions, type NodeDurableAgentRuntimeServices, -} from '@yielded/agent-platform-node/node-durable-agent-runtime' -import { NodeDurableHost } from '@yielded/agent-platform-node/node-durable-host' -import * as NodeHost from '@yielded/agent-platform-node/node-durable-host' -import * as Agent from '@yielded/agent/agent' -import { AgentPolicy } from '@yielded/agent/agent-policy' -import { digestDefinitions } from '@yielded/agent/digest' -import { DurableAgentRuntime, type DurableSubmitOptions } from '@yielded/agent/durable-agent-runtime' -import { DurableRuntimeFailpoint, DurableRuntimeFailpointError } from '@yielded/agent/durable-failpoint' -import { ToolExecutionClass } from '@yielded/agent/durable-step' -import { ThreadId } from '@yielded/agent/identifiers' -import * as Output from '@yielded/agent/output' -import { DefinitionDigestInput, DefinitionDigests, Digest, type RecordEnvelope } from '@yielded/agent/records' -import { runIdForSubmission } from '@yielded/agent/run-journal' -import { RunContextPreparation, RunToolAuthorization } from '@yielded/agent/run-options' +} from '@systemfsoftware/agent-platform-node/node-durable-agent-runtime' +import { NodeDurableHost } from '@systemfsoftware/agent-platform-node/node-durable-host' +import * as NodeHost from '@systemfsoftware/agent-platform-node/node-durable-host' +import * as Agent from '@systemfsoftware/agent/agent' +import { AgentPolicy } from '@systemfsoftware/agent/agent-policy' +import { digestDefinitions } from '@systemfsoftware/agent/digest' +import { DurableAgentRuntime, type DurableSubmitOptions } from '@systemfsoftware/agent/durable-agent-runtime' +import { DurableRuntimeFailpoint, DurableRuntimeFailpointError } from '@systemfsoftware/agent/durable-failpoint' +import { ToolExecutionClass } from '@systemfsoftware/agent/durable-step' +import { ThreadId } from '@systemfsoftware/agent/identifiers' +import * as Output from '@systemfsoftware/agent/output' +import { DefinitionDigestInput, DefinitionDigests, Digest, type RecordEnvelope } from '@systemfsoftware/agent/records' +import { runIdForSubmission } from '@systemfsoftware/agent/run-journal' +import { RunContextPreparation, RunToolAuthorization } from '@systemfsoftware/agent/run-options' import { IdempotencyKey, Principal, RecoverySnapshotRequest, SubmissionLedger, SubmissionLookupById, -} from '@yielded/agent/submission-ledger' -import { ThreadRead, ThreadStore } from '@yielded/agent/thread-store' -import { ToolReconciler } from '@yielded/agent/tool-reconciler' +} from '@systemfsoftware/agent/submission-ledger' +import { ThreadRead, ThreadStore } from '@systemfsoftware/agent/thread-store' +import { ToolReconciler } from '@systemfsoftware/agent/tool-reconciler' import * as LanguageModel from 'effect/ai/LanguageModel' import * as Model from 'effect/ai/Model' import * as Prompt from 'effect/ai/Prompt' @@ -764,7 +764,7 @@ describe('NodeDurableAgentRuntime', () => { ), ) - // Regression: https://github.com/yielded-dev/agent/commit/6ceda1d2 + // Regression: https://github.com/systemfsoftware/agent/commit/6ceda1d2 it.effect('keeps accepted input owed across incompatible current Bindings', () => withTemporaryDatabase((filename) => Effect.gen(function*() { diff --git a/packages/platform-node/test/memory-activity-fixtures.ts b/packages/platform-node/test/memory-activity-fixtures.ts index e25918a6..9f355ed2 100644 --- a/packages/platform-node/test/memory-activity-fixtures.ts +++ b/packages/platform-node/test/memory-activity-fixtures.ts @@ -1,9 +1,9 @@ -import { ActivityProcessorKey } from '@yielded/agent/activity-store' -import { ActivityPassResult } from '@yielded/agent/committed-activity' -import * as MemoryNamespace from '@yielded/agent/memory-namespace' -import { MemoryContent } from '@yielded/agent/memory-reference' -import { MemoryKey, MemoryScope } from '@yielded/agent/memory-store' -import { Digest } from '@yielded/agent/records' +import { ActivityProcessorKey } from '@systemfsoftware/agent/activity-store' +import { ActivityPassResult } from '@systemfsoftware/agent/committed-activity' +import * as MemoryNamespace from '@systemfsoftware/agent/memory-namespace' +import { MemoryContent } from '@systemfsoftware/agent/memory-reference' +import { MemoryKey, MemoryScope } from '@systemfsoftware/agent/memory-store' +import { Digest } from '@systemfsoftware/agent/records' import * as Schema from 'effect/Schema' export const MEMORY_NAMESPACE = MemoryNamespace.define({ diff --git a/packages/platform-node/test/memory-activity-restart.test.ts b/packages/platform-node/test/memory-activity-restart.test.ts index fdc02bf3..b6e9cf51 100644 --- a/packages/platform-node/test/memory-activity-restart.test.ts +++ b/packages/platform-node/test/memory-activity-restart.test.ts @@ -1,19 +1,19 @@ import * as NodeServices from '@effect/platform-node/NodeServices' import * as SqliteClient from '@effect/sql-sqlite-node/SqliteClient' import { expect, it } from '@effect/vitest' -import { PersistentHistory } from '@yielded/agent' -import { activityProcessorStoreLayer } from '@yielded/agent-storage-sqlite/sqlite-activity-store' -import { layer as sqliteThreadStoreLayer } from '@yielded/agent-storage-sqlite/sqlite-thread-store' -import { ActivityProcessorStore } from '@yielded/agent/activity-store' -import * as Agent from '@yielded/agent/agent' -import { AgentPolicy } from '@yielded/agent/agent-policy' -import * as AgentRuntime from '@yielded/agent/agent-runtime' -import { ThreadId } from '@yielded/agent/identifiers' -import { MemoryReader } from '@yielded/agent/memory-store' -import { RunContextPreparationPassthrough } from '@yielded/agent/run-options' -import { memoryReaderLayer } from '@yielded/agent/sql-memory-store' -import { readTestThread } from '@yielded/agent/testing/thread-store-conformance' -import { ThreadExportRequest, ThreadStore } from '@yielded/agent/thread-store' +import { PersistentHistory } from '@systemfsoftware/agent' +import { activityProcessorStoreLayer } from '@systemfsoftware/agent-storage-sqlite/sqlite-activity-store' +import { layer as sqliteThreadStoreLayer } from '@systemfsoftware/agent-storage-sqlite/sqlite-thread-store' +import { ActivityProcessorStore } from '@systemfsoftware/agent/activity-store' +import * as Agent from '@systemfsoftware/agent/agent' +import { AgentPolicy } from '@systemfsoftware/agent/agent-policy' +import * as AgentRuntime from '@systemfsoftware/agent/agent-runtime' +import { ThreadId } from '@systemfsoftware/agent/identifiers' +import { MemoryReader } from '@systemfsoftware/agent/memory-store' +import { RunContextPreparationPassthrough } from '@systemfsoftware/agent/run-options' +import { memoryReaderLayer } from '@systemfsoftware/agent/sql-memory-store' +import { readTestThread } from '@systemfsoftware/agent/testing/thread-store-conformance' +import { ThreadExportRequest, ThreadStore } from '@systemfsoftware/agent/thread-store' import * as LanguageModel from 'effect/ai/LanguageModel' import * as Model from 'effect/ai/Model' import type * as Response from 'effect/ai/Response' diff --git a/packages/platform-node/test/memory-activity-worker.ts b/packages/platform-node/test/memory-activity-worker.ts index e6b307c2..4b6d41ad 100644 --- a/packages/platform-node/test/memory-activity-worker.ts +++ b/packages/platform-node/test/memory-activity-worker.ts @@ -1,21 +1,21 @@ import * as NodeCrypto from '@effect/platform-node/NodeCrypto' import * as SqliteClient from '@effect/sql-sqlite-node/SqliteClient' -import { activityProcessorStoreLayer } from '@yielded/agent-storage-sqlite/sqlite-activity-store' +import { activityProcessorStoreLayer } from '@systemfsoftware/agent-storage-sqlite/sqlite-activity-store' import { storageConfigLayer, storageFailpointLayer, threadStoreLayer, -} from '@yielded/agent-storage-sqlite/sqlite-thread-store' -import { type PreparedActivity } from '@yielded/agent/activity-store' -import { processCommittedActivity } from '@yielded/agent/committed-activity' +} from '@systemfsoftware/agent-storage-sqlite/sqlite-thread-store' +import { type PreparedActivity } from '@systemfsoftware/agent/activity-store' +import { processCommittedActivity } from '@systemfsoftware/agent/committed-activity' import { MemoryMutationFailpoint, type MemoryMutationPoint, MemoryWrite, MemoryWriter, -} from '@yielded/agent/memory-store' -import { type CanonicalRecordEnvelope } from '@yielded/agent/records' -import { memoryStoreLayerWithFailpoints } from '@yielded/agent/sql-memory-store' +} from '@systemfsoftware/agent/memory-store' +import { type CanonicalRecordEnvelope } from '@systemfsoftware/agent/records' +import { memoryStoreLayerWithFailpoints } from '@systemfsoftware/agent/sql-memory-store' import * as Config from 'effect/Config' import * as Console from 'effect/Console' import * as Effect from 'effect/Effect' diff --git a/packages/platform-node/test/message-delivery.test.ts b/packages/platform-node/test/message-delivery.test.ts index e2daf927..d6d00add 100644 --- a/packages/platform-node/test/message-delivery.test.ts +++ b/packages/platform-node/test/message-delivery.test.ts @@ -1,22 +1,27 @@ import * as NodeCrypto from '@effect/platform-node/NodeCrypto' import * as NodeFileSystem from '@effect/platform-node/NodeFileSystem' import { describe, expect, it } from '@effect/vitest' -import { NodeDurableAgentRuntime } from '@yielded/agent-platform-node/node-durable-agent-runtime' -import * as NodeHost from '@yielded/agent-platform-node/node-durable-host' -import { NodeDurableHost } from '@yielded/agent-platform-node/node-durable-host' -import * as Agent from '@yielded/agent/agent' -import { digestDefinitions, digestJson } from '@yielded/agent/digest' -import { DurableAgentRuntime } from '@yielded/agent/durable-agent-runtime' -import { DurableRuntimeFailpointError } from '@yielded/agent/durable-failpoint' -import { AgentId, ThreadId } from '@yielded/agent/identifiers' +import { NodeDurableAgentRuntime } from '@systemfsoftware/agent-platform-node/node-durable-agent-runtime' +import * as NodeHost from '@systemfsoftware/agent-platform-node/node-durable-host' +import { NodeDurableHost } from '@systemfsoftware/agent-platform-node/node-durable-host' +import * as Agent from '@systemfsoftware/agent/agent' +import { digestDefinitions, digestJson } from '@systemfsoftware/agent/digest' +import { DurableAgentRuntime } from '@systemfsoftware/agent/durable-agent-runtime' +import { DurableRuntimeFailpointError } from '@systemfsoftware/agent/durable-failpoint' +import { AgentId, ThreadId } from '@systemfsoftware/agent/identifiers' import { type MessageDeliveryKey, type MessageDeliveryRecord, MessageDeliveryStore, prepareMessageDelivery, -} from '@yielded/agent/message-delivery' -import { DefinitionDigestInput, type DefinitionDigests } from '@yielded/agent/records' -import { IdempotencyKey, Principal, SubmissionLedger, SubmissionLookupByKey } from '@yielded/agent/submission-ledger' +} from '@systemfsoftware/agent/message-delivery' +import { DefinitionDigestInput, type DefinitionDigests } from '@systemfsoftware/agent/records' +import { + IdempotencyKey, + Principal, + SubmissionLedger, + SubmissionLookupByKey, +} from '@systemfsoftware/agent/submission-ledger' import * as LanguageModel from 'effect/ai/LanguageModel' import * as Model from 'effect/ai/Model' import type * as Response from 'effect/ai/Response' diff --git a/packages/platform-node/test/scheduling.test.ts b/packages/platform-node/test/scheduling.test.ts index a4be5862..718c907d 100644 --- a/packages/platform-node/test/scheduling.test.ts +++ b/packages/platform-node/test/scheduling.test.ts @@ -1,9 +1,9 @@ import * as NodeFileSystem from '@effect/platform-node/NodeFileSystem' import { expect, it } from '@effect/vitest' -import { NodeDurableHost } from '@yielded/agent-platform-node/node-durable-host' -import { NodeScheduling } from '@yielded/agent-platform-node/node-scheduling' -import { AgentId } from '@yielded/agent/identifiers' -import { DefinitionDigests, Digest } from '@yielded/agent/records' +import { NodeDurableHost } from '@systemfsoftware/agent-platform-node/node-durable-host' +import { NodeScheduling } from '@systemfsoftware/agent-platform-node/node-scheduling' +import { AgentId } from '@systemfsoftware/agent/identifiers' +import { DefinitionDigests, Digest } from '@systemfsoftware/agent/records' import { defaultSchedulingLimits, ScheduleAuthorizer, @@ -12,9 +12,9 @@ import { ScheduleId, type ScheduleSnapshot, ScheduleStore, -} from '@yielded/agent/schedule' -import { Scheduling } from '@yielded/agent/scheduling' -import { Principal } from '@yielded/agent/submission-ledger' +} from '@systemfsoftware/agent/schedule' +import { Scheduling } from '@systemfsoftware/agent/scheduling' +import { Principal } from '@systemfsoftware/agent/submission-ledger' import * as Context from 'effect/Context' import * as Deferred from 'effect/Deferred' import * as Effect from 'effect/Effect' diff --git a/packages/platform-node/test/subagent-allowance.test.ts b/packages/platform-node/test/subagent-allowance.test.ts index a8fa8703..2ba03527 100644 --- a/packages/platform-node/test/subagent-allowance.test.ts +++ b/packages/platform-node/test/subagent-allowance.test.ts @@ -1,20 +1,23 @@ import * as NodeFileSystem from '@effect/platform-node/NodeFileSystem' import { expect, it } from '@effect/vitest' -import { NodeDurableAgentRuntime } from '@yielded/agent-platform-node/node-durable-agent-runtime' -import * as Agent from '@yielded/agent/agent' -import { AgentPolicy } from '@yielded/agent/agent-policy' -import { DurableWorkerBinding } from '@yielded/agent/agent-registration' -import { DurableAgentRuntime } from '@yielded/agent/durable-agent-runtime' -import { DurableRuntimeFailpointError, type DurableRuntimeFailpointLocation } from '@yielded/agent/durable-failpoint' -import { ToolExecutionClass } from '@yielded/agent/durable-step' -import { ThreadId, ToolCallId } from '@yielded/agent/identifiers' -import { DefinitionDigests, Digest } from '@yielded/agent/records' -import { childThreadIdFor } from '@yielded/agent/run-journal' -import * as Subagent from '@yielded/agent/subagent' -import { SubagentPolicy } from '@yielded/agent/subagent' -import { SubagentReservationsMemoryLive } from '@yielded/agent/subagent-reservations' -import { ApprovalDecisionCommand, IdempotencyKey, Principal } from '@yielded/agent/submission-ledger' -import { ThreadRead, ThreadStore } from '@yielded/agent/thread-store' +import { NodeDurableAgentRuntime } from '@systemfsoftware/agent-platform-node/node-durable-agent-runtime' +import * as Agent from '@systemfsoftware/agent/agent' +import { AgentPolicy } from '@systemfsoftware/agent/agent-policy' +import { DurableWorkerBinding } from '@systemfsoftware/agent/agent-registration' +import { DurableAgentRuntime } from '@systemfsoftware/agent/durable-agent-runtime' +import { + DurableRuntimeFailpointError, + type DurableRuntimeFailpointLocation, +} from '@systemfsoftware/agent/durable-failpoint' +import { ToolExecutionClass } from '@systemfsoftware/agent/durable-step' +import { ThreadId, ToolCallId } from '@systemfsoftware/agent/identifiers' +import { DefinitionDigests, Digest } from '@systemfsoftware/agent/records' +import { childThreadIdFor } from '@systemfsoftware/agent/run-journal' +import * as Subagent from '@systemfsoftware/agent/subagent' +import { SubagentPolicy } from '@systemfsoftware/agent/subagent' +import { SubagentReservationsMemoryLive } from '@systemfsoftware/agent/subagent-reservations' +import { ApprovalDecisionCommand, IdempotencyKey, Principal } from '@systemfsoftware/agent/submission-ledger' +import { ThreadRead, ThreadStore } from '@systemfsoftware/agent/thread-store' import * as LanguageModel from 'effect/ai/LanguageModel' import * as Model from 'effect/ai/Model' import type * as Response from 'effect/ai/Response' diff --git a/packages/platform-node/test/subagent-establishment-race.test.ts b/packages/platform-node/test/subagent-establishment-race.test.ts index b3f088df..03df726d 100644 --- a/packages/platform-node/test/subagent-establishment-race.test.ts +++ b/packages/platform-node/test/subagent-establishment-race.test.ts @@ -1,16 +1,16 @@ import * as NodeFileSystem from '@effect/platform-node/NodeFileSystem' import { expect, it } from '@effect/vitest' -import { NodeDurableAgentRuntime } from '@yielded/agent-platform-node/node-durable-agent-runtime' -import * as Agent from '@yielded/agent/agent' -import { DurableAgentRuntime } from '@yielded/agent/durable-agent-runtime' -import { ThreadId, ToolCallId } from '@yielded/agent/identifiers' -import { DefinitionDigestInput } from '@yielded/agent/records' -import { childThreadIdFor } from '@yielded/agent/run-journal' -import * as Subagent from '@yielded/agent/subagent' -import { SubagentReservationsMemoryLive } from '@yielded/agent/subagent-reservations' -import { IdempotencyKey, Principal } from '@yielded/agent/submission-ledger' -import { readTestThread } from '@yielded/agent/testing/thread-store-conformance' -import { ThreadExportRequest, ThreadStore } from '@yielded/agent/thread-store' +import { NodeDurableAgentRuntime } from '@systemfsoftware/agent-platform-node/node-durable-agent-runtime' +import * as Agent from '@systemfsoftware/agent/agent' +import { DurableAgentRuntime } from '@systemfsoftware/agent/durable-agent-runtime' +import { ThreadId, ToolCallId } from '@systemfsoftware/agent/identifiers' +import { DefinitionDigestInput } from '@systemfsoftware/agent/records' +import { childThreadIdFor } from '@systemfsoftware/agent/run-journal' +import * as Subagent from '@systemfsoftware/agent/subagent' +import { SubagentReservationsMemoryLive } from '@systemfsoftware/agent/subagent-reservations' +import { IdempotencyKey, Principal } from '@systemfsoftware/agent/submission-ledger' +import { readTestThread } from '@systemfsoftware/agent/testing/thread-store-conformance' +import { ThreadExportRequest, ThreadStore } from '@systemfsoftware/agent/thread-store' import * as LanguageModel from 'effect/ai/LanguageModel' import * as Model from 'effect/ai/Model' import type * as Response from 'effect/ai/Response' diff --git a/packages/platform-node/test/subscriptions.test.ts b/packages/platform-node/test/subscriptions.test.ts index e8d55535..0691899d 100644 --- a/packages/platform-node/test/subscriptions.test.ts +++ b/packages/platform-node/test/subscriptions.test.ts @@ -1,25 +1,33 @@ import * as NodeFileSystem from '@effect/platform-node/NodeFileSystem' import { expect, it } from '@effect/vitest' -import { NodeDurableHost } from '@yielded/agent-platform-node/node-durable-host' -import { NodeSubscriptions } from '@yielded/agent-platform-node/node-subscriptions' -import { subscriptionStoreLayer } from '@yielded/agent-storage-sqlite/sqlite-subscription-store' -import * as Agent from '@yielded/agent/agent' -import { AgentPolicy } from '@yielded/agent/agent-policy' -import { DurableAgentRuntime } from '@yielded/agent/durable-agent-runtime' -import { DurableRuntimeFailpointError, type DurableRuntimeFailpointHandler } from '@yielded/agent/durable-failpoint' -import { EventSources, makeEventSource } from '@yielded/agent/event-source' -import { AgentId, ThreadId } from '@yielded/agent/identifiers' -import { DefinitionDigests, Digest } from '@yielded/agent/records' -import { IdempotencyKey, Principal, SubmissionLedger, SubmissionLookupByKey } from '@yielded/agent/submission-ledger' +import { NodeDurableHost } from '@systemfsoftware/agent-platform-node/node-durable-host' +import { NodeSubscriptions } from '@systemfsoftware/agent-platform-node/node-subscriptions' +import { subscriptionStoreLayer } from '@systemfsoftware/agent-storage-sqlite/sqlite-subscription-store' +import * as Agent from '@systemfsoftware/agent/agent' +import { AgentPolicy } from '@systemfsoftware/agent/agent-policy' +import { DurableAgentRuntime } from '@systemfsoftware/agent/durable-agent-runtime' +import { + DurableRuntimeFailpointError, + type DurableRuntimeFailpointHandler, +} from '@systemfsoftware/agent/durable-failpoint' +import { EventSources, makeEventSource } from '@systemfsoftware/agent/event-source' +import { AgentId, ThreadId } from '@systemfsoftware/agent/identifiers' +import { DefinitionDigests, Digest } from '@systemfsoftware/agent/records' +import { + IdempotencyKey, + Principal, + SubmissionLedger, + SubmissionLookupByKey, +} from '@systemfsoftware/agent/submission-ledger' import { defaultSubscriptionLimits, SourcePartition, SubscriptionAuthorizer, type SubscriptionDeliverySnapshot, SubscriptionStore, -} from '@yielded/agent/subscription' -import { makeSubscriptionInputBinding, SubscriptionInputBindings } from '@yielded/agent/subscription-input' -import { Subscriptions } from '@yielded/agent/subscriptions' +} from '@systemfsoftware/agent/subscription' +import { makeSubscriptionInputBinding, SubscriptionInputBindings } from '@systemfsoftware/agent/subscription-input' +import { Subscriptions } from '@systemfsoftware/agent/subscriptions' import * as LanguageModel from 'effect/ai/LanguageModel' import * as Model from 'effect/ai/Model' import type * as Response from 'effect/ai/Response' diff --git a/packages/platform-node/test/wake-scheduler.test.ts b/packages/platform-node/test/wake-scheduler.test.ts index e4e57a17..156e7894 100644 --- a/packages/platform-node/test/wake-scheduler.test.ts +++ b/packages/platform-node/test/wake-scheduler.test.ts @@ -1,10 +1,10 @@ import * as NodeFileSystem from '@effect/platform-node/NodeFileSystem' import { expect, it } from '@effect/vitest' -import { layer as threadStoreLayer } from '@yielded/agent-storage-sqlite/sqlite-thread-store' -import type { SubmissionLedger } from '@yielded/agent/submission-ledger' -import { SubmissionSnapshot } from '@yielded/agent/submission-ledger' -import { ThreadStore, ThreadStoreError } from '@yielded/agent/thread-store' -import { WakeScheduler } from '@yielded/agent/wake-scheduler' +import { layer as threadStoreLayer } from '@systemfsoftware/agent-storage-sqlite/sqlite-thread-store' +import type { SubmissionLedger } from '@systemfsoftware/agent/submission-ledger' +import { SubmissionSnapshot } from '@systemfsoftware/agent/submission-ledger' +import { ThreadStore, ThreadStoreError } from '@systemfsoftware/agent/thread-store' +import { WakeScheduler } from '@systemfsoftware/agent/wake-scheduler' import * as Deferred from 'effect/Deferred' import * as Duration from 'effect/Duration' import * as Effect from 'effect/Effect' diff --git a/packages/platform-node/test/worker-reports.test.ts b/packages/platform-node/test/worker-reports.test.ts index e35a6a55..6f4a123d 100644 --- a/packages/platform-node/test/worker-reports.test.ts +++ b/packages/platform-node/test/worker-reports.test.ts @@ -1,20 +1,20 @@ import * as NodeFileSystem from '@effect/platform-node/NodeFileSystem' import { expect, it } from '@effect/vitest' -import * as NodeHost from '@yielded/agent-platform-node/node-durable-host' -import * as Agent from '@yielded/agent/agent' -import { DurableAgentRuntime } from '@yielded/agent/durable-agent-runtime' -import { DurableRuntimeFailpointError } from '@yielded/agent/durable-failpoint' -import { ThreadId } from '@yielded/agent/identifiers' -import { MessageDeliveryStore } from '@yielded/agent/message-delivery' -import { DefinitionDigestInput, type RunCompleted } from '@yielded/agent/records' -import { runIdForSubmission } from '@yielded/agent/run-journal' -import * as Subagent from '@yielded/agent/subagent' -import { SubagentHost } from '@yielded/agent/subagent-host' -import { IdempotencyKey, Principal } from '@yielded/agent/submission-ledger' -import { readTestThread } from '@yielded/agent/testing/thread-store-conformance' -import { ThreadExportRequest, ThreadReader, ThreadStore } from '@yielded/agent/thread-store' -import { WorkerCompletion, WorkerError } from '@yielded/agent/worker' -import { WorkerHostAuthorizer } from '@yielded/agent/worker-host' +import * as NodeHost from '@systemfsoftware/agent-platform-node/node-durable-host' +import * as Agent from '@systemfsoftware/agent/agent' +import { DurableAgentRuntime } from '@systemfsoftware/agent/durable-agent-runtime' +import { DurableRuntimeFailpointError } from '@systemfsoftware/agent/durable-failpoint' +import { ThreadId } from '@systemfsoftware/agent/identifiers' +import { MessageDeliveryStore } from '@systemfsoftware/agent/message-delivery' +import { DefinitionDigestInput, type RunCompleted } from '@systemfsoftware/agent/records' +import { runIdForSubmission } from '@systemfsoftware/agent/run-journal' +import * as Subagent from '@systemfsoftware/agent/subagent' +import { SubagentHost } from '@systemfsoftware/agent/subagent-host' +import { IdempotencyKey, Principal } from '@systemfsoftware/agent/submission-ledger' +import { readTestThread } from '@systemfsoftware/agent/testing/thread-store-conformance' +import { ThreadExportRequest, ThreadReader, ThreadStore } from '@systemfsoftware/agent/thread-store' +import { WorkerCompletion, WorkerError } from '@systemfsoftware/agent/worker' +import { WorkerHostAuthorizer } from '@systemfsoftware/agent/worker-host' import * as LanguageModel from 'effect/ai/LanguageModel' import * as Model from 'effect/ai/Model' import type * as Response from 'effect/ai/Response' diff --git a/packages/platform-node/test/worker-updates.test.ts b/packages/platform-node/test/worker-updates.test.ts index f70a7d90..c57cd792 100644 --- a/packages/platform-node/test/worker-updates.test.ts +++ b/packages/platform-node/test/worker-updates.test.ts @@ -1,18 +1,18 @@ import * as NodeFileSystem from '@effect/platform-node/NodeFileSystem' import { expect, it } from '@effect/vitest' -import * as NodeHost from '@yielded/agent-platform-node/node-durable-host' -import * as Agent from '@yielded/agent/agent' -import { DurableAgentRuntime } from '@yielded/agent/durable-agent-runtime' -import { ThreadId } from '@yielded/agent/identifiers' -import { MessageDeliveryStore } from '@yielded/agent/message-delivery' -import { DefinitionDigestInput } from '@yielded/agent/records' -import * as Subagent from '@yielded/agent/subagent' -import { SubagentHost } from '@yielded/agent/subagent-host' -import { AbortCommand, IdempotencyKey, Principal } from '@yielded/agent/submission-ledger' -import { readTestThread } from '@yielded/agent/testing/thread-store-conformance' -import { ThreadExportRequest, ThreadReader, ThreadStore } from '@yielded/agent/thread-store' -import { WorkerError, WorkerUpdate } from '@yielded/agent/worker' -import { WorkerHostAuthorizer } from '@yielded/agent/worker-host' +import * as NodeHost from '@systemfsoftware/agent-platform-node/node-durable-host' +import * as Agent from '@systemfsoftware/agent/agent' +import { DurableAgentRuntime } from '@systemfsoftware/agent/durable-agent-runtime' +import { ThreadId } from '@systemfsoftware/agent/identifiers' +import { MessageDeliveryStore } from '@systemfsoftware/agent/message-delivery' +import { DefinitionDigestInput } from '@systemfsoftware/agent/records' +import * as Subagent from '@systemfsoftware/agent/subagent' +import { SubagentHost } from '@systemfsoftware/agent/subagent-host' +import { AbortCommand, IdempotencyKey, Principal } from '@systemfsoftware/agent/submission-ledger' +import { readTestThread } from '@systemfsoftware/agent/testing/thread-store-conformance' +import { ThreadExportRequest, ThreadReader, ThreadStore } from '@systemfsoftware/agent/thread-store' +import { WorkerError, WorkerUpdate } from '@systemfsoftware/agent/worker' +import { WorkerHostAuthorizer } from '@systemfsoftware/agent/worker-host' import * as LanguageModel from 'effect/ai/LanguageModel' import * as Model from 'effect/ai/Model' import type * as Response from 'effect/ai/Response' diff --git a/packages/storage-sql/README.md b/packages/storage-sql/README.md index 9e51de76..f711146d 100644 --- a/packages/storage-sql/README.md +++ b/packages/storage-sql/README.md @@ -1,17 +1,17 @@ -# @yielded/agent-storage-sql +# @systemfsoftware/agent-storage-sql Shared SQL persistence for Effect Agent storage adapters. It owns the journal, submission ledger, thread reads, schedules, subscriptions, message delivery, and activity transitions. ```text -@yielded/agent ports +@systemfsoftware/agent ports ↑ storage-sql ↑ SQLite / Postgres adapters ``` -Applications use `@yielded/agent-storage-sqlite` or `@yielded/agent-storage-postgres`. Adapters +Applications use `@systemfsoftware/agent-storage-sqlite` or `@systemfsoftware/agent-storage-postgres`. Adapters supply a `SqlClient`, typed diagnostics, failpoints, and native transaction settings. Journal format checks and supported upgrades remain adapter-owned; standalone activity initialization is shared here. diff --git a/packages/storage-sql/package.json b/packages/storage-sql/package.json index 1fd12810..7edb16e8 100644 --- a/packages/storage-sql/package.json +++ b/packages/storage-sql/package.json @@ -1,13 +1,17 @@ { - "name": "@yielded/agent-storage-sql", - "version": "0.1.0-beta.192", + "name": "@systemfsoftware/agent-storage-sql", + "version": "0.1.0", "description": "Shared SQL persistence implementations for Effect Agent storage adapters.", "license": "MIT", "repository": { "type": "git", - "url": "git+https://github.com/yielded-dev/agent.git", + "url": "git+https://github.com/systemfsoftware/agent.git", "directory": "packages/storage-sql" }, + "bugs": { + "url": "https://github.com/systemfsoftware/agent/issues" + }, + "homepage": "https://github.com/systemfsoftware/agent/tree/main/packages/storage-sql#readme", "files": [ "dist", "src" @@ -138,7 +142,7 @@ "check:pack": "pnpm pack --pack-destination .pack && attw .pack/*.tgz --profile esm-only; s=$?; rm -rf .pack; exit $s" }, "dependencies": { - "@yielded/agent": "workspace:*" + "@systemfsoftware/agent": "workspace:*" }, "devDependencies": { "@arethetypeswrong/cli": "catalog:", diff --git a/packages/storage-sql/src/SqlActivityStore.ts b/packages/storage-sql/src/SqlActivityStore.ts index b9c6a700..fefc3ce3 100644 --- a/packages/storage-sql/src/SqlActivityStore.ts +++ b/packages/storage-sql/src/SqlActivityStore.ts @@ -9,8 +9,8 @@ import { ActivityStoreError, ActivityWorkConflict, PreparedActivity, -} from '@yielded/agent/activity-store' -import { CanonicalSequence, Digest } from '@yielded/agent/records' +} from '@systemfsoftware/agent/activity-store' +import { CanonicalSequence, Digest } from '@systemfsoftware/agent/records' import * as Clock from 'effect/Clock' import * as Effect from 'effect/Effect' import * as Schema from 'effect/Schema' diff --git a/packages/storage-sql/src/SqlAdmissionFacts.ts b/packages/storage-sql/src/SqlAdmissionFacts.ts index daa734fc..f3557812 100644 --- a/packages/storage-sql/src/SqlAdmissionFacts.ts +++ b/packages/storage-sql/src/SqlAdmissionFacts.ts @@ -3,8 +3,8 @@ import { ApprovalDecisionIntent, UnknownResolutionIntent, unknownResolutionKind, -} from '@yielded/agent/submission-ledger' -import { ThreadAdmission } from '@yielded/agent/thread-store' +} from '@systemfsoftware/agent/submission-ledger' +import { ThreadAdmission } from '@systemfsoftware/agent/thread-store' import * as Effect from 'effect/Effect' import * as Schema from 'effect/Schema' diff --git a/packages/storage-sql/src/SqlCanonicalStorage.ts b/packages/storage-sql/src/SqlCanonicalStorage.ts index 13b430d8..decc78d5 100644 --- a/packages/storage-sql/src/SqlCanonicalStorage.ts +++ b/packages/storage-sql/src/SqlCanonicalStorage.ts @@ -1,7 +1,7 @@ -import { canonicalJson, digestCanonicalJson } from '@yielded/agent/digest' -import { type CanonicalRecordPayload, Digest, RecordJson } from '@yielded/agent/records' -import { SqlStorageOwner } from '@yielded/agent/sql-storage-owner' -import { type AppendRequest, PreparedAppend, ThreadStoreError } from '@yielded/agent/thread-store' +import { canonicalJson, digestCanonicalJson } from '@systemfsoftware/agent/digest' +import { type CanonicalRecordPayload, Digest, RecordJson } from '@systemfsoftware/agent/records' +import { SqlStorageOwner } from '@systemfsoftware/agent/sql-storage-owner' +import { type AppendRequest, PreparedAppend, ThreadStoreError } from '@systemfsoftware/agent/thread-store' import * as CryptoDigest from 'effect/crypto/Digest' import * as Effect from 'effect/Effect' import * as Result from 'effect/Result' diff --git a/packages/storage-sql/src/SqlJournal.ts b/packages/storage-sql/src/SqlJournal.ts index d78544f1..cb9f36d0 100644 --- a/packages/storage-sql/src/SqlJournal.ts +++ b/packages/storage-sql/src/SqlJournal.ts @@ -8,21 +8,21 @@ import { } from './internal/SqlExecutionState.ts' import { sqlStorageOwner } from './internal/SqlOwner.ts' export { sqlStorageOwner } from './internal/SqlOwner.ts' -import { type RunId, ThreadId } from '@yielded/agent/identifiers' -import { LifecyclePublicationFact } from '@yielded/agent/lifecycle-publication' -import type { MessageDeliveryRecord } from '@yielded/agent/message-delivery' -import type { Digest } from '@yielded/agent/records' -import { CanonicalSequence, RunContinuation } from '@yielded/agent/records' -import { ProgressAppendReader, validateProgressAppend } from '@yielded/agent/run-continuation' -import { StorageOwner } from '@yielded/agent/run-storage' -import { SqlStorageOwner } from '@yielded/agent/sql-storage-owner' +import { type RunId, ThreadId } from '@systemfsoftware/agent/identifiers' +import { LifecyclePublicationFact } from '@systemfsoftware/agent/lifecycle-publication' +import type { MessageDeliveryRecord } from '@systemfsoftware/agent/message-delivery' +import type { Digest } from '@systemfsoftware/agent/records' +import { CanonicalSequence, RunContinuation } from '@systemfsoftware/agent/records' +import { ProgressAppendReader, validateProgressAppend } from '@systemfsoftware/agent/run-continuation' +import { StorageOwner } from '@systemfsoftware/agent/run-storage' +import { SqlStorageOwner } from '@systemfsoftware/agent/sql-storage-owner' import { AppendConflict, type ExecutionCheckpoint, type PreparedAppend, ThreadStoreError, -} from '@yielded/agent/thread-store' -import { WORK_INDEX_VERSION } from '@yielded/agent/thread-work' +} from '@systemfsoftware/agent/thread-store' +import { WORK_INDEX_VERSION } from '@systemfsoftware/agent/thread-work' import * as Effect from 'effect/Effect' import * as Option from 'effect/Option' import * as Result from 'effect/Result' diff --git a/packages/storage-sql/src/SqlLifecyclePublication.ts b/packages/storage-sql/src/SqlLifecyclePublication.ts index 6e3b1d15..1baabc13 100644 --- a/packages/storage-sql/src/SqlLifecyclePublication.ts +++ b/packages/storage-sql/src/SqlLifecyclePublication.ts @@ -1,5 +1,5 @@ -import { digestJson } from '@yielded/agent/digest' -import type { ThreadId } from '@yielded/agent/identifiers' +import { digestJson } from '@systemfsoftware/agent/digest' +import type { ThreadId } from '@systemfsoftware/agent/identifiers' import { LifecyclePublication, LifecyclePublicationBatch, @@ -7,8 +7,8 @@ import { LifecyclePublicationConfig, LifecyclePublicationError, type LifecyclePublicationStorage, -} from '@yielded/agent/lifecycle-publication' -import { SqlStorageOwner } from '@yielded/agent/sql-storage-owner' +} from '@systemfsoftware/agent/lifecycle-publication' +import { SqlStorageOwner } from '@systemfsoftware/agent/sql-storage-owner' import * as Arr from 'effect/Array' import * as Array from 'effect/Array' import * as Cause from 'effect/Cause' diff --git a/packages/storage-sql/src/SqlMessageDeliveryStore.ts b/packages/storage-sql/src/SqlMessageDeliveryStore.ts index b574e207..c110c562 100644 --- a/packages/storage-sql/src/SqlMessageDeliveryStore.ts +++ b/packages/storage-sql/src/SqlMessageDeliveryStore.ts @@ -1,4 +1,4 @@ -import { ThreadId } from '@yielded/agent/identifiers' +import { ThreadId } from '@systemfsoftware/agent/identifiers' import { applyMessageDeliveryChange, defaultMessageDeliveryStoreLimits, @@ -17,12 +17,12 @@ import { peerMessageRetentionDeadline, sameMessageDeliveryIdentity, validateMessageDelivery, -} from '@yielded/agent/message-delivery' -import { StorageOwner } from '@yielded/agent/run-storage' -import { ScheduleInstant } from '@yielded/agent/schedule' -import { SqlStorageOwner } from '@yielded/agent/sql-storage-owner' -import { IdempotencyKey } from '@yielded/agent/submission-ledger' -import { makeTransferFactCheck } from '@yielded/agent/thread-store' +} from '@systemfsoftware/agent/message-delivery' +import { StorageOwner } from '@systemfsoftware/agent/run-storage' +import { ScheduleInstant } from '@systemfsoftware/agent/schedule' +import { SqlStorageOwner } from '@systemfsoftware/agent/sql-storage-owner' +import { IdempotencyKey } from '@systemfsoftware/agent/submission-ledger' +import { makeTransferFactCheck } from '@systemfsoftware/agent/thread-store' import * as Cause from 'effect/Cause' import * as DateTime from 'effect/DateTime' import * as Effect from 'effect/Effect' diff --git a/packages/storage-sql/src/SqlObservationOffset.ts b/packages/storage-sql/src/SqlObservationOffset.ts index 168d7642..7269a8cd 100644 --- a/packages/storage-sql/src/SqlObservationOffset.ts +++ b/packages/storage-sql/src/SqlObservationOffset.ts @@ -1,5 +1,5 @@ -import { CanonicalSequence, type ObservationOffset } from '@yielded/agent/records' -import { type ThreadMaterialization, ThreadStoreError } from '@yielded/agent/thread-store' +import { CanonicalSequence, type ObservationOffset } from '@systemfsoftware/agent/records' +import { type ThreadMaterialization, ThreadStoreError } from '@systemfsoftware/agent/thread-store' import * as Effect from 'effect/Effect' import * as Schema from 'effect/Schema' diff --git a/packages/storage-sql/src/SqlRunStorage.ts b/packages/storage-sql/src/SqlRunStorage.ts index 6bba90e4..4c0d293f 100644 --- a/packages/storage-sql/src/SqlRunStorage.ts +++ b/packages/storage-sql/src/SqlRunStorage.ts @@ -1,14 +1,14 @@ -import { runIdForSubmission } from '@yielded/agent/run-journal' -import { make as makeRunStorage, StorageOwner } from '@yielded/agent/run-storage' -import { SettlementPublisher } from '@yielded/agent/settlement-publisher' +import { runIdForSubmission } from '@systemfsoftware/agent/run-journal' +import { make as makeRunStorage, StorageOwner } from '@systemfsoftware/agent/run-storage' +import { SettlementPublisher } from '@systemfsoftware/agent/settlement-publisher' import { MarkInputAppliedRequest, submissionInputBatchId, submissionInputRecordId, SubmissionLedger, -} from '@yielded/agent/submission-ledger' -import { type ThreadArchive, ThreadImport } from '@yielded/agent/thread-import' -import { ThreadReader, ThreadStore } from '@yielded/agent/thread-store' +} from '@systemfsoftware/agent/submission-ledger' +import { type ThreadArchive, ThreadImport } from '@systemfsoftware/agent/thread-import' +import { ThreadReader, ThreadStore } from '@systemfsoftware/agent/thread-store' import * as Channel from 'effect/Channel' import * as Context from 'effect/Context' import * as CryptoDigest from 'effect/crypto/Digest' diff --git a/packages/storage-sql/src/SqlScheduleStore.ts b/packages/storage-sql/src/SqlScheduleStore.ts index 11c08404..818ee4fb 100644 --- a/packages/storage-sql/src/SqlScheduleStore.ts +++ b/packages/storage-sql/src/SqlScheduleStore.ts @@ -16,8 +16,8 @@ import { ScheduleStorageError, ScheduleStore, type ScheduleStoreFailure, -} from '@yielded/agent/schedule' -import { applyScheduleChange, scheduleDeadline, scheduleUsesCapacity } from '@yielded/agent/schedule-transition' +} from '@systemfsoftware/agent/schedule' +import { applyScheduleChange, scheduleDeadline, scheduleUsesCapacity } from '@systemfsoftware/agent/schedule-transition' import * as Context from 'effect/Context' import * as Effect from 'effect/Effect' import * as Result from 'effect/Result' diff --git a/packages/storage-sql/src/SqlSubmissionLedger.ts b/packages/storage-sql/src/SqlSubmissionLedger.ts index 9c239f8c..56322a52 100644 --- a/packages/storage-sql/src/SqlSubmissionLedger.ts +++ b/packages/storage-sql/src/SqlSubmissionLedger.ts @@ -1,21 +1,21 @@ -import type { LifecyclePublicationFact } from '@yielded/agent/lifecycle-publication' -import { InputMessage } from '@yielded/agent/messaging' +import type { LifecyclePublicationFact } from '@systemfsoftware/agent/lifecycle-publication' +import { InputMessage } from '@systemfsoftware/agent/messaging' import { CanonicalSequence, DefinitionDigests, PersistedJson, RecordEnvelope, WorkerAdmission, -} from '@yielded/agent/records' -import { runIdForSubmission } from '@yielded/agent/run-journal' -import type { SettlementPublication } from '@yielded/agent/settlement-publisher' +} from '@systemfsoftware/agent/records' +import { runIdForSubmission } from '@systemfsoftware/agent/run-journal' +import type { SettlementPublication } from '@systemfsoftware/agent/settlement-publisher' import { SettlementPublicationResult, SettlementPublisher, validateCanonicalSettlement, validateJoinedSettlement, validatePublication, -} from '@yielded/agent/settlement-publisher' +} from '@systemfsoftware/agent/settlement-publisher' import { AbortCommand, AbortIntent, @@ -87,7 +87,7 @@ import { WorkerLedgerState, WorkerStopCommand, workerTerminalFromRecord, -} from '@yielded/agent/submission-ledger' +} from '@systemfsoftware/agent/submission-ledger' import { AppendConflict, makeTransferFactCheck, @@ -97,7 +97,7 @@ import { ThreadResolutionFact, type ThreadStoreFailure, transferPageFits, -} from '@yielded/agent/thread-store' +} from '@systemfsoftware/agent/thread-store' import * as Clock from 'effect/Clock' import * as CryptoDigest from 'effect/crypto/Digest' import * as SecureRandom from 'effect/crypto/SecureRandom' diff --git a/packages/storage-sql/src/SqlSubmissionRows.ts b/packages/storage-sql/src/SqlSubmissionRows.ts index ceca2c40..a82d21b4 100644 --- a/packages/storage-sql/src/SqlSubmissionRows.ts +++ b/packages/storage-sql/src/SqlSubmissionRows.ts @@ -1,11 +1,17 @@ -import { ApprovalDecision, type CanonicalSequence, Digest, RecordId, SettlementOutcome } from '@yielded/agent/records' +import { + ApprovalDecision, + type CanonicalSequence, + Digest, + RecordId, + SettlementOutcome, +} from '@systemfsoftware/agent/records' import { AdmissionGroup, ChildReservationStatus, type QueueSequence, SubmissionState, UnknownResolutionKind, -} from '@yielded/agent/submission-ledger' +} from '@systemfsoftware/agent/submission-ledger' import * as Schema from 'effect/Schema' export const BoundedIdentifier = Schema.NonEmptyString.check(Schema.isMaxLength(1024)) diff --git a/packages/storage-sql/src/SqlSubscriptionStore.ts b/packages/storage-sql/src/SqlSubscriptionStore.ts index ef403e6a..fc97415e 100644 --- a/packages/storage-sql/src/SqlSubscriptionStore.ts +++ b/packages/storage-sql/src/SqlSubscriptionStore.ts @@ -1,4 +1,4 @@ -import { Digest } from '@yielded/agent/records' +import { Digest } from '@systemfsoftware/agent/records' import { AcceptedEvent, defaultSubscriptionLimits, @@ -18,7 +18,7 @@ import { SubscriptionRetentionPolicy, SubscriptionScanCursors, SubscriptionStore, -} from '@yielded/agent/subscription' +} from '@systemfsoftware/agent/subscription' import { applySubscriptionChange, applySubscriptionDeliveryChange, @@ -29,7 +29,7 @@ import { subscriptionDeliveryUsesCapacity, subscriptionUsesCapacity, validateEventRetention, -} from '@yielded/agent/subscription-transition' +} from '@systemfsoftware/agent/subscription-transition' import * as Clock from 'effect/Clock' import * as Effect from 'effect/Effect' import * as Result from 'effect/Result' diff --git a/packages/storage-sql/src/SqlThreadArchiveRange.ts b/packages/storage-sql/src/SqlThreadArchiveRange.ts index a4a07063..f8209daf 100644 --- a/packages/storage-sql/src/SqlThreadArchiveRange.ts +++ b/packages/storage-sql/src/SqlThreadArchiveRange.ts @@ -1,6 +1,6 @@ -import { canonicalJson, utf8ByteLength } from '@yielded/agent/digest' -import { ExportBatch, ExportRecord } from '@yielded/agent/record-format' -import { CanonicalSequence } from '@yielded/agent/records' +import { canonicalJson, utf8ByteLength } from '@systemfsoftware/agent/digest' +import { ExportBatch, ExportRecord } from '@systemfsoftware/agent/record-format' +import { CanonicalSequence } from '@systemfsoftware/agent/records' import { MAX_ARCHIVE_RANGE_BYTES, MAX_ARCHIVE_RANGE_PAGE, @@ -12,8 +12,8 @@ import { ThreadArchiveRangeRequest, ThreadArchiveRangeSeal, type ThreadArchiveStorage, -} from '@yielded/agent/thread-archive-range' -import { type ThreadExportBatch, ThreadNotMaterialized, ThreadStoreError } from '@yielded/agent/thread-store' +} from '@systemfsoftware/agent/thread-archive-range' +import { type ThreadExportBatch, ThreadNotMaterialized, ThreadStoreError } from '@systemfsoftware/agent/thread-store' import * as Effect from 'effect/Effect' import * as Option from 'effect/Option' import * as Schema from 'effect/Schema' diff --git a/packages/storage-sql/src/SqlThreadImport.ts b/packages/storage-sql/src/SqlThreadImport.ts index 58324339..e7963619 100644 --- a/packages/storage-sql/src/SqlThreadImport.ts +++ b/packages/storage-sql/src/SqlThreadImport.ts @@ -1,15 +1,15 @@ -import { canonicalJson, utf8ByteLength } from '@yielded/agent/digest' -import { RunId, SubmissionId, ThreadId } from '@yielded/agent/identifiers' +import { canonicalJson, utf8ByteLength } from '@systemfsoftware/agent/digest' +import { RunId, SubmissionId, ThreadId } from '@systemfsoftware/agent/identifiers' import { defaultMessageDeliveryStoreLimits, messageDeliveryDeadline, MessageDeliveryRecord, type MessageDeliveryStoreLimits, peerMessageRetentionDeadline, -} from '@yielded/agent/message-delivery' -import { PreparedInput } from '@yielded/agent/prepared-input-admission' -import { decodeExportRecordJson, ExportedRecord } from '@yielded/agent/record-format' -import type { RecordId } from '@yielded/agent/records' +} from '@systemfsoftware/agent/message-delivery' +import { PreparedInput } from '@systemfsoftware/agent/prepared-input-admission' +import { decodeExportRecordJson, ExportedRecord } from '@systemfsoftware/agent/record-format' +import type { RecordId } from '@systemfsoftware/agent/records' import { CanonicalRecordEnvelope, CanonicalSequence, @@ -23,10 +23,10 @@ import { RecordJson, RUN_TERMINAL_RESERVE_RECORDS, SettlementOutcome, -} from '@yielded/agent/records' -import { isOperationalRecord, verifyRunContinuations } from '@yielded/agent/run-continuation' -import type { StorageOwner } from '@yielded/agent/run-storage' -import { validateCanonicalSettlement } from '@yielded/agent/settlement-publisher' +} from '@systemfsoftware/agent/records' +import { isOperationalRecord, verifyRunContinuations } from '@systemfsoftware/agent/run-continuation' +import type { StorageOwner } from '@systemfsoftware/agent/run-storage' +import { validateCanonicalSettlement } from '@systemfsoftware/agent/settlement-publisher' import { AbortIntent, ApprovalDecisionIntent, @@ -41,7 +41,7 @@ import { UnknownResolutionKind, unknownResolutionKind, workerTerminalFromRecord, -} from '@yielded/agent/submission-ledger' +} from '@systemfsoftware/agent/submission-ledger' import { captureImportSource, finishThreadImport, @@ -59,9 +59,9 @@ import { validateImportedRunExecution, verifyImportedInputOrder, verifyImportedReferences, -} from '@yielded/agent/thread-import' -import { verifyThreadInvariants } from '@yielded/agent/thread-invariants' -import type { ThreadCommands, ThreadExportRequest } from '@yielded/agent/thread-store' +} from '@systemfsoftware/agent/thread-import' +import { verifyThreadInvariants } from '@systemfsoftware/agent/thread-invariants' +import type { ThreadCommands, ThreadExportRequest } from '@systemfsoftware/agent/thread-store' import { canonicalBatchFitsTransfer, ExecutionCheckpoint, @@ -74,7 +74,7 @@ import { ThreadNotMaterialized, ThreadReadRequest, ThreadStoreError, -} from '@yielded/agent/thread-store' +} from '@systemfsoftware/agent/thread-store' import { checkExportSource, exportThreadPage, @@ -83,9 +83,9 @@ import { type TransferFacts, type TransferManifest, type TransferSection, -} from '@yielded/agent/thread-transfer' -import { WORK_INDEX_VERSION } from '@yielded/agent/thread-work' -import { AssignmentTerminal } from '@yielded/agent/worker' +} from '@systemfsoftware/agent/thread-transfer' +import { WORK_INDEX_VERSION } from '@systemfsoftware/agent/thread-work' +import { AssignmentTerminal } from '@systemfsoftware/agent/worker' import * as Clock from 'effect/Clock' import * as CryptoDigest from 'effect/crypto/Digest' import * as DateTime from 'effect/DateTime' diff --git a/packages/storage-sql/src/SqlThreadNativeReads.ts b/packages/storage-sql/src/SqlThreadNativeReads.ts index 18e41a00..64e267d0 100644 --- a/packages/storage-sql/src/SqlThreadNativeReads.ts +++ b/packages/storage-sql/src/SqlThreadNativeReads.ts @@ -1,5 +1,5 @@ -import { RunId, ThreadId } from '@yielded/agent/identifiers' -import { decodeExportRecordJson } from '@yielded/agent/record-format' +import { RunId, ThreadId } from '@systemfsoftware/agent/identifiers' +import { decodeExportRecordJson } from '@systemfsoftware/agent/record-format' import { BatchId, type CanonicalRecord, @@ -15,21 +15,21 @@ import { RecordId, type RecordJson, RunContinuation, -} from '@yielded/agent/records' -import { canonicalRecordBytes, canonicalRunIds, isWorkHandoff } from '@yielded/agent/run-continuation' +} from '@systemfsoftware/agent/records' +import { canonicalRecordBytes, canonicalRunIds, isWorkHandoff } from '@systemfsoftware/agent/run-continuation' import { runIdForSubmission, subagentLineageRecordId, toolCallSettledRecordId, workerOriginRecordId, -} from '@yielded/agent/run-journal' -import { SqlStorageOwner } from '@yielded/agent/sql-storage-owner' +} from '@systemfsoftware/agent/run-journal' +import { SqlStorageOwner } from '@systemfsoftware/agent/sql-storage-owner' import { submissionAbortRecordId, submissionInputRecordId, submissionSettlementRecordId, -} from '@yielded/agent/submission-ledger' -import type { PreparedAppend, ThreadStore } from '@yielded/agent/thread-store' +} from '@systemfsoftware/agent/submission-ledger' +import type { PreparedAppend, ThreadStore } from '@systemfsoftware/agent/thread-store' import { ExecutionCheckpoint, ExecutionRead, @@ -44,8 +44,8 @@ import { ThreadStoreError, ThreadWorkerCapacity, ThreadWorkerCapacityRequest, -} from '@yielded/agent/thread-store' -import { WORK_INDEX_VERSION } from '@yielded/agent/thread-work' +} from '@systemfsoftware/agent/thread-store' +import { WORK_INDEX_VERSION } from '@systemfsoftware/agent/thread-work' import * as Context from 'effect/Context' import * as Effect from 'effect/Effect' import * as Option from 'effect/Option' diff --git a/packages/storage-sql/src/SqlThreadStore.ts b/packages/storage-sql/src/SqlThreadStore.ts index 8323fa35..05cb9ab4 100644 --- a/packages/storage-sql/src/SqlThreadStore.ts +++ b/packages/storage-sql/src/SqlThreadStore.ts @@ -1,15 +1,20 @@ -import { digestCanonicalJson, utf8ByteLength } from '@yielded/agent/digest' -import { ThreadId } from '@yielded/agent/identifiers' -import { prepareCanonicalMessageDeliveries } from '@yielded/agent/message-delivery' -import { decodeExportRecordJson } from '@yielded/agent/record-format' -import { CanonicalRecordEnvelope, CanonicalSequence, ObservationOffset, RecordEnvelope } from '@yielded/agent/records' -import { isOperationalRecord } from '@yielded/agent/run-continuation' +import { digestCanonicalJson, utf8ByteLength } from '@systemfsoftware/agent/digest' +import { ThreadId } from '@systemfsoftware/agent/identifiers' +import { prepareCanonicalMessageDeliveries } from '@systemfsoftware/agent/message-delivery' +import { decodeExportRecordJson } from '@systemfsoftware/agent/record-format' +import { + CanonicalRecordEnvelope, + CanonicalSequence, + ObservationOffset, + RecordEnvelope, +} from '@systemfsoftware/agent/records' +import { isOperationalRecord } from '@systemfsoftware/agent/run-continuation' import { finishThreadImport, makeThreadImportProgress, prepareImportPage, ThreadArchive, -} from '@yielded/agent/thread-import' +} from '@systemfsoftware/agent/thread-import' import { AppendConflict, type AppendRequest, @@ -25,7 +30,7 @@ import { ThreadStoreError, ThreadTail, ThreadTailRequest, -} from '@yielded/agent/thread-store' +} from '@systemfsoftware/agent/thread-store' import * as Clock from 'effect/Clock' import * as CryptoDigest from 'effect/crypto/Digest' import * as Effect from 'effect/Effect' diff --git a/packages/storage-sql/src/SqlThreadWork.ts b/packages/storage-sql/src/SqlThreadWork.ts index 09ecf31f..f07c040a 100644 --- a/packages/storage-sql/src/SqlThreadWork.ts +++ b/packages/storage-sql/src/SqlThreadWork.ts @@ -1,6 +1,6 @@ -import { ThreadId } from '@yielded/agent/identifiers' -import { IdempotencyKey } from '@yielded/agent/receipt' -import { decodeExportRecordJson } from '@yielded/agent/record-format' +import { ThreadId } from '@systemfsoftware/agent/identifiers' +import { IdempotencyKey } from '@systemfsoftware/agent/receipt' +import { decodeExportRecordJson } from '@systemfsoftware/agent/record-format' import { BatchId, type CanonicalRecord, @@ -8,9 +8,9 @@ import { CanonicalSequence, ObservationOffset, RecordId, -} from '@yielded/agent/records' -import { SubmissionWorkItem } from '@yielded/agent/submission-ledger' -import { ThreadStoreError } from '@yielded/agent/thread-store' +} from '@systemfsoftware/agent/records' +import { SubmissionWorkItem } from '@systemfsoftware/agent/submission-ledger' +import { ThreadStoreError } from '@systemfsoftware/agent/thread-store' import { admissionWork, advanceWorkEntry, @@ -33,7 +33,7 @@ import { WorkIndexProgress, WorkIndexRebuildRequest, WorkThreadsRequest, -} from '@yielded/agent/thread-work' +} from '@systemfsoftware/agent/thread-work' import * as Arr from 'effect/Array' import * as CryptoDigest from 'effect/crypto/Digest' import * as Effect from 'effect/Effect' diff --git a/packages/storage-sql/src/SqliteLayoutInspection.ts b/packages/storage-sql/src/SqliteLayoutInspection.ts index b4951fa0..7f557f91 100644 --- a/packages/storage-sql/src/SqliteLayoutInspection.ts +++ b/packages/storage-sql/src/SqliteLayoutInspection.ts @@ -1,4 +1,4 @@ -import { CURRENT_RECORD_FORMAT } from '@yielded/agent/records' +import { CURRENT_RECORD_FORMAT } from '@systemfsoftware/agent/records' import * as Effect from 'effect/Effect' import * as Schema from 'effect/Schema' import * as SqlClient from 'effect/sql/SqlClient' diff --git a/packages/storage-sql/src/internal/SqlExecutionState.ts b/packages/storage-sql/src/internal/SqlExecutionState.ts index 523c3ae6..fbe12ba1 100644 --- a/packages/storage-sql/src/internal/SqlExecutionState.ts +++ b/packages/storage-sql/src/internal/SqlExecutionState.ts @@ -1,5 +1,5 @@ -import type { CanonicalSequence, RunContinuation } from '@yielded/agent/records' -import type { ExecutionCheckpoint } from '@yielded/agent/thread-store' +import type { CanonicalSequence, RunContinuation } from '@systemfsoftware/agent/records' +import type { ExecutionCheckpoint } from '@systemfsoftware/agent/thread-store' export interface ExecutionPredecessor { readonly progress: RunContinuation diff --git a/packages/storage-sql/src/internal/SqlOwner.ts b/packages/storage-sql/src/internal/SqlOwner.ts index a9f23359..98f2c8c2 100644 --- a/packages/storage-sql/src/internal/SqlOwner.ts +++ b/packages/storage-sql/src/internal/SqlOwner.ts @@ -1,4 +1,4 @@ -import { makeStorageOwner, type StorageOwner } from '@yielded/agent/run-storage' +import { makeStorageOwner, type StorageOwner } from '@systemfsoftware/agent/run-storage' import * as Deferred from 'effect/Deferred' import * as Effect from 'effect/Effect' import * as Exit from 'effect/Exit' diff --git a/packages/storage-sql/test/sql-factories.types.ts b/packages/storage-sql/test/sql-factories.types.ts index abe9bafe..6140a4b7 100644 --- a/packages/storage-sql/test/sql-factories.types.ts +++ b/packages/storage-sql/test/sql-factories.types.ts @@ -1,5 +1,5 @@ import { expectTypeOf } from '@effect/vitest' -import type { AppendConflict, ThreadStoreError } from '@yielded/agent/thread-store' +import type { AppendConflict, ThreadStoreError } from '@systemfsoftware/agent/thread-store' import * as Context from 'effect/Context' import type * as CryptoDigest from 'effect/crypto/Digest' import type * as SecureRandom from 'effect/crypto/SecureRandom' diff --git a/packages/storage-sqlite/package.json b/packages/storage-sqlite/package.json index 095f1b64..28f8a0eb 100644 --- a/packages/storage-sqlite/package.json +++ b/packages/storage-sqlite/package.json @@ -1,13 +1,17 @@ { - "name": "@yielded/agent-storage-sqlite", - "version": "0.1.0-beta.192", + "name": "@systemfsoftware/agent-storage-sqlite", + "version": "0.1.0", "description": "Node SQLite persistence adapters for the Effect Agent durable runtime and optional memory lifecycle.", "license": "MIT", "repository": { "type": "git", - "url": "git+https://github.com/yielded-dev/agent.git", + "url": "git+https://github.com/systemfsoftware/agent.git", "directory": "packages/storage-sqlite" }, + "bugs": { + "url": "https://github.com/systemfsoftware/agent/issues" + }, + "homepage": "https://github.com/systemfsoftware/agent/tree/main/packages/storage-sqlite#readme", "files": [ "dist", "src" @@ -85,8 +89,8 @@ "dependencies": { "@effect/platform-node": "catalog:", "@effect/sql-sqlite-node": "catalog:", - "@yielded/agent": "workspace:*", - "@yielded/agent-storage-sql": "workspace:*" + "@systemfsoftware/agent": "workspace:*", + "@systemfsoftware/agent-storage-sql": "workspace:*" }, "devDependencies": { "@arethetypeswrong/cli": "catalog:", diff --git a/packages/storage-sqlite/src/SqliteActivityStore.ts b/packages/storage-sqlite/src/SqliteActivityStore.ts index 9792a1a7..728bdbe6 100644 --- a/packages/storage-sqlite/src/SqliteActivityStore.ts +++ b/packages/storage-sqlite/src/SqliteActivityStore.ts @@ -1,10 +1,10 @@ -import { makeSqlActivityStore } from '@yielded/agent-storage-sql/sql-activity-store' +import { makeSqlActivityStore } from '@systemfsoftware/agent-storage-sql/sql-activity-store' import { ActivityMutationFailpoint, type ActivityMutationFailure, ActivityProcessorStore, type ActivityStoreError, -} from '@yielded/agent/activity-store' +} from '@systemfsoftware/agent/activity-store' import * as Effect from 'effect/Effect' import * as Layer from 'effect/Layer' import * as SqlClientService from 'effect/sql/SqlClient' diff --git a/packages/storage-sqlite/src/SqliteMessageDeliveryStore.ts b/packages/storage-sqlite/src/SqliteMessageDeliveryStore.ts index d6a71026..d3d2a3b3 100644 --- a/packages/storage-sqlite/src/SqliteMessageDeliveryStore.ts +++ b/packages/storage-sqlite/src/SqliteMessageDeliveryStore.ts @@ -1,8 +1,8 @@ import { makeSqlMessageDeliveryStore, registerCanonicalMessageWriter, -} from '@yielded/agent-storage-sql/sql-message-delivery-store' -import { MessageDeliveryStore, type MessageDeliveryStoreLimits } from '@yielded/agent/message-delivery' +} from '@systemfsoftware/agent-storage-sql/sql-message-delivery-store' +import { MessageDeliveryStore, type MessageDeliveryStoreLimits } from '@systemfsoftware/agent/message-delivery' import * as Effect from 'effect/Effect' import * as Layer from 'effect/Layer' diff --git a/packages/storage-sqlite/src/SqliteScheduleStore.ts b/packages/storage-sqlite/src/SqliteScheduleStore.ts index 837a71d8..b7328e83 100644 --- a/packages/storage-sqlite/src/SqliteScheduleStore.ts +++ b/packages/storage-sqlite/src/SqliteScheduleStore.ts @@ -1,5 +1,8 @@ -import { makeSqlScheduleStore, SqlScheduleWriteTransaction } from '@yielded/agent-storage-sql/sql-schedule-store' -import { ScheduleStore } from '@yielded/agent/schedule' +import { + makeSqlScheduleStore, + SqlScheduleWriteTransaction, +} from '@systemfsoftware/agent-storage-sql/sql-schedule-store' +import { ScheduleStore } from '@systemfsoftware/agent/schedule' import * as Effect from 'effect/Effect' import * as Layer from 'effect/Layer' import * as SqlClient from 'effect/sql/SqlClient' diff --git a/packages/storage-sqlite/src/SqliteStorageError.ts b/packages/storage-sqlite/src/SqliteStorageError.ts index 767e0946..ce09c80b 100644 --- a/packages/storage-sqlite/src/SqliteStorageError.ts +++ b/packages/storage-sqlite/src/SqliteStorageError.ts @@ -1,5 +1,5 @@ -import { SqlStorageFailpointLocation as SqliteStorageFailpointLocation } from '@yielded/agent-storage-sql/sql-storage-failpoint' -import { CanonicalSequence } from '@yielded/agent/records' +import { SqlStorageFailpointLocation as SqliteStorageFailpointLocation } from '@systemfsoftware/agent-storage-sql/sql-storage-failpoint' +import { CanonicalSequence } from '@systemfsoftware/agent/records' import * as Schema from 'effect/Schema' /** The SQLite file uses a private-development format this adapter cannot read. */ @@ -81,7 +81,7 @@ export class SqliteCheckpointConflict extends Schema.TaggedError()( diff --git a/packages/storage-sqlite/src/SqliteSubmissionLedger.ts b/packages/storage-sqlite/src/SqliteSubmissionLedger.ts index c3bcded8..51b82eb4 100644 --- a/packages/storage-sqlite/src/SqliteSubmissionLedger.ts +++ b/packages/storage-sqlite/src/SqliteSubmissionLedger.ts @@ -1,8 +1,8 @@ import * as NodeCrypto from '@effect/platform-node/NodeCrypto' -import { makeSqlSubmissionLedgerKernel } from '@yielded/agent-storage-sql/sql-submission-ledger' -import { StorageOwner } from '@yielded/agent/run-storage' -import { SettlementPublisher } from '@yielded/agent/settlement-publisher' -import { SubmissionLedger } from '@yielded/agent/submission-ledger' +import { makeSqlSubmissionLedgerKernel } from '@systemfsoftware/agent-storage-sql/sql-submission-ledger' +import { StorageOwner } from '@systemfsoftware/agent/run-storage' +import { SettlementPublisher } from '@systemfsoftware/agent/settlement-publisher' +import { SubmissionLedger } from '@systemfsoftware/agent/submission-ledger' import * as Context from 'effect/Context' import type * as CryptoDigest from 'effect/crypto/Digest' import type * as SecureRandom from 'effect/crypto/SecureRandom' diff --git a/packages/storage-sqlite/src/SqliteSubscriptionStore.ts b/packages/storage-sqlite/src/SqliteSubscriptionStore.ts index 2ee70654..f86ed333 100644 --- a/packages/storage-sqlite/src/SqliteSubscriptionStore.ts +++ b/packages/storage-sqlite/src/SqliteSubscriptionStore.ts @@ -1,5 +1,5 @@ -import { makeSqlSubscriptionStore } from '@yielded/agent-storage-sql/sql-subscription-store' -import { SourcePartition, SubscriptionError, SubscriptionStore } from '@yielded/agent/subscription' +import { makeSqlSubscriptionStore } from '@systemfsoftware/agent-storage-sql/sql-subscription-store' +import { SourcePartition, SubscriptionError, SubscriptionStore } from '@systemfsoftware/agent/subscription' import * as Effect from 'effect/Effect' import * as Layer from 'effect/Layer' import * as Schema from 'effect/Schema' diff --git a/packages/storage-sqlite/src/SqliteThreadStore.ts b/packages/storage-sqlite/src/SqliteThreadStore.ts index 9fc5a592..2648167d 100644 --- a/packages/storage-sqlite/src/SqliteThreadStore.ts +++ b/packages/storage-sqlite/src/SqliteThreadStore.ts @@ -1,16 +1,16 @@ import * as NodeCrypto from '@effect/platform-node/NodeCrypto' -import { sqlStorageOwner } from '@yielded/agent-storage-sql/sql-journal' -import { makeSqlRunStorage } from '@yielded/agent-storage-sql/sql-run-storage' -import { makeSqlTransaction, SqlInteger } from '@yielded/agent-storage-sql/sql-storage' -import { makeSqlThreadImport } from '@yielded/agent-storage-sql/sql-thread-import' -import { makeSqlThreadStoreKernel } from '@yielded/agent-storage-sql/sql-thread-store' -import { RunStorage, StorageOwner } from '@yielded/agent/run-storage' -import { SettlementPublisher } from '@yielded/agent/settlement-publisher' -import { SubmissionLedger } from '@yielded/agent/submission-ledger' -import { ThreadImport } from '@yielded/agent/thread-import' -import type { ThreadExportRequest } from '@yielded/agent/thread-store' -import { ThreadExportSource, ThreadReader, ThreadStore, ThreadStoreError } from '@yielded/agent/thread-store' -import { checkExportSource } from '@yielded/agent/thread-transfer' +import { sqlStorageOwner } from '@systemfsoftware/agent-storage-sql/sql-journal' +import { makeSqlRunStorage } from '@systemfsoftware/agent-storage-sql/sql-run-storage' +import { makeSqlTransaction, SqlInteger } from '@systemfsoftware/agent-storage-sql/sql-storage' +import { makeSqlThreadImport } from '@systemfsoftware/agent-storage-sql/sql-thread-import' +import { makeSqlThreadStoreKernel } from '@systemfsoftware/agent-storage-sql/sql-thread-store' +import { RunStorage, StorageOwner } from '@systemfsoftware/agent/run-storage' +import { SettlementPublisher } from '@systemfsoftware/agent/settlement-publisher' +import { SubmissionLedger } from '@systemfsoftware/agent/submission-ledger' +import { ThreadImport } from '@systemfsoftware/agent/thread-import' +import type { ThreadExportRequest } from '@systemfsoftware/agent/thread-store' +import { ThreadExportSource, ThreadReader, ThreadStore, ThreadStoreError } from '@systemfsoftware/agent/thread-store' +import { checkExportSource } from '@systemfsoftware/agent/thread-transfer' import * as Context from 'effect/Context' import * as CryptoDigest from 'effect/crypto/Digest' import * as SecureRandom from 'effect/crypto/SecureRandom' diff --git a/packages/storage-sqlite/src/internal/migrations.ts b/packages/storage-sqlite/src/internal/migrations.ts index a6f52260..3cdf4da8 100644 --- a/packages/storage-sqlite/src/internal/migrations.ts +++ b/packages/storage-sqlite/src/internal/migrations.ts @@ -1,13 +1,19 @@ import { assertLegacyMessagePublicationDrained, backfillPeerMessageRetention, -} from '@yielded/agent-storage-sql/sql-message-delivery-store' -import { makeSqlTransaction } from '@yielded/agent-storage-sql/sql-storage' -import { backfillSubscriptionSettlementObservation } from '@yielded/agent-storage-sql/sql-subscription-store' -import { SQL_PROMPT_PREDICATE, upgradeExecutionCheckpoints } from '@yielded/agent-storage-sql/sql-thread-native-reads' -import { createSqlThreadWorkTables, upgradeSqlThreadWorkIndex } from '@yielded/agent-storage-sql/sql-thread-work' -import { makeSqliteLayoutInspection } from '@yielded/agent-storage-sql/sqlite-layout-inspection' -import { CURRENT_RECORD_FORMAT } from '@yielded/agent/records' +} from '@systemfsoftware/agent-storage-sql/sql-message-delivery-store' +import { makeSqlTransaction } from '@systemfsoftware/agent-storage-sql/sql-storage' +import { backfillSubscriptionSettlementObservation } from '@systemfsoftware/agent-storage-sql/sql-subscription-store' +import { + SQL_PROMPT_PREDICATE, + upgradeExecutionCheckpoints, +} from '@systemfsoftware/agent-storage-sql/sql-thread-native-reads' +import { + createSqlThreadWorkTables, + upgradeSqlThreadWorkIndex, +} from '@systemfsoftware/agent-storage-sql/sql-thread-work' +import { makeSqliteLayoutInspection } from '@systemfsoftware/agent-storage-sql/sqlite-layout-inspection' +import { CURRENT_RECORD_FORMAT } from '@systemfsoftware/agent/records' import * as Effect from 'effect/Effect' import * as Schema from 'effect/Schema' import * as SqlClient from 'effect/sql/SqlClient' diff --git a/packages/storage-sqlite/src/internal/sqlite-journal.ts b/packages/storage-sqlite/src/internal/sqlite-journal.ts index adf08556..1c851afd 100644 --- a/packages/storage-sqlite/src/internal/sqlite-journal.ts +++ b/packages/storage-sqlite/src/internal/sqlite-journal.ts @@ -1,10 +1,10 @@ -import { makeSqlJournalKernel } from '@yielded/agent-storage-sql/sql-journal' +import { makeSqlJournalKernel } from '@systemfsoftware/agent-storage-sql/sql-journal' import { type CorruptionErrorFields, makeRowDecoder, makeSqlTransaction, type StorageErrorFields, -} from '@yielded/agent-storage-sql/sql-storage' +} from '@systemfsoftware/agent-storage-sql/sql-storage' import * as Effect from 'effect/Effect' import * as Option from 'effect/Option' import * as Schema from 'effect/Schema' diff --git a/packages/storage-sqlite/src/internal/sqlite-ledger-errors.ts b/packages/storage-sqlite/src/internal/sqlite-ledger-errors.ts index 7a08bd0a..08a2979e 100644 --- a/packages/storage-sqlite/src/internal/sqlite-ledger-errors.ts +++ b/packages/storage-sqlite/src/internal/sqlite-ledger-errors.ts @@ -1,4 +1,4 @@ -import { LedgerError } from '@yielded/agent/submission-ledger' +import { LedgerError } from '@systemfsoftware/agent/submission-ledger' import type * as SqlError from 'effect/sql/SqlError' import { SqliteLedgerError, SqliteWriteContention } from '../SqliteStorageError.ts' diff --git a/packages/storage-sqlite/test/sqlite-activity-store.test.ts b/packages/storage-sqlite/test/sqlite-activity-store.test.ts index 0420c2dc..8b632edf 100644 --- a/packages/storage-sqlite/test/sqlite-activity-store.test.ts +++ b/packages/storage-sqlite/test/sqlite-activity-store.test.ts @@ -4,7 +4,7 @@ import { describe, expect, it } from '@effect/vitest' import { activityProcessorStoreLayer, activityProcessorStoreLayerWithFailpoints, -} from '@yielded/agent-storage-sqlite/sqlite-activity-store' +} from '@systemfsoftware/agent-storage-sqlite/sqlite-activity-store' import { ActivityBusy, ActivityMutationFailpoint, @@ -14,7 +14,7 @@ import { ActivityProcessorStore, ActivityWorkConflict, PreparedActivity, -} from '@yielded/agent/activity-store' +} from '@systemfsoftware/agent/activity-store' import * as Cause from 'effect/Cause' import * as Context from 'effect/Context' import * as Deferred from 'effect/Deferred' diff --git a/packages/storage-sqlite/test/sqlite-ledger-reads.test.ts b/packages/storage-sqlite/test/sqlite-ledger-reads.test.ts index 3317354d..4f5f1b39 100644 --- a/packages/storage-sqlite/test/sqlite-ledger-reads.test.ts +++ b/packages/storage-sqlite/test/sqlite-ledger-reads.test.ts @@ -2,10 +2,10 @@ import * as NodeCrypto from '@effect/platform-node/NodeCrypto' import * as NodeFileSystem from '@effect/platform-node/NodeFileSystem' import * as SqliteClient from '@effect/sql-sqlite-node/SqliteClient' import { describe, it } from '@effect/vitest' -import type { StorageOwner } from '@yielded/agent/run-storage' -import type { SettlementPublisher } from '@yielded/agent/settlement-publisher' -import type { SubmissionLedger } from '@yielded/agent/submission-ledger' -import type { ThreadStore } from '@yielded/agent/thread-store' +import type { StorageOwner } from '@systemfsoftware/agent/run-storage' +import type { SettlementPublisher } from '@systemfsoftware/agent/settlement-publisher' +import type { SubmissionLedger } from '@systemfsoftware/agent/submission-ledger' +import type { ThreadStore } from '@systemfsoftware/agent/thread-store' import type * as CryptoDigest from 'effect/crypto/Digest' import * as Effect from 'effect/Effect' import * as FileSystem from 'effect/FileSystem' diff --git a/packages/storage-sqlite/test/sqlite-ledger.test.ts b/packages/storage-sqlite/test/sqlite-ledger.test.ts index b82f4b62..6bae64a7 100644 --- a/packages/storage-sqlite/test/sqlite-ledger.test.ts +++ b/packages/storage-sqlite/test/sqlite-ledger.test.ts @@ -6,10 +6,10 @@ import { SqliteStorageCompatibilityError, SqliteStorageFailpointError, type SqliteStorageFailpointLocation, -} from '@yielded/agent-storage-sqlite/sqlite-storage-error' -import { SqliteStorageFailpoint } from '@yielded/agent-storage-sqlite/sqlite-storage-failpoint' -import { CurrentSqliteStorageVersion } from '@yielded/agent-storage-sqlite/sqlite-storage-version' -import { ledgerLayer, submissionLedgerLayer } from '@yielded/agent-storage-sqlite/sqlite-submission-ledger' +} from '@systemfsoftware/agent-storage-sqlite/sqlite-storage-error' +import { SqliteStorageFailpoint } from '@systemfsoftware/agent-storage-sqlite/sqlite-storage-failpoint' +import { CurrentSqliteStorageVersion } from '@systemfsoftware/agent-storage-sqlite/sqlite-storage-version' +import { ledgerLayer, submissionLedgerLayer } from '@systemfsoftware/agent-storage-sqlite/sqlite-submission-ledger' import { exclusiveHostClientLayer, exclusiveRunStorageLayer, @@ -17,8 +17,8 @@ import { storageConfigLayer, storageFailpointLayer, threadStoreLayer, -} from '@yielded/agent-storage-sqlite/sqlite-thread-store' -import { digestJson } from '@yielded/agent/digest' +} from '@systemfsoftware/agent-storage-sqlite/sqlite-thread-store' +import { digestJson } from '@systemfsoftware/agent/digest' import { AbortRequested, CanonicalBatch, @@ -35,12 +35,12 @@ import { SubmissionSettled, SubmissionSettledRecord, UserInputRecorded, -} from '@yielded/agent/records' -import { CurrentRunSettlement, CurrentRunWriter, makeProgressWriter } from '@yielded/agent/run-continuation' -import { runIdForSubmission } from '@yielded/agent/run-journal' -import type { StorageOwner } from '@yielded/agent/run-storage' -import { layer as runStorageLayer, makeRunWriter, RunStorage } from '@yielded/agent/run-storage' -import { SettlementPublication, SettlementPublisher } from '@yielded/agent/settlement-publisher' +} from '@systemfsoftware/agent/records' +import { CurrentRunSettlement, CurrentRunWriter, makeProgressWriter } from '@systemfsoftware/agent/run-continuation' +import { runIdForSubmission } from '@systemfsoftware/agent/run-journal' +import type { StorageOwner } from '@systemfsoftware/agent/run-storage' +import { layer as runStorageLayer, makeRunWriter, RunStorage } from '@systemfsoftware/agent/run-storage' +import { SettlementPublication, SettlementPublisher } from '@systemfsoftware/agent/settlement-publisher' import { AbortCommand, AdmissionPolicyError, @@ -85,10 +85,15 @@ import { UnknownResolutionCommand, WaitingChild, WaitingForChildSuspension, -} from '@yielded/agent/submission-ledger' -import { submissionLedgerConformanceCases } from '@yielded/agent/testing/submission-ledger-conformance' -import { readTestThread } from '@yielded/agent/testing/thread-store-conformance' -import { AppendRequest, ThreadExportRequest, ThreadMaterialization, ThreadStore } from '@yielded/agent/thread-store' +} from '@systemfsoftware/agent/submission-ledger' +import { submissionLedgerConformanceCases } from '@systemfsoftware/agent/testing/submission-ledger-conformance' +import { readTestThread } from '@systemfsoftware/agent/testing/thread-store-conformance' +import { + AppendRequest, + ThreadExportRequest, + ThreadMaterialization, + ThreadStore, +} from '@systemfsoftware/agent/thread-store' import * as Cause from 'effect/Cause' import type * as CryptoDigest from 'effect/crypto/Digest' import * as DateTime from 'effect/DateTime' diff --git a/packages/storage-sqlite/test/sqlite-memory-store.test.ts b/packages/storage-sqlite/test/sqlite-memory-store.test.ts index 14a3ff24..2c27a00f 100644 --- a/packages/storage-sqlite/test/sqlite-memory-store.test.ts +++ b/packages/storage-sqlite/test/sqlite-memory-store.test.ts @@ -1,7 +1,7 @@ import * as NodeFileSystem from '@effect/platform-node/NodeFileSystem' import * as SqliteClient from '@effect/sql-sqlite-node/SqliteClient' import { describe, expect, it } from '@effect/vitest' -import * as MemoryNamespace from '@yielded/agent/memory-namespace' +import * as MemoryNamespace from '@systemfsoftware/agent/memory-namespace' import { MemoryConflict, MemoryKey, @@ -14,13 +14,13 @@ import { MemoryWithdrawn, MemoryWrite, MemoryWriter, -} from '@yielded/agent/memory-store' +} from '@systemfsoftware/agent/memory-store' import { memoryReaderLayer, memoryStoreLayer, memoryStoreLayerWithFailpoints, SqlMemoryLimits, -} from '@yielded/agent/sql-memory-store' +} from '@systemfsoftware/agent/sql-memory-store' import * as Cause from 'effect/Cause' import * as Deferred from 'effect/Deferred' import * as Effect from 'effect/Effect' diff --git a/packages/storage-sqlite/test/sqlite-message-delivery-store.test.ts b/packages/storage-sqlite/test/sqlite-message-delivery-store.test.ts index e0eba31f..ec4aebce 100644 --- a/packages/storage-sqlite/test/sqlite-message-delivery-store.test.ts +++ b/packages/storage-sqlite/test/sqlite-message-delivery-store.test.ts @@ -2,7 +2,7 @@ import * as NodeCrypto from '@effect/platform-node/NodeCrypto' import * as NodeFileSystem from '@effect/platform-node/NodeFileSystem' import * as SqliteClient from '@effect/sql-sqlite-node/SqliteClient' import { expect, it } from '@effect/vitest' -import { ThreadId } from '@yielded/agent/identifiers' +import { ThreadId } from '@systemfsoftware/agent/identifiers' import { drainLifecyclePublications, LifecyclePublication, @@ -11,14 +11,14 @@ import { LifecyclePublicationHandler, lifecyclePublicationLayer, type LifecyclePublicationStorage, -} from '@yielded/agent/lifecycle-publication' -import { MessageDeliveryStore, prepareMessageDelivery, readPending } from '@yielded/agent/message-delivery' +} from '@systemfsoftware/agent/lifecycle-publication' +import { MessageDeliveryStore, prepareMessageDelivery, readPending } from '@systemfsoftware/agent/message-delivery' import { makeMessageDeliveryFixture, makeWorkerUpdateDeliveryFixture, messageDeliveryStoreConformanceCases, -} from '@yielded/agent/testing/message-delivery-store-conformance' -import { ThreadMaterialization, ThreadStore } from '@yielded/agent/thread-store' +} from '@systemfsoftware/agent/testing/message-delivery-store-conformance' +import { ThreadMaterialization, ThreadStore } from '@systemfsoftware/agent/thread-store' import * as DateTime from 'effect/DateTime' import * as Effect from 'effect/Effect' import * as FileSystem from 'effect/FileSystem' diff --git a/packages/storage-sqlite/test/sqlite-schedule-store.test.ts b/packages/storage-sqlite/test/sqlite-schedule-store.test.ts index 3eb8c2c5..5db6b37e 100644 --- a/packages/storage-sqlite/test/sqlite-schedule-store.test.ts +++ b/packages/storage-sqlite/test/sqlite-schedule-store.test.ts @@ -1,10 +1,13 @@ import * as NodeFileSystem from '@effect/platform-node/NodeFileSystem' import * as SqliteClient from '@effect/sql-sqlite-node/SqliteClient' import { describe, it } from '@effect/vitest' -import { scheduleStoreLayer } from '@yielded/agent-storage-sqlite/sqlite-schedule-store' -import { SqliteStorageConfig, SqliteStorageConfigValue } from '@yielded/agent-storage-sqlite/sqlite-storage-config' -import { SqliteStorageFailpoint } from '@yielded/agent-storage-sqlite/sqlite-storage-failpoint' -import { scheduleStoreConformanceCases } from '@yielded/agent/testing/schedule-store-conformance' +import { scheduleStoreLayer } from '@systemfsoftware/agent-storage-sqlite/sqlite-schedule-store' +import { + SqliteStorageConfig, + SqliteStorageConfigValue, +} from '@systemfsoftware/agent-storage-sqlite/sqlite-storage-config' +import { SqliteStorageFailpoint } from '@systemfsoftware/agent-storage-sqlite/sqlite-storage-failpoint' +import { scheduleStoreConformanceCases } from '@systemfsoftware/agent/testing/schedule-store-conformance' import * as Effect from 'effect/Effect' import * as FileSystem from 'effect/FileSystem' import * as Layer from 'effect/Layer' diff --git a/packages/storage-sqlite/test/sqlite-storage.test.ts b/packages/storage-sqlite/test/sqlite-storage.test.ts index d2896bda..113fad80 100644 --- a/packages/storage-sqlite/test/sqlite-storage.test.ts +++ b/packages/storage-sqlite/test/sqlite-storage.test.ts @@ -2,24 +2,27 @@ import * as NodeCrypto from '@effect/platform-node/NodeCrypto' import * as NodeFileSystem from '@effect/platform-node/NodeFileSystem' import * as SqliteClient from '@effect/sql-sqlite-node/SqliteClient' import { describe, expect, it } from '@effect/vitest' -import { SqliteStorageConfig, SqliteStorageConfigValue } from '@yielded/agent-storage-sqlite/sqlite-storage-config' +import { + SqliteStorageConfig, + SqliteStorageConfigValue, +} from '@systemfsoftware/agent-storage-sqlite/sqlite-storage-config' import { SqliteStorageCompatibilityError, SqliteStorageCorruptionError, SqliteStorageFailpointError, type SqliteStorageFailpointLocation, -} from '@yielded/agent-storage-sqlite/sqlite-storage-error' -import { SqliteStorageFailpoint } from '@yielded/agent-storage-sqlite/sqlite-storage-failpoint' +} from '@systemfsoftware/agent-storage-sqlite/sqlite-storage-error' +import { SqliteStorageFailpoint } from '@systemfsoftware/agent-storage-sqlite/sqlite-storage-failpoint' import { exclusiveHostClientLayer, exclusiveRunStorageLayer, layer, storageConfigLayer, threadStoreLayer, -} from '@yielded/agent-storage-sqlite/sqlite-thread-store' -import { digestJson } from '@yielded/agent/digest' -import { lifecyclePublicationLayer } from '@yielded/agent/lifecycle-publication' -import * as PersistentHistory from '@yielded/agent/persistent-history' +} from '@systemfsoftware/agent-storage-sqlite/sqlite-thread-store' +import { digestJson } from '@systemfsoftware/agent/digest' +import { lifecyclePublicationLayer } from '@systemfsoftware/agent/lifecycle-publication' +import * as PersistentHistory from '@systemfsoftware/agent/persistent-history' import { CanonicalBatch, CanonicalRecord, @@ -31,13 +34,18 @@ import { RunPolicyUsageReserved, RunStartedRecord, UserInputRecorded, -} from '@yielded/agent/records' -import { CurrentRunWriter, makeProgressWriter, readContinuation } from '@yielded/agent/run-continuation' -import { runIdForSubmission } from '@yielded/agent/run-journal' -import { makeRunWriter, RunStorage, type StorageOwner } from '@yielded/agent/run-storage' -import { AdmissionRequest, ClaimRequest, MarkReadyRequest, SubmissionLedger } from '@yielded/agent/submission-ledger' -import { readTestThread, threadStoreConformanceCases } from '@yielded/agent/testing/thread-store-conformance' -import { ThreadHistory } from '@yielded/agent/thread-history' +} from '@systemfsoftware/agent/records' +import { CurrentRunWriter, makeProgressWriter, readContinuation } from '@systemfsoftware/agent/run-continuation' +import { runIdForSubmission } from '@systemfsoftware/agent/run-journal' +import { makeRunWriter, RunStorage, type StorageOwner } from '@systemfsoftware/agent/run-storage' +import { + AdmissionRequest, + ClaimRequest, + MarkReadyRequest, + SubmissionLedger, +} from '@systemfsoftware/agent/submission-ledger' +import { readTestThread, threadStoreConformanceCases } from '@systemfsoftware/agent/testing/thread-store-conformance' +import { ThreadHistory } from '@systemfsoftware/agent/thread-history' import { AppendRequest, type AppendResult, @@ -50,7 +58,7 @@ import { ThreadStore, ThreadStoreError, ThreadTailRequest, -} from '@yielded/agent/thread-store' +} from '@systemfsoftware/agent/thread-store' import * as Cause from 'effect/Cause' import * as Context from 'effect/Context' import type * as CryptoDigest from 'effect/crypto/Digest' @@ -390,7 +398,7 @@ describe('SqliteThreadStore', () => { } }) - // Regression: https://github.com/yielded-dev/agent/commit/8b88036d879da7bbab88bb9918ac6f1f87f2930a + // Regression: https://github.com/systemfsoftware/agent/commit/8b88036d879da7bbab88bb9918ac6f1f87f2930a it.effect('rejects undeclared schema-header triggers before opening storage', () => withTemporaryDatabase((filename) => Effect.gen(function*() { @@ -1085,4 +1093,4 @@ describe('SqliteThreadStore', () => { ), ) }) -import { SubmissionId } from '@yielded/agent/identifiers' +import { SubmissionId } from '@systemfsoftware/agent/identifiers' diff --git a/packages/storage-sqlite/test/sqlite-subscription-store.test.ts b/packages/storage-sqlite/test/sqlite-subscription-store.test.ts index dbab82fa..0ce3671b 100644 --- a/packages/storage-sqlite/test/sqlite-subscription-store.test.ts +++ b/packages/storage-sqlite/test/sqlite-subscription-store.test.ts @@ -1,10 +1,13 @@ import * as NodeFileSystem from '@effect/platform-node/NodeFileSystem' import * as SqliteClient from '@effect/sql-sqlite-node/SqliteClient' import { describe, expect, it } from '@effect/vitest' -import { SqliteStorageConfig, SqliteStorageConfigValue } from '@yielded/agent-storage-sqlite/sqlite-storage-config' -import { SqliteStorageFailpoint } from '@yielded/agent-storage-sqlite/sqlite-storage-failpoint' -import { subscriptionStoreLayer } from '@yielded/agent-storage-sqlite/sqlite-subscription-store' -import { Digest } from '@yielded/agent/records' +import { + SqliteStorageConfig, + SqliteStorageConfigValue, +} from '@systemfsoftware/agent-storage-sqlite/sqlite-storage-config' +import { SqliteStorageFailpoint } from '@systemfsoftware/agent-storage-sqlite/sqlite-storage-failpoint' +import { subscriptionStoreLayer } from '@systemfsoftware/agent-storage-sqlite/sqlite-subscription-store' +import { Digest } from '@systemfsoftware/agent/records' import { AcceptedEvent, defaultSubscriptionLimits, @@ -12,11 +15,11 @@ import { SubscriptionFailpoint, SubscriptionFailpointError, SubscriptionStore, -} from '@yielded/agent/subscription' +} from '@systemfsoftware/agent/subscription' import { subscriptionConformancePartition, subscriptionStoreConformanceCases, -} from '@yielded/agent/testing/subscription-store-conformance' +} from '@systemfsoftware/agent/testing/subscription-store-conformance' import * as Effect from 'effect/Effect' import * as FileSystem from 'effect/FileSystem' import * as Layer from 'effect/Layer' diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 37823603..118b5826 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -214,12 +214,6 @@ importers: .: devDependencies: - '@changesets/changelog-github': - specifier: 1.0.1 - version: 1.0.1 - '@changesets/cli': - specifier: 3.0.3 - version: 3.0.3 '@commitlint/cli': specifier: ^21.2.4 version: 21.2.4(conventional-commits-parser@7.1.4)(typescript@7.0.2) @@ -235,18 +229,18 @@ importers: '@effect/tsgo': specifier: 'catalog:' version: 0.70.0 + '@systemfsoftware/agent': + specifier: workspace:* + version: link:packages/effect-agent + '@systemfsoftware/agent-storage-sql': + specifier: workspace:* + version: link:packages/storage-sql '@systemfsoftware/oxlint-config-recommended': specifier: ^8.0.3 version: 8.0.4(@effect/tsgo@0.70.0)(effect@4.1.2)(oxlint-tsgolint@7.0.2007)(oxlint@1.93.0(oxlint-tsgolint@7.0.2007))(typescript@7.0.2) '@types/node': specifier: 'catalog:' version: 26.1.2 - '@yielded/agent': - specifier: workspace:* - version: link:packages/effect-agent - '@yielded/agent-storage-sql': - specifier: workspace:* - version: link:packages/storage-sql dprint: specifier: 'catalog:' version: 0.65.0 @@ -317,10 +311,10 @@ importers: '@effect/sql-sqlite-node': specifier: 'catalog:' version: 4.1.2(effect@4.1.2) - '@yielded/agent': + '@systemfsoftware/agent': specifier: workspace:* version: link:../effect-agent - '@yielded/agent-storage-sqlite': + '@systemfsoftware/agent-storage-sqlite': specifier: workspace:* version: link:../storage-sqlite devDependencies: @@ -345,7 +339,7 @@ importers: packages/storage-sql: dependencies: - '@yielded/agent': + '@systemfsoftware/agent': specifier: workspace:* version: link:../effect-agent devDependencies: @@ -376,10 +370,10 @@ importers: '@effect/sql-sqlite-node': specifier: 'catalog:' version: 4.1.2(effect@4.1.2) - '@yielded/agent': + '@systemfsoftware/agent': specifier: workspace:* version: link:../effect-agent - '@yielded/agent-storage-sql': + '@systemfsoftware/agent-storage-sql': specifier: workspace:* version: link:../storage-sql devDependencies: @@ -440,83 +434,6 @@ packages: '@braidai/lang@1.1.2': resolution: {integrity: sha512-qBcknbBufNHlui137Hft8xauQMTZDKdophmLFv05r2eNmdIv/MlPuP4TdUknHG68UdWLgVZwgxVe735HzJNIwA==} - '@changesets/apply-release-plan@8.1.1': - resolution: {integrity: sha512-nk2Hbq3M9NeHMdaIRBDvawKrQJzXB9sGyBUE5yWnIKtvdcNCPj75zBekJYr0gTT2ecJH3eFeTrc8eisPImcv0Q==} - engines: {node: ^22.11 || ^24 || >=26} - - '@changesets/assemble-release-plan@7.0.0': - resolution: {integrity: sha512-oEW8BxdA604kGGtDSCiHr5w9Tv4UWe9I2k61IBNZzCOE1kbYaJj4v+lFQNgcEZFkUc2pV/+hASErGDvpJOZCTg==} - engines: {node: ^22.11 || ^24 || >=26} - - '@changesets/changelog-git@1.0.0': - resolution: {integrity: sha512-3Dst2Ime2Op5nd4XmWJLPIgp11ZFqJqSkVug9izK6TDcIV4YlhPS4ECbEVR+eGI0bk0r1ItogD4j2Oli87bJrA==} - engines: {node: ^22.11 || ^24 || >=26} - - '@changesets/changelog-github@1.0.1': - resolution: {integrity: sha512-QUcrV7878yHlWPXXPA6gqSxNKwtVHCd1K22L7ZAoJw2yGy8K4QvjwOStD75+1Q9KD9ZSUgGS94HuYdd7HOVtpA==} - engines: {node: ^22.11 || ^24 || >=26} - - '@changesets/cli@3.0.3': - resolution: {integrity: sha512-L1i67bMfkK6iC/kDejuNO4pFgTRcWIObsD6Qof2woP1I4M8tj17DGlcpRaTzTv1DYSP5EMwWdEtR8X0Pj5Jg3Q==} - engines: {node: ^22.11 || ^24 || >=26, npm: '>=10.9.0', pnpm: '>=10.0.0', yarn: '>=4.5.2'} - hasBin: true - - '@changesets/config@4.0.1': - resolution: {integrity: sha512-PxpxSQLQSLDjceAgRq+4FWlU+HflDIw03mmPVipxoQx9xrXFUjmqTy3SE+n/2t+DqPdpPiLWVr5NRiLZvjyLwg==} - engines: {node: ^22.11 || ^24 || >=26} - - '@changesets/errors@1.0.0': - resolution: {integrity: sha512-ElN/mEzn6zmETgjwf5MclCMa9ef59sAR0lfO8VSYIsiRvbC2FbLB/92EoYw10Sl0kGixxHFiJZUSv7dA+YpR8g==} - engines: {node: ^22.11 || ^24 || >=26} - - '@changesets/format@0.1.3': - resolution: {integrity: sha512-zTZrJbfY81+/MsXsey6i3jQjpApz4PqRQ+nouHGDJhCa5sKCExwR9mZFQ/67lMsqZDNy2G2v3wTbzOmZ56EtaQ==} - engines: {node: ^22.11 || ^24 || >=26} - - '@changesets/get-dependents-graph@3.0.0': - resolution: {integrity: sha512-ji/t5wFA1zREKXRUePE6Qi+Qu2UgxCeSSGQrphezwvQZrp49B7sJ+8+wvM0tA7zPeSxYKCojDy3WWgrl+s+awg==} - engines: {node: ^22.11 || ^24 || >=26} - - '@changesets/get-github-info@1.0.1': - resolution: {integrity: sha512-ifLQCky/ZtDgZ4xCiUMjnLZSJ8xk52iIzMJbBBPlZWjr2CiTNTaTDddIVWKicrUAdWuLWL7PUw2fNa1yPwLpIg==} - engines: {node: ^22.11 || ^24 || >=26} - - '@changesets/git@4.0.1': - resolution: {integrity: sha512-6vWpIAC4LkpmlqaIu37ViT5enyd9+uBwAiGqCGhASvkSHBgx4PrtTGXWTMFYpDmZbjgyonyVgMciPrW4MqtJsA==} - engines: {node: ^22.11 || ^24 || >=26} - - '@changesets/parse@1.0.0': - resolution: {integrity: sha512-P0iaMb9p9CRYZiTgAllEIF9AUMQHIy1G72tKlcIqJp61icZSsKQNiOPdxAMZG8m/DvZwt/oz5xEbTpike//dWg==} - engines: {node: ^22.11 || ^24 || >=26} - - '@changesets/pre@3.0.0': - resolution: {integrity: sha512-Zm/6YliV/a2oeWTqHJf6KxLrQwgcK1i/BRDl2m0EKZvbnxV5fG9QRhwJJGshjsZTUTS6dkfURQ2K6aAvgNw/3Q==} - engines: {node: ^22.11 || ^24 || >=26} - - '@changesets/read@1.0.1': - resolution: {integrity: sha512-nzvSC6RcTiWf/dsuwZFXpLzGGsRHYCL68U3uHV7srsulU93aVWY7u2GEJiDZ+4GIIElfaW5EqtKC0UHroY+LTQ==} - engines: {node: ^22.11 || ^24 || >=26} - - '@changesets/should-skip-package@1.0.0': - resolution: {integrity: sha512-pwqoJmbONn1XgXmZXPEExgAaT+HdZLjALFTDgIm+PnS5KeO2nLtzA2/Q+4aMFY14kFMuXKG30MObhvDzWgzDgg==} - engines: {node: ^22.11 || ^24 || >=26} - - '@changesets/types@7.0.0': - resolution: {integrity: sha512-c5GoiQyt3pxiXjrWSNoP8/GRf4kG+VnKzovx1OQM8dYYALlSwgedmkPmJ+ZqGxqwg9D3Bkj85Uo4KLd5BN3A0w==} - engines: {node: ^22.11 || ^24 || >=26} - - '@changesets/write@1.0.1': - resolution: {integrity: sha512-q/ThtP9gcnEP6xlv7LrY26C2mHqdGBti/MmOVngt/M/oIGYkssmQGxPK9WzBNt2juVcH/vml2WQ+ra8LXYOTaA==} - engines: {node: ^22.11 || ^24 || >=26} - - '@clack/core@1.6.0': - resolution: {integrity: sha512-4GZynIB2IIe431odxesswvWTCP6orvqd6e2b07b3VFWBQRqUqIHc/EPIZwFoKS692QBp+ooPuXKaJV8g4kXuYA==} - engines: {node: '>= 20.12.0'} - - '@clack/prompts@1.9.0': - resolution: {integrity: sha512-tEj8X2No2A1c9NDnZECxiiJ8TP3vmFlN9tLlLeSaMqVW4tUmVG2R4qpv/eP4zymWxnymYLkLcIYVV0VcWj3RCQ==} - engines: {node: '>= 20.12.0'} - '@colors/colors@1.5.0': resolution: {integrity: sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==} engines: {node: '>=0.1.90'} @@ -963,18 +880,6 @@ packages: '@loaderkit/resolve@1.0.6': resolution: {integrity: sha512-G8FdIoF5CypfwmD9rl8BXod5HDn8JqB0CCNBXDTaRZ+yRYhARrrSToX1zg1zy9jX3zLqigsELwhT4gNtkdQAUg==} - '@manypkg/find-root@3.1.0': - resolution: {integrity: sha512-BcSqCyKhBVZ5YkSzOiheMCV41kqAFptW6xGqYSTjkVTl9XQpr+pqHhwgGCOHQtjDCv7Is6EFyA14Sm5GVbVABA==} - engines: {node: '>=20.0.0'} - - '@manypkg/get-packages@3.1.0': - resolution: {integrity: sha512-0TbBVyvPrP7xGYBI/cP8UP+yl/z+HtbTttAD7FMAJgn/kXOTwh5/60TsqP9ZYY710forNfyV0N8P/IE/ujGZJg==} - engines: {node: '>=20.0.0'} - - '@manypkg/tools@2.1.2': - resolution: {integrity: sha512-6QEf6yqFbETdwGITKq57aYoPfX/3K8XFNwsAlx0C1M7o8cb79sv1M3w+tWuWvIcSbNqrLF7OD7YpZMVVz335hQ==} - engines: {node: '>=20.0.0'} - '@napi-rs/wasm-runtime@1.2.6': resolution: {integrity: sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw==} engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} @@ -1304,10 +1209,6 @@ packages: resolution: {integrity: sha512-KbIWS6Qc63eCl0lj/RSIiTGo8dy+0UYf/4dE0xSgTNgrLpszq0IalXtZvmnS2GQ0iWYRLaHu6Tj0Otc3lEhdww==} engines: {node: '>=22.13'} - '@pnpm/deps.graph-sequencer@1100.0.1': - resolution: {integrity: sha512-pOr5+q1fLYKwFN3LAJuGZEnfXDcQ73zqgDHMtGy+K+uIoUqyY+6MeDCWFwfu+4EFuq76I5EPFofoNAI+Bmmq4A==} - engines: {node: '>=22.13'} - '@pnpm/deps.path@1101.0.10': resolution: {integrity: sha512-F+wo9AxgqvNOzbXz6ylr9gRLWen5KROtiDIPTcXFQRaGwnvtTuHoIZ+DW6RLPlPtO53uHXs6CuLEk7PYS24QAg==} engines: {node: '>=22.13'} @@ -2154,9 +2055,6 @@ packages: resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} engines: {node: '>= 8'} - dataloader@2.2.3: - resolution: {integrity: sha512-y2krtASINtPFS1rSDjacrFgn1dcUuoREVabwlOGOe4SdxenREqwjwjElAdwvbGM7kgZz9a3KVicWR7vcz8rnzA==} - defu@6.1.7: resolution: {integrity: sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==} @@ -2247,18 +2145,9 @@ packages: fast-safe-stringify@2.1.1: resolution: {integrity: sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==} - fast-string-truncated-width@3.0.3: - resolution: {integrity: sha512-0jjjIEL6+0jag3l2XWWizO64/aZVtpiGE3t0Zgqxv0DPuxiMjvB3M24fCyhZUO4KomJQPj3LTSUnDP3GpdwC0g==} - - fast-string-width@3.0.2: - resolution: {integrity: sha512-gX8LrtNEI5hq8DVUfRQMbr5lpaS4nMIWV+7XEbXk2b8kiQIizgnlr12B4dA3ZEx3308ze0O4Q1R+cHts8kyUJg==} - fast-uri@3.1.9: resolution: {integrity: sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==} - fast-wrap-ansi@0.2.2: - resolution: {integrity: sha512-7F2Fl+TjRSenLqlU3UjSH0iyqopqoZIu7eZVpEirP2g1GtWa2G/ecEmBdgz31+Mxr+ELclgg6sokpSFIQiZ02Q==} - fdir@6.5.0: resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} engines: {node: '>=12.0.0'} @@ -2317,10 +2206,6 @@ packages: hookable@6.1.2: resolution: {integrity: sha512-+abwxtiEA52GCVIsQqut3S/uKTbUwYIp4Pe/vv+6py5XiXBCqMZHg6pA6Y5qhgLSEys0/cYuPbO0z1QFj5ZCmg==} - human-id@4.2.2: - resolution: {integrity: sha512-Z+8unD6em/MJwyrkWQ2M3wygRGI1+MztbutiNwk1DCuEPXOZRWGjtcMPZYP1exY9iNZMhd7ZOSMQSo9WYtiQRw==} - hasBin: true - human-signals@8.0.1: resolution: {integrity: sha512-eKCa6bwnJhvxj14kZk5NCPc6Hb6BdsU9DZcOnmQKSnO1VKrfV0zCvtttPZUsBvjmNDn8rpcJfpwSYnHBjc95MQ==} engines: {node: '>=18.18.0'} @@ -2334,9 +2219,6 @@ packages: resolution: {integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==} engines: {node: '>=6'} - import-meta-resolve@4.2.0: - resolution: {integrity: sha512-Iqv2fzaTQN28s/FwZAoFq0ZSs/7hMAHJVX+w8PZl3cY19Pxk6jFFalxQoIfW2826i/fDLXv8IiEZRIT0lDuWcg==} - import-without-cache@0.4.1: resolution: {integrity: sha512-vXoV9PjKHEednCUu01e98TkImxy67e3BJXbTIOmIq4Hyzw3IAwYRcuPkfeTzJzwyyts4kjuA73x+pWJLc4f86A==} engines: {node: ^22.18.0 || >=24.0.0} @@ -2386,9 +2268,6 @@ packages: resolution: {integrity: sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==} hasBin: true - jju@1.4.0: - resolution: {integrity: sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==} - js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} @@ -2407,12 +2286,6 @@ packages: engines: {node: '>=6'} hasBin: true - jsonc-parser@3.3.1: - resolution: {integrity: sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==} - - launch-editor@2.14.2: - resolution: {integrity: sha512-NHJEb30MGBCkmZXLZwz25t37QR4aY03ZzPYUJXOJaOa92uWwExI9SBQUuIznBYc1xkD7cJNGX7oc3Nl3sq2kQQ==} - lightningcss-android-arm64@1.33.0: resolution: {integrity: sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==} engines: {node: '>= 12.0.0'} @@ -2599,9 +2472,6 @@ packages: resolution: {integrity: sha512-6Lh3jQPLthYujSrlw6ccWXBGZTkoTCz27Hd92g79LH/kjAbgoEu0t442cCCNbegPSJsA0lwDX8z0bcKtkpA32g==} engines: {node: '>=18'} - package-manager-detector@1.9.0: - resolution: {integrity: sha512-zAMfbta9nPA8AKkA4WdmNAT8R8s6Dk0/xwPsqNnRidMFcLo1YkLuPDTgs2f64XdzS8vbLNnoJ+uUIkgbz7oRHA==} - parent-module@1.0.1: resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} engines: {node: '>=6'} @@ -2742,18 +2612,10 @@ packages: resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} engines: {node: '>=8'} - shell-quote@1.12.0: - resolution: {integrity: sha512-PcByqNyT/38F2kDNi006HAMRJaULuBzq/FOsw3qdZvX/GA9W/jamDaRskgHjubHiftXK5sIFxLNkvrXUwcof6Q==} - engines: {node: '>= 0.4'} - signal-exit@4.1.0: resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} engines: {node: '>=14'} - sisteransi@2.0.0: - resolution: {integrity: sha512-2WCqLdt12eN6ehLI50S2/ZxoowXU3DD1KVPRyVP0WEsFahrGZZmCdq1K59qjJljMRIDTwx1D9YaRK+hDneBUMg==} - engines: {node: '>=20'} - skin-tone@2.0.0: resolution: {integrity: sha512-kUMbT1oBJCpgrnKoSr0o6wPtvRWT9W9UKvGLwfJYO2WuahZRHOpEyL1ckyMGgMWh0UdpmaoFqKKD29WTomNEGA==} engines: {node: '>=8'} @@ -3138,132 +3000,6 @@ snapshots: '@braidai/lang@1.1.2': {} - '@changesets/apply-release-plan@8.1.1': - dependencies: - '@changesets/config': 4.0.1 - '@changesets/format': 0.1.3 - '@changesets/git': 4.0.1 - '@changesets/should-skip-package': 1.0.0 - '@changesets/types': 7.0.0 - import-meta-resolve: 4.2.0 - jsonc-parser: 3.3.1 - semver: 7.8.6 - - '@changesets/assemble-release-plan@7.0.0': - dependencies: - '@changesets/errors': 1.0.0 - '@changesets/get-dependents-graph': 3.0.0 - '@changesets/should-skip-package': 1.0.0 - '@changesets/types': 7.0.0 - semver: 7.8.6 - - '@changesets/changelog-git@1.0.0': - dependencies: - '@changesets/types': 7.0.0 - - '@changesets/changelog-github@1.0.1': - dependencies: - '@changesets/get-github-info': 1.0.1 - '@changesets/types': 7.0.0 - - '@changesets/cli@3.0.3': - dependencies: - '@changesets/apply-release-plan': 8.1.1 - '@changesets/assemble-release-plan': 7.0.0 - '@changesets/changelog-git': 1.0.0 - '@changesets/config': 4.0.1 - '@changesets/errors': 1.0.0 - '@changesets/get-dependents-graph': 3.0.0 - '@changesets/git': 4.0.1 - '@changesets/pre': 3.0.0 - '@changesets/read': 1.0.1 - '@changesets/should-skip-package': 1.0.0 - '@changesets/types': 7.0.0 - '@changesets/write': 1.0.1 - '@clack/prompts': 1.9.0 - '@manypkg/get-packages': 3.1.0 - '@pnpm/deps.graph-sequencer': 1100.0.1 - cac: 7.1.1 - import-meta-resolve: 4.2.0 - launch-editor: 2.14.2 - package-manager-detector: 1.9.0 - semver: 7.8.6 - tinyexec: 1.3.1 - - '@changesets/config@4.0.1': - dependencies: - '@changesets/get-dependents-graph': 3.0.0 - '@changesets/should-skip-package': 1.0.0 - '@changesets/types': 7.0.0 - '@manypkg/get-packages': 3.1.0 - picomatch: 4.0.7 - - '@changesets/errors@1.0.0': {} - - '@changesets/format@0.1.3': - dependencies: - package-manager-detector: 1.9.0 - tinyexec: 1.3.1 - - '@changesets/get-dependents-graph@3.0.0': - dependencies: - '@changesets/types': 7.0.0 - semver: 7.8.6 - - '@changesets/get-github-info@1.0.1': - dependencies: - dataloader: 2.2.3 - - '@changesets/git@4.0.1': - dependencies: - '@changesets/errors': 1.0.0 - '@changesets/types': 7.0.0 - '@manypkg/get-packages': 3.1.0 - picomatch: 4.0.7 - tinyexec: 1.3.1 - - '@changesets/parse@1.0.0': - dependencies: - '@changesets/types': 7.0.0 - yaml: 2.9.1 - - '@changesets/pre@3.0.0': - dependencies: - '@changesets/errors': 1.0.0 - '@changesets/types': 7.0.0 - '@manypkg/get-packages': 3.1.0 - - '@changesets/read@1.0.1': - dependencies: - '@changesets/git': 4.0.1 - '@changesets/parse': 1.0.0 - '@changesets/types': 7.0.0 - - '@changesets/should-skip-package@1.0.0': - dependencies: - '@changesets/types': 7.0.0 - - '@changesets/types@7.0.0': {} - - '@changesets/write@1.0.1': - dependencies: - '@changesets/format': 0.1.3 - '@changesets/types': 7.0.0 - human-id: 4.2.2 - - '@clack/core@1.6.0': - dependencies: - fast-string-width: 3.0.2 - fast-wrap-ansi: 0.2.2 - sisteransi: 2.0.0 - - '@clack/prompts@1.9.0': - dependencies: - '@clack/core': 1.6.0 - fast-string-width: 3.0.2 - fast-wrap-ansi: 0.2.2 - sisteransi: 2.0.0 - '@colors/colors@1.5.0': optional: true @@ -3615,21 +3351,6 @@ snapshots: dependencies: '@braidai/lang': 1.1.2 - '@manypkg/find-root@3.1.0': - dependencies: - '@manypkg/tools': 2.1.2 - - '@manypkg/get-packages@3.1.0': - dependencies: - '@manypkg/find-root': 3.1.0 - '@manypkg/tools': 2.1.2 - - '@manypkg/tools@2.1.2': - dependencies: - jju: 1.4.0 - tinyglobby: 0.2.17 - yaml: 2.9.1 - '@napi-rs/wasm-runtime@1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2)': dependencies: '@emnapi/core': 2.0.0-beta.2 @@ -3829,8 +3550,6 @@ snapshots: '@pnpm/fs.graceful-fs': 1100.2.6 ssri: 13.0.1 - '@pnpm/deps.graph-sequencer@1100.0.1': {} - '@pnpm/deps.path@1101.0.10': dependencies: '@pnpm/crypto.hash': 1100.0.9 @@ -4582,8 +4301,6 @@ snapshots: shebang-command: 2.0.0 which: 2.0.2 - dataloader@2.2.3: {} - defu@6.1.7: {} detect-indent@7.0.2: {} @@ -4698,18 +4415,8 @@ snapshots: fast-safe-stringify@2.1.1: {} - fast-string-truncated-width@3.0.3: {} - - fast-string-width@3.0.2: - dependencies: - fast-string-truncated-width: 3.0.3 - fast-uri@3.1.9: {} - fast-wrap-ansi@0.2.2: - dependencies: - fast-string-width: 3.0.2 - fdir@6.5.0(picomatch@4.0.7): optionalDependencies: picomatch: 4.0.7 @@ -4752,8 +4459,6 @@ snapshots: hookable@6.1.2: {} - human-id@4.2.2: {} - human-signals@8.0.1: {} image-dimensions@2.6.0: {} @@ -4763,8 +4468,6 @@ snapshots: parent-module: 1.0.1 resolve-from: 4.0.0 - import-meta-resolve@4.2.0: {} - import-without-cache@0.4.1: {} index-to-position@1.2.0: {} @@ -4791,8 +4494,6 @@ snapshots: jiti@2.7.0: {} - jju@1.4.0: {} - js-tokens@4.0.0: {} js-yaml@4.3.2: @@ -4805,13 +4506,6 @@ snapshots: json5@2.2.3: {} - jsonc-parser@3.3.1: {} - - launch-editor@2.14.2: - dependencies: - picocolors: 1.1.1 - shell-quote: 1.12.0 - lightningcss-android-arm64@1.33.0: optional: true @@ -4996,8 +4690,6 @@ snapshots: p-map@7.1.1: {} - package-manager-detector@1.9.0: {} - parent-module@1.0.1: dependencies: callsites: 3.1.0 @@ -5153,12 +4845,8 @@ snapshots: shebang-regex@3.0.0: {} - shell-quote@1.12.0: {} - signal-exit@4.1.0: {} - sisteransi@2.0.0: {} - skin-tone@2.0.0: dependencies: unicode-emoji-modifier-base: 1.0.0 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index ccab3773..4966e7c2 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -36,3 +36,6 @@ overrides: "@effect/vitest": "catalog:" effect: "catalog:" vitest: "catalog:" +versioning: + changelog: + storage: repository diff --git a/release.jsonc b/release.jsonc new file mode 100644 index 00000000..b45cfe74 --- /dev/null +++ b/release.jsonc @@ -0,0 +1,14 @@ +{ + // Read by systemfsoftware/pnpm-release-management's release tools, which the + // reusable workflows in .github/workflows/ run. Each package is versioned + // through its change intents, tagged @vX.Y.Z, released on GitHub and + // published to npm through trusted publishing. + "base": "main", + "branch": "changeset-release/main", + "versioning": { + "strategy": "changesets", + }, + // The paths gate classifies a change by the member directory it touches; this + // repository has no root Turbo config. + "gate": { "strategy": "paths" }, +} diff --git a/scripts/verify-package-exports.ts b/scripts/verify-package-exports.ts index f03a9cae..78e7b7d3 100644 --- a/scripts/verify-package-exports.ts +++ b/scripts/verify-package-exports.ts @@ -429,7 +429,7 @@ export const verifyPackageExports = Effect.fn('verifyPackageExports')( } }) for (const { specifier, typeOnly } of imports) { - const layer = pkg.manifest.name === '@yielded/agent' && relative.startsWith('src/') + const layer = pkg.manifest.name === '@systemfsoftware/agent' && relative.startsWith('src/') ? relative.split('/')[1] : undefined @@ -480,9 +480,9 @@ export const verifyPackageExports = Effect.fn('verifyPackageExports')( if (!owner) { if ( - specifier.startsWith('@yielded/agent-') || - specifier === '@yielded/agent' || - specifier.startsWith('@yielded/agent/') + specifier.startsWith('@systemfsoftware/agent-') || + specifier === '@systemfsoftware/agent' || + specifier.startsWith('@systemfsoftware/agent/') ) { report(file, `${specifier} references an unknown workspace package`) } diff --git a/scripts/verify-package-purity.ts b/scripts/verify-package-purity.ts index afb6f49a..937e427f 100644 --- a/scripts/verify-package-purity.ts +++ b/scripts/verify-package-purity.ts @@ -96,9 +96,9 @@ const testOnlyModuleReason = (sourcePath: string): string | undefined => { } const isWorkspaceImport = (specifier: string): boolean => - specifier === '@yielded/agent' || - specifier.startsWith('@yielded/agent/') || - specifier.startsWith('@yielded/agent-') + specifier === '@systemfsoftware/agent' || + specifier.startsWith('@systemfsoftware/agent/') || + specifier.startsWith('@systemfsoftware/agent-') const displayNameFor = (packageName: string, exportPath: string): string => exportPath === '.' ? packageName : `${packageName}${exportPath.slice(1)}` diff --git a/test/fixtures/ledger-read-contracts.ts b/test/fixtures/ledger-read-contracts.ts index 58d68cab..bfb9802a 100644 --- a/test/fixtures/ledger-read-contracts.ts +++ b/test/fixtures/ledger-read-contracts.ts @@ -1,5 +1,5 @@ -import { makeCanonicalStorage } from '@yielded/agent-storage-sql/sql-canonical-storage' -import type { SubmissionId } from '@yielded/agent/identifiers' +import { makeCanonicalStorage } from '@systemfsoftware/agent-storage-sql/sql-canonical-storage' +import type { SubmissionId } from '@systemfsoftware/agent/identifiers' import { CanonicalBatch, DefinitionDigests, @@ -9,14 +9,14 @@ import { RecordEnvelope, type SettlementOutcome, SubmissionSettledRecord, -} from '@yielded/agent/records' -import { runIdForSubmission } from '@yielded/agent/run-journal' -import { layer as runStorageLayer, RunStorage } from '@yielded/agent/run-storage' +} from '@systemfsoftware/agent/records' +import { runIdForSubmission } from '@systemfsoftware/agent/run-journal' +import { layer as runStorageLayer, RunStorage } from '@systemfsoftware/agent/run-storage' import { SettlementPublication, type SettlementPublicationAuthority, SettlementPublisher, -} from '@yielded/agent/settlement-publisher' +} from '@systemfsoftware/agent/settlement-publisher' import { AbortCommand, AdmissionRequest, @@ -31,8 +31,13 @@ import { submissionSettlementId, submissionSettlementRecordId, type SubmissionSnapshot, -} from '@yielded/agent/submission-ledger' -import { AppendRequest, ThreadMaterialization, ThreadStore, ThreadTailRequest } from '@yielded/agent/thread-store' +} from '@systemfsoftware/agent/submission-ledger' +import { + AppendRequest, + ThreadMaterialization, + ThreadStore, + ThreadTailRequest, +} from '@systemfsoftware/agent/thread-store' import { Cause, DateTime, Effect, Exit, Option, Schema, Stream } from 'effect' import * as SqlClient from 'effect/sql/SqlClient' import { CurrentTransformer } from 'effect/sql/Statement'