@dexto/agent-management 1.16.6 → 1.17.0-beta.5
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/auth/dexto-accounts.cjs +277 -0
- package/dist/auth/dexto-accounts.d.ts +144 -0
- package/dist/auth/dexto-accounts.d.ts.map +1 -0
- package/dist/auth/dexto-accounts.js +230 -0
- package/dist/auth/dexto-cloud.cjs +51 -0
- package/dist/auth/dexto-cloud.d.ts +9 -0
- package/dist/auth/dexto-cloud.d.ts.map +1 -0
- package/dist/auth/dexto-cloud.js +27 -0
- package/dist/auth/dexto-gateway.cjs +162 -0
- package/dist/auth/dexto-gateway.d.ts +55 -0
- package/dist/auth/dexto-gateway.d.ts.map +1 -0
- package/dist/auth/dexto-gateway.js +133 -0
- package/dist/auth/dexto-mcp.cjs +77 -0
- package/dist/auth/dexto-mcp.d.ts +23 -0
- package/dist/auth/dexto-mcp.d.ts.map +1 -0
- package/dist/auth/dexto-mcp.js +49 -0
- package/dist/auth/dexto-sign-in.cjs +345 -0
- package/dist/auth/dexto-sign-in.d.ts +86 -0
- package/dist/auth/dexto-sign-in.d.ts.map +1 -0
- package/dist/auth/dexto-sign-in.js +314 -0
- package/dist/auth/index.cjs +25 -0
- package/dist/auth/index.d.ts +6 -0
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/index.js +10 -0
- package/dist/auth/model-auth-handlers.cjs +3 -1
- package/dist/auth/model-auth-handlers.d.ts +6 -1
- package/dist/auth/model-auth-handlers.d.ts.map +1 -1
- package/dist/auth/model-auth-handlers.js +6 -1
- package/dist/config/errors.cjs +6 -6
- package/dist/config/errors.js +6 -6
- package/dist/images/image-store.cjs +2 -4
- package/dist/images/image-store.d.ts.map +1 -1
- package/dist/images/image-store.js +2 -4
- package/dist/index.cjs +40 -29
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -6
- package/dist/installation.cjs +2 -2
- package/dist/installation.js +2 -2
- package/dist/plugins/discover-skills.cjs +5 -2
- package/dist/plugins/discover-skills.d.ts +6 -2
- package/dist/plugins/discover-skills.d.ts.map +1 -1
- package/dist/plugins/discover-skills.js +5 -2
- package/dist/plugins/errors.cjs +2 -2
- package/dist/plugins/errors.js +2 -2
- package/dist/plugins/install-plugin.cjs +2 -0
- package/dist/plugins/install-plugin.d.ts.map +1 -1
- package/dist/plugins/install-plugin.js +2 -0
- package/dist/plugins/local-skills.cjs +2 -0
- package/dist/plugins/local-skills.d.ts.map +1 -1
- package/dist/plugins/local-skills.js +2 -0
- package/dist/plugins/marketplace/error-codes.cjs +1 -0
- package/dist/plugins/marketplace/error-codes.d.ts +1 -0
- package/dist/plugins/marketplace/error-codes.d.ts.map +1 -1
- package/dist/plugins/marketplace/error-codes.js +1 -0
- package/dist/plugins/marketplace/errors.cjs +14 -4
- package/dist/plugins/marketplace/errors.d.ts +3 -0
- package/dist/plugins/marketplace/errors.d.ts.map +1 -1
- package/dist/plugins/marketplace/errors.js +14 -4
- package/dist/plugins/marketplace/install-from-marketplace.cjs +5 -0
- package/dist/plugins/marketplace/install-from-marketplace.d.ts.map +1 -1
- package/dist/plugins/marketplace/install-from-marketplace.js +7 -1
- package/dist/plugins/marketplace/operations.cjs +30 -6
- package/dist/plugins/marketplace/operations.d.ts +6 -0
- package/dist/plugins/marketplace/operations.d.ts.map +1 -1
- package/dist/plugins/marketplace/operations.js +31 -8
- package/dist/plugins/marketplace/schemas.cjs +2 -1
- package/dist/plugins/marketplace/schemas.d.ts.map +1 -1
- package/dist/plugins/marketplace/schemas.js +2 -1
- package/dist/plugins/schemas.cjs +9 -3
- package/dist/plugins/schemas.d.ts +5 -0
- package/dist/plugins/schemas.d.ts.map +1 -1
- package/dist/plugins/schemas.js +7 -2
- package/dist/preferences/errors.cjs +1 -1
- package/dist/preferences/errors.js +1 -1
- package/dist/registry/registry.cjs +9 -6
- package/dist/registry/registry.d.ts +0 -8
- package/dist/registry/registry.d.ts.map +1 -1
- package/dist/registry/registry.js +9 -6
- package/dist/resolver.cjs +1 -1
- package/dist/resolver.js +1 -1
- package/dist/tool-factories/agent-spawner/factory.cjs +1 -218
- package/dist/tool-factories/agent-spawner/factory.d.ts.map +1 -1
- package/dist/tool-factories/agent-spawner/factory.js +1 -228
- package/dist/tool-factories/creator-tools/factory.cjs +16 -1
- package/dist/tool-factories/creator-tools/factory.d.ts.map +1 -1
- package/dist/tool-factories/creator-tools/factory.js +16 -1
- package/dist/utils/api-key-store.cjs +3 -2
- package/dist/utils/api-key-store.d.ts.map +1 -1
- package/dist/utils/api-key-store.js +3 -2
- package/dist/utils/dexto-auth.cjs +3 -58
- package/dist/utils/dexto-auth.d.ts +4 -18
- package/dist/utils/dexto-auth.d.ts.map +1 -1
- package/dist/utils/dexto-auth.js +3 -57
- package/dist/utils/env-file.cjs +24 -2
- package/dist/utils/env-file.d.ts +3 -2
- package/dist/utils/env-file.d.ts.map +1 -1
- package/dist/utils/env-file.js +24 -2
- package/dist/utils/path.cjs +75 -11
- package/dist/utils/path.d.ts +14 -1
- package/dist/utils/path.d.ts.map +1 -1
- package/dist/utils/path.js +73 -10
- package/package.json +5 -6
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
getStandaloneSkillPaths
|
|
13
13
|
} from "../../plugins/discover-skills.js";
|
|
14
14
|
import { getSkillFrontmatter } from "../../plugins/skill-markdown.js";
|
|
15
|
+
import { resolvesInside } from "../../utils/path.js";
|
|
15
16
|
import {
|
|
16
17
|
CREATOR_TOOL_NAMES,
|
|
17
18
|
CreatorToolsConfigSchema
|
|
@@ -129,6 +130,18 @@ async function resolveExistingSkillLocation(input, context, toolId) {
|
|
|
129
130
|
skillFile: path.join(skillDir, "SKILL.md")
|
|
130
131
|
};
|
|
131
132
|
}
|
|
133
|
+
async function assertSkillWritesStayInside(baseDir, skillDir, skillFile, toolId) {
|
|
134
|
+
if (await pathExists(skillDir) && !await resolvesInside(baseDir, skillDir)) {
|
|
135
|
+
throw ToolError.validationFailed(
|
|
136
|
+
toolId,
|
|
137
|
+
"skill directory resolves outside the skills root"
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
const fileStat = await fs.lstat(skillFile).catch(() => void 0);
|
|
141
|
+
if (fileStat?.isSymbolicLink()) {
|
|
142
|
+
throw ToolError.validationFailed(toolId, "SKILL.md is a link and cannot be written");
|
|
143
|
+
}
|
|
144
|
+
}
|
|
132
145
|
function ensurePathWithinBase(baseDir, targetDir, toolId) {
|
|
133
146
|
const resolvedBase = path.resolve(baseDir);
|
|
134
147
|
const resolvedTarget = path.resolve(targetDir);
|
|
@@ -229,6 +242,7 @@ const creatorToolsFactory = {
|
|
|
229
242
|
const skillDir = path.join(baseDir, skillId);
|
|
230
243
|
ensurePathWithinBase(baseDir, skillDir, "skill_create");
|
|
231
244
|
const skillFile = path.join(skillDir, "SKILL.md");
|
|
245
|
+
await assertSkillWritesStayInside(baseDir, skillDir, skillFile, "skill_create");
|
|
232
246
|
const exists = await pathExists(skillFile);
|
|
233
247
|
if (exists && !resolvedInput.overwrite) {
|
|
234
248
|
throw ToolError.validationFailed(
|
|
@@ -272,11 +286,12 @@ const creatorToolsFactory = {
|
|
|
272
286
|
context: "skill_update",
|
|
273
287
|
hint: "Use kebab-case skill ids (e.g., release-notes)"
|
|
274
288
|
});
|
|
275
|
-
const { scope, skillFile } = await resolveExistingSkillLocation(
|
|
289
|
+
const { baseDir, scope, skillDir, skillFile } = await resolveExistingSkillLocation(
|
|
276
290
|
input,
|
|
277
291
|
context,
|
|
278
292
|
"skill_update"
|
|
279
293
|
);
|
|
294
|
+
await assertSkillWritesStayInside(baseDir, skillDir, skillFile, "skill_update");
|
|
280
295
|
const exists = await pathExists(skillFile);
|
|
281
296
|
if (!exists) {
|
|
282
297
|
throw ToolError.validationFailed(
|
|
@@ -34,8 +34,9 @@ async function saveProviderApiKey(provider, apiKey, startPath) {
|
|
|
34
34
|
if (!apiKey || !apiKey.trim()) throw new Error("apiKey is required");
|
|
35
35
|
const envVar = (0, import_api_key_resolver.getPrimaryApiKeyEnvVar)(provider);
|
|
36
36
|
const targetEnvPath = (0, import_path.getDextoEnvPath)(startPath);
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
const trimmedKey = apiKey.trim();
|
|
38
|
+
await (0, import_env_file.updateEnvFile)(targetEnvPath, { [envVar]: trimmedKey });
|
|
39
|
+
process.env[envVar] = trimmedKey;
|
|
39
40
|
return { envVar, targetEnvPath };
|
|
40
41
|
}
|
|
41
42
|
function getProviderKeyStatus(provider) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-key-store.d.ts","sourceRoot":"","sources":["../../src/utils/api-key-store.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AAI7D;;;GAGG;AACH,wBAAsB,kBAAkB,CACpC,QAAQ,EAAE,WAAW,EACrB,MAAM,EAAE,MAAM,EACd,SAAS,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"api-key-store.d.ts","sourceRoot":"","sources":["../../src/utils/api-key-store.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AAI7D;;;GAGG;AACH,wBAAsB,kBAAkB,CACpC,QAAQ,EAAE,WAAW,EACrB,MAAM,EAAE,MAAM,EACd,SAAS,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,CAAC,CAapD;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,WAAW,GAAG;IACzD,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAClB,CA4CA;AAED,wBAAgB,qBAAqB,IAAI,MAAM,CAAC,MAAM,EAAE;IAAE,SAAS,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAM9F;AAED;;;GAGG;AACH,eAAO,MAAM,wBAAwB,6CAA8C,CAAC;AAEpF,MAAM,MAAM,qBAAqB,GAAG;IAChC,6DAA6D;IAC7D,oBAAoB,EAAE,OAAO,CAAC;IAC9B,gEAAgE;IAChE,cAAc,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,sBAAsB,CAClC,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,MAAM,GAAG,SAAS,EAClC,cAAc,EAAE,OAAO,EACvB,mBAAmB,EAAE,MAAM,GAAG,SAAS,GACxC,qBAAqB,CA2BvB"}
|
|
@@ -7,8 +7,9 @@ async function saveProviderApiKey(provider, apiKey, startPath) {
|
|
|
7
7
|
if (!apiKey || !apiKey.trim()) throw new Error("apiKey is required");
|
|
8
8
|
const envVar = getPrimaryApiKeyEnvVar(provider);
|
|
9
9
|
const targetEnvPath = getDextoEnvPath(startPath);
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
const trimmedKey = apiKey.trim();
|
|
11
|
+
await updateEnvFile(targetEnvPath, { [envVar]: trimmedKey });
|
|
12
|
+
process.env[envVar] = trimmedKey;
|
|
12
13
|
return { envVar, targetEnvPath };
|
|
13
14
|
}
|
|
14
15
|
function getProviderKeyStatus(provider) {
|
|
@@ -19,73 +19,18 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
19
19
|
var dexto_auth_exports = {};
|
|
20
20
|
__export(dexto_auth_exports, {
|
|
21
21
|
canUseDextoProvider: () => canUseDextoProvider,
|
|
22
|
-
getDextoApiKeyFromAuth: () => getDextoApiKeyFromAuth,
|
|
23
22
|
isDextoAuthenticated: () => isDextoAuthenticated
|
|
24
23
|
});
|
|
25
24
|
module.exports = __toCommonJS(dexto_auth_exports);
|
|
26
|
-
var
|
|
27
|
-
var import_zod = require("zod");
|
|
28
|
-
var import_core = require("@dexto/core");
|
|
29
|
-
const AUTH_CONFIG_FILE = "auth.json";
|
|
30
|
-
const AuthConfigSchema = import_zod.z.object({
|
|
31
|
-
token: import_zod.z.string().min(1).optional(),
|
|
32
|
-
refreshToken: import_zod.z.string().optional(),
|
|
33
|
-
expiresAt: import_zod.z.number().optional(),
|
|
34
|
-
createdAt: import_zod.z.number().optional(),
|
|
35
|
-
dextoApiKey: import_zod.z.string().optional(),
|
|
36
|
-
dextoKeyId: import_zod.z.string().optional(),
|
|
37
|
-
dextoApiKeySource: import_zod.z.enum(["provisioned", "user-supplied"]).optional()
|
|
38
|
-
}).refine((data) => data.token || data.dextoApiKey, {
|
|
39
|
-
message: "Either token or dextoApiKey is required"
|
|
40
|
-
});
|
|
41
|
-
async function loadAuthConfig() {
|
|
42
|
-
const authPath = (0, import_core.getDextoGlobalPath)("", AUTH_CONFIG_FILE);
|
|
43
|
-
if (!(0, import_fs.existsSync)(authPath)) {
|
|
44
|
-
return null;
|
|
45
|
-
}
|
|
46
|
-
try {
|
|
47
|
-
const content = await import_fs.promises.readFile(authPath, "utf-8");
|
|
48
|
-
const config = JSON.parse(content);
|
|
49
|
-
const validated = AuthConfigSchema.safeParse(config);
|
|
50
|
-
if (!validated.success) {
|
|
51
|
-
return null;
|
|
52
|
-
}
|
|
53
|
-
const auth = validated.data;
|
|
54
|
-
if (auth.expiresAt && auth.expiresAt < Date.now()) {
|
|
55
|
-
if (!auth.refreshToken && !auth.dextoApiKey) {
|
|
56
|
-
return null;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
return auth;
|
|
60
|
-
} catch {
|
|
61
|
-
return null;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
25
|
+
var import_dexto_gateway = require("../auth/dexto-gateway.js");
|
|
64
26
|
async function isDextoAuthenticated() {
|
|
65
|
-
return await
|
|
66
|
-
}
|
|
67
|
-
async function getDextoApiKeyFromAuth() {
|
|
68
|
-
const auth = await loadAuthConfig();
|
|
69
|
-
if (auth?.dextoApiKey?.trim()) {
|
|
70
|
-
const apiKey = auth.dextoApiKey.trim();
|
|
71
|
-
process.env.DEXTO_API_KEY = apiKey;
|
|
72
|
-
return apiKey;
|
|
73
|
-
}
|
|
74
|
-
if (process.env.DEXTO_API_KEY?.trim()) {
|
|
75
|
-
return process.env.DEXTO_API_KEY;
|
|
76
|
-
}
|
|
77
|
-
return null;
|
|
27
|
+
return (await (0, import_dexto_gateway.dextoModelAccess)((0, import_dexto_gateway.defaultDextoGatewayOptions)())).status !== "signed_out";
|
|
78
28
|
}
|
|
79
29
|
async function canUseDextoProvider() {
|
|
80
|
-
|
|
81
|
-
if (!authenticated) return false;
|
|
82
|
-
const apiKey = await getDextoApiKeyFromAuth();
|
|
83
|
-
if (!apiKey) return false;
|
|
84
|
-
return true;
|
|
30
|
+
return (await (0, import_dexto_gateway.dextoModelAccess)((0, import_dexto_gateway.defaultDextoGatewayOptions)())).status === "ready";
|
|
85
31
|
}
|
|
86
32
|
// Annotate the CommonJS export names for ESM import in node:
|
|
87
33
|
0 && (module.exports = {
|
|
88
34
|
canUseDextoProvider,
|
|
89
|
-
getDextoApiKeyFromAuth,
|
|
90
35
|
isDextoAuthenticated
|
|
91
36
|
});
|
|
@@ -1,23 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Dexto
|
|
3
|
-
*
|
|
4
|
-
* Provides functions to check dexto authentication status.
|
|
5
|
-
* Used by both CLI and server to determine if user can use dexto features.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Check if user is authenticated with Dexto.
|
|
9
|
-
* Returns true when auth.json contains usable Dexto auth state.
|
|
2
|
+
* Whether this machine can use Dexto: signed in (`dexto login`) or DEXTO_API_KEY. Used by the CLI
|
|
3
|
+
* and the local server's Web UI.
|
|
10
4
|
*/
|
|
5
|
+
/** Signed in to Dexto, or DEXTO_API_KEY is set. */
|
|
11
6
|
export declare function isDextoAuthenticated(): Promise<boolean>;
|
|
12
|
-
/**
|
|
13
|
-
* Get the dexto API key from auth config or environment.
|
|
14
|
-
*/
|
|
15
|
-
export declare function getDextoApiKeyFromAuth(): Promise<string | null>;
|
|
16
|
-
/**
|
|
17
|
-
* Check if user can use Dexto provider.
|
|
18
|
-
* Requires BOTH:
|
|
19
|
-
* 1. User has usable Dexto auth state (token, refresh-backed login, or stored API key)
|
|
20
|
-
* 2. Has DEXTO_API_KEY (from auth config or environment)
|
|
21
|
-
*/
|
|
7
|
+
/** Dexto models can run now: signed in with permission to spend credits, or DEXTO_API_KEY. */
|
|
22
8
|
export declare function canUseDextoProvider(): Promise<boolean>;
|
|
23
9
|
//# sourceMappingURL=dexto-auth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dexto-auth.d.ts","sourceRoot":"","sources":["../../src/utils/dexto-auth.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"dexto-auth.d.ts","sourceRoot":"","sources":["../../src/utils/dexto-auth.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,mDAAmD;AACnD,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,OAAO,CAAC,CAE7D;AAED,8FAA8F;AAC9F,wBAAsB,mBAAmB,IAAI,OAAO,CAAC,OAAO,CAAC,CAE5D"}
|
package/dist/utils/dexto-auth.js
CHANGED
|
@@ -1,65 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import { getDextoGlobalPath } from "@dexto/core";
|
|
4
|
-
const AUTH_CONFIG_FILE = "auth.json";
|
|
5
|
-
const AuthConfigSchema = z.object({
|
|
6
|
-
token: z.string().min(1).optional(),
|
|
7
|
-
refreshToken: z.string().optional(),
|
|
8
|
-
expiresAt: z.number().optional(),
|
|
9
|
-
createdAt: z.number().optional(),
|
|
10
|
-
dextoApiKey: z.string().optional(),
|
|
11
|
-
dextoKeyId: z.string().optional(),
|
|
12
|
-
dextoApiKeySource: z.enum(["provisioned", "user-supplied"]).optional()
|
|
13
|
-
}).refine((data) => data.token || data.dextoApiKey, {
|
|
14
|
-
message: "Either token or dextoApiKey is required"
|
|
15
|
-
});
|
|
16
|
-
async function loadAuthConfig() {
|
|
17
|
-
const authPath = getDextoGlobalPath("", AUTH_CONFIG_FILE);
|
|
18
|
-
if (!existsSync(authPath)) {
|
|
19
|
-
return null;
|
|
20
|
-
}
|
|
21
|
-
try {
|
|
22
|
-
const content = await fs.readFile(authPath, "utf-8");
|
|
23
|
-
const config = JSON.parse(content);
|
|
24
|
-
const validated = AuthConfigSchema.safeParse(config);
|
|
25
|
-
if (!validated.success) {
|
|
26
|
-
return null;
|
|
27
|
-
}
|
|
28
|
-
const auth = validated.data;
|
|
29
|
-
if (auth.expiresAt && auth.expiresAt < Date.now()) {
|
|
30
|
-
if (!auth.refreshToken && !auth.dextoApiKey) {
|
|
31
|
-
return null;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
return auth;
|
|
35
|
-
} catch {
|
|
36
|
-
return null;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
1
|
+
import { defaultDextoGatewayOptions, dextoModelAccess } from "../auth/dexto-gateway.js";
|
|
39
2
|
async function isDextoAuthenticated() {
|
|
40
|
-
return await
|
|
41
|
-
}
|
|
42
|
-
async function getDextoApiKeyFromAuth() {
|
|
43
|
-
const auth = await loadAuthConfig();
|
|
44
|
-
if (auth?.dextoApiKey?.trim()) {
|
|
45
|
-
const apiKey = auth.dextoApiKey.trim();
|
|
46
|
-
process.env.DEXTO_API_KEY = apiKey;
|
|
47
|
-
return apiKey;
|
|
48
|
-
}
|
|
49
|
-
if (process.env.DEXTO_API_KEY?.trim()) {
|
|
50
|
-
return process.env.DEXTO_API_KEY;
|
|
51
|
-
}
|
|
52
|
-
return null;
|
|
3
|
+
return (await dextoModelAccess(defaultDextoGatewayOptions())).status !== "signed_out";
|
|
53
4
|
}
|
|
54
5
|
async function canUseDextoProvider() {
|
|
55
|
-
|
|
56
|
-
if (!authenticated) return false;
|
|
57
|
-
const apiKey = await getDextoApiKeyFromAuth();
|
|
58
|
-
if (!apiKey) return false;
|
|
59
|
-
return true;
|
|
6
|
+
return (await dextoModelAccess(defaultDextoGatewayOptions())).status === "ready";
|
|
60
7
|
}
|
|
61
8
|
export {
|
|
62
9
|
canUseDextoProvider,
|
|
63
|
-
getDextoApiKeyFromAuth,
|
|
64
10
|
isDextoAuthenticated
|
|
65
11
|
};
|
package/dist/utils/env-file.cjs
CHANGED
|
@@ -32,8 +32,29 @@ __export(env_file_exports, {
|
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(env_file_exports);
|
|
34
34
|
var path = __toESM(require("node:path"), 1);
|
|
35
|
+
var import_core = require("@dexto/core");
|
|
35
36
|
var import_node_fs = require("node:fs");
|
|
36
|
-
|
|
37
|
+
function validateUpdates(requested) {
|
|
38
|
+
const updates = {};
|
|
39
|
+
for (const [key, rawValue] of Object.entries(requested)) {
|
|
40
|
+
if (!/^[A-Z_][A-Z0-9_]*$/.test(key)) {
|
|
41
|
+
throw new Error(`Invalid environment variable name: ${key}`);
|
|
42
|
+
}
|
|
43
|
+
const value = rawValue.trim();
|
|
44
|
+
if (/[\r\n]/.test(value)) {
|
|
45
|
+
throw new import_core.DextoRuntimeError(
|
|
46
|
+
"env_value_multiline",
|
|
47
|
+
import_core.ErrorScope.CONFIG,
|
|
48
|
+
import_core.ErrorType.USER,
|
|
49
|
+
`Environment variable ${key} must be a single line`
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
updates[key] = value;
|
|
53
|
+
}
|
|
54
|
+
return updates;
|
|
55
|
+
}
|
|
56
|
+
async function updateEnvFile(envFilePath, requested) {
|
|
57
|
+
const updates = validateUpdates(requested);
|
|
37
58
|
await import_node_fs.promises.mkdir(path.dirname(envFilePath), { recursive: true });
|
|
38
59
|
let content = "";
|
|
39
60
|
try {
|
|
@@ -62,7 +83,8 @@ async function updateEnvFile(envFilePath, updates) {
|
|
|
62
83
|
if (updatedLines[updatedLines.length - 1] !== "") {
|
|
63
84
|
updatedLines.push("");
|
|
64
85
|
}
|
|
65
|
-
await import_node_fs.promises.writeFile(envFilePath, updatedLines.join("\n"), "utf8");
|
|
86
|
+
await import_node_fs.promises.writeFile(envFilePath, updatedLines.join("\n"), { encoding: "utf8", mode: 384 });
|
|
87
|
+
await import_node_fs.promises.chmod(envFilePath, 384);
|
|
66
88
|
}
|
|
67
89
|
// Annotate the CommonJS export names for ESM import in node:
|
|
68
90
|
0 && (module.exports = {
|
package/dist/utils/env-file.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Update a .env file with the provided key-value pairs.
|
|
3
|
-
* Existing keys are updated in place, new keys are appended.
|
|
3
|
+
* Existing keys are updated in place, new keys are appended. Values are trimmed and must be
|
|
4
|
+
* single-line. The file holds secrets, so it is kept readable by its owner only.
|
|
4
5
|
*/
|
|
5
|
-
export declare function updateEnvFile(envFilePath: string,
|
|
6
|
+
export declare function updateEnvFile(envFilePath: string, requested: Record<string, string>): Promise<void>;
|
|
6
7
|
//# sourceMappingURL=env-file.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env-file.d.ts","sourceRoot":"","sources":["../../src/utils/env-file.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"env-file.d.ts","sourceRoot":"","sources":["../../src/utils/env-file.ts"],"names":[],"mappings":"AA6BA;;;;GAIG;AACH,wBAAsB,aAAa,CAC/B,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAClC,OAAO,CAAC,IAAI,CAAC,CA6Cf"}
|
package/dist/utils/env-file.js
CHANGED
|
@@ -1,6 +1,27 @@
|
|
|
1
1
|
import * as path from "node:path";
|
|
2
|
+
import { DextoRuntimeError, ErrorScope, ErrorType } from "@dexto/core";
|
|
2
3
|
import { promises as fs } from "node:fs";
|
|
3
|
-
|
|
4
|
+
function validateUpdates(requested) {
|
|
5
|
+
const updates = {};
|
|
6
|
+
for (const [key, rawValue] of Object.entries(requested)) {
|
|
7
|
+
if (!/^[A-Z_][A-Z0-9_]*$/.test(key)) {
|
|
8
|
+
throw new Error(`Invalid environment variable name: ${key}`);
|
|
9
|
+
}
|
|
10
|
+
const value = rawValue.trim();
|
|
11
|
+
if (/[\r\n]/.test(value)) {
|
|
12
|
+
throw new DextoRuntimeError(
|
|
13
|
+
"env_value_multiline",
|
|
14
|
+
ErrorScope.CONFIG,
|
|
15
|
+
ErrorType.USER,
|
|
16
|
+
`Environment variable ${key} must be a single line`
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
updates[key] = value;
|
|
20
|
+
}
|
|
21
|
+
return updates;
|
|
22
|
+
}
|
|
23
|
+
async function updateEnvFile(envFilePath, requested) {
|
|
24
|
+
const updates = validateUpdates(requested);
|
|
4
25
|
await fs.mkdir(path.dirname(envFilePath), { recursive: true });
|
|
5
26
|
let content = "";
|
|
6
27
|
try {
|
|
@@ -29,7 +50,8 @@ async function updateEnvFile(envFilePath, updates) {
|
|
|
29
50
|
if (updatedLines[updatedLines.length - 1] !== "") {
|
|
30
51
|
updatedLines.push("");
|
|
31
52
|
}
|
|
32
|
-
await fs.writeFile(envFilePath, updatedLines.join("\n"), "utf8");
|
|
53
|
+
await fs.writeFile(envFilePath, updatedLines.join("\n"), { encoding: "utf8", mode: 384 });
|
|
54
|
+
await fs.chmod(envFilePath, 384);
|
|
33
55
|
}
|
|
34
56
|
export {
|
|
35
57
|
updateEnvFile
|
package/dist/utils/path.cjs
CHANGED
|
@@ -36,11 +36,13 @@ __export(path_exports, {
|
|
|
36
36
|
getDextoPackageRoot: () => getDextoPackageRoot,
|
|
37
37
|
getDextoPath: () => getDextoPath,
|
|
38
38
|
isPath: () => isPath,
|
|
39
|
-
resolveBundledScript: () => resolveBundledScript
|
|
39
|
+
resolveBundledScript: () => resolveBundledScript,
|
|
40
|
+
resolvesInside: () => resolvesInside
|
|
40
41
|
});
|
|
41
42
|
module.exports = __toCommonJS(path_exports);
|
|
42
43
|
var path = __toESM(require("path"), 1);
|
|
43
44
|
var import_fs = require("fs");
|
|
45
|
+
var import_promises = require("fs/promises");
|
|
44
46
|
var import_fs2 = require("fs");
|
|
45
47
|
var import_os = require("os");
|
|
46
48
|
var import_module = require("module");
|
|
@@ -100,17 +102,78 @@ function getDextoGlobalPath(type, filename) {
|
|
|
100
102
|
const basePath = path.join((0, import_os.homedir)(), ".dexto", type);
|
|
101
103
|
return filename ? path.join(basePath, filename) : basePath;
|
|
102
104
|
}
|
|
105
|
+
function isInside(root, candidate) {
|
|
106
|
+
const relative = path.relative(root, candidate);
|
|
107
|
+
return relative !== ".." && !relative.startsWith(`..${path.sep}`) && !path.isAbsolute(relative);
|
|
108
|
+
}
|
|
109
|
+
async function resolvesInside(root, candidate) {
|
|
110
|
+
try {
|
|
111
|
+
const [physicalRoot, physicalCandidate] = await Promise.all([
|
|
112
|
+
import_fs2.promises.realpath(root),
|
|
113
|
+
import_fs2.promises.realpath(candidate)
|
|
114
|
+
]);
|
|
115
|
+
return isInside(physicalRoot, physicalCandidate);
|
|
116
|
+
} catch {
|
|
117
|
+
return false;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
103
120
|
async function copyDirectory(src, dest) {
|
|
104
|
-
await import_fs2.promises.
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
121
|
+
if ((await import_fs2.promises.lstat(src)).isSymbolicLink()) {
|
|
122
|
+
throw new Error(`Refusing to copy ${src}: the source directory is a symbolic link`);
|
|
123
|
+
}
|
|
124
|
+
const rootReal = await import_fs2.promises.realpath(src);
|
|
125
|
+
await copyDirectoryWithin(src, dest, rootReal);
|
|
126
|
+
}
|
|
127
|
+
const { O_RDONLY, O_DIRECTORY = 0, O_NOFOLLOW = 0, O_NONBLOCK = 0 } = import_promises.constants;
|
|
128
|
+
async function assertOpenedIsInside(opened, target, root) {
|
|
129
|
+
const sameAsOpened = (named) => named.isDirectory() === opened.isDirectory() && named.isFile() === opened.isFile() && named.dev === opened.dev && named.ino === opened.ino;
|
|
130
|
+
const before = await import_fs2.promises.lstat(target, { bigint: true });
|
|
131
|
+
const resolved = await import_fs2.promises.realpath(target);
|
|
132
|
+
const after = await import_fs2.promises.lstat(target, { bigint: true });
|
|
133
|
+
if (!sameAsOpened(before) || !sameAsOpened(after) || !isInside(root, resolved)) {
|
|
134
|
+
throw new Error(`Refusing to copy ${target}: it changed while it was being copied`);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
async function copyDirectoryWithin(src, dest, rootReal) {
|
|
138
|
+
const handle = process.platform === "win32" ? void 0 : await import_fs2.promises.open(src, O_RDONLY | O_DIRECTORY | O_NOFOLLOW);
|
|
139
|
+
try {
|
|
140
|
+
const opened = handle ? await handle.stat({ bigint: true }) : await import_fs2.promises.lstat(src, { bigint: true });
|
|
141
|
+
await assertOpenedIsInside(opened, src, rootReal);
|
|
142
|
+
await import_fs2.promises.mkdir(dest, { recursive: true });
|
|
143
|
+
const names = await import_fs2.promises.readdir(src);
|
|
144
|
+
await assertOpenedIsInside(opened, src, rootReal);
|
|
145
|
+
for (const name of names) {
|
|
146
|
+
const srcPath = path.join(src, name);
|
|
147
|
+
const destPath = path.join(dest, name);
|
|
148
|
+
const entry = await import_fs2.promises.lstat(srcPath);
|
|
149
|
+
if (entry.isSymbolicLink()) {
|
|
150
|
+
const target = await import_fs2.promises.realpath(srcPath).catch(() => void 0);
|
|
151
|
+
if (target === void 0 || !isInside(rootReal, target)) continue;
|
|
152
|
+
if (!(await import_fs2.promises.stat(target)).isFile()) continue;
|
|
153
|
+
await copyFileWithin(target, destPath, rootReal);
|
|
154
|
+
} else if (entry.isDirectory()) {
|
|
155
|
+
await copyDirectoryWithin(srcPath, destPath, rootReal);
|
|
156
|
+
} else if (entry.isFile()) {
|
|
157
|
+
await copyFileWithin(srcPath, destPath, rootReal);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
await assertOpenedIsInside(opened, src, rootReal);
|
|
161
|
+
} finally {
|
|
162
|
+
await handle?.close();
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
async function copyFileWithin(src, dest, rootReal) {
|
|
166
|
+
const handle = await import_fs2.promises.open(src, O_RDONLY | O_NOFOLLOW | O_NONBLOCK);
|
|
167
|
+
try {
|
|
168
|
+
const opened = await handle.stat({ bigint: true });
|
|
169
|
+
if (!opened.isFile()) {
|
|
170
|
+
throw new Error(`Refusing to copy ${src}: it is no longer a regular file`);
|
|
113
171
|
}
|
|
172
|
+
await assertOpenedIsInside(opened, src, rootReal);
|
|
173
|
+
await import_fs2.promises.writeFile(dest, handle.createReadStream({ autoClose: false }));
|
|
174
|
+
await import_fs2.promises.chmod(dest, Number(opened.mode & 0o777n));
|
|
175
|
+
} finally {
|
|
176
|
+
await handle.close();
|
|
114
177
|
}
|
|
115
178
|
}
|
|
116
179
|
function isPath(str) {
|
|
@@ -216,5 +279,6 @@ function getDextoEnvPath(startPath = process.cwd()) {
|
|
|
216
279
|
getDextoPackageRoot,
|
|
217
280
|
getDextoPath,
|
|
218
281
|
isPath,
|
|
219
|
-
resolveBundledScript
|
|
282
|
+
resolveBundledScript,
|
|
283
|
+
resolvesInside
|
|
220
284
|
});
|
package/dist/utils/path.d.ts
CHANGED
|
@@ -31,7 +31,20 @@ export declare function getDextoPath(type: string, filename?: string, startPath?
|
|
|
31
31
|
*/
|
|
32
32
|
export declare function getDextoGlobalPath(type: string, filename?: string): string;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* True when `candidate` resolves, after following every link, to `root` or something inside it.
|
|
35
|
+
* A missing path or any resolution error counts as outside.
|
|
36
|
+
*/
|
|
37
|
+
export declare function resolvesInside(root: string, candidate: string): Promise<boolean>;
|
|
38
|
+
/**
|
|
39
|
+
* Copy entire directory recursively.
|
|
40
|
+
*
|
|
41
|
+
* Links are never followed out of the source, even if someone swaps one in while the copy runs:
|
|
42
|
+
* - The source itself must not be a link (it is refused).
|
|
43
|
+
* - A link that resolves outside `src` is skipped, a link to a directory is skipped, and a link
|
|
44
|
+
* to a file inside `src` is copied as a regular file.
|
|
45
|
+
* - Every directory is opened and checked before and after it is listed, and every file is opened
|
|
46
|
+
* and checked before it is read, so what is copied is what was checked. Any mismatch (a path
|
|
47
|
+
* that now points somewhere else or outside `src`) aborts the whole copy with an error.
|
|
35
48
|
* @param src Source directory path
|
|
36
49
|
* @param dest Destination directory path
|
|
37
50
|
*/
|
package/dist/utils/path.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../src/utils/path.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../src/utils/path.ts"],"names":[],"mappings":"AAiBA;;;;;;GAMG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,GAAG,SAAS,CAGxD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAuCxF;AAED;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAc1E;AAOD;;;GAGG;AACH,wBAAsB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAUtF;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAO5E;AAiFD;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAW3C;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,SAAS,GAAE,MAAsB,GAAG,MAAM,GAAG,IAAI,CAKhF;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAwD/D;AAED;;GAEG;AACH,wBAAsB,0BAA0B,IAAI,OAAO,CAAC,IAAI,CAAC,CAUhE;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,SAAS,GAAE,MAAsB,GAAG,MAAM,CAkCzE"}
|
package/dist/utils/path.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as path from "path";
|
|
2
2
|
import { existsSync } from "fs";
|
|
3
|
+
import { constants as fsConstants } from "fs/promises";
|
|
3
4
|
import { promises as fs } from "fs";
|
|
4
5
|
import { homedir } from "os";
|
|
5
6
|
import { createRequire } from "module";
|
|
@@ -62,17 +63,78 @@ function getDextoGlobalPath(type, filename) {
|
|
|
62
63
|
const basePath = path.join(homedir(), ".dexto", type);
|
|
63
64
|
return filename ? path.join(basePath, filename) : basePath;
|
|
64
65
|
}
|
|
66
|
+
function isInside(root, candidate) {
|
|
67
|
+
const relative = path.relative(root, candidate);
|
|
68
|
+
return relative !== ".." && !relative.startsWith(`..${path.sep}`) && !path.isAbsolute(relative);
|
|
69
|
+
}
|
|
70
|
+
async function resolvesInside(root, candidate) {
|
|
71
|
+
try {
|
|
72
|
+
const [physicalRoot, physicalCandidate] = await Promise.all([
|
|
73
|
+
fs.realpath(root),
|
|
74
|
+
fs.realpath(candidate)
|
|
75
|
+
]);
|
|
76
|
+
return isInside(physicalRoot, physicalCandidate);
|
|
77
|
+
} catch {
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
65
81
|
async function copyDirectory(src, dest) {
|
|
66
|
-
await fs.
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
82
|
+
if ((await fs.lstat(src)).isSymbolicLink()) {
|
|
83
|
+
throw new Error(`Refusing to copy ${src}: the source directory is a symbolic link`);
|
|
84
|
+
}
|
|
85
|
+
const rootReal = await fs.realpath(src);
|
|
86
|
+
await copyDirectoryWithin(src, dest, rootReal);
|
|
87
|
+
}
|
|
88
|
+
const { O_RDONLY, O_DIRECTORY = 0, O_NOFOLLOW = 0, O_NONBLOCK = 0 } = fsConstants;
|
|
89
|
+
async function assertOpenedIsInside(opened, target, root) {
|
|
90
|
+
const sameAsOpened = (named) => named.isDirectory() === opened.isDirectory() && named.isFile() === opened.isFile() && named.dev === opened.dev && named.ino === opened.ino;
|
|
91
|
+
const before = await fs.lstat(target, { bigint: true });
|
|
92
|
+
const resolved = await fs.realpath(target);
|
|
93
|
+
const after = await fs.lstat(target, { bigint: true });
|
|
94
|
+
if (!sameAsOpened(before) || !sameAsOpened(after) || !isInside(root, resolved)) {
|
|
95
|
+
throw new Error(`Refusing to copy ${target}: it changed while it was being copied`);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
async function copyDirectoryWithin(src, dest, rootReal) {
|
|
99
|
+
const handle = process.platform === "win32" ? void 0 : await fs.open(src, O_RDONLY | O_DIRECTORY | O_NOFOLLOW);
|
|
100
|
+
try {
|
|
101
|
+
const opened = handle ? await handle.stat({ bigint: true }) : await fs.lstat(src, { bigint: true });
|
|
102
|
+
await assertOpenedIsInside(opened, src, rootReal);
|
|
103
|
+
await fs.mkdir(dest, { recursive: true });
|
|
104
|
+
const names = await fs.readdir(src);
|
|
105
|
+
await assertOpenedIsInside(opened, src, rootReal);
|
|
106
|
+
for (const name of names) {
|
|
107
|
+
const srcPath = path.join(src, name);
|
|
108
|
+
const destPath = path.join(dest, name);
|
|
109
|
+
const entry = await fs.lstat(srcPath);
|
|
110
|
+
if (entry.isSymbolicLink()) {
|
|
111
|
+
const target = await fs.realpath(srcPath).catch(() => void 0);
|
|
112
|
+
if (target === void 0 || !isInside(rootReal, target)) continue;
|
|
113
|
+
if (!(await fs.stat(target)).isFile()) continue;
|
|
114
|
+
await copyFileWithin(target, destPath, rootReal);
|
|
115
|
+
} else if (entry.isDirectory()) {
|
|
116
|
+
await copyDirectoryWithin(srcPath, destPath, rootReal);
|
|
117
|
+
} else if (entry.isFile()) {
|
|
118
|
+
await copyFileWithin(srcPath, destPath, rootReal);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
await assertOpenedIsInside(opened, src, rootReal);
|
|
122
|
+
} finally {
|
|
123
|
+
await handle?.close();
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
async function copyFileWithin(src, dest, rootReal) {
|
|
127
|
+
const handle = await fs.open(src, O_RDONLY | O_NOFOLLOW | O_NONBLOCK);
|
|
128
|
+
try {
|
|
129
|
+
const opened = await handle.stat({ bigint: true });
|
|
130
|
+
if (!opened.isFile()) {
|
|
131
|
+
throw new Error(`Refusing to copy ${src}: it is no longer a regular file`);
|
|
75
132
|
}
|
|
133
|
+
await assertOpenedIsInside(opened, src, rootReal);
|
|
134
|
+
await fs.writeFile(dest, handle.createReadStream({ autoClose: false }));
|
|
135
|
+
await fs.chmod(dest, Number(opened.mode & 0o777n));
|
|
136
|
+
} finally {
|
|
137
|
+
await handle.close();
|
|
76
138
|
}
|
|
77
139
|
}
|
|
78
140
|
function isPath(str) {
|
|
@@ -177,5 +239,6 @@ export {
|
|
|
177
239
|
getDextoPackageRoot,
|
|
178
240
|
getDextoPath,
|
|
179
241
|
isPath,
|
|
180
|
-
resolveBundledScript
|
|
242
|
+
resolveBundledScript,
|
|
243
|
+
resolvesInside
|
|
181
244
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dexto/agent-management",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.0-beta.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -22,11 +22,10 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"yaml": "^2.8.3",
|
|
24
24
|
"zod": "^4.3.6",
|
|
25
|
-
"@dexto/agent-config": "1.
|
|
26
|
-
"@dexto/core": "1.
|
|
27
|
-
"@dexto/llm": "1.
|
|
28
|
-
"@dexto/
|
|
29
|
-
"@dexto/tools-builtins": "1.16.6"
|
|
25
|
+
"@dexto/agent-config": "1.17.0-beta.5",
|
|
26
|
+
"@dexto/core": "1.17.0-beta.5",
|
|
27
|
+
"@dexto/llm": "1.17.0-beta.5",
|
|
28
|
+
"@dexto/tools-builtins": "1.17.0-beta.5"
|
|
30
29
|
},
|
|
31
30
|
"devDependencies": {
|
|
32
31
|
"@types/node": "^22.13.5"
|