fix: release learned-skill adapter independently

This commit is contained in:
Maximiliano Korp
2026-09-11 09:40:33 -07:00
parent f8df39f314
commit 513cab07e0
9 changed files with 90 additions and 2 deletions
+1
View File
@@ -37,6 +37,7 @@ on:
- monorepo
- angular
- channels
- intelligence-langgraph
# Sentinel, not a scope (see ALL_SCOPES in scripts/release/lib/config.ts):
# publishes every scope from this commit under one shared canary id.
# Required whenever the change spans scopes, because cross-scope
+1
View File
@@ -45,6 +45,7 @@ on:
- monorepo
- angular
- channels
- intelligence-langgraph
# Sentinel, not a scope (see ALL_SCOPES in scripts/release/lib/config.ts).
# PRERELEASE ONLY — rejected for mode=stable by the "Determine scope and
# mode" guard below, since a stable release derives its tag, release
+1
View File
@@ -11,6 +11,7 @@ on:
- monorepo
- angular
- channels
- intelligence-langgraph
bump:
description: "Version bump level"
required: true
@@ -0,0 +1 @@
# Changelog
+5
View File
@@ -42,6 +42,11 @@
],
"versionSource": "@copilotkit/channels",
"sharedVersion": true
},
"intelligence-langgraph": {
"packages": ["@copilotkit/intelligence-langgraph"],
"versionSource": "@copilotkit/intelligence-langgraph",
"sharedVersion": false
}
}
}
+1
View File
@@ -28,6 +28,7 @@ export const CHANGELOG_PATHS: Record<ReleaseScope, string> = {
monorepo: "CHANGELOG.md",
angular: "packages/angular/CHANGELOG.md",
channels: "packages/channels/CHANGELOG.md",
"intelligence-langgraph": "packages/intelligence-langgraph/CHANGELOG.md",
};
export function changelogPathForScope(scope: ReleaseScope): string {
+14 -1
View File
@@ -46,7 +46,7 @@ describe("resolveScopes", () => {
it("rejects an unknown scope and names the valid selectors", () => {
expect(() => resolveScopes("runtime")).toThrow(
/Unknown scope: runtime\. Valid scopes: .*channels, all/,
/Unknown scope: runtime\. Valid scopes: .*intelligence-langgraph, all/,
);
});
@@ -56,3 +56,16 @@ describe("resolveScopes", () => {
expect(Object.keys(loadConfig().scopes)).not.toContain(ALL_SCOPES);
});
});
describe("Learned-skill adapter release scope", () => {
it("releases independently from the shared monorepo version", () => {
expect(getScopeConfig("intelligence-langgraph")).toEqual({
packages: ["@copilotkit/intelligence-langgraph"],
versionSource: "@copilotkit/intelligence-langgraph",
sharedVersion: false,
});
expect(getScopeConfig("monorepo").packages).not.toContain(
"@copilotkit/intelligence-langgraph",
);
});
});
+5 -1
View File
@@ -7,7 +7,11 @@ export const ROOT = path.resolve(
"../../..",
);
export type ReleaseScope = "monorepo" | "angular" | "channels";
export type ReleaseScope =
| "monorepo"
| "angular"
| "channels"
| "intelligence-langgraph";
export interface ScopeConfig {
packages: string[];
@@ -1017,6 +1017,67 @@
}
}
},
{
"name": "@copilotkit/intelligence-langgraph",
"version": "0.1.0",
"sourceDirectory": "packages/intelligence-langgraph",
"entrypoints": [
{
"importPath": "@copilotkit/intelligence-langgraph",
"exportKey": ".",
"kind": "code",
"conditions": {
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
},
"provenance": {
"kind": "package-json",
"path": "packages/intelligence-langgraph/package.json",
"selector": "exports[\".\"]"
}
},
{
"importPath": "@copilotkit/intelligence-langgraph/package.json",
"exportKey": "./package.json",
"kind": "metadata",
"conditions": "./package.json",
"provenance": {
"kind": "package-json",
"path": "packages/intelligence-langgraph/package.json",
"selector": "exports[\"./package.json\"]"
}
}
],
"compatibility": {
"engines": {
"node": ">=18"
},
"provenance": [
{
"kind": "package-json",
"path": "packages/intelligence-langgraph/package.json",
"selector": "engines"
}
]
},
"provenance": {
"name": {
"kind": "package-json",
"path": "packages/intelligence-langgraph/package.json",
"selector": "name"
},
"version": {
"kind": "package-json",
"path": "packages/intelligence-langgraph/package.json",
"selector": "version"
},
"releaseScope": {
"kind": "release-config",
"path": "release.config.json",
"selector": "scopes.intelligence-langgraph.packages"
}
}
},
{
"name": "@copilotkit/react-core",
"version": "1.71.1",