@takeshape/cli 11.99.2 → 11.102.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/dist/index.js +23 -28
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -206882,11 +206882,11 @@ var import_semver = __toESM(require_semver4());
|
|
|
206882
206882
|
|
|
206883
206883
|
// package.json
|
|
206884
206884
|
var engines = {
|
|
206885
|
-
node: ">=
|
|
206885
|
+
node: ">=22"
|
|
206886
206886
|
};
|
|
206887
206887
|
var package_default = {
|
|
206888
206888
|
name: "@takeshape/cli",
|
|
206889
|
-
version: "11.
|
|
206889
|
+
version: "11.102.0",
|
|
206890
206890
|
description: "TakeShape CLI",
|
|
206891
206891
|
homepage: "https://www.takeshape.io",
|
|
206892
206892
|
repository: {
|
|
@@ -206907,9 +206907,9 @@ var package_default = {
|
|
|
206907
206907
|
"build:ci": "pnpm build",
|
|
206908
206908
|
clean: "del-cli build dist *.tsbuildinfo",
|
|
206909
206909
|
lint: "trap 'RC=1' ERR; pnpm lint:biome; pnpm lint:eslint; exit $RC",
|
|
206910
|
-
"lint:biome": "biome check",
|
|
206910
|
+
"lint:biome": "biome check ./",
|
|
206911
206911
|
"lint:eslint": "eslint src -c ../../eslint.config.mjs",
|
|
206912
|
-
"lint:ci:biome": 'mkdir -p "${GITHUB_WORKSPACE}/test-results/${npm_package_name#*\\/}" && biome check --diagnostic-level error --reporter=junit > "${GITHUB_WORKSPACE}/test-results/${npm_package_name#*\\/}/biome-results.xml"',
|
|
206912
|
+
"lint:ci:biome": 'mkdir -p "${GITHUB_WORKSPACE}/test-results/${npm_package_name#*\\/}" && biome check ./ --diagnostic-level error --reporter=junit > "${GITHUB_WORKSPACE}/test-results/${npm_package_name#*\\/}/biome-results.xml"',
|
|
206913
206913
|
"lint:ci:eslint": 'ESLINT_SUITE_NAME=${npm_package_name} ESLINT_JUNIT_OUTPUT="${GITHUB_WORKSPACE}/test-results/${npm_package_name#*\\/}/eslint-results.xml" pnpm lint:eslint --quiet --format ../../node_modules/eslint-junit/index.js',
|
|
206914
206914
|
"lint:code:ci": 'pnpm lint --quiet --format junit -o "${HOME}/test-results/${npm_package_name#*\\/}/eslint-results.xml"',
|
|
206915
206915
|
test: "jest",
|
|
@@ -217201,11 +217201,12 @@ var import_get4 = __toESM(require_get(), 1);
|
|
|
217201
217201
|
var import_uniq = __toESM(require_uniq(), 1);
|
|
217202
217202
|
var import_upperFirst2 = __toESM(require_upperFirst(), 1);
|
|
217203
217203
|
var END_AGENT_EXECUTION = "END";
|
|
217204
|
-
|
|
217205
|
-
|
|
217204
|
+
function canEndOnState(state, includeSuspend = false) {
|
|
217205
|
+
const { transitions } = state;
|
|
217206
|
+
if (!transitions?.length) {
|
|
217206
217207
|
return true;
|
|
217207
217208
|
}
|
|
217208
|
-
for (const step of
|
|
217209
|
+
for (const step of transitions) {
|
|
217209
217210
|
if (includeSuspend && step.type === "suspend") {
|
|
217210
217211
|
return true;
|
|
217211
217212
|
}
|
|
@@ -217217,22 +217218,16 @@ var transitionCanEnd = (transition, includeSuspend = false) => {
|
|
|
217217
217218
|
}
|
|
217218
217219
|
}
|
|
217219
217220
|
return true;
|
|
217220
|
-
}
|
|
217221
|
-
|
|
217222
|
-
|
|
217223
|
-
|
|
217224
|
-
if (
|
|
217225
|
-
|
|
217221
|
+
}
|
|
217222
|
+
function getAgentEndStates(agent, includeSuspend = false) {
|
|
217223
|
+
const endStates = /* @__PURE__ */ new Set();
|
|
217224
|
+
for (const [stateId, state] of Object.entries(agent.states)) {
|
|
217225
|
+
if (canEndOnState(state, includeSuspend)) {
|
|
217226
|
+
endStates.add(stateId);
|
|
217226
217227
|
}
|
|
217227
|
-
|
|
217228
|
-
|
|
217229
|
-
}
|
|
217230
|
-
var getAgentEndStates = (agent, includeSuspend = false) => {
|
|
217231
|
-
return getAgentEndTransitions(agent, includeSuspend).reduce((acc, { originStateId }) => {
|
|
217232
|
-
acc.add(originStateId);
|
|
217233
|
-
return acc;
|
|
217234
|
-
}, /* @__PURE__ */ new Set());
|
|
217235
|
-
};
|
|
217228
|
+
}
|
|
217229
|
+
return endStates;
|
|
217230
|
+
}
|
|
217236
217231
|
var getInspectAgentSessionQueryName = (agentName) => {
|
|
217237
217232
|
return `inspect${(0, import_upperFirst2.default)(agentName)}`;
|
|
217238
217233
|
};
|
|
@@ -222839,14 +222834,14 @@ var experimental_default = {
|
|
|
222839
222834
|
description: "Configuration for the start of an agent's execution",
|
|
222840
222835
|
type: "object",
|
|
222841
222836
|
properties: {
|
|
222842
|
-
|
|
222837
|
+
transitions: {
|
|
222843
222838
|
type: "array",
|
|
222844
222839
|
items: {
|
|
222845
222840
|
$ref: "#/definitions/agentTransitionSuspend"
|
|
222846
222841
|
}
|
|
222847
222842
|
}
|
|
222848
222843
|
},
|
|
222849
|
-
required: ["
|
|
222844
|
+
required: ["transitions"],
|
|
222850
222845
|
additionalProperties: false
|
|
222851
222846
|
},
|
|
222852
222847
|
agentStateMap: {
|
|
@@ -222879,7 +222874,7 @@ var experimental_default = {
|
|
|
222879
222874
|
execution: {
|
|
222880
222875
|
$ref: "#/definitions/agentExecution"
|
|
222881
222876
|
},
|
|
222882
|
-
|
|
222877
|
+
transitions: {
|
|
222883
222878
|
type: "array",
|
|
222884
222879
|
items: {
|
|
222885
222880
|
$ref: "#/definitions/agentTransition"
|
|
@@ -384602,7 +384597,7 @@ function validateAgents(projectSchema) {
|
|
|
384602
384597
|
});
|
|
384603
384598
|
}
|
|
384604
384599
|
}
|
|
384605
|
-
pushErrors(errors, validateAgentTransitions([...agentPath, "start", "
|
|
384600
|
+
pushErrors(errors, validateAgentTransitions([...agentPath, "start", "transitions"], inputNames, agent.start.transitions));
|
|
384606
384601
|
for (const [stateId, state] of Object.entries(agent.states)) {
|
|
384607
384602
|
const statePath = [...agentPath, "states", stateId];
|
|
384608
384603
|
if (stateNames.has(state.name)) {
|
|
@@ -384639,8 +384634,8 @@ function validateAgents(projectSchema) {
|
|
|
384639
384634
|
});
|
|
384640
384635
|
});
|
|
384641
384636
|
}
|
|
384642
|
-
if (state.
|
|
384643
|
-
errors.push(...validateAgentTransitions([...statePath, "
|
|
384637
|
+
if (state.transitions) {
|
|
384638
|
+
errors.push(...validateAgentTransitions([...statePath, "transitions"], inputNames, state.transitions));
|
|
384644
384639
|
}
|
|
384645
384640
|
if (state.execution.type === "generate" || state.execution.type === "chat") {
|
|
384646
384641
|
if (!state.execution.tools) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takeshape/cli",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.102.0",
|
|
4
4
|
"description": "TakeShape CLI",
|
|
5
5
|
"homepage": "https://www.takeshape.io",
|
|
6
6
|
"repository": {
|
|
@@ -69,14 +69,14 @@
|
|
|
69
69
|
"stream-to-promise": "^2.2.0",
|
|
70
70
|
"tmp": "^0.0.33",
|
|
71
71
|
"unzipper": "^0.10.11",
|
|
72
|
-
"@takeshape/branches": "11.
|
|
73
|
-
"@takeshape/schema": "11.
|
|
74
|
-
"@takeshape/streams": "11.
|
|
75
|
-
"@takeshape/
|
|
76
|
-
"@takeshape/
|
|
72
|
+
"@takeshape/branches": "11.102.0",
|
|
73
|
+
"@takeshape/schema": "11.102.0",
|
|
74
|
+
"@takeshape/streams": "11.102.0",
|
|
75
|
+
"@takeshape/ssg": "11.102.0",
|
|
76
|
+
"@takeshape/util": "11.102.0"
|
|
77
77
|
},
|
|
78
78
|
"engines": {
|
|
79
|
-
"node": ">=
|
|
79
|
+
"node": ">=22"
|
|
80
80
|
},
|
|
81
81
|
"scripts": {
|
|
82
82
|
"build": "esbuild src/index.ts --bundle --platform=node --outfile=dist/index.js",
|
|
@@ -84,9 +84,9 @@
|
|
|
84
84
|
"build:ci": "pnpm build",
|
|
85
85
|
"clean": "del-cli build dist *.tsbuildinfo",
|
|
86
86
|
"lint": "trap 'RC=1' ERR; pnpm lint:biome; pnpm lint:eslint; exit $RC",
|
|
87
|
-
"lint:biome": "biome check",
|
|
87
|
+
"lint:biome": "biome check ./",
|
|
88
88
|
"lint:eslint": "eslint src -c ../../eslint.config.mjs",
|
|
89
|
-
"lint:ci:biome": "mkdir -p \"${GITHUB_WORKSPACE}/test-results/${npm_package_name#*\\/}\" && biome check --diagnostic-level error --reporter=junit > \"${GITHUB_WORKSPACE}/test-results/${npm_package_name#*\\/}/biome-results.xml\"",
|
|
89
|
+
"lint:ci:biome": "mkdir -p \"${GITHUB_WORKSPACE}/test-results/${npm_package_name#*\\/}\" && biome check ./ --diagnostic-level error --reporter=junit > \"${GITHUB_WORKSPACE}/test-results/${npm_package_name#*\\/}/biome-results.xml\"",
|
|
90
90
|
"lint:ci:eslint": "ESLINT_SUITE_NAME=${npm_package_name} ESLINT_JUNIT_OUTPUT=\"${GITHUB_WORKSPACE}/test-results/${npm_package_name#*\\/}/eslint-results.xml\" pnpm lint:eslint --quiet --format ../../node_modules/eslint-junit/index.js",
|
|
91
91
|
"lint:code:ci": "pnpm lint --quiet --format junit -o \"${HOME}/test-results/${npm_package_name#*\\/}/eslint-results.xml\"",
|
|
92
92
|
"test": "jest",
|