thenomad 0.4.0 → 0.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.
Files changed (134) hide show
  1. package/dist/nomad.js +276 -25
  2. package/package.json +1 -1
  3. package/web/404.html +1 -1
  4. package/web/__next.__PAGE__.txt +5 -5
  5. package/web/__next._full.txt +5 -5
  6. package/web/__next._tree.txt +1 -1
  7. package/web/_next/static/chunks/10-jap4z156cb.js +1 -0
  8. package/web/_next/static/chunks/2cr1t7zd3-idq.js +7 -0
  9. package/web/_next/static/chunks/2xk_pltb6ubb0.js +1 -0
  10. package/web/_next/static/chunks/{01v5aab_kf3r7.js → 35uvx15wn7-j-.js} +1 -1
  11. package/web/_not-found/__next._full.txt +1 -1
  12. package/web/_not-found/__next._not-found.__PAGE__.txt +1 -1
  13. package/web/_not-found/__next._tree.txt +1 -1
  14. package/web/_not-found.html +1 -1
  15. package/web/_not-found.txt +1 -1
  16. package/web/app/__next._full.txt +1 -1
  17. package/web/app/__next._tree.txt +1 -1
  18. package/web/app/__next.app.__PAGE__.txt +1 -1
  19. package/web/app/__next.app.txt +1 -1
  20. package/web/app/agents/__next._full.txt +1 -1
  21. package/web/app/agents/__next._tree.txt +1 -1
  22. package/web/app/agents/__next.app.agents.__PAGE__.txt +1 -1
  23. package/web/app/agents/__next.app.txt +1 -1
  24. package/web/app/agents/view/__next._full.txt +1 -1
  25. package/web/app/agents/view/__next._tree.txt +1 -1
  26. package/web/app/agents/view/__next.app.agents.view.__PAGE__.txt +1 -1
  27. package/web/app/agents/view/__next.app.txt +1 -1
  28. package/web/app/agents/view.html +1 -1
  29. package/web/app/agents/view.txt +1 -1
  30. package/web/app/agents.html +1 -1
  31. package/web/app/agents.txt +1 -1
  32. package/web/app/backups/__next._full.txt +1 -1
  33. package/web/app/backups/__next._tree.txt +1 -1
  34. package/web/app/backups/__next.app.backups.__PAGE__.txt +1 -1
  35. package/web/app/backups/__next.app.txt +1 -1
  36. package/web/app/backups.html +1 -1
  37. package/web/app/backups.txt +1 -1
  38. package/web/app/compatibility/__next._full.txt +3 -3
  39. package/web/app/compatibility/__next._tree.txt +1 -1
  40. package/web/app/compatibility/__next.app.compatibility.__PAGE__.txt +3 -3
  41. package/web/app/compatibility/__next.app.txt +1 -1
  42. package/web/app/compatibility.html +1 -1
  43. package/web/app/compatibility.txt +3 -3
  44. package/web/app/export/__next._full.txt +3 -3
  45. package/web/app/export/__next._tree.txt +1 -1
  46. package/web/app/export/__next.app.export.__PAGE__.txt +3 -3
  47. package/web/app/export/__next.app.txt +1 -1
  48. package/web/app/export.html +1 -1
  49. package/web/app/export.txt +3 -3
  50. package/web/app/history/__next._full.txt +3 -3
  51. package/web/app/history/__next._tree.txt +1 -1
  52. package/web/app/history/__next.app.history.__PAGE__.txt +3 -3
  53. package/web/app/history/__next.app.txt +1 -1
  54. package/web/app/history.html +1 -1
  55. package/web/app/history.txt +3 -3
  56. package/web/app/import/__next._full.txt +1 -1
  57. package/web/app/import/__next._tree.txt +1 -1
  58. package/web/app/import/__next.app.import.__PAGE__.txt +1 -1
  59. package/web/app/import/__next.app.txt +1 -1
  60. package/web/app/import.html +1 -1
  61. package/web/app/import.txt +1 -1
  62. package/web/app/migrate/__next._full.txt +3 -3
  63. package/web/app/migrate/__next._tree.txt +1 -1
  64. package/web/app/migrate/__next.app.migrate.__PAGE__.txt +3 -3
  65. package/web/app/migrate/__next.app.txt +1 -1
  66. package/web/app/migrate.html +1 -1
  67. package/web/app/migrate.txt +3 -3
  68. package/web/app/settings/__next._full.txt +1 -1
  69. package/web/app/settings/__next._tree.txt +1 -1
  70. package/web/app/settings/__next.app.settings.__PAGE__.txt +1 -1
  71. package/web/app/settings/__next.app.txt +1 -1
  72. package/web/app/settings.html +1 -1
  73. package/web/app/settings.txt +1 -1
  74. package/web/app/versions/__next._full.txt +1 -1
  75. package/web/app/versions/__next._tree.txt +1 -1
  76. package/web/app/versions/__next.app.txt +1 -1
  77. package/web/app/versions/__next.app.versions.__PAGE__.txt +1 -1
  78. package/web/app/versions.html +1 -1
  79. package/web/app/versions.txt +1 -1
  80. package/web/app.html +1 -1
  81. package/web/app.txt +1 -1
  82. package/web/docs/__next._full.txt +1 -1
  83. package/web/docs/__next._tree.txt +1 -1
  84. package/web/docs/__next.docs.__PAGE__.txt +1 -1
  85. package/web/docs/adapters/__next._full.txt +19 -17
  86. package/web/docs/adapters/__next._tree.txt +1 -1
  87. package/web/docs/adapters/__next.docs.adapters.__PAGE__.txt +16 -14
  88. package/web/docs/adapters.html +1 -1
  89. package/web/docs/adapters.txt +19 -17
  90. package/web/docs/format/__next._full.txt +1 -1
  91. package/web/docs/format/__next._tree.txt +1 -1
  92. package/web/docs/format/__next.docs.format.__PAGE__.txt +1 -1
  93. package/web/docs/format.html +1 -1
  94. package/web/docs/format.txt +1 -1
  95. package/web/docs/security/__next._full.txt +1 -1
  96. package/web/docs/security/__next._tree.txt +1 -1
  97. package/web/docs/security/__next.docs.security.__PAGE__.txt +1 -1
  98. package/web/docs/security.html +1 -1
  99. package/web/docs/security.txt +1 -1
  100. package/web/docs/token/__next._full.txt +1 -1
  101. package/web/docs/token/__next._tree.txt +1 -1
  102. package/web/docs/token/__next.docs.token.__PAGE__.txt +1 -1
  103. package/web/docs/token.html +1 -1
  104. package/web/docs/token.txt +1 -1
  105. package/web/docs.html +1 -1
  106. package/web/docs.txt +1 -1
  107. package/web/index.html +2 -2
  108. package/web/index.txt +5 -5
  109. package/web/inspect/__next._full.txt +5 -5
  110. package/web/inspect/__next._tree.txt +1 -1
  111. package/web/inspect/__next.inspect.__PAGE__.txt +5 -5
  112. package/web/inspect.html +1 -1
  113. package/web/inspect.txt +5 -5
  114. package/web/privacy/__next._full.txt +1 -1
  115. package/web/privacy/__next._tree.txt +1 -1
  116. package/web/privacy/__next.privacy.__PAGE__.txt +1 -1
  117. package/web/privacy.html +1 -1
  118. package/web/privacy.txt +1 -1
  119. package/web/terms/__next._full.txt +1 -1
  120. package/web/terms/__next._tree.txt +1 -1
  121. package/web/terms/__next.terms.__PAGE__.txt +1 -1
  122. package/web/terms.html +1 -1
  123. package/web/terms.txt +1 -1
  124. package/web/vote/__next._full.txt +1 -1
  125. package/web/vote/__next._tree.txt +1 -1
  126. package/web/vote/__next.vote.__PAGE__.txt +1 -1
  127. package/web/vote.html +1 -1
  128. package/web/vote.txt +1 -1
  129. package/web/_next/static/chunks/1d7qnsfqdlz_u.js +0 -1
  130. package/web/_next/static/chunks/1zb0q77s0yui0.js +0 -1
  131. package/web/_next/static/chunks/2ka3apprzgwd-.js +0 -7
  132. /package/web/_next/static/{KOmtJW9C8Na0OCY-uXSeu → GFCmlWJPNNpG79BCw_NAH}/_buildManifest.js +0 -0
  133. /package/web/_next/static/{KOmtJW9C8Na0OCY-uXSeu → GFCmlWJPNNpG79BCw_NAH}/_clientMiddlewareManifest.js +0 -0
  134. /package/web/_next/static/{KOmtJW9C8Na0OCY-uXSeu → GFCmlWJPNNpG79BCw_NAH}/_ssgManifest.js +0 -0
package/dist/nomad.js CHANGED
@@ -1,8 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  var __defProp = Object.defineProperty;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __esm = (fn, res) => function __init() {
5
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
4
+ var __esm = (fn, res, err) => function __init() {
5
+ if (err) throw err[0];
6
+ try {
7
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
8
+ } catch (e) {
9
+ throw err = [e], e;
10
+ }
6
11
  };
7
12
  var __export = (target, all) => {
8
13
  for (var name in all)
@@ -923,7 +928,7 @@ var init_src2 = __esm({
923
928
  init_markdown();
924
929
  init_document();
925
930
  init_merge();
926
- NOMAD_VERSION = "0.4.0";
931
+ NOMAD_VERSION = "0.4.2";
927
932
  NomadError = class extends Error {
928
933
  constructor(message, code, hint) {
929
934
  super(message);
@@ -971,7 +976,10 @@ var init_keymaterial = __esm({
971
976
  // Oak Agent Kit: the encrypted wallet (wallet.enc), private notes (*.gloam.enc), the wallet journal and settings.
972
977
  /(^|\/)\.oak(\/|$)/,
973
978
  // Hedgehood: the session, payer and owner key files and the kit's settings.
974
- /(^|\/)\.hedgehood(\/|$)/
979
+ /(^|\/)\.hedgehood(\/|$)/,
980
+ // BrainChain: the payer and worker key files and the daily spending record (~/.brainchain), and the worker's state.
981
+ /(^|\/)\.brainchain(\/|$)/,
982
+ /(^|\/)\.config\/brainchain-worker(\/|$)/
975
983
  ];
976
984
  KEY_MATERIAL_FILES = [/(^|\/)agent(-\d+)?\.key$/];
977
985
  skipped = /* @__PURE__ */ new Set();
@@ -1456,7 +1464,8 @@ function isSecretEnvEntry(key2, value) {
1456
1464
  function isWalletEnvEntry(key2, value) {
1457
1465
  const v = value.trim();
1458
1466
  if (EVM_KEY_VALUE.test(v) || isMnemonic(v) || redactWalletText(v).count > 0) return true;
1459
- return WALLET_ENV_NAME.test(key2) && (BARE_HEX_KEY.test(v) || BASE58_KEY.test(v) || BYTE_ARRAY_KEY.test(v));
1467
+ const walletName = WALLET_ENV_NAME.test(key2) || KEY_ENV_NAME.test(key2) && !SERVICE_KEY_NAME.test(key2);
1468
+ return walletName && (BARE_HEX_KEY.test(v) || BASE58_KEY.test(v) || BYTE_ARRAY_KEY.test(v));
1460
1469
  }
1461
1470
  function visitText(doc, fn) {
1462
1471
  if (doc.identity.persona) fn("identity/persona.md", doc.identity.persona);
@@ -1484,8 +1493,8 @@ function scanDocument(doc) {
1484
1493
  if (isSensitiveFile(f.path)) sensitiveFiles.push({ file: `skills/${s.name}/${f.path}`, reason: "Credential or key file" });
1485
1494
  for (const t of doc.tools) {
1486
1495
  if (!t.mcp) continue;
1487
- const literal = (rec) => Object.fromEntries(Object.entries(rec).flatMap(([k, v]) => "value" in v ? [[k, v.value]] : []));
1488
- findings.push(...scanMcpLaunchFields(t.name, { args: t.mcp.args, url: t.mcp.url, headers: literal(t.mcp.headers) }).filter((f) => !f.file.includes("/headers/")));
1496
+ const literal2 = (rec) => Object.fromEntries(Object.entries(rec).flatMap(([k, v]) => "value" in v ? [[k, v.value]] : []));
1497
+ findings.push(...scanMcpLaunchFields(t.name, { args: t.mcp.args, url: t.mcp.url, headers: literal2(t.mcp.headers) }).filter((f) => !f.file.includes("/headers/")));
1489
1498
  }
1490
1499
  const inlineSecretValues = [];
1491
1500
  for (const t of doc.tools) {
@@ -1575,13 +1584,15 @@ function sanitizeDocument(doc, options = {}) {
1575
1584
  };
1576
1585
  return { doc: out2, report };
1577
1586
  }
1578
- var EVM_KEY_VALUE, WALLET_ENV_NAME, BARE_HEX_KEY, BASE58_KEY, BYTE_ARRAY_KEY;
1587
+ var EVM_KEY_VALUE, WALLET_ENV_NAME, KEY_ENV_NAME, SERVICE_KEY_NAME, BARE_HEX_KEY, BASE58_KEY, BYTE_ARRAY_KEY;
1579
1588
  var init_document2 = __esm({
1580
1589
  "../../packages/security/src/document.ts"() {
1581
1590
  "use strict";
1582
1591
  init_secrets();
1583
1592
  EVM_KEY_VALUE = /\b0x[0-9a-fA-F]{64}\b/;
1584
1593
  WALLET_ENV_NAME = /(PRIVATE|WALLET|SIGNER|MNEMONIC|SEED|OWNER|PAYER|SESSION)/i;
1594
+ KEY_ENV_NAME = /(^|_)KEY$/i;
1595
+ SERVICE_KEY_NAME = /(API|ACCESS|AUTH|TOKEN|CLIENT|LICEN[CS]E|PUBLIC|PUB)/i;
1585
1596
  BARE_HEX_KEY = /^(?:0x)?[0-9a-fA-F]{64}$/;
1586
1597
  BASE58_KEY = /^[1-9A-HJ-NP-Za-km-z]{86,90}$/;
1587
1598
  BYTE_ARRAY_KEY = /^\[\s*\d{1,3}(?:\s*,\s*\d{1,3}){63}\s*\]$/;
@@ -3207,7 +3218,7 @@ var init_catalog = __esm({
3207
3218
  instructions: full,
3208
3219
  memory: full,
3209
3220
  skills: full,
3210
- tools: rw("convert", "manual", "OpenClaw reaches MCP servers through plugins. Nomad lists them for manual setup."),
3221
+ tools: rw("full", "convert", "MCP servers under mcp.servers in openclaw.json, shared by all agents. Secrets are not written; Nomad lists the openclaw config set commands."),
3211
3222
  integrations: manual("Channels and credentials must be reconnected."),
3212
3223
  models: convert("Written as provider/model."),
3213
3224
  permissions: rw("convert", "convert", "Deny rules become tools.deny entries. Allow rules are documented, not applied."),
@@ -3362,6 +3373,29 @@ var init_catalog = __esm({
3362
3373
  });
3363
3374
 
3364
3375
  // ../../packages/adapters/src/known-servers.ts
3376
+ function knownSkillNotes(skills, platformId, platformName) {
3377
+ const notes = [];
3378
+ const fromBrainChain = (s) => {
3379
+ const home2 = s.frontmatter?.homepage;
3380
+ if (typeof home2 !== "string") return false;
3381
+ try {
3382
+ return /(^|\.)usebrainchain\.com$/.test(new URL(home2).hostname);
3383
+ } catch {
3384
+ return false;
3385
+ }
3386
+ };
3387
+ for (const s of skills) {
3388
+ if (!fromBrainChain(s)) continue;
3389
+ if (s.name === "brainchain-worker") {
3390
+ notes.push(
3391
+ platformId === "openclaw" ? { level: "warning", category: "skills", message: `The "brainchain-worker" skill reads its key through OpenClaw's secrets settings, which Nomad does not copy, and the worker itself is a program you run. Redo the skill's "For the operator, first" setup on this OpenClaw, then start the worker again.` } : { level: "warning", category: "skills", message: `The "brainchain-worker" skill is written for OpenClaw: it needs the openclaw command, Docker and its key in OpenClaw's secrets settings, so it does not work on ${platformName} as it is. Nomad copies it so nothing is lost.` }
3392
+ );
3393
+ } else if (s.name === "brainchain" && platformId !== "openclaw") {
3394
+ notes.push({ level: "info", category: "skills", message: `The "brainchain" skill is written for OpenClaw: its setup steps use openclaw commands and its wallet check script path is filled in by OpenClaw. The BrainChain MCP tools it describes work the same on ${platformName}.` });
3395
+ }
3396
+ }
3397
+ return notes;
3398
+ }
3365
3399
  function applyKnownServerProfile(tool, platformName = "the destination") {
3366
3400
  const out2 = { tool, notes: [], manualSteps: [], unsupported: [] };
3367
3401
  const profile = tool.mcp ? PROFILES.find((p) => p.matches(tool)) : void 0;
@@ -3405,10 +3439,22 @@ function applyKnownServerProfile(tool, platformName = "the destination") {
3405
3439
  function knownServerId(tool) {
3406
3440
  return PROFILES.find((p) => p.matches(tool))?.id ?? null;
3407
3441
  }
3408
- var isPriorsHost, PRIORS, isOakCommand, OAK, HEDGEHOOD_HOSTS, isHedgehoodHost, isHedgehoodCommand, HEDGEHOOD_KEY_VARS, HEDGEHOOD, PROFILES;
3442
+ var NPM_SPEC, escapeRe2, isPackageArg, isPackageInScript, isPriorsPackage, isPriorsScript, isPriorsHost, PRIORS, isOakCommand, OAK, HEDGEHOOD_HOSTS, isHedgehoodHost, isHedgehoodCommand, HEDGEHOOD_KEY_VARS, HEDGEHOOD, BRAINCHAIN_PKG, isBrainChainCommand, literal, amount, BRAINCHAIN, PROFILES;
3409
3443
  var init_known_servers = __esm({
3410
3444
  "../../packages/adapters/src/known-servers.ts"() {
3411
3445
  "use strict";
3446
+ NPM_SPEC = "(@[0-9A-Za-z.^~*+-]{1,64})?";
3447
+ escapeRe2 = (s) => s.replace(/[.*+?^${}()|[\]\\/]/g, "\\$&");
3448
+ isPackageArg = (name) => {
3449
+ const re = new RegExp(`^${escapeRe2(name)}${NPM_SPEC}$`);
3450
+ return (a) => re.test(a);
3451
+ };
3452
+ isPackageInScript = (name) => {
3453
+ const re = new RegExp(`(^|\\s)${escapeRe2(name)}${NPM_SPEC}(\\s|$)`);
3454
+ return (a) => re.test(a);
3455
+ };
3456
+ isPriorsPackage = isPackageArg("@priors/mcp");
3457
+ isPriorsScript = isPackageInScript("@priors/mcp");
3412
3458
  isPriorsHost = (url) => {
3413
3459
  if (!url) return false;
3414
3460
  try {
@@ -3421,7 +3467,7 @@ var init_known_servers = __esm({
3421
3467
  id: "priors",
3422
3468
  vendor: "Priors",
3423
3469
  label: "Priors (a credit service for agents on Robinhood Chain)",
3424
- matches: (t) => !!t.mcp && (t.mcp.command === "priors-mcp" || t.mcp.args.some((a) => a.includes("@priors/mcp")) || isPriorsHost(t.mcp.url)),
3470
+ matches: (t) => !!t.mcp && (t.mcp.command === "priors-mcp" || t.mcp.args.some(isPriorsPackage) || /(^|[\\/])(ba|z)?sh(\.exe)?$/.test(t.mcp.command ?? "") && t.mcp.args.some(isPriorsScript) || isPriorsHost(t.mcp.url)),
3425
3471
  keyVars: ["PRIORS_KEY_FILE", "PRIORS_KEY"],
3426
3472
  emptyOkEnv: ["PRIORS_AGENT_ID"],
3427
3473
  limitVars: [
@@ -3472,7 +3518,7 @@ var init_known_servers = __esm({
3472
3518
  id: "oak",
3473
3519
  vendor: "Oak",
3474
3520
  label: "Oak Agent Kit (a local wallet and tools for Robinhood Chain projects)",
3475
- matches: (t) => !!t.mcp && t.mcp.transport === "stdio" && (isOakCommand(t.mcp.command) && t.mcp.args[0] === "mcp" || t.mcp.args.some((a) => /^@oakagentkit\/addon(@|$)/.test(a))),
3521
+ matches: (t) => !!t.mcp && t.mcp.transport === "stdio" && (isOakCommand(t.mcp.command) && t.mcp.args[0] === "mcp" || t.mcp.args.some(isPackageArg("@oakagentkit/addon"))),
3476
3522
  keyVars: [],
3477
3523
  emptyOkEnv: [],
3478
3524
  limitVars: ["OAK_AUTO_DAILY_CAP_USD"],
@@ -3522,7 +3568,7 @@ var init_known_servers = __esm({
3522
3568
  id: "hedgehood",
3523
3569
  vendor: "Hedgehood",
3524
3570
  label: "Hedgehood (an options market for AI agents on Robinhood Chain)",
3525
- matches: (t) => !!t.mcp && (isHedgehoodCommand(t.mcp.command) || t.mcp.args.some((a) => /^@hedgehood-io\/mcp(@|$)/.test(a)) || isHedgehoodHost(t.mcp.url)),
3571
+ matches: (t) => !!t.mcp && (isHedgehoodCommand(t.mcp.command) || t.mcp.args.some(isPackageArg("@hedgehood-io/mcp")) || isHedgehoodHost(t.mcp.url)),
3526
3572
  // Both the file and the raw form of a key may be set (the file wins), so keys are handled in apply().
3527
3573
  keyVars: [],
3528
3574
  emptyOkEnv: [],
@@ -3585,7 +3631,87 @@ var init_known_servers = __esm({
3585
3631
  }
3586
3632
  }
3587
3633
  };
3588
- PROFILES = [PRIORS, OAK, HEDGEHOOD];
3634
+ BRAINCHAIN_PKG = /^brainchain-mcp(@(latest|next|\d+\.\d+\.\d+(-[0-9A-Za-z.-]+)?))?$/;
3635
+ isBrainChainCommand = (command) => !!command && /(^|[\\/])brainchain-mcp(\.cmd|\.exe)?$/i.test(command);
3636
+ literal = (t, k) => {
3637
+ const v = t.mcp?.env[k];
3638
+ return v && "value" in v ? v.value.trim() : void 0;
3639
+ };
3640
+ amount = (units) => {
3641
+ if (!/^\d+$/.test(units)) return units;
3642
+ const n = BigInt(units);
3643
+ const whole = n / 1000000n;
3644
+ const fraction = (n % 1000000n).toString().padStart(6, "0").replace(/0+$/, "");
3645
+ return fraction ? `${whole}.${fraction}` : `${whole}`;
3646
+ };
3647
+ BRAINCHAIN = {
3648
+ id: "brainchain",
3649
+ vendor: "BrainChain",
3650
+ label: "BrainChain (verified AI work, paid on Robinhood Chain or Base)",
3651
+ matches: (t) => !!t.mcp && t.mcp.transport === "stdio" && (isBrainChainCommand(t.mcp.command) || t.mcp.args.some((a) => BRAINCHAIN_PKG.test(a))),
3652
+ keyVars: ["BRAINCHAIN_PAYER_KEY_FILE", "BRAINCHAIN_PAYER_KEY"],
3653
+ emptyOkEnv: [],
3654
+ limitVars: ["BRAINCHAIN_MAX_PRICE_UNITS", "BRAINCHAIN_BUDGET_UNITS", "BRAINCHAIN_DAILY_UNITS", "BRAINCHAIN_MAX_BOND_UNITS", "BRAINCHAIN_STATE_DIR"],
3655
+ looserDefaults: {
3656
+ BRAINCHAIN_BUDGET_UNITS: "10 per server run",
3657
+ BRAINCHAIN_DAILY_UNITS: "no daily cap",
3658
+ BRAINCHAIN_MAX_BOND_UNITS: "10 USDG per bond"
3659
+ },
3660
+ apply(t, out2, platform) {
3661
+ const mcp = t.mcp;
3662
+ out2.notes.push({
3663
+ level: "info",
3664
+ category: "integrations",
3665
+ message: "BrainChain's wallet key and daily spending record stay on this computer in ~/.brainchain. Nomad never reads that folder or any key file, and never moves tasks, bonds or approvals on chain."
3666
+ });
3667
+ const raw = mcp.env.BRAINCHAIN_PAYER_KEY;
3668
+ if (raw && "value" in raw) mcp.env.BRAINCHAIN_PAYER_KEY = { secretRef: "BRAINCHAIN_PAYER_KEY", redacted: true };
3669
+ if (mcp.env.BRAINCHAIN_PAYER_KEY && !mcp.env.BRAINCHAIN_PAYER_KEY_FILE) {
3670
+ out2.notes.push({ level: "info", category: "tools", message: `"${t.name}" was given its wallet key directly. BrainChain recommends BRAINCHAIN_PAYER_KEY_FILE instead: a path to an owner-only file holding only that key, so the key is not in ${platform}'s settings.` });
3671
+ }
3672
+ const network = mcp.env.BRAINCHAIN_NETWORK;
3673
+ const payOn = mcp.env.BRAINCHAIN_PAY_ON;
3674
+ const testnet = literal(t, "BRAINCHAIN_NETWORK")?.toLowerCase() === "testnet";
3675
+ const base = literal(t, "BRAINCHAIN_PAY_ON")?.toLowerCase() === "base";
3676
+ const token = base ? "USDC" : "USDG";
3677
+ const perTask = amount(literal(t, "BRAINCHAIN_MAX_PRICE_UNITS") ?? "1000000");
3678
+ const perRun = amount(literal(t, "BRAINCHAIN_BUDGET_UNITS") ?? "10000000");
3679
+ const where = base ? "Base" : "Robinhood Chain";
3680
+ if (network && !("value" in network)) {
3681
+ out2.notes.push({ level: "warning", category: "tools", message: `"${t.name}" takes its network from BRAINCHAIN_NETWORK, which was a variable on the source. BrainChain uses mainnet (real money) unless it is set to testnet on ${platform}.` });
3682
+ } else if (testnet) {
3683
+ out2.notes.push({ level: "info", category: "tools", message: `"${t.name}" uses the BrainChain testnet and pays in test ${token} on ${base ? "Base Sepolia" : "the Robinhood Chain testnet"}.` });
3684
+ } else {
3685
+ out2.notes.push({ level: "warning", category: "tools", message: `"${t.name}" pays on ${where} mainnet in real ${token}: up to ${perTask} ${token} per task and ${perRun} ${token} per run.` });
3686
+ }
3687
+ if (payOn && !("value" in payOn)) {
3688
+ out2.notes.push({ level: "info", category: "tools", message: `"${t.name}" takes where it pays from BRAINCHAIN_PAY_ON, which was a variable on the source: USDG on Robinhood Chain unless it is set to base on ${platform}.` });
3689
+ }
3690
+ if (!mcp.env.BRAINCHAIN_DAILY_UNITS) {
3691
+ out2.notes.push({ level: "warning", category: "tools", message: `"${t.name}" has no daily cap on ${platform}: BrainChain then limits only each run, and that budget starts over whenever ${platform} restarts the server. For an agent that runs on its own, set BRAINCHAIN_DAILY_UNITS (in units of 0.000001: 5000000 is 5 ${token}).` });
3692
+ }
3693
+ out2.notes.push({
3694
+ level: "warning",
3695
+ category: "tools",
3696
+ message: `BrainChain: if ${platform} runs on another computer, the wallet key does not come along. Create the key file there yourself (owner-only), for a wallet that holds only what this agent may spend, and set BRAINCHAIN_PAYER_KEY_FILE.`
3697
+ });
3698
+ const optionalEnv = mcp.optionalEnv ?? [];
3699
+ const optionalKeys = ["BRAINCHAIN_PAYER_KEY_FILE", "BRAINCHAIN_PAYER_KEY"].filter((k) => mcp.env[k] && optionalEnv.includes(k));
3700
+ if (optionalKeys.length) {
3701
+ out2.manualSteps.push(`"${t.name}" can only pay with its wallet key: make sure ${optionalKeys.join(" or ")} is set for it on ${platform}. Without it the server starts and reads, but cannot post or bond tasks.`);
3702
+ }
3703
+ const pkg = mcp.args.find((a) => BRAINCHAIN_PKG.test(a)) ?? "brainchain-mcp";
3704
+ const prefix = `${testnet ? "BRAINCHAIN_NETWORK=testnet " : ""}${base ? "BRAINCHAIN_PAY_ON=base " : ""}BRAINCHAIN_PAYER_KEY_FILE=<key file>`;
3705
+ if (!base) out2.manualSteps.push(`Paying in USDG needs a one-time approval per wallet. If this wallet has not paid BrainChain in USDG before, run in your own terminal: ${prefix} npx -y ${pkg} approve`);
3706
+ out2.manualSteps.push(`Check the wallet before the agent pays: ${prefix} npx -y ${pkg} wallet (it prints the wallet and what it still needs, never the key).`);
3707
+ if (isBrainChainCommand(mcp.command)) {
3708
+ out2.manualSteps.push(`Install BrainChain's MCP server for "${t.name}": npm install -g brainchain-mcp. It needs Node.js 22 or later, and the brainchain-mcp command must be on the PATH ${platform} uses.`);
3709
+ } else {
3710
+ out2.manualSteps.push(`"${t.name}" runs BrainChain through npx: ${platform} needs Node.js 22 or later on its PATH.`);
3711
+ }
3712
+ }
3713
+ };
3714
+ PROFILES = [PRIORS, OAK, HEDGEHOOD, BRAINCHAIN];
3589
3715
  }
3590
3716
  });
3591
3717
 
@@ -3712,6 +3838,9 @@ function skillToFiles(skill, baseRel, extraFrontmatter = {}) {
3712
3838
  }
3713
3839
  return files;
3714
3840
  }
3841
+ function isPlainCliWord(s, allow = "name") {
3842
+ return allow === "name" ? /^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$/.test(s) : /^[A-Za-z0-9][A-Za-z0-9._@\/:+-]{0,255}$/.test(s);
3843
+ }
3715
3844
  function safeName2(s) {
3716
3845
  return s.replace(/[^A-Za-z0-9._-]+/g, "-").replace(/^[-.]+|[-.]+$/g, "") || "item";
3717
3846
  }
@@ -3970,6 +4099,20 @@ function mcpServersFromTools(tools, opts) {
3970
4099
  if (trust === "untrusted") {
3971
4100
  out2.unsupported.push({ category: "permissions", item: `${t.name}: Hermes asked before every call that is not read-only (trust: untrusted)`, reason: "Destination approvals are not copied.", alternative: `Set ${opts.platformName} to ask before using "${t.name}" tools, before using real funds.` });
3972
4101
  }
4102
+ const oc = t.extensions?.["x-openclaw"];
4103
+ if (oc && opts.platformName !== "OpenClaw") {
4104
+ const filter = oc.toolFilter;
4105
+ const list = (v) => Array.isArray(v) ? v.map(String).join(", ") : "";
4106
+ if (filter && (list(filter.include) || list(filter.exclude))) {
4107
+ out2.unsupported.push({
4108
+ category: "permissions",
4109
+ item: `${t.name}: OpenClaw limited the tools the agent could use from this server (${[list(filter.include) && `only ${list(filter.include)}`, list(filter.exclude) && `not ${list(filter.exclude)}`].filter(Boolean).join("; ")})`,
4110
+ reason: `Nomad does not write a per-server tool filter on ${opts.platformName}, so every tool of this server is available there.`,
4111
+ alternative: `Block the tools you do not want in ${opts.platformName}'s permissions or approvals.`
4112
+ });
4113
+ }
4114
+ if (oc.auth === "oauth") out2.manualSteps.push(`Sign in to the "${t.name}" MCP server in ${opts.platformName}: it signs in with OAuth on OpenClaw, and sign-ins are not copied.`);
4115
+ }
3973
4116
  const mcp = t.mcp;
3974
4117
  const s = {};
3975
4118
  if (mcp.transport === "stdio") {
@@ -4699,7 +4842,9 @@ async function planMain(doc, ctx, L) {
4699
4842
  const info = doc.integrations.find((i) => i.kind === "claude-code-plugin" && i.name === id)?.config;
4700
4843
  const marketName = id.split("@")[1];
4701
4844
  const market = typeof info?.marketplaceRepo === "string" ? info.marketplaceRepo : (marketName && KNOWN_MARKETPLACE_REPOS[marketName]) ?? marketName ?? "<marketplace>";
4702
- manualSteps.push(`Install the plugin ${id} in Claude Code: /plugin marketplace add ${market}, then /plugin install ${id}. Nomad does not copy plugin servers or skills.`);
4845
+ manualSteps.push(
4846
+ isPlainCliWord(id, "path") && isPlainCliWord(market, "path") ? `Install the plugin ${id} in Claude Code: /plugin marketplace add ${market}, then /plugin install ${id}. Nomad does not copy plugin servers or skills.` : `Install the plugin ${JSON.stringify(id)} in Claude Code from its marketplace. Nomad prints no command for it, because its name has characters a terminal could misread, and does not copy plugin servers or skills.`
4847
+ );
4703
4848
  }
4704
4849
  if (wants(ctx, "skills")) {
4705
4850
  for (const s of doc.skills.filter((x) => !pluginOf(x, P))) {
@@ -5212,6 +5357,39 @@ var init_codex = __esm({
5212
5357
  // ../../packages/adapters/src/openclaw.ts
5213
5358
  import { basename as basename5, join as join6, relative as relative2 } from "path";
5214
5359
  import JSON5 from "json5";
5360
+ function openclawSettingsOf(cfg) {
5361
+ const out2 = {};
5362
+ for (const k of OPENCLAW_SERVER_SETTINGS) if (cfg[k] !== void 0) out2[k] = cfg[k];
5363
+ if (cfg.oauth !== void 0) out2.hadOauthOverrides = true;
5364
+ return Object.keys(out2).length && !hasVar(JSON.stringify(out2)) ? out2 : null;
5365
+ }
5366
+ function launchUsesVar(t) {
5367
+ return !!t.mcp && (hasVar(t.mcp.command) || hasVar(t.mcp.url) || t.mcp.args.some(hasVar));
5368
+ }
5369
+ function openclawServersForRead(raw) {
5370
+ if (!raw || typeof raw !== "object" || Array.isArray(raw)) return {};
5371
+ const out2 = {};
5372
+ for (const [name, cfg] of Object.entries(raw)) {
5373
+ if (!cfg || typeof cfg !== "object") continue;
5374
+ const c2 = { ...cfg };
5375
+ if (typeof c2.url === "string" && c2.transport === void 0 && c2.type === void 0) c2.transport = "sse";
5376
+ if (c2.type === "http") c2.transport = "streamable-http";
5377
+ for (const field of ["env", "headers"]) {
5378
+ if (!c2[field] || typeof c2[field] !== "object") continue;
5379
+ c2[field] = Object.fromEntries(
5380
+ Object.entries(c2[field]).map(([k, v]) => {
5381
+ if (v && typeof v === "object") {
5382
+ const ref = v;
5383
+ return [k, ref.source === "env" && typeof ref.id === "string" && /^[A-Za-z_][A-Za-z0-9_]*$/.test(ref.id) ? `\${${ref.id}}` : `\${${k}}`];
5384
+ }
5385
+ return [k, v];
5386
+ })
5387
+ );
5388
+ }
5389
+ out2[name] = c2;
5390
+ }
5391
+ return out2;
5392
+ }
5215
5393
  async function loadConfig(root, notes) {
5216
5394
  const text3 = await readTextIfExists(join6(root, "openclaw.json"));
5217
5395
  if (text3 === null) return { cfg: {}, exists: false };
@@ -5434,6 +5612,12 @@ async function readAgent(root, agentId, notes, prefer) {
5434
5612
  });
5435
5613
  }
5436
5614
  doc.skills.push(...await readSkillsTree(join6(ws, "skills"), P3, notes, 1));
5615
+ const rawServers = cfg?.mcp?.servers && typeof cfg.mcp.servers === "object" ? cfg.mcp.servers : {};
5616
+ for (const t of toolsFromMcpServers(openclawServersForRead(rawServers), P3, "openclaw.json")) {
5617
+ const settings2 = rawServers[t.name] && typeof rawServers[t.name] === "object" ? openclawSettingsOf(rawServers[t.name]) : null;
5618
+ if (settings2) t.extensions = { ...t.extensions, "x-openclaw": settings2 };
5619
+ doc.tools.push(t);
5620
+ }
5437
5621
  const m = modelOf(cfg, agentId);
5438
5622
  if (m.primary) doc.models.preferred = m.primary;
5439
5623
  doc.models.fallbacks = m.fallbacks;
@@ -5590,22 +5774,66 @@ ${m.content.trim()}
5590
5774
  cfgPatch.agents = { ...cfgPatch.agents ?? {}, list: listPatch };
5591
5775
  }
5592
5776
  }
5593
- if (Object.keys(cfgPatch).length) {
5594
- files.push({ path: "openclaw.json", content: JSON.stringify(cfgPatch, null, 2) + "\n", strategy: "merge-json5", arrayKeys: { "agents.list": "id" }, component: "project", description: newEntry ? `Register agent "${agentId}" in openclaw.json` : "Model and tool policy in openclaw.json" });
5595
- if (exists) notes.push({ level: "info", message: "openclaw.json is rewritten as JSON. Comments in it are not kept (a backup is taken first)." });
5596
- }
5777
+ let mcpWritten = false;
5597
5778
  if (wants(ctx, "tools")) {
5598
- for (const t of doc.tools) {
5599
- unsupported.push({ category: "tools", item: t.name, reason: "OpenClaw connects MCP servers through plugins, which Nomad does not install.", alternative: "Install an MCP bridge plugin and add the server; its definition is in the report." });
5600
- if (t.mcp) manualSteps.push(`Add the "${t.name}" MCP server (${t.mcp.command ?? t.mcp.url ?? ""} ${t.mcp.args.join(" ")}) through your OpenClaw MCP plugin.`.replace(/\s+\)/, ")"));
5779
+ const mcpTools = doc.tools.filter((t) => t.kind === "mcp" && t.mcp && !pluginOf(t, P3));
5780
+ if (mcpTools.length) {
5781
+ const r = mcpServersFromTools(mcpTools, { platformName: "OpenClaw", envRefStyle: "none" });
5782
+ const setStep = (name, field, k, why) => {
5783
+ const label = field === "env" ? `${k}` : `the ${k} header`;
5784
+ manualSteps.push(
5785
+ isPlainCliWord(name) && isPlainCliWord(k) ? `Set ${label} for the "${name}" MCP server in OpenClaw${why}: openclaw config set mcp.servers.${name}.${field}.${k} <value>` : `Set ${label} for the MCP server ${JSON.stringify(name)} in OpenClaw${why}, under mcp.servers in openclaw.json. Nomad prints no command for it, because its name has characters a terminal could misread.`
5786
+ );
5787
+ };
5788
+ for (const [name, server] of Object.entries(r.servers)) {
5789
+ const tool = mcpTools.find((t) => t.name === name);
5790
+ if (hasVar(server.command) || hasVar(server.url) || Array.isArray(server.args) && server.args.some(hasVar)) {
5791
+ delete r.servers[name];
5792
+ unsupported.push({ category: "tools", item: name, reason: "Its command line or address uses a ${...} variable, which an older OpenClaw refuses to load when the variable is unset.", alternative: "Add it yourself with openclaw mcp set, with the variable's value filled in." });
5793
+ continue;
5794
+ }
5795
+ if (tool?.mcp?.transport === "http") server.transport = "streamable-http";
5796
+ else if (tool?.mcp?.transport === "sse") server.transport = "sse";
5797
+ const oc = tool?.extensions?.["x-openclaw"];
5798
+ if (oc) {
5799
+ for (const k of OPENCLAW_SERVER_SETTINGS) if (oc[k] !== void 0) server[k] = oc[k];
5800
+ if (oc.auth === "oauth") manualSteps.push(isPlainCliWord(name) ? `Sign in to the "${name}" MCP server again: openclaw mcp login ${name} (sign-ins are not copied).` : `Sign in to the MCP server ${JSON.stringify(name)} again in OpenClaw (sign-ins are not copied).`);
5801
+ if (oc.hadOauthOverrides) manualSteps.push(`The "${name}" MCP server had OAuth overrides in openclaw.json (scope, redirect or client metadata). Nomad does not copy them; add them again if you need them.`);
5802
+ }
5803
+ const refs = r.refs[name];
5804
+ for (const k of refs?.env ?? []) setStep(name, "env", k, refs.optional.includes(k) ? " (optional on the source: only if you use it)" : "");
5805
+ for (const [h] of refs?.headers ?? []) setStep(name, "headers", h, "");
5806
+ for (const field of ["env", "headers"]) {
5807
+ const rec = server[field];
5808
+ if (!rec) continue;
5809
+ for (const [k, v] of Object.entries(rec)) {
5810
+ if (!hasVar(v)) continue;
5811
+ delete rec[k];
5812
+ setStep(name, field, k, ` (on the source it was ${JSON.stringify(v)}, which uses a variable)`);
5813
+ }
5814
+ if (!Object.keys(rec).length) delete server[field];
5815
+ }
5816
+ }
5817
+ if (Object.keys(r.servers).length) {
5818
+ cfgPatch.mcp = { servers: r.servers };
5819
+ mcpWritten = true;
5820
+ notes.push({ level: "info", category: "tools", message: `OpenClaw's MCP servers are shared by all its agents, so ${Object.keys(r.servers).map((n) => `"${n}"`).join(", ")} will also be available to the other agents of this OpenClaw.` });
5821
+ }
5822
+ manualSteps.push(...r.manualSteps.filter((m) => !m.startsWith("Add ") && !m.startsWith("If you use them, set ")));
5823
+ unsupported.push(...r.unsupported);
5824
+ notes.push(...r.notes);
5601
5825
  }
5602
5826
  }
5827
+ if (Object.keys(cfgPatch).length) {
5828
+ files.push({ path: "openclaw.json", content: JSON.stringify(cfgPatch, null, 2) + "\n", strategy: "merge-json5", arrayKeys: { "agents.list": "id" }, component: "project", description: newEntry ? `Register agent "${agentId}" in openclaw.json` : mcpWritten ? "Model, tool policy and MCP servers in openclaw.json" : "Model and tool policy in openclaw.json" });
5829
+ if (exists) notes.push({ level: "info", message: "openclaw.json is rewritten as JSON. Comments in it are not kept (a backup is taken first)." });
5830
+ }
5603
5831
  if (wants(ctx, "integrations")) for (const i of doc.integrations) manualSteps.push(integrationStep(i, "OpenClaw", `Reconnect ${i.name} in OpenClaw (credentials are never migrated).`));
5604
5832
  if (wants(ctx, "knowledge") && (doc.knowledge.length || doc.files.length)) manualSteps.push(`Copy ${doc.knowledge.length + doc.files.length} knowledge file(s) into the workspace.`);
5605
5833
  if (newEntry) notes.push({ level: "info", message: `A new agent "${agentId}" with its own workspace will be created. Restart the gateway to load it.` });
5606
5834
  return { nativeId: agentId, files, notes, manualSteps, conversions, unsupported };
5607
5835
  }
5608
- var P3, OC_TOOLS, CAP_TOOLS, openclawAdapter;
5836
+ var P3, hasVar, OPENCLAW_SERVER_SETTINGS, OC_TOOLS, CAP_TOOLS, openclawAdapter;
5609
5837
  var init_openclaw = __esm({
5610
5838
  "../../packages/adapters/src/openclaw.ts"() {
5611
5839
  "use strict";
@@ -5614,6 +5842,8 @@ var init_openclaw = __esm({
5614
5842
  init_catalog();
5615
5843
  init_util();
5616
5844
  P3 = "openclaw";
5845
+ hasVar = (v) => typeof v === "string" && /\$\{[^}]*\}/.test(v.replace(/\$\$\{/g, ""));
5846
+ OPENCLAW_SERVER_SETTINGS = ["toolFilter", "codex", "auth", "requestTimeoutMs", "connectionTimeoutMs", "supportsParallelToolCalls"];
5617
5847
  OC_TOOLS = {
5618
5848
  exec: "shell",
5619
5849
  process: "shell",
@@ -5693,6 +5923,12 @@ var init_openclaw = __esm({
5693
5923
  const missing = doc.skills.filter((s) => !pluginOf(s, this.info.id) && !names.has(s.name));
5694
5924
  checks.push({ name: "Skills written", ok: !missing.length, detail: missing.length ? `Missing: ${missing.map((s) => s.name).join(", ")}` : void 0 });
5695
5925
  }
5926
+ const servers = doc.tools.filter((t) => t.kind === "mcp" && t.mcp && t.enabled !== false && !pluginOf(t, this.info.id) && !launchUsesVar(t));
5927
+ if (wants(ctx, "tools") && servers.length) {
5928
+ const names = new Set(got.tools.map((t) => t.name));
5929
+ const missing = servers.filter((t) => !names.has(t.name));
5930
+ checks.push({ name: "MCP servers written", ok: !missing.length, detail: missing.length ? `Missing: ${missing.map((t) => t.name).join(", ")}` : `${servers.length} server(s) in mcp.servers` });
5931
+ }
5696
5932
  if (wants(ctx, "workflows") && doc.workflows.length) {
5697
5933
  const active = got.workflows.filter((w) => w.sourceEnabled && doc.workflows.some((d) => d.name === w.name));
5698
5934
  checks.push({ name: "Imported routines are disabled", ok: active.length === 0, detail: active.length ? `${active.length} routine(s) are enabled` : void 0 });
@@ -5991,7 +6227,9 @@ ${m.content.trim()}
5991
6227
  }
5992
6228
  const fromPlugins = new Set([...doc.tools, ...doc.skills].map((x) => pluginOf(x, P4)).filter((x) => !!x));
5993
6229
  for (const name of fromPlugins) {
5994
- manualSteps.push(`Install and enable the Hermes plugin ${name}: "hermes plugins install ${name}", then "hermes plugins enable ${name}" (portable plugins install disabled). Nomad does not copy plugin servers or skills into config.yaml or skills/.`);
6230
+ manualSteps.push(
6231
+ isPlainCliWord(name, "path") ? `Install and enable the Hermes plugin ${name}: "hermes plugins install ${name}", then "hermes plugins enable ${name}" (portable plugins install disabled). Nomad does not copy plugin servers or skills into config.yaml or skills/.` : `Install and enable the Hermes plugin ${JSON.stringify(name)} from where you got it. Nomad prints no command for it, because its name has characters a terminal could misread, and does not copy plugin servers or skills.`
6232
+ );
5995
6233
  }
5996
6234
  if (wants(ctx, "skills")) {
5997
6235
  for (const s of doc.skills.filter((x) => !pluginOf(x, P4))) {
@@ -7263,9 +7501,11 @@ __export(src_exports2, {
7263
7501
  infoById: () => infoById,
7264
7502
  instructionsText: () => instructionsText,
7265
7503
  integrationStep: () => integrationStep,
7504
+ isPlainCliWord: () => isPlainCliWord,
7266
7505
  join: () => join10,
7267
7506
  knownElizaosPlugin: () => knownElizaosPlugin,
7268
7507
  knownServerId: () => knownServerId,
7508
+ knownSkillNotes: () => knownSkillNotes,
7269
7509
  listAdapters: () => listAdapters,
7270
7510
  mcpServersFromTools: () => mcpServersFromTools,
7271
7511
  modelFamily: () => modelFamily,
@@ -8348,6 +8588,16 @@ var init_engine = __esm({
8348
8588
  const commands = req.source.kind === "location" || !toolsWritten ? [] : doc.tools.filter((t) => t.enabled !== false && t.mcp?.transport === "stdio" && t.mcp.command).map((t) => ({ tool: t.name, from: req.source.kind === "package" ? "package" : "library", command: commandLine(t.mcp.command, t.mcp.args), env: Object.keys(t.mcp.env) }));
8349
8589
  if (commands.length && changing.length) approvalsRequired.push("run-commands");
8350
8590
  const notes = [...loaded.notes, ...planned.notes];
8591
+ if (components2.includes("skills")) notes.push(...knownSkillNotes(doc.skills, adapter.info.id, adapter.info.displayName));
8592
+ if (req.source.kind === "package" && (loaded.signer?.state === "unsigned" || loaded.signer?.state === "unknown")) {
8593
+ notes.push({ level: "warning", message: `${loaded.signer.state === "unsigned" ? "This package is not signed" : "This package is signed by a key you have not trusted"}, so Nomad cannot tell who made it. Move it only if you trust where it came from, and read the preview before you approve.` });
8594
+ }
8595
+ if (req.source.kind !== "location") {
8596
+ const plugins = [...new Set([...doc.tools, ...doc.skills].map((x) => x.source?.pluginHost === adapter.info.id && typeof x.source?.plugin === "string" ? x.source.plugin : null).filter((x) => !!x))];
8597
+ if (plugins.length) {
8598
+ notes.push({ level: "warning", message: `The plugin install steps below come from ${req.source.kind === "package" ? "a package" : "the Nomad library"}: whoever made it chose the plugin and marketplace names (${plugins.join(", ")}). Check that they are the ones you expect before you install anything.` });
8599
+ }
8600
+ }
8351
8601
  if (!(await adapter.detect(root)).detected && adapter.info.support !== "GUIDED") {
8352
8602
  notes.push({ level: "info", message: `${adapter.info.displayName} was not detected at ${displayPath(root)}. Nomad will create the files there.` });
8353
8603
  }
@@ -8368,7 +8618,7 @@ var init_engine = __esm({
8368
8618
  createdAt: (/* @__PURE__ */ new Date()).toISOString(),
8369
8619
  kind: req.kind ?? "migrate",
8370
8620
  agent: { id: doc.id, name: doc.name, version: loaded.version },
8371
- source: { label: loaded.label, adapter: loaded.sourceAdapter?.info.id ?? null, root: req.source.kind === "location" ? resolveRoot(req.source.root) : void 0, nativeId: req.source.kind === "location" ? req.source.nativeId : void 0 },
8621
+ source: { label: loaded.label, adapter: loaded.sourceAdapter?.info.id ?? null, root: req.source.kind === "location" ? resolveRoot(req.source.root) : void 0, nativeId: req.source.kind === "location" ? req.source.nativeId : void 0, ...loaded.signer ? { signer: loaded.signer.state } : {} },
8372
8622
  destination: { adapter: adapter.info.id, displayName: adapter.info.displayName, root, nativeId: planned.nativeId, support: adapter.info.support, guided: adapter.info.support === "GUIDED" },
8373
8623
  mode,
8374
8624
  components: components2,
@@ -9247,6 +9497,7 @@ function summaryText(p) {
9247
9497
  if (p.conversions.length) lines.push(`Adapted: ${p.conversions.map((c2) => `${c2.item} ${dim("\u2192 " + c2.to)}`).join("; ")}.`);
9248
9498
  if (p.unsupported.length) lines.push(yellow(`Can't move: ${p.unsupported.map((u) => u.item).join(", ")}`) + dim(" (kept in the report with setup steps)"));
9249
9499
  if (p.disabledRoutines.length) lines.push(`Routines arrive paused: ${p.disabledRoutines.join(", ")}.`);
9500
+ if (p.source.signer === "unsigned" || p.source.signer === "unknown") lines.push(yellow(p.source.signer === "unsigned" ? "Not signed: Nomad cannot tell who made this package. Move it only if you trust where it came from." : "Signed by a key you have not trusted: Nomad cannot tell who made this package."));
9250
9501
  for (const c2 of p.commands ?? []) lines.push(yellow(`Starts by itself on ${p.destination.displayName}: "${c2.tool}" runs ${c2.command}`) + (c2.env.length ? dim(` (with ${c2.env.join(", ")} set)`) : ""));
9251
9502
  if (p.secrets.findings || p.secrets.strippedEnv.length) {
9252
9503
  const parts = [p.secrets.findings ? `${p.secrets.findings} found in text and removed` : "", p.secrets.strippedEnv.length ? `you will reconnect ${p.secrets.strippedEnv.map((s) => s.split(":")[1]).join(", ")}` : ""].filter(Boolean);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thenomad",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "Move AI agents between OpenClaw, Claude Code, Codex, Hermes and more, with a preview, a backup and one question.",
5
5
  "keywords": [
6
6
  "ai",