@scout9/app 1.0.0-alpha.0.5.4 → 1.0.0-alpha.0.5.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.
- package/dist/{dev-7e3c6095.cjs → dev-ef016f0e.cjs} +2 -2
- package/dist/{index-4dfed9d3.cjs → index-1a891022.cjs} +8 -7
- package/dist/index.cjs +3 -3
- package/dist/{macros-c8392690.cjs → macros-f855de63.cjs} +8 -7
- package/dist/{multipart-parser-65dc2a0b.cjs → multipart-parser-2abdb5f5.cjs} +3 -3
- package/dist/schemas.cjs +1 -1
- package/dist/testing-tools.cjs +2 -2
- package/package.json +1 -1
- package/src/runtime/schemas/commands.js +10 -0
- package/src/runtime/schemas/config.js +2 -1
- package/src/runtime/schemas/conversation.js +2 -2
- package/src/runtime/schemas/index.js +5 -4
- package/src/runtime/schemas/users.js +1 -1
- package/src/runtime/schemas/workflow.js +0 -7
- package/src/utils/project.js +2 -1
- package/types/index.d.ts +7473 -7473
- package/types/index.d.ts.map +31 -29
|
@@ -21,7 +21,7 @@ var node_url = require('node:url');
|
|
|
21
21
|
var node_events = require('node:events');
|
|
22
22
|
var Stream = require('node:stream');
|
|
23
23
|
var node_string_decoder = require('node:string_decoder');
|
|
24
|
-
var macros = require("./macros-
|
|
24
|
+
var macros = require("./macros-f855de63.cjs");
|
|
25
25
|
var readline = require('node:readline');
|
|
26
26
|
var process$2 = require('node:process');
|
|
27
27
|
var node_os = require('node:os');
|
|
@@ -35164,7 +35164,7 @@ function _loadUserPackageJson() {
|
|
|
35164
35164
|
targetPkgUrl = isTest ? packageTestJsonUrl : packageJsonUrl;
|
|
35165
35165
|
_context2.t0 = JSON;
|
|
35166
35166
|
_context2.next = 10;
|
|
35167
|
-
return fs__default["default"].readFile(new URL(targetPkgUrl, (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('dev-
|
|
35167
|
+
return fs__default["default"].readFile(new URL(targetPkgUrl, (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('dev-ef016f0e.js', document.baseURI).href))), 'utf-8');
|
|
35168
35168
|
case 10:
|
|
35169
35169
|
_context2.t1 = _context2.sent;
|
|
35170
35170
|
pkg = _context2.t0.parse.call(_context2.t0, _context2.t1);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var spirits = require("./spirits-2ab4d673.cjs");
|
|
4
|
-
var dev = require("./dev-
|
|
5
|
-
var macros = require("./macros-
|
|
4
|
+
var dev = require("./dev-ef016f0e.cjs");
|
|
5
|
+
var macros = require("./macros-f855de63.cjs");
|
|
6
6
|
var require$$0 = require('fs');
|
|
7
7
|
var require$$2$1 = require('events');
|
|
8
8
|
var require$$1 = require('path');
|
|
@@ -29483,7 +29483,7 @@ class Body {
|
|
|
29483
29483
|
}
|
|
29484
29484
|
const {
|
|
29485
29485
|
toFormData
|
|
29486
|
-
} = await Promise.resolve().then(function () { return require("./multipart-parser-
|
|
29486
|
+
} = await Promise.resolve().then(function () { return require("./multipart-parser-2abdb5f5.cjs"); });
|
|
29487
29487
|
return toFormData(this.body, ct);
|
|
29488
29488
|
}
|
|
29489
29489
|
|
|
@@ -41884,7 +41884,7 @@ function _loadUserPackageJson() {
|
|
|
41884
41884
|
targetPkgUrl = isTest ? packageTestJsonUrl : packageJsonUrl;
|
|
41885
41885
|
_context.t0 = JSON;
|
|
41886
41886
|
_context.next = 10;
|
|
41887
|
-
return fs__default["default"].readFile(new URL(targetPkgUrl, (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('index-
|
|
41887
|
+
return fs__default["default"].readFile(new URL(targetPkgUrl, (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('index-1a891022.js', document.baseURI).href))), 'utf-8');
|
|
41888
41888
|
case 10:
|
|
41889
41889
|
_context.t1 = _context.sent;
|
|
41890
41890
|
pkg = _context.t0.parse.call(_context.t0, _context.t1);
|
|
@@ -42925,7 +42925,8 @@ var ProjectFiles = /*#__PURE__*/function () {
|
|
|
42925
42925
|
_context4.t6 = {
|
|
42926
42926
|
entities: [],
|
|
42927
42927
|
agents: [],
|
|
42928
|
-
workflows: []
|
|
42928
|
+
workflows: [],
|
|
42929
|
+
commands: []
|
|
42929
42930
|
};
|
|
42930
42931
|
projectConfig = (0, _context4.t0)(_context4.t4, _context4.t5, _context4.t6);
|
|
42931
42932
|
_context4.next = 12;
|
|
@@ -43175,7 +43176,7 @@ var ProjectFiles = /*#__PURE__*/function () {
|
|
|
43175
43176
|
return ProjectFiles;
|
|
43176
43177
|
}();
|
|
43177
43178
|
|
|
43178
|
-
var __filename$1 = node_url.fileURLToPath((typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('index-
|
|
43179
|
+
var __filename$1 = node_url.fileURLToPath((typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('index-1a891022.js', document.baseURI).href)));
|
|
43179
43180
|
var __dirname$1 = path__default["default"].dirname(__filename$1);
|
|
43180
43181
|
function zipDirectory(source, out) {
|
|
43181
43182
|
var archive = archiver$1('tar', {
|
|
@@ -43390,7 +43391,7 @@ function _buildApp() {
|
|
|
43390
43391
|
case 11:
|
|
43391
43392
|
_context4.t0 = JSON;
|
|
43392
43393
|
_context4.next = 14;
|
|
43393
|
-
return fs__default["default"].readFile(new URL(templatePackagePath, (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('index-
|
|
43394
|
+
return fs__default["default"].readFile(new URL(templatePackagePath, (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('index-1a891022.js', document.baseURI).href))), 'utf-8');
|
|
43394
43395
|
case 14:
|
|
43395
43396
|
_context4.t1 = _context4.sent;
|
|
43396
43397
|
packageTemplate = _context4.t0.parse.call(_context4.t0, _context4.t1);
|
package/dist/index.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require("./index-
|
|
6
|
-
var dev = require("./dev-
|
|
5
|
+
var index = require("./index-1a891022.cjs");
|
|
6
|
+
var dev = require("./dev-ef016f0e.cjs");
|
|
7
7
|
require("./spirits-2ab4d673.cjs");
|
|
8
|
-
require("./macros-
|
|
8
|
+
require("./macros-f855de63.cjs");
|
|
9
9
|
require('fs');
|
|
10
10
|
require('events');
|
|
11
11
|
require('path');
|
|
@@ -4061,7 +4061,7 @@ var CustomerSchema = z.object({
|
|
|
4061
4061
|
joined: z.string().nullable().optional(),
|
|
4062
4062
|
stripe: z.string().nullable().optional(),
|
|
4063
4063
|
stripeDev: z.string().nullable().optional()
|
|
4064
|
-
}).catchall(CustomerValueSchema);
|
|
4064
|
+
}).catchall(CustomerValueSchema.optional());
|
|
4065
4065
|
var AgentSchema = z.object({
|
|
4066
4066
|
deployed: z.object({
|
|
4067
4067
|
web: z.string({
|
|
@@ -4131,6 +4131,12 @@ var PersonasConfigurationSchema = z.array(PersonaConfigurationSchema);
|
|
|
4131
4131
|
var AgentsSchema = z.array(AgentSchema);
|
|
4132
4132
|
var PersonasSchema = z.array(PersonaSchema);
|
|
4133
4133
|
|
|
4134
|
+
var CommandSchema = z.object({
|
|
4135
|
+
path: z.string(),
|
|
4136
|
+
entity: zId('Command ID', z.string())
|
|
4137
|
+
});
|
|
4138
|
+
var CommandsSchema = z.array(CommandSchema);
|
|
4139
|
+
|
|
4134
4140
|
var ConversationContext = z.record(z.union([z.any(), z.string(), z.number(), z["boolean"](), z["null"](), z.array(z.union([z.string(), z.number(), z["boolean"](), z["null"]()]))]));
|
|
4135
4141
|
var ConversationAnticipateSchema = z.object({
|
|
4136
4142
|
type: z["enum"](['did', 'literal', 'context'], {
|
|
@@ -4195,7 +4201,7 @@ var ConversationSchema = z.object({
|
|
|
4195
4201
|
/**
|
|
4196
4202
|
* Whether this conversation is part of a command flow
|
|
4197
4203
|
*/
|
|
4198
|
-
command:
|
|
4204
|
+
command: CommandSchema.optional()
|
|
4199
4205
|
});
|
|
4200
4206
|
|
|
4201
4207
|
var ForwardSchema = z.union([z["boolean"](), z.string(), z.object({
|
|
@@ -4279,11 +4285,6 @@ var WorkflowConfigurationSchema = z.object({
|
|
|
4279
4285
|
entity: zId('Workflow Folder', z.string())
|
|
4280
4286
|
});
|
|
4281
4287
|
var WorkflowsConfigurationSchema = z.array(WorkflowConfigurationSchema);
|
|
4282
|
-
var CommandSchema = z.object({
|
|
4283
|
-
path: z.string(),
|
|
4284
|
-
entity: zId('Command ID', z.string())
|
|
4285
|
-
});
|
|
4286
|
-
var CommandsSchema = z.array(CommandSchema);
|
|
4287
4288
|
var IntentWorkflowEventSchema = z.object({
|
|
4288
4289
|
current: z.string().nullable(),
|
|
4289
4290
|
flow: z.array(z.string()),
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
require('node:fs');
|
|
4
4
|
require('node:path');
|
|
5
|
-
var index = require("./index-
|
|
5
|
+
var index = require("./index-1a891022.cjs");
|
|
6
6
|
require("./spirits-2ab4d673.cjs");
|
|
7
|
-
require("./dev-
|
|
7
|
+
require("./dev-ef016f0e.cjs");
|
|
8
8
|
require('util');
|
|
9
9
|
require('stream');
|
|
10
10
|
require('path');
|
|
@@ -23,7 +23,7 @@ require('node:url');
|
|
|
23
23
|
require('node:events');
|
|
24
24
|
require('node:stream');
|
|
25
25
|
require('node:string_decoder');
|
|
26
|
-
require("./macros-
|
|
26
|
+
require("./macros-f855de63.cjs");
|
|
27
27
|
require('node:readline');
|
|
28
28
|
require('node:process');
|
|
29
29
|
require('node:os');
|
package/dist/schemas.cjs
CHANGED
package/dist/testing-tools.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var dev = require("./dev-
|
|
5
|
+
var dev = require("./dev-ef016f0e.cjs");
|
|
6
6
|
require("./spirits-2ab4d673.cjs");
|
|
7
7
|
require('util');
|
|
8
8
|
require('stream');
|
|
@@ -24,7 +24,7 @@ require('node:url');
|
|
|
24
24
|
require('node:events');
|
|
25
25
|
require('node:stream');
|
|
26
26
|
require('node:string_decoder');
|
|
27
|
-
require("./macros-
|
|
27
|
+
require("./macros-f855de63.cjs");
|
|
28
28
|
require('node:readline');
|
|
29
29
|
require('node:process');
|
|
30
30
|
require('node:os');
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { AgentsSchema } from './users.js';
|
|
3
3
|
import { EntitiesRootProjectConfigurationSchema } from './entity.js';
|
|
4
|
-
import {
|
|
4
|
+
import { WorkflowsConfigurationSchema } from './workflow.js';
|
|
5
|
+
import { CommandsSchema } from './commands.js';
|
|
5
6
|
|
|
6
7
|
const LlmModelOptions = z.union([
|
|
7
8
|
z.literal('gpt-4-1106-preview'),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { zId } from './utils.js';
|
|
3
|
-
import {
|
|
3
|
+
import { CommandSchema } from './commands.js';
|
|
4
4
|
|
|
5
5
|
export const ConversationContext = z.record(
|
|
6
6
|
z.union([
|
|
@@ -48,5 +48,5 @@ export const ConversationSchema = z.object({
|
|
|
48
48
|
/**
|
|
49
49
|
* Whether this conversation is part of a command flow
|
|
50
50
|
*/
|
|
51
|
-
command:
|
|
51
|
+
command: CommandSchema.optional()
|
|
52
52
|
});
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export * from './users.js';
|
|
2
1
|
export * from './api.js';
|
|
2
|
+
export * from './commands.js';
|
|
3
|
+
export * from './conversation.js';
|
|
3
4
|
export * from './config.js';
|
|
4
5
|
export * from './entity.js';
|
|
5
|
-
export * from './message.js';
|
|
6
|
-
export * from './workflow.js';
|
|
7
6
|
export * from './platform.js';
|
|
8
|
-
export * from './conversation.js';
|
|
9
7
|
export * from './macros.js';
|
|
8
|
+
export * from './message.js';
|
|
9
|
+
export * from './users.js';
|
|
10
|
+
export * from './workflow.js';
|
|
10
11
|
|
|
@@ -22,7 +22,7 @@ export const CustomerSchema = z.object({
|
|
|
22
22
|
joined: z.string().nullable().optional(),
|
|
23
23
|
stripe: z.string().nullable().optional(),
|
|
24
24
|
stripeDev: z.string().nullable().optional()
|
|
25
|
-
}).catchall(CustomerValueSchema);
|
|
25
|
+
}).catchall(CustomerValueSchema.optional());
|
|
26
26
|
|
|
27
27
|
export const AgentSchema = z.object({
|
|
28
28
|
deployed: z.object({
|
|
@@ -117,13 +117,6 @@ export const WorkflowConfigurationSchema = z.object({
|
|
|
117
117
|
|
|
118
118
|
export const WorkflowsConfigurationSchema = z.array(WorkflowConfigurationSchema);
|
|
119
119
|
|
|
120
|
-
export const CommandSchema = z.object({
|
|
121
|
-
path: z.string(),
|
|
122
|
-
entity: zId('Command ID', z.string())
|
|
123
|
-
});
|
|
124
|
-
|
|
125
|
-
export const CommandsSchema = z.array(CommandSchema);
|
|
126
|
-
|
|
127
120
|
export const IntentWorkflowEventSchema = z.object({
|
|
128
121
|
current: z.string().nullable(),
|
|
129
122
|
flow: z.array(z.string()),
|
package/src/utils/project.js
CHANGED