@takeshape/schema 11.39.0 → 11.40.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 +3 -1
- package/dist/agents.d.ts.map +1 -1
- package/dist/agents.js +10 -1
- package/dist/builtin-schema.d.ts.map +1 -1
- package/dist/builtin-schema.js +3 -0
- package/es/agents.js +9 -0
- package/es/builtin-schema.js +3 -0
- package/package.json +5 -5
package/dist/agents.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { type AgentJSON } from './project-schema';
|
|
1
|
+
import { type AgentAPIArgument, type AgentJSON } from './project-schema';
|
|
2
2
|
export declare const END_AGENT_EXECUTION = "endAgentExecution";
|
|
3
|
+
export declare const BUILT_IN_CHAT_ARGS: AgentAPIArgument[];
|
|
4
|
+
export declare const BUILT_IN_CHAT_ARG_NAMES: string[];
|
|
3
5
|
export type AgentEndTransition = {
|
|
4
6
|
type: 'done' | 'progress';
|
|
5
7
|
originStateId: string;
|
package/dist/agents.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/agents.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,KAAK,SAAS,EAA4B,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/agents.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,KAAK,gBAAgB,EAAE,KAAK,SAAS,EAA4B,MAAM,kBAAkB,CAAC;AAElG,eAAO,MAAM,mBAAmB,sBAAsB,CAAC;AAEvD,eAAO,MAAM,kBAAkB,EAAE,gBAAgB,EAUhD,CAAC;AAEF,eAAO,MAAM,uBAAuB,UAA6C,CAAC;AAElF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAwBF,eAAO,MAAM,sBAAsB,UAAW,SAAS,+BAA2B,kBAAkB,EAUnG,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAAW,SAAS,+BAA2B,IAAI,MAAM,CAKtF,CAAC;AAEF,eAAO,MAAM,+BAA+B,cAAe,MAAM,KAAG,MAEnE,CAAC"}
|
package/dist/agents.js
CHANGED
|
@@ -3,10 +3,19 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.getInspectAgentSessionQueryName = exports.getAgentEndTransitions = exports.getAgentEndStates = exports.END_AGENT_EXECUTION = void 0;
|
|
6
|
+
exports.getInspectAgentSessionQueryName = exports.getAgentEndTransitions = exports.getAgentEndStates = exports.END_AGENT_EXECUTION = exports.BUILT_IN_CHAT_ARG_NAMES = exports.BUILT_IN_CHAT_ARGS = void 0;
|
|
7
7
|
var _upperFirst = _interopRequireDefault(require("lodash/upperFirst"));
|
|
8
8
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
9
|
const END_AGENT_EXECUTION = exports.END_AGENT_EXECUTION = 'endAgentExecution';
|
|
10
|
+
const BUILT_IN_CHAT_ARGS = exports.BUILT_IN_CHAT_ARGS = [{
|
|
11
|
+
argName: 'input',
|
|
12
|
+
argType: 'string',
|
|
13
|
+
required: true
|
|
14
|
+
}, {
|
|
15
|
+
argName: 'sessionId',
|
|
16
|
+
argType: 'sessionId'
|
|
17
|
+
}];
|
|
18
|
+
const BUILT_IN_CHAT_ARG_NAMES = exports.BUILT_IN_CHAT_ARG_NAMES = BUILT_IN_CHAT_ARGS.map(arg => arg.argName);
|
|
10
19
|
const transitionCanEnd = (transition, includeSuspend = false) => {
|
|
11
20
|
if (!transition || transition.length === 0) {
|
|
12
21
|
return true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builtin-schema.d.ts","sourceRoot":"","sources":["../../src/builtin-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EAAC,KAAK,OAAO,EAAC,MAAM,eAAe,CAAC;AAE3C,wBAAgB,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAEjD;AAID,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAEnE;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAEnE;AAED,eAAO,MAAM,SAAS,EAAE,SAKvB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"builtin-schema.d.ts","sourceRoot":"","sources":["../../src/builtin-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EAAC,KAAK,OAAO,EAAC,MAAM,eAAe,CAAC;AAE3C,wBAAgB,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAEjD;AAID,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAEnE;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAEnE;AAED,eAAO,MAAM,SAAS,EAAE,SAKvB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,QA2X3B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,OAsN1B,CAAC"}
|
package/dist/builtin-schema.js
CHANGED
package/es/agents.js
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import upperFirst from 'lodash/upperFirst';
|
|
2
2
|
export const END_AGENT_EXECUTION = 'endAgentExecution';
|
|
3
|
+
export const BUILT_IN_CHAT_ARGS = [{
|
|
4
|
+
argName: 'input',
|
|
5
|
+
argType: 'string',
|
|
6
|
+
required: true
|
|
7
|
+
}, {
|
|
8
|
+
argName: 'sessionId',
|
|
9
|
+
argType: 'sessionId'
|
|
10
|
+
}];
|
|
11
|
+
export const BUILT_IN_CHAT_ARG_NAMES = BUILT_IN_CHAT_ARGS.map(arg => arg.argName);
|
|
3
12
|
const transitionCanEnd = (transition, includeSuspend = false) => {
|
|
4
13
|
if (!transition || transition.length === 0) {
|
|
5
14
|
return true;
|
package/es/builtin-schema.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takeshape/schema",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.40.0",
|
|
4
4
|
"description": "TakeShape Schema",
|
|
5
5
|
"homepage": "https://www.takeshape.io",
|
|
6
6
|
"repository": {
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"p-reduce": "^2.1.0",
|
|
29
29
|
"semver": "^7.3.2",
|
|
30
30
|
"tiny-invariant": "^1.2.0",
|
|
31
|
-
"@takeshape/errors": "11.
|
|
32
|
-
"@takeshape/json-schema": "11.
|
|
33
|
-
"@takeshape/util": "11.
|
|
31
|
+
"@takeshape/errors": "11.40.0",
|
|
32
|
+
"@takeshape/json-schema": "11.40.0",
|
|
33
|
+
"@takeshape/util": "11.40.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@takeshape/json-schema-to-typescript": "^11.0.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"meow": "^9.0.0",
|
|
47
47
|
"p-map": "^5.0.0",
|
|
48
48
|
"shortid": "^2.2.15",
|
|
49
|
-
"@takeshape/infra": "11.
|
|
49
|
+
"@takeshape/infra": "11.40.0"
|
|
50
50
|
},
|
|
51
51
|
"engines": {
|
|
52
52
|
"node": ">=20"
|