thenomad 0.2.0 → 0.4.0
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 +1 -1
- package/dist/nomad.js +281 -40
- package/package.json +1 -1
- package/web/404.html +1 -1
- package/web/__next.__PAGE__.txt +43 -52
- package/web/__next._full.txt +42 -40
- package/web/__next._tree.txt +2 -2
- package/web/_next/static/chunks/{3-sl52vw828p-.js → 01v5aab_kf3r7.js} +1 -1
- package/web/_next/static/chunks/0acwr1ymxj2xd.js +1 -0
- package/web/_next/static/chunks/1aptcj-lfpf2a.js +1 -0
- package/web/_next/static/chunks/1d7qnsfqdlz_u.js +1 -0
- package/web/_next/static/chunks/1p0rmc54l0_3e.js +5 -0
- package/web/_next/static/chunks/1plj9h4y9cgwa.js +1 -0
- package/web/_next/static/chunks/1ygp921kjfxbp.css +4 -0
- package/web/_next/static/chunks/1zb0q77s0yui0.js +1 -0
- package/web/_next/static/chunks/2c1swz3f540lq.js +1 -0
- package/web/_next/static/chunks/2gqqo11auvml1.js +1 -0
- package/web/_next/static/chunks/2ka3apprzgwd-.js +7 -0
- package/web/_next/static/chunks/2nr_qzaf1ds_m.js +1 -0
- package/web/_next/static/chunks/2x2dvcjppyahs.js +1 -0
- package/web/_not-found/__next._full.txt +27 -22
- package/web/_not-found/__next._not-found.__PAGE__.txt +30 -34
- package/web/_not-found/__next._tree.txt +2 -2
- package/web/_not-found.html +1 -1
- package/web/_not-found.txt +27 -22
- package/web/app/__next._full.txt +38 -30
- package/web/app/__next._tree.txt +4 -4
- package/web/app/__next.app.__PAGE__.txt +25 -48
- package/web/app/__next.app.txt +27 -0
- package/web/app/agents/__next._full.txt +40 -32
- package/web/app/agents/__next._tree.txt +4 -4
- package/web/app/agents/__next.app.agents.__PAGE__.txt +30 -52
- package/web/app/agents/__next.app.txt +27 -0
- package/web/app/agents/view/__next._full.txt +43 -36
- package/web/app/agents/view/__next._tree.txt +4 -4
- package/web/app/agents/view/__next.app.agents.view.__PAGE__.txt +33 -56
- package/web/app/agents/view/__next.app.txt +27 -0
- package/web/app/agents/view.html +1 -1
- package/web/app/agents/view.txt +43 -36
- package/web/app/agents.html +1 -1
- package/web/app/agents.txt +40 -32
- package/web/app/backups/__next._full.txt +39 -32
- package/web/app/backups/__next._tree.txt +4 -4
- package/web/app/backups/__next.app.backups.__PAGE__.txt +30 -52
- package/web/app/backups/__next.app.txt +27 -0
- package/web/app/backups.html +1 -1
- package/web/app/backups.txt +39 -32
- package/web/app/compatibility/__next._full.txt +40 -33
- package/web/app/compatibility/__next._tree.txt +4 -4
- package/web/app/compatibility/__next.app.compatibility.__PAGE__.txt +31 -53
- package/web/app/compatibility/__next.app.txt +27 -0
- package/web/app/compatibility.html +1 -1
- package/web/app/compatibility.txt +40 -33
- package/web/app/export/__next._full.txt +41 -33
- package/web/app/export/__next._tree.txt +4 -4
- package/web/app/export/__next.app.export.__PAGE__.txt +31 -53
- package/web/app/export/__next.app.txt +27 -0
- package/web/app/export.html +1 -1
- package/web/app/export.txt +41 -33
- package/web/app/history/__next._full.txt +40 -33
- package/web/app/history/__next._tree.txt +4 -4
- package/web/app/history/__next.app.history.__PAGE__.txt +31 -53
- package/web/app/history/__next.app.txt +27 -0
- package/web/app/history.html +1 -1
- package/web/app/history.txt +40 -33
- package/web/app/import/__next._full.txt +40 -32
- package/web/app/import/__next._tree.txt +4 -4
- package/web/app/import/__next.app.import.__PAGE__.txt +30 -52
- package/web/app/import/__next.app.txt +27 -0
- package/web/app/import.html +1 -1
- package/web/app/import.txt +40 -32
- package/web/app/migrate/__next._full.txt +40 -33
- package/web/app/migrate/__next._tree.txt +4 -4
- package/web/app/migrate/__next.app.migrate.__PAGE__.txt +31 -53
- package/web/app/migrate/__next.app.txt +27 -0
- package/web/app/migrate.html +1 -1
- package/web/app/migrate.txt +40 -33
- package/web/app/settings/__next._full.txt +39 -32
- package/web/app/settings/__next._tree.txt +4 -4
- package/web/app/settings/__next.app.settings.__PAGE__.txt +30 -52
- package/web/app/settings/__next.app.txt +27 -0
- package/web/app/settings.html +1 -1
- package/web/app/settings.txt +39 -32
- package/web/app/versions/__next._full.txt +39 -32
- package/web/app/versions/__next._tree.txt +4 -4
- package/web/app/versions/__next.app.txt +27 -0
- package/web/app/versions/__next.app.versions.__PAGE__.txt +30 -52
- package/web/app/versions.html +1 -1
- package/web/app/versions.txt +39 -32
- package/web/app.html +1 -1
- package/web/app.txt +38 -30
- package/web/docs/__next._full.txt +31 -31
- package/web/docs/__next._tree.txt +2 -2
- package/web/docs/__next.docs.__PAGE__.txt +38 -50
- package/web/docs/adapters/__next._full.txt +88 -85
- package/web/docs/adapters/__next._tree.txt +2 -2
- package/web/docs/adapters/__next.docs.adapters.__PAGE__.txt +93 -101
- package/web/docs/adapters.html +1 -1
- package/web/docs/adapters.txt +88 -85
- package/web/docs/format/__next._full.txt +40 -41
- package/web/docs/format/__next._tree.txt +2 -2
- package/web/docs/format/__next.docs.format.__PAGE__.txt +45 -57
- package/web/docs/format.html +2 -2
- package/web/docs/format.txt +40 -41
- package/web/docs/security/__next._full.txt +41 -37
- package/web/docs/security/__next._tree.txt +2 -2
- package/web/docs/security/__next.docs.security.__PAGE__.txt +46 -53
- package/web/docs/security.html +1 -1
- package/web/docs/security.txt +41 -37
- package/web/docs/token/__next._full.txt +52 -0
- package/web/docs/token/__next._tree.txt +6 -0
- package/web/docs/token/__next.docs.token.__PAGE__.txt +55 -0
- package/web/docs/token.html +1 -0
- package/web/docs/token.txt +52 -0
- package/web/docs.html +2 -2
- package/web/docs.txt +31 -31
- package/web/index.html +2 -2
- package/web/index.txt +42 -40
- package/web/inspect/__next._full.txt +29 -28
- package/web/inspect/__next._tree.txt +2 -2
- package/web/inspect/__next.inspect.__PAGE__.txt +32 -39
- package/web/inspect.html +1 -1
- package/web/inspect.txt +29 -28
- package/web/privacy/__next._full.txt +34 -30
- package/web/privacy/__next._tree.txt +2 -2
- package/web/privacy/__next.privacy.__PAGE__.txt +36 -40
- package/web/privacy.html +1 -1
- package/web/privacy.txt +34 -30
- package/web/terms/__next._full.txt +35 -34
- package/web/terms/__next._tree.txt +2 -2
- package/web/terms/__next.terms.__PAGE__.txt +37 -44
- package/web/terms.html +1 -1
- package/web/terms.txt +35 -34
- package/web/vote/__next._full.txt +34 -0
- package/web/vote/__next._tree.txt +5 -0
- package/web/vote/__next.vote.__PAGE__.txt +36 -0
- package/web/vote.html +1 -0
- package/web/vote.txt +34 -0
- package/web/_next/static/chunks/0fh-fhwc4fqmh.js +0 -1
- package/web/_next/static/chunks/0r144bat18tjc.css +0 -4
- package/web/_next/static/chunks/0yz4pc7gp4_iw.js +0 -1
- package/web/_next/static/chunks/0zz4b9f_7-jdc.js +0 -1
- package/web/_next/static/chunks/1_0w_nimjt5-w.js +0 -1
- package/web/_next/static/chunks/25ks-kwg9va83.js +0 -1
- package/web/_next/static/chunks/294sy_-iu03pf.js +0 -1
- package/web/_next/static/chunks/2bozyj4tl2bji.js +0 -1
- package/web/_next/static/chunks/2m8g429r9sjgz.js +0 -7
- package/web/_next/static/chunks/3ahuzuq_wii6l.js +0 -1
- /package/web/_next/static/{5B6R6zkMOO-jMrOE_HKge → KOmtJW9C8Na0OCY-uXSeu}/_buildManifest.js +0 -0
- /package/web/_next/static/{5B6R6zkMOO-jMrOE_HKge → KOmtJW9C8Na0OCY-uXSeu}/_clientMiddlewareManifest.js +0 -0
- /package/web/_next/static/{5B6R6zkMOO-jMrOE_HKge → KOmtJW9C8Na0OCY-uXSeu}/_ssgManifest.js +0 -0
package/web/__next._full.txt
CHANGED
|
@@ -1,46 +1,48 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
|
-
2:"/_next/static/chunks/
|
|
2
|
+
2:"/_next/static/chunks/2gqqo11auvml1.js"
|
|
3
3
|
3:I[11557,["$2"],"SiteHeader"]
|
|
4
4
|
4:I[91383,["$2"],"default"]
|
|
5
5
|
5:I[41174,["$2"],"default"]
|
|
6
|
-
6:"/_next/static/chunks/
|
|
7
|
-
7:"/_next/static/chunks/
|
|
6
|
+
6:"/_next/static/chunks/1d7qnsfqdlz_u.js"
|
|
7
|
+
7:"/_next/static/chunks/01v5aab_kf3r7.js"
|
|
8
8
|
8:I[37870,["$2","$6","$7"],""]
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
1c:I[20044,["$2"],"$1b"]
|
|
13
|
-
1d:"$Sreact.suspense"
|
|
14
|
-
1f:I[82121,["$2"],"default",1]
|
|
15
|
-
:HL["/_next/static/chunks/0r144bat18tjc.css","style"]
|
|
9
|
+
9:I[84455,["$2","$6","$7"],"TokenCA"]
|
|
10
|
+
f:I[82121,["$2"],"default",1]
|
|
11
|
+
:HL["/_next/static/chunks/1ygp921kjfxbp.css","style"]
|
|
16
12
|
:HC["/",""]
|
|
17
|
-
|
|
18
|
-
0:{"P":null,"c":["",""],"q":"","i":false,"t":{"t":{"s":"","h":528,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
13
|
+
c:[["children",{"s":"__PAGE__","h":512,"d":{"r":"$Ld","p":false,"v":null}}]]
|
|
14
|
+
0:{"P":null,"c":["",""],"q":"","i":false,"t":{"t":{"s":"","h":528,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/1ygp921kjfxbp.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/2gqqo11auvml1.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":[["$","a",null,{"href":"#main","className":"skip-link","children":"Skip to content"}],["$","$L3",null,{}],["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","main",null,{"id":"main","className":"wrap","style":{"padding":"96px 20px 120px"},"children":[["$","p",null,{"className":"label","children":"Error 404"}],["$","h1",null,{"style":{"marginTop":14,"maxWidth":"16ch"},"children":"This page wandered off."}],["$","p",null,{"className":"lede","style":{"marginTop":18},"children":"The address may be mistyped, or the page moved. Your agents are fine."}],["$","div",null,{"className":"row","style":{"marginTop":28},"children":[["$","$L8",null,{"href":"/","className":"btn","children":"Back to the home page"}],["$","$L8",null,{"href":"/docs","className":"btn btn-quiet","children":"Read the docs"}]]}]]}],["$","footer",null,{"className":"site-footer","children":["$","div",null,{"className":"wrap","children":[["$","div",null,{"className":"footer-grid","children":[["$","div",null,{"children":[["$","$L8",null,{"href":"/","aria-label":"Nomad home","className":"brand","children":["$","span",null,{"style":{"display":"inline-flex","alignItems":"center","gap":12},"children":[["$","svg",null,{"width":37.89473684210526,"height":24,"viewBox":"0 0 300 190","role":"$undefined","aria-hidden":true,"aria-label":"$undefined","children":["$","g",null,{"fill":"none","stroke":"var(--blue)","strokeWidth":"17","strokeLinejoin":"miter","strokeMiterlimit":"10","children":[["$","path",null,{"d":"M12 120 L100 24 L170 94 L212 57 L266 112 L266 150 L212 108 L170 146 L100 76 L12 168 Z"}],["$","path",null,{"d":"M258 146 L290 172","strokeLinecap":"square"}]]}]}],["$","svg",null,{"height":12,"width":55.714285714285715,"viewBox":"-8 -6 520 112","aria-hidden":"true","children":["$","g",null,{"fill":"none","stroke":"currentColor","strokeWidth":"13","strokeLinejoin":"miter","strokeLinecap":"butt","children":[["$","path",null,{"d":"M6 100 V4 L66 96 V0"}],["$","circle",null,{"cx":"140","cy":"50","r":"44"}],["$","path",null,{"d":"M212 100 V4 L251 64 L290 4 V100"}],["$","path",null,{"d":"M318 100 L355 2 L392 100"}],["$","path",null,{"d":"M428 6 H452 A44 44 0 0 1 452 94 H428 Z"}]]}]}],["$","span",null,{"className":"visually-hidden","children":"Nomad"}]]}]}],["$","p",null,{"className":"muted","style":{"marginTop":14,"maxWidth":"34ch"},"children":"Portable AI agents. Local first, previewed before every change, backed up after."}],["$","p",null,{"style":{"marginTop":14},"children":["$","a",null,{"href":"https://x.com/thenomadlabs","target":"_blank","rel":"me noopener noreferrer","className":"$undefined","aria-label":"Nomad on X (@thenomadlabs)","title":"Nomad on X (@thenomadlabs)","style":{"display":"inline-flex","alignItems":"center"},"children":["$","svg",null,{"width":18,"height":18,"viewBox":"0 0 24 24","aria-hidden":"true","focusable":"false","style":{"display":"block"},"children":["$","path",null,{"fill":"currentColor","d":"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"}]}]}]}],["$","$L9",null,{}]]}],["$","div",null,{"children":[["$","h4",null,{"children":"Product"}],["$","ul",null,{"children":[["$","li",null,{"children":["$","$L8",null,{"href":"/app","children":"Local app"}]}],["$","li",null,{"children":["$","$L8",null,{"href":"/inspect","children":"Package inspector"}]}],["$","li",null,{"children":["$","$L8",null,{"href":"/docs/adapters","children":"Platforms"}]}],["$","li",null,{"children":["$","$L8",null,{"href":"/vote","children":"Holder vote"}]}]]}]]}],["$","div",null,{"children":[["$","h4",null,{"children":"Docs"}],["$","ul",null,{"children":[["$","li",null,{"children":["$","$L8",null,{"href":"/docs","children":"Getting started"}]}],["$","li",null,{"children":["$","$L8",null,{"href":"/docs/format","children":"Agent format"}]}],["$","li",null,{"children":["$","$L8",null,{"href":"/docs/security","children":"Security"}]}],["$","li",null,{"children":["$","$L8",null,{"href":"/docs/token","children":"Token and bounties"}]}]]}]]}],["$","div",null,{"children":[["$","h4",null,{"children":"Project"}],["$","ul",null,{"children":[["$","li",null,{"children":["$","a",null,{"href":"https://github.com/kadiri-seer/nomad","children":"Source code"}]}],["$","li",null,{"children":["$","a",null,{"href":"https://github.com/kadiri-seer/nomad/issues","children":"Questions and issues"}]}],["$","li",null,{"children":["$","$L8",null,{"href":"/terms","children":"Terms"}]}],["$","li",null,{"children":["$","$L8",null,{"href":"/privacy","children":"Privacy"}]}]]}]]}]]}],["$","div",null,{"className":"footer-bottom","children":["$La","$Lb"]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]]}]}]]}],"p":false,"v":null},"c":"$Qc"},"h":{"r":"$Le","p":false,"v":null}},"m":"$undefined","G":["$f",["$L10"]],"S":true,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"KOmtJW9C8Na0OCY-uXSeu"}
|
|
15
|
+
11:I[97234,["$2","$6","$7"],"CompatDemo"]
|
|
16
|
+
1c:"ViewportBoundary"
|
|
17
|
+
1d:I[20044,["$2"],"$1c"]
|
|
18
|
+
1f:"MetadataBoundary"
|
|
19
|
+
20:I[20044,["$2"],"$1f"]
|
|
20
|
+
21:"$Sreact.suspense"
|
|
21
|
+
a:["$","span",null,{"children":["© ",2026," Nomad. MIT licensed."]}]
|
|
22
|
+
b:["$","span",null,{"children":"Your agents never leave your machine unless you send them."}]
|
|
23
|
+
d:["$","$1","c",{"children":[[["$","main",null,{"id":"main","children":[["$","section",null,{"className":"hero","children":["$","div",null,{"className":"hero-panel on-blue","children":["$","div",null,{"className":"wrap hero-grid","children":[["$","div",null,{"children":[["$","p",null,{"className":"label","children":"Agent portability"}],["$","h1",null,{"style":{"marginTop":18},"children":"Move your agents without losing who they are."}],["$","p",null,{"className":"lede","children":"Nomad carries an agent's instructions, persona, memory, skills, tools and routines from one platform to another. It shows you what will transfer before it touches a file, and keeps a backup after."}],["$","div",null,{"className":"hero-actions","children":[["$","$L8",null,{"href":"/docs","className":"btn btn-lime","children":"Get started"}],["$","$L8",null,{"href":"/inspect","className":"btn btn-ghost","children":"Inspect a package"}]]}],["$","p",null,{"style":{"marginTop":28,"fontSize":"0.9rem","opacity":0.85},"children":"The migration preview here runs Nomad's real compatibility engine on a sample agent. Change the platforms to see it update."}]]}],["$","$L11",null,{}]]}]}]}],["$","div",null,{"className":"wrap","children":["$","div",null,{"className":"platform-strip","aria-label":"Supported platforms","children":[[["$","span","openclaw",{"children":"OpenClaw"}],["$","span","claude-code",{"children":"Claude Code"}],["$","span","codex",{"children":"Codex CLI"}],["$","span","hermes",{"children":"Hermes Agent"}],["$","span","generic",{"children":"Agent folder"}],["$","span","elizaos",{"children":"ElizaOS"}],["$","span","cursor",{"children":"Cursor"}],["$","span","windsurf",{"children":"Windsurf"}],["$","span","cline",{"children":"Cline"}]],["$","span",null,{"children":["and ",23," more"]}]]}]}],["$","section",null,{"className":"section","id":"how","children":["$","div",null,{"className":"wrap","children":[["$","div",null,{"className":"section-head","children":[["$","div",null,{"children":[["$","p",null,{"className":"label","children":"How it works"}],["$","h2",null,{"style":{"marginTop":12},"children":"A migration you can read before you run it."}]]}],["$","p",null,{"children":"Copying instruction files is the easy part. Nomad maps each platform's structure into a common format, then writes the closest faithful version at the destination and tells you exactly where it could not."}]]}],["$","ol",null,{"className":"steps","children":[["$","li","Read the agent where it lives",{"children":[["$","span",null,{"className":"num","children":"01"}],["$","h3",null,{"children":"Read the agent where it lives"}],["$","p",null,{"children":"Nomad finds OpenClaw, Claude Code, Codex and Hermes agents on your machine and reads instructions, persona, memory, skills, tools, routines and permissions into one portable format."}]]}],["$","li","See what will transfer",{"children":[["$","span",null,{"className":"num","children":"02"}],["$","h3",null,{"children":"See what will transfer"}],["$","p",null,{"children":"Before anything changes you get a preview: what moves as is, what gets converted, what has no equivalent at the destination, which files change and which permissions differ."}]]}],["$","li","Resolve conflicts on your terms",{"children":[["$","span",null,{"className":"num","children":"03"}],["$","h3",null,{"children":"Resolve conflicts on your terms"}],["$","p",null,{"children":"Merge keeps everything already at the destination. Copy creates a separate agent. Replace overwrites, and only after you approve exactly what it touches."}]]}],["$","li","Apply, verify, keep a receipt",{"children":[["$","span",null,{"className":"num","children":"04"}],["$","h3",null,{"children":"Apply, verify, keep a receipt"}],["$","p",null,{"children":"Writes are atomic and backed up first. Nomad reads the result back to verify it, records a receipt, and can restore the previous state in one step."}]]}]]}]]}]}],["$","section",null,{"className":"section","children":["$","div",null,{"className":"wrap split","children":[["$","div",null,{"children":[["$","p",null,{"className":"label","children":"What travels"}],["$","h2",null,{"style":{"marginTop":12},"children":"An agent is more than its system prompt."}],["$","p",null,{"className":"lede","style":{"marginTop":18},"children":"Every part is kept in the Universal Agent Format: versioned, validated JSON with Markdown for anything you would want to read."}],"$L12"]}],"$L13"]}]}],"$L14","$L15","$L16","$L17"]}],"$L18"],["$L19","$L1a"],"$L1b"]}]
|
|
24
|
+
e:["$","$1","h",{"children":[null,["$","$L1d",null,{"children":"$L1e"}],["$","$L20",null,{"children":[["$","div",null,{"hidden":true,"children":["$","$21",null,{"name":"Next.Metadata","children":"$L22"}]}],null]}],null]}]
|
|
25
|
+
10:["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/1ygp921kjfxbp.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]
|
|
26
|
+
2b:I[20044,["$2"],"OutletBoundary"]
|
|
27
|
+
12:["$","$L8",null,{"href":"/docs/format","className":"btn btn-quiet","style":{"marginTop":24},"children":"Read the format"}]
|
|
28
|
+
13:["$","dl",null,{"style":{"margin":0},"children":[["$","div","Identity",{"style":{"display":"grid","gridTemplateColumns":"140px 1fr","gap":16,"padding":"16px 0","borderBottom":"1px solid var(--line)"},"children":[["$","dt",null,{"style":{"fontWeight":600},"children":"Identity"}],["$","dd",null,{"style":{"margin":0,"color":"var(--ink-2)"},"children":"Name, persona, tone and a permanent agent id, so the same agent is recognised on every platform."}]]}],["$","div","Instructions",{"style":{"display":"grid","gridTemplateColumns":"140px 1fr","gap":16,"padding":"16px 0","borderBottom":"1px solid var(--line)"},"children":[["$","dt",null,{"style":{"fontWeight":600},"children":"Instructions"}],["$","dd",null,{"style":{"margin":0,"color":"var(--ink-2)"},"children":"System prompts, AGENTS.md style rules, conventions and slash commands."}]]}],["$","div","Memory",{"style":{"display":"grid","gridTemplateColumns":"140px 1fr","gap":16,"padding":"16px 0","borderBottom":"1px solid var(--line)"},"children":[["$","dt",null,{"style":{"fontWeight":600},"children":"Memory"}],["$","dd",null,{"style":{"margin":0,"color":"var(--ink-2)"},"children":"Profile, preferences, facts, project context and daily logs, kept as separate entries with their origin."}]]}],["$","div","Skills",{"style":{"display":"grid","gridTemplateColumns":"140px 1fr","gap":16,"padding":"16px 0","borderBottom":"1px solid var(--line)"},"children":[["$","dt",null,{"style":{"fontWeight":600},"children":"Skills"}],["$","dd",null,{"style":{"margin":0,"color":"var(--ink-2)"},"children":"Agent Skills folders with their scripts and files, converted between skills, commands and prompts."}]]}],["$","div","Tools",{"style":{"display":"grid","gridTemplateColumns":"140px 1fr","gap":16,"padding":"16px 0","borderBottom":"1px solid var(--line)"},"children":[["$","dt",null,{"style":{"fontWeight":600},"children":"Tools"}],["$","dd",null,{"style":{"margin":0,"color":"var(--ink-2)"},"children":"MCP servers with their configuration. Credentials become references you reconnect, never copied values."}]]}],["$","div","Routines",{"style":{"display":"grid","gridTemplateColumns":"140px 1fr","gap":16,"padding":"16px 0","borderBottom":"1px solid var(--line)"},"children":[["$","dt",null,{"style":{"fontWeight":600},"children":"Routines"}],["$","dd",null,{"style":{"margin":0,"color":"var(--ink-2)"},"children":"Scheduled jobs with their cron expression and timezone. Always imported paused."}]]}],["$","div","Permissions",{"style":{"display":"grid","gridTemplateColumns":"140px 1fr","gap":16,"padding":"16px 0","borderBottom":"1px solid var(--line)"},"children":[["$","dt",null,{"style":{"fontWeight":600},"children":"Permissions"}],["$","dd",null,{"style":{"margin":0,"color":"var(--ink-2)"},"children":"Allow, ask and deny rules mapped to the destination. Nomad never widens what an agent may do without asking."}]]}]]}]
|
|
29
|
+
14:["$","section",null,{"className":"section","id":"platforms","children":["$","div",null,{"className":"wrap","children":[["$","div",null,{"className":"section-head","children":[["$","div",null,{"children":[["$","p",null,{"className":"label","children":"Platforms"}],["$","h2",null,{"style":{"marginTop":12},"children":"Honest support labels."}]]}],["$","p",null,{"children":"Each integration declares what it can read and write per category. Full and partial adapters write files directly, and guided ones prepare a kit you finish by hand because the platform offers no import."}]]}],["$","div",null,{"className":"panel table-wrap","children":["$","table",null,{"className":"data","children":[["$","thead",null,{"children":["$","tr",null,{"children":[["$","th",null,{"scope":"col","children":"Platform"}],["$","th",null,{"scope":"col","children":"Support"}],["$","th",null,{"scope":"col","children":"What Nomad works with"}]]}]}],["$","tbody",null,{"children":[[["$","tr","openclaw",{"children":[["$","td",null,{"style":{"fontWeight":600,"whiteSpace":"nowrap"},"children":"OpenClaw"}],["$","td",null,{"children":["$","span",null,{"className":"badge PARTIAL","children":"partial"}]}],["$","td",null,{"className":"why","children":"Reads and writes OpenClaw agents, workspaces, memory, skills, cron jobs and per agent model and tool settings."}]]}],["$","tr","claude-code",{"children":[["$","td",null,{"style":{"fontWeight":600,"whiteSpace":"nowrap"},"children":"Claude Code"}],["$","td",null,{"children":["$","span",null,{"className":"badge PARTIAL","children":"partial"}]}],["$","td",null,{"className":"why","children":"Reads and writes user (~/.claude) and project (.claude/) configuration, subagents, skills, slash commands, permissions and MCP servers."}]]}],["$","tr","codex",{"children":[["$","td",null,{"style":{"fontWeight":600,"whiteSpace":"nowrap"},"children":"Codex CLI"}],["$","td",null,{"children":["$","span",null,{"className":"badge PARTIAL","children":"partial"}]}],["$","td",null,{"className":"why","children":"Reads and writes AGENTS.md, config.toml (model, approval policy, sandbox, MCP servers), skills and custom prompts."}]]}],["$","tr","hermes",{"children":[["$","td",null,{"style":{"fontWeight":600,"whiteSpace":"nowrap"},"children":"Hermes Agent"}],["$","td",null,{"children":["$","span",null,{"className":"badge PARTIAL","children":"partial"}]}],["$","td",null,{"className":"why","children":"Reads and writes Hermes profiles: persona, MEMORY.md and USER.md entries, skills, MCP servers, cron jobs and command allowlists."}]]}],["$","tr","generic",{"children":[["$","td",null,{"style":{"fontWeight":600,"whiteSpace":"nowrap"},"children":"Agent folder"}],["$","td",null,{"children":["$","span",null,{"className":"badge FULL","children":"full"}]}],["$","td",null,{"className":"why","children":"An unpacked Nomad package, or any folder of Markdown agent files (AGENTS.md, SOUL.md, MEMORY.md, skills/). Lossless for packages."}]]}],["$","tr","elizaos",{"children":[["$","td",null,{"style":{"fontWeight":600,"whiteSpace":"nowrap"},"children":"ElizaOS"}],["$","td",null,{"children":["$","span",null,{"className":"badge PARTIAL","children":"partial"}]}],["$","td",null,{"className":"why","children":"Character files (characters/*.json, *.character.json): bio, system prompt, style, knowledge, plugins and MCP servers under settings.mcp."}]]}],["$","tr","cursor",{"children":[["$","td",null,{"style":{"fontWeight":600,"whiteSpace":"nowrap"},"children":"Cursor"}],["$","td",null,{"children":["$","span",null,{"className":"badge PARTIAL","children":"partial"}]}],["$","td",null,{"className":"why","children":"Project rules in .cursor/rules (MDC), legacy .cursorrules and AGENTS.md, plus .cursor/mcp.json."}]]}],["$","tr","windsurf",{"children":[["$","td",null,{"style":{"fontWeight":600,"whiteSpace":"nowrap"},"children":"Windsurf"}],["$","td",null,{"children":["$","span",null,{"className":"badge PARTIAL","children":"partial"}]}],["$","td",null,{"className":"why","children":"Workspace rules in .windsurf/rules and the legacy .windsurfrules file."}]]}],["$","tr","cline",{"children":[["$","td",null,{"style":{"fontWeight":600,"whiteSpace":"nowrap"},"children":"Cline"}],["$","td",null,{"children":["$","span",null,{"className":"badge PARTIAL","children":"partial"}]}],["$","td",null,{"className":"why","children":"Workspace rules in .clinerules (file or folder)."}]]}],["$","tr","roo-code",{"children":[["$","td",null,{"style":{"fontWeight":600,"whiteSpace":"nowrap"},"children":"Roo Code"}],["$","td",null,{"children":["$","span",null,{"className":"badge PARTIAL","children":"partial"}]}],"$L23"]}],"$L24","$L25","$L26","$L27","$L28"],"$L29"]}]]}]}],"$L2a"]}]}]
|
|
30
|
+
15:["$","section",null,{"className":"section","id":"security","children":["$","div",null,{"className":"wrap split","children":[["$","div",null,{"children":[["$","p",null,{"className":"label","children":"Safety"}],["$","h2",null,{"style":{"marginTop":12},"children":"Built so a migration cannot quietly go wrong."}],["$","p",null,{"className":"lede","style":{"marginTop":18},"children":"Moving an agent means touching its credentials, its permissions and files you care about. Nomad treats each of those as a first class concern."}],["$","$L8",null,{"href":"/docs/security","className":"btn btn-quiet","style":{"marginTop":24},"children":"Security model"}]]}],["$","ul",null,{"className":"marks","children":[["$","li","Local first. Nothing is uploaded; there is no account.",{"children":"Local first. Nothing is uploaded; there is no account."}],["$","li","Secrets are detected and redacted before export, import and migration.",{"children":"Secrets are detected and redacted before export, import and migration."}],["$","li","The source agent is never modified.",{"children":"The source agent is never modified."}],["$","li","Every migration is a transaction with a backup and a rollback.",{"children":"Every migration is a transaction with a backup and a rollback."}],["$","li","Files you edited after Nomad wrote them are never overwritten silently.",{"children":"Files you edited after Nomad wrote them are never overwritten silently."}],["$","li","Packages are checked for path traversal, symlinks, bombs and tampering.",{"children":"Packages are checked for path traversal, symlinks, bombs and tampering."}]]}]]}]}]
|
|
31
|
+
16:["$","section",null,{"className":"section","children":["$","div",null,{"className":"wrap split","children":[["$","div",null,{"children":[["$","p",null,{"className":"label","children":"For developers"}],["$","h2",null,{"style":{"marginTop":12},"children":"The same engine everywhere."}],["$","p",null,{"className":"lede","style":{"marginTop":18},"children":"The web app, the CLI and the MCP server share one migration engine. New platforms plug in through the adapter SDK and its contract tests."}]]}],["$","pre",null,{"className":"code","aria-label":"Command line example","children":[["$","span",null,{"className":"c","children":"# guided: pick an agent, pick where it goes"}],"\nnpx thenomad\n\n",["$","span",null,{"className":"c","children":"# or in one line, with a short preview first"}],"\nnpx thenomad move openclaw claude-code\n\n",["$","span",null,{"className":"c","children":"# save it to a file, open it anywhere"}],"\nnpx thenomad move openclaw ./kestrel.nomad\nnpx thenomad move ./kestrel.nomad codex"]}]]}]}]
|
|
32
|
+
17:["$","section",null,{"style":{"padding":"64px 0"},"children":["$","div",null,{"className":"wrap","children":["$","div",null,{"className":"cta-band","children":[["$","h2",null,{"children":"Your agent, wherever you work next."}],["$","div",null,{"className":"row","children":[["$","$L8",null,{"href":"/docs","className":"btn btn-lime","children":"Get started"}],["$","$L8",null,{"href":"/inspect","className":"btn btn-ghost","style":{"color":"var(--paper)"},"children":"Try the inspector"}]]}]]}]}]}]
|
|
33
|
+
18:["$","footer",null,{"className":"site-footer","children":["$","div",null,{"className":"wrap","children":[["$","div",null,{"className":"footer-grid","children":[["$","div",null,{"children":[["$","$L8",null,{"href":"/","aria-label":"Nomad home","className":"brand","children":["$","span",null,{"style":{"display":"inline-flex","alignItems":"center","gap":12},"children":[["$","svg",null,{"width":37.89473684210526,"height":24,"viewBox":"0 0 300 190","role":"$undefined","aria-hidden":true,"aria-label":"$undefined","children":["$","g",null,{"fill":"none","stroke":"var(--blue)","strokeWidth":"17","strokeLinejoin":"miter","strokeMiterlimit":"10","children":[["$","path",null,{"d":"M12 120 L100 24 L170 94 L212 57 L266 112 L266 150 L212 108 L170 146 L100 76 L12 168 Z"}],["$","path",null,{"d":"M258 146 L290 172","strokeLinecap":"square"}]]}]}],["$","svg",null,{"height":12,"width":55.714285714285715,"viewBox":"-8 -6 520 112","aria-hidden":"true","children":["$","g",null,{"fill":"none","stroke":"currentColor","strokeWidth":"13","strokeLinejoin":"miter","strokeLinecap":"butt","children":[["$","path",null,{"d":"M6 100 V4 L66 96 V0"}],["$","circle",null,{"cx":"140","cy":"50","r":"44"}],["$","path",null,{"d":"M212 100 V4 L251 64 L290 4 V100"}],["$","path",null,{"d":"M318 100 L355 2 L392 100"}],["$","path",null,{"d":"M428 6 H452 A44 44 0 0 1 452 94 H428 Z"}]]}]}],["$","span",null,{"className":"visually-hidden","children":"Nomad"}]]}]}],["$","p",null,{"className":"muted","style":{"marginTop":14,"maxWidth":"34ch"},"children":"Portable AI agents. Local first, previewed before every change, backed up after."}],["$","p",null,{"style":{"marginTop":14},"children":["$","a",null,{"href":"https://x.com/thenomadlabs","target":"_blank","rel":"me noopener noreferrer","className":"$undefined","aria-label":"Nomad on X (@thenomadlabs)","title":"Nomad on X (@thenomadlabs)","style":{"display":"inline-flex","alignItems":"center"},"children":["$","svg",null,{"width":18,"height":18,"viewBox":"0 0 24 24","aria-hidden":"true","focusable":"false","style":{"display":"block"},"children":["$","path",null,{"fill":"currentColor","d":"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"}]}]}]}],["$","$L9",null,{}]]}],["$","div",null,{"children":[["$","h4",null,{"children":"Product"}],["$","ul",null,{"children":[["$","li",null,{"children":["$","$L8",null,{"href":"/app","children":"Local app"}]}],["$","li",null,{"children":["$","$L8",null,{"href":"/inspect","children":"Package inspector"}]}],["$","li",null,{"children":["$","$L8",null,{"href":"/docs/adapters","children":"Platforms"}]}],["$","li",null,{"children":["$","$L8",null,{"href":"/vote","children":"Holder vote"}]}]]}]]}],["$","div",null,{"children":[["$","h4",null,{"children":"Docs"}],["$","ul",null,{"children":[["$","li",null,{"children":["$","$L8",null,{"href":"/docs","children":"Getting started"}]}],["$","li",null,{"children":["$","$L8",null,{"href":"/docs/format","children":"Agent format"}]}],["$","li",null,{"children":["$","$L8",null,{"href":"/docs/security","children":"Security"}]}],["$","li",null,{"children":["$","$L8",null,{"href":"/docs/token","children":"Token and bounties"}]}]]}]]}],["$","div",null,{"children":[["$","h4",null,{"children":"Project"}],["$","ul",null,{"children":[["$","li",null,{"children":["$","a",null,{"href":"https://github.com/kadiri-seer/nomad","children":"Source code"}]}],["$","li",null,{"children":["$","a",null,{"href":"https://github.com/kadiri-seer/nomad/issues","children":"Questions and issues"}]}],["$","li",null,{"children":["$","$L8",null,{"href":"/terms","children":"Terms"}]}],["$","li",null,{"children":["$","$L8",null,{"href":"/privacy","children":"Privacy"}]}]]}]]}]]}],["$","div",null,{"className":"footer-bottom","children":[["$","span",null,{"children":["© ",2026," Nomad. MIT licensed."]}],["$","span",null,{"children":"Your agents never leave your machine unless you send them."}]]}]]}]}]
|
|
34
|
+
19:["$","script","script-0",{"src":"/_next/static/chunks/1d7qnsfqdlz_u.js","async":true,"nonce":"$undefined"}]
|
|
35
|
+
1a:["$","script","script-1",{"src":"/_next/static/chunks/01v5aab_kf3r7.js","async":true,"nonce":"$undefined"}]
|
|
36
|
+
1b:["$","$L2b",null,{"children":["$","$21",null,{"name":"Next.MetadataOutlet","children":"$@2c"}]}]
|
|
37
|
+
23:["$","td",null,{"className":"why","children":"Rules in .roo/rules and project MCP servers in .roo/mcp.json."}]
|
|
38
|
+
24:["$","tr","continue",{"children":[["$","td",null,{"style":{"fontWeight":600,"whiteSpace":"nowrap"},"children":"Continue"}],["$","td",null,{"children":["$","span",null,{"className":"badge PARTIAL","children":"partial"}]}],["$","td",null,{"className":"why","children":"Rules in .continue/rules (Markdown with frontmatter)."}]]}]
|
|
39
|
+
25:["$","tr","opencode",{"children":[["$","td",null,{"style":{"fontWeight":600,"whiteSpace":"nowrap"},"children":"OpenCode"}],["$","td",null,{"children":["$","span",null,{"className":"badge PARTIAL","children":"partial"}]}],["$","td",null,{"className":"why","children":"AGENTS.md, agent definitions in agent/, and MCP servers in opencode.json."}]]}]
|
|
40
|
+
26:["$","tr","goose",{"children":[["$","td",null,{"style":{"fontWeight":600,"whiteSpace":"nowrap"},"children":"Goose"}],["$","td",null,{"children":["$","span",null,{"className":"badge PARTIAL","children":"partial"}]}],["$","td",null,{"className":"why","children":".goosehints instructions and extensions in config.yaml."}]]}]
|
|
41
|
+
27:["$","tr","aider",{"children":[["$","td",null,{"style":{"fontWeight":600,"whiteSpace":"nowrap"},"children":"Aider"}],["$","td",null,{"children":["$","span",null,{"className":"badge PARTIAL","children":"partial"}]}],["$","td",null,{"className":"why","children":"CONVENTIONS.md loaded through the read list in .aider.conf.yml."}]]}]
|
|
42
|
+
28:["$","tr","gemini-cli",{"children":[["$","td",null,{"style":{"fontWeight":600,"whiteSpace":"nowrap"},"children":"Gemini CLI"}],["$","td",null,{"children":["$","span",null,{"className":"badge PARTIAL","children":"partial"}]}],["$","td",null,{"className":"why","children":"GEMINI.md context files and MCP servers in settings.json."}]]}]
|
|
43
|
+
29:["$","tr",null,{"children":[["$","td",null,{"style":{"fontWeight":600},"children":"Hosted and frameworks"}],["$","td",null,{"children":["$","span",null,{"className":"badge GUIDED","children":"guided"}]}],["$","td",null,{"className":"why","children":"ChatGPT, Claude (claude.ai), Gemini, Grok, Perplexity, CrewAI, LangGraph, LangChain, AutoGen, Semantic Kernel, PydanticAI, Agno, Mastra, Dify, Flowise, n8n, Letta"}]]}]
|
|
44
|
+
2a:["$","p",null,{"style":{"marginTop":16},"children":["$","$L8",null,{"href":"/docs/adapters","children":"See the full capability matrix"}]}]
|
|
45
|
+
1e:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","2",{"name":"theme-color","content":"#efede6"}]]
|
|
46
|
+
2d:I[57098,["$2"],"IconMark"]
|
|
47
|
+
22:[["$","title","0",{"children":"Nomad: move AI agents between platforms"}],["$","meta","1",{"name":"description","content":"Nomad moves AI agents between OpenClaw, Claude Code, Codex, Hermes and more. It preserves identity, memory and skills, previews every change and keeps backups."}],["$","meta","2",{"name":"application-name","content":"Nomad"}],["$","meta","3",{"property":"og:title","content":"Nomad: move AI agents between platforms"}],["$","meta","4",{"property":"og:description","content":"Portable AI agents with previews, backups and honest compatibility reports."}],["$","meta","5",{"property":"og:type","content":"website"}],["$","meta","6",{"name":"twitter:card","content":"summary"}],["$","meta","7",{"name":"twitter:site","content":"@thenomadlabs"}],["$","meta","8",{"name":"twitter:creator","content":"@thenomadlabs"}],["$","meta","9",{"name":"twitter:title","content":"Nomad: move AI agents between platforms"}],["$","meta","10",{"name":"twitter:description","content":"Portable AI agents with previews, backups and honest compatibility reports."}],["$","link","11",{"rel":"icon","href":"/icon.svg?icon.2h-uwvl6tefhb.svg","sizes":"any","type":"image/svg+xml"}],["$","$L2d","12",{}]]
|
|
48
|
+
2c:null
|
package/web/__next._tree.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
:HL["/_next/static/chunks/
|
|
1
|
+
:HL["/_next/static/chunks/1ygp921kjfxbp.css","style"]
|
|
2
2
|
:HC["/",""]
|
|
3
3
|
1:[["children",{"s":"__PAGE__","h":160}]]
|
|
4
|
-
0:{"b":"
|
|
4
|
+
0:{"b":"KOmtJW9C8Na0OCY-uXSeu","t":{"t":{"s":"","h":80,"c":"$Q1"}}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,73906,2969,64221,20125,e=>{"use strict";var t=e.i(21229),n=e.i(33892);e.i(73187),e.i(89089);let r="0123456789ABCDEFGHJKMNPQRSTVWXYZ",i=-1,s=[];function o(e=Date.now()){let t,n="",a=e;for(let e=0;e<10;e++)n=r[a%32]+n,a=Math.floor(a/32);if(e===i){t=[...s];for(let e=t.length-1;e>=0;e--){if(t[e]<31){t[e]++;break}t[e]=0}}else{let e;t=Array.from((e=new Uint8Array(16),globalThis.crypto.getRandomValues(e),e),e=>e%32)}return i=e,s=t,n+t.map(e=>r[e]).join("")}function a(e,t){switch(t){case"identity":return e.identity.persona||e.identity.description||e.identity.tone?1:+!!e.identity.name;case"instructions":return e.instructions.filter(e=>e.content.trim()).length;case"memory":return e.memory.length;case"skills":return e.skills.length;case"tools":return e.tools.length;case"integrations":return e.integrations.length;case"models":return e.models.preferred||e.models.fallbacks.length?1:0;case"permissions":return e.permissions.rules.length+ +("ask"!==e.permissions.mode);case"workflows":return e.workflows.length;case"knowledge":return e.knowledge.length+e.files.length;case"project":return Object.keys(e.extensions).length}}e.s(["P",0,function(e){return"string"==typeof e&&/^[0-9A-HJKMNP-TV-Z]{26}$/.test(e)},"A",0,function(e,t="agent"){return e.normalize("NFKD").replace(/[̀-ͯ]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,64)||t},"v",0,o],2969),e.s(["q",0,a,"F",0,function(e){let r=(e.now??new Date).toISOString(),i={schemaVersion:n.S,id:e.id??o(),name:e.name,description:e.description,createdAt:r,updatedAt:r,source:{platform:e.platform,readAt:r},identity:{name:e.name,description:e.description}};return(0,t.r)(i)},"K",0,function(e){return{...e,workflows:e.workflows.map(e=>({...e,enabled:!1}))}}],64221),e.s(["f",0,"0.2.0"],20125);let l={full:"Fully supported",convert:"Supported with conversion",manual:"Requires manual setup",unsupported:"Unsupported","not-applicable":"Not applicable"},u={identity:"Identity",instructions:"Instructions",memory:"Memory",skills:"Skills",tools:"Tools",integrations:"Integrations",models:"Models",permissions:"Permissions",workflows:"Workflows",knowledge:"Knowledge files",project:"Project configuration"},c={identity:2,instructions:3,memory:3,skills:2,tools:2,integrations:1,models:1,permissions:2,workflows:1,knowledge:1,project:1},f={full:1,convert:.75,manual:.4,unsupported:0},d=["full","convert","manual","unsupported"],p=["instructions","memory","skills","tools","permissions","workflows"];e.s(["A",0,u,"i",0,l,"Y",0,function(e,t,r){let i=[],s=0,o=0,h=[];for(let m of n.R){let n,g=e?a(e,m):1,y=t?t.capabilities[m].read:null,b=r.capabilities[m].write;if(0===g)n="not-applicable";else n=y?d[Math.max(d.indexOf(y),d.indexOf(b))]:b;"not-applicable"!==n&&(s+=c[m]*f[n],o+=c[m]);let v=g>0&&("unsupported"===n||"manual"===n&&p.includes(m));v&&h.push("unsupported"===n?`${u[m]}: ${r.displayName} has no place for ${1===g?"1 item":`${g} items`}, so ${1===g?"it is":"they are"} not moved. Nomad keeps a copy and gives you steps to set ${1===g?"it":"them"} up another way.`:`${u[m]}: you finish setting up ${1===g?"1 item":`${g} items`} in ${r.displayName} yourself. Nomad lists the steps.`),i.push({category:m,label:u[m],status:n,statusLabel:l[n],items:g,sourceRead:y,destinationWrite:b,explanation:function(e,t,n,r,i){let s=n.capabilities[e].notes,o=(()=>{switch(t){case"not-applicable":return"The agent has nothing in this category.";case"full":return`${n.displayName} stores this natively.`;case"convert":return`${n.displayName} stores this in a different structure, so Nomad converts it.`;case"manual":return`Nomad keeps the definition, but you finish setup in ${n.displayName}.`;case"unsupported":return`${n.displayName} has no equivalent. The data is kept in the package and listed in the report.`}})(),a="";if("permissions"===e&&i&&"full"!==t&&"not-applicable"!==t){let e=i.permissions.rules.filter(e=>"allow"!==e.effect).length;e&&(a=` ${e} restriction(s) may not be enforced by the destination.`)}return"workflows"===e&&r&&(a+=" Imported routines always start disabled."),[o,s,a.trim()].filter(Boolean).join(" ")}(m,n,r,g,e),attention:v})}let m=o?Math.round(s/o*100):null;return{source:t?.id??null,destination:r.id,categories:i,score:m,scoreExplanation:"Each category the agent uses counts with a weight (instructions and memory 3, identity, skills, tools and permissions 2, the rest 1). Fully supported counts 100%, converted 75%, manual setup 40%, unsupported 0%. The score is the weighted average. Categories the agent does not use are left out. Items flagged for attention matter even when the score is high.",attention:h}}],73906)},73187,89089,e=>{"use strict";let t,n=new Uint32Array([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),r=new TextEncoder,i=new TextDecoder("utf-8",{fatal:!1});function s(e){return r.encode(e)}e.s(["B",0,function(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n},"w",0,function(e){let t="";for(let n=0;n<e.length;n+=32768)t+=String.fromCharCode(...e.subarray(n,n+32768));return btoa(t)},"Z",0,function(e){return JSON.stringify(function e(t){if(Array.isArray(t))return t.map(e);if(t&&"object"==typeof t){let n={};for(let r of Object.keys(t).sort()){let i=t[r];void 0!==i&&(n[r]=e(i))}return n}return t}(e))},"r",0,function(e){return i.decode(e)},"E",0,function(e){let t="string"==typeof e?s(e):e,r=new Uint32Array([0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19]),i=8*t.length,o=new Uint8Array(t.length+9+63>>6<<6);o.set(t),o[t.length]=128;let a=new DataView(o.buffer);a.setUint32(o.length-8,Math.floor(i/0x100000000)),a.setUint32(o.length-4,i>>>0);let l=new Uint32Array(64);for(let e=0;e<o.length;e+=64){for(let t=0;t<16;t++)l[t]=a.getUint32(e+4*t);for(let e=16;e<64;e++){let t=l[e-15],n=l[e-2],r=(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3,i=(n>>>17|n<<15)^(n>>>19|n<<13)^n>>>10;l[e]=l[e-16]+r+l[e-7]+i>>>0}let t=r[0],i=r[1],s=r[2],o=r[3],u=r[4],c=r[5],f=r[6],d=r[7];for(let e=0;e<64;e++){let r=d+((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&c^~u&f)+n[e]+l[e]>>>0,a=((t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10))+(t&i^t&s^i&s)>>>0;d=f,f=c,c=u,u=o+r>>>0,o=s,s=i,i=t,t=r+a>>>0}r[0]=r[0]+t>>>0,r[1]=r[1]+i>>>0,r[2]=r[2]+s>>>0,r[3]=r[3]+o>>>0,r[4]=r[4]+u>>>0,r[5]=r[5]+c>>>0,r[6]=r[6]+f>>>0,r[7]=r[7]+d>>>0}return Array.from(r,e=>e.toString(16).padStart(8,"0")).join("")},"J",0,s],73187);let o=Symbol.for("yaml.alias"),a=Symbol.for("yaml.document"),l=Symbol.for("yaml.map"),u=Symbol.for("yaml.pair"),c=Symbol.for("yaml.scalar"),f=Symbol.for("yaml.seq"),d=Symbol.for("yaml.node.type"),p=e=>!!e&&"object"==typeof e&&e[d]===o,h=e=>!!e&&"object"==typeof e&&e[d]===a,m=e=>!!e&&"object"==typeof e&&e[d]===l,g=e=>!!e&&"object"==typeof e&&e[d]===u,y=e=>!!e&&"object"==typeof e&&e[d]===c,b=e=>!!e&&"object"==typeof e&&e[d]===f;function v(e){if(e&&"object"==typeof e)switch(e[d]){case l:case f:return!0}return!1}function w(e){if(e&&"object"==typeof e)switch(e[d]){case o:case l:case c:case f:return!0}return!1}let k=e=>(y(e)||v(e))&&!!e.anchor,_=Symbol("break visit"),S=Symbol("skip children"),O=Symbol("remove node");function x(e,t){let n=A(t);h(e)?$(null,e.contents,n,Object.freeze([e]))===O&&(e.contents=null):$(null,e,n,Object.freeze([]))}function $(e,t,n,r){let i=N(e,t,n,r);if(w(i)||g(i))return T(e,r,i),$(e,i,n,r);if("symbol"!=typeof i){if(v(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=$(e,t.items[e],n,r);if("number"==typeof i)e=i-1;else{if(i===_)return _;i===O&&(t.items.splice(e,1),e-=1)}}}else if(g(t)){r=Object.freeze(r.concat(t));let e=$("key",t.key,n,r);if(e===_)return _;e===O&&(t.key=null);let i=$("value",t.value,n,r);if(i===_)return _;i===O&&(t.value=null)}}return i}async function z(e,t){let n=A(t);h(e)?await E(null,e.contents,n,Object.freeze([e]))===O&&(e.contents=null):await E(null,e,n,Object.freeze([]))}async function E(e,t,n,r){let i=await N(e,t,n,r);if(w(i)||g(i))return T(e,r,i),E(e,i,n,r);if("symbol"!=typeof i){if(v(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=await E(e,t.items[e],n,r);if("number"==typeof i)e=i-1;else{if(i===_)return _;i===O&&(t.items.splice(e,1),e-=1)}}}else if(g(t)){r=Object.freeze(r.concat(t));let e=await E("key",t.key,n,r);if(e===_)return _;e===O&&(t.key=null);let i=await E("value",t.value,n,r);if(i===_)return _;i===O&&(t.value=null)}}return i}function A(e){return"object"==typeof e&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function N(e,t,n,r){return"function"==typeof n?n(e,t,r):m(t)?n.Map?.(e,t,r):b(t)?n.Seq?.(e,t,r):g(t)?n.Pair?.(e,t,r):y(t)?n.Scalar?.(e,t,r):p(t)?n.Alias?.(e,t,r):void 0}function T(e,t,n){let r=t[t.length-1];if(v(r))r.items[e]=n;else if(g(r))"key"===e?r.key=n:r.value=n;else if(h(r))r.contents=n;else{let e=p(r)?"alias":"scalar";throw Error(`Cannot replace node with ${e} parent`)}}x.BREAK=_,x.SKIP=S,x.REMOVE=O,z.BREAK=_,z.SKIP=S,z.REMOVE=O;let I={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},j=e=>e.replace(/[!,[\]{}]/g,e=>I[e]);class P{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},P.defaultYaml,e),this.tags=Object.assign({},P.defaultTags,t)}clone(){let e=new P(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new P(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:P.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},P.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:P.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},P.defaultTags),this.atNextDocument=!1);let n=e.trim().split(/[ \t]+/),r=n.shift();switch(r){case"%TAG":{if(2!==n.length&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;let[e,r]=n;return this.tags[e]=r,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==n.length)return t(0,"%YAML directive should contain exactly one part"),!1;let[e]=n;if("1.1"===e||"1.2"===e)return this.yaml.version=e,!0;{let n=/^\d+\.\d+$/.test(e);return t(6,`Unsupported YAML version ${e}`,n),!1}}default:return t(0,`Unknown directive ${r}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){let n=e.slice(2,-1);return"!"===n||"!!"===n?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return"!"===n?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+j(e.substring(n.length));return"!"===e[0]?e:`!<${e}>`}toString(e){let t,n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);if(e&&r.length>0&&w(e.contents)){let n={};x(e.contents,(e,t)=>{w(t)&&t.tag&&(n[t.tag]=!0)}),t=Object.keys(n)}else t=[];for(let[i,s]of r)("!!"!==i||"tag:yaml.org,2002:"!==s)&&(!e||t.some(e=>e.startsWith(s)))&&n.push(`%TAG ${i} ${s}`);return n.join("\n")}}function C(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=JSON.stringify(e);throw Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0}function L(e){let t=new Set;return x(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function D(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function M(e,t,n,r){if(r&&"object"==typeof r)if(Array.isArray(r))for(let t=0,n=r.length;t<n;++t){let n=r[t],i=M(e,r,String(t),n);void 0===i?delete r[t]:i!==n&&(r[t]=i)}else if(r instanceof Map)for(let t of Array.from(r.keys())){let n=r.get(t),i=M(e,r,t,n);void 0===i?r.delete(t):i!==n&&r.set(t,i)}else if(r instanceof Set)for(let t of Array.from(r)){let n=M(e,r,t,t);void 0===n?r.delete(t):n!==t&&(r.delete(t),r.add(n))}else for(let[t,n]of Object.entries(r)){let i=M(e,r,t,n);void 0===i?delete r[t]:i!==n&&(r[t]=i)}return e.call(t,n,r)}function R(e,t,n){if(Array.isArray(e))return e.map((e,t)=>R(e,String(t),n));if(e&&"function"==typeof e.toJSON){if(!n||!k(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return"bigint"!=typeof e||n?.keep?e:Number(e)}P.defaultYaml={explicit:!1,version:"1.2"},P.defaultTags={"!!":"tag:yaml.org,2002:"};class Z{constructor(e){Object.defineProperty(this,d,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!h(e))throw TypeError("A document argument is required");let s={anchors:new Map,doc:e,keep:!0,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof n?n:100},o=R(this,"",s);if("function"==typeof r)for(let{count:e,res:t}of s.anchors.values())r(t,e);return"function"==typeof i?M(i,{"":o},"",o):o}}class B extends Z{constructor(e){super(o),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(e,t){let n,r;if(t?.maxAliasCount===0)throw ReferenceError("Alias resolution is disabled");for(let i of(t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],x(e,{Node:(e,t)=>{(p(t)||k(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n)),n)){if(i===this)break;i.anchor===this.source&&(r=i)}if(r&&t){let{anchors:e,doc:n,maxAliasCount:i}=t,s=e.get(r);if(s||(R(r,null,t),s=e.get(r)),s?.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(i>=0&&(s.count+=1,0===s.aliasCount&&(s.aliasCount=function e(t,n,r){if(p(n)){let e=n.resolve(t),i=r&&e&&r.get(e);return i?i.count*i.aliasCount:0}if(v(n)){let i=0;for(let s of n.items){let n=e(t,s,r);n>i&&(i=n)}return i}return g(n)?Math.max(e(t,n.key,r),e(t,n.value,r)):1}(n,r,e)),s.count*s.aliasCount>i))throw ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return r}toJSON(e,t){if(!t)return{source:this.source};let n=this.resolve(t.doc,t);if(!n)throw ReferenceError(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);return t.anchors.get(n).res}toString(e,t,n){let r=`*${this.source}`;if(e){if(C(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source))throw Error(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);if(e.implicitKey)return`${r} `}return r}}let U=e=>!e||"function"!=typeof e&&"object"!=typeof e;class F extends Z{constructor(e){super(c),this.value=e}toJSON(e,t){return t?.keep?this.value:R(this.value,e,t)}toString(){return String(this.value)}}function K(e,t,n){let r;if(h(e)&&(e=e.contents),w(e))return e;if(g(e)){let t=n.schema[l].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"u">typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:i,onAnchor:s,onTagObj:o,schema:a,sourceObjects:u}=n;if(i&&e&&"object"==typeof e){if(r=u.get(e))return r.anchor??(r.anchor=s(e)),new B(r.anchor);r={anchor:null,node:null},u.set(e,r)}t?.startsWith("!!")&&(t="tag:yaml.org,2002:"+t.slice(2));let c=function(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}(e,t,a.tags);if(!c){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){let t=new F(e);return r&&(r.node=t),t}c=e instanceof Map?a[l]:Symbol.iterator in Object(e)?a[f]:a[l]}o&&(o(c),delete n.onTagObj);let d=c?.createNode?c.createNode(n.schema,e,n):"function"==typeof c?.nodeClass?.from?c.nodeClass.from(n.schema,e,n):new F(e);return t?d.tag=t:c.default||(d.tag=c.tag),r&&(r.node=d),d}function q(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if("number"==typeof n&&Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return K(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}F.BLOCK_FOLDED="BLOCK_FOLDED",F.BLOCK_LITERAL="BLOCK_LITERAL",F.PLAIN="PLAIN",F.QUOTE_DOUBLE="QUOTE_DOUBLE",F.QUOTE_SINGLE="QUOTE_SINGLE";let J=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class V extends Z{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>w(t)||g(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(J(e))this.add(t);else{let[n,...r]=e,i=this.get(n,!0);if(v(i))i.addIn(r,t);else if(void 0===i&&this.schema)this.set(n,q(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){let[t,...n]=e;if(0===n.length)return this.delete(t);let r=this.get(t,!0);if(v(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...r]=e,i=this.get(n,!0);return 0===r.length?!t&&y(i)?i.value:i:v(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!g(t))return!1;let n=t.value;return null==n||e&&y(n)&&null==n.value&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(0===n.length)return this.has(t);let r=this.get(t,!0);return!!v(r)&&r.hasIn(n)}setIn(e,t){let[n,...r]=e;if(0===r.length)this.set(n,t);else{let e=this.get(n,!0);if(v(e))e.setIn(r,t);else if(void 0===e&&this.schema)this.set(n,q(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}}let W=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function G(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}let Y=(e,t,n)=>e.endsWith("\n")?G(n,t):n.includes("\n")?"\n"+G(n,t):(e.endsWith(" ")?"":" ")+n,X="flow",H="block",Q="quoted";function ee(e,t,n="flow",{indentAtStart:r,lineWidth:i=80,minContentWidth:s=20,onFold:o,onOverflow:a}={}){let l,u,c;if(!i||i<0)return e;i<s&&(s=0);let f=Math.max(1+s,1+i-t.length);if(e.length<=f)return e;let d=[],p={},h=i-t.length;"number"==typeof r&&(r>i-Math.max(2,s)?d.push(0):h=i-r);let m=!1,g=-1,y=-1,b=-1;for(n===H&&-1!==(g=et(e,g,t.length))&&(h=g+f);c=e[g+=1];){if(n===Q&&"\\"===c){switch(y=g,e[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}b=g}if("\n"===c)n===H&&(g=et(e,g,t.length)),h=g+t.length+f,l=void 0;else{if(" "===c&&u&&" "!==u&&"\n"!==u&&" "!==u){let t=e[g+1];t&&" "!==t&&"\n"!==t&&" "!==t&&(l=g)}if(g>=h)if(l)d.push(l),h=l+f,l=void 0;else if(n===Q){for(;" "===u||" "===u;)u=c,c=e[g+=1],m=!0;let t=g>b+1?g-2:y-1;if(p[t])return e;d.push(t),p[t]=!0,h=t+f,l=void 0}else m=!0}u=c}if(m&&a&&a(),0===d.length)return e;o&&o();let v=e.slice(0,d[0]);for(let r=0;r<d.length;++r){let i=d[r],s=d[r+1]||e.length;0===i?v=`
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,73906,2969,64221,20125,e=>{"use strict";var t=e.i(21229),n=e.i(33892);e.i(73187),e.i(89089);let r="0123456789ABCDEFGHJKMNPQRSTVWXYZ",i=-1,s=[];function o(e=Date.now()){let t,n="",a=e;for(let e=0;e<10;e++)n=r[a%32]+n,a=Math.floor(a/32);if(e===i){t=[...s];for(let e=t.length-1;e>=0;e--){if(t[e]<31){t[e]++;break}t[e]=0}}else{let e;t=Array.from((e=new Uint8Array(16),globalThis.crypto.getRandomValues(e),e),e=>e%32)}return i=e,s=t,n+t.map(e=>r[e]).join("")}function a(e,t){switch(t){case"identity":return e.identity.persona||e.identity.description||e.identity.tone?1:+!!e.identity.name;case"instructions":return e.instructions.filter(e=>e.content.trim()).length;case"memory":return e.memory.length;case"skills":return e.skills.length;case"tools":return e.tools.length;case"integrations":return e.integrations.length;case"models":return e.models.preferred||e.models.fallbacks.length?1:0;case"permissions":return e.permissions.rules.length+ +("ask"!==e.permissions.mode);case"workflows":return e.workflows.length;case"knowledge":return e.knowledge.length+e.files.length;case"project":return Object.keys(e.extensions).length}}e.s(["P",0,function(e){return"string"==typeof e&&/^[0-9A-HJKMNP-TV-Z]{26}$/.test(e)},"A",0,function(e,t="agent"){return e.normalize("NFKD").replace(/[̀-ͯ]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,64)||t},"v",0,o],2969),e.s(["q",0,a,"F",0,function(e){let r=(e.now??new Date).toISOString(),i={schemaVersion:n.S,id:e.id??o(),name:e.name,description:e.description,createdAt:r,updatedAt:r,source:{platform:e.platform,readAt:r},identity:{name:e.name,description:e.description}};return(0,t.r)(i)},"K",0,function(e){return{...e,workflows:e.workflows.map(e=>({...e,enabled:!1}))}}],64221),e.s(["f",0,"0.4.0"],20125);let l={full:"Fully supported",convert:"Supported with conversion",manual:"Requires manual setup",unsupported:"Unsupported","not-applicable":"Not applicable"},u={identity:"Identity",instructions:"Instructions",memory:"Memory",skills:"Skills",tools:"Tools",integrations:"Integrations",models:"Models",permissions:"Permissions",workflows:"Workflows",knowledge:"Knowledge files",project:"Project configuration"},c={identity:2,instructions:3,memory:3,skills:2,tools:2,integrations:1,models:1,permissions:2,workflows:1,knowledge:1,project:1},f={full:1,convert:.75,manual:.4,unsupported:0},d=["full","convert","manual","unsupported"],p=["instructions","memory","skills","tools","permissions","workflows"];e.s(["A",0,u,"i",0,l,"Y",0,function(e,t,r){let i=[],s=0,o=0,h=[];for(let m of n.R){let n,g=e?a(e,m):1,y=t?t.capabilities[m].read:null,b=r.capabilities[m].write;if(0===g)n="not-applicable";else n=y?d[Math.max(d.indexOf(y),d.indexOf(b))]:b;"not-applicable"!==n&&(s+=c[m]*f[n],o+=c[m]);let v=g>0&&("unsupported"===n||"manual"===n&&p.includes(m));v&&h.push("unsupported"===n?`${u[m]}: ${r.displayName} has no place for ${1===g?"1 item":`${g} items`}, so ${1===g?"it is":"they are"} not moved. Nomad keeps a copy and gives you steps to set ${1===g?"it":"them"} up another way.`:`${u[m]}: you finish setting up ${1===g?"1 item":`${g} items`} in ${r.displayName} yourself. Nomad lists the steps.`),i.push({category:m,label:u[m],status:n,statusLabel:l[n],items:g,sourceRead:y,destinationWrite:b,explanation:function(e,t,n,r,i){let s=n.capabilities[e].notes,o=(()=>{switch(t){case"not-applicable":return"The agent has nothing in this category.";case"full":return`${n.displayName} stores this natively.`;case"convert":return`${n.displayName} stores this in a different structure, so Nomad converts it.`;case"manual":return`Nomad keeps the definition, but you finish setup in ${n.displayName}.`;case"unsupported":return`${n.displayName} has no equivalent. The data is kept in the package and listed in the report.`}})(),a="";if("permissions"===e&&i&&"full"!==t&&"not-applicable"!==t){let e=i.permissions.rules.filter(e=>"allow"!==e.effect).length;e&&(a=` ${e} restriction(s) may not be enforced by the destination.`)}return"workflows"===e&&r&&(a+=" Imported routines always start disabled."),[o,s,a.trim()].filter(Boolean).join(" ")}(m,n,r,g,e),attention:v})}let m=o?Math.round(s/o*100):null;return{source:t?.id??null,destination:r.id,categories:i,score:m,scoreExplanation:"Each category the agent uses counts with a weight (instructions and memory 3, identity, skills, tools and permissions 2, the rest 1). Fully supported counts 100%, converted 75%, manual setup 40%, unsupported 0%. The score is the weighted average. Categories the agent does not use are left out. Items flagged for attention matter even when the score is high.",attention:h}}],73906)},73187,89089,e=>{"use strict";let t,n=new Uint32Array([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),r=new TextEncoder,i=new TextDecoder("utf-8",{fatal:!1});function s(e){return r.encode(e)}e.s(["B",0,function(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n},"w",0,function(e){let t="";for(let n=0;n<e.length;n+=32768)t+=String.fromCharCode(...e.subarray(n,n+32768));return btoa(t)},"Z",0,function(e){return JSON.stringify(function e(t){if(Array.isArray(t))return t.map(e);if(t&&"object"==typeof t){let n={};for(let r of Object.keys(t).sort()){let i=t[r];void 0!==i&&(n[r]=e(i))}return n}return t}(e))},"r",0,function(e){return i.decode(e)},"E",0,function(e){let t="string"==typeof e?s(e):e,r=new Uint32Array([0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19]),i=8*t.length,o=new Uint8Array(t.length+9+63>>6<<6);o.set(t),o[t.length]=128;let a=new DataView(o.buffer);a.setUint32(o.length-8,Math.floor(i/0x100000000)),a.setUint32(o.length-4,i>>>0);let l=new Uint32Array(64);for(let e=0;e<o.length;e+=64){for(let t=0;t<16;t++)l[t]=a.getUint32(e+4*t);for(let e=16;e<64;e++){let t=l[e-15],n=l[e-2],r=(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3,i=(n>>>17|n<<15)^(n>>>19|n<<13)^n>>>10;l[e]=l[e-16]+r+l[e-7]+i>>>0}let t=r[0],i=r[1],s=r[2],o=r[3],u=r[4],c=r[5],f=r[6],d=r[7];for(let e=0;e<64;e++){let r=d+((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&c^~u&f)+n[e]+l[e]>>>0,a=((t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10))+(t&i^t&s^i&s)>>>0;d=f,f=c,c=u,u=o+r>>>0,o=s,s=i,i=t,t=r+a>>>0}r[0]=r[0]+t>>>0,r[1]=r[1]+i>>>0,r[2]=r[2]+s>>>0,r[3]=r[3]+o>>>0,r[4]=r[4]+u>>>0,r[5]=r[5]+c>>>0,r[6]=r[6]+f>>>0,r[7]=r[7]+d>>>0}return Array.from(r,e=>e.toString(16).padStart(8,"0")).join("")},"J",0,s],73187);let o=Symbol.for("yaml.alias"),a=Symbol.for("yaml.document"),l=Symbol.for("yaml.map"),u=Symbol.for("yaml.pair"),c=Symbol.for("yaml.scalar"),f=Symbol.for("yaml.seq"),d=Symbol.for("yaml.node.type"),p=e=>!!e&&"object"==typeof e&&e[d]===o,h=e=>!!e&&"object"==typeof e&&e[d]===a,m=e=>!!e&&"object"==typeof e&&e[d]===l,g=e=>!!e&&"object"==typeof e&&e[d]===u,y=e=>!!e&&"object"==typeof e&&e[d]===c,b=e=>!!e&&"object"==typeof e&&e[d]===f;function v(e){if(e&&"object"==typeof e)switch(e[d]){case l:case f:return!0}return!1}function w(e){if(e&&"object"==typeof e)switch(e[d]){case o:case l:case c:case f:return!0}return!1}let k=e=>(y(e)||v(e))&&!!e.anchor,_=Symbol("break visit"),S=Symbol("skip children"),O=Symbol("remove node");function x(e,t){let n=A(t);h(e)?$(null,e.contents,n,Object.freeze([e]))===O&&(e.contents=null):$(null,e,n,Object.freeze([]))}function $(e,t,n,r){let i=N(e,t,n,r);if(w(i)||g(i))return T(e,r,i),$(e,i,n,r);if("symbol"!=typeof i){if(v(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=$(e,t.items[e],n,r);if("number"==typeof i)e=i-1;else{if(i===_)return _;i===O&&(t.items.splice(e,1),e-=1)}}}else if(g(t)){r=Object.freeze(r.concat(t));let e=$("key",t.key,n,r);if(e===_)return _;e===O&&(t.key=null);let i=$("value",t.value,n,r);if(i===_)return _;i===O&&(t.value=null)}}return i}async function z(e,t){let n=A(t);h(e)?await E(null,e.contents,n,Object.freeze([e]))===O&&(e.contents=null):await E(null,e,n,Object.freeze([]))}async function E(e,t,n,r){let i=await N(e,t,n,r);if(w(i)||g(i))return T(e,r,i),E(e,i,n,r);if("symbol"!=typeof i){if(v(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=await E(e,t.items[e],n,r);if("number"==typeof i)e=i-1;else{if(i===_)return _;i===O&&(t.items.splice(e,1),e-=1)}}}else if(g(t)){r=Object.freeze(r.concat(t));let e=await E("key",t.key,n,r);if(e===_)return _;e===O&&(t.key=null);let i=await E("value",t.value,n,r);if(i===_)return _;i===O&&(t.value=null)}}return i}function A(e){return"object"==typeof e&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function N(e,t,n,r){return"function"==typeof n?n(e,t,r):m(t)?n.Map?.(e,t,r):b(t)?n.Seq?.(e,t,r):g(t)?n.Pair?.(e,t,r):y(t)?n.Scalar?.(e,t,r):p(t)?n.Alias?.(e,t,r):void 0}function T(e,t,n){let r=t[t.length-1];if(v(r))r.items[e]=n;else if(g(r))"key"===e?r.key=n:r.value=n;else if(h(r))r.contents=n;else{let e=p(r)?"alias":"scalar";throw Error(`Cannot replace node with ${e} parent`)}}x.BREAK=_,x.SKIP=S,x.REMOVE=O,z.BREAK=_,z.SKIP=S,z.REMOVE=O;let I={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},j=e=>e.replace(/[!,[\]{}]/g,e=>I[e]);class P{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},P.defaultYaml,e),this.tags=Object.assign({},P.defaultTags,t)}clone(){let e=new P(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new P(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:P.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},P.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:P.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},P.defaultTags),this.atNextDocument=!1);let n=e.trim().split(/[ \t]+/),r=n.shift();switch(r){case"%TAG":{if(2!==n.length&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;let[e,r]=n;return this.tags[e]=r,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==n.length)return t(0,"%YAML directive should contain exactly one part"),!1;let[e]=n;if("1.1"===e||"1.2"===e)return this.yaml.version=e,!0;{let n=/^\d+\.\d+$/.test(e);return t(6,`Unsupported YAML version ${e}`,n),!1}}default:return t(0,`Unknown directive ${r}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){let n=e.slice(2,-1);return"!"===n||"!!"===n?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return"!"===n?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+j(e.substring(n.length));return"!"===e[0]?e:`!<${e}>`}toString(e){let t,n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);if(e&&r.length>0&&w(e.contents)){let n={};x(e.contents,(e,t)=>{w(t)&&t.tag&&(n[t.tag]=!0)}),t=Object.keys(n)}else t=[];for(let[i,s]of r)("!!"!==i||"tag:yaml.org,2002:"!==s)&&(!e||t.some(e=>e.startsWith(s)))&&n.push(`%TAG ${i} ${s}`);return n.join("\n")}}function C(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=JSON.stringify(e);throw Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0}function L(e){let t=new Set;return x(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function D(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function M(e,t,n,r){if(r&&"object"==typeof r)if(Array.isArray(r))for(let t=0,n=r.length;t<n;++t){let n=r[t],i=M(e,r,String(t),n);void 0===i?delete r[t]:i!==n&&(r[t]=i)}else if(r instanceof Map)for(let t of Array.from(r.keys())){let n=r.get(t),i=M(e,r,t,n);void 0===i?r.delete(t):i!==n&&r.set(t,i)}else if(r instanceof Set)for(let t of Array.from(r)){let n=M(e,r,t,t);void 0===n?r.delete(t):n!==t&&(r.delete(t),r.add(n))}else for(let[t,n]of Object.entries(r)){let i=M(e,r,t,n);void 0===i?delete r[t]:i!==n&&(r[t]=i)}return e.call(t,n,r)}function R(e,t,n){if(Array.isArray(e))return e.map((e,t)=>R(e,String(t),n));if(e&&"function"==typeof e.toJSON){if(!n||!k(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return"bigint"!=typeof e||n?.keep?e:Number(e)}P.defaultYaml={explicit:!1,version:"1.2"},P.defaultTags={"!!":"tag:yaml.org,2002:"};class Z{constructor(e){Object.defineProperty(this,d,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!h(e))throw TypeError("A document argument is required");let s={anchors:new Map,doc:e,keep:!0,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof n?n:100},o=R(this,"",s);if("function"==typeof r)for(let{count:e,res:t}of s.anchors.values())r(t,e);return"function"==typeof i?M(i,{"":o},"",o):o}}class B extends Z{constructor(e){super(o),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(e,t){let n,r;if(t?.maxAliasCount===0)throw ReferenceError("Alias resolution is disabled");for(let i of(t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],x(e,{Node:(e,t)=>{(p(t)||k(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n)),n)){if(i===this)break;i.anchor===this.source&&(r=i)}if(r&&t){let{anchors:e,doc:n,maxAliasCount:i}=t,s=e.get(r);if(s||(R(r,null,t),s=e.get(r)),s?.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(i>=0&&(s.count+=1,0===s.aliasCount&&(s.aliasCount=function e(t,n,r){if(p(n)){let e=n.resolve(t),i=r&&e&&r.get(e);return i?i.count*i.aliasCount:0}if(v(n)){let i=0;for(let s of n.items){let n=e(t,s,r);n>i&&(i=n)}return i}return g(n)?Math.max(e(t,n.key,r),e(t,n.value,r)):1}(n,r,e)),s.count*s.aliasCount>i))throw ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return r}toJSON(e,t){if(!t)return{source:this.source};let n=this.resolve(t.doc,t);if(!n)throw ReferenceError(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);return t.anchors.get(n).res}toString(e,t,n){let r=`*${this.source}`;if(e){if(C(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source))throw Error(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);if(e.implicitKey)return`${r} `}return r}}let U=e=>!e||"function"!=typeof e&&"object"!=typeof e;class F extends Z{constructor(e){super(c),this.value=e}toJSON(e,t){return t?.keep?this.value:R(this.value,e,t)}toString(){return String(this.value)}}function K(e,t,n){let r;if(h(e)&&(e=e.contents),w(e))return e;if(g(e)){let t=n.schema[l].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"u">typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:i,onAnchor:s,onTagObj:o,schema:a,sourceObjects:u}=n;if(i&&e&&"object"==typeof e){if(r=u.get(e))return r.anchor??(r.anchor=s(e)),new B(r.anchor);r={anchor:null,node:null},u.set(e,r)}t?.startsWith("!!")&&(t="tag:yaml.org,2002:"+t.slice(2));let c=function(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}(e,t,a.tags);if(!c){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){let t=new F(e);return r&&(r.node=t),t}c=e instanceof Map?a[l]:Symbol.iterator in Object(e)?a[f]:a[l]}o&&(o(c),delete n.onTagObj);let d=c?.createNode?c.createNode(n.schema,e,n):"function"==typeof c?.nodeClass?.from?c.nodeClass.from(n.schema,e,n):new F(e);return t?d.tag=t:c.default||(d.tag=c.tag),r&&(r.node=d),d}function q(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if("number"==typeof n&&Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return K(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}F.BLOCK_FOLDED="BLOCK_FOLDED",F.BLOCK_LITERAL="BLOCK_LITERAL",F.PLAIN="PLAIN",F.QUOTE_DOUBLE="QUOTE_DOUBLE",F.QUOTE_SINGLE="QUOTE_SINGLE";let J=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class V extends Z{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>w(t)||g(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(J(e))this.add(t);else{let[n,...r]=e,i=this.get(n,!0);if(v(i))i.addIn(r,t);else if(void 0===i&&this.schema)this.set(n,q(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){let[t,...n]=e;if(0===n.length)return this.delete(t);let r=this.get(t,!0);if(v(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...r]=e,i=this.get(n,!0);return 0===r.length?!t&&y(i)?i.value:i:v(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!g(t))return!1;let n=t.value;return null==n||e&&y(n)&&null==n.value&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(0===n.length)return this.has(t);let r=this.get(t,!0);return!!v(r)&&r.hasIn(n)}setIn(e,t){let[n,...r]=e;if(0===r.length)this.set(n,t);else{let e=this.get(n,!0);if(v(e))e.setIn(r,t);else if(void 0===e&&this.schema)this.set(n,q(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}}let W=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function G(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}let Y=(e,t,n)=>e.endsWith("\n")?G(n,t):n.includes("\n")?"\n"+G(n,t):(e.endsWith(" ")?"":" ")+n,X="flow",H="block",Q="quoted";function ee(e,t,n="flow",{indentAtStart:r,lineWidth:i=80,minContentWidth:s=20,onFold:o,onOverflow:a}={}){let l,u,c;if(!i||i<0)return e;i<s&&(s=0);let f=Math.max(1+s,1+i-t.length);if(e.length<=f)return e;let d=[],p={},h=i-t.length;"number"==typeof r&&(r>i-Math.max(2,s)?d.push(0):h=i-r);let m=!1,g=-1,y=-1,b=-1;for(n===H&&-1!==(g=et(e,g,t.length))&&(h=g+f);c=e[g+=1];){if(n===Q&&"\\"===c){switch(y=g,e[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}b=g}if("\n"===c)n===H&&(g=et(e,g,t.length)),h=g+t.length+f,l=void 0;else{if(" "===c&&u&&" "!==u&&"\n"!==u&&" "!==u){let t=e[g+1];t&&" "!==t&&"\n"!==t&&" "!==t&&(l=g)}if(g>=h)if(l)d.push(l),h=l+f,l=void 0;else if(n===Q){for(;" "===u||" "===u;)u=c,c=e[g+=1],m=!0;let t=g>b+1?g-2:y-1;if(p[t])return e;d.push(t),p[t]=!0,h=t+f,l=void 0}else m=!0}u=c}if(m&&a&&a(),0===d.length)return e;o&&o();let v=e.slice(0,d[0]);for(let r=0;r<d.length;++r){let i=d[r],s=d[r+1]||e.length;0===i?v=`
|
|
2
2
|
${t}${e.slice(0,s)}`:(n===Q&&p[i]&&(v+=`${e[i]}\\`),v+=`
|
|
3
3
|
${t}${e.slice(i+1,s)}`)}return v}function et(e,t,n){let r=t,i=t+1,s=e[i];for(;" "===s||" "===s;)if(t<i+n)s=e[++t];else{do s=e[++t];while(s&&"\n"!==s)r=t,s=e[i=t+1]}return r}let en=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth});function er(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,s=t.indent||(/^(%|---|\.\.\.)/m.test(e)?" ":""),o="",a=0;for(let e=0,t=n[e];t;t=n[++e])if(" "===t&&"\\"===n[e+1]&&"n"===n[e+2]&&(o+=n.slice(a,e)+"\\ ",e+=1,a=e,t="\\"),"\\"===t)switch(n[e+1]){case"u":{o+=n.slice(a,e);let t=n.substr(e+2,4);switch(t){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:"00"===t.substr(0,2)?o+="\\x"+t.substr(2):o+=n.substr(e,6)}e+=5,a=e+1}break;case"n":if(r||'"'===n[e+2]||n.length<i)e+=1;else{for(o+=n.slice(a,e)+"\n\n";"\\"===n[e+2]&&"n"===n[e+3]&&'"'!==n[e+4];)o+="\n",e+=2;o+=s," "===n[e+2]&&(o+="\\"),e+=1,a=e+1}break;default:e+=1}return o=a?o+n.slice(a):n,r?o:ee(o,s,Q,en(t,!1))}function ei(e,t){if(!1===t.options.singleQuote||t.implicitKey&&e.includes("\n")||/[ \t]\n|\n[ \t]/.test(e))return er(e,t);let n=t.indent||(/^(%|---|\.\.\.)/m.test(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
4
4
|
${n}`)+"'";return t.implicitKey?r:ee(r,n,X,en(t,!1))}function es(e,t){let n,{singleQuote:r}=t.options;if(!1===r)n=er;else{let t=e.includes('"'),i=e.includes("'");n=t&&!i?ei:i&&!t?er:r?ei:er}return n(e,t)}try{t=RegExp("(^|(?<!\n))\n+(?!\n|$)","g")}catch{t=/\n+(?!\n|$)/g}function eo({comment:e,type:n,value:r},i,s,o){let a,l,u,c,{blockQuote:f,commentString:d,lineWidth:p}=i.options;if(!f||/\n[\t ]+$/.test(r))return es(r,i);let h=i.indent||(i.forceBlockIndent||(c=r,/^(%|---|\.\.\.)/m.test(c))?" ":""),m="literal"===f||"folded"!==f&&n!==F.BLOCK_FOLDED&&(n===F.BLOCK_LITERAL||!function(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;t<i;++t)if("\n"===e[t]){if(t-n>r)return!0;if(i-(n=t+1)<=r)return!1}return!0}(r,p,h.length));if(!r)return m?"|\n":">\n";for(l=r.length;l>0;--l){let e=r[l-1];if("\n"!==e&&" "!==e&&" "!==e)break}let g=r.substring(l),y=g.indexOf("\n");-1===y?a="-":r===g||y!==g.length-1?(a="+",o&&o()):a="",g&&(r=r.slice(0,-g.length),"\n"===g[g.length-1]&&(g=g.slice(0,-1)),g=g.replace(t,`$&${h}`));let b=!1,v=-1;for(u=0;u<r.length;++u){let e=r[u];if(" "===e)b=!0;else if("\n"===e)v=u;else break}let w=r.substring(0,v<u?v+1:u);w&&(r=r.substring(w.length),w=w.replace(/\n+/g,`$&${h}`));let k=h?"2":"1",_=(b?k:"")+a;if(e&&(_+=" "+d(e.replace(/ ?[\r\n]+/g," ")),s&&s()),!m){let e=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${h}`),t=!1,s=en(i,!0);"folded"!==f&&n!==F.BLOCK_FOLDED&&(s.onOverflow=()=>{t=!0});let o=ee(`${w}${e}${g}`,h,H,s);if(!t)return`>${_}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,46737,e=>{"use strict";var s=e.i(3219),t=e.i(58442),a=e.i(73343),i=e.i(1408),n=e.i(55388),l=e.i(91739);function r(){let e=(0,a.useSearchParams)(),r=(0,i.B)("history"),[d,c]=(0,t.useState)(e.get("op")),[o,h]=(0,t.useState)(null),[m,p]=(0,t.useState)(null);return(0,t.useEffect)(()=>{d&&(h(null),(0,i.k)(`operations/${d}`).then(h).catch(e=>p(e.message)))},[d]),(0,s.jsxs)(s.Fragment,{children:[m&&(0,s.jsx)(l.m,{tone:"bad",children:m}),r.loading&&!r.data?(0,s.jsx)(l.l,{rows:5}):r.data?.length?(0,s.jsx)("div",{className:"panel table-wrap",children:(0,s.jsxs)("table",{className:"data",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{scope:"col",children:"When"}),(0,s.jsx)("th",{scope:"col",children:"Operation"}),(0,s.jsx)("th",{scope:"col",children:"Agent"}),(0,s.jsx)("th",{scope:"col",children:"Source"}),(0,s.jsx)("th",{scope:"col",children:"Destination"}),(0,s.jsx)("th",{scope:"col",children:"Status"})]})}),(0,s.jsx)("tbody",{children:r.data.map(e=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{style:{whiteSpace:"nowrap"},children:(0,l.C)(e.createdAt)}),(0,s.jsx)("td",{children:(0,s.jsx)("button",{className:"link-btn",onClick:()=>c(e.id),children:e.kind})}),(0,s.jsx)("td",{children:e.receiptJson?.agent?.name}),(0,s.jsx)("td",{className:"break",children:e.source}),(0,s.jsx)("td",{className:"break",children:e.destination}),(0,s.jsx)("td",{children:(0,s.jsx)(l.t,{kind:e.status,children:e.status})})]},e.id))})]})}):(0,s.jsx)(l.e,{title:"No operations yet",children:"Every migration, import, export and restore is recorded here with a receipt."}),d&&(0,s.jsxs)("div",{style:{marginTop:24},children:[(0,s.jsxs)("div",{className:"row",style:{justifyContent:"space-between",marginBottom:12},children:[(0,s.jsxs)("h2",{style:{fontSize:"1.3rem"},children:["Receipt ",d]}),(0,s.jsx)("button",{className:"btn btn-quiet btn-sm",onClick:()=>c(null),children:"Close"})]}),o?o.receiptJson?.verification?(0,s.jsx)(n.E,{receipt:o.receiptJson}):(0,s.jsx)("pre",{className:"code",children:JSON.stringify(o.receiptJson,null,2)}):(0,s.jsx)(l.l,{rows:4})]})]})}e.s(["default",0,function(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.r,{title:"Migration history",sub:"What happened, when, and what it changed."}),(0,s.jsx)(t.Suspense,{fallback:(0,s.jsx)(l.l,{rows:5}),children:(0,s.jsx)(r,{})})]})}])},69961,e=>{"use strict";var s=e.i(3219),t=e.i(91739);e.s(["f",0,function({report:e,showEmpty:a=!1}){let i=e.categories.filter(e=>a||"not-applicable"!==e.status);return(0,s.jsx)("div",{className:"table-wrap",children:(0,s.jsxs)("table",{className:"data",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{scope:"col",children:"Category"}),(0,s.jsx)("th",{scope:"col",children:"Status"}),(0,s.jsx)("th",{scope:"col",children:"Items"}),(0,s.jsx)("th",{scope:"col",children:"Why"})]})}),(0,s.jsx)("tbody",{children:i.map(e=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:e.label}),(0,s.jsx)("td",{children:(0,s.jsx)(t.t,{kind:e.status,children:e.statusLabel})}),(0,s.jsx)("td",{children:e.items||""}),(0,s.jsx)("td",{className:"why",children:e.explanation})]},e.category))})]})})}])},55388,e=>{"use strict";var s=e.i(3219),t=e.i(37870),a=e.i(73343),i=e.i(58442);e.i(21229);var n=e.i(33892),l=e.i(73906),r=e.i(1408),d=e.i(69961),c=e.i(25503),o=e.i(91739);let h=["Source","Locate","Agent","Destination","Compatibility","Changes","Conflicts","Approve","Execute","Results"],m=[{id:"merge",title:"Merge",text:"Keep everything already at the destination and add what is missing. Differences are reported, not overwritten."},{id:"copy",title:"Copy",text:"Create a separate agent next to the existing ones. Nothing existing is modified."},{id:"replace",title:"Replace",text:"Overwrite the agent's configuration at the destination. Content Nomad did not write needs your explicit approval."}],p={create:{label:"new",kind:"ok"},update:{label:"modified",kind:"warn"},"keep-existing":{label:"kept",kind:"info"},unchanged:{label:"same",kind:"neutral"}};function x({receipt:e}){let[a,n]=(0,i.useState)(!1),[l,d]=(0,i.useState)(null),[c,h]=(0,i.useState)(null),m="success"===e.status,p=async()=>{n(!0),h(null);try{let s=await (0,r.k)(`backups/${e.backupId}/restore`,{body:{}});d(`Restored ${s.preview.changes} file(s). The state before the restore is kept in backup ${s.safetyBackup}.`)}catch(e){h(e.message)}finally{n(!1)}};return(0,s.jsxs)("section",{className:"stack",children:[(0,s.jsx)(o.m,{tone:m?"ok":"bad",title:m?"Migration complete and verified":"verification-failed"===e.status?"Files were written, but verification found problems":"The migration failed and every change was rolled back",children:e.error??`${e.agent.name} is now in ${e.destination.adapter} at ${e.destination.root}.`}),(0,s.jsxs)("div",{className:"grid-2",children:[(0,s.jsxs)("div",{className:"panel",children:[(0,s.jsx)("div",{className:"panel-head",children:(0,s.jsx)("h3",{children:"Verification"})}),(0,s.jsx)("ul",{className:"panel-body",style:{listStyle:"none",margin:0},children:e.verification.map((e,t)=>(0,s.jsxs)("li",{style:{padding:"6px 0",borderBottom:"1px solid var(--line)"},children:[(0,s.jsx)(o.t,{kind:e.ok?"ok":"bad",children:e.ok?"pass":"fail"})," ",e.name," ",e.detail&&(0,s.jsx)("span",{className:"muted",children:e.detail})]},t))})]}),(0,s.jsxs)("div",{className:"panel",children:[(0,s.jsxs)("div",{className:"panel-head",children:[(0,s.jsx)("h3",{children:"Receipt"}),(0,s.jsx)("code",{style:{fontSize:"0.75rem"},children:e.operationId})]}),(0,s.jsxs)("dl",{className:"kv panel-body",children:[(0,s.jsx)("dt",{children:"Transferred"}),(0,s.jsx)("dd",{children:e.transferred.map(e=>`${e.category} (${e.items})`).join(", ")||"Nothing"}),(0,s.jsx)("dt",{children:"Converted"}),(0,s.jsx)("dd",{children:e.converted.length}),(0,s.jsx)("dt",{children:"Excluded"}),(0,s.jsx)("dd",{children:e.excluded.map(e=>e.item).join(", ")||"Nothing"}),(0,s.jsx)("dt",{children:"Files written"}),(0,s.jsx)("dd",{children:e.files.filter(e=>"create"===e.action||"update"===e.action).length}),(0,s.jsx)("dt",{children:"Paused routines"}),(0,s.jsx)("dd",{children:e.disabledRoutines.join(", ")||"None"})]})]})]}),e.manualSteps.length>0&&(0,s.jsxs)("div",{className:"panel panel-body",children:[(0,s.jsx)("h3",{style:{marginBottom:8},children:"Finish the setup"}),(0,s.jsx)("ol",{style:{margin:0,paddingLeft:20},children:e.manualSteps.map((e,t)=>(0,s.jsx)("li",{children:e},t))})]}),e.warnings.length>0&&(0,s.jsxs)("details",{className:"diff",children:[(0,s.jsxs)("summary",{children:[e.warnings.length," warning(s)"]}),(0,s.jsx)("ul",{children:e.warnings.map((e,t)=>(0,s.jsx)("li",{children:e},t))})]}),l&&(0,s.jsx)(o.m,{tone:"ok",children:l}),c&&(0,s.jsx)(o.m,{tone:"bad",children:c}),(0,s.jsxs)("div",{className:"row",children:[(0,s.jsx)(t.default,{href:`/app/agents/view?id=${e.agent.id}`,className:"btn",children:"Open the agent"}),e.backupId&&!l&&"failed-rolled-back"!==e.status&&(0,s.jsx)("button",{className:"btn btn-quiet",disabled:a,onClick:p,children:a?"Restoring...":"Undo: restore the previous state"}),(0,s.jsx)("a",{href:"/app/migrate",className:"btn btn-quiet",children:"Start another"})]})]})}e.s(["g",0,function(){let e=(0,a.useSearchParams)(),t=(0,r.B)("adapters"),u=(0,r.B)("scan"),j=(0,r.B)("agents"),[g,f]=(0,i.useState)(0),[b,y]=(0,i.useState)(0),[v,k]=(0,i.useState)("platform"),[N,w]=(0,i.useState)("openclaw"),[S,C]=(0,i.useState)(""),[E,D]=(0,i.useState)(null),[R,B]=(0,i.useState)(""),[I,A]=(0,i.useState)(null),[T,$]=(0,i.useState)(""),[z,L]=(0,i.useState)(""),[P,q]=(0,i.useState)("claude-code"),[M,U]=(0,i.useState)(""),[O,F]=(0,i.useState)("merge"),[G,W]=(0,i.useState)(""),[J,K]=(0,i.useState)(new Set(n.R)),[V,Y]=(0,i.useState)(null),[H,Q]=(0,i.useState)({replace:!1,overwriteModified:!1,broaderPermissions:!1,runCommands:!1}),[X,Z]=(0,i.useState)(!1),[_,ee]=(0,i.useState)(null),[es,et]=(0,i.useState)(!1),[ea,ei]=(0,i.useState)(null);(0,i.useEffect)(()=>{let s=e.get("agent");s&&(k("library"),$(s),f(3),y(3))},[e]);let en=e=>t.data?.find(s=>s.id===e),el=(0,i.useMemo)(()=>(t.data??[]).filter(e=>"GUIDED"!==e.support),[t.data]);(0,i.useEffect)(()=>{let e=en(N);e&&!S&&C(e.defaultLocations[0]??"")},[N,t.data]),(0,i.useEffect)(()=>{let e=en(P);e&&(U(e.defaultLocations[0]??("GUIDED"===e.support?`~/nomad-kits/${e.id}`:"")),e.multiAgent||"copy"!==O||"GUIDED"===e.support||F("merge"))},[P,t.data]);let er=()=>{Y(null),ee(null),Z(!1),Q({replace:!1,overwriteModified:!1,broaderPermissions:!1,runCommands:!1}),y(e=>Math.min(e,3))},ed=e=>{ei(null),f(e),y(s=>Math.max(s,e)),window.scrollTo({top:0})},ec=async()=>{et(!0),ei(null),D(null);try{let e=await (0,r.k)(`discover?adapter=${encodeURIComponent(N)}&root=${encodeURIComponent(S)}`);D(e.agents),e.agents.length&&B(e.agents[0].nativeId),e.detection.detected?ed(2):ei({message:`${en(N)?.displayName} was not detected in that folder.`,hint:"Check the path, or pick another platform."})}catch(e){ei({message:e.message,hint:e.hint})}finally{et(!1)}},eo=async e=>{et(!0),ei(null);try{let s=await (0,r.k)("plan",{body:{source:"platform"===v?{kind:"location",adapter:N,root:S,nativeId:R}:"package"===v?{kind:"package",path:I?.path}:{kind:"stored",agentId:T,version:z||void 0},destination:{adapter:P,root:M},mode:e??O,targetName:G||void 0,components:[...J]}});e&&F(e),Y(s),Q({replace:!1,overwriteModified:!1,broaderPermissions:!1,runCommands:!1}),Z(!1),ed(e?6:4)}catch(e){ei({message:e.message,hint:e.hint})}finally{et(!1)}},eh=async()=>{ed(8),et(!0);try{let e=await (0,r.k)("execute",{body:{planId:V.id,token:V.token,approvals:H}});ee(e),ed(9)}catch(e){ei({message:e.message,hint:e.hint}),f(7)}finally{et(!1)}},em=V?V.approvalsRequired.filter(e=>"replace"===e&&!H.replace||"overwrite-modified"===e&&!H.overwriteModified||"broader-permissions"===e&&!H.broaderPermissions||"run-commands"===e&&!H.runCommands):[],ep={0:!0,1:"platform"===v?!!S&&!!N:"package"===v?!!I?.ok:!!T,2:"platform"!==v||!!R,3:!!P&&!!M&&J.size>0,4:!!V,5:!!V,6:!!V&&0===em.length,7:!!V&&X&&!V.blocked.length&&0===em.length},ex=en(P),eu=g>=8;return(0,s.jsxs)("div",{children:[(0,s.jsx)("ol",{className:"stepper","aria-label":"Migration steps",children:h.map((e,t)=>(0,s.jsx)("li",{className:t===g?"current":t<g||t<=b?"done":"",children:(0,s.jsxs)("button",{disabled:eu||t>b||t>=4&&!V,onClick:()=>ed(t),"aria-current":t===g?"step":void 0,children:[String(t+1).padStart(2,"0")," ",e]})},e))}),ea&&(0,s.jsx)("div",{style:{marginBottom:16},children:(0,s.jsx)(o.m,{tone:"bad",title:ea.message,children:ea.hint})}),0===g&&(0,s.jsxs)("section",{className:"stack",children:[(0,s.jsx)("h2",{style:{fontSize:"1.4rem"},children:"Where does the agent live now?"}),(0,s.jsx)("div",{className:"choice-list",children:[{id:"platform",title:"On a platform on this machine",text:"OpenClaw, Claude Code, Codex, Hermes, Cursor and other supported tools."},{id:"package",title:"In a .nomad file",text:"A package exported by Nomad, from this machine or another one."},{id:"library",title:"In my Nomad library",text:"An agent Nomad has already read, including earlier versions."}].map(e=>(0,s.jsxs)("label",{className:"choice",children:[(0,s.jsx)("input",{type:"radio",name:"source",checked:v===e.id,onChange:()=>{k(e.id),er()}}),(0,s.jsxs)("span",{children:[(0,s.jsx)("strong",{children:e.title}),(0,s.jsx)("small",{children:e.text})]})]},e.id))})]}),1===g&&"platform"===v&&(0,s.jsxs)("section",{className:"stack",children:[(0,s.jsx)("h2",{style:{fontSize:"1.4rem"},children:"Find the platform"}),u.loading&&!u.data?(0,s.jsx)(o.l,{rows:2}):u.data?.length?(0,s.jsx)("div",{className:"choice-list",children:u.data.map(e=>(0,s.jsx)("button",{className:"choice","aria-pressed":N===e.adapter&&S===e.root,onClick:()=>{w(e.adapter),C(e.root),er()},children:(0,s.jsxs)("span",{children:[(0,s.jsx)("strong",{children:e.displayName}),(0,s.jsxs)("small",{children:[e.root,", ",e.agents.length," agent(s)"]})]})},`${e.adapter}${e.root}`))}):(0,s.jsx)("p",{className:"muted",children:"No platforms were found at their default locations. Enter one below."}),(0,s.jsxs)("div",{className:"grid-form",children:[(0,s.jsxs)("label",{className:"field",children:[(0,s.jsx)("span",{children:"Platform"}),(0,s.jsx)("select",{className:"select",value:N,onChange:e=>{w(e.target.value),C(""),er()},children:el.map(e=>(0,s.jsx)("option",{value:e.id,children:e.displayName},e.id))})]}),(0,s.jsxs)("label",{className:"field",children:[(0,s.jsx)("span",{children:"Folder"}),(0,s.jsx)("input",{className:"input",value:S,placeholder:en(N)?.defaultLocations[0]??"/path/to/project",onChange:e=>{C(e.target.value),er()}})]})]})]}),1===g&&"package"===v&&(0,s.jsxs)("section",{className:"stack",children:[(0,s.jsx)("h2",{style:{fontSize:"1.4rem"},children:"Upload the package"}),(0,s.jsx)(c.f,{onDone:e=>{A(e),er()}}),I?.ok&&(0,s.jsxs)(o.m,{tone:"ok",title:`${I.name} is valid`,children:[I.counts.instructions," instruction section(s), ",I.counts.memory," memory entries, ",I.counts.skills," skill(s), ",I.counts.tools," tool(s), ",I.counts.workflows," routine(s)."]})]}),1===g&&"library"===v&&(0,s.jsxs)("section",{className:"stack",children:[(0,s.jsx)("h2",{style:{fontSize:"1.4rem"},children:"Choose an agent from your library"}),j.loading&&!j.data?(0,s.jsx)(o.l,{rows:3}):j.data?.length?(0,s.jsx)("div",{className:"choice-list",children:j.data.map(e=>(0,s.jsxs)("label",{className:"choice",children:[(0,s.jsx)("input",{type:"radio",name:"lib",checked:T===e.id,onChange:()=>{$(e.id),L(""),er()}}),(0,s.jsxs)("span",{children:[(0,s.jsx)("strong",{children:e.name}),(0,s.jsxs)("small",{children:["v",e.currentVersion," from ",e.sourcePlatform,", ",e.skills," skill(s), ",e.memoryEntries," memory entries"]})]})]},e.id))}):(0,s.jsx)(o.e,{title:"Your library is empty",children:"Add an agent from the Overview page or import a package first."})]}),2===g&&(0,s.jsxs)("section",{className:"stack",children:[(0,s.jsx)("h2",{style:{fontSize:"1.4rem"},children:"Which agent?"}),"platform"===v&&(E?.length?(0,s.jsx)("div",{className:"choice-list",children:E.map(e=>(0,s.jsxs)("label",{className:"choice",children:[(0,s.jsx)("input",{type:"radio",name:"agent",checked:R===e.nativeId,onChange:()=>{B(e.nativeId),er()}}),(0,s.jsxs)("span",{children:[(0,s.jsx)("strong",{children:e.name}),(0,s.jsxs)("small",{children:[e.kind,e.description?`, ${e.description}`:""]})]})]},e.nativeId))}):(0,s.jsx)(o.e,{title:"No agents found in that folder"})),"package"===v&&I&&(0,s.jsxs)(o.m,{title:I.name,children:["Agent id ",I.id,". The package holds one agent."]}),"library"===v&&(0,s.jsxs)("div",{className:"grid-form",children:[(0,s.jsx)(o.m,{title:j.data?.find(e=>e.id===T)?.name??T,children:"The latest version is used unless you pick another one."}),(0,s.jsxs)("label",{className:"field",children:[(0,s.jsx)("span",{children:"Version"}),(0,s.jsx)("input",{className:"input",type:"number",min:1,placeholder:"Latest",value:z,onChange:e=>{L(e.target.value?Number(e.target.value):""),er()}})]})]})]}),3===g&&(0,s.jsxs)("section",{className:"stack",children:[(0,s.jsx)("h2",{style:{fontSize:"1.4rem"},children:"Where should it go?"}),(0,s.jsxs)("div",{className:"grid-form",children:[(0,s.jsxs)("label",{className:"field",children:[(0,s.jsx)("span",{children:"Platform"}),(0,s.jsxs)("select",{className:"select",value:P,onChange:e=>{q(e.target.value),er()},children:[(0,s.jsx)("optgroup",{label:"Direct",children:(t.data??[]).filter(e=>"GUIDED"!==e.support).map(e=>(0,s.jsxs)("option",{value:e.id,children:[e.displayName," (",e.support.toLowerCase(),")"]},e.id))}),(0,s.jsx)("optgroup",{label:"Guided (writes a setup kit)",children:(t.data??[]).filter(e=>"GUIDED"===e.support).map(e=>(0,s.jsx)("option",{value:e.id,children:e.displayName},e.id))})]})]}),(0,s.jsxs)("label",{className:"field",children:[(0,s.jsx)("span",{children:ex?.support==="GUIDED"?"Folder for the kit":"Folder"}),(0,s.jsx)("input",{className:"input",value:M,placeholder:"/path/to/project",onChange:e=>{U(e.target.value),er()}})]})]}),ex&&(0,s.jsxs)("p",{className:"muted",style:{fontSize:"0.9rem"},children:[(0,s.jsx)(o.t,{kind:ex.support,children:ex.support.toLowerCase()})," ",ex.description]}),(0,s.jsxs)("fieldset",{style:{border:0,padding:0,margin:0},children:[(0,s.jsx)("legend",{className:"label",style:{marginBottom:8},children:"If something already exists there"}),(0,s.jsx)("div",{className:"choice-list",children:m.map(e=>{let t="copy"===e.id&&ex&&!ex.multiAgent&&"GUIDED"!==ex.support;return(0,s.jsxs)("label",{className:"choice",style:t?{opacity:.5,cursor:"not-allowed"}:void 0,children:[(0,s.jsx)("input",{type:"radio",name:"mode",disabled:!!t,checked:O===e.id,onChange:()=>{F(e.id),er()}}),(0,s.jsxs)("span",{children:[(0,s.jsx)("strong",{children:e.title}),(0,s.jsx)("small",{children:t?`${ex.displayName} holds one agent per folder, so copy is not available.`:e.text})]})]},e.id)})})]}),"copy"===O&&(0,s.jsxs)("label",{className:"field",style:{maxWidth:360},children:[(0,s.jsx)("span",{children:"Name of the new agent"}),(0,s.jsx)("input",{className:"input",value:G,placeholder:"Defaults to the agent's name",onChange:e=>{W(e.target.value),er()}})]}),(0,s.jsxs)("fieldset",{style:{border:0,padding:0,margin:0},children:[(0,s.jsx)("legend",{className:"label",style:{marginBottom:4},children:"What to transfer"}),(0,s.jsx)("div",{className:"grid-form",style:{gap:0},children:n.R.filter(e=>"identity"!==e).map(e=>(0,s.jsxs)("label",{className:"check",children:[(0,s.jsx)("input",{type:"checkbox",checked:J.has(e),onChange:s=>{let t=new Set(J);s.target.checked?t.add(e):t.delete(e),t.add("identity"),K(t),er()}}),(0,s.jsx)("span",{children:l.A[e]})]},e))})]})]}),4===g&&V&&(0,s.jsxs)("section",{className:"stack",children:[(0,s.jsxs)("div",{className:"row",style:{justifyContent:"space-between"},children:[(0,s.jsxs)("h2",{style:{fontSize:"1.4rem"},children:[V.agent.name," to ",V.destination.displayName]}),(0,s.jsxs)("span",{className:"score",children:[(0,s.jsx)("b",{children:V.compatibility.score??"n/a"}),(0,s.jsx)("span",{className:"muted",children:"/100"})]})]}),(0,s.jsx)("p",{className:"muted",style:{fontSize:"0.88rem"},children:V.compatibility.scoreExplanation}),V.compatibility.attention.length>0&&(0,s.jsx)(o.m,{tone:"warn",title:"Needs attention",children:(0,s.jsx)("ul",{style:{margin:0,paddingLeft:18},children:V.compatibility.attention.map(e=>(0,s.jsx)("li",{children:e},e))})}),(0,s.jsx)("div",{className:"panel",children:(0,s.jsx)(d.f,{report:V.compatibility})})]}),5===g&&V&&(0,s.jsxs)("section",{className:"stack",children:[(0,s.jsx)("h2",{style:{fontSize:"1.4rem"},children:"What will change"}),(0,s.jsxs)("div",{className:"stat-line",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"label",children:"New files"}),(0,s.jsx)("b",{children:V.summary.create})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"label",children:"Modified"}),(0,s.jsx)("b",{children:V.summary.update})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"label",children:"Kept as is"}),(0,s.jsx)("b",{children:V.summary.kept})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"label",children:"Unchanged"}),(0,s.jsx)("b",{children:V.summary.unchanged})]})]}),(0,s.jsx)("div",{className:"panel",children:V.operations.map(e=>(0,s.jsxs)("div",{style:{padding:"12px 18px",borderBottom:"1px solid var(--line)"},children:[(0,s.jsxs)("div",{className:"row",style:{gap:10},children:[(0,s.jsx)(o.t,{kind:p[e.action]?.kind??"neutral",children:p[e.action]?.label??e.action}),(0,s.jsx)("code",{className:"break",style:{fontSize:"0.82rem"},children:e.path})]}),(0,s.jsx)("p",{className:"muted",style:{fontSize:"0.88rem",marginTop:4},children:e.description}),e.error&&(0,s.jsx)("p",{style:{color:"var(--bad)"},children:e.error}),e.diff&&(0,s.jsxs)("details",{className:"diff",children:[(0,s.jsx)("summary",{children:"Show diff"}),(0,s.jsx)(o.W,{text:e.diff})]})]},e.path))}),V.conversions.length>0&&(0,s.jsxs)("div",{className:"panel panel-body",children:[(0,s.jsx)("h3",{style:{marginBottom:8},children:"Converted"}),(0,s.jsx)("ul",{style:{margin:0,paddingLeft:18},children:V.conversions.map((e,t)=>(0,s.jsxs)("li",{children:[l.A[e.category],": ",e.item,", ",e.from," to ",e.to]},t))})]}),V.unsupported.length>0&&(0,s.jsxs)("div",{className:"panel panel-body",children:[(0,s.jsx)("h3",{style:{marginBottom:8},children:"Cannot be transferred"}),(0,s.jsx)("ul",{style:{margin:0,paddingLeft:18},children:V.unsupported.map((e,t)=>(0,s.jsxs)("li",{children:[(0,s.jsx)("strong",{children:e.item})," (",l.A[e.category],"): ",e.reason," ",e.alternative&&(0,s.jsx)("span",{className:"muted",children:e.alternative})]},t))})]}),(V.secrets.findings>0||V.secrets.strippedEnv.length>0)&&(0,s.jsxs)(o.m,{tone:"warn",title:"Secrets",children:[V.secrets.findings," secret(s) detected in the agent and redacted. ",V.secrets.strippedEnv.length?`Credentials to reconnect: ${V.secrets.strippedEnv.join(", ")}.`:""]}),V.disabledRoutines.length>0&&(0,s.jsxs)(o.m,{title:"Routines are imported paused",children:[V.disabledRoutines.join(", "),". Enable them at the destination after reviewing them."]}),V.manualSteps.length>0&&(0,s.jsxs)("div",{className:"panel panel-body",children:[(0,s.jsx)("h3",{style:{marginBottom:8},children:"Steps after migration"}),(0,s.jsx)("ol",{style:{margin:0,paddingLeft:20},children:V.manualSteps.map((e,t)=>(0,s.jsx)("li",{children:e},t))})]})]}),6===g&&V&&(0,s.jsxs)("section",{className:"stack",children:[(0,s.jsx)("h2",{style:{fontSize:"1.4rem"},children:"Conflicts and permissions"}),0===V.conflicts.length&&0===V.permissions.widened.length&&0===V.permissions.unenforced.length&&0===V.approvalsRequired.length?(0,s.jsx)(o.m,{tone:"ok",title:"No conflicts",children:"Nothing at the destination conflicts with this agent, and its permissions stay the same or stricter."}):null,V.conflicts.length>0&&(0,s.jsxs)("div",{className:"panel panel-body",children:[(0,s.jsx)("h3",{style:{marginBottom:8},children:"Existing content"}),(0,s.jsx)("ul",{style:{margin:0,paddingLeft:18},children:V.conflicts.map((e,t)=>(0,s.jsxs)("li",{children:[(0,s.jsx)("code",{className:"break",children:e.path}),": ",e.detail]},t))}),(0,s.jsxs)("div",{className:"row",style:{marginTop:14},children:[(0,s.jsxs)("span",{className:"muted",children:["Current mode: ",V.mode,"."]}),"merge"!==V.mode&&(0,s.jsx)("button",{className:"btn btn-quiet btn-sm",disabled:es,onClick:()=>eo("merge"),children:"Preview with merge"}),"replace"!==V.mode&&(0,s.jsx)("button",{className:"btn btn-quiet btn-sm",disabled:es,onClick:()=>eo("replace"),children:"Preview with replace"}),"copy"!==V.mode&&(ex?.multiAgent||ex?.support==="GUIDED")&&(0,s.jsx)("button",{className:"btn btn-quiet btn-sm",disabled:es,onClick:()=>eo("copy"),children:"Preview as a copy"})]})]}),V.permissions.widened.length>0&&(0,s.jsx)(o.m,{tone:"bad",title:"The destination would allow more than it does now",children:(0,s.jsx)("ul",{style:{margin:0,paddingLeft:18},children:V.permissions.widened.map(e=>(0,s.jsx)("li",{children:e},e))})}),V.permissions.unenforced.length>0&&(0,s.jsx)(o.m,{tone:"warn",title:"Restrictions the destination will not enforce",children:(0,s.jsx)("ul",{style:{margin:0,paddingLeft:18},children:V.permissions.unenforced.map(e=>(0,s.jsx)("li",{children:e},e))})}),V.approvalsRequired.length>0&&(0,s.jsxs)("div",{className:"panel panel-body",children:[(0,s.jsx)("h3",{style:{marginBottom:6},children:"Approvals needed"}),V.approvalsRequired.includes("replace")&&(0,s.jsxs)("label",{className:"check",children:[(0,s.jsx)("input",{type:"checkbox",checked:H.replace,onChange:e=>Q({...H,replace:e.target.checked})}),(0,s.jsx)("span",{children:"Replace content at the destination that Nomad did not write."})]}),V.approvalsRequired.includes("overwrite-modified")&&(0,s.jsxs)("label",{className:"check",children:[(0,s.jsx)("input",{type:"checkbox",checked:H.overwriteModified,onChange:e=>Q({...H,overwriteModified:e.target.checked})}),(0,s.jsx)("span",{children:"Overwrite files that were edited after Nomad wrote them."})]}),V.approvalsRequired.includes("broader-permissions")&&(0,s.jsxs)("label",{className:"check",children:[(0,s.jsx)("input",{type:"checkbox",checked:H.broaderPermissions,onChange:e=>Q({...H,broaderPermissions:e.target.checked})}),(0,s.jsx)("span",{children:"Apply the broader permissions listed above."})]}),V.approvalsRequired.includes("run-commands")&&(0,s.jsxs)("label",{className:"check",children:[(0,s.jsx)("input",{type:"checkbox",checked:H.runCommands,onChange:e=>Q({...H,runCommands:e.target.checked})}),(0,s.jsxs)("span",{children:[V.destination.displayName," will start these commands by itself. I trust where they came from.",V.commands.map(e=>(0,s.jsxs)("span",{style:{display:"block"},children:[(0,s.jsx)("code",{children:e.tool}),": ",(0,s.jsx)("code",{children:e.command}),e.env.length>0&&(0,s.jsxs)("small",{className:"muted",children:[" (with ",e.env.join(", ")," set)"]})]},e.tool))]})]})]})]}),7===g&&V&&(0,s.jsxs)("section",{className:"stack",children:[(0,s.jsx)("h2",{style:{fontSize:"1.4rem"},children:"Approve the migration"}),(0,s.jsx)("div",{className:"panel",children:(0,s.jsxs)("dl",{className:"kv panel-body",children:[(0,s.jsx)("dt",{children:"Agent"}),(0,s.jsx)("dd",{children:V.agent.name}),(0,s.jsx)("dt",{children:"From"}),(0,s.jsx)("dd",{children:V.source.label}),(0,s.jsx)("dt",{children:"To"}),(0,s.jsxs)("dd",{className:"break",children:[V.destination.displayName,", ",V.destination.root]}),(0,s.jsx)("dt",{children:"Mode"}),(0,s.jsx)("dd",{children:V.mode}),(0,s.jsx)("dt",{children:"Files"}),(0,s.jsxs)("dd",{children:[V.summary.create," new, ",V.summary.update," modified, ",V.summary.kept," kept"]}),(0,s.jsx)("dt",{children:"Not transferred"}),(0,s.jsx)("dd",{children:V.unsupported.length?V.unsupported.map(e=>e.item).join(", "):"Nothing"}),(0,s.jsx)("dt",{children:"Backup"}),(0,s.jsx)("dd",{children:"Every affected file is backed up first. You can restore it from the results page or Backups."})]})}),V.blocked.length>0&&(0,s.jsx)(o.m,{tone:"bad",title:"This migration cannot run",children:(0,s.jsx)("ul",{style:{margin:0,paddingLeft:18},children:V.blocked.map(e=>(0,s.jsx)("li",{children:e},e))})}),em.length>0&&(0,s.jsxs)(o.m,{tone:"warn",title:"Approvals missing",children:["Go back to Conflicts to approve: ",em.join(", "),"."]}),(0,s.jsxs)("label",{className:"check",children:[(0,s.jsx)("input",{type:"checkbox",checked:X,onChange:e=>Z(e.target.checked)}),(0,s.jsx)("span",{children:"I reviewed the preview and want Nomad to apply these changes."})]})]}),8===g&&(0,s.jsxs)("section",{className:"stack","aria-live":"polite",children:[(0,s.jsx)("h2",{style:{fontSize:"1.4rem"},children:"Migrating"}),(0,s.jsx)("p",{className:"muted",children:"Backing up, writing files atomically and verifying the result."}),(0,s.jsx)(o.l,{rows:4})]}),9===g&&_&&(0,s.jsx)(x,{receipt:_}),g<8&&(0,s.jsxs)("div",{className:"wizard-foot",children:[(0,s.jsx)("button",{className:"btn btn-quiet",disabled:0===g||es,onClick:()=>ed(g-1),children:"Back"}),1===g&&"platform"===v?(0,s.jsx)("button",{className:"btn",disabled:!ep[1]||es,onClick:ec,children:es?"Looking...":"Find agents"}):3===g?(0,s.jsx)("button",{className:"btn",disabled:!ep[3]||es,onClick:()=>eo(),children:es?"Preparing preview...":"Preview migration"}):7===g?(0,s.jsx)("button",{className:"btn btn-lime",disabled:!ep[7]||es,onClick:eh,children:"Apply migration"}):(0,s.jsx)("button",{className:"btn",disabled:!ep[g]||es,onClick:()=>ed(g+1),children:"Continue"})]})]})},"E",0,x])},25503,e=>{"use strict";var s=e.i(3219),t=e.i(58442),a=e.i(1408),i=e.i(91739);e.s(["f",0,function({onDone:e}){let n=(0,t.useRef)(null),[l,r]=(0,t.useState)(!1),[d,c]=(0,t.useState)(!1),[o,h]=(0,t.useState)(null),[m,p]=(0,t.useState)(null),x=async s=>{if(s){c(!0),h(null),p(null);try{let t=await (0,a.k)("packages",{raw:await s.arrayBuffer()});t.ok||h(t.issues),e(t)}catch(e){p(e.message)}finally{c(!1)}}};return(0,s.jsxs)("div",{className:"stack",children:[(0,s.jsxs)("div",{className:"dropzone","data-active":l,onDragOver:e=>{e.preventDefault(),r(!0)},onDragLeave:()=>r(!1),onDrop:e=>{e.preventDefault(),r(!1),x(e.dataTransfer.files[0])},children:[(0,s.jsx)("p",{style:{fontWeight:600},children:"Drop a .nomad file here"}),(0,s.jsx)("p",{className:"muted",style:{marginTop:4},children:"It is validated before anything is read: structure, integrity hashes and safety checks."}),(0,s.jsx)("button",{className:"btn",style:{marginTop:14},onClick:()=>n.current?.click(),disabled:d,children:d?"Checking...":"Choose a file"}),(0,s.jsx)("input",{ref:n,type:"file",accept:".nomad,.agentpack,.jetpack,.zip",className:"visually-hidden","aria-label":"Choose an agent package",onChange:e=>x(e.target.files?.[0])})]}),d&&(0,s.jsx)(i.l,{rows:2}),m&&(0,s.jsx)(i.m,{tone:"bad",children:m}),o&&(0,s.jsx)(i.m,{tone:"bad",title:"The package was rejected",children:(0,s.jsx)("ul",{style:{margin:0,paddingLeft:18},children:o.map((e,t)=>(0,s.jsxs)("li",{children:[(0,s.jsx)("code",{children:e.path})," ",e.message]},t))})})]})}])},1408,e=>{"use strict";var s=e.i(58442);class t extends Error{hint;status;constructor(e,s,t){super(e),this.hint=s,this.status=t}}async function a(e,s={}){let i,n={"x-nomad":"1"};void 0!==s.raw?(i=s.raw,n["content-type"]="application/octet-stream"):void 0!==s.body&&(i=JSON.stringify(s.body),n["content-type"]="application/json");let l=await fetch(`/api/local/${e}`,{method:s.method??(i?"POST":"GET"),headers:n,body:i,credentials:"same-origin",cache:"no-store"}),r=await l.json().catch(()=>({error:`Request failed (${l.status})`}));if(!l.ok)throw new t(r.error??"Request failed",r.hint,l.status);return r}e.s(["k",0,a,"B",0,function(e){let[t,i]=(0,s.useState)(null),[n,l]=(0,s.useState)(null),[r,d]=(0,s.useState)(!!e),c=(0,s.useCallback)(async()=>{if(e){d(!0),l(null);try{i(await a(e))}catch(e){l(e)}finally{d(!1)}}},[e]);return(0,s.useEffect)(()=>{c()},[c]),{data:t,error:n,loading:r,reload:c,setData:i}}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,31733,e=>{"use strict";var t=e.i(3219),a=e.i(58442),s=e.i(73343);e.i(21229);var n=e.i(33892),l=e.i(73906),r=e.i(1408),i=e.i(91739);function c(){let e=(0,s.useSearchParams)(),c=(0,r.B)("agents"),[d,o]=(0,a.useState)(e.get("agent")??""),[h,u]=(0,a.useState)(""),[m,x]=(0,a.useState)(new Set(n.R)),[p,g]=(0,a.useState)(!1),[j,y]=(0,a.useState)(!1),[f,b]=(0,a.useState)("nomad"),[k,v]=(0,a.useState)(!1),[w,N]=(0,a.useState)(!1),[S,C]=(0,a.useState)(null),[$,T]=(0,a.useState)(null);(0,a.useEffect)(()=>{!d&&c.data?.length&&o(c.data[0].id)},[c.data,d]);let B=async()=>{N(!0),T(null),C(null);try{C(await (0,r.k)("export",{body:{source:{kind:"stored",agentId:d,version:h||void 0},includeFiles:p,includeSecrets:j,components:[...m],format:f,sign:k&&"nomad"===f}}))}catch(e){T(e.message)}finally{N(!1)}};if(c.loading&&!c.data)return(0,t.jsx)(i.l,{rows:4});if(!c.data?.length)return(0,t.jsx)(i.e,{title:"Nothing to export yet",children:"Add an agent to your library first."});let E=c.data.find(e=>e.id===d);return(0,t.jsxs)("div",{className:"stack",style:{maxWidth:760},children:[(0,t.jsxs)("div",{className:"grid-form",children:[(0,t.jsxs)("label",{className:"field",children:[(0,t.jsx)("span",{children:"Agent"}),(0,t.jsx)("select",{className:"select",value:d,onChange:e=>o(e.target.value),children:c.data.map(e=>(0,t.jsx)("option",{value:e.id,children:e.name},e.id))})]}),(0,t.jsxs)("label",{className:"field",children:[(0,t.jsx)("span",{children:"Version"}),(0,t.jsx)("input",{className:"input",type:"number",min:1,max:E?.currentVersion,placeholder:`Latest (v${E?.currentVersion??1})`,value:h,onChange:e=>u(e.target.value?Number(e.target.value):"")})]})]}),(0,t.jsxs)("label",{className:"field",style:{maxWidth:420},children:[(0,t.jsx)("span",{children:"Format"}),(0,t.jsxs)("select",{className:"select",value:f,onChange:e=>b(e.target.value),children:[(0,t.jsx)("option",{value:"nomad",children:".nomad (complete, with integrity hashes)"}),(0,t.jsx)("option",{value:"interchange",children:".jetpack (interchange archive for other tools)"})]})]}),(0,t.jsxs)("fieldset",{style:{border:0,padding:0,margin:0},children:[(0,t.jsx)("legend",{className:"label",children:"Include"}),(0,t.jsx)("div",{className:"grid-form",style:{gap:0},children:n.R.filter(e=>"identity"!==e).map(e=>(0,t.jsxs)("label",{className:"check",children:[(0,t.jsx)("input",{type:"checkbox",checked:m.has(e),onChange:t=>{let a=new Set(m);t.target.checked?a.add(e):a.delete(e),a.add("identity"),x(a)}}),(0,t.jsx)("span",{children:l.A[e]})]},e))})]}),(0,t.jsxs)("label",{className:"check",children:[(0,t.jsx)("input",{type:"checkbox",checked:p,onChange:e=>g(e.target.checked)}),(0,t.jsxs)("span",{children:["Include knowledge and other files",(0,t.jsx)("br",{}),(0,t.jsx)("small",{className:"muted",children:"Only files Nomad already read with the agent."})]})]}),(0,t.jsxs)("label",{className:"check",children:[(0,t.jsx)("input",{type:"checkbox",checked:j,onChange:e=>y(e.target.checked)}),(0,t.jsxs)("span",{children:["Keep secret values",(0,t.jsx)("br",{}),(0,t.jsx)("small",{className:"muted",children:"Not recommended. The library stores agents with secrets already redacted, so this only matters for values that were never detected. Wallet keys and recovery phrases are never kept."})]})]}),"nomad"===f&&(0,t.jsxs)("label",{className:"check",children:[(0,t.jsx)("input",{type:"checkbox",checked:k,onChange:e=>v(e.target.checked)}),(0,t.jsxs)("span",{children:["Sign with your Nomad key",(0,t.jsx)("br",{}),(0,t.jsx)("small",{className:"muted",children:"People you share it with can check it came from you and was not changed. Your key is created the first time."})]})]}),j&&(0,t.jsx)(i.m,{tone:"warn",title:"Share this package carefully",children:"Anyone with the file could read any credential left in it."}),(0,t.jsx)("div",{className:"row",children:(0,t.jsx)("button",{className:"btn",disabled:w||!d,onClick:B,children:w?"Exporting...":"Export package"})}),$&&(0,t.jsx)(i.m,{tone:"bad",children:$}),S&&(0,t.jsxs)(i.m,{tone:"ok",title:`${S.file} is ready`,children:[(S.size/1024).toFixed(1)," KB. ",S.redacted?`${S.redacted} secret value(s) redacted. `:"",S.references?`${S.references} credential(s) kept as references. `:"",S.removedFiles.length?`Left out: ${S.removedFiles.join(", ")}.`:"",S.notIncluded?.length?` Not representable in this format: ${S.notIncluded.join(", ")}.`:"",S.signedBy?` Signed with key ${S.signedBy}.`:"",(0,t.jsx)("div",{className:"row",style:{marginTop:12},children:(0,t.jsx)("a",{className:"btn btn-sm",href:`/api/local/download?file=${encodeURIComponent(S.file)}`,download:!0,children:"Download"})})]})]})}e.s(["default",0,function(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.r,{title:"Export an agent",sub:"Create a portable .nomad file you can keep as a backup, move to another machine or share."}),(0,t.jsx)(a.Suspense,{fallback:(0,t.jsx)(i.l,{rows:4}),children:(0,t.jsx)(c,{})})]})}])},1408,e=>{"use strict";var t=e.i(58442);class a extends Error{hint;status;constructor(e,t,a){super(e),this.hint=t,this.status=a}}async function s(e,t={}){let n,l={"x-nomad":"1"};void 0!==t.raw?(n=t.raw,l["content-type"]="application/octet-stream"):void 0!==t.body&&(n=JSON.stringify(t.body),l["content-type"]="application/json");let r=await fetch(`/api/local/${e}`,{method:t.method??(n?"POST":"GET"),headers:l,body:n,credentials:"same-origin",cache:"no-store"}),i=await r.json().catch(()=>({error:`Request failed (${r.status})`}));if(!r.ok)throw new a(i.error??"Request failed",i.hint,r.status);return i}e.s(["k",0,s,"B",0,function(e){let[a,n]=(0,t.useState)(null),[l,r]=(0,t.useState)(null),[i,c]=(0,t.useState)(!!e),d=(0,t.useCallback)(async()=>{if(e){c(!0),r(null);try{n(await s(e))}catch(e){r(e)}finally{c(!1)}}},[e]);return(0,t.useEffect)(()=>{d()},[d]),{data:a,error:l,loading:i,reload:d,setData:n}}])}]);
|