lua-cli 3.7.3 → 3.7.4

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.
Files changed (66) hide show
  1. package/README.md +26 -0
  2. package/dist/api/chat.api.service.d.ts.map +1 -1
  3. package/dist/api/chat.api.service.js +4 -0
  4. package/dist/api/chat.api.service.js.map +1 -1
  5. package/dist/api/http.client.d.ts +25 -0
  6. package/dist/api/http.client.d.ts.map +1 -1
  7. package/dist/api/http.client.js +88 -5
  8. package/dist/api/http.client.js.map +1 -1
  9. package/dist/cli/command-definitions.d.ts.map +1 -1
  10. package/dist/cli/command-definitions.js +1 -6
  11. package/dist/cli/command-definitions.js.map +1 -1
  12. package/dist/commands/chat.js +1 -1
  13. package/dist/commands/chat.js.map +1 -1
  14. package/dist/commands/index.d.ts +0 -1
  15. package/dist/commands/index.d.ts.map +1 -1
  16. package/dist/commands/index.js +0 -1
  17. package/dist/commands/index.js.map +1 -1
  18. package/dist/commands/test.js +1 -1
  19. package/dist/commands/test.js.map +1 -1
  20. package/dist/config/constants.d.ts +7 -0
  21. package/dist/config/constants.d.ts.map +1 -1
  22. package/dist/config/constants.js +10 -0
  23. package/dist/config/constants.js.map +1 -1
  24. package/dist/services/analytics.d.ts +6 -0
  25. package/dist/services/analytics.d.ts.map +1 -1
  26. package/dist/services/analytics.js +19 -0
  27. package/dist/services/analytics.js.map +1 -1
  28. package/dist/services/auth.d.ts +11 -4
  29. package/dist/services/auth.d.ts.map +1 -1
  30. package/dist/services/auth.js +35 -6
  31. package/dist/services/auth.js.map +1 -1
  32. package/dist/utils/auth-flows.d.ts +4 -4
  33. package/dist/utils/auth-flows.d.ts.map +1 -1
  34. package/dist/utils/auth-flows.js +53 -37
  35. package/dist/utils/auth-flows.js.map +1 -1
  36. package/dist/utils/keytar-loader.d.ts.map +1 -1
  37. package/dist/utils/keytar-loader.js +8 -1
  38. package/dist/utils/keytar-loader.js.map +1 -1
  39. package/dist/utils/sandbox-storage.js +1 -1
  40. package/dist/utils/sandbox-storage.js.map +1 -1
  41. package/node_modules/@lua/shared-types/src/index.ts +1 -0
  42. package/node_modules/@lua/shared-types/src/sandbox-contract.ts +42 -0
  43. package/package.json +4 -17
  44. package/dist/commands/dev.d.ts +0 -27
  45. package/dist/commands/dev.d.ts.map +0 -1
  46. package/dist/commands/dev.js +0 -130
  47. package/dist/commands/dev.js.map +0 -1
  48. package/dist/config/dev.constants.d.ts +0 -56
  49. package/dist/config/dev.constants.d.ts.map +0 -1
  50. package/dist/config/dev.constants.js +0 -70
  51. package/dist/config/dev.constants.js.map +0 -1
  52. package/dist/utils/dev-api.d.ts +0 -6
  53. package/dist/utils/dev-api.d.ts.map +0 -1
  54. package/dist/utils/dev-api.js +0 -6
  55. package/dist/utils/dev-api.js.map +0 -1
  56. package/dist/utils/dev-server.d.ts +0 -27
  57. package/dist/utils/dev-server.d.ts.map +0 -1
  58. package/dist/utils/dev-server.js +0 -736
  59. package/dist/utils/dev-server.js.map +0 -1
  60. package/dist/utils/dev-watcher.d.ts +0 -31
  61. package/dist/utils/dev-watcher.d.ts.map +0 -1
  62. package/dist/utils/dev-watcher.js +0 -126
  63. package/dist/utils/dev-watcher.js.map +0 -1
  64. package/dist/web/app.css +0 -7401
  65. package/dist/web/app.js +0 -204
  66. package/dist/web/index.html +0 -33
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lua-cli",
3
- "version": "3.7.3",
3
+ "version": "3.7.4",
4
4
  "description": "Build, test, and deploy AI agents with custom tools, webhooks, and scheduled jobs. Features LuaAgent unified configuration, streaming chat, and batch deployment.",
5
5
  "readmeFilename": "README.md",
6
6
  "main": "dist/api-exports.js",
@@ -12,8 +12,7 @@
12
12
  },
13
13
  "scripts": {
14
14
  "clean": "rm -rf dist",
15
- "build:react": "cd src/web && npx tsx build.ts",
16
- "build": "npm run clean && npm run build:react && tsc && chmod +x dist/index.js",
15
+ "build": "npm run clean && tsc && chmod +x dist/index.js",
17
16
  "prepack": "node scripts/resolve-workspace-deps.cjs",
18
17
  "postpack": "git checkout package.json",
19
18
  "prepublishOnly": "npm run build",
@@ -62,9 +61,9 @@
62
61
  ],
63
62
  "dependencies": {
64
63
  "@lua/shared-types": "0.0.1",
65
- "ai": "^5.0.76",
66
64
  "@tailwindcss/postcss": "^4.1.14",
67
65
  "@tanstack/react-query": "^5.90.11",
66
+ "ai": "^5.0.76",
68
67
  "autoprefixer": "^10.4.21",
69
68
  "chalk": "^5.3.0",
70
69
  "commander": "^14.0.1",
@@ -73,18 +72,10 @@
73
72
  "esbuild": "^0.25.10",
74
73
  "inquirer": "^12.9.6",
75
74
  "js-yaml": "^4.1.0",
76
- "lua-ai-chat": "^0.0.7",
77
- "luaniverse": "^4.2.1",
78
- "node-fetch": "^3.3.2",
79
75
  "open": "^10.1.0",
80
- "postcss": "^8.5.6",
81
- "postcss-prefixwrap": "^1.57.0",
82
76
  "posthog-node": "^5.26.0",
83
- "socket.io-client": "^4.7.2",
84
- "sonner": "^2.0.7",
85
77
  "ts-evaluator": "^2.0.0",
86
78
  "ts-morph": "^27.0.0",
87
- "ws": "^8.18.3",
88
79
  "zod": "^3.24.1",
89
80
  "zod-to-json-schema": "^3.24.6"
90
81
  },
@@ -99,16 +90,12 @@
99
90
  "@types/inquirer": "^9.0.9",
100
91
  "@types/jest": "^29.5.8",
101
92
  "@types/js-yaml": "^4.0.9",
102
- "@types/lodash": "^4.17.20",
103
93
  "@types/node": "^24.5.1",
104
- "@types/node-fetch": "^2.6.13",
105
- "@types/ws": "^8.18.1",
106
94
  "@typescript-eslint/parser": "^8.44.1",
107
95
  "@typescript-eslint/typescript-estree": "^8.44.1",
108
- "axios": "^1.13.4",
109
- "date-fns": "^4.1.0",
110
96
  "jest": "^29.7.0",
111
97
  "lodash": "^4.17.21",
98
+ "nock": "^14.0.11",
112
99
  "stripe": "^19.2.0",
113
100
  "ts-jest": "^29.1.1",
114
101
  "ts-node": "^10.9.2",
@@ -1,27 +0,0 @@
1
- /**
2
- * Dev Command
3
- * Orchestrates the development mode with live reloading, chat interface, and tool testing
4
- */
5
- /**
6
- * Main dev command - starts development mode with live reloading.
7
- *
8
- * This command performs the following steps:
9
- * 1. Validates configuration and authentication
10
- * 2. Compiles the skill
11
- * 3. Pushes all skills to sandbox environment
12
- * 4. Starts web server with chat interface and tool testing
13
- * 5. Opens browser to chat interface
14
- * 6. Watches for file changes and auto-recompiles
15
- *
16
- * Features:
17
- * - Live chat interface for testing skills
18
- * - Real-time tool testing with WebSocket log streaming
19
- * - Automatic recompilation and push on file changes
20
- * - Environment variable management
21
- * - Persona configuration
22
- * - Multi-skill support
23
- *
24
- * @returns Promise that resolves when dev mode is stopped (never resolves normally)
25
- */
26
- export declare function devCommand(): Promise<void>;
27
- //# sourceMappingURL=dev.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/commands/dev.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAgBH;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CA0HhD"}
@@ -1,130 +0,0 @@
1
- /**
2
- * Dev Command
3
- * Orchestrates the development mode with live reloading, chat interface, and tool testing
4
- */
5
- import open from 'open';
6
- import { compileCommand } from './compile.js';
7
- import { readYamlConfig } from '../utils/files.js';
8
- import { skillHandler } from '../primitives/index.js';
9
- import { withErrorHandling, writeProgress, writeSuccess } from '../utils/cli.js';
10
- import { initializeCommand } from '../utils/command-utils.js';
11
- import { pushSkillsToSandbox, pushProcessorsToSandbox } from '../utils/dev-api.js';
12
- import { createChatServer } from '../utils/dev-server.js';
13
- import { createFileWatcher } from '../utils/dev-watcher.js';
14
- import { DEV_SERVER_PORT, DEV_DEFAULTS } from '../config/dev.constants.js';
15
- import { loadManifest, getPrimitivesByKind } from '../utils/artifact-loader.js';
16
- import { PrimitiveKind } from '../compiler/types.js';
17
- import { trackEvent } from '../services/analytics.js';
18
- /**
19
- * Main dev command - starts development mode with live reloading.
20
- *
21
- * This command performs the following steps:
22
- * 1. Validates configuration and authentication
23
- * 2. Compiles the skill
24
- * 3. Pushes all skills to sandbox environment
25
- * 4. Starts web server with chat interface and tool testing
26
- * 5. Opens browser to chat interface
27
- * 6. Watches for file changes and auto-recompiles
28
- *
29
- * Features:
30
- * - Live chat interface for testing skills
31
- * - Real-time tool testing with WebSocket log streaming
32
- * - Automatic recompilation and push on file changes
33
- * - Environment variable management
34
- * - Persona configuration
35
- * - Multi-skill support
36
- *
37
- * @returns Promise that resolves when dev mode is stopped (never resolves normally)
38
- */
39
- export async function devCommand() {
40
- return withErrorHandling(async () => {
41
- // Step 1: Validate configuration and authenticate
42
- const { config, apiKey, agentId } = await initializeCommand();
43
- const version = skillHandler.getFromYaml(config)[0]?.version || DEV_DEFAULTS.VERSION;
44
- // Step 3: Compile the skill
45
- writeProgress("🔄 Compiling skill...");
46
- await compileCommand();
47
- // Step 4: Read and validate compiled output
48
- const updatedConfig = readYamlConfig();
49
- if (!updatedConfig) {
50
- console.error("❌ Failed to read updated skill configuration after compilation.");
51
- throw new Error("Failed to read updated skill configuration after compilation.");
52
- }
53
- // Load manifest
54
- const manifest = loadManifest();
55
- const skills = getPrimitivesByKind(manifest, PrimitiveKind.SKILL);
56
- if (skills.length === 0) {
57
- console.error("❌ No skills found in compiled output.");
58
- throw new Error("No skills found in compiled output.");
59
- }
60
- const skillId = skillHandler.getFromYaml(updatedConfig)[0]?.skillId || null;
61
- if (!skillId) {
62
- console.error("❌ No skillId found after compilation. Skill creation may have failed.");
63
- console.error("Available skills:", updatedConfig.skills);
64
- throw new Error("No skillId found after compilation. Skill creation may have failed.");
65
- }
66
- // Step 6: Push skills to sandbox (using manifest directly)
67
- writeProgress("🔄 Pushing skills to sandbox...");
68
- const sandboxIds = await pushSkillsToSandbox(apiKey, agentId, manifest, updatedConfig, true);
69
- if (Object.keys(sandboxIds).length === 0) {
70
- console.error("❌ Failed to push any skills to sandbox. Cannot start development mode.");
71
- throw new Error("Failed to push any skills to sandbox. Cannot start development mode.");
72
- }
73
- writeSuccess(`✅ Pushed ${Object.keys(sandboxIds).length} skills to sandbox`);
74
- // Step 6b: Push preprocessors and postprocessors to sandbox (using manifest directly)
75
- const preprocessors = getPrimitivesByKind(manifest, PrimitiveKind.PREPROCESSOR);
76
- const postprocessors = getPrimitivesByKind(manifest, PrimitiveKind.POSTPROCESSOR);
77
- if (preprocessors.length > 0 || postprocessors.length > 0) {
78
- writeProgress("🔄 Pushing processors to sandbox...");
79
- const processorCounts = await pushProcessorsToSandbox(apiKey, agentId, manifest, updatedConfig, true);
80
- if (processorCounts.preprocessors > 0 || processorCounts.postprocessors > 0) {
81
- writeSuccess(`✅ Pushed ${processorCounts.preprocessors} preprocessor(s) and ${processorCounts.postprocessors} postprocessor(s) to sandbox`);
82
- }
83
- }
84
- // Use the first skill's sandbox ID for the web interface
85
- const firstSkillName = Object.keys(sandboxIds)[0];
86
- const sandboxSkillId = sandboxIds[firstSkillName];
87
- if (!sandboxSkillId) {
88
- console.error("❌ No sandbox skill ID found. Cannot start chat interface.");
89
- throw new Error("No sandbox skill ID found. Cannot start chat interface.");
90
- }
91
- // Step 7: Start web server for chat interface
92
- const { server, wss, broadcastLog } = createChatServer(apiKey, agentId, skillId, sandboxSkillId, DEV_SERVER_PORT, updatedConfig // Pass config for processor overrides
93
- );
94
- // Step 8: Open browser to chat interface
95
- let browserOpened = false;
96
- try {
97
- await open(`http://localhost:${DEV_SERVER_PORT}`);
98
- browserOpened = true;
99
- writeSuccess("🌐 Chat interface opened in your browser");
100
- broadcastLog("🌐 Chat interface opened in your browser", 'info');
101
- }
102
- catch (error) {
103
- writeSuccess(`🌐 Chat interface available at: http://localhost:${DEV_SERVER_PORT}`);
104
- broadcastLog(`🌐 Chat interface available at: http://localhost:${DEV_SERVER_PORT}`, 'info');
105
- }
106
- trackEvent('cli_dev_started', {
107
- skills_pushed_count: Object.keys(sandboxIds).length,
108
- preprocessors_pushed_count: preprocessors.length,
109
- postprocessors_pushed_count: postprocessors.length,
110
- browser_opened: browserOpened,
111
- });
112
- // Step 9: Start file watching
113
- writeSuccess("🔍 Watching for file changes... (Press Ctrl+C to stop)");
114
- broadcastLog("🔍 Watching for file changes... (Press Ctrl+C to stop)", 'info');
115
- const { watcher, cleanup } = createFileWatcher({
116
- apiKey,
117
- agentId,
118
- broadcastLog,
119
- });
120
- // Step 10: Handle graceful shutdown
121
- process.on('SIGINT', () => {
122
- writeSuccess("\n🛑 Stopping file watcher...");
123
- cleanup();
124
- process.exit(0);
125
- });
126
- // Keep the process alive
127
- return new Promise(() => { });
128
- }, "dev push");
129
- }
130
- //# sourceMappingURL=dev.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dev.js","sourceRoot":"","sources":["../../src/commands/dev.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACnF,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAChF,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,UAAU,EA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CAAC;QAEH,oCAAoC;QACpC,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,EAAE;YACxB,YAAY,CAAC,+BAA+B,CAAC,CAAC;YAC9C,OAAO,EAAE,CAAC;YACV,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC,CAAC,CAAC;QAEH,yBAAyB;QACzB,OAAO,IAAI,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;IAChC,CAAC,EAAE,UAAU,CAAC,CAAC;AACjB,CAAC"}
@@ -1,56 +0,0 @@
1
- /**
2
- * Constants for the dev command
3
- */
4
- /**
5
- * Sandbox skill ID storage identifiers for keytar
6
- */
7
- export declare const SANDBOX_STORAGE: {
8
- readonly SERVICE: "lua-cli-sandbox";
9
- readonly ACCOUNT: "sandbox-skill-id";
10
- };
11
- /**
12
- * Default port for dev server
13
- */
14
- export declare const DEV_SERVER_PORT = 3000;
15
- /**
16
- * File watching configuration
17
- */
18
- export declare const FILE_WATCH_CONFIG: {
19
- readonly DEBOUNCE_DELAY: 500;
20
- readonly RECURSIVE: true;
21
- };
22
- /**
23
- * Paths to ignore during file watching
24
- */
25
- export declare const WATCH_IGNORE_PATTERNS: readonly [".lua/", ".lua\\", "node_modules/", "node_modules\\", ".git/", ".git\\", "dist/", "dist\\"];
26
- /**
27
- * File extensions to ignore during watching
28
- */
29
- export declare const WATCH_IGNORE_EXTENSIONS: readonly [".log", ".tmp", ".js", ".map"];
30
- /**
31
- * HTTP response codes
32
- */
33
- export declare const HTTP_STATUS: {
34
- readonly OK: 200;
35
- readonly NOT_FOUND: 404;
36
- readonly SERVER_ERROR: 500;
37
- };
38
- /**
39
- * CORS headers
40
- */
41
- export declare const CORS_HEADERS: {
42
- readonly 'Access-Control-Allow-Origin': "*";
43
- readonly 'Access-Control-Allow-Methods': "GET, POST, OPTIONS";
44
- readonly 'Access-Control-Allow-Headers': "Content-Type";
45
- };
46
- /**
47
- * Default skill configuration values
48
- */
49
- export declare const DEV_DEFAULTS: {
50
- readonly VERSION: "1.0.0";
51
- readonly SKILL_NAME: "Unknown Skill";
52
- readonly DESCRIPTION: "A Lua skill for AI automation";
53
- readonly NOT_COMPILED_DESCRIPTION: "A Lua skill for AI automation (not compiled)";
54
- readonly NOT_COMPILED_CONTEXT: "This skill has not been compiled yet. Run \"lua compile\" to see full context information.";
55
- };
56
- //# sourceMappingURL=dev.constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dev.constants.d.ts","sourceRoot":"","sources":["../../src/config/dev.constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,eAAO,MAAM,eAAe;;;CAGlB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,eAAe,OAAO,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;CAGpB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,qBAAqB,uGASxB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,uBAAuB,0CAK1B,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,WAAW;;;;CAId,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;CAMf,CAAC"}
@@ -1,70 +0,0 @@
1
- /**
2
- * Constants for the dev command
3
- */
4
- /**
5
- * Sandbox skill ID storage identifiers for keytar
6
- */
7
- export const SANDBOX_STORAGE = {
8
- SERVICE: 'lua-cli-sandbox',
9
- ACCOUNT: 'sandbox-skill-id',
10
- };
11
- /**
12
- * Default port for dev server
13
- */
14
- export const DEV_SERVER_PORT = 3000;
15
- /**
16
- * File watching configuration
17
- */
18
- export const FILE_WATCH_CONFIG = {
19
- DEBOUNCE_DELAY: 500, // milliseconds
20
- RECURSIVE: true,
21
- };
22
- /**
23
- * Paths to ignore during file watching
24
- */
25
- export const WATCH_IGNORE_PATTERNS = [
26
- '.lua/',
27
- '.lua\\',
28
- 'node_modules/',
29
- 'node_modules\\',
30
- '.git/',
31
- '.git\\',
32
- 'dist/',
33
- 'dist\\',
34
- ];
35
- /**
36
- * File extensions to ignore during watching
37
- */
38
- export const WATCH_IGNORE_EXTENSIONS = [
39
- '.log',
40
- '.tmp',
41
- '.js',
42
- '.map',
43
- ];
44
- /**
45
- * HTTP response codes
46
- */
47
- export const HTTP_STATUS = {
48
- OK: 200,
49
- NOT_FOUND: 404,
50
- SERVER_ERROR: 500,
51
- };
52
- /**
53
- * CORS headers
54
- */
55
- export const CORS_HEADERS = {
56
- 'Access-Control-Allow-Origin': '*',
57
- 'Access-Control-Allow-Methods': 'GET, POST, OPTIONS',
58
- 'Access-Control-Allow-Headers': 'Content-Type',
59
- };
60
- /**
61
- * Default skill configuration values
62
- */
63
- export const DEV_DEFAULTS = {
64
- VERSION: '1.0.0',
65
- SKILL_NAME: 'Unknown Skill',
66
- DESCRIPTION: 'A Lua skill for AI automation',
67
- NOT_COMPILED_DESCRIPTION: 'A Lua skill for AI automation (not compiled)',
68
- NOT_COMPILED_CONTEXT: 'This skill has not been compiled yet. Run "lua compile" to see full context information.',
69
- };
70
- //# sourceMappingURL=dev.constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dev.constants.js","sourceRoot":"","sources":["../../src/config/dev.constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,OAAO,EAAE,iBAAiB;IAC1B,OAAO,EAAE,kBAAkB;CACnB,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC;AAEpC;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,cAAc,EAAE,GAAG,EAAE,eAAe;IACpC,SAAS,EAAE,IAAI;CACP,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,OAAO;IACP,QAAQ;IACR,eAAe;IACf,gBAAgB;IAChB,OAAO;IACP,QAAQ;IACR,OAAO;IACP,QAAQ;CACA,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,MAAM;IACN,MAAM;IACN,KAAK;IACL,MAAM;CACE,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,EAAE,EAAE,GAAG;IACP,SAAS,EAAE,GAAG;IACd,YAAY,EAAE,GAAG;CACT,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,6BAA6B,EAAE,GAAG;IAClC,8BAA8B,EAAE,oBAAoB;IACpD,8BAA8B,EAAE,cAAc;CACtC,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,OAAO,EAAE,OAAO;IAChB,UAAU,EAAE,eAAe;IAC3B,WAAW,EAAE,+BAA+B;IAC5C,wBAAwB,EAAE,8CAA8C;IACxE,oBAAoB,EAAE,0FAA0F;CACxG,CAAC"}
@@ -1,6 +0,0 @@
1
- /**
2
- * Re-export from services/sandbox.service.ts for backward compatibility.
3
- * The actual implementation moved to src/services/sandbox.service.ts.
4
- */
5
- export { sendChatMessage, pushSkillsToSandbox, pushProcessorsToSandbox, } from '../services/sandbox.service.js';
6
- //# sourceMappingURL=dev-api.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dev-api.d.ts","sourceRoot":"","sources":["../../src/utils/dev-api.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,gCAAgC,CAAC"}
@@ -1,6 +0,0 @@
1
- /**
2
- * Re-export from services/sandbox.service.ts for backward compatibility.
3
- * The actual implementation moved to src/services/sandbox.service.ts.
4
- */
5
- export { sendChatMessage, pushSkillsToSandbox, pushProcessorsToSandbox, } from '../services/sandbox.service.js';
6
- //# sourceMappingURL=dev-api.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dev-api.js","sourceRoot":"","sources":["../../src/utils/dev-api.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,gCAAgC,CAAC"}
@@ -1,27 +0,0 @@
1
- /**
2
- * Dev Server Utilities
3
- * Handles HTTP server, WebSocket connections, and all HTTP endpoints for dev mode
4
- */
5
- import { WebSocketServer } from 'ws';
6
- import { YamlConfig } from '../types/yaml.types.js';
7
- /**
8
- * Server instance with WebSocket and broadcast capabilities
9
- */
10
- export interface DevServer {
11
- server: any;
12
- wss: WebSocketServer;
13
- broadcastLog: (message: string, subType?: 'info' | 'warn' | 'error' | 'debug') => void;
14
- }
15
- /**
16
- * Creates and starts the dev web server with chat interface and tool testing.
17
- *
18
- * @param apiKey - User's API key
19
- * @param agentId - Agent ID
20
- * @param skillId - Skill ID
21
- * @param sandboxId - Sandbox skill ID
22
- * @param port - Port to run server on
23
- * @param yamlConfig - YAML config with skills and processors
24
- * @returns Server instance with WebSocket and broadcast function
25
- */
26
- export declare function createChatServer(apiKey: string, agentId: string, skillId: string, sandboxId: string, port: number, yamlConfig: YamlConfig): DevServer;
27
- //# sourceMappingURL=dev-server.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dev-server.d.ts","sourceRoot":"","sources":["../../src/utils/dev-server.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,OAAO,EAAE,eAAe,EAAE,MAAM,IAAI,CAAC;AAiBrC,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAKpD;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,GAAG,CAAC;IACZ,GAAG,EAAE,eAAe,CAAC;IACrB,YAAY,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,KAAK,IAAI,CAAC;CACxF;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,UAAU,GACrB,SAAS,CAsJX"}