copilotkit 4.5.0 → 4.6.0
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.
- package/README.md +87 -0
- package/cli-build-info.json +7 -7
- package/index.js +12432 -7036
- package/package.json +1 -1
- package/release/release-tool.js +28 -5
package/package.json
CHANGED
package/release/release-tool.js
CHANGED
|
@@ -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 ? "
|
|
14686
|
+
return true ? "bc80efb17f5b729cc96a50cbbefca163079dc781" : "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
|
});
|