@scout9/app 1.0.0-alpha.0.5.5 → 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-0474d2a6.cjs → dev-ef016f0e.cjs} +2 -2
- package/dist/{index-81a32056.cjs → index-1a891022.cjs} +6 -6
- package/dist/index.cjs +3 -3
- package/dist/{macros-ee7553f8.cjs → macros-f855de63.cjs} +1 -1
- package/dist/{multipart-parser-f24b1f9a.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/conversation.js +2 -2
- package/types/index.d.ts +16 -16
|
@@ -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);
|
|
@@ -43176,7 +43176,7 @@ var ProjectFiles = /*#__PURE__*/function () {
|
|
|
43176
43176
|
return ProjectFiles;
|
|
43177
43177
|
}();
|
|
43178
43178
|
|
|
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-
|
|
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)));
|
|
43180
43180
|
var __dirname$1 = path__default["default"].dirname(__filename$1);
|
|
43181
43181
|
function zipDirectory(source, out) {
|
|
43182
43182
|
var archive = archiver$1('tar', {
|
|
@@ -43391,7 +43391,7 @@ function _buildApp() {
|
|
|
43391
43391
|
case 11:
|
|
43392
43392
|
_context4.t0 = JSON;
|
|
43393
43393
|
_context4.next = 14;
|
|
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-
|
|
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');
|
|
43395
43395
|
case 14:
|
|
43396
43396
|
_context4.t1 = _context4.sent;
|
|
43397
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');
|
|
@@ -4201,7 +4201,7 @@ var ConversationSchema = z.object({
|
|
|
4201
4201
|
/**
|
|
4202
4202
|
* Whether this conversation is part of a command flow
|
|
4203
4203
|
*/
|
|
4204
|
-
command:
|
|
4204
|
+
command: CommandSchema.optional()
|
|
4205
4205
|
});
|
|
4206
4206
|
|
|
4207
4207
|
var ForwardSchema = z.union([z["boolean"](), z.string(), z.object({
|
|
@@ -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,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
|
});
|
package/types/index.d.ts
CHANGED
|
@@ -982,7 +982,7 @@ declare module '@scout9/app/schemas' {
|
|
|
982
982
|
/**
|
|
983
983
|
* Whether this conversation is part of a command flow
|
|
984
984
|
*/
|
|
985
|
-
command: z.ZodOptional<z.
|
|
985
|
+
command: z.ZodOptional<z.ZodObject<{
|
|
986
986
|
path: z.ZodString;
|
|
987
987
|
entity: z.ZodString;
|
|
988
988
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -991,7 +991,7 @@ declare module '@scout9/app/schemas' {
|
|
|
991
991
|
}, {
|
|
992
992
|
path: string;
|
|
993
993
|
entity: string;
|
|
994
|
-
}
|
|
994
|
+
}>>;
|
|
995
995
|
}, "strip", z.ZodTypeAny, {
|
|
996
996
|
environment: "email" | "phone" | "web";
|
|
997
997
|
$agent: string;
|
|
@@ -1022,7 +1022,7 @@ declare module '@scout9/app/schemas' {
|
|
|
1022
1022
|
command?: {
|
|
1023
1023
|
path: string;
|
|
1024
1024
|
entity: string;
|
|
1025
|
-
}
|
|
1025
|
+
} | undefined;
|
|
1026
1026
|
}, {
|
|
1027
1027
|
environment: "email" | "phone" | "web";
|
|
1028
1028
|
$agent: string;
|
|
@@ -1053,7 +1053,7 @@ declare module '@scout9/app/schemas' {
|
|
|
1053
1053
|
command?: {
|
|
1054
1054
|
path: string;
|
|
1055
1055
|
entity: string;
|
|
1056
|
-
}
|
|
1056
|
+
} | undefined;
|
|
1057
1057
|
}>;
|
|
1058
1058
|
/**
|
|
1059
1059
|
* Represents the configuration provided in src/index.{js | ts} in a project
|
|
@@ -4271,7 +4271,7 @@ declare module '@scout9/app/schemas' {
|
|
|
4271
4271
|
keywords: string[];
|
|
4272
4272
|
}[] | undefined;
|
|
4273
4273
|
}>>;
|
|
4274
|
-
command: z.ZodOptional<z.
|
|
4274
|
+
command: z.ZodOptional<z.ZodObject<{
|
|
4275
4275
|
path: z.ZodString;
|
|
4276
4276
|
entity: z.ZodString;
|
|
4277
4277
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4280,7 +4280,7 @@ declare module '@scout9/app/schemas' {
|
|
|
4280
4280
|
}, {
|
|
4281
4281
|
path: string;
|
|
4282
4282
|
entity: string;
|
|
4283
|
-
}
|
|
4283
|
+
}>>;
|
|
4284
4284
|
}, "strip", z.ZodTypeAny, {
|
|
4285
4285
|
environment: "email" | "phone" | "web";
|
|
4286
4286
|
$agent: string;
|
|
@@ -4311,7 +4311,7 @@ declare module '@scout9/app/schemas' {
|
|
|
4311
4311
|
command?: {
|
|
4312
4312
|
path: string;
|
|
4313
4313
|
entity: string;
|
|
4314
|
-
}
|
|
4314
|
+
} | undefined;
|
|
4315
4315
|
}, {
|
|
4316
4316
|
environment: "email" | "phone" | "web";
|
|
4317
4317
|
$agent: string;
|
|
@@ -4342,7 +4342,7 @@ declare module '@scout9/app/schemas' {
|
|
|
4342
4342
|
command?: {
|
|
4343
4343
|
path: string;
|
|
4344
4344
|
entity: string;
|
|
4345
|
-
}
|
|
4345
|
+
} | undefined;
|
|
4346
4346
|
}>;
|
|
4347
4347
|
context: z.ZodAny;
|
|
4348
4348
|
message: z.ZodObject<{
|
|
@@ -4647,7 +4647,7 @@ declare module '@scout9/app/schemas' {
|
|
|
4647
4647
|
command?: {
|
|
4648
4648
|
path: string;
|
|
4649
4649
|
entity: string;
|
|
4650
|
-
}
|
|
4650
|
+
} | undefined;
|
|
4651
4651
|
};
|
|
4652
4652
|
stagnationCount: number;
|
|
4653
4653
|
context?: any;
|
|
@@ -4751,7 +4751,7 @@ declare module '@scout9/app/schemas' {
|
|
|
4751
4751
|
command?: {
|
|
4752
4752
|
path: string;
|
|
4753
4753
|
entity: string;
|
|
4754
|
-
}
|
|
4754
|
+
} | undefined;
|
|
4755
4755
|
};
|
|
4756
4756
|
stagnationCount: number;
|
|
4757
4757
|
context?: any;
|
|
@@ -9418,7 +9418,7 @@ declare module '@scout9/app/schemas' {
|
|
|
9418
9418
|
keywords: string[];
|
|
9419
9419
|
}[] | undefined;
|
|
9420
9420
|
}>>;
|
|
9421
|
-
command: z.ZodOptional<z.
|
|
9421
|
+
command: z.ZodOptional<z.ZodObject<{
|
|
9422
9422
|
path: z.ZodString;
|
|
9423
9423
|
entity: z.ZodString;
|
|
9424
9424
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9427,7 +9427,7 @@ declare module '@scout9/app/schemas' {
|
|
|
9427
9427
|
}, {
|
|
9428
9428
|
path: string;
|
|
9429
9429
|
entity: string;
|
|
9430
|
-
}
|
|
9430
|
+
}>>;
|
|
9431
9431
|
}, "strip", z.ZodTypeAny, {
|
|
9432
9432
|
environment: "email" | "phone" | "web";
|
|
9433
9433
|
$agent: string;
|
|
@@ -9458,7 +9458,7 @@ declare module '@scout9/app/schemas' {
|
|
|
9458
9458
|
command?: {
|
|
9459
9459
|
path: string;
|
|
9460
9460
|
entity: string;
|
|
9461
|
-
}
|
|
9461
|
+
} | undefined;
|
|
9462
9462
|
}, {
|
|
9463
9463
|
environment: "email" | "phone" | "web";
|
|
9464
9464
|
$agent: string;
|
|
@@ -9489,7 +9489,7 @@ declare module '@scout9/app/schemas' {
|
|
|
9489
9489
|
command?: {
|
|
9490
9490
|
path: string;
|
|
9491
9491
|
entity: string;
|
|
9492
|
-
}
|
|
9492
|
+
} | undefined;
|
|
9493
9493
|
}>;
|
|
9494
9494
|
context: z.ZodAny;
|
|
9495
9495
|
message: z.ZodObject<{
|
|
@@ -9794,7 +9794,7 @@ declare module '@scout9/app/schemas' {
|
|
|
9794
9794
|
command?: {
|
|
9795
9795
|
path: string;
|
|
9796
9796
|
entity: string;
|
|
9797
|
-
}
|
|
9797
|
+
} | undefined;
|
|
9798
9798
|
};
|
|
9799
9799
|
stagnationCount: number;
|
|
9800
9800
|
context?: any;
|
|
@@ -9898,7 +9898,7 @@ declare module '@scout9/app/schemas' {
|
|
|
9898
9898
|
command?: {
|
|
9899
9899
|
path: string;
|
|
9900
9900
|
entity: string;
|
|
9901
|
-
}
|
|
9901
|
+
} | undefined;
|
|
9902
9902
|
};
|
|
9903
9903
|
stagnationCount: number;
|
|
9904
9904
|
context?: any;
|