@takeshape/schema 11.97.6 → 11.98.6

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.
@@ -364,7 +364,7 @@ export type AgentStateSessionMemoryLocation = AgentStateSessionMemoryLocationCon
364
364
  export type AgentStateSessionMemory = AgentStateSessionMemoryLocation[];
365
365
  export type GuardID = string;
366
366
  export type Variables1 = AgentVariable[];
367
- export type HistoryStrategyExecution = HistoryStrategyExecutionReplace | HistoryStrategyExecutionSummarize;
367
+ export type HistoryStrategyTransform = HistoryStrategyTransformNone | HistoryStrategyTransformReplace | HistoryStrategyTransformSummarize;
368
368
  /**
369
369
  * The human-readable name of the Guard.
370
370
  */
@@ -1939,16 +1939,19 @@ export interface HistoryStrategy {
1939
1939
  name: string;
1940
1940
  variables?: Variables1;
1941
1941
  filter?: HistoryStrategyFilter;
1942
- execution: HistoryStrategyExecution;
1942
+ transform: HistoryStrategyTransform;
1943
1943
  }
1944
1944
  export interface HistoryStrategyFilter {
1945
1945
  toolCalls?: 'retain' | 'clear';
1946
1946
  }
1947
- export interface HistoryStrategyExecutionReplace {
1947
+ export interface HistoryStrategyTransformNone {
1948
+ type: 'none';
1949
+ }
1950
+ export interface HistoryStrategyTransformReplace {
1948
1951
  type: 'replace';
1949
1952
  template: string;
1950
1953
  }
1951
- export interface HistoryStrategyExecutionSummarize {
1954
+ export interface HistoryStrategyTransformSummarize {
1952
1955
  type: 'generate';
1953
1956
  service: string;
1954
1957
  model: string;
@@ -339,7 +339,7 @@ export type AgentStateSessionMemoryLocationV3_48_0 = AgentStateSessionMemoryLoca
339
339
  export type AgentStateSessionMemoryV3_48_0 = AgentStateSessionMemoryLocationV3_48_0[];
340
340
  export type GuardIDV3_48_0 = string;
341
341
  export type VariablesV3_48_01 = AgentVariableV3_48_0[];
342
- export type HistoryStrategyExecutionV3_48_0 = HistoryStrategyExecutionReplaceV3_48_0 | HistoryStrategyExecutionSummarizeV3_48_0;
342
+ export type HistoryStrategyTransformV3_48_0 = HistoryStrategyTransformNoneV3_48_0 | HistoryStrategyTransformReplaceV3_48_0 | HistoryStrategyTransformSummarizeV3_48_0;
343
343
  /**
344
344
  * The human-readable name of the Guard.
345
345
  */
@@ -1787,16 +1787,19 @@ export interface HistoryStrategyV3_48_0 {
1787
1787
  name: string;
1788
1788
  variables?: VariablesV3_48_01;
1789
1789
  filter?: HistoryStrategyFilterV3_48_0;
1790
- execution: HistoryStrategyExecutionV3_48_0;
1790
+ transform: HistoryStrategyTransformV3_48_0;
1791
1791
  }
1792
1792
  export interface HistoryStrategyFilterV3_48_0 {
1793
1793
  toolCalls?: 'retain' | 'clear';
1794
1794
  }
1795
- export interface HistoryStrategyExecutionReplaceV3_48_0 {
1795
+ export interface HistoryStrategyTransformNoneV3_48_0 {
1796
+ type: 'none';
1797
+ }
1798
+ export interface HistoryStrategyTransformReplaceV3_48_0 {
1796
1799
  type: 'replace';
1797
1800
  template: string;
1798
1801
  }
1799
- export interface HistoryStrategyExecutionSummarizeV3_48_0 {
1802
+ export interface HistoryStrategyTransformSummarizeV3_48_0 {
1800
1803
  type: 'generate';
1801
1804
  service: string;
1802
1805
  model: string;
@@ -339,7 +339,7 @@ export type AgentStateSessionMemoryLocationV3_49_0 = AgentStateSessionMemoryLoca
339
339
  export type AgentStateSessionMemoryV3_49_0 = AgentStateSessionMemoryLocationV3_49_0[];
340
340
  export type GuardIDV3_49_0 = string;
341
341
  export type VariablesV3_49_01 = AgentVariableV3_49_0[];
342
- export type HistoryStrategyExecutionV3_49_0 = HistoryStrategyExecutionReplaceV3_49_0 | HistoryStrategyExecutionSummarizeV3_49_0;
342
+ export type HistoryStrategyTransformV3_49_0 = HistoryStrategyTransformNoneV3_49_0 | HistoryStrategyTransformReplaceV3_49_0 | HistoryStrategyTransformSummarizeV3_49_0;
343
343
  /**
344
344
  * The human-readable name of the Guard.
345
345
  */
@@ -1787,16 +1787,19 @@ export interface HistoryStrategyV3_49_0 {
1787
1787
  name: string;
1788
1788
  variables?: VariablesV3_49_01;
1789
1789
  filter?: HistoryStrategyFilterV3_49_0;
1790
- execution: HistoryStrategyExecutionV3_49_0;
1790
+ transform: HistoryStrategyTransformV3_49_0;
1791
1791
  }
1792
1792
  export interface HistoryStrategyFilterV3_49_0 {
1793
1793
  toolCalls?: 'retain' | 'clear';
1794
1794
  }
1795
- export interface HistoryStrategyExecutionReplaceV3_49_0 {
1795
+ export interface HistoryStrategyTransformNoneV3_49_0 {
1796
+ type: 'none';
1797
+ }
1798
+ export interface HistoryStrategyTransformReplaceV3_49_0 {
1796
1799
  type: 'replace';
1797
1800
  template: string;
1798
1801
  }
1799
- export interface HistoryStrategyExecutionSummarizeV3_49_0 {
1802
+ export interface HistoryStrategyTransformSummarizeV3_49_0 {
1800
1803
  type: 'generate';
1801
1804
  service: string;
1802
1805
  model: string;
@@ -351,7 +351,7 @@ export type AgentStateSessionMemoryLocationV3_50_0 = AgentStateSessionMemoryLoca
351
351
  export type AgentStateSessionMemoryV3_50_0 = AgentStateSessionMemoryLocationV3_50_0[];
352
352
  export type GuardIDV3_50_0 = string;
353
353
  export type VariablesV3_50_01 = AgentVariableV3_50_0[];
354
- export type HistoryStrategyExecutionV3_50_0 = HistoryStrategyExecutionReplaceV3_50_0 | HistoryStrategyExecutionSummarizeV3_50_0;
354
+ export type HistoryStrategyTransformV3_50_0 = HistoryStrategyTransformNoneV3_50_0 | HistoryStrategyTransformReplaceV3_50_0 | HistoryStrategyTransformSummarizeV3_50_0;
355
355
  /**
356
356
  * The human-readable name of the Guard.
357
357
  */
@@ -1839,16 +1839,19 @@ export interface HistoryStrategyV3_50_0 {
1839
1839
  name: string;
1840
1840
  variables?: VariablesV3_50_01;
1841
1841
  filter?: HistoryStrategyFilterV3_50_0;
1842
- execution: HistoryStrategyExecutionV3_50_0;
1842
+ transform: HistoryStrategyTransformV3_50_0;
1843
1843
  }
1844
1844
  export interface HistoryStrategyFilterV3_50_0 {
1845
1845
  toolCalls?: 'retain' | 'clear';
1846
1846
  }
1847
- export interface HistoryStrategyExecutionReplaceV3_50_0 {
1847
+ export interface HistoryStrategyTransformNoneV3_50_0 {
1848
+ type: 'none';
1849
+ }
1850
+ export interface HistoryStrategyTransformReplaceV3_50_0 {
1848
1851
  type: 'replace';
1849
1852
  template: string;
1850
1853
  }
1851
- export interface HistoryStrategyExecutionSummarizeV3_50_0 {
1854
+ export interface HistoryStrategyTransformSummarizeV3_50_0 {
1852
1855
  type: 'generate';
1853
1856
  service: string;
1854
1857
  model: string;
@@ -351,7 +351,7 @@ export type AgentStateSessionMemoryLocationV3_51_0 = AgentStateSessionMemoryLoca
351
351
  export type AgentStateSessionMemoryV3_51_0 = AgentStateSessionMemoryLocationV3_51_0[];
352
352
  export type GuardIDV3_51_0 = string;
353
353
  export type VariablesV3_51_01 = AgentVariableV3_51_0[];
354
- export type HistoryStrategyExecutionV3_51_0 = HistoryStrategyExecutionReplaceV3_51_0 | HistoryStrategyExecutionSummarizeV3_51_0;
354
+ export type HistoryStrategyTransformV3_51_0 = HistoryStrategyTransformNoneV3_51_0 | HistoryStrategyTransformReplaceV3_51_0 | HistoryStrategyTransformSummarizeV3_51_0;
355
355
  /**
356
356
  * The human-readable name of the Guard.
357
357
  */
@@ -1839,16 +1839,19 @@ export interface HistoryStrategyV3_51_0 {
1839
1839
  name: string;
1840
1840
  variables?: VariablesV3_51_01;
1841
1841
  filter?: HistoryStrategyFilterV3_51_0;
1842
- execution: HistoryStrategyExecutionV3_51_0;
1842
+ transform: HistoryStrategyTransformV3_51_0;
1843
1843
  }
1844
1844
  export interface HistoryStrategyFilterV3_51_0 {
1845
1845
  toolCalls?: 'retain' | 'clear';
1846
1846
  }
1847
- export interface HistoryStrategyExecutionReplaceV3_51_0 {
1847
+ export interface HistoryStrategyTransformNoneV3_51_0 {
1848
+ type: 'none';
1849
+ }
1850
+ export interface HistoryStrategyTransformReplaceV3_51_0 {
1848
1851
  type: 'replace';
1849
1852
  template: string;
1850
1853
  }
1851
- export interface HistoryStrategyExecutionSummarizeV3_51_0 {
1854
+ export interface HistoryStrategyTransformSummarizeV3_51_0 {
1852
1855
  type: 'generate';
1853
1856
  service: string;
1854
1857
  model: string;
@@ -351,7 +351,7 @@ export type AgentStateSessionMemoryLocationV3_52_0 = AgentStateSessionMemoryLoca
351
351
  export type AgentStateSessionMemoryV3_52_0 = AgentStateSessionMemoryLocationV3_52_0[];
352
352
  export type GuardIDV3_52_0 = string;
353
353
  export type VariablesV3_52_01 = AgentVariableV3_52_0[];
354
- export type HistoryStrategyExecutionV3_52_0 = HistoryStrategyExecutionReplaceV3_52_0 | HistoryStrategyExecutionSummarizeV3_52_0;
354
+ export type HistoryStrategyTransformV3_52_0 = HistoryStrategyTransformNoneV3_52_0 | HistoryStrategyTransformReplaceV3_52_0 | HistoryStrategyTransformSummarizeV3_52_0;
355
355
  /**
356
356
  * The human-readable name of the Guard.
357
357
  */
@@ -1839,16 +1839,19 @@ export interface HistoryStrategyV3_52_0 {
1839
1839
  name: string;
1840
1840
  variables?: VariablesV3_52_01;
1841
1841
  filter?: HistoryStrategyFilterV3_52_0;
1842
- execution: HistoryStrategyExecutionV3_52_0;
1842
+ transform: HistoryStrategyTransformV3_52_0;
1843
1843
  }
1844
1844
  export interface HistoryStrategyFilterV3_52_0 {
1845
1845
  toolCalls?: 'retain' | 'clear';
1846
1846
  }
1847
- export interface HistoryStrategyExecutionReplaceV3_52_0 {
1847
+ export interface HistoryStrategyTransformNoneV3_52_0 {
1848
+ type: 'none';
1849
+ }
1850
+ export interface HistoryStrategyTransformReplaceV3_52_0 {
1848
1851
  type: 'replace';
1849
1852
  template: string;
1850
1853
  }
1851
- export interface HistoryStrategyExecutionSummarizeV3_52_0 {
1854
+ export interface HistoryStrategyTransformSummarizeV3_52_0 {
1852
1855
  type: 'generate';
1853
1856
  service: string;
1854
1857
  model: string;
@@ -360,7 +360,7 @@ export type AgentStateSessionMemoryLocationV3_53_0 = AgentStateSessionMemoryLoca
360
360
  export type AgentStateSessionMemoryV3_53_0 = AgentStateSessionMemoryLocationV3_53_0[];
361
361
  export type GuardIDV3_53_0 = string;
362
362
  export type VariablesV3_53_01 = AgentVariableV3_53_0[];
363
- export type HistoryStrategyExecutionV3_53_0 = HistoryStrategyExecutionReplaceV3_53_0 | HistoryStrategyExecutionSummarizeV3_53_0;
363
+ export type HistoryStrategyTransformV3_53_0 = HistoryStrategyTransformNoneV3_53_0 | HistoryStrategyTransformReplaceV3_53_0 | HistoryStrategyTransformSummarizeV3_53_0;
364
364
  /**
365
365
  * The human-readable name of the Guard.
366
366
  */
@@ -1920,16 +1920,19 @@ export interface HistoryStrategyV3_53_0 {
1920
1920
  name: string;
1921
1921
  variables?: VariablesV3_53_01;
1922
1922
  filter?: HistoryStrategyFilterV3_53_0;
1923
- execution: HistoryStrategyExecutionV3_53_0;
1923
+ transform: HistoryStrategyTransformV3_53_0;
1924
1924
  }
1925
1925
  export interface HistoryStrategyFilterV3_53_0 {
1926
1926
  toolCalls?: 'retain' | 'clear';
1927
1927
  }
1928
- export interface HistoryStrategyExecutionReplaceV3_53_0 {
1928
+ export interface HistoryStrategyTransformNoneV3_53_0 {
1929
+ type: 'none';
1930
+ }
1931
+ export interface HistoryStrategyTransformReplaceV3_53_0 {
1929
1932
  type: 'replace';
1930
1933
  template: string;
1931
1934
  }
1932
- export interface HistoryStrategyExecutionSummarizeV3_53_0 {
1935
+ export interface HistoryStrategyTransformSummarizeV3_53_0 {
1933
1936
  type: 'generate';
1934
1937
  service: string;
1935
1938
  model: string;
@@ -364,7 +364,7 @@ export type AgentStateSessionMemoryLocationV3_54_0 = AgentStateSessionMemoryLoca
364
364
  export type AgentStateSessionMemoryV3_54_0 = AgentStateSessionMemoryLocationV3_54_0[];
365
365
  export type GuardIDV3_54_0 = string;
366
366
  export type VariablesV3_54_01 = AgentVariableV3_54_0[];
367
- export type HistoryStrategyExecutionV3_54_0 = HistoryStrategyExecutionReplaceV3_54_0 | HistoryStrategyExecutionSummarizeV3_54_0;
367
+ export type HistoryStrategyTransformV3_54_0 = HistoryStrategyTransformNoneV3_54_0 | HistoryStrategyTransformReplaceV3_54_0 | HistoryStrategyTransformSummarizeV3_54_0;
368
368
  /**
369
369
  * The human-readable name of the Guard.
370
370
  */
@@ -1939,16 +1939,19 @@ export interface HistoryStrategyV3_54_0 {
1939
1939
  name: string;
1940
1940
  variables?: VariablesV3_54_01;
1941
1941
  filter?: HistoryStrategyFilterV3_54_0;
1942
- execution: HistoryStrategyExecutionV3_54_0;
1942
+ transform: HistoryStrategyTransformV3_54_0;
1943
1943
  }
1944
1944
  export interface HistoryStrategyFilterV3_54_0 {
1945
1945
  toolCalls?: 'retain' | 'clear';
1946
1946
  }
1947
- export interface HistoryStrategyExecutionReplaceV3_54_0 {
1947
+ export interface HistoryStrategyTransformNoneV3_54_0 {
1948
+ type: 'none';
1949
+ }
1950
+ export interface HistoryStrategyTransformReplaceV3_54_0 {
1948
1951
  type: 'replace';
1949
1952
  template: string;
1950
1953
  }
1951
- export interface HistoryStrategyExecutionSummarizeV3_54_0 {
1954
+ export interface HistoryStrategyTransformSummarizeV3_54_0 {
1952
1955
  type: 'generate';
1953
1956
  service: string;
1954
1957
  model: string;
@@ -364,7 +364,7 @@ export type AgentStateSessionMemoryLocationV3_55_0 = AgentStateSessionMemoryLoca
364
364
  export type AgentStateSessionMemoryV3_55_0 = AgentStateSessionMemoryLocationV3_55_0[];
365
365
  export type GuardIDV3_55_0 = string;
366
366
  export type VariablesV3_55_01 = AgentVariableV3_55_0[];
367
- export type HistoryStrategyExecutionV3_55_0 = HistoryStrategyExecutionReplaceV3_55_0 | HistoryStrategyExecutionSummarizeV3_55_0;
367
+ export type HistoryStrategyTransformV3_55_0 = HistoryStrategyTransformNoneV3_55_0 | HistoryStrategyTransformReplaceV3_55_0 | HistoryStrategyTransformSummarizeV3_55_0;
368
368
  /**
369
369
  * The human-readable name of the Guard.
370
370
  */
@@ -1939,16 +1939,19 @@ export interface HistoryStrategyV3_55_0 {
1939
1939
  name: string;
1940
1940
  variables?: VariablesV3_55_01;
1941
1941
  filter?: HistoryStrategyFilterV3_55_0;
1942
- execution: HistoryStrategyExecutionV3_55_0;
1942
+ transform: HistoryStrategyTransformV3_55_0;
1943
1943
  }
1944
1944
  export interface HistoryStrategyFilterV3_55_0 {
1945
1945
  toolCalls?: 'retain' | 'clear';
1946
1946
  }
1947
- export interface HistoryStrategyExecutionReplaceV3_55_0 {
1947
+ export interface HistoryStrategyTransformNoneV3_55_0 {
1948
+ type: 'none';
1949
+ }
1950
+ export interface HistoryStrategyTransformReplaceV3_55_0 {
1948
1951
  type: 'replace';
1949
1952
  template: string;
1950
1953
  }
1951
- export interface HistoryStrategyExecutionSummarizeV3_55_0 {
1954
+ export interface HistoryStrategyTransformSummarizeV3_55_0 {
1952
1955
  type: 'generate';
1953
1956
  service: string;
1954
1957
  model: string;
@@ -65,11 +65,11 @@
65
65
  "filter": {
66
66
  "$ref": "#/definitions/historyStrategyFilter"
67
67
  },
68
- "execution": {
69
- "$ref": "#/definitions/historyStrategyExecution"
68
+ "transform": {
69
+ "$ref": "#/definitions/historyStrategyTransform"
70
70
  }
71
71
  },
72
- "required": ["name", "execution"],
72
+ "required": ["name", "transform"],
73
73
  "additionalProperties": false
74
74
  },
75
75
  "historyStrategyFilter": {
@@ -82,22 +82,36 @@
82
82
  },
83
83
  "additionalProperties": false
84
84
  },
85
- "historyStrategyExecution": {
86
- "title": "History Strategy Execution",
85
+ "historyStrategyTransform": {
86
+ "title": "History Strategy Transform",
87
87
  "discriminator": {
88
88
  "propertyName": "type"
89
89
  },
90
90
  "oneOf": [
91
91
  {
92
- "$ref": "#/definitions/historyStrategyExecutionReplace"
92
+ "$ref": "#/definitions/historyStrategyTransformNone"
93
+ },
94
+ {
95
+ "$ref": "#/definitions/historyStrategyTransformReplace"
93
96
  },
94
97
  {
95
- "$ref": "#/definitions/historyStrategyExecutionSummarize"
98
+ "$ref": "#/definitions/historyStrategyTransformSummarize"
96
99
  }
97
100
  ]
98
101
  },
99
- "historyStrategyExecutionReplace": {
100
- "title": "History Strategy Execution Replace",
102
+ "historyStrategyTransformNone": {
103
+ "title": "History Strategy Transform None",
104
+ "type": "object",
105
+ "properties": {
106
+ "type": {
107
+ "enum": ["none"]
108
+ }
109
+ },
110
+ "required": ["type"],
111
+ "additionalProperties": false
112
+ },
113
+ "historyStrategyTransformReplace": {
114
+ "title": "History Strategy Transform Replace",
101
115
  "type": "object",
102
116
  "properties": {
103
117
  "type": {
@@ -110,8 +124,8 @@
110
124
  "required": ["type", "template"],
111
125
  "additionalProperties": false
112
126
  },
113
- "historyStrategyExecutionSummarize": {
114
- "title": "History Strategy Execution Summarize",
127
+ "historyStrategyTransformSummarize": {
128
+ "title": "History Strategy Transform Summarize",
115
129
  "type": "object",
116
130
  "properties": {
117
131
  "type": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takeshape/schema",
3
- "version": "11.97.6",
3
+ "version": "11.98.6",
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.97.6",
62
- "@takeshape/json-schema": "11.97.6",
63
- "@takeshape/util": "11.97.6"
61
+ "@takeshape/errors": "11.98.6",
62
+ "@takeshape/json-schema": "11.98.6",
63
+ "@takeshape/util": "11.98.6"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@takeshape/json-schema-to-typescript": "^11.0.0",
@@ -76,7 +76,7 @@
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.97.6"
79
+ "@takeshape/infra": "11.98.6"
80
80
  },
81
81
  "engines": {
82
82
  "node": ">=20"