feat: sync SDK with upstream v1.0.9 - #162
Merged
Merged
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Syncs this Clojure port to the upstream github/copilot-sdk v1.0.9 API surface (plus post-release mainline changes), bumping the library to 1.0.9.0 and updating the pinned runtime schema to 1.0.79-6. The main functional addition in the shown diff is the experimental Agent Factories surface plus protocol handling to preserve opaque factory payloads across the JSON-RPC boundary, along with corresponding docs/examples/test updates.
Changes:
- Adds an experimental Agent Factories namespace (
github.copilot-sdk.factory) and exposes it via the top-level public API. - Updates JSON-RPC protocol normalization + outgoing request encoding to preserve method-specific opaque fields (factories and SQLite transactions).
- Updates tests, docs, examples, schema pin, and release metadata for the v1.0.9.0 sync.
Show a summary per file
| File | Description |
|---|---|
| test/github/copilot_sdk/mock_server.clj | Extends mock RPC coverage for history.clearContext and factory-related session methods. |
| test/github/copilot_sdk/codegen_test.clj | Adds new event fixtures for session.context_cleared, compaction events, and factory.run_updated. |
| src/github/copilot_sdk/tools.clj | Adds :is-terminal? tool definition support (terminal tools end the turn on success). |
| src/github/copilot_sdk/protocol.clj | Preserves opaque factory/SQLite payloads by normalizing responses with method context and adding outgoing “opaque field” escape hatches. |
| src/github/copilot_sdk/instrument.clj | Registers spec instrumentation for new/updated public API (history clear-context, SQLite transaction failures, factory API). |
| src/github/copilot_sdk/factory.clj | New experimental Agent Factories API: definition, validation, run/resume/wait/list/detail/progress/cancel, plus async variants. |
| src/github/copilot_sdk.clj | Re-exports new experimental APIs (factories, context clearing, SQLite transaction helpers) and adds new curated events. |
| script/validate_docs.clj | Recognizes github.copilot-sdk.factory as a public namespace for doc validation. |
| schemas/README.md | Updates the documented pinned schema package version. |
| README.md | Highlights Agent Factories and enterprise policy options; bumps dependency version to 1.0.9.0; adds :factory permission kind mention. |
| examples/README.md | Documents new Agent Factories example and notes it runs manually (requires parent CLI session). |
| examples/agent_factories.clj | Adds an extension-style example that registers a factory via join-session and services reverse-RPC runs. |
| doc/mcp/overview.md | Documents disabling MCP servers and built-in GitHub MCP tool configuration options. |
| doc/index.md | Adds Agent Factories to the documentation index and feature list. |
| doc/getting-started.md | Bumps version and points to new v1.0.9 options and Agent Factories guide. |
| doc/api/upstream-doc-gap-matrix.html | Regenerated Codox HTML output reflecting updated docs/topic navigation (includes Agent Factories). |
| doc/api/style.html | Regenerated Codox HTML output reflecting updated docs/topic navigation (includes Agent Factories). |
| doc/api/index.html | Regenerated Codox HTML output reflecting updated docs/topic navigation (includes Agent Factories). |
| doc/api/github.copilot-sdk.tool-set.html | Regenerated Codox HTML output reflecting updated docs/topic navigation (includes Agent Factories). |
| doc/api/github.copilot-sdk.specs.html | Regenerated Codox HTML output reflecting updated docs/topic navigation (includes Agent Factories). |
| doc/api/github.copilot-sdk.protocol.html | Regenerated Codox HTML output reflecting updated docs/topic navigation (includes Agent Factories). |
| doc/api/github.copilot-sdk.logging.html | Regenerated Codox HTML output reflecting updated docs/topic navigation (includes Agent Factories). |
| doc/api/github.copilot-sdk.instrument.html | Regenerated Codox HTML output reflecting updated docs/topic navigation (includes Agent Factories). |
| doc/api/github.copilot-sdk.helpers.html | Regenerated Codox HTML output reflecting updated docs/topic navigation (includes Agent Factories). |
| doc/api/github.copilot-sdk.generated.event-specs.html | Regenerated Codox HTML output reflecting updated docs/topic navigation (includes Agent Factories). |
| doc/api/getting-started.html | Regenerated Codox HTML output reflecting updated version and navigation (includes Agent Factories). |
| doc/api/debugging.html | Regenerated Codox HTML output reflecting updated docs/topic navigation (includes Agent Factories). |
| doc/api/custom-agents.html | Regenerated Codox HTML output reflecting updated docs/topic navigation (includes Agent Factories). |
| doc/api/codegen.html | Regenerated Codox HTML output reflecting updated docs/topic navigation (includes Agent Factories). |
| doc/api/byok.html | Regenerated Codox HTML output reflecting updated docs/topic navigation (includes Agent Factories). |
| doc/api/azure-managed-identity.html | Regenerated Codox HTML output reflecting updated docs/topic navigation (includes Agent Factories). |
| deps.edn | Sets an :exec-fn for the :examples alias (Agent Factories example entrypoint). |
| CHANGELOG.md | Adds detailed v1.0.9 sync + post-sync entries covering factories, MCP options, history clear-context, schema regen, etc. |
| build.clj | Bumps project version to 1.0.9.0. |
| .copilot-schema-version | Updates pinned runtime schema package version to 1.0.79-6. |
Review details
- Files reviewed: 53/56 changed files
- Comments generated: 0
- Review effort level: Lite
krukow
marked this pull request as ready for review
August 7, 2026 21:17
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3049f599-cb12-49b8-a1bb-609af27a5f9e
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sync the Clojure SDK to the official Node SDK v1.0.9 surface plus the current post-release changes on
github/copilot-sdkmain. This advances the Clojure release to1.0.9.0and pins the runtime schema at1.0.79-6.Highlights
userPromptTransformed, terminal tools, SQLite transactions, andhistory.clearContext.session.context_clearedandfactory.run_updated.Design notes
Validation
bb ci: 437 tests / 2,533 assertions, documentation validation, and the1.0.9.0JAR build pass.bb ci:fullcould not run because the locally installed Copilot CLI exits withno platform package found; real-CLI E2E tests and executable examples remain to be rerun after reinstalling the CLI platform package.Review assessment
:resume-from-run-idshould usesession.factory.runFollow-up
The sync-skill references should add upstream
factory.ts/extension.tsand Clojurefactory.clj;AGENTS.mdshould list the new namespace. Those workflow-document edits are intentionally left for maintainer approval per the skill self-review policy.