totemlayer 0.1.4 → 0.1.6
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 +24 -3
- package/bin/agent-profile.mjs +466 -0
- package/bin/agent-runner.mjs +609 -0
- package/bin/agent-setup.mjs +659 -0
- package/bin/collaboration-listener.mjs +83 -83
- package/bin/docker-test-sandbox.mjs +61 -0
- package/bin/local-model-provider.mjs +29 -0
- package/bin/mcp-install.mjs +240 -1
- package/bin/mcp.mjs +1 -1
- package/bin/mission-agent-service.mjs +441 -0
- package/bin/mission-agent-session.mjs +188 -0
- package/bin/mission-supervisor.mjs +166 -0
- package/bin/mission-worker.mjs +3537 -0
- package/bin/network-runtime.mjs +86 -27
- package/bin/network.mjs +96 -5
- package/bin/platform-client.mjs +1 -0
- package/bin/sdk/action-types.js +1 -0
- package/bin/sdk/actions.js +84 -0
- package/bin/sdk/index.js +75 -0
- package/bin/sdk/request-options.js +36 -0
- package/bin/sdk/transport.js +8 -3
- package/bin/totem.mjs +23 -2
- package/package.json +1 -1
package/bin/totem.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { createHash, randomUUID } from "node:crypto";
|
|
|
4
4
|
import { createReadStream } from "node:fs";
|
|
5
5
|
import { stripVTControlCharacters } from "node:util";
|
|
6
6
|
|
|
7
|
-
const CLI_VERSION = "0.1.
|
|
7
|
+
const CLI_VERSION = "0.1.6";
|
|
8
8
|
const DEFAULT_BASE_URL = "https://totemlayer.com";
|
|
9
9
|
const API_KEY_PATTERN = /^at_(?:live|test)_[A-Za-z0-9_-]{20,}$/;
|
|
10
10
|
const ACTION_PATTERN = /^[a-z0-9][a-z0-9._:-]*$/;
|
|
@@ -241,9 +241,16 @@ function help() {
|
|
|
241
241
|
Confirm installation totem --version
|
|
242
242
|
Run one-off npx --yes totemlayer --help
|
|
243
243
|
|
|
244
|
+
Connect once and receive Mission work (local preview)
|
|
245
|
+
Requires the matching local package; not yet published to npm.
|
|
246
|
+
totem setup
|
|
247
|
+
totem status
|
|
248
|
+
totem start --background
|
|
249
|
+
totem stop
|
|
250
|
+
|
|
244
251
|
Agent messaging and local runtime
|
|
245
252
|
totem network --help
|
|
246
|
-
totem network run --provider
|
|
253
|
+
totem network run --provider qwen-local --model qwen3.5-9b
|
|
247
254
|
|
|
248
255
|
Connect an AI app through MCP
|
|
249
256
|
totem mcp
|
|
@@ -1741,6 +1748,20 @@ async function runRfq(options, baseUrl) {
|
|
|
1741
1748
|
}
|
|
1742
1749
|
|
|
1743
1750
|
async function main() {
|
|
1751
|
+
if (["setup", "status", "doctor"].includes(process.argv[2])) {
|
|
1752
|
+
const { agentSetupMain, agentStatusMain } = await import("./agent-setup.mjs");
|
|
1753
|
+
const { readAgentRuntimeStatus } = await import("./agent-runner.mjs");
|
|
1754
|
+
const command = process.argv[2] === "setup" ? agentSetupMain : agentStatusMain;
|
|
1755
|
+
process.exitCode = await command(process.argv.slice(3), {
|
|
1756
|
+
readRuntimeStatus: readAgentRuntimeStatus,
|
|
1757
|
+
});
|
|
1758
|
+
return;
|
|
1759
|
+
}
|
|
1760
|
+
if (["start", "stop"].includes(process.argv[2])) {
|
|
1761
|
+
const { agentRunnerMain } = await import("./agent-runner.mjs");
|
|
1762
|
+
process.exitCode = await agentRunnerMain(process.argv[2], process.argv.slice(3));
|
|
1763
|
+
return;
|
|
1764
|
+
}
|
|
1744
1765
|
if (process.argv[2] === "mcp") {
|
|
1745
1766
|
if (process.argv[3] === "install" || process.argv[3] === "--help" || process.argv[3] === "-h") {
|
|
1746
1767
|
const { installTotemMcp } = await import("./mcp-install.mjs");
|