totemlayer 0.1.4 → 0.1.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/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.4";
7
+ const CLI_VERSION = "0.1.5";
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 ollama --model qwen3.5:9b
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");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "totemlayer",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Cross-platform CLI for TotemLayer agent identity and authorization",
5
5
  "type": "module",
6
6
  "bin": {