@scout9/app 1.0.0-alpha.0.2.5 → 1.0.0-alpha.0.2.7

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.
@@ -2,9 +2,9 @@
2
2
 
3
3
  require('node:fs');
4
4
  require('node:path');
5
- var index = require("./index-5ba79b93.cjs");
5
+ var index = require("./index-44e73470.cjs");
6
6
  require("./spirits-76855e30.cjs");
7
- require("./dev-60d45091.cjs");
7
+ require("./dev-170fa3f5.cjs");
8
8
  require('util');
9
9
  require('stream');
10
10
  require('path');
@@ -25,6 +25,7 @@ require('node:stream');
25
25
  require('node:string_decoder');
26
26
  require('node:readline');
27
27
  require('node:process');
28
+ require("./macros-eff64992.cjs");
28
29
  require('node:os');
29
30
  require('fs/promises');
30
31
  require('constants');
@@ -0,0 +1,55 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var macros = require("./macros-eff64992.cjs");
6
+
7
+
8
+
9
+ exports.AgentConfigurationSchema = macros.AgentConfigurationSchema;
10
+ exports.AgentSchema = macros.AgentSchema;
11
+ exports.AgentsConfigurationSchema = macros.AgentsConfigurationSchema;
12
+ exports.AgentsSchema = macros.AgentsSchema;
13
+ exports.ContextExampleSchema = macros.ContextExampleSchema;
14
+ exports.ContextExampleWithTrainingDataSchema = macros.ContextExampleWithTrainingDataSchema;
15
+ exports.ConversationAnticipateSchema = macros.ConversationAnticipateSchema;
16
+ exports.ConversationContext = macros.ConversationContext;
17
+ exports.ConversationSchema = macros.ConversationSchema;
18
+ exports.CustomerSchema = macros.CustomerSchema;
19
+ exports.CustomerValueSchema = macros.CustomerValueSchema;
20
+ exports.EntitiesRootConfigurationSchema = macros.EntitiesRootConfigurationSchema;
21
+ exports.EntitiesRootProjectConfigurationSchema = macros.EntitiesRootProjectConfigurationSchema;
22
+ exports.EntityApiConfigurationSchema = macros.EntityApiConfigurationSchema;
23
+ exports.EntityConfigurationSchema = macros.EntityConfigurationSchema;
24
+ exports.EntityRootProjectConfigurationSchema = macros.EntityRootProjectConfigurationSchema;
25
+ exports.FollowupBaseSchema = macros.FollowupBaseSchema;
26
+ exports.FollowupSchema = macros.FollowupSchema;
27
+ exports.ForwardSchema = macros.ForwardSchema;
28
+ exports.InstructionObjectSchema = macros.InstructionObjectSchema;
29
+ exports.InstructionSchema = macros.InstructionSchema;
30
+ exports.IntentWorkflowEventSchema = macros.IntentWorkflowEventSchema;
31
+ exports.MessageSchema = macros.MessageSchema;
32
+ exports.PersonaConfigurationSchema = macros.PersonaConfigurationSchema;
33
+ exports.PersonaSchema = macros.PersonaSchema;
34
+ exports.PersonasConfigurationSchema = macros.PersonasConfigurationSchema;
35
+ exports.PersonasSchema = macros.PersonasSchema;
36
+ exports.Scout9ProjectBuildConfigSchema = macros.Scout9ProjectBuildConfigSchema;
37
+ exports.Scout9ProjectConfigSchema = macros.Scout9ProjectConfigSchema;
38
+ exports.WorkflowConfigurationSchema = macros.WorkflowConfigurationSchema;
39
+ exports.WorkflowEventSchema = macros.WorkflowEventSchema;
40
+ exports.WorkflowFunctionSchema = macros.WorkflowFunctionSchema;
41
+ exports.WorkflowResponseMessage = macros.WorkflowResponseMessage;
42
+ exports.WorkflowResponseMessageApiRequest = macros.WorkflowResponseMessageApiRequest;
43
+ exports.WorkflowResponseMessageApiResponse = macros.WorkflowResponseMessageApiResponse;
44
+ exports.WorkflowResponseSchema = macros.WorkflowResponseSchema;
45
+ exports.WorkflowResponseSlotBaseSchema = macros.WorkflowResponseSlotBaseSchema;
46
+ exports.WorkflowResponseSlotSchema = macros.WorkflowResponseSlotSchema;
47
+ exports.WorkflowsConfigurationSchema = macros.WorkflowsConfigurationSchema;
48
+ exports.apiFunctionSchema = macros.apiFunctionSchema;
49
+ exports.deleteApiFunctionSchema = macros.deleteApiFunctionSchema;
50
+ exports.eventResponseSchema = macros.eventResponseSchema;
51
+ exports.getApiFunctionSchema = macros.getApiFunctionSchema;
52
+ exports.patchApiFunctionSchema = macros.patchApiFunctionSchema;
53
+ exports.postApiFunctionSchema = macros.postApiFunctionSchema;
54
+ exports.putApiFunctionSchema = macros.putApiFunctionSchema;
55
+ exports.queryApiFunctionSchema = macros.queryApiFunctionSchema;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var dev = require("./dev-60d45091.cjs");
5
+ var dev = require("./dev-170fa3f5.cjs");
6
6
  require("./spirits-76855e30.cjs");
7
7
  require('util');
8
8
  require('stream');
@@ -26,6 +26,7 @@ require('node:stream');
26
26
  require('node:string_decoder');
27
27
  require('node:readline');
28
28
  require('node:process');
29
+ require("./macros-eff64992.cjs");
29
30
  require('node:os');
30
31
  require('fs/promises');
31
32
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scout9/app",
3
- "version": "1.0.0-alpha.0.2.5",
3
+ "version": "1.0.0-alpha.0.2.7",
4
4
  "description": "Build and deploy your Scout9 app for SMS auto replies",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -56,6 +56,11 @@
56
56
  "import": "./src/testing-tools/spirits.js",
57
57
  "types": "./types/index.d.ts",
58
58
  "require": "./dist/spirits.cjs"
59
+ },
60
+ "./schemas": {
61
+ "import": "./src/schemas.js",
62
+ "types": "./types/index.d.ts",
63
+ "require": "./dist/schemas.cjs"
59
64
  }
60
65
  },
61
66
  "keywords": [],
package/src/cli.js CHANGED
@@ -87,14 +87,13 @@ prog
87
87
  .option('--src', 'Project source code folder', 'src')
88
88
  .option('--sync, -s', 'Syncs project after deploying (overwriting code)', true)
89
89
  .option('--dest', 'Project local destination', './build')
90
- .action(async ({mode, src, dest, sync}) => {
90
+ .action(async ({src, dest, sync}) => {
91
91
  if (!fs.existsSync('.env')) {
92
92
  console.warn(`Missing ${path.resolve('.env')} — skipping`);
93
93
  return;
94
94
  }
95
- mode = coerceMode(mode);
96
95
  try {
97
- await Scout9Platform.deploy({cwd: process.cwd(), mode: coerceMode(mode), src, dest, sync});
96
+ await Scout9Platform.deploy({cwd: process.cwd(), mode: 'production', src, dest, sync});
98
97
  process.exit(0);
99
98
  } catch (e) {
100
99
  handle_error(e);
package/src/exports.js CHANGED
@@ -5,7 +5,6 @@ export { EventResponse } from './runtime/index.js';
5
5
 
6
6
  export * from './testing-tools/index.js';
7
7
  export * from './runtime/client/index.js';
8
- export * from './runtime/schemas/index.js';
9
8
  export * from './runtime/macros/index.js';
10
9
 
11
10
  /**