@openape/apes 1.31.2 → 1.31.3

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.js CHANGED
@@ -2701,6 +2701,9 @@ import consola23 from "consola";
2701
2701
  import { existsSync as existsSync6, mkdirSync, readFileSync as readFileSync5, writeFileSync as writeFileSync3 } from "fs";
2702
2702
  import { homedir as homedir5 } from "os";
2703
2703
  import { join as join4 } from "path";
2704
+ function isRuntimeType(value) {
2705
+ return value === "bridge" || value === "openclaw";
2706
+ }
2704
2707
  function resolveRegistryPath() {
2705
2708
  if (process.env.OPENAPE_NEST_REGISTRY_PATH) return process.env.OPENAPE_NEST_REGISTRY_PATH;
2706
2709
  if (existsSync6("/var/openape/nest/agents.json")) return "/var/openape/nest/agents.json";
@@ -3430,6 +3433,10 @@ var spawnAgentCommand = defineCommand31({
3430
3433
  "poll-interval": {
3431
3434
  type: "string",
3432
3435
  description: "For --kind service: idle poll interval in ms (default 2000)."
3436
+ },
3437
+ "type": {
3438
+ type: "string",
3439
+ description: `Runtime type: "bridge" (default, our @openape/ape-agent loop, pm2-supervised) or "openclaw" (foreign one-shot runtime the nest exec's per message). Orthogonal to --kind.`
3433
3440
  }
3434
3441
  },
3435
3442
  async run({ args }) {
@@ -3446,6 +3453,9 @@ var spawnAgentCommand = defineCommand31({
3446
3453
  if (isService && !servesUrl)
3447
3454
  throw new CliError("--kind service requires --serves <SP base URL> (e.g. https://zaz.delta-mind.at).");
3448
3455
  const pollMs = typeof args["poll-interval"] === "string" ? Number.parseInt(args["poll-interval"], 10) : void 0;
3456
+ const runtimeType = typeof args.type === "string" ? args.type : void 0;
3457
+ if (runtimeType != null && !isRuntimeType(runtimeType))
3458
+ throw new CliError(`Invalid --type "${runtimeType}". Must be "bridge" or "openclaw".`);
3449
3459
  const auth = loadAuth();
3450
3460
  if (!auth) {
3451
3461
  throw new CliError("Not authenticated. Run `apes login` first.");
@@ -3517,6 +3527,7 @@ var spawnAgentCommand = defineCommand31({
3517
3527
  email: registration.email,
3518
3528
  registeredAt: Math.floor(Date.now() / 1e3),
3519
3529
  kind: isService ? "service" : void 0,
3530
+ runtimeType,
3520
3531
  service: isService && servesUrl ? { spBaseUrl: servesUrl, pollIntervalMs: pollMs != null && Number.isFinite(pollMs) && pollMs > 0 ? pollMs : void 0 } : void 0,
3521
3532
  // Service agents also carry bridge config — it's the LLM endpoint the
3522
3533
  // worker forwards to (baseUrl/key/model from --bridge-*).
@@ -5852,7 +5863,7 @@ var mcpCommand = defineCommand53({
5852
5863
  if (transport !== "stdio" && transport !== "sse") {
5853
5864
  throw new Error('Transport must be "stdio" or "sse"');
5854
5865
  }
5855
- const { startMcpServer } = await import("./server-OSX5LE4W.js");
5866
+ const { startMcpServer } = await import("./server-CELKDGTK.js");
5856
5867
  await startMcpServer(transport, port);
5857
5868
  }
5858
5869
  });
@@ -6490,7 +6501,7 @@ async function bestEffortGrantCount(idp) {
6490
6501
  }
6491
6502
  }
6492
6503
  async function runHealth(args) {
6493
- const version = true ? "1.31.2" : "0.0.0";
6504
+ const version = true ? "1.31.3" : "0.0.0";
6494
6505
  const auth = loadAuth();
6495
6506
  if (!auth) {
6496
6507
  throw new CliError("Not logged in. Run `apes login` first.", 1);
@@ -6763,10 +6774,10 @@ if (shellRewrite) {
6763
6774
  if (shellRewrite.action === "rewrite") {
6764
6775
  process.argv = shellRewrite.argv;
6765
6776
  } else if (shellRewrite.action === "version") {
6766
- console.log(`ape-shell ${"1.31.2"} (OpenApe DDISA shell wrapper)`);
6777
+ console.log(`ape-shell ${"1.31.3"} (OpenApe DDISA shell wrapper)`);
6767
6778
  process.exit(0);
6768
6779
  } else if (shellRewrite.action === "help") {
6769
- console.log(`ape-shell ${"1.31.2"} \u2014 OpenApe DDISA shell wrapper`);
6780
+ console.log(`ape-shell ${"1.31.3"} \u2014 OpenApe DDISA shell wrapper`);
6770
6781
  console.log("");
6771
6782
  console.log("Usage:");
6772
6783
  console.log(" ape-shell Start interactive grant-mediated REPL");
@@ -6825,7 +6836,7 @@ var configCommand = defineCommand65({
6825
6836
  var main = defineCommand65({
6826
6837
  meta: {
6827
6838
  name: "apes",
6828
- version: "1.31.2",
6839
+ version: "1.31.3",
6829
6840
  description: "Unified CLI for OpenApe"
6830
6841
  },
6831
6842
  subCommands: {
@@ -6883,7 +6894,7 @@ async function maybeRefreshAuth() {
6883
6894
  }
6884
6895
  }
6885
6896
  await maybeRefreshAuth();
6886
- await maybeWarnStaleVersion("1.31.2").catch(() => {
6897
+ await maybeWarnStaleVersion("1.31.3").catch(() => {
6887
6898
  });
6888
6899
  runMain(main).catch((err) => {
6889
6900
  if (err instanceof CliExit) {