@takeshape/schema 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/agents.d.ts +1 -6
- package/dist/agents.js +13 -18
- package/dist/project-schema/latest.d.ts +2 -2
- package/dist/project-schema/v3.48.0.d.ts +2 -2
- package/dist/project-schema/v3.49.0.d.ts +2 -2
- package/dist/project-schema/v3.50.0.d.ts +2 -2
- package/dist/project-schema/v3.51.0.d.ts +2 -2
- package/dist/project-schema/v3.52.0.d.ts +2 -2
- package/dist/project-schema/v3.53.0.d.ts +2 -2
- package/dist/project-schema/v3.54.0.d.ts +2 -2
- package/dist/project-schema/v3.55.0.d.ts +2 -2
- package/dist/schemas/project-schema/experimental.json +3 -3
- package/dist/validate/ai.js +3 -3
- package/examples/latest/agent-schema.json +10 -18
- package/examples/source/agent-schema.json +7 -7
- package/package.json +8 -8
package/dist/agents.d.ts
CHANGED
|
@@ -8,12 +8,7 @@ export declare const END_AGENT_EXECUTION = "END";
|
|
|
8
8
|
* Special history strategy ID that indicates the history should be cleared.
|
|
9
9
|
*/
|
|
10
10
|
export declare const CLEAR_HISTORY_STRATEGY_ID = "clearHistory";
|
|
11
|
-
export
|
|
12
|
-
type: 'done' | 'progress';
|
|
13
|
-
originStateId: string;
|
|
14
|
-
};
|
|
15
|
-
export declare const getAgentEndTransitions: (agent: AgentJSON, includeSuspend?: boolean) => AgentEndTransition[];
|
|
16
|
-
export declare const getAgentEndStates: (agent: AgentJSON, includeSuspend?: boolean) => Set<string>;
|
|
11
|
+
export declare function getAgentEndStates(agent: AgentJSON, includeSuspend?: boolean): Set<string>;
|
|
17
12
|
export declare const getInspectAgentSessionQueryName: (agentName: string) => string;
|
|
18
13
|
export declare function getAgentQueries(agents: AgentMap): Pick<ProjectSchemaJSON, 'queries' | 'mutations'>;
|
|
19
14
|
export declare function isValidAgentMutation(projectSchema: ProjectSchemaJSON, name: string): boolean;
|
package/dist/agents.js
CHANGED
|
@@ -11,11 +11,12 @@ export const END_AGENT_EXECUTION = 'END';
|
|
|
11
11
|
* Special history strategy ID that indicates the history should be cleared.
|
|
12
12
|
*/
|
|
13
13
|
export const CLEAR_HISTORY_STRATEGY_ID = 'clearHistory';
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
function canEndOnState(state, includeSuspend = false) {
|
|
15
|
+
const { transitions } = state;
|
|
16
|
+
if (!transitions?.length) {
|
|
16
17
|
return true;
|
|
17
18
|
}
|
|
18
|
-
for (const step of
|
|
19
|
+
for (const step of transitions) {
|
|
19
20
|
if (includeSuspend && step.type === 'suspend') {
|
|
20
21
|
return true;
|
|
21
22
|
}
|
|
@@ -27,22 +28,16 @@ const transitionCanEnd = (transition, includeSuspend = false) => {
|
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
return true;
|
|
30
|
-
}
|
|
31
|
-
export
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
if (
|
|
35
|
-
|
|
31
|
+
}
|
|
32
|
+
export function getAgentEndStates(agent, includeSuspend = false) {
|
|
33
|
+
const endStates = new Set();
|
|
34
|
+
for (const [stateId, state] of Object.entries(agent.states)) {
|
|
35
|
+
if (canEndOnState(state, includeSuspend)) {
|
|
36
|
+
endStates.add(stateId);
|
|
36
37
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
export const getAgentEndStates = (agent, includeSuspend = false) => {
|
|
41
|
-
return getAgentEndTransitions(agent, includeSuspend).reduce((acc, { originStateId }) => {
|
|
42
|
-
acc.add(originStateId);
|
|
43
|
-
return acc;
|
|
44
|
-
}, new Set());
|
|
45
|
-
};
|
|
38
|
+
}
|
|
39
|
+
return endStates;
|
|
40
|
+
}
|
|
46
41
|
export const getInspectAgentSessionQueryName = (agentName) => {
|
|
47
42
|
return `inspect${upperFirst(agentName)}`;
|
|
48
43
|
};
|
|
@@ -1792,7 +1792,7 @@ export interface AgentSessionMemory {
|
|
|
1792
1792
|
* Configuration for the start of an agent's execution
|
|
1793
1793
|
*/
|
|
1794
1794
|
export interface AgentStart {
|
|
1795
|
-
|
|
1795
|
+
transitions: AgentTransitionSuspend[];
|
|
1796
1796
|
}
|
|
1797
1797
|
export interface AgentTransitionSuspend {
|
|
1798
1798
|
type: 'suspend';
|
|
@@ -1823,7 +1823,7 @@ export interface AgentState {
|
|
|
1823
1823
|
name: string;
|
|
1824
1824
|
variables?: Variables;
|
|
1825
1825
|
execution: AgentExecution;
|
|
1826
|
-
|
|
1826
|
+
transitions?: AgentTransition[];
|
|
1827
1827
|
}
|
|
1828
1828
|
export interface AgentVariable {
|
|
1829
1829
|
name: string;
|
|
@@ -1640,7 +1640,7 @@ export interface AgentSessionMemoryV3_48_0 {
|
|
|
1640
1640
|
* Configuration for the start of an agent's execution
|
|
1641
1641
|
*/
|
|
1642
1642
|
export interface AgentStartV3_48_0 {
|
|
1643
|
-
|
|
1643
|
+
transitions: AgentTransitionSuspendV3_48_0[];
|
|
1644
1644
|
}
|
|
1645
1645
|
export interface AgentTransitionSuspendV3_48_0 {
|
|
1646
1646
|
type: 'suspend';
|
|
@@ -1671,7 +1671,7 @@ export interface AgentStateV3_48_0 {
|
|
|
1671
1671
|
name: string;
|
|
1672
1672
|
variables?: VariablesV3_48_0;
|
|
1673
1673
|
execution: AgentExecutionV3_48_0;
|
|
1674
|
-
|
|
1674
|
+
transitions?: AgentTransitionV3_48_0[];
|
|
1675
1675
|
}
|
|
1676
1676
|
export interface AgentVariableV3_48_0 {
|
|
1677
1677
|
name: string;
|
|
@@ -1640,7 +1640,7 @@ export interface AgentSessionMemoryV3_49_0 {
|
|
|
1640
1640
|
* Configuration for the start of an agent's execution
|
|
1641
1641
|
*/
|
|
1642
1642
|
export interface AgentStartV3_49_0 {
|
|
1643
|
-
|
|
1643
|
+
transitions: AgentTransitionSuspendV3_49_0[];
|
|
1644
1644
|
}
|
|
1645
1645
|
export interface AgentTransitionSuspendV3_49_0 {
|
|
1646
1646
|
type: 'suspend';
|
|
@@ -1671,7 +1671,7 @@ export interface AgentStateV3_49_0 {
|
|
|
1671
1671
|
name: string;
|
|
1672
1672
|
variables?: VariablesV3_49_0;
|
|
1673
1673
|
execution: AgentExecutionV3_49_0;
|
|
1674
|
-
|
|
1674
|
+
transitions?: AgentTransitionV3_49_0[];
|
|
1675
1675
|
}
|
|
1676
1676
|
export interface AgentVariableV3_49_0 {
|
|
1677
1677
|
name: string;
|
|
@@ -1692,7 +1692,7 @@ export interface AgentSessionMemoryV3_50_0 {
|
|
|
1692
1692
|
* Configuration for the start of an agent's execution
|
|
1693
1693
|
*/
|
|
1694
1694
|
export interface AgentStartV3_50_0 {
|
|
1695
|
-
|
|
1695
|
+
transitions: AgentTransitionSuspendV3_50_0[];
|
|
1696
1696
|
}
|
|
1697
1697
|
export interface AgentTransitionSuspendV3_50_0 {
|
|
1698
1698
|
type: 'suspend';
|
|
@@ -1723,7 +1723,7 @@ export interface AgentStateV3_50_0 {
|
|
|
1723
1723
|
name: string;
|
|
1724
1724
|
variables?: VariablesV3_50_0;
|
|
1725
1725
|
execution: AgentExecutionV3_50_0;
|
|
1726
|
-
|
|
1726
|
+
transitions?: AgentTransitionV3_50_0[];
|
|
1727
1727
|
}
|
|
1728
1728
|
export interface AgentVariableV3_50_0 {
|
|
1729
1729
|
name: string;
|
|
@@ -1692,7 +1692,7 @@ export interface AgentSessionMemoryV3_51_0 {
|
|
|
1692
1692
|
* Configuration for the start of an agent's execution
|
|
1693
1693
|
*/
|
|
1694
1694
|
export interface AgentStartV3_51_0 {
|
|
1695
|
-
|
|
1695
|
+
transitions: AgentTransitionSuspendV3_51_0[];
|
|
1696
1696
|
}
|
|
1697
1697
|
export interface AgentTransitionSuspendV3_51_0 {
|
|
1698
1698
|
type: 'suspend';
|
|
@@ -1723,7 +1723,7 @@ export interface AgentStateV3_51_0 {
|
|
|
1723
1723
|
name: string;
|
|
1724
1724
|
variables?: VariablesV3_51_0;
|
|
1725
1725
|
execution: AgentExecutionV3_51_0;
|
|
1726
|
-
|
|
1726
|
+
transitions?: AgentTransitionV3_51_0[];
|
|
1727
1727
|
}
|
|
1728
1728
|
export interface AgentVariableV3_51_0 {
|
|
1729
1729
|
name: string;
|
|
@@ -1692,7 +1692,7 @@ export interface AgentSessionMemoryV3_52_0 {
|
|
|
1692
1692
|
* Configuration for the start of an agent's execution
|
|
1693
1693
|
*/
|
|
1694
1694
|
export interface AgentStartV3_52_0 {
|
|
1695
|
-
|
|
1695
|
+
transitions: AgentTransitionSuspendV3_52_0[];
|
|
1696
1696
|
}
|
|
1697
1697
|
export interface AgentTransitionSuspendV3_52_0 {
|
|
1698
1698
|
type: 'suspend';
|
|
@@ -1723,7 +1723,7 @@ export interface AgentStateV3_52_0 {
|
|
|
1723
1723
|
name: string;
|
|
1724
1724
|
variables?: VariablesV3_52_0;
|
|
1725
1725
|
execution: AgentExecutionV3_52_0;
|
|
1726
|
-
|
|
1726
|
+
transitions?: AgentTransitionV3_52_0[];
|
|
1727
1727
|
}
|
|
1728
1728
|
export interface AgentVariableV3_52_0 {
|
|
1729
1729
|
name: string;
|
|
@@ -1773,7 +1773,7 @@ export interface AgentSessionMemoryV3_53_0 {
|
|
|
1773
1773
|
* Configuration for the start of an agent's execution
|
|
1774
1774
|
*/
|
|
1775
1775
|
export interface AgentStartV3_53_0 {
|
|
1776
|
-
|
|
1776
|
+
transitions: AgentTransitionSuspendV3_53_0[];
|
|
1777
1777
|
}
|
|
1778
1778
|
export interface AgentTransitionSuspendV3_53_0 {
|
|
1779
1779
|
type: 'suspend';
|
|
@@ -1804,7 +1804,7 @@ export interface AgentStateV3_53_0 {
|
|
|
1804
1804
|
name: string;
|
|
1805
1805
|
variables?: VariablesV3_53_0;
|
|
1806
1806
|
execution: AgentExecutionV3_53_0;
|
|
1807
|
-
|
|
1807
|
+
transitions?: AgentTransitionV3_53_0[];
|
|
1808
1808
|
}
|
|
1809
1809
|
export interface AgentVariableV3_53_0 {
|
|
1810
1810
|
name: string;
|
|
@@ -1792,7 +1792,7 @@ export interface AgentSessionMemoryV3_54_0 {
|
|
|
1792
1792
|
* Configuration for the start of an agent's execution
|
|
1793
1793
|
*/
|
|
1794
1794
|
export interface AgentStartV3_54_0 {
|
|
1795
|
-
|
|
1795
|
+
transitions: AgentTransitionSuspendV3_54_0[];
|
|
1796
1796
|
}
|
|
1797
1797
|
export interface AgentTransitionSuspendV3_54_0 {
|
|
1798
1798
|
type: 'suspend';
|
|
@@ -1823,7 +1823,7 @@ export interface AgentStateV3_54_0 {
|
|
|
1823
1823
|
name: string;
|
|
1824
1824
|
variables?: VariablesV3_54_0;
|
|
1825
1825
|
execution: AgentExecutionV3_54_0;
|
|
1826
|
-
|
|
1826
|
+
transitions?: AgentTransitionV3_54_0[];
|
|
1827
1827
|
}
|
|
1828
1828
|
export interface AgentVariableV3_54_0 {
|
|
1829
1829
|
name: string;
|
|
@@ -1792,7 +1792,7 @@ export interface AgentSessionMemoryV3_55_0 {
|
|
|
1792
1792
|
* Configuration for the start of an agent's execution
|
|
1793
1793
|
*/
|
|
1794
1794
|
export interface AgentStartV3_55_0 {
|
|
1795
|
-
|
|
1795
|
+
transitions: AgentTransitionSuspendV3_55_0[];
|
|
1796
1796
|
}
|
|
1797
1797
|
export interface AgentTransitionSuspendV3_55_0 {
|
|
1798
1798
|
type: 'suspend';
|
|
@@ -1823,7 +1823,7 @@ export interface AgentStateV3_55_0 {
|
|
|
1823
1823
|
name: string;
|
|
1824
1824
|
variables?: VariablesV3_55_0;
|
|
1825
1825
|
execution: AgentExecutionV3_55_0;
|
|
1826
|
-
|
|
1826
|
+
transitions?: AgentTransitionV3_55_0[];
|
|
1827
1827
|
}
|
|
1828
1828
|
export interface AgentVariableV3_55_0 {
|
|
1829
1829
|
name: string;
|
|
@@ -264,14 +264,14 @@
|
|
|
264
264
|
"description": "Configuration for the start of an agent's execution",
|
|
265
265
|
"type": "object",
|
|
266
266
|
"properties": {
|
|
267
|
-
"
|
|
267
|
+
"transitions": {
|
|
268
268
|
"type": "array",
|
|
269
269
|
"items": {
|
|
270
270
|
"$ref": "#/definitions/agentTransitionSuspend"
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
273
|
},
|
|
274
|
-
"required": ["
|
|
274
|
+
"required": ["transitions"],
|
|
275
275
|
"additionalProperties": false
|
|
276
276
|
},
|
|
277
277
|
"agentStateMap": {
|
|
@@ -304,7 +304,7 @@
|
|
|
304
304
|
"execution": {
|
|
305
305
|
"$ref": "#/definitions/agentExecution"
|
|
306
306
|
},
|
|
307
|
-
"
|
|
307
|
+
"transitions": {
|
|
308
308
|
"type": "array",
|
|
309
309
|
"items": {
|
|
310
310
|
"$ref": "#/definitions/agentTransition"
|
package/dist/validate/ai.js
CHANGED
|
@@ -87,7 +87,7 @@ export function validateAgents(projectSchema) {
|
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
pushErrors(errors, validateAgentTransitions([...agentPath, 'start', '
|
|
90
|
+
pushErrors(errors, validateAgentTransitions([...agentPath, 'start', 'transitions'], inputNames, agent.start.transitions));
|
|
91
91
|
for (const [stateId, state] of Object.entries(agent.states)) {
|
|
92
92
|
const statePath = [...agentPath, 'states', stateId];
|
|
93
93
|
if (stateNames.has(state.name)) {
|
|
@@ -125,8 +125,8 @@ export function validateAgents(projectSchema) {
|
|
|
125
125
|
});
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
|
-
if (state.
|
|
129
|
-
errors.push(...validateAgentTransitions([...statePath, '
|
|
128
|
+
if (state.transitions) {
|
|
129
|
+
errors.push(...validateAgentTransitions([...statePath, 'transitions'], inputNames, state.transitions));
|
|
130
130
|
}
|
|
131
131
|
if (state.execution.type === 'generate' || state.execution.type === 'chat') {
|
|
132
132
|
if (!state.execution.tools) {
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"projectId": "1c0dc45d-695e-4a87-ac52-13db5e1fd781",
|
|
3
3
|
"defaultLocale": "en-us",
|
|
4
|
-
"locales": [
|
|
5
|
-
"en-us"
|
|
6
|
-
],
|
|
4
|
+
"locales": ["en-us"],
|
|
7
5
|
"queries": {
|
|
8
6
|
"dogDelegate": {
|
|
9
7
|
"resolver": {
|
|
@@ -122,10 +120,7 @@
|
|
|
122
120
|
"type": "string"
|
|
123
121
|
}
|
|
124
122
|
},
|
|
125
|
-
"required": [
|
|
126
|
-
"answered",
|
|
127
|
-
"message"
|
|
128
|
-
]
|
|
123
|
+
"required": ["answered", "message"]
|
|
129
124
|
}
|
|
130
125
|
}
|
|
131
126
|
},
|
|
@@ -141,10 +136,7 @@
|
|
|
141
136
|
"widget": "singleLineText"
|
|
142
137
|
}
|
|
143
138
|
},
|
|
144
|
-
"order": [
|
|
145
|
-
"name",
|
|
146
|
-
"color"
|
|
147
|
-
]
|
|
139
|
+
"order": ["name", "color"]
|
|
148
140
|
}
|
|
149
141
|
}
|
|
150
142
|
},
|
|
@@ -196,7 +188,7 @@
|
|
|
196
188
|
]
|
|
197
189
|
},
|
|
198
190
|
"start": {
|
|
199
|
-
"
|
|
191
|
+
"transitions": [
|
|
200
192
|
{
|
|
201
193
|
"type": "suspend",
|
|
202
194
|
"input": "findDogColor",
|
|
@@ -228,7 +220,7 @@
|
|
|
228
220
|
"query": "query ($input: String!) {\n getDogList(terms: $input) {\n items {\n name\n color\n }\n }\n}\n",
|
|
229
221
|
"path": "getDogList.items[0]"
|
|
230
222
|
},
|
|
231
|
-
"
|
|
223
|
+
"transitions": [
|
|
232
224
|
{
|
|
233
225
|
"type": "immediate",
|
|
234
226
|
"destination": "ccc"
|
|
@@ -265,7 +257,7 @@
|
|
|
265
257
|
},
|
|
266
258
|
"outputShape": "AnswerResponse"
|
|
267
259
|
},
|
|
268
|
-
"
|
|
260
|
+
"transitions": [
|
|
269
261
|
{
|
|
270
262
|
"type": "immediate",
|
|
271
263
|
"condition": "stateOutputs['ccc'].answered",
|
|
@@ -303,7 +295,7 @@
|
|
|
303
295
|
"inputTemplate": "Please summarize this information:\n\n{{results}}"
|
|
304
296
|
}
|
|
305
297
|
},
|
|
306
|
-
"
|
|
298
|
+
"transitions": []
|
|
307
299
|
},
|
|
308
300
|
"eee": {
|
|
309
301
|
"name": "apologize",
|
|
@@ -326,7 +318,7 @@
|
|
|
326
318
|
"inputTemplate": "Please provide a generic polite apology that there were no search results."
|
|
327
319
|
}
|
|
328
320
|
},
|
|
329
|
-
"
|
|
321
|
+
"transitions": []
|
|
330
322
|
}
|
|
331
323
|
},
|
|
332
324
|
"historyStrategies": {}
|
|
@@ -342,7 +334,7 @@
|
|
|
342
334
|
]
|
|
343
335
|
},
|
|
344
336
|
"start": {
|
|
345
|
-
"
|
|
337
|
+
"transitions": [
|
|
346
338
|
{
|
|
347
339
|
"type": "suspend",
|
|
348
340
|
"input": "chat",
|
|
@@ -362,7 +354,7 @@
|
|
|
362
354
|
},
|
|
363
355
|
"systemPrompt": "You are a helpful assistant. If the user says they have no further questions, end your response with the string ALL_DONE."
|
|
364
356
|
},
|
|
365
|
-
"
|
|
357
|
+
"transitions": [
|
|
366
358
|
{
|
|
367
359
|
"type": "immediate",
|
|
368
360
|
"condition": "contains(currentStateOutput.content, 'ALL_DONE')",
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
]
|
|
179
179
|
},
|
|
180
180
|
"start": {
|
|
181
|
-
"
|
|
181
|
+
"transitions": [
|
|
182
182
|
{
|
|
183
183
|
"type": "suspend",
|
|
184
184
|
"input": "findDogColor",
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
"query": "query ($input: String!) {\n getDogList(terms: $input) {\n items {\n name\n color\n }\n }\n}\n",
|
|
211
211
|
"path": "getDogList.items[0]"
|
|
212
212
|
},
|
|
213
|
-
"
|
|
213
|
+
"transitions": [
|
|
214
214
|
{
|
|
215
215
|
"type": "immediate",
|
|
216
216
|
"destination": "ccc"
|
|
@@ -247,7 +247,7 @@
|
|
|
247
247
|
},
|
|
248
248
|
"outputShape": "AnswerResponse"
|
|
249
249
|
},
|
|
250
|
-
"
|
|
250
|
+
"transitions": [
|
|
251
251
|
{
|
|
252
252
|
"type": "immediate",
|
|
253
253
|
"condition": "stateOutputs['ccc'].answered",
|
|
@@ -285,7 +285,7 @@
|
|
|
285
285
|
"inputTemplate": "Please summarize this information:\n\n{{results}}"
|
|
286
286
|
}
|
|
287
287
|
},
|
|
288
|
-
"
|
|
288
|
+
"transitions": []
|
|
289
289
|
},
|
|
290
290
|
"eee": {
|
|
291
291
|
"name": "apologize",
|
|
@@ -308,7 +308,7 @@
|
|
|
308
308
|
"inputTemplate": "Please provide a generic polite apology that there were no search results."
|
|
309
309
|
}
|
|
310
310
|
},
|
|
311
|
-
"
|
|
311
|
+
"transitions": []
|
|
312
312
|
}
|
|
313
313
|
},
|
|
314
314
|
"historyStrategies": {}
|
|
@@ -324,7 +324,7 @@
|
|
|
324
324
|
]
|
|
325
325
|
},
|
|
326
326
|
"start": {
|
|
327
|
-
"
|
|
327
|
+
"transitions": [
|
|
328
328
|
{
|
|
329
329
|
"type": "suspend",
|
|
330
330
|
"input": "chat",
|
|
@@ -344,7 +344,7 @@
|
|
|
344
344
|
},
|
|
345
345
|
"systemPrompt": "You are a helpful assistant. If the user says they have no further questions, end your response with the string ALL_DONE."
|
|
346
346
|
},
|
|
347
|
-
"
|
|
347
|
+
"transitions": [
|
|
348
348
|
{
|
|
349
349
|
"type": "immediate",
|
|
350
350
|
"condition": "contains(currentStateOutput.content, 'ALL_DONE')",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takeshape/schema",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.102.0",
|
|
4
4
|
"description": "TakeShape Schema",
|
|
5
5
|
"homepage": "https://www.takeshape.io",
|
|
6
6
|
"repository": {
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
"p-reduce": "^2.1.0",
|
|
59
59
|
"semver": "^7.3.2",
|
|
60
60
|
"tiny-invariant": "^1.2.0",
|
|
61
|
-
"@takeshape/errors": "11.
|
|
62
|
-
"@takeshape/json-schema": "11.
|
|
63
|
-
"@takeshape/util": "11.
|
|
61
|
+
"@takeshape/errors": "11.102.0",
|
|
62
|
+
"@takeshape/json-schema": "11.102.0",
|
|
63
|
+
"@takeshape/util": "11.102.0"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@takeshape/json-schema-to-typescript": "^11.0.0",
|
|
@@ -76,10 +76,10 @@
|
|
|
76
76
|
"glob": "^7.1.6",
|
|
77
77
|
"json-schema-to-ts": "^3.1.1",
|
|
78
78
|
"shortid": "^2.2.15",
|
|
79
|
-
"@takeshape/infra": "11.
|
|
79
|
+
"@takeshape/infra": "11.102.0"
|
|
80
80
|
},
|
|
81
81
|
"engines": {
|
|
82
|
-
"node": ">=
|
|
82
|
+
"node": ">=22"
|
|
83
83
|
},
|
|
84
84
|
"scripts": {
|
|
85
85
|
"build": "tsc --project tsconfig.build.json",
|
|
@@ -92,9 +92,9 @@
|
|
|
92
92
|
"deploy:ci": "pnpm run deploy",
|
|
93
93
|
"json2ts": "node scripts/json-schema-to-typescript.mjs",
|
|
94
94
|
"lint": "trap 'RC=1' ERR; pnpm lint:biome; pnpm lint:eslint; exit $RC",
|
|
95
|
-
"lint:biome": "biome check",
|
|
95
|
+
"lint:biome": "biome check ./",
|
|
96
96
|
"lint:eslint": "eslint src -c ../../eslint.config.mjs",
|
|
97
|
-
"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\"",
|
|
97
|
+
"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\"",
|
|
98
98
|
"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",
|
|
99
99
|
"test": "TZ=UTC vitest run",
|
|
100
100
|
"test-changed": "pnpm run test --changedSince=master",
|