Skip to content

Commit 508247d

Browse files
Update SDK snapshot for Copilot CLI 1.0.98-0
1 parent 9782624 commit 508247d

80 files changed

Lines changed: 3750 additions & 243 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/sdk-nodejs.yml‎

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Invoked by sdk.yml to run Node.js SDK builds, tests, packaging checks,
22
# documentation validation, full subprocess coverage, and focused in-process
3-
# smoke coverage on standard platforms and x64 musl.
3+
# smoke coverage on standard platforms and x64 musl, plus full in-process E2Es on Linux.
44
name: "SDK Node.js"
55

66
env:
@@ -121,6 +121,42 @@ jobs:
121121
npm run extract
122122
npm run validate:ts
123123
124+
# Keep full in-process coverage separate from the required CAPI result.
125+
nodejs-inprocess:
126+
name: "Node.js (ubuntu-26.04-4core-agent-runtime, in-process, CAPI)"
127+
if: github.event_name != 'merge_group' && (inputs.platform == 'all' || inputs.platform == 'linux-x64')
128+
runs-on: ubuntu-26.04-4core-agent-runtime
129+
defaults:
130+
run:
131+
shell: bash
132+
working-directory: ${{ inputs.sdk-home }}/nodejs
133+
env:
134+
COPILOT_SDK_DEFAULT_CONNECTION: inprocess
135+
VITEST_MAX_WORKERS: 4
136+
steps:
137+
- uses: actions/checkout@v7
138+
with:
139+
persist-credentials: false
140+
- uses: ./.github/actions/download-sdk-runtime
141+
with:
142+
artifact-name: executable-sdk-Linux-X64-gnu
143+
path: ${{ github.workspace }}
144+
- run: node "$SDK_HOME/scripts/ci/runtime-artifact.mjs" restore && node "$SDK_HOME/scripts/ci/runtime-artifact.mjs" prepare
145+
working-directory: .
146+
- uses: actions/setup-node@v6
147+
with:
148+
node-version: 22
149+
cache: npm
150+
cache-dependency-path: ${{ inputs.sdk-home }}/nodejs/package-lock.json
151+
- run: npm ci --ignore-scripts
152+
- run: npm run build
153+
- run: npm ci --ignore-scripts
154+
working-directory: ${{ inputs.sdk-home }}/test/harness
155+
- name: Test in-process E2Es
156+
env:
157+
COPILOT_HMAC_KEY: ${{ secrets.COPILOT_DEVELOPER_CLI_INTEGRATION_HMAC_KEY }}
158+
run: npm test -- test/e2e
159+
124160
# Keep each BYOK backend on its own runner; shared runtime E2E coverage belongs
125161
# in TypeScript rather than repeating these sweeps across SDK languages.
126162
nodejs-backends:

‎CONTRIBUTING.md‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -363,11 +363,10 @@ fails the job. Java uses JDK 25 on these platforms,
363363
plus a Linux/glibc JDK 17 compatibility job using precompiled classes.
364364
Merge groups retain the reduced Linux TypeScript CAPI subprocess coverage.
365365

366-
The `sdk-typescript` required rollup checks only the Linux CAPI job, including
367-
its build, packaging, and applicable static checks. Other platforms, BYOK
368-
backends, and languages keep their existing scheduling and failure reporting;
369-
they do not gate this rollup. The full `SDK` aggregate still requires all
370-
scheduled coverage to succeed.
366+
`sdk-typescript` gates only the Linux CAPI subprocess job's build, packaging,
367+
tests, and static checks. Full TypeScript in-process E2Es run on Linux/glibc x64
368+
outside merge groups. They, other platforms, BYOK backends, and languages do not
369+
gate this rollup; the full `SDK` aggregate requires all scheduled coverage to succeed.
371370

372371
The three BYOK backend sweeps run in separate Linux TypeScript jobs, alongside
373372
the normal CAPI job; they do not repeat unit tests, packaging, or static

‎dotnet/README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ Create a new conversation session.
229229
- `InfiniteSessions` - Configure automatic context compaction (see below)
230230
- `WorkingDirectory` - Working directory for the session. When not set, the runtime uses its own process working directory.
231231
- `EnableSessionStore` - Enables the cross-session store for search and retrieval across sessions. When unset in `CopilotClientMode.CopilotCli`, the runtime default applies (enabled). In `CopilotClientMode.Empty`, defaults to disabled.
232+
- `EnableGitHubCacheStore` - Requests the read-only GitHub cache store (`github-cache-store` capability) on create or resume. The runtime registers the `github_sql` tool only when its `GITHUB_CACHE_STORE` feature flag is also on. Defaults to disabled in every mode.
232233
- `GitHubTokenProvider` - Acquires session-scoped GitHub tokens on demand. Return `GitHubTokenProviderResult.FromToken` with a positive `ExpiresIn` value (production GitHub tokens typically use `8 * 60 * 60` seconds), or `GitHubTokenProviderResult.Cancel()`. Cannot be combined with `GitHubToken`.
233234
- `SkillProvider` - Experimental session-scoped skill provider. See [Skill providers (experimental)](#skill-providers-experimental).
234235
- `OnPermissionRequest` - Optional handler called before each tool execution to approve or deny it. When omitted, permission requests are emitted as events and left pending for manual resolution. `PermissionHandler.ApproveAll` approves requests when managed settings are disabled and throws when `EnableManagedSettings` is true. Custom handlers can inspect `ManagedApprovalRequired` for human-facing confirmation logic. See [Permission Handling](#permission-handling) section.

‎dotnet/src/Client.cs‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,6 +1305,7 @@ public async Task<CopilotSession> CreateSessionAsync(SessionConfig config, Cance
13051305
config.EnableFileHooks,
13061306
config.EnableHostGitOperations,
13071307
config.EnableSessionStore,
1308+
config.EnableGitHubCacheStore,
13081309
config.EnableSkills,
13091310
config.SkillDirectories,
13101311
config.DisabledSkills,
@@ -1570,6 +1571,7 @@ public async Task<CopilotSession> ResumeSessionAsync(string sessionId, ResumeSes
15701571
config.EnableFileHooks,
15711572
config.EnableHostGitOperations,
15721573
config.EnableSessionStore,
1574+
config.EnableGitHubCacheStore,
15731575
config.EnableSkills,
15741576
config.SuppressResumeEvent is true ? true : null,
15751577
config.Streaming is true ? true : null,
@@ -3272,6 +3274,7 @@ internal record CreateSessionRequest(
32723274
bool? EnableFileHooks,
32733275
bool? EnableHostGitOperations,
32743276
bool? EnableSessionStore,
3277+
[property: JsonPropertyName("enableGitHubCacheStore")] bool? EnableGitHubCacheStore,
32753278
bool? EnableSkills,
32763279
IList<string>? SkillDirectories,
32773280
IList<string>? DisabledSkills,
@@ -3387,6 +3390,7 @@ internal record ResumeSessionRequest(
33873390
bool? EnableFileHooks,
33883391
bool? EnableHostGitOperations,
33893392
bool? EnableSessionStore,
3393+
[property: JsonPropertyName("enableGitHubCacheStore")] bool? EnableGitHubCacheStore,
33903394
bool? EnableSkills,
33913395
[property: JsonPropertyName("disableResume")] bool? SuppressResumeEvent,
33923396
bool? Streaming,

0 commit comments

Comments
 (0)