copilotkit 4.5.0 → 4.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,20 +2,20 @@
2
2
  "schemaVersion": 1,
3
3
  "package": {
4
4
  "name": "copilotkit",
5
- "version": "4.5.0"
5
+ "version": "4.5.1"
6
6
  },
7
7
  "intelligence": {
8
- "commit": "cdb1dbd45dd27adbaa8be1fcfd6843c2927f5943"
8
+ "commit": "c6368d6cc300a87a94e673ec36e8a53f7910c50d"
9
9
  },
10
10
  "copilotKit": {
11
- "submittedInput": "a1c9b3147829ac358bae82df651f45a1aea2a437",
12
- "commit": "a1c9b3147829ac358bae82df651f45a1aea2a437"
11
+ "submittedInput": "e816a9315165db0746dfecdcf697038d1deda6c2",
12
+ "commit": "e816a9315165db0746dfecdcf697038d1deda6c2"
13
13
  },
14
14
  "channel": "production",
15
- "triggeringActor": "MikeRyanDev",
15
+ "triggeringActor": "contextablemark",
16
16
  "workflow": {
17
- "runId": "30390320157",
18
- "runUrl": "https://github.com/CopilotKit/Intelligence/actions/runs/30390320157"
17
+ "runId": "30555421477",
18
+ "runUrl": "https://github.com/CopilotKit/Intelligence/actions/runs/30555421477"
19
19
  },
20
20
  "validationResult": "passed",
21
21
  "ag2": {
@@ -24,5 +24,5 @@
24
24
  "revision": "main",
25
25
  "pinned": false
26
26
  },
27
- "builtAt": "2026-07-28T19:06:01Z"
27
+ "builtAt": "2026-07-30T15:13:07Z"
28
28
  }
package/index.js CHANGED
@@ -87,14 +87,14 @@ function getTelemetryEndpointUrl() {
87
87
  }
88
88
  function getBuildInfo() {
89
89
  return {
90
- version: true ? "4.5.0" : "dev",
91
- buildNumber: true ? "30390320157" : "dev",
92
- commitSha: true ? "cdb1dbd45dd27adbaa8be1fcfd6843c2927f5943" : "dev",
90
+ version: true ? "4.5.1" : "dev",
91
+ buildNumber: true ? "30555421477" : "dev",
92
+ commitSha: true ? "c6368d6cc300a87a94e673ec36e8a53f7910c50d" : "dev",
93
93
  copilotKitCommit: getTemplateRef()
94
94
  };
95
95
  }
96
96
  function getTemplateRef() {
97
- return true ? "a1c9b3147829ac358bae82df651f45a1aea2a437" : "main";
97
+ return true ? "e816a9315165db0746dfecdcf697038d1deda6c2" : "main";
98
98
  }
99
99
  function getC15tBackendUrl() {
100
100
  return true ? "https://calm-hazelnut-joy-copilotkit.inth.app" : "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "copilotkit",
3
- "version": "4.5.0",
3
+ "version": "4.5.1",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14603,8 +14603,9 @@ function planReleaseReconciliation(options) {
14603
14603
  targetCommit,
14604
14604
  actions: [
14605
14605
  { type: "create-tag", tagName, targetCommit },
14606
- { type: "create-release", tagName },
14607
- { type: "attach-manifest", manifest: expectedManifest }
14606
+ { type: "create-draft-release", tagName },
14607
+ { type: "attach-manifest", manifest: expectedManifest },
14608
+ { type: "publish-release", tagName }
14608
14609
  ],
14609
14610
  manifest: expectedManifest
14610
14611
  };
@@ -14623,6 +14624,13 @@ function planReleaseReconciliation(options) {
14623
14624
  { expected: tagName, actual: options.release.tagName }
14624
14625
  );
14625
14626
  }
14627
+ if (options.release?.state === "published-immutable" && options.manifest === null) {
14628
+ throw new ReleaseReconciliationError(
14629
+ "IMMUTABLE_RELEASE_MANIFEST_MISSING",
14630
+ `Published immutable release ${tagName} has no release manifest and cannot accept one`,
14631
+ { tagName, releaseState: options.release.state }
14632
+ );
14633
+ }
14626
14634
  let acceptedManifest = expectedManifest;
14627
14635
  if (options.manifest !== null) {
14628
14636
  try {
@@ -14650,11 +14658,14 @@ function planReleaseReconciliation(options) {
14650
14658
  actions.push({ type: "create-tag", tagName, targetCommit });
14651
14659
  }
14652
14660
  if (options.release === null) {
14653
- actions.push({ type: "create-release", tagName });
14661
+ actions.push({ type: "create-draft-release", tagName });
14654
14662
  }
14655
14663
  if (options.manifest === null) {
14656
14664
  actions.push({ type: "attach-manifest", manifest: expectedManifest });
14657
14665
  }
14666
+ if (options.release === null || options.release.state === "draft") {
14667
+ actions.push({ type: "publish-release", tagName });
14668
+ }
14658
14669
  return {
14659
14670
  releasePath: "recovery",
14660
14671
  tagName,
@@ -14672,7 +14683,7 @@ import * as path4 from "node:path";
14672
14683
 
14673
14684
  // apps/cli/src/config.ts
14674
14685
  function getTemplateRef() {
14675
- return true ? "a1c9b3147829ac358bae82df651f45a1aea2a437" : "main";
14686
+ return true ? "e816a9315165db0746dfecdcf697038d1deda6c2" : "main";
14676
14687
  }
14677
14688
 
14678
14689
  // apps/cli/src/services/agentcore-config.ts
@@ -15707,6 +15718,7 @@ var COMMAND_FLAGS = {
15707
15718
  "--expected-manifest",
15708
15719
  "--tag-target",
15709
15720
  "--release-tag",
15721
+ "--release-state",
15710
15722
  "--manifest"
15711
15723
  ],
15712
15724
  "smoke-one": ["--framework", "--canonical-commit"],
@@ -16096,6 +16108,7 @@ async function runReleaseCli(args, dependencies = {}) {
16096
16108
  );
16097
16109
  const tagTarget = optionalString(flags, "--tag-target");
16098
16110
  const releaseTag = optionalString(flags, "--release-tag");
16111
+ const releaseState = optionalString(flags, "--release-state");
16099
16112
  const manifestPath = optionalString(flags, "--manifest");
16100
16113
  const packageState = requiredString(flags, "--package-state");
16101
16114
  if (packageState !== "absent" && packageState !== "verified") {
@@ -16103,10 +16116,20 @@ async function runReleaseCli(args, dependencies = {}) {
16103
16116
  "--package-state must be absent or verified"
16104
16117
  );
16105
16118
  }
16119
+ if (releaseTag === void 0 !== (releaseState === void 0)) {
16120
+ throw new ReleaseCliInputError(
16121
+ "--release-tag and --release-state must be provided together"
16122
+ );
16123
+ }
16124
+ if (releaseState !== void 0 && releaseState !== "draft" && releaseState !== "published-mutable" && releaseState !== "published-immutable") {
16125
+ throw new ReleaseCliInputError(
16126
+ "--release-state must be draft, published-mutable, or published-immutable"
16127
+ );
16128
+ }
16106
16129
  const result2 = planReleaseReconciliation({
16107
16130
  packageState,
16108
16131
  tag: tagTarget === void 0 ? null : { targetCommit: tagTarget },
16109
- release: releaseTag === void 0 ? null : { tagName: releaseTag },
16132
+ release: releaseTag === void 0 || releaseState === void 0 ? null : { tagName: releaseTag, state: releaseState },
16110
16133
  manifest: manifestPath === void 0 ? null : readJsonObject(manifestPath),
16111
16134
  expectedManifest
16112
16135
  });