@base44-preview/cli 0.0.50-pr.480.b87871d → 0.0.50-pr.482.7d46c5c
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/cli/index.js +4 -18
- package/dist/cli/index.js.map +4 -4
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -241538,27 +241538,12 @@ var ToolConfigSchema = exports_external.union([
|
|
|
241538
241538
|
EntityToolConfigSchema,
|
|
241539
241539
|
BackendFunctionToolConfigSchema
|
|
241540
241540
|
]);
|
|
241541
|
-
var EntityAccessRuleSchema = exports_external.union([
|
|
241542
|
-
exports_external.boolean(),
|
|
241543
|
-
exports_external.record(exports_external.string(), exports_external.unknown())
|
|
241544
|
-
]);
|
|
241545
|
-
var AgentAccessConfigSchema = exports_external.object({
|
|
241546
|
-
entities: exports_external.record(exports_external.string(), exports_external.record(exports_external.string(), EntityAccessRuleSchema)).optional().default({}),
|
|
241547
|
-
functions: exports_external.array(exports_external.string()).optional().default([])
|
|
241548
|
-
});
|
|
241549
|
-
var CodeModeConfigSchema = exports_external.object({
|
|
241550
|
-
access: AgentAccessConfigSchema.optional().default({
|
|
241551
|
-
entities: {},
|
|
241552
|
-
functions: []
|
|
241553
|
-
})
|
|
241554
|
-
});
|
|
241555
241541
|
var AgentConfigSchema = exports_external.looseObject({
|
|
241556
241542
|
name: exports_external.string().trim().min(1).max(100),
|
|
241557
241543
|
description: exports_external.string().trim().min(1, "Description is required"),
|
|
241558
241544
|
instructions: exports_external.string().trim().min(1, "Instructions are required"),
|
|
241559
241545
|
tool_configs: exports_external.array(ToolConfigSchema).optional().default([]),
|
|
241560
|
-
whatsapp_greeting: exports_external.string().nullable().optional()
|
|
241561
|
-
code_mode: CodeModeConfigSchema.optional()
|
|
241546
|
+
whatsapp_greeting: exports_external.string().nullable().optional()
|
|
241562
241547
|
});
|
|
241563
241548
|
var SyncAgentsResponseSchema = exports_external.object({
|
|
241564
241549
|
created: exports_external.array(exports_external.string()),
|
|
@@ -252986,6 +252971,7 @@ function createDevLogger() {
|
|
|
252986
252971
|
|
|
252987
252972
|
// src/cli/dev/dev-server/function-manager.ts
|
|
252988
252973
|
import { spawn as spawn2 } from "node:child_process";
|
|
252974
|
+
import { pathToFileURL } from "node:url";
|
|
252989
252975
|
var READY_TIMEOUT = 30000;
|
|
252990
252976
|
|
|
252991
252977
|
class FunctionManager {
|
|
@@ -253065,7 +253051,7 @@ class FunctionManager {
|
|
|
253065
253051
|
const process21 = spawn2("deno", ["run", "--allow-all", this.wrapperPath], {
|
|
253066
253052
|
env: {
|
|
253067
253053
|
...globalThis.process.env,
|
|
253068
|
-
FUNCTION_PATH: func.entryPath,
|
|
253054
|
+
FUNCTION_PATH: pathToFileURL(func.entryPath).href,
|
|
253069
253055
|
FUNCTION_PORT: String(port),
|
|
253070
253056
|
FUNCTION_NAME: func.name
|
|
253071
253057
|
},
|
|
@@ -260252,4 +260238,4 @@ export {
|
|
|
260252
260238
|
CLIExitError
|
|
260253
260239
|
};
|
|
260254
260240
|
|
|
260255
|
-
//# debugId=
|
|
260241
|
+
//# debugId=4CE71B78B25F696A64756E2164756E21
|