@agimon-ai/po-cloudflare 0.0.2-alpha.42 → 0.0.2-alpha.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/README.md +1 -1
  2. package/dist/assets/plugins/compositions.json +1 -1
  3. package/dist/assets/plugins/slots/help.ecd4c0f9-CvvGRBCf.js +3 -0
  4. package/dist/{index.edge-CwcYQLj9.js → index.edge-CRBNS-HN.js} +10 -10
  5. package/dist/{server-CDypk2xJ.js → server--sapGR-c.js} +2 -1
  6. package/dist/{server-BQ0I9oeZ.js → server-B9ONEStW.js} +1 -1
  7. package/dist/{server-ChlBgWIn.js → server-BEmJxUF-.js} +1 -1
  8. package/dist/{server-CkMqSsYi.js → server-BInlJ6Ap.js} +1 -1
  9. package/dist/{server-BwtSRROE.js → server-BR1MQ5UN.js} +1 -1
  10. package/dist/{server-DrmY-Chg.js → server-BVHiXTbJ.js} +1 -1
  11. package/dist/{server-D3j7dywQ.js → server-CYIg5Ect.js} +1 -1
  12. package/dist/{server-CA5TuWDo.js → server-CbQO6XjA.js} +1 -1
  13. package/dist/{server-B0PFs3Yl.js → server-Cck0eHUb.js} +1 -1
  14. package/dist/{server-B4f5d7ka.js → server-CrXc356t.js} +1 -1
  15. package/dist/{server-DtCOCPGp.js → server-Cw5vBDgs.js} +1 -1
  16. package/dist/{server-BxzzL3_G.js → server-D0X22UNh.js} +1 -1
  17. package/dist/{server-DuAckacI.js → server-D5S5fi0T.js} +1 -1
  18. package/dist/{server-Bi9VOAOP.js → server-DPlGD31V.js} +1 -1
  19. package/dist/{server-CwlDZ2N-.js → server-gCf6ZoGQ.js} +1 -1
  20. package/dist/{server-BbNo0APc.js → server-tzcRAMHY.js} +1 -1
  21. package/dist/worker.js +49 -49
  22. package/package.json +39 -39
  23. package/dist/assets/plugins/slots/help.894dfb6a-os14i52k.js +0 -3
  24. /package/dist/assets/plugins/slots/{approval.8b3f37d9-D_Iw2VJn.js → approval.293d9a00-D_Iw2VJn.js} +0 -0
  25. /package/dist/assets/plugins/slots/{artifacts.47d00f81-CS9a_zNA.js → artifacts.24567664-CS9a_zNA.js} +0 -0
  26. /package/dist/assets/plugins/slots/{author.a2840b8a-BFa_H5ZE.js → author.0998a880-BFa_H5ZE.js} +0 -0
  27. /package/dist/assets/plugins/slots/{autocompact.9a92993d-B0hGnck7.js → autocompact.dd97d013-B0hGnck7.js} +0 -0
  28. /package/dist/assets/plugins/slots/{browse.6ca724d8-CVRtiGzR.js → browse.4b5f8a0b-CVRtiGzR.js} +0 -0
  29. /package/dist/assets/plugins/slots/{builtin-tools.939bbfff-CJTf-98P.js → builtin-tools.36d7400b-CJTf-98P.js} +0 -0
  30. /package/dist/assets/plugins/slots/{codemode.782e5bb1-BRYQKsyR.js → codemode.8eaee717-BRYQKsyR.js} +0 -0
  31. /package/dist/assets/plugins/slots/{domain.21790b66-02QPrhJk.js → domain.5e95fc37-02QPrhJk.js} +0 -0
  32. /package/dist/assets/plugins/slots/{edit.c7c85129-CETRuGf0.js → edit.385c9aa9-CETRuGf0.js} +0 -0
  33. /package/dist/assets/plugins/slots/{files.bbcef824-DgGX5poR.js → files.daf34ed8-DgGX5poR.js} +0 -0
  34. /package/dist/assets/plugins/slots/{goal.9bbfc551-D67j7FqW.js → goal.77ec9930-D67j7FqW.js} +0 -0
  35. /package/dist/assets/plugins/slots/{grep.3dfd3214-CmhMD_DW.js → grep.02052cdc-CmhMD_DW.js} +0 -0
  36. /package/dist/assets/plugins/slots/{log.33bc7d38-DvprmzHk.js → log.a86eb6d0-DvprmzHk.js} +0 -0
  37. /package/dist/assets/plugins/slots/{mcp.59c68bcb-CcCIF5cJ.js → mcp.974af249-CcCIF5cJ.js} +0 -0
  38. /package/dist/assets/plugins/slots/{plan.4738a609-CqYx6E9R.js → plan.bafb8f68-CqYx6E9R.js} +0 -0
  39. /package/dist/assets/plugins/slots/{profile.ea55f5e1-BDgBh-Su.js → profile.48851a1d-BDgBh-Su.js} +0 -0
  40. /package/dist/assets/plugins/slots/{prompts.9957cc84-Bls5s3m1.js → prompts.723d7748-Bls5s3m1.js} +0 -0
  41. /package/dist/assets/plugins/slots/{read.30a617e7-Bg9NIMAZ.js → read.46bf6536-Bg9NIMAZ.js} +0 -0
  42. /package/dist/assets/plugins/slots/{runner.9f3559b0-_04Fb699.js → runner.53e9bd76-_04Fb699.js} +0 -0
  43. /package/dist/assets/plugins/slots/{sessions.d6812dc8-BaHBIWGm.js → sessions.09d5cdbb-BaHBIWGm.js} +0 -0
  44. /package/dist/assets/plugins/slots/{skill.f506a5ea-MNxJbIRc.js → skill.086701a4-MNxJbIRc.js} +0 -0
  45. /package/dist/assets/plugins/slots/{subagents.138e4469-DNYKN2_3.js → subagents.8f6fa9e8-DNYKN2_3.js} +0 -0
  46. /package/dist/assets/plugins/slots/{vault.01657352-C3YDx6j4.js → vault.ac9935c8-C3YDx6j4.js} +0 -0
  47. /package/dist/assets/plugins/slots/{voice.3b26e7ac-BT788wX1.js → voice.e85ca7f9-BT788wX1.js} +0 -0
package/README.md CHANGED
@@ -203,7 +203,7 @@ plaintext keys nor exception messages from cloud dispatch are logged.
203
203
  ## Session Approval and Code mode
204
204
 
205
205
  Stock session composition includes Approval and Code mode through the existing DO SQLite and
206
- QuickJS ports. Each one-session DO mounts Approval's generated global root before creating its
206
+ QuickJS ports. Each one-session DO mounts Approval's generated host root before creating its
207
207
  session. The queue is host-global within that tenant-isolated DO, not an org-wide or cross-DO
208
208
  aggregate. Other packages contribute portable namespaces with gated members; the verification
209
209
  contributor exists only in the test build, not the stock Worker artifact.
@@ -1 +1 @@
1
- {"global":{"id":"2d52b893f83bec08eb8a2263301b3e922154f916a5be74786237549133dc1ee8","scope":"global","revision":1,"manifestUrl":"/plugins/compositions.json","rawAssetBaseUrl":"/plugins","verifiedAssetBaseUrl":"/plugins","pluginEntries":[["approval.8b3f37d9","/slots/approval.8b3f37d9-D_Iw2VJn.js"],["artifacts.47d00f81","/slots/artifacts.47d00f81-CS9a_zNA.js"],["author.a2840b8a","/slots/author.a2840b8a-BFa_H5ZE.js"],["autocompact.9a92993d","/slots/autocompact.9a92993d-B0hGnck7.js"],["browse.6ca724d8","/slots/browse.6ca724d8-CVRtiGzR.js"],["builtin-tools.939bbfff","/slots/builtin-tools.939bbfff-CJTf-98P.js"],["codemode.782e5bb1","/slots/codemode.782e5bb1-BRYQKsyR.js"],["domain.21790b66","/slots/domain.21790b66-02QPrhJk.js"],["edit.c7c85129","/slots/edit.c7c85129-CETRuGf0.js"],["files.bbcef824","/slots/files.bbcef824-DgGX5poR.js"],["goal.9bbfc551","/slots/goal.9bbfc551-D67j7FqW.js"],["grep.3dfd3214","/slots/grep.3dfd3214-CmhMD_DW.js"],["help.894dfb6a","/slots/help.894dfb6a-os14i52k.js"],["log.33bc7d38","/slots/log.33bc7d38-DvprmzHk.js"],["mcp.59c68bcb","/slots/mcp.59c68bcb-CcCIF5cJ.js"],["plan.4738a609","/slots/plan.4738a609-CqYx6E9R.js"],["profile.ea55f5e1","/slots/profile.ea55f5e1-BDgBh-Su.js"],["prompts.9957cc84","/slots/prompts.9957cc84-Bls5s3m1.js"],["read.30a617e7","/slots/read.30a617e7-Bg9NIMAZ.js"],["runner.9f3559b0","/slots/runner.9f3559b0-_04Fb699.js"],["sessions.d6812dc8","/slots/sessions.d6812dc8-BaHBIWGm.js"],["skill.f506a5ea","/slots/skill.f506a5ea-MNxJbIRc.js"],["subagents.138e4469","/slots/subagents.138e4469-DNYKN2_3.js"],["vault.01657352","/slots/vault.01657352-C3YDx6j4.js"],["voice.3b26e7ac","/slots/voice.3b26e7ac-BT788wX1.js"]],"assetPaths":["/slots/approval.8b3f37d9-D_Iw2VJn.js","/chunks/po-web-runtime-Ka6K4y6i.js","/assets/base-LmdY6uBA.css","/assets/ibm-plex-sans-cyrillic-ext-wght-normal-d45eAU9y.woff2","/assets/ibm-plex-sans-cyrillic-wght-normal-BAAhND-U.woff2","/assets/ibm-plex-sans-greek-wght-normal-CmyJS8uq.woff2","/assets/ibm-plex-sans-vietnamese-wght-normal-Dg1JeJN0.woff2","/assets/ibm-plex-sans-latin-ext-wght-normal-CIII54If.woff2","/assets/ibm-plex-sans-latin-wght-normal-IvpUvPa2.woff2","/assets/jetbrains-mono-cyrillic-ext-wght-normal-EocZY2iu.woff2","/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2","/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2","/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2","/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2","/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2","/slots/artifacts.47d00f81-CS9a_zNA.js","/slots/author.a2840b8a-BFa_H5ZE.js","/slots/autocompact.9a92993d-B0hGnck7.js","/slots/browse.6ca724d8-CVRtiGzR.js","/slots/builtin-tools.939bbfff-CJTf-98P.js","/slots/codemode.782e5bb1-BRYQKsyR.js","/slots/domain.21790b66-02QPrhJk.js","/slots/edit.c7c85129-CETRuGf0.js","/slots/files.bbcef824-DgGX5poR.js","/slots/goal.9bbfc551-D67j7FqW.js","/slots/grep.3dfd3214-CmhMD_DW.js","/slots/help.894dfb6a-os14i52k.js","/slots/log.33bc7d38-DvprmzHk.js","/slots/mcp.59c68bcb-CcCIF5cJ.js","/slots/plan.4738a609-CqYx6E9R.js","/slots/profile.ea55f5e1-BDgBh-Su.js","/slots/prompts.9957cc84-Bls5s3m1.js","/slots/read.30a617e7-Bg9NIMAZ.js","/slots/runner.9f3559b0-_04Fb699.js","/slots/sessions.d6812dc8-BaHBIWGm.js","/slots/skill.f506a5ea-MNxJbIRc.js","/slots/subagents.138e4469-DNYKN2_3.js","/slots/vault.01657352-C3YDx6j4.js","/slots/voice.3b26e7ac-BT788wX1.js","/assets/browserCaptureWorklet-Droj0fW0-Droj0fW0.js","/assets/silero_vad_v6.2.1-SjbCxFXk-SjbCxFXk.onnx","/assets/sileroVadWorker-D894njUe-DjN_BMWf.mjs"],"stylePaths":["/assets/base-LmdY6uBA.css"],"channels":["approval_activity","artifacts","browse_activity","file_edits","runner_runs","subagent_catalog","subagent_runs","author_webmcp","voice_media_wake","voice_ownership"],"plugins":["approval.8b3f37d9","artifacts.47d00f81","author.a2840b8a","autocompact.9a92993d","browse.6ca724d8","builtin-tools.939bbfff","codemode.782e5bb1","domain.21790b66","edit.c7c85129","files.bbcef824","goal.9bbfc551","grep.3dfd3214","help.894dfb6a","log.33bc7d38","mcp.59c68bcb","plan.4738a609","profile.ea55f5e1","prompts.9957cc84","read.30a617e7","runner.9f3559b0","sessions.d6812dc8","skill.f506a5ea","subagents.138e4469","vault.01657352","voice.3b26e7ac"]},"workspace":{"id":"2d52b893f83bec08eb8a2263301b3e922154f916a5be74786237549133dc1ee8","scope":"workspace","revision":1,"manifestUrl":"/plugins/compositions.json","rawAssetBaseUrl":"/plugins","verifiedAssetBaseUrl":"/plugins","pluginEntries":[["approval.8b3f37d9","/slots/approval.8b3f37d9-D_Iw2VJn.js"],["artifacts.47d00f81","/slots/artifacts.47d00f81-CS9a_zNA.js"],["author.a2840b8a","/slots/author.a2840b8a-BFa_H5ZE.js"],["autocompact.9a92993d","/slots/autocompact.9a92993d-B0hGnck7.js"],["browse.6ca724d8","/slots/browse.6ca724d8-CVRtiGzR.js"],["builtin-tools.939bbfff","/slots/builtin-tools.939bbfff-CJTf-98P.js"],["codemode.782e5bb1","/slots/codemode.782e5bb1-BRYQKsyR.js"],["domain.21790b66","/slots/domain.21790b66-02QPrhJk.js"],["edit.c7c85129","/slots/edit.c7c85129-CETRuGf0.js"],["files.bbcef824","/slots/files.bbcef824-DgGX5poR.js"],["goal.9bbfc551","/slots/goal.9bbfc551-D67j7FqW.js"],["grep.3dfd3214","/slots/grep.3dfd3214-CmhMD_DW.js"],["help.894dfb6a","/slots/help.894dfb6a-os14i52k.js"],["log.33bc7d38","/slots/log.33bc7d38-DvprmzHk.js"],["mcp.59c68bcb","/slots/mcp.59c68bcb-CcCIF5cJ.js"],["plan.4738a609","/slots/plan.4738a609-CqYx6E9R.js"],["profile.ea55f5e1","/slots/profile.ea55f5e1-BDgBh-Su.js"],["prompts.9957cc84","/slots/prompts.9957cc84-Bls5s3m1.js"],["read.30a617e7","/slots/read.30a617e7-Bg9NIMAZ.js"],["runner.9f3559b0","/slots/runner.9f3559b0-_04Fb699.js"],["sessions.d6812dc8","/slots/sessions.d6812dc8-BaHBIWGm.js"],["skill.f506a5ea","/slots/skill.f506a5ea-MNxJbIRc.js"],["subagents.138e4469","/slots/subagents.138e4469-DNYKN2_3.js"],["vault.01657352","/slots/vault.01657352-C3YDx6j4.js"],["voice.3b26e7ac","/slots/voice.3b26e7ac-BT788wX1.js"]],"assetPaths":["/slots/approval.8b3f37d9-D_Iw2VJn.js","/chunks/po-web-runtime-Ka6K4y6i.js","/assets/base-LmdY6uBA.css","/assets/ibm-plex-sans-cyrillic-ext-wght-normal-d45eAU9y.woff2","/assets/ibm-plex-sans-cyrillic-wght-normal-BAAhND-U.woff2","/assets/ibm-plex-sans-greek-wght-normal-CmyJS8uq.woff2","/assets/ibm-plex-sans-vietnamese-wght-normal-Dg1JeJN0.woff2","/assets/ibm-plex-sans-latin-ext-wght-normal-CIII54If.woff2","/assets/ibm-plex-sans-latin-wght-normal-IvpUvPa2.woff2","/assets/jetbrains-mono-cyrillic-ext-wght-normal-EocZY2iu.woff2","/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2","/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2","/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2","/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2","/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2","/slots/artifacts.47d00f81-CS9a_zNA.js","/slots/author.a2840b8a-BFa_H5ZE.js","/slots/autocompact.9a92993d-B0hGnck7.js","/slots/browse.6ca724d8-CVRtiGzR.js","/slots/builtin-tools.939bbfff-CJTf-98P.js","/slots/codemode.782e5bb1-BRYQKsyR.js","/slots/domain.21790b66-02QPrhJk.js","/slots/edit.c7c85129-CETRuGf0.js","/slots/files.bbcef824-DgGX5poR.js","/slots/goal.9bbfc551-D67j7FqW.js","/slots/grep.3dfd3214-CmhMD_DW.js","/slots/help.894dfb6a-os14i52k.js","/slots/log.33bc7d38-DvprmzHk.js","/slots/mcp.59c68bcb-CcCIF5cJ.js","/slots/plan.4738a609-CqYx6E9R.js","/slots/profile.ea55f5e1-BDgBh-Su.js","/slots/prompts.9957cc84-Bls5s3m1.js","/slots/read.30a617e7-Bg9NIMAZ.js","/slots/runner.9f3559b0-_04Fb699.js","/slots/sessions.d6812dc8-BaHBIWGm.js","/slots/skill.f506a5ea-MNxJbIRc.js","/slots/subagents.138e4469-DNYKN2_3.js","/slots/vault.01657352-C3YDx6j4.js","/slots/voice.3b26e7ac-BT788wX1.js","/assets/browserCaptureWorklet-Droj0fW0-Droj0fW0.js","/assets/silero_vad_v6.2.1-SjbCxFXk-SjbCxFXk.onnx","/assets/sileroVadWorker-D894njUe-DjN_BMWf.mjs"],"stylePaths":["/assets/base-LmdY6uBA.css"],"channels":["approval_activity","artifacts","browse_activity","file_edits","runner_runs","subagent_catalog","subagent_runs","author_webmcp","voice_media_wake","voice_ownership"],"plugins":["approval.8b3f37d9","artifacts.47d00f81","author.a2840b8a","autocompact.9a92993d","browse.6ca724d8","builtin-tools.939bbfff","codemode.782e5bb1","domain.21790b66","edit.c7c85129","files.bbcef824","goal.9bbfc551","grep.3dfd3214","help.894dfb6a","log.33bc7d38","mcp.59c68bcb","plan.4738a609","profile.ea55f5e1","prompts.9957cc84","read.30a617e7","runner.9f3559b0","sessions.d6812dc8","skill.f506a5ea","subagents.138e4469","vault.01657352","voice.3b26e7ac"]},"session":{"id":"2d52b893f83bec08eb8a2263301b3e922154f916a5be74786237549133dc1ee8","scope":"session","revision":1,"manifestUrl":"/plugins/compositions.json","rawAssetBaseUrl":"/plugins","verifiedAssetBaseUrl":"/plugins","pluginEntries":[["approval.8b3f37d9","/slots/approval.8b3f37d9-D_Iw2VJn.js"],["artifacts.47d00f81","/slots/artifacts.47d00f81-CS9a_zNA.js"],["author.a2840b8a","/slots/author.a2840b8a-BFa_H5ZE.js"],["autocompact.9a92993d","/slots/autocompact.9a92993d-B0hGnck7.js"],["browse.6ca724d8","/slots/browse.6ca724d8-CVRtiGzR.js"],["builtin-tools.939bbfff","/slots/builtin-tools.939bbfff-CJTf-98P.js"],["codemode.782e5bb1","/slots/codemode.782e5bb1-BRYQKsyR.js"],["domain.21790b66","/slots/domain.21790b66-02QPrhJk.js"],["edit.c7c85129","/slots/edit.c7c85129-CETRuGf0.js"],["files.bbcef824","/slots/files.bbcef824-DgGX5poR.js"],["goal.9bbfc551","/slots/goal.9bbfc551-D67j7FqW.js"],["grep.3dfd3214","/slots/grep.3dfd3214-CmhMD_DW.js"],["help.894dfb6a","/slots/help.894dfb6a-os14i52k.js"],["log.33bc7d38","/slots/log.33bc7d38-DvprmzHk.js"],["mcp.59c68bcb","/slots/mcp.59c68bcb-CcCIF5cJ.js"],["plan.4738a609","/slots/plan.4738a609-CqYx6E9R.js"],["profile.ea55f5e1","/slots/profile.ea55f5e1-BDgBh-Su.js"],["prompts.9957cc84","/slots/prompts.9957cc84-Bls5s3m1.js"],["read.30a617e7","/slots/read.30a617e7-Bg9NIMAZ.js"],["runner.9f3559b0","/slots/runner.9f3559b0-_04Fb699.js"],["sessions.d6812dc8","/slots/sessions.d6812dc8-BaHBIWGm.js"],["skill.f506a5ea","/slots/skill.f506a5ea-MNxJbIRc.js"],["subagents.138e4469","/slots/subagents.138e4469-DNYKN2_3.js"],["vault.01657352","/slots/vault.01657352-C3YDx6j4.js"],["voice.3b26e7ac","/slots/voice.3b26e7ac-BT788wX1.js"]],"assetPaths":["/slots/approval.8b3f37d9-D_Iw2VJn.js","/chunks/po-web-runtime-Ka6K4y6i.js","/assets/base-LmdY6uBA.css","/assets/ibm-plex-sans-cyrillic-ext-wght-normal-d45eAU9y.woff2","/assets/ibm-plex-sans-cyrillic-wght-normal-BAAhND-U.woff2","/assets/ibm-plex-sans-greek-wght-normal-CmyJS8uq.woff2","/assets/ibm-plex-sans-vietnamese-wght-normal-Dg1JeJN0.woff2","/assets/ibm-plex-sans-latin-ext-wght-normal-CIII54If.woff2","/assets/ibm-plex-sans-latin-wght-normal-IvpUvPa2.woff2","/assets/jetbrains-mono-cyrillic-ext-wght-normal-EocZY2iu.woff2","/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2","/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2","/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2","/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2","/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2","/slots/artifacts.47d00f81-CS9a_zNA.js","/slots/author.a2840b8a-BFa_H5ZE.js","/slots/autocompact.9a92993d-B0hGnck7.js","/slots/browse.6ca724d8-CVRtiGzR.js","/slots/builtin-tools.939bbfff-CJTf-98P.js","/slots/codemode.782e5bb1-BRYQKsyR.js","/slots/domain.21790b66-02QPrhJk.js","/slots/edit.c7c85129-CETRuGf0.js","/slots/files.bbcef824-DgGX5poR.js","/slots/goal.9bbfc551-D67j7FqW.js","/slots/grep.3dfd3214-CmhMD_DW.js","/slots/help.894dfb6a-os14i52k.js","/slots/log.33bc7d38-DvprmzHk.js","/slots/mcp.59c68bcb-CcCIF5cJ.js","/slots/plan.4738a609-CqYx6E9R.js","/slots/profile.ea55f5e1-BDgBh-Su.js","/slots/prompts.9957cc84-Bls5s3m1.js","/slots/read.30a617e7-Bg9NIMAZ.js","/slots/runner.9f3559b0-_04Fb699.js","/slots/sessions.d6812dc8-BaHBIWGm.js","/slots/skill.f506a5ea-MNxJbIRc.js","/slots/subagents.138e4469-DNYKN2_3.js","/slots/vault.01657352-C3YDx6j4.js","/slots/voice.3b26e7ac-BT788wX1.js","/assets/browserCaptureWorklet-Droj0fW0-Droj0fW0.js","/assets/silero_vad_v6.2.1-SjbCxFXk-SjbCxFXk.onnx","/assets/sileroVadWorker-D894njUe-DjN_BMWf.mjs"],"stylePaths":["/assets/base-LmdY6uBA.css"],"channels":["approval_activity","artifacts","browse_activity","file_edits","runner_runs","subagent_catalog","subagent_runs","author_webmcp","voice_media_wake","voice_ownership"],"plugins":["approval.8b3f37d9","artifacts.47d00f81","author.a2840b8a","autocompact.9a92993d","browse.6ca724d8","builtin-tools.939bbfff","codemode.782e5bb1","domain.21790b66","edit.c7c85129","files.bbcef824","goal.9bbfc551","grep.3dfd3214","help.894dfb6a","log.33bc7d38","mcp.59c68bcb","plan.4738a609","profile.ea55f5e1","prompts.9957cc84","read.30a617e7","runner.9f3559b0","sessions.d6812dc8","skill.f506a5ea","subagents.138e4469","vault.01657352","voice.3b26e7ac"]}}
1
+ {"global":{"id":"ebefe9e89cd9883e81a4af858313db03fc99056028edb5c228d20b3cdb5d82b8","scope":"global","revision":1,"manifestUrl":"/plugins/compositions.json","rawAssetBaseUrl":"/plugins","verifiedAssetBaseUrl":"/plugins","pluginEntries":[["approval.293d9a00","/slots/approval.293d9a00-D_Iw2VJn.js"],["artifacts.24567664","/slots/artifacts.24567664-CS9a_zNA.js"],["author.0998a880","/slots/author.0998a880-BFa_H5ZE.js"],["autocompact.dd97d013","/slots/autocompact.dd97d013-B0hGnck7.js"],["browse.4b5f8a0b","/slots/browse.4b5f8a0b-CVRtiGzR.js"],["builtin-tools.36d7400b","/slots/builtin-tools.36d7400b-CJTf-98P.js"],["codemode.8eaee717","/slots/codemode.8eaee717-BRYQKsyR.js"],["domain.5e95fc37","/slots/domain.5e95fc37-02QPrhJk.js"],["edit.385c9aa9","/slots/edit.385c9aa9-CETRuGf0.js"],["files.daf34ed8","/slots/files.daf34ed8-DgGX5poR.js"],["goal.77ec9930","/slots/goal.77ec9930-D67j7FqW.js"],["grep.02052cdc","/slots/grep.02052cdc-CmhMD_DW.js"],["help.ecd4c0f9","/slots/help.ecd4c0f9-CvvGRBCf.js"],["log.a86eb6d0","/slots/log.a86eb6d0-DvprmzHk.js"],["mcp.974af249","/slots/mcp.974af249-CcCIF5cJ.js"],["plan.bafb8f68","/slots/plan.bafb8f68-CqYx6E9R.js"],["profile.48851a1d","/slots/profile.48851a1d-BDgBh-Su.js"],["prompts.723d7748","/slots/prompts.723d7748-Bls5s3m1.js"],["read.46bf6536","/slots/read.46bf6536-Bg9NIMAZ.js"],["runner.53e9bd76","/slots/runner.53e9bd76-_04Fb699.js"],["sessions.09d5cdbb","/slots/sessions.09d5cdbb-BaHBIWGm.js"],["skill.086701a4","/slots/skill.086701a4-MNxJbIRc.js"],["subagents.8f6fa9e8","/slots/subagents.8f6fa9e8-DNYKN2_3.js"],["vault.ac9935c8","/slots/vault.ac9935c8-C3YDx6j4.js"],["voice.e85ca7f9","/slots/voice.e85ca7f9-BT788wX1.js"]],"assetPaths":["/slots/approval.293d9a00-D_Iw2VJn.js","/chunks/po-web-runtime-Ka6K4y6i.js","/assets/base-LmdY6uBA.css","/assets/ibm-plex-sans-cyrillic-ext-wght-normal-d45eAU9y.woff2","/assets/ibm-plex-sans-cyrillic-wght-normal-BAAhND-U.woff2","/assets/ibm-plex-sans-greek-wght-normal-CmyJS8uq.woff2","/assets/ibm-plex-sans-vietnamese-wght-normal-Dg1JeJN0.woff2","/assets/ibm-plex-sans-latin-ext-wght-normal-CIII54If.woff2","/assets/ibm-plex-sans-latin-wght-normal-IvpUvPa2.woff2","/assets/jetbrains-mono-cyrillic-ext-wght-normal-EocZY2iu.woff2","/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2","/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2","/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2","/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2","/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2","/slots/artifacts.24567664-CS9a_zNA.js","/slots/author.0998a880-BFa_H5ZE.js","/slots/autocompact.dd97d013-B0hGnck7.js","/slots/browse.4b5f8a0b-CVRtiGzR.js","/slots/builtin-tools.36d7400b-CJTf-98P.js","/slots/codemode.8eaee717-BRYQKsyR.js","/slots/domain.5e95fc37-02QPrhJk.js","/slots/edit.385c9aa9-CETRuGf0.js","/slots/files.daf34ed8-DgGX5poR.js","/slots/goal.77ec9930-D67j7FqW.js","/slots/grep.02052cdc-CmhMD_DW.js","/slots/help.ecd4c0f9-CvvGRBCf.js","/slots/log.a86eb6d0-DvprmzHk.js","/slots/mcp.974af249-CcCIF5cJ.js","/slots/plan.bafb8f68-CqYx6E9R.js","/slots/profile.48851a1d-BDgBh-Su.js","/slots/prompts.723d7748-Bls5s3m1.js","/slots/read.46bf6536-Bg9NIMAZ.js","/slots/runner.53e9bd76-_04Fb699.js","/slots/sessions.09d5cdbb-BaHBIWGm.js","/slots/skill.086701a4-MNxJbIRc.js","/slots/subagents.8f6fa9e8-DNYKN2_3.js","/slots/vault.ac9935c8-C3YDx6j4.js","/slots/voice.e85ca7f9-BT788wX1.js","/assets/browserCaptureWorklet-Droj0fW0-Droj0fW0.js","/assets/silero_vad_v6.2.1-SjbCxFXk-SjbCxFXk.onnx","/assets/sileroVadWorker-D894njUe-DjN_BMWf.mjs"],"stylePaths":["/assets/base-LmdY6uBA.css"],"channels":["approval_activity","artifacts","browse_activity","file_edits","runner_runs","subagent_catalog","subagent_runs","author_webmcp","voice_media_wake","voice_ownership"],"plugins":["approval.293d9a00","artifacts.24567664","author.0998a880","autocompact.dd97d013","browse.4b5f8a0b","builtin-tools.36d7400b","codemode.8eaee717","domain.5e95fc37","edit.385c9aa9","files.daf34ed8","goal.77ec9930","grep.02052cdc","help.ecd4c0f9","log.a86eb6d0","mcp.974af249","plan.bafb8f68","profile.48851a1d","prompts.723d7748","read.46bf6536","runner.53e9bd76","sessions.09d5cdbb","skill.086701a4","subagents.8f6fa9e8","vault.ac9935c8","voice.e85ca7f9"]},"workspace":{"id":"ebefe9e89cd9883e81a4af858313db03fc99056028edb5c228d20b3cdb5d82b8","scope":"workspace","revision":1,"manifestUrl":"/plugins/compositions.json","rawAssetBaseUrl":"/plugins","verifiedAssetBaseUrl":"/plugins","pluginEntries":[["approval.293d9a00","/slots/approval.293d9a00-D_Iw2VJn.js"],["artifacts.24567664","/slots/artifacts.24567664-CS9a_zNA.js"],["author.0998a880","/slots/author.0998a880-BFa_H5ZE.js"],["autocompact.dd97d013","/slots/autocompact.dd97d013-B0hGnck7.js"],["browse.4b5f8a0b","/slots/browse.4b5f8a0b-CVRtiGzR.js"],["builtin-tools.36d7400b","/slots/builtin-tools.36d7400b-CJTf-98P.js"],["codemode.8eaee717","/slots/codemode.8eaee717-BRYQKsyR.js"],["domain.5e95fc37","/slots/domain.5e95fc37-02QPrhJk.js"],["edit.385c9aa9","/slots/edit.385c9aa9-CETRuGf0.js"],["files.daf34ed8","/slots/files.daf34ed8-DgGX5poR.js"],["goal.77ec9930","/slots/goal.77ec9930-D67j7FqW.js"],["grep.02052cdc","/slots/grep.02052cdc-CmhMD_DW.js"],["help.ecd4c0f9","/slots/help.ecd4c0f9-CvvGRBCf.js"],["log.a86eb6d0","/slots/log.a86eb6d0-DvprmzHk.js"],["mcp.974af249","/slots/mcp.974af249-CcCIF5cJ.js"],["plan.bafb8f68","/slots/plan.bafb8f68-CqYx6E9R.js"],["profile.48851a1d","/slots/profile.48851a1d-BDgBh-Su.js"],["prompts.723d7748","/slots/prompts.723d7748-Bls5s3m1.js"],["read.46bf6536","/slots/read.46bf6536-Bg9NIMAZ.js"],["runner.53e9bd76","/slots/runner.53e9bd76-_04Fb699.js"],["sessions.09d5cdbb","/slots/sessions.09d5cdbb-BaHBIWGm.js"],["skill.086701a4","/slots/skill.086701a4-MNxJbIRc.js"],["subagents.8f6fa9e8","/slots/subagents.8f6fa9e8-DNYKN2_3.js"],["vault.ac9935c8","/slots/vault.ac9935c8-C3YDx6j4.js"],["voice.e85ca7f9","/slots/voice.e85ca7f9-BT788wX1.js"]],"assetPaths":["/slots/approval.293d9a00-D_Iw2VJn.js","/chunks/po-web-runtime-Ka6K4y6i.js","/assets/base-LmdY6uBA.css","/assets/ibm-plex-sans-cyrillic-ext-wght-normal-d45eAU9y.woff2","/assets/ibm-plex-sans-cyrillic-wght-normal-BAAhND-U.woff2","/assets/ibm-plex-sans-greek-wght-normal-CmyJS8uq.woff2","/assets/ibm-plex-sans-vietnamese-wght-normal-Dg1JeJN0.woff2","/assets/ibm-plex-sans-latin-ext-wght-normal-CIII54If.woff2","/assets/ibm-plex-sans-latin-wght-normal-IvpUvPa2.woff2","/assets/jetbrains-mono-cyrillic-ext-wght-normal-EocZY2iu.woff2","/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2","/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2","/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2","/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2","/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2","/slots/artifacts.24567664-CS9a_zNA.js","/slots/author.0998a880-BFa_H5ZE.js","/slots/autocompact.dd97d013-B0hGnck7.js","/slots/browse.4b5f8a0b-CVRtiGzR.js","/slots/builtin-tools.36d7400b-CJTf-98P.js","/slots/codemode.8eaee717-BRYQKsyR.js","/slots/domain.5e95fc37-02QPrhJk.js","/slots/edit.385c9aa9-CETRuGf0.js","/slots/files.daf34ed8-DgGX5poR.js","/slots/goal.77ec9930-D67j7FqW.js","/slots/grep.02052cdc-CmhMD_DW.js","/slots/help.ecd4c0f9-CvvGRBCf.js","/slots/log.a86eb6d0-DvprmzHk.js","/slots/mcp.974af249-CcCIF5cJ.js","/slots/plan.bafb8f68-CqYx6E9R.js","/slots/profile.48851a1d-BDgBh-Su.js","/slots/prompts.723d7748-Bls5s3m1.js","/slots/read.46bf6536-Bg9NIMAZ.js","/slots/runner.53e9bd76-_04Fb699.js","/slots/sessions.09d5cdbb-BaHBIWGm.js","/slots/skill.086701a4-MNxJbIRc.js","/slots/subagents.8f6fa9e8-DNYKN2_3.js","/slots/vault.ac9935c8-C3YDx6j4.js","/slots/voice.e85ca7f9-BT788wX1.js","/assets/browserCaptureWorklet-Droj0fW0-Droj0fW0.js","/assets/silero_vad_v6.2.1-SjbCxFXk-SjbCxFXk.onnx","/assets/sileroVadWorker-D894njUe-DjN_BMWf.mjs"],"stylePaths":["/assets/base-LmdY6uBA.css"],"channels":["approval_activity","artifacts","browse_activity","file_edits","runner_runs","subagent_catalog","subagent_runs","author_webmcp","voice_media_wake","voice_ownership"],"plugins":["approval.293d9a00","artifacts.24567664","author.0998a880","autocompact.dd97d013","browse.4b5f8a0b","builtin-tools.36d7400b","codemode.8eaee717","domain.5e95fc37","edit.385c9aa9","files.daf34ed8","goal.77ec9930","grep.02052cdc","help.ecd4c0f9","log.a86eb6d0","mcp.974af249","plan.bafb8f68","profile.48851a1d","prompts.723d7748","read.46bf6536","runner.53e9bd76","sessions.09d5cdbb","skill.086701a4","subagents.8f6fa9e8","vault.ac9935c8","voice.e85ca7f9"]},"session":{"id":"ebefe9e89cd9883e81a4af858313db03fc99056028edb5c228d20b3cdb5d82b8","scope":"session","revision":1,"manifestUrl":"/plugins/compositions.json","rawAssetBaseUrl":"/plugins","verifiedAssetBaseUrl":"/plugins","pluginEntries":[["approval.293d9a00","/slots/approval.293d9a00-D_Iw2VJn.js"],["artifacts.24567664","/slots/artifacts.24567664-CS9a_zNA.js"],["author.0998a880","/slots/author.0998a880-BFa_H5ZE.js"],["autocompact.dd97d013","/slots/autocompact.dd97d013-B0hGnck7.js"],["browse.4b5f8a0b","/slots/browse.4b5f8a0b-CVRtiGzR.js"],["builtin-tools.36d7400b","/slots/builtin-tools.36d7400b-CJTf-98P.js"],["codemode.8eaee717","/slots/codemode.8eaee717-BRYQKsyR.js"],["domain.5e95fc37","/slots/domain.5e95fc37-02QPrhJk.js"],["edit.385c9aa9","/slots/edit.385c9aa9-CETRuGf0.js"],["files.daf34ed8","/slots/files.daf34ed8-DgGX5poR.js"],["goal.77ec9930","/slots/goal.77ec9930-D67j7FqW.js"],["grep.02052cdc","/slots/grep.02052cdc-CmhMD_DW.js"],["help.ecd4c0f9","/slots/help.ecd4c0f9-CvvGRBCf.js"],["log.a86eb6d0","/slots/log.a86eb6d0-DvprmzHk.js"],["mcp.974af249","/slots/mcp.974af249-CcCIF5cJ.js"],["plan.bafb8f68","/slots/plan.bafb8f68-CqYx6E9R.js"],["profile.48851a1d","/slots/profile.48851a1d-BDgBh-Su.js"],["prompts.723d7748","/slots/prompts.723d7748-Bls5s3m1.js"],["read.46bf6536","/slots/read.46bf6536-Bg9NIMAZ.js"],["runner.53e9bd76","/slots/runner.53e9bd76-_04Fb699.js"],["sessions.09d5cdbb","/slots/sessions.09d5cdbb-BaHBIWGm.js"],["skill.086701a4","/slots/skill.086701a4-MNxJbIRc.js"],["subagents.8f6fa9e8","/slots/subagents.8f6fa9e8-DNYKN2_3.js"],["vault.ac9935c8","/slots/vault.ac9935c8-C3YDx6j4.js"],["voice.e85ca7f9","/slots/voice.e85ca7f9-BT788wX1.js"]],"assetPaths":["/slots/approval.293d9a00-D_Iw2VJn.js","/chunks/po-web-runtime-Ka6K4y6i.js","/assets/base-LmdY6uBA.css","/assets/ibm-plex-sans-cyrillic-ext-wght-normal-d45eAU9y.woff2","/assets/ibm-plex-sans-cyrillic-wght-normal-BAAhND-U.woff2","/assets/ibm-plex-sans-greek-wght-normal-CmyJS8uq.woff2","/assets/ibm-plex-sans-vietnamese-wght-normal-Dg1JeJN0.woff2","/assets/ibm-plex-sans-latin-ext-wght-normal-CIII54If.woff2","/assets/ibm-plex-sans-latin-wght-normal-IvpUvPa2.woff2","/assets/jetbrains-mono-cyrillic-ext-wght-normal-EocZY2iu.woff2","/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2","/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2","/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2","/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2","/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2","/slots/artifacts.24567664-CS9a_zNA.js","/slots/author.0998a880-BFa_H5ZE.js","/slots/autocompact.dd97d013-B0hGnck7.js","/slots/browse.4b5f8a0b-CVRtiGzR.js","/slots/builtin-tools.36d7400b-CJTf-98P.js","/slots/codemode.8eaee717-BRYQKsyR.js","/slots/domain.5e95fc37-02QPrhJk.js","/slots/edit.385c9aa9-CETRuGf0.js","/slots/files.daf34ed8-DgGX5poR.js","/slots/goal.77ec9930-D67j7FqW.js","/slots/grep.02052cdc-CmhMD_DW.js","/slots/help.ecd4c0f9-CvvGRBCf.js","/slots/log.a86eb6d0-DvprmzHk.js","/slots/mcp.974af249-CcCIF5cJ.js","/slots/plan.bafb8f68-CqYx6E9R.js","/slots/profile.48851a1d-BDgBh-Su.js","/slots/prompts.723d7748-Bls5s3m1.js","/slots/read.46bf6536-Bg9NIMAZ.js","/slots/runner.53e9bd76-_04Fb699.js","/slots/sessions.09d5cdbb-BaHBIWGm.js","/slots/skill.086701a4-MNxJbIRc.js","/slots/subagents.8f6fa9e8-DNYKN2_3.js","/slots/vault.ac9935c8-C3YDx6j4.js","/slots/voice.e85ca7f9-BT788wX1.js","/assets/browserCaptureWorklet-Droj0fW0-Droj0fW0.js","/assets/silero_vad_v6.2.1-SjbCxFXk-SjbCxFXk.onnx","/assets/sileroVadWorker-D894njUe-DjN_BMWf.mjs"],"stylePaths":["/assets/base-LmdY6uBA.css"],"channels":["approval_activity","artifacts","browse_activity","file_edits","runner_runs","subagent_catalog","subagent_runs","author_webmcp","voice_media_wake","voice_ownership"],"plugins":["approval.293d9a00","artifacts.24567664","author.0998a880","autocompact.dd97d013","browse.4b5f8a0b","builtin-tools.36d7400b","codemode.8eaee717","domain.5e95fc37","edit.385c9aa9","files.daf34ed8","goal.77ec9930","grep.02052cdc","help.ecd4c0f9","log.a86eb6d0","mcp.974af249","plan.bafb8f68","profile.48851a1d","prompts.723d7748","read.46bf6536","runner.53e9bd76","sessions.09d5cdbb","skill.086701a4","subagents.8f6fa9e8","vault.ac9935c8","voice.e85ca7f9"]}}
@@ -0,0 +1,3 @@
1
+ import{A as e,Br as t,Cr as n,Fr as r,M as i,Mr as a,N as o,P as s,Qt as c,Rr as l,Sn as u,a as d,d as f,dt as p,fr as m,g as h,h as g,hn as _,j as v,jn as y,jr as b,m as ee,mr as x,n as te,nr as S,nt as C,o as w,on as T,pn as E,s as D,ur as O,v as k,wr as A,xr as j,xt as M,yr as N}from"../chunks/po-web-runtime-Ka6K4y6i.js";var P=x({simulation:{method:`GET`,path:`/simulation`,response:void 0},setSimulation:{method:`PUT`,path:`/simulation`,response:void 0},services:{method:`GET`,path:`/services`,response:void 0},slots:{method:`GET`,path:`/slots`,response:void 0}},{scopes:[`host`,`workspace`,`session`],basePath:`brain`,transport:(e,t)=>te.fetch(e,t),sessionAddress:l}),F=`po/codemode`,I=new Set([`po/server-scope`,`po/server-host`,`po/headless-host`,`po/host-services`,`po/global-services`]);function L(e,t){let n=new Set([...t.values()].flatMap(e=>[e.source,e.target]));return{nodes:[...e.values()].filter(e=>n.has(e.id)).sort((e,t)=>e.id.localeCompare(t.id)),links:[...t.values()].sort((e,t)=>`${e.source}\0${e.target}`.localeCompare(`${t.source}\0${t.target}`))}}function R(e){let t=new Map(e.consumers.flatMap(e=>e.owner.kind===`package`&&e.owner.packageName?[[e.id,{name:e.owner.packageName,origin:e.owner.origin}]]:[])),n=new Map(e.services.map(e=>[e.id,e])),r=e.edges.flatMap(e=>{let r=t.get(e.consumer),i=e.service===null?void 0:n.get(e.service);return r&&i&&!I.has(i.name)?[{plugin:r,service:i}]:[]}),i=new Set(r.filter(e=>e.service.name===F).map(e=>e.plugin.name)),a=new Set(r.filter(e=>i.has(e.plugin.name)).map(e=>e.service.name)),o=new Map,s=new Map;for(let{plugin:e,service:t}of r){if(!t.public&&!a.has(t.name))continue;let n=`service:${t.name}`,r=o.get(n);(!r||t.description&&r.detail.endsWith(`No description.`))&&o.set(n,{id:n,label:t.name,role:a.has(t.name)?`codemode`:`public`,detail:`${t.public?`Public`:`Private`} service${a.has(t.name)?`, callable from code mode`:``}. Provided by ${t.owner.packageName??t.owner.kind}. ${t.description??`No description.`}`});let c=`plugin:${e.name}`;o.set(c,{id:c,label:e.name,role:e.origin===`personal`?`personal`:`plugin`,detail:`Plugin${i.has(e.name)?` that contributes to code mode`:``}.`}),s.set(`${c}\0${n}`,{source:c,target:n,label:`consumes`})}return L(o,s)}function z(e,t,n={}){let r=new Map(Object.values(n).map(e=>[e.slot,e.description])),i=new Map,a=new Map,o=(e,t)=>{let n=`slot:${e}`;return(!i.has(n)||t)&&i.set(n,{id:n,label:e,role:`slot`,detail:`Slot. ${t??r.get(e)??`No description.`}`}),n};for(let n of e){let e=t===`web`?n.web:n.native;if(!e||!n.owner.packageName)continue;let r=`plugin:${n.owner.packageName}`;i.set(r,{id:r,label:n.owner.packageName,role:n.owner.origin===`personal`?`personal`:`plugin`,detail:`Plugin with a ${t} half.`});for(let t of e.slots){let e=o(t.name,t.description);a.set(`${r}\0${e}`,{source:r,target:e,label:`declares`})}for(let t of e.fills){if(t.slot===null)continue;let e=o(t.slot);a.set(`${r}\0${e}`,{source:r,target:e,label:`fills`})}}return L(i,a)}function ne(e,t,n){return t===`backend`?R(e):z(t===`web`?e.clientPackages??e.packages:e.packages,t,n)}function re(e,t){let n=new Set([e]);for(let r of t)r.source===e&&n.add(r.target),r.target===e&&n.add(r.source);return n}function ie(e){return e.map((e,t)=>{let n=12*Math.sqrt(t+.5),r=t*2.399963229728653;return{id:e,x:Math.cos(r)*n,y:Math.sin(r)*n,vx:0,vy:0}})}function B(e,t,n){if(e.length>400)throw Error(`Brain simulation node limit exceeded.`);let r=Math.max(0,Math.min(n,32))/(1e3/60),i=e.map(e=>({...e,vx:e.vx*.8**r,vy:e.vy*.8**r})),a=new Map(e.map((e,t)=>[e.id,t]));for(let t=0;t<e.length;t++)for(let n=t+1;n<e.length;n++){let a=e[t].x-e[n].x||(e[t].y===e[n].y?.5:0),o=e[t].y-e[n].y,s=Math.max(1,Math.hypot(a,o)),c=Math.min(4,1400/s**2)*r;i[t].vx+=a/s*c,i[t].vy+=o/s*c,i[n].vx-=a/s*c,i[n].vy-=o/s*c}for(let n of t){let t=a.get(n.source),o=a.get(n.target);if(t===void 0||o===void 0||t===o)continue;let s=e[o].x-e[t].x,c=e[o].y-e[t].y,l=Math.max(1,Math.hypot(s,c)),u=(l-70)*.01*r;i[t].vx+=s/l*u,i[t].vy+=c/l*u,i[o].vx-=s/l*u,i[o].vy-=c/l*u}for(let e of i)e.vx=Math.max(-8,Math.min(8,e.vx-e.x*.004*r)),e.vy=Math.max(-8,Math.min(8,e.vy-e.y*.004*r)),e.x+=e.vx*r,e.y+=e.vy*r;return i}function ae(e,t,n=300){let r=[...e];for(let e=0;e<n;e++)r=B(r,t,1e3/60);return r}var oe=[{id:`backend`,label:`Backend`},{id:`web`,label:`Web`},{id:`native`,label:`Native`}],V={public:`var(--po-green)`,codemode:`var(--po-blue)`,plugin:`var(--po-text)`,personal:`var(--po-magenta)`,slot:`var(--po-cyan)`},se={public:`Public service`,codemode:`Code-mode service`,plugin:`Plugin`,personal:`Your plugin`,slot:`Slot`},ce={backend:`No public or code-mode services are consumed in this scope yet.`,web:`No web slots or fills are published in this scope yet.`,native:`No native slot metadata yet. Packages publish it on their next build.`},le=12,H=420;function ue(e){if(e.length===0)return{x:-100,y:-100,w:200,h:200};let t=e.map(e=>e.x),n=e.map(e=>e.y),r=Math.max(H,Math.max(...t)-Math.min(...t)+80),i=Math.max(H,Math.max(...n)-Math.min(...n)+80);return{x:(Math.max(...t)+Math.min(...t)-r)/2,y:(Math.max(...n)+Math.min(...n)-i)/2,w:r,h:i}}function U({services:e,state:n=`populated`,initialSelection:r,initialGraph:i=`backend`,simulation:a}){let[o,s]=h(i),[l,u]=h(r),[d,p]=h(),m=ee(()=>{let n=ne(e,o,t),r=new Map;for(let e of n.links)for(let t of[e.source,e.target])r.set(t,(r.get(t)??0)+1);let i=new Set([...n.nodes].sort((e,t)=>(r.get(t.id)??0)-(r.get(e.id)??0)).slice(0,le).map(e=>e.id)),a=n.nodes.length>400,s=ie(n.nodes.map(e=>e.id)),c=a?s:ae(s,n.links);return{...n,degree:r,hubs:i,tooLarge:a,seed:s,settled:c,home:ue(c)}},[o,e]),[_,v]=h(),[y,b]=h(!1),x=a?.enabled===!0;f(()=>{if(!x||n!==`populated`||m.tooLarge){v(void 0);return}let e=window.matchMedia(`(prefers-reduced-motion: reduce)`),t=m.seed,r=0,i=!1,a=()=>{i||(t=B(t,m.links,1e3/60),v({model:m,points:t}),t.some(e=>Math.abs(e.vx)+Math.abs(e.vy)>.02)&&(r=requestAnimationFrame(a)))},o=()=>{cancelAnimationFrame(r),b(e.matches),e.matches?v(void 0):(t=m.seed,r=requestAnimationFrame(a))};return e.addEventListener(`change`,o),o(),()=>{i=!0,cancelAnimationFrame(r),e.removeEventListener(`change`,o)}},[m,x,n]);let te=x&&_?.model===m?_.points:m.settled,S=new Map(te.map(e=>[e.id,e])),[C,T]=h(),E=C?.model===m?C.box:m.home,O=g(null),k=g(void 0),A=(e,t=E.x+E.w/2,n=E.y+E.h/2)=>{let r=Math.min(m.home.w*4,Math.max(m.home.w/12,E.w*e)),i=r/E.w;T({model:m,box:{x:t-(t-E.x)*i,y:n-(n-E.y)*i,w:r,h:E.h*i}})},j=(e,t)=>{let n=O.current?.getScreenCTM()?.inverse();if(!O.current||!n)return{x:E.x+E.w/2,y:E.y+E.h/2};let r=new DOMPoint(e,t).matrixTransform(n);return{x:r.x,y:r.y}},M=n===`populated`&&m.nodes.length>0,N=g(()=>{});N.current=e=>{e.preventDefault();let t=j(e.clientX,e.clientY);A(Math.exp(e.deltaY*.0015),t.x,t.y)},f(()=>{let e=O.current;if(!e)return;let t=e=>N.current(e);return e.addEventListener(`wheel`,t,{passive:!1}),()=>e.removeEventListener(`wheel`,t)},[M]);let P=()=>{k.current=void 0},F=e=>{e.currentTarget.setPointerCapture(e.pointerId),k.current={x:e.clientX,y:e.clientY,box:E}},I=e=>{let t=k.current,n=O.current?.getBoundingClientRect();if(!t||!n?.width)return;let r=Math.max(t.box.w/n.width,t.box.h/n.height);T({model:m,box:{...t.box,x:t.box.x-(e.clientX-t.x)*r,y:t.box.y-(e.clientY-t.y)*r}})},L=m.nodes.some(e=>e.id===l)?l:void 0,R=d??L,z=R?re(R,m.links):void 0,H=m.home.w/E.w,U=E.w*.017,W=new Map(m.nodes.map(e=>[e.id,e])),G=L?W.get(L):void 0,K=G?m.links.filter(e=>e.source===G.id||e.target===G.id).map(e=>({link:e,other:W.get(e.source===G.id?e.target:e.source)})).sort((e,t)=>e.other.label.localeCompare(t.other.label)):[];return D(`section`,{className:`break-words bg-po-bg p-4 font-sans text-base text-po-text`,children:[D(`header`,{className:`mb-4 flex flex-wrap items-center justify-between gap-3`,children:[D(`div`,{children:[w(`h1`,{className:`text-2xl font-semibold text-po-hi`,children:`Brain`}),w(`p`,{className:`text-sm text-po-dim`,children:`What this scope can reach, and which plugins lean on it.`})]}),D(`div`,{className:`flex flex-wrap gap-2`,children:[w(`div`,{className:`flex gap-1 rounded-lg border border-po-border p-1`,role:`group`,"aria-label":`Graph`,children:oe.map(e=>w(c,{size:`xs`,variant:o===e.id?`subtle`:`ghost`,"aria-pressed":o===e.id,onClick:()=>s(e.id),children:e.label},e.id))}),a&&D(c,{size:`xs`,variant:`outline`,"aria-label":`Physics simulation`,"aria-pressed":x,"aria-disabled":a.pending||void 0,"aria-busy":a.pending,className:`aria-disabled:pointer-events-none aria-disabled:opacity-40`,disabled:n!==`populated`||!x&&m.tooLarge,onClick:()=>{a.pending||a.onChange(!x)},children:[`Motion `,x?`on`:`off`]})]})]}),a?.error&&w(`p`,{role:`alert`,className:`mb-3 text-sm text-po-red`,children:a.error}),a&&(m.tooLarge||x&&y)&&w(`p`,{role:`status`,className:`mb-3 text-sm text-po-dim`,children:m.tooLarge?`Layout is paused above 400 nodes.`:`Motion is paused for your reduced-motion preference.`}),n!==`populated`||m.nodes.length===0?w(`p`,{role:n===`error`?`alert`:`status`,className:`py-12 text-po-text`,children:n===`loading`?`Reading the Brain snapshot…`:n===`error`?`The Brain snapshot could not be read. Your session is unchanged.`:ce[o]}):D(`div`,{className:`grid grid-cols-1 gap-4 lg:grid-cols-[minmax(0,1fr)_320px]`,children:[D(`div`,{className:`relative overflow-hidden rounded-lg border border-po-border bg-po-panel`,children:[D(`svg`,{ref:O,viewBox:`${E.x} ${E.y} ${E.w} ${E.h}`,className:`block h-[min(70vh,640px)] w-full cursor-grab touch-none select-none active:cursor-grabbing`,"aria-hidden":`true`,onPointerDown:F,onPointerMove:I,onPointerUp:P,onPointerCancel:P,children:[m.links.map(e=>{let t=S.get(e.source),n=S.get(e.target);if(!t||!n)return null;let r=R!==void 0&&(e.source===R||e.target===R);return w(`line`,{x1:t.x,y1:t.y,x2:n.x,y2:n.y,stroke:r?V[W.get(R).role]:`var(--po-dim)`,strokeDasharray:e.label===`declares`?`4 3`:void 0,strokeOpacity:r?.9:R?.06:.22,strokeWidth:r?1.5:1,vectorEffect:`non-scaling-stroke`},`${e.source}\0${e.target}`)}),m.nodes.map(e=>{let t=S.get(e.id),n=3+Math.sqrt(m.degree.get(e.id)??0)*1.6,r=z?.has(e.id)??!0,i=e.id===R||(z?.has(e.id)??!1)||m.hubs.has(e.id)||H>=2;return D(`g`,{className:`cursor-pointer`,opacity:r?1:.15,onPointerDown:e=>e.stopPropagation(),onPointerEnter:()=>p(e.id),onPointerLeave:()=>p(void 0),onClick:()=>u(e.id),children:[e.id===L&&w(`circle`,{cx:t.x,cy:t.y,r:n+4,fill:`none`,stroke:V[e.role],strokeOpacity:`0.5`,strokeWidth:`2`,vectorEffect:`non-scaling-stroke`}),w(`circle`,{cx:t.x,cy:t.y,r:n,fill:V[e.role]}),i&&w(`text`,{x:t.x,y:t.y+n+U*1.1,textAnchor:`middle`,fontSize:U,className:`fill-po-text`,paintOrder:`stroke`,stroke:`var(--po-panel)`,strokeWidth:U*.25,children:e.label})]},e.id)})]}),D(`div`,{className:`absolute right-2 bottom-2 flex gap-1`,children:[w(c,{size:`xs`,variant:`outline`,"aria-label":`Zoom in`,onClick:()=>A(1/1.4),children:`+`}),w(c,{size:`xs`,variant:`outline`,"aria-label":`Zoom out`,onClick:()=>A(1.4),children:`−`}),w(c,{size:`xs`,variant:`outline`,onClick:()=>T(void 0),children:`Fit`})]}),w(`p`,{className:`pointer-events-none absolute top-2 left-3 flex flex-wrap gap-x-3 text-xs text-po-dim`,children:(o===`backend`?[`public`,`codemode`,`plugin`,`personal`]:[`slot`,`plugin`,`personal`]).map(e=>D(`span`,{className:`flex items-center gap-1`,children:[w(`svg`,{viewBox:`0 0 8 8`,className:`size-2`,"aria-hidden":`true`,children:w(`circle`,{cx:`4`,cy:`4`,r:`4`,fill:V[e]})}),se[e]]},e))})]}),D(`aside`,{className:`flex min-w-0 flex-col gap-3`,"aria-label":`Selection`,children:[G?D(`div`,{className:`rounded-lg border border-po-border p-3`,children:[w(`p`,{className:`text-sm text-po-dim`,children:se[G.role]}),w(`h2`,{className:`break-all font-mono text-base font-semibold text-po-hi`,children:G.label}),w(`p`,{className:`mt-1 text-sm`,children:G.detail}),D(`h3`,{className:`mt-3 text-sm text-po-dim`,children:[`Connected (`,K.length,`)`]}),w(`ul`,{className:`mt-1 max-h-72 overflow-y-auto`,children:K.map(({link:e,other:t})=>w(`li`,{children:D(c,{size:`xs`,variant:`ghost`,className:`h-auto w-full justify-start whitespace-normal break-all py-1 text-left`,onClick:()=>u(t.id),children:[w(`span`,{className:`font-mono`,children:t.label}),w(`span`,{className:`text-po-dim`,children:e.label})]})},t.id))})]}):w(`p`,{className:`rounded-lg border border-dashed border-po-border p-3 text-sm text-po-dim`,children:`Pick a node to see what it connects to. Scroll to zoom, drag to move around.`}),D(`details`,{className:`rounded-lg border border-po-border p-3`,children:[D(`summary`,{className:`cursor-pointer text-sm text-po-dim`,children:[`All nodes (`,m.nodes.length,`)`]}),w(`ul`,{className:`mt-2 max-h-72 overflow-y-auto`,children:m.nodes.map(e=>w(`li`,{children:w(c,{size:`xs`,variant:`ghost`,"aria-pressed":L===e.id,className:`h-auto w-full justify-start whitespace-normal break-all py-1 text-left font-mono`,onClick:()=>u(e.id),children:e.label})},e.id))})]}),o===`backend`&&e.diagnostics.length>0&&D(`details`,{className:`rounded-lg border border-po-border p-3`,children:[D(`summary`,{className:`cursor-pointer text-sm text-po-dim`,children:[`Coverage notes (`,e.diagnostics.length,`)`]}),e.diagnostics.map(e=>w(`p`,{className:`mt-2 text-sm text-po-dim`,children:e},e))]})]})]})]})}var W={scope:{id:`pending`,level:`host`},scopes:[],packages:[],services:[],consumers:[],edges:[],diagnostics:[]};function G({sessionId:e,workspaceId:t}){let n=e?`session:${e}`:t?`workspace:${t}`:`host`,r=!!(e||t),i=ee(()=>e?P.session(e):t?P.workspace(t):P.host,[e,t]),[a,o]=h(0),[s,l]=h(),[u,d]=h(),p=g(void 0);f(()=>{let e=new AbortController;return p.current=e,r?(d({target:n,pending:!0}),i.simulation({signal:e.signal}).then(t=>{if(!e.signal.aborted){if(!t.ok||typeof t.data?.enabled!=`boolean`)throw Error(`Simulation unavailable.`);d({target:n,enabled:t.data.enabled,pending:!1})}}).catch(()=>{e.signal.aborted||d({target:n,pending:!1,error:`Simulation could not be read. Refresh to try again.`})})):d(void 0),l(e=>e?.target===n?{...e,state:`loading`}:void 0),i.services({signal:e.signal}).then(t=>{if(!t.ok)throw Error(`Brain snapshot unavailable.`);e.signal.aborted||l({target:n,services:t.data,state:t.data.services.length+t.data.consumers.length+t.data.packages.length?`populated`:`empty`})}).catch(()=>{e.signal.aborted||l({target:n,services:W,state:`error`})}),()=>{e.abort(),p.current===e&&(p.current=void 0)}},[i,r,n,a]);let m=s?.target===n?s:void 0,_=m?.state??`loading`,v=u?.target===n?u:void 0;async function y(e){let t=p.current;if(r&&t&&!t.signal.aborted&&v&&v.enabled!==void 0&&!v.pending){d({...v,pending:!0,error:void 0});try{let r=await i.setSimulation({body:{enabled:e},signal:t.signal});if(t.signal.aborted)return;if(!r.ok||typeof r.data?.enabled!=`boolean`)throw Error(`Simulation unavailable.`);d({target:n,enabled:r.data.enabled,pending:!1})}catch{t.signal.aborted||d({...v,pending:!1,error:`Simulation could not be changed. Your graph is unchanged.`})}}}return D(`div`,{children:[D(`div`,{className:`flex items-center justify-between gap-3 bg-po-bg px-4 pt-4`,children:[D(`p`,{className:`text-sm text-po-dim`,children:[e?`Session`:t?`Workspace`:`Global`,` snapshot`]}),w(c,{size:`xs`,variant:`outline`,disabled:_===`loading`||v?.pending,onClick:()=>o(e=>e+1),children:`Refresh`})]}),w(U,{services:m?.services??W,state:_,simulation:r?{enabled:v?.enabled??!1,pending:v?.pending!==!1||v.enabled===void 0,error:v?.error,onChange:y}:void 0},n)]})}var K=j({slot:`page`,id:`brain`,component:G}),de=e=>typeof e==`object`&&!!e&&!Array.isArray(e),q=(e,t)=>{if(typeof e!=`string`)return null;let n=e.trim();return n.length>0&&n.length<=t?n:null};function fe(e){if(!de(e)||e.version!==1)return null;let t=q(e.label,80);if(!t||!Array.isArray(e.guides)||e.guides.length>64)return null;let n=[],r=new Set;for(let t of e.guides){if(!de(t))return null;let e=q(t.id,80),i=q(t.question,240),a=q(t.answer,4e3);if(!e||!i||!a||r.has(e)||t.order!==void 0&&(typeof t.order!=`number`||!Number.isFinite(t.order)))return null;let o;if(t.keywords!==void 0){if(!Array.isArray(t.keywords)||t.keywords.length>16)return null;o=[];for(let e of t.keywords){let t=q(e,64);if(!t)return null;o.push(t)}}r.add(e),n.push({id:e,question:i,answer:a,...o===void 0?{}:{keywords:o},...t.order===void 0?{}:{order:t.order}})}return{version:1,label:t,guides:n}}var pe={slot:`help.guides`,description:`Contribute a labelled set of searchable plain-text questions and answers to the Help panel.`,parse:fe};function me(e,t){let n=t.toLowerCase().trim().split(/\s+/).filter(Boolean);return e.flatMap(e=>{let t=e.data.guides.filter(t=>{let r=[e.data.label,t.question,t.answer,...t.keywords??[]].join(` `).toLowerCase();return n.every(e=>r.includes(e))}).sort((e,t)=>(e.order??0)-(t.order??0)||e.question.localeCompare(t.question));return t.length?[{...e,data:{...e.data,guides:t}}]:[]})}function he(e){return w(ge,{fills:e.slotData(pe)},e.sessionId)}function ge({fills:e,initialQuery:t=``,initialExpanded:n}){let[r,i]=h(t),a=me(e,r),o=e.some(e=>e.data.guides.length);return D(`div`,{className:`flex h-full min-h-0 w-full flex-col bg-po-rail text-po-text font-sans`,children:[w(`div`,{className:`border-b border-po-border-soft p-3`,children:w(m,{"aria-label":`Search help`,placeholder:`Search help`,type:`search`,value:r,onChange:e=>i(e.target.value),className:`w-full placeholder:text-po-dim`})}),w(`div`,{className:`min-h-0 flex-1 overflow-y-auto p-3`,children:a.length===0?w(S,{title:o?`No matching guides`:`No help guides yet`,description:o?`Try a different word or a package name.`:`Guides from this session’s plugins will appear here.`}):w(`div`,{className:`flex flex-col gap-5`,children:a.map(e=>D(`section`,{children:[w(`h2`,{className:`mb-1 text-lg font-semibold text-po-hi break-words`,children:e.data.label}),w(k,{type:`single`,collapsible:!0,defaultValue:n?.[0]===e.pluginId&&n[1]===e.id?n[2]:void 0,children:e.data.guides.map(e=>D(_,{value:e.id,children:[w(y,{className:`text-base font-medium leading-relaxed break-words`,children:e.question}),w(M,{className:`whitespace-pre-wrap break-words text-base leading-relaxed text-po-text`,children:e.answer})]},e.id))})]},JSON.stringify([e.pluginId,e.id])))})})]})}var _e=N({id:`help`,label:`Help`,icon:O,order:50,requiredMinorMode:`help`,panel:he});function ve({openTransientTab:e}){return w(c,{variant:`outline`,size:`xs`,"data-testid":`activity-explore-brain`,onClick:()=>e({id:`help-brain-map`,label:`Brain`,panel:G}),children:`Explore`})}var ye=j({slot:`activity-promo`,id:`brain-explore`,component:ve}),be=j({slot:`help.guides`,id:`Help`,order:0,data:{version:1,label:`Help`,guides:[{id:`about`,question:`What does Help mode do?`,order:0,answer:`Help adds package guidance and read-only diagnostics for your setup. It does not change configuration or grant extra permissions.`,keywords:[`setup`,`diagnostics`]},{id:`toggle`,question:`How do I turn Help on or off?`,order:1,answer:`Use the minor-mode menu, or send /minor help. Help is additive: other tools and modes keep their existing rules.`}]}}),xe=n({path:[{key:`h`,label:`help`,detail:`package docs and logs`},{key:`e`,label:`toggle`,detail:`load or hide package Help`}],command:`minor help`}),Se=A({keys:`h e`,icon:O,order:10}),Ce=b(pe),we=new Set([`inactive`,`activating`,`active`,`degraded`]),J=e=>typeof e==`object`&&!!e&&!Array.isArray(e),Y=e=>typeof e==`number`&&Number.isInteger(e)&&e>=0?e:void 0,X=e=>typeof e==`string`&&e.trim()!==``?e.trim():void 0,Z=e=>Array.isArray(e)?e.filter(J):[];function Q(e){return e.split(`
2
+ `).filter(e=>e.trim()!==``)}function Te(e){return Z(e).flatMap(e=>{let t=X(e.name);if(t===void 0)return[];let n=X(e.source),r=X(e.reason);return[{name:t,active:e.active===!0,...n?{source:n}:{},...r?{reason:r}:{}}]})}function Ee(e){let t=X(e.activation);if(t===void 0||!we.has(t))return null;let n=J(e.counts)?e.counts:{},r=Y(n.tools);return{kind:`status`,activation:t,skillCount:Y(n.skills)??null,...r===void 0?{}:{toolCount:r},skills:Te(e.skills),tools:Te(e.tools),diagnostics:Z(e.diagnostics).flatMap(e=>{let t=X(e.code);if(t===void 0)return[];let n=X(e.source);return[{code:t,...n?{source:n}:{}}]}),packages:Z(e.packages).flatMap(e=>{let t=X(e.packageName);if(t===void 0)return[];let n={scope:X(e.scope),stage:X(e.stage),reason:X(e.reason)},r=X(e.previous);return[{packageName:t,...Object.fromEntries(Object.entries(n).filter(([,e])=>e!==void 0)),...r&&r!==`none`?{previous:r}:{}}]}),truncated:e.truncated===!0}}function De(e){let t=X(e.status);if(t!==`checks-passed`&&t!==`issues-found`)return null;let n=J(e.appliedSelection)?e.appliedSelection:{},r=X(n.majorMode),i=X(n.profile),a=X(e.limitations);return{kind:`setup`,passed:t===`checks-passed`,...r?{majorMode:r}:{},domains:Array.isArray(n.domains)?n.domains.flatMap(e=>X(e)??[]):[],...i?{profile:i}:{},checks:Z(e.checks).flatMap(e=>{let t=X(e.area);if(t===void 0)return[];let n=Y(e.problemCount),r=X(e.guidance);return[{area:t,passed:e.status===`passed`,...n===void 0?{}:{problemCount:n},...r?{guidance:r}:{}}]}),skipped:Array.isArray(e.skipped)?e.skipped.flatMap(e=>X(e)??[]):[],...a?{limitations:a}:{}}}function Oe(e){let t;try{t=JSON.parse(e)}catch{return{kind:`text`,lines:Q(e)}}if(J(t)){let e=Ee(t)??De(t);if(e!==null)return e}return{kind:`text`,lines:Q(e)}}var ke=(e,t)=>`${String(e)} ${t}${e===1?``:`s`}`;function Ae(e){if(e.kind===`setup`){if(e.passed)return`Checks passed`;let t=e.checks.filter(e=>!e.passed).length;return t>0?`${ke(t,`area`)} failed`:`Issues found`}return{inactive:`Help off`,activating:`Help activating`,active:`Help active`,degraded:`Help degraded`}[e.activation]}function je(e){if(e.kind===`setup`){let t=e.checks.filter(e=>!e.passed).length;return[{label:`Checks passed`,value:`${String(e.checks.length-t)}/${String(e.checks.length)}`,tone:`text`},{label:`Failed`,value:String(t),tone:t>0?`error`:`text`},...e.skipped.length>0?[{label:`Skipped`,value:String(e.skipped.length),tone:`warning`}]:[]]}return e.activation===`inactive`?[]:[{label:`Skills`,value:e.skillCount===null?`pending`:String(e.skillCount),tone:`text`},...e.toolCount===void 0?[]:[{label:`Tools`,value:String(e.toolCount),tone:`text`}],...e.diagnostics.length>0?[{label:`Diagnostics`,value:String(e.diagnostics.length),tone:`warning`}]:[],...e.packages.length>0?[{label:`Failed packages`,value:String(e.packages.length),tone:`error`}]:[]]}function Me(e){if(e.activation===`inactive`)return`Help mode is off in this session.`;if(e.activation===`activating`)return`Skills are counted once the session is ready.`}function Ne(e){return e.kind===`setup`?e.checks.length>0||e.skipped.length>0||e.limitations!==void 0:e.skills.length>0||e.tools.length>0||e.diagnostics.length>0||e.packages.length>0||e.truncated}var Pe=`Help diagnostics`,Fe={text:`truncate text-lg font-semibold tabular-nums text-po-hi`,warning:`truncate text-lg font-semibold tabular-nums text-po-yellow`,error:`truncate text-lg font-semibold tabular-nums text-po-red`};function Ie({toolName:t,output:n,running:r,isError:a}){let c=u({running:r,isError:a}),l=r||a?null:Oe(n);if(l!==null&&l.kind!==`text`)return w(Le,{toolName:t,tone:c,view:l});let f=l?.lines??Q(n);if(a)return D(e,{tone:c,children:[w(i,{title:t,children:w(`span`,{className:`min-w-0 truncate text-po-faint`,children:Pe})}),f.length>0?w(v,{children:w(`p`,{className:`whitespace-pre-wrap break-words text-po-red`,children:f.join(`
3
+ `)})}):null]});let p=f.map(e=>({text:e,tone:`text`}));return w(e,{tone:c,expandable:p.length>12,children:({expanded:e})=>{let n=T(p,12,e);return D(d,{children:[w(i,{title:t,children:w(`span`,{className:`min-w-0 truncate text-po-faint`,children:Pe})}),n.shown.length>0||r?D(v,{children:[w(s,{lines:n.shown}),n.hidden>0?D(o,{expands:!0,children:[n.hidden,` more lines`]}):null,r?w(o,{tone:`running`,children:`Inspecting this session`}):null]}):null]})}})}function Le({toolName:t,tone:n,view:r}){let a=je(r),o=r.kind===`status`?Me(r):void 0;return w(e,{tone:n,expandable:Ne(r),children:({expanded:e})=>D(d,{children:[w(i,{title:t,children:w(`span`,{"data-testid":`tool-call-${t}`,className:`max-w-[70%] shrink-0 truncate text-po-text`,children:Ae(r)})}),D(v,{"data-testid":`tool-result-${t}`,className:`flex flex-col gap-4`,children:[o===void 0?null:w(`p`,{className:`text-sm text-po-dim`,children:o}),a.length>0?w(`dl`,{className:`grid grid-cols-2 gap-3 sm:grid-cols-4`,children:a.map(e=>D(`div`,{className:`flex min-w-0 flex-col gap-0.5`,children:[w(`dt`,{className:`truncate text-sm text-po-dim`,children:e.label}),w(`dd`,{className:Fe[e.tone],children:e.value})]},e.label))}):null,e?r.kind===`status`?w(Re,{view:r}):w(Be,{view:r}):null]})]})})}function Re({view:e}){return D(d,{children:[e.packages.length>0?D(`section`,{className:`flex flex-col gap-2`,children:[w(C,{children:`Failed packages`}),e.packages.map((e,t)=>D(`div`,{className:`flex min-w-0 flex-col gap-0.5`,children:[D(`div`,{className:`flex min-w-0 items-baseline gap-2`,children:[w(`span`,{className:`min-w-0 shrink truncate font-mono text-sm text-po-text`,children:e.packageName}),e.stage===void 0?null:D(`span`,{className:`min-w-0 flex-1 truncate text-right text-sm text-po-faint`,children:[e.stage,e.scope===void 0?``:` · ${e.scope}`]})]}),e.reason===void 0?null:w(`p`,{className:`break-words text-sm text-po-red`,children:e.reason}),e.previous===void 0?null:D(`p`,{className:`text-sm text-po-faint`,children:[`Previous build `,e.previous]})]},`${e.packageName}-${String(t)}`))]}):null,e.diagnostics.length>0?D(`section`,{className:`flex flex-col gap-2`,children:[w(C,{children:`Diagnostics`}),e.diagnostics.map((e,t)=>D(`div`,{className:`flex min-w-0 items-center gap-2`,children:[w(p,{tone:`yellow`,size:`xs`,className:`shrink-0 font-mono`,children:e.code}),e.source===void 0?null:w(`span`,{className:`min-w-0 flex-1 truncate text-right font-mono text-sm text-po-dim`,children:e.source})]},`${e.code}-${String(t)}`))]}):null,w(ze,{label:`Skills`,rows:e.skills}),w(ze,{label:`Tools`,rows:e.tools}),e.truncated?w(`p`,{className:`text-sm text-po-faint`,children:`The tool capped its lists; more exist.`}):null]})}function ze({label:e,rows:t}){if(t.length===0)return null;let n=t.slice(0,10);return D(`section`,{className:`flex flex-col gap-2`,children:[w(C,{children:e}),w(`ul`,{className:`grid grid-cols-1 gap-x-6 gap-y-1 sm:grid-cols-2`,children:n.map((e,t)=>D(`li`,{className:`flex min-w-0 items-center gap-2`,children:[w(`span`,{className:e.active?`min-w-0 shrink truncate font-mono text-sm text-po-text`:`min-w-0 shrink truncate font-mono text-sm text-po-dim`,children:e.name}),e.active?null:w(p,{size:`xs`,className:`shrink-0`,children:e.reason??`inactive`}),e.source===void 0?null:w(`span`,{className:`min-w-0 flex-1 truncate text-right text-sm text-po-faint`,children:e.source})]},`${e.name}-${String(t)}`))}),t.length>n.length?D(`p`,{className:`text-sm text-po-faint`,children:[`and `,t.length-n.length,` more`]}):null]})}function Be({view:e}){let t=[...e.majorMode===void 0?[]:[`mode ${e.majorMode}`],...e.domains.map(e=>`domain ${e}`),...e.profile===void 0?[]:[`profile ${e.profile}`]];return D(d,{children:[t.length>0?D(`section`,{className:`flex flex-col gap-2`,children:[w(C,{children:`Selection`}),w(`div`,{className:`flex flex-wrap items-center gap-2`,children:t.map(e=>w(p,{size:`xs`,children:e},e))})]}):null,e.checks.length>0?D(`section`,{className:`flex flex-col gap-2`,children:[w(C,{children:`Checks`}),w(`ul`,{className:`grid grid-cols-1 gap-x-6 gap-y-2 sm:grid-cols-2`,children:e.checks.map(e=>D(`li`,{className:`flex min-w-0 flex-col gap-0.5`,children:[D(`div`,{className:`flex min-w-0 items-center gap-2`,children:[w(`span`,{className:`min-w-0 flex-1 truncate font-mono text-sm text-po-text`,children:e.area}),e.passed?w(E,{"aria-label":`passed`,className:`size-3.5 shrink-0 text-po-green`}):w(`span`,{className:`shrink-0 text-sm text-po-red`,children:e.problemCount===void 0?`failed`:`${String(e.problemCount)} problem${e.problemCount===1?``:`s`}`})]}),!e.passed&&e.guidance!==void 0?D(`span`,{className:`truncate text-sm text-po-faint`,children:[`Guide: `,e.guidance]}):null]},e.area))})]}):null,e.skipped.length>0?D(`section`,{className:`flex flex-col gap-2`,children:[w(C,{children:`Skipped`}),e.skipped.map(e=>w(`p`,{className:`text-sm text-po-yellow`,children:e},e))]}):null,e.limitations===void 0?null:w(`p`,{className:`text-sm text-po-faint`,children:e.limitations})]})}var Ve=a({tools:[`help_status`,`diagnose_setup`],message:Ie}),$=(e,t)=>t===void 0?void 0:{...e,...t},He=r({id:`help`,host:{get fills(){return[$({slot:`page`,id:`brain`},K)]}},session:{get dockFaces(){return[$({id:`help`},_e)]},get fills(){return[$({slot:`activity-promo`,id:`brain`},ye),$({slot:`help.guides`,id:`help`},be)]},get leaderBindings(){return[$({id:`help.toggle`},xe)]},get minorModes(){return[$({name:`help`},Se)]},get slots(){return[$({slot:`help.guides`},Ce)]},get toolRenderers(){return[$({tools:[`help_status`]},Ve)]}}});export{He as webPlugin};