@elizaos/cli 1.3.1 → 1.4.2
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/README.md +47 -1
- package/dist/{bun-exec-6CQHTS4F.js → bun-exec-ULMPAIQC.js} +1 -1
- package/dist/{chunk-2ALAPQLV.js → chunk-D3QSET5H.js} +342 -360
- package/dist/{chunk-FDEDLANP.js → chunk-FQYWRHLX.js} +1 -1
- package/dist/{chunk-RM6LUTKD.js → chunk-FSSUAWXQ.js} +3 -3
- package/dist/chunk-GXWWPFBO.js +39 -0
- package/dist/{chunk-D3Q2UZLZ.js → chunk-I4L4T7QX.js} +1 -1
- package/dist/{chunk-KDNV7EA5.js → chunk-SMZBJQJR.js} +1 -1
- package/dist/commands/agent/actions/index.d.ts +5 -0
- package/dist/commands/agent/actions/index.js +4 -4
- package/dist/commands/agent/index.d.ts +2 -2
- package/dist/commands/agent/index.js +4 -4
- package/dist/commands/create/actions/index.js +5 -5
- package/dist/commands/create/index.js +6 -6
- package/dist/commands/shared/index.d.ts +11 -28
- package/dist/commands/shared/index.js +7 -3
- package/dist/index.js +599 -483
- package/dist/{plugin-creator-H26ZLR6H.js → plugin-creator-TCUFII32.js} +2 -2
- package/dist/{registry-N626N4VG.js → registry-RF6PW3EN.js} +4 -4
- package/dist/templates/plugin-quick-starter/README.md +52 -10
- package/dist/templates/plugin-quick-starter/package.json +10 -3
- package/dist/templates/plugin-quick-starter/src/__tests__/e2e/README.md +140 -0
- package/dist/templates/plugin-quick-starter/src/__tests__/e2e/plugin-quick-starter.e2e.ts +339 -0
- package/dist/templates/plugin-quick-starter/src/__tests__/plugin.test.ts +537 -146
- package/dist/templates/plugin-quick-starter/src/__tests__/test-utils.ts +316 -115
- package/dist/templates/plugin-quick-starter/src/plugin.ts +20 -26
- package/dist/templates/plugin-starter/README.md +124 -49
- package/dist/templates/plugin-starter/package.json +10 -3
- package/dist/templates/plugin-starter/src/__tests__/e2e/README.md +44 -9
- package/{templates/plugin-starter/src/__tests__/e2e/starter-plugin.ts → dist/templates/plugin-starter/src/__tests__/e2e/plugin-starter.e2e.ts} +13 -20
- package/dist/templates/plugin-starter/src/__tests__/integration.test.ts +13 -13
- package/dist/templates/plugin-starter/src/__tests__/plugin.test.ts +556 -129
- package/dist/templates/plugin-starter/src/__tests__/test-utils.ts +347 -115
- package/dist/templates/plugin-starter/src/plugin.ts +21 -27
- package/dist/templates/project-starter/README.md +25 -12
- package/dist/templates/project-starter/package.json +4 -4
- package/dist/templates/project-starter/src/__tests__/actions.test.ts +2 -2
- package/dist/templates/project-starter/src/__tests__/e2e/README.md +103 -0
- package/dist/templates/project-starter/src/__tests__/e2e/project-starter.e2e.ts +575 -0
- package/dist/templates/project-starter/src/__tests__/env.test.ts +3 -1
- package/dist/templates/project-starter/src/__tests__/file-structure.test.ts +3 -2
- package/dist/templates/project-starter/src/__tests__/integration.test.ts +2 -2
- package/dist/templates/project-starter/src/__tests__/models.test.ts +3 -3
- package/dist/templates/project-starter/src/__tests__/plugin.test.ts +3 -3
- package/dist/templates/project-starter/src/__tests__/provider.test.ts +2 -2
- package/dist/templates/project-starter/src/index.ts +4 -3
- package/dist/templates/project-starter/src/plugin.ts +5 -5
- package/dist/templates/project-starter/tsup.config.ts +2 -1
- package/dist/templates/project-tee-starter/.dockerignore +64 -14
- package/dist/templates/project-tee-starter/Dockerfile +9 -5
- package/dist/templates/project-tee-starter/GUIDE.md +103 -42
- package/dist/templates/project-tee-starter/README.md +83 -24
- package/dist/templates/project-tee-starter/docker-compose.yaml +5 -2
- package/dist/templates/{plugin-starter/dist → project-tee-starter}/index.html +3 -3
- package/dist/templates/project-tee-starter/package.json +34 -14
- package/dist/templates/project-tee-starter/postcss.config.js +3 -0
- package/dist/templates/project-tee-starter/scripts/install-test-deps.js +52 -0
- package/dist/templates/project-tee-starter/scripts/test-all.sh +82 -0
- package/dist/templates/project-tee-starter/src/__tests__/build-order.test.ts +62 -0
- package/dist/templates/project-tee-starter/{__tests__ → src/__tests__}/character.test.ts +20 -18
- package/dist/templates/project-tee-starter/{__tests__ → src/__tests__}/config.test.ts +11 -4
- package/dist/templates/project-tee-starter/src/__tests__/e2e/README.md +128 -0
- package/dist/templates/project-tee-starter/src/__tests__/e2e/project-tee-starter.e2e.ts +280 -0
- package/dist/templates/project-tee-starter/{__tests__ → src/__tests__}/env.test.ts +3 -2
- package/{templates/project-tee-starter → dist/templates/project-tee-starter/src}/__tests__/error-handling.test.ts +2 -2
- package/{templates/project-tee-starter → dist/templates/project-tee-starter/src}/__tests__/events.test.ts +1 -1
- package/{templates/project-tee-starter → dist/templates/project-tee-starter/src}/__tests__/file-structure.test.ts +16 -5
- package/dist/templates/project-tee-starter/src/__tests__/frontend.test.ts +459 -0
- package/{templates/project-tee-starter → dist/templates/project-tee-starter/src}/__tests__/integration.test.ts +2 -2
- package/dist/templates/project-tee-starter/{__tests__ → src/__tests__}/models.test.ts +1 -1
- package/dist/templates/project-tee-starter/{__tests__ → src/__tests__}/plugin.test.ts +5 -3
- package/{templates/project-tee-starter → dist/templates/project-tee-starter/src}/__tests__/provider.test.ts +2 -2
- package/dist/templates/project-tee-starter/src/__tests__/routes.test.ts +30 -0
- package/dist/templates/project-tee-starter/src/__tests__/tee-validation.test.ts +295 -0
- package/{templates/project-tee-starter → dist/templates/project-tee-starter/src}/__tests__/test-utils.ts +2 -2
- package/dist/templates/project-tee-starter/src/__tests__/vite-config-utils.ts +51 -0
- package/dist/templates/project-tee-starter/src/frontend/index.css +106 -0
- package/dist/templates/project-tee-starter/src/frontend/index.html +20 -0
- package/dist/templates/project-tee-starter/src/frontend/index.tsx +370 -0
- package/dist/templates/project-tee-starter/src/frontend/panels.tsx +17 -0
- package/dist/templates/project-tee-starter/src/frontend/utils.ts +6 -0
- package/dist/templates/project-tee-starter/src/index.ts +8 -6
- package/dist/templates/project-tee-starter/src/plugin.ts +223 -61
- package/dist/templates/project-tee-starter/tailwind.config.js +62 -0
- package/dist/templates/project-tee-starter/tsconfig.build.json +2 -2
- package/dist/templates/project-tee-starter/tsconfig.json +8 -5
- package/dist/templates/project-tee-starter/tsup.config.ts +3 -2
- package/dist/templates/project-tee-starter/vite.config.ts +39 -0
- package/dist/url-utils-CKc_Ebt_.d.ts +35 -0
- package/dist/{utils-H66532NB.js → utils-5HPZSIF6.js} +4 -4
- package/package.json +7 -6
- package/templates/plugin-quick-starter/README.md +52 -10
- package/templates/plugin-quick-starter/package.json +10 -3
- package/templates/plugin-quick-starter/src/__tests__/e2e/README.md +140 -0
- package/templates/plugin-quick-starter/src/__tests__/e2e/plugin-quick-starter.e2e.ts +339 -0
- package/templates/plugin-quick-starter/src/__tests__/plugin.test.ts +537 -146
- package/templates/plugin-quick-starter/src/__tests__/test-utils.ts +316 -115
- package/templates/plugin-quick-starter/src/plugin.ts +20 -26
- package/templates/plugin-starter/README.md +124 -49
- package/templates/plugin-starter/package.json +10 -3
- package/templates/plugin-starter/src/__tests__/e2e/README.md +44 -9
- package/{dist/templates/plugin-starter/src/__tests__/e2e/starter-plugin.ts → templates/plugin-starter/src/__tests__/e2e/plugin-starter.e2e.ts} +13 -20
- package/templates/plugin-starter/src/__tests__/integration.test.ts +13 -13
- package/templates/plugin-starter/src/__tests__/plugin.test.ts +556 -129
- package/templates/plugin-starter/src/__tests__/test-utils.ts +347 -115
- package/templates/plugin-starter/src/plugin.ts +21 -27
- package/templates/project-starter/README.md +25 -12
- package/templates/project-starter/package.json +4 -4
- package/templates/project-starter/src/__tests__/actions.test.ts +2 -2
- package/templates/project-starter/src/__tests__/e2e/README.md +103 -0
- package/templates/project-starter/src/__tests__/e2e/project-starter.e2e.ts +575 -0
- package/templates/project-starter/src/__tests__/env.test.ts +3 -1
- package/templates/project-starter/src/__tests__/file-structure.test.ts +3 -2
- package/templates/project-starter/src/__tests__/integration.test.ts +2 -2
- package/templates/project-starter/src/__tests__/models.test.ts +3 -3
- package/templates/project-starter/src/__tests__/plugin.test.ts +3 -3
- package/templates/project-starter/src/__tests__/provider.test.ts +2 -2
- package/templates/project-starter/src/index.ts +4 -3
- package/templates/project-starter/src/plugin.ts +5 -5
- package/templates/project-starter/tsup.config.ts +2 -1
- package/templates/project-tee-starter/.dockerignore +64 -14
- package/templates/project-tee-starter/Dockerfile +9 -5
- package/templates/project-tee-starter/GUIDE.md +103 -42
- package/templates/project-tee-starter/README.md +83 -24
- package/templates/project-tee-starter/docker-compose.yaml +5 -2
- package/templates/{plugin-starter/dist → project-tee-starter}/index.html +3 -3
- package/templates/project-tee-starter/package.json +34 -14
- package/templates/project-tee-starter/postcss.config.js +3 -0
- package/templates/project-tee-starter/scripts/install-test-deps.js +52 -0
- package/templates/project-tee-starter/scripts/test-all.sh +82 -0
- package/templates/project-tee-starter/src/__tests__/build-order.test.ts +62 -0
- package/templates/project-tee-starter/{__tests__ → src/__tests__}/character.test.ts +20 -18
- package/templates/project-tee-starter/{__tests__ → src/__tests__}/config.test.ts +11 -4
- package/templates/project-tee-starter/src/__tests__/e2e/README.md +128 -0
- package/templates/project-tee-starter/src/__tests__/e2e/project-tee-starter.e2e.ts +280 -0
- package/templates/project-tee-starter/{__tests__ → src/__tests__}/env.test.ts +3 -2
- package/{dist/templates/project-tee-starter → templates/project-tee-starter/src}/__tests__/error-handling.test.ts +2 -2
- package/{dist/templates/project-tee-starter → templates/project-tee-starter/src}/__tests__/events.test.ts +1 -1
- package/{dist/templates/project-tee-starter → templates/project-tee-starter/src}/__tests__/file-structure.test.ts +16 -5
- package/templates/project-tee-starter/src/__tests__/frontend.test.ts +459 -0
- package/{dist/templates/project-tee-starter → templates/project-tee-starter/src}/__tests__/integration.test.ts +2 -2
- package/templates/project-tee-starter/{__tests__ → src/__tests__}/models.test.ts +1 -1
- package/templates/project-tee-starter/{__tests__ → src/__tests__}/plugin.test.ts +5 -3
- package/{dist/templates/project-tee-starter → templates/project-tee-starter/src}/__tests__/provider.test.ts +2 -2
- package/templates/project-tee-starter/src/__tests__/routes.test.ts +30 -0
- package/templates/project-tee-starter/src/__tests__/tee-validation.test.ts +295 -0
- package/{dist/templates/project-tee-starter → templates/project-tee-starter/src}/__tests__/test-utils.ts +2 -2
- package/templates/project-tee-starter/src/__tests__/vite-config-utils.ts +51 -0
- package/templates/project-tee-starter/src/frontend/index.css +106 -0
- package/templates/project-tee-starter/src/frontend/index.html +20 -0
- package/templates/project-tee-starter/src/frontend/index.tsx +370 -0
- package/templates/project-tee-starter/src/frontend/panels.tsx +17 -0
- package/templates/project-tee-starter/src/frontend/utils.ts +6 -0
- package/templates/project-tee-starter/src/index.ts +8 -6
- package/templates/project-tee-starter/src/plugin.ts +223 -61
- package/templates/project-tee-starter/tailwind.config.js +62 -0
- package/templates/project-tee-starter/tsconfig.build.json +2 -2
- package/templates/project-tee-starter/tsconfig.json +8 -5
- package/templates/project-tee-starter/tsup.config.ts +3 -2
- package/templates/project-tee-starter/vite.config.ts +39 -0
- package/dist/chunk-4O6EZU37.js +0 -14
- package/dist/migration-guides/advanced-migration-guide.md +0 -459
- package/dist/migration-guides/completion-requirements.md +0 -379
- package/dist/migration-guides/integrated-migration-loop.md +0 -392
- package/dist/migration-guides/migration-guide.md +0 -712
- package/dist/migration-guides/prompt-and-generation-guide.md +0 -702
- package/dist/migration-guides/state-and-providers-guide.md +0 -544
- package/dist/migration-guides/testing-guide.md +0 -1021
- package/dist/templates/plugin-starter/dist/assets/index-CgkejLs_.css +0 -1
- package/dist/templates/plugin-starter/dist/assets/index-D1cHX53P.js +0 -49
- package/dist/templates/plugin-starter/dist/index.js +0 -387
- package/dist/templates/plugin-starter/dist/index.js.map +0 -1
- package/dist/templates/plugin-starter/src/tests.ts +0 -6
- package/dist/templates/project-starter/src/__tests__/e2e/index.ts +0 -14
- package/dist/templates/project-starter/src/__tests__/e2e/natural-language.test.ts +0 -246
- package/dist/templates/project-starter/src/__tests__/e2e/project.test.ts +0 -155
- package/dist/templates/project-starter/src/__tests__/e2e/starter-plugin.test.ts +0 -421
- package/dist/templates/project-tee-starter/__tests__/routes.test.ts +0 -21
- package/dist/templates/project-tee-starter/e2e/project.test.ts +0 -38
- package/dist/templates/project-tee-starter/e2e/starter-plugin.test.ts +0 -92
- package/templates/plugin-starter/dist/.vite/manifest.json +0 -11
- package/templates/plugin-starter/dist/assets/index-CgkejLs_.css +0 -1
- package/templates/plugin-starter/dist/assets/index-D1cHX53P.js +0 -49
- package/templates/plugin-starter/dist/index.d.ts +0 -14
- package/templates/plugin-starter/dist/index.js +0 -387
- package/templates/plugin-starter/dist/index.js.map +0 -1
- package/templates/plugin-starter/src/tests.ts +0 -6
- package/templates/project-starter/src/__tests__/e2e/index.ts +0 -14
- package/templates/project-starter/src/__tests__/e2e/natural-language.test.ts +0 -246
- package/templates/project-starter/src/__tests__/e2e/project.test.ts +0 -155
- package/templates/project-starter/src/__tests__/e2e/starter-plugin.test.ts +0 -421
- package/templates/project-tee-starter/__tests__/routes.test.ts +0 -21
- package/templates/project-tee-starter/e2e/project.test.ts +0 -38
- package/templates/project-tee-starter/e2e/starter-plugin.test.ts +0 -92
- /package/dist/templates/project-tee-starter/{__tests__ → src/__tests__}/actions.test.ts +0 -0
- /package/dist/templates/project-tee-starter/{__tests__ → src/__tests__}/utils/core-test-utils.ts +0 -0
- /package/templates/project-tee-starter/{__tests__ → src/__tests__}/actions.test.ts +0 -0
- /package/templates/project-tee-starter/{__tests__ → src/__tests__}/utils/core-test-utils.ts +0 -0
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
selectEmbeddingModel,
|
|
10
10
|
validateCreateOptions,
|
|
11
11
|
validateProjectName
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-SMZBJQJR.js";
|
|
13
13
|
import {
|
|
14
14
|
displayBanner,
|
|
15
15
|
handleError
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-D3QSET5H.js";
|
|
17
17
|
|
|
18
18
|
// src/commands/create/index.ts
|
|
19
19
|
import { Command } from "commander";
|
|
@@ -195,7 +195,7 @@ var create = new Command("create").description("Create a new ElizaOS project, pl
|
|
|
195
195
|
const errorType = formatProjectType(projectType || "project");
|
|
196
196
|
clack.cancel(`Failed to create ${errorType}.`);
|
|
197
197
|
}
|
|
198
|
-
logger.error("Create command failed:"
|
|
198
|
+
logger.error({ error }, "Create command failed:");
|
|
199
199
|
handleError(error);
|
|
200
200
|
process.exit(1);
|
|
201
201
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// src/commands/shared/url-utils.ts
|
|
2
|
+
function getAgentRuntimeUrl(opts) {
|
|
3
|
+
return opts.remoteUrl?.replace(/\/$/, "") || // Use the flag if provided
|
|
4
|
+
process.env.AGENT_RUNTIME_URL?.replace(/\/$/, "") || // Fallback to env var
|
|
5
|
+
`http://localhost:${opts.port || process.env.SERVER_PORT || "3000"}`;
|
|
6
|
+
}
|
|
7
|
+
function getAgentsBaseUrl(opts) {
|
|
8
|
+
return `${getAgentRuntimeUrl(opts)}/api/agents`;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// src/commands/shared/auth-utils.ts
|
|
12
|
+
function getAuthHeaders(opts) {
|
|
13
|
+
const authToken = opts.authToken || process.env.ELIZA_SERVER_AUTH_TOKEN;
|
|
14
|
+
if (authToken) {
|
|
15
|
+
return {
|
|
16
|
+
"X-API-KEY": authToken
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
return {};
|
|
20
|
+
}
|
|
21
|
+
function createApiClientConfig(opts) {
|
|
22
|
+
const authToken = opts.authToken || process.env.ELIZA_SERVER_AUTH_TOKEN;
|
|
23
|
+
return {
|
|
24
|
+
baseUrl: getAgentRuntimeUrl(opts),
|
|
25
|
+
apiKey: authToken,
|
|
26
|
+
timeout: 3e4,
|
|
27
|
+
// 30 seconds default
|
|
28
|
+
headers: {
|
|
29
|
+
"Content-Type": "application/json"
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export {
|
|
35
|
+
getAgentRuntimeUrl,
|
|
36
|
+
getAgentsBaseUrl,
|
|
37
|
+
getAuthHeaders,
|
|
38
|
+
createApiClientConfig
|
|
39
|
+
};
|
|
@@ -110,7 +110,7 @@ async function bunExec(command, args = [], options = {}) {
|
|
|
110
110
|
if (!success && options.stdio !== "ignore") {
|
|
111
111
|
logger.debug(`[bunExec] Command failed with exit code ${exitCode}`);
|
|
112
112
|
if (stderr) {
|
|
113
|
-
logger.debug(`[bunExec] stderr
|
|
113
|
+
logger.debug({ stderr }, `[bunExec] stderr:`);
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
return {
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { OptionValues } from 'commander';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Parse error response and throw appropriate error
|
|
5
|
+
* @param response - The fetch Response object
|
|
6
|
+
* @param defaultMessage - Default error message if JSON parsing fails
|
|
7
|
+
*/
|
|
3
8
|
/**
|
|
4
9
|
* Get command implementation - retrieves and displays agent details
|
|
5
10
|
*/
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
setAgentConfig,
|
|
6
6
|
startAgent,
|
|
7
7
|
stopAgent
|
|
8
|
-
} from "../../../chunk-
|
|
9
|
-
import "../../../chunk-
|
|
10
|
-
import "../../../chunk-
|
|
11
|
-
import "../../../chunk-
|
|
8
|
+
} from "../../../chunk-D3QSET5H.js";
|
|
9
|
+
import "../../../chunk-FQYWRHLX.js";
|
|
10
|
+
import "../../../chunk-GXWWPFBO.js";
|
|
11
|
+
import "../../../chunk-I4L4T7QX.js";
|
|
12
12
|
import "../../../chunk-3RG5ZIWI.js";
|
|
13
13
|
export {
|
|
14
14
|
clearAgentMemories,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OptionValues, Command } from 'commander';
|
|
2
|
-
import { AgentBasic } from '
|
|
3
|
-
export { getAgentRuntimeUrl, getAgentsBaseUrl } from '
|
|
2
|
+
import { a as AgentBasic } from '../../url-utils-CKc_Ebt_.js';
|
|
3
|
+
export { g as getAgentRuntimeUrl, b as getAgentsBaseUrl } from '../../url-utils-CKc_Ebt_.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Asynchronously fetches a list of basic agent information from the server.
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
agent,
|
|
3
3
|
getAgents,
|
|
4
4
|
resolveAgentId
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-D3QSET5H.js";
|
|
6
|
+
import "../../chunk-FQYWRHLX.js";
|
|
7
7
|
import {
|
|
8
8
|
getAgentRuntimeUrl,
|
|
9
9
|
getAgentsBaseUrl
|
|
10
|
-
} from "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
10
|
+
} from "../../chunk-GXWWPFBO.js";
|
|
11
|
+
import "../../chunk-I4L4T7QX.js";
|
|
12
12
|
import "../../chunk-3RG5ZIWI.js";
|
|
13
13
|
export {
|
|
14
14
|
agent,
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
setupAIModelConfig,
|
|
9
9
|
setupEmbeddingModelConfig,
|
|
10
10
|
setupProjectEnvironment
|
|
11
|
-
} from "../../../chunk-
|
|
12
|
-
import "../../../chunk-
|
|
13
|
-
import "../../../chunk-
|
|
14
|
-
import "../../../chunk-
|
|
15
|
-
import "../../../chunk-
|
|
11
|
+
} from "../../../chunk-SMZBJQJR.js";
|
|
12
|
+
import "../../../chunk-D3QSET5H.js";
|
|
13
|
+
import "../../../chunk-FQYWRHLX.js";
|
|
14
|
+
import "../../../chunk-GXWWPFBO.js";
|
|
15
|
+
import "../../../chunk-I4L4T7QX.js";
|
|
16
16
|
import "../../../chunk-3RG5ZIWI.js";
|
|
17
17
|
export {
|
|
18
18
|
createAgent,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-FSSUAWXQ.js";
|
|
4
|
+
import "../../chunk-SMZBJQJR.js";
|
|
5
|
+
import "../../chunk-D3QSET5H.js";
|
|
6
|
+
import "../../chunk-FQYWRHLX.js";
|
|
7
|
+
import "../../chunk-GXWWPFBO.js";
|
|
8
|
+
import "../../chunk-I4L4T7QX.js";
|
|
9
9
|
import "../../chunk-3RG5ZIWI.js";
|
|
10
10
|
export {
|
|
11
11
|
create
|
|
@@ -1,35 +1,18 @@
|
|
|
1
|
+
export { a as AgentBasic, A as ApiResponse, g as getAgentRuntimeUrl, b as getAgentsBaseUrl } from '../../url-utils-CKc_Ebt_.js';
|
|
1
2
|
import { OptionValues } from 'commander';
|
|
3
|
+
import { ApiClientConfig } from '@elizaos/api-client';
|
|
2
4
|
|
|
3
5
|
/**
|
|
4
|
-
*
|
|
5
|
-
* @
|
|
6
|
+
* Get authentication headers for API requests
|
|
7
|
+
* @param opts - Command options that may contain auth information
|
|
8
|
+
* @returns Headers object with authentication if token is available
|
|
6
9
|
*/
|
|
7
|
-
|
|
8
|
-
success: boolean;
|
|
9
|
-
data?: T;
|
|
10
|
-
error?: {
|
|
11
|
-
code: string;
|
|
12
|
-
message: string;
|
|
13
|
-
details?: unknown;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
10
|
+
declare function getAuthHeaders(opts: OptionValues): Record<string, string>;
|
|
16
11
|
/**
|
|
17
|
-
*
|
|
12
|
+
* Create ApiClientConfig from CLI options
|
|
13
|
+
* @param opts - Command options that may contain auth and connection information
|
|
14
|
+
* @returns ApiClientConfig for use with @elizaos/api-client
|
|
18
15
|
*/
|
|
19
|
-
|
|
20
|
-
id: string;
|
|
21
|
-
name: string;
|
|
22
|
-
status?: string;
|
|
23
|
-
[key: string]: unknown;
|
|
24
|
-
}
|
|
16
|
+
declare function createApiClientConfig(opts: OptionValues): ApiClientConfig;
|
|
25
17
|
|
|
26
|
-
|
|
27
|
-
* Helper function to determine the agent runtime URL
|
|
28
|
-
*/
|
|
29
|
-
declare function getAgentRuntimeUrl(opts: OptionValues): string;
|
|
30
|
-
/**
|
|
31
|
-
* Helper function to get the agents base API URL
|
|
32
|
-
*/
|
|
33
|
-
declare function getAgentsBaseUrl(opts: OptionValues): string;
|
|
34
|
-
|
|
35
|
-
export { type AgentBasic, type ApiResponse, getAgentRuntimeUrl, getAgentsBaseUrl };
|
|
18
|
+
export { createApiClientConfig, getAuthHeaders };
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
+
createApiClientConfig,
|
|
2
3
|
getAgentRuntimeUrl,
|
|
3
|
-
getAgentsBaseUrl
|
|
4
|
-
|
|
4
|
+
getAgentsBaseUrl,
|
|
5
|
+
getAuthHeaders
|
|
6
|
+
} from "../../chunk-GXWWPFBO.js";
|
|
5
7
|
import "../../chunk-3RG5ZIWI.js";
|
|
6
8
|
export {
|
|
9
|
+
createApiClientConfig,
|
|
7
10
|
getAgentRuntimeUrl,
|
|
8
|
-
getAgentsBaseUrl
|
|
11
|
+
getAgentsBaseUrl,
|
|
12
|
+
getAuthHeaders
|
|
9
13
|
};
|