@agent-profile/web 0.4.0 → 0.4.1
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/build/client/_app/immutable/chunks/CgE_DjKt.js +1 -0
- package/build/client/_app/immutable/chunks/CgE_DjKt.js.br +2 -0
- package/build/client/_app/immutable/chunks/CgE_DjKt.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DUIAXRlx.js +2 -0
- package/build/client/_app/immutable/chunks/DUIAXRlx.js.br +0 -0
- package/build/client/_app/immutable/chunks/DUIAXRlx.js.gz +0 -0
- package/build/client/_app/immutable/entry/{app.WDp3PboB.js → app.CdW-LYDu.js} +2 -2
- package/build/client/_app/immutable/entry/app.CdW-LYDu.js.br +0 -0
- package/build/client/_app/immutable/entry/app.CdW-LYDu.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.DPIUO8Cz.js +1 -0
- package/build/client/_app/immutable/entry/start.DPIUO8Cz.js.br +0 -0
- package/build/client/_app/immutable/entry/start.DPIUO8Cz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{0.-RAEeCLa.js → 0.CHBq40XB.js} +1 -1
- package/build/client/_app/immutable/nodes/0.CHBq40XB.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.CHBq40XB.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.34MuZTH7.js → 1.uBN-Xv4g.js} +1 -1
- package/build/client/_app/immutable/nodes/1.uBN-Xv4g.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.uBN-Xv4g.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{10.DplzwNzq.js → 10.C8rbRh60.js} +1 -1
- package/build/client/_app/immutable/nodes/10.C8rbRh60.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.C8rbRh60.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{2.DNGHCEWB.js → 2.Czl7czp3.js} +1 -1
- package/build/client/_app/immutable/nodes/2.Czl7czp3.js.br +0 -0
- package/build/client/_app/immutable/nodes/{2.DNGHCEWB.js.gz → 2.Czl7czp3.js.gz} +0 -0
- package/build/client/_app/immutable/nodes/{7.BNVGtd7p.js → 7.Br2VN8LW.js} +1 -1
- package/build/client/_app/immutable/nodes/7.Br2VN8LW.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.Br2VN8LW.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.ntjBWnCW.js +1 -0
- package/build/client/_app/immutable/nodes/8.ntjBWnCW.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.ntjBWnCW.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{9.B7GOogsh.js → 9.ZDc7PffF.js} +1 -1
- package/build/client/_app/immutable/nodes/9.ZDc7PffF.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.ZDc7PffF.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/handler.js +3 -3
- package/build/index.js +3 -3
- package/build/server/chunks/{0-B6UIl8X0.js → 0-DR3J3fQ5.js} +8 -8
- package/build/server/chunks/{0-B6UIl8X0.js.map → 0-DR3J3fQ5.js.map} +1 -1
- package/build/server/chunks/{1-Dq90EpGp.js → 1-s12A57uQ.js} +3 -3
- package/build/server/chunks/{1-Dq90EpGp.js.map → 1-s12A57uQ.js.map} +1 -1
- package/build/server/chunks/{10-BM8QtjX8.js → 10-BrScAonI.js} +4 -4
- package/build/server/chunks/{10-BM8QtjX8.js.map → 10-BrScAonI.js.map} +1 -1
- package/build/server/chunks/{11-FZmITmkZ.js → 11-1xWcM97z.js} +2 -2
- package/build/server/chunks/{11-FZmITmkZ.js.map → 11-1xWcM97z.js.map} +1 -1
- package/build/server/chunks/{12-BlqEGyqp.js → 12-qK3kuIcS.js} +3 -3
- package/build/server/chunks/{12-BlqEGyqp.js.map → 12-qK3kuIcS.js.map} +1 -1
- package/build/server/chunks/{2-D9wmJrmC.js → 2-CFdDdwD9.js} +3 -3
- package/build/server/chunks/{2-D9wmJrmC.js.map → 2-CFdDdwD9.js.map} +1 -1
- package/build/server/chunks/{3-C7b_e-a7.js → 3-C0OcvgSx.js} +2 -2
- package/build/server/chunks/{3-C7b_e-a7.js.map → 3-C0OcvgSx.js.map} +1 -1
- package/build/server/chunks/{4-DC34JtHj.js → 4-BQF88f07.js} +4 -4
- package/build/server/chunks/{4-DC34JtHj.js.map → 4-BQF88f07.js.map} +1 -1
- package/build/server/chunks/{5-vZTj2V8e.js → 5-DBAaMAFj.js} +2 -2
- package/build/server/chunks/{5-vZTj2V8e.js.map → 5-DBAaMAFj.js.map} +1 -1
- package/build/server/chunks/{6-ClsuiYR1.js → 6-v7MV2lKB.js} +2 -2
- package/build/server/chunks/{6-ClsuiYR1.js.map → 6-v7MV2lKB.js.map} +1 -1
- package/build/server/chunks/{7-CdnU-whk.js → 7-D-QcsxDW.js} +6 -6
- package/build/server/chunks/{7-CdnU-whk.js.map → 7-D-QcsxDW.js.map} +1 -1
- package/build/server/chunks/8-A2CCn3-D.js +9 -0
- package/build/server/chunks/{8-DGCxm3TB.js.map → 8-A2CCn3-D.js.map} +1 -1
- package/build/server/chunks/{9-BcuWrd-q.js → 9-DZOXvw0o.js} +5 -5
- package/build/server/chunks/{9-BcuWrd-q.js.map → 9-DZOXvw0o.js.map} +1 -1
- package/build/server/chunks/{Badge-C73znQSJ.js → Badge-Y2c835hW.js} +2 -2
- package/build/server/chunks/{Badge-C73znQSJ.js.map → Badge-Y2c835hW.js.map} +1 -1
- package/build/server/chunks/{SafetyBadge-DbpkfzSa.js → SafetyBadge-DhCPQhj2.js} +2 -2
- package/build/server/chunks/{SafetyBadge-DbpkfzSa.js.map → SafetyBadge-DhCPQhj2.js.map} +1 -1
- package/build/server/chunks/{_layout.svelte-1xu00yiw.js → _layout.svelte-Cp6Pr8fm.js} +4 -4
- package/build/server/chunks/{_layout.svelte-1xu00yiw.js.map → _layout.svelte-Cp6Pr8fm.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-4Xfcj342.js → _page.svelte-BBR0DA7v.js} +3 -3
- package/build/server/chunks/{_page.svelte-4Xfcj342.js.map → _page.svelte-BBR0DA7v.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-Br7nreH-.js → _page.svelte-C8YtFCVm.js} +3 -3
- package/build/server/chunks/{_page.svelte-Br7nreH-.js.map → _page.svelte-C8YtFCVm.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-iNuDNlPL.js → _page.svelte-Ccav-C7g.js} +2 -2
- package/build/server/chunks/{_page.svelte-iNuDNlPL.js.map → _page.svelte-Ccav-C7g.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-C1ssMQqB.js → _page.svelte-CcjAgJOx.js} +4 -4
- package/build/server/chunks/{_page.svelte-C1ssMQqB.js.map → _page.svelte-CcjAgJOx.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-BhsBxk6l.js → _page.svelte-DLyItH9w.js} +3 -3
- package/build/server/chunks/{_page.svelte-BhsBxk6l.js.map → _page.svelte-DLyItH9w.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-CZMhLclS.js → _page.svelte-DYRiWotV.js} +3 -3
- package/build/server/chunks/{_page.svelte-CZMhLclS.js.map → _page.svelte-DYRiWotV.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-DMwgbUjH.js → _page.svelte-Ds_oIg21.js} +4 -4
- package/build/server/chunks/{_page.svelte-DMwgbUjH.js.map → _page.svelte-Ds_oIg21.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-8auIN7Qo.js → _page.svelte-EaYvOxYx.js} +5 -5
- package/build/server/chunks/{_page.svelte-8auIN7Qo.js.map → _page.svelte-EaYvOxYx.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-pVxceXG3.js → _page.svelte-hlyuHPTb.js} +4 -4
- package/build/server/chunks/{_page.svelte-pVxceXG3.js.map → _page.svelte-hlyuHPTb.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-BaxiAFdk.js → _page.svelte-nTkjm4Be.js} +4 -4
- package/build/server/chunks/{_page.svelte-BaxiAFdk.js.map → _page.svelte-nTkjm4Be.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-BXtL3d0f.js → _page.svelte-wqrxHsYa.js} +4 -4
- package/build/server/chunks/{_page.svelte-BXtL3d0f.js.map → _page.svelte-wqrxHsYa.js.map} +1 -1
- package/build/server/chunks/{_server.ts-B6p7ukMz.js → _server.ts-3Z45ckHV.js} +4 -4
- package/build/server/chunks/{_server.ts-B6p7ukMz.js.map → _server.ts-3Z45ckHV.js.map} +1 -1
- package/build/server/chunks/{_server.ts-CXojCxes.js → _server.ts-CgyKDc7X.js} +5 -5
- package/build/server/chunks/{_server.ts-CXojCxes.js.map → _server.ts-CgyKDc7X.js.map} +1 -1
- package/build/server/chunks/{_server.ts-BRZfMXBh.js → _server.ts-CqjSwNoV.js} +2 -2
- package/build/server/chunks/{_server.ts-BRZfMXBh.js.map → _server.ts-CqjSwNoV.js.map} +1 -1
- package/build/server/chunks/{_server.ts-DrY2Ctqv.js → _server.ts-D7BHmX-e.js} +4 -4
- package/build/server/chunks/{_server.ts-DrY2Ctqv.js.map → _server.ts-D7BHmX-e.js.map} +1 -1
- package/build/server/chunks/{_server.ts-CqIWzdWh.js → _server.ts-DBxq75MD.js} +2 -2
- package/build/server/chunks/{_server.ts-CqIWzdWh.js.map → _server.ts-DBxq75MD.js.map} +1 -1
- package/build/server/chunks/{_server.ts-DFARp0QA.js → _server.ts-DTEv8E1L.js} +5 -5
- package/build/server/chunks/{_server.ts-DFARp0QA.js.map → _server.ts-DTEv8E1L.js.map} +1 -1
- package/build/server/chunks/{_server.ts-DAqw6tHI.js → _server.ts-Dm5Z8IW4.js} +4 -4
- package/build/server/chunks/{_server.ts-DAqw6tHI.js.map → _server.ts-Dm5Z8IW4.js.map} +1 -1
- package/build/server/chunks/{_server.ts-DqBabNbA.js → _server.ts-DnknmmXM.js} +4 -4
- package/build/server/chunks/{_server.ts-DqBabNbA.js.map → _server.ts-DnknmmXM.js.map} +1 -1
- package/build/server/chunks/{_server.ts-DcfqVMUN.js → _server.ts-DqQjjd-u.js} +2 -2
- package/build/server/chunks/{_server.ts-DcfqVMUN.js.map → _server.ts-DqQjjd-u.js.map} +1 -1
- package/build/server/chunks/{_server.ts-CCCiUW1c.js → _server.ts-MbkJwqJ9.js} +3 -3
- package/build/server/chunks/{_server.ts-CCCiUW1c.js.map → _server.ts-MbkJwqJ9.js.map} +1 -1
- package/build/server/chunks/{client-C6wXHlmK.js → client-x6uDA16H.js} +2 -2
- package/build/server/chunks/{client-C6wXHlmK.js.map → client-x6uDA16H.js.map} +1 -1
- package/build/server/chunks/{doctorSummary-De2PTQoD.js → doctorSummary-Dvq-gAAB.js} +3 -3
- package/build/server/chunks/{doctorSummary-De2PTQoD.js.map → doctorSummary-Dvq-gAAB.js.map} +1 -1
- package/build/server/chunks/{error.svelte-CcYVAQ1W.js → error.svelte-BkTtuJlf.js} +3 -3
- package/build/server/chunks/{error.svelte-CcYVAQ1W.js.map → error.svelte-BkTtuJlf.js.map} +1 -1
- package/build/server/chunks/{handler-Hnwc-LvR.js → handler-DGuyyFOi.js} +3 -3
- package/build/server/chunks/{handler-Hnwc-LvR.js.map → handler-DGuyyFOi.js.map} +1 -1
- package/build/server/chunks/{hooks.server-CB4nMIz1.js → hooks.server-Bcf9vyYe.js} +2 -2
- package/build/server/chunks/{hooks.server-CB4nMIz1.js.map → hooks.server-Bcf9vyYe.js.map} +1 -1
- package/build/server/chunks/{index.js-BISNf3Ne.js → index.js-v3uAcZBW.js} +3 -3
- package/build/server/chunks/index.js-v3uAcZBW.js.map +1 -0
- package/build/server/chunks/{manifest.js-C1tyaqvp.js → manifest.js-CllQdYla.js} +25 -25
- package/build/server/chunks/{manifest.js-C1tyaqvp.js.map → manifest.js-CllQdYla.js.map} +1 -1
- package/build/server/chunks/{marketingSeo-D0c8diM4.js → marketingSeo-CXh0KJlO.js} +2 -2
- package/build/server/chunks/{marketingSeo-D0c8diM4.js.map → marketingSeo-CXh0KJlO.js.map} +1 -1
- package/build/server/chunks/{migrationReport-BfHleN7g.js → migrationReport-CURRp2dU.js} +2 -2
- package/build/server/chunks/{migrationReport-BfHleN7g.js.map → migrationReport-CURRp2dU.js.map} +1 -1
- package/build/server/chunks/{profileApiHelpers-CKY0z-TD.js → profileApiHelpers-Cm4N8UkT.js} +2 -2
- package/build/server/chunks/{profileApiHelpers-CKY0z-TD.js.map → profileApiHelpers-Cm4N8UkT.js.map} +1 -1
- package/build/server/chunks/{projectContext-BtPm3MFR.js → projectContext-A3_20XfX.js} +61 -3
- package/build/server/chunks/{projectContext-BtPm3MFR.js.map → projectContext-A3_20XfX.js.map} +1 -1
- package/build/server/chunks/{src2-DwXcz8UE.js → src2-Cd39KBF5.js} +2 -2
- package/build/server/chunks/src2-Cd39KBF5.js.map +1 -0
- package/build/server/chunks/{src3-DeQh3O0_.js → src3-CTp6y3wn.js} +2 -2
- package/build/server/chunks/{src3-DeQh3O0_.js.map → src3-CTp6y3wn.js.map} +1 -1
- package/package.json +1 -1
- package/build/client/_app/immutable/chunks/RwRNRscK.js +0 -2
- package/build/client/_app/immutable/chunks/RwRNRscK.js.br +0 -0
- package/build/client/_app/immutable/chunks/RwRNRscK.js.gz +0 -0
- package/build/client/_app/immutable/chunks/jSRqCab7.js +0 -1
- package/build/client/_app/immutable/chunks/jSRqCab7.js.br +0 -2
- package/build/client/_app/immutable/chunks/jSRqCab7.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.WDp3PboB.js.br +0 -0
- package/build/client/_app/immutable/entry/app.WDp3PboB.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.Rh_k7Qxe.js +0 -1
- package/build/client/_app/immutable/entry/start.Rh_k7Qxe.js.br +0 -0
- package/build/client/_app/immutable/entry/start.Rh_k7Qxe.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.-RAEeCLa.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.-RAEeCLa.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.34MuZTH7.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.34MuZTH7.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.DplzwNzq.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.DplzwNzq.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.DNGHCEWB.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.BNVGtd7p.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.BNVGtd7p.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.jIClO5FX.js +0 -1
- package/build/client/_app/immutable/nodes/8.jIClO5FX.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.jIClO5FX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.B7GOogsh.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.B7GOogsh.js.gz +0 -0
- package/build/server/chunks/8-DGCxm3TB.js +0 -9
- package/build/server/chunks/index.js-BISNf3Ne.js.map +0 -1
- package/build/server/chunks/src2-DwXcz8UE.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_page.svelte-BaxiAFdk.js","sources":["../../../.svelte-kit/output/server/entries/pages/migration/_page.svelte.js"],"sourcesContent":["import { E as escape_html, a as ensure_array_like, f as html, i as derived, l as stringify, t as attr_class, w as attr } from \"../../../chunks/server.js\";\nimport { t as TrustBanner } from \"../../../chunks/TrustBanner.js\";\nimport { t as Badge } from \"../../../chunks/Badge.js\";\nimport \"../../../chunks/navigation.js\";\n//#region src/lib/fileRowActions.ts\nfunction offeredActions(finding, context = {}) {\n\tconst profileFound = context.profileFound ?? true;\n\tif (finding.action === \"refuse-conflict\") return [\"skip\"];\n\tif (finding.action === \"ignore-local-runtime\") return [\"preserve\", \"skip\"];\n\tif (finding.kind !== \"root-instructions\") {\n\t\tconst offers = [\"preserve\", \"skip\"];\n\t\tif (profileFound && finding.ownership === \"generated-owned\") offers.push(\"replace-generated-owned\");\n\t\tif (profileFound && finding.ownership === \"mixed\") offers.push(\"update-generated-region\");\n\t\treturn offers;\n\t}\n\tif (finding.action === \"create\") return [\"preserve\", \"skip\"];\n\tif (finding.action === \"update-generated-region\" || finding.ownership === \"mixed\") {\n\t\tif (profileFound) return [\n\t\t\t\"preserve\",\n\t\t\t\"update-generated-region\",\n\t\t\t\"skip\"\n\t\t];\n\t\treturn [\"preserve\", \"skip\"];\n\t}\n\tif (profileFound) return [\n\t\t\"preserve\",\n\t\t\"add-regions\",\n\t\t\"skip\"\n\t];\n\treturn [\"preserve\", \"skip\"];\n}\n//#endregion\n//#region src/lib/components/FileActionRow.svelte\nfunction FileActionRow($$renderer, $$props) {\n\t$$renderer.component(($$renderer) => {\n\t\tlet { finding, selected, onSelect, onTogglePreview, preview = { status: \"idle\" }, expanded, confirmReplace, onToggleConfirmReplace, profileFound } = $$props;\n\t\tconst offered = derived(() => offeredActions(finding, { profileFound }));\n\t\tconst isRuntime = derived(() => finding.tags.includes(\"local-runtime\") || finding.kind === \"mcp-config\" || finding.path === \".claude/settings.local.json\" || finding.path === \".codex/config.toml\" || finding.path === \".codex/hooks.json\");\n\t\tconst showsAbsolutePath = derived(() => finding.tags.includes(\"contains-absolute-path\") && finding.kind === \"mcp-config\");\n\t\tconst needsReplaceConfirm = derived(() => selected === \"replace-generated-owned\");\n\t\tfunction actionLabel(action) {\n\t\t\tswitch (action) {\n\t\t\t\tcase \"preserve\": return \"Preserve\";\n\t\t\t\tcase \"add-regions\": return \"Add regions\";\n\t\t\t\tcase \"update-generated-region\": return \"Update generated region\";\n\t\t\t\tcase \"replace-generated-owned\": return \"Replace generated-owned\";\n\t\t\t\tcase \"skip\": return \"Skip\";\n\t\t\t}\n\t\t}\n\t\tfunction ownershipTone(o) {\n\t\t\tswitch (o) {\n\t\t\t\tcase \"generated-owned\": return \"info\";\n\t\t\t\tcase \"mixed\": return \"ok\";\n\t\t\t\tcase \"manual-owned\": return \"muted\";\n\t\t\t\tcase \"unknown\": return \"warn\";\n\t\t\t}\n\t\t}\n\t\tfunction pickAction(e) {\n\t\t\tconst value = e.target.value;\n\t\t\tonSelect(finding.path, value);\n\t\t}\n\t\t$$renderer.push(`<div${attr_class(\"row svelte-1r91dfo\", void 0, { \"expanded\": expanded })}${attr(\"data-path\", finding.path)}${attr(\"data-action\", selected)}><div class=\"row-head svelte-1r91dfo\"><span class=\"row-path svelte-1r91dfo\">${escape_html(finding.path)}</span> <span class=\"row-meta svelte-1r91dfo\">`);\n\t\tBadge($$renderer, {\n\t\t\ttone: ownershipTone(finding.ownership),\n\t\t\tchildren: ($$renderer) => {\n\t\t\t\t$$renderer.push(`<!---->${escape_html(finding.ownership)}`);\n\t\t\t},\n\t\t\t$$slots: { default: true }\n\t\t});\n\t\t$$renderer.push(`<!----> `);\n\t\tBadge($$renderer, {\n\t\t\ttone: \"muted\",\n\t\t\tchildren: ($$renderer) => {\n\t\t\t\t$$renderer.push(`<!---->${escape_html(finding.kind)}`);\n\t\t\t},\n\t\t\t$$slots: { default: true }\n\t\t});\n\t\t$$renderer.push(`<!----> <!--[-->`);\n\t\tconst each_array = ensure_array_like(finding.tags);\n\t\tfor (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {\n\t\t\tlet tag = each_array[$$index];\n\t\t\tBadge($$renderer, {\n\t\t\t\ttone: tag === \"contains-absolute-path\" ? \"warn\" : \"muted\",\n\t\t\t\tchildren: ($$renderer) => {\n\t\t\t\t\t$$renderer.push(`<!---->${escape_html(tag)}`);\n\t\t\t\t},\n\t\t\t\t$$slots: { default: true }\n\t\t\t});\n\t\t}\n\t\t$$renderer.push(`<!--]--></span> <span class=\"row-spacer svelte-1r91dfo\"></span> `);\n\t\t$$renderer.select({\n\t\t\tclass: \"row-action\",\n\t\t\tonchange: pickAction,\n\t\t\t\"aria-label\": `Action for ${stringify(finding.path)}`,\n\t\t\tvalue: selected\n\t\t}, ($$renderer) => {\n\t\t\t$$renderer.push(`<!--[-->`);\n\t\t\tconst each_array_1 = ensure_array_like(offered());\n\t\t\tfor (let $$index_1 = 0, $$length = each_array_1.length; $$index_1 < $$length; $$index_1++) {\n\t\t\t\tlet action = each_array_1[$$index_1];\n\t\t\t\t$$renderer.option({\n\t\t\t\t\tvalue: action,\n\t\t\t\t\tselected: action === selected\n\t\t\t\t}, ($$renderer) => {\n\t\t\t\t\t$$renderer.push(`${escape_html(actionLabel(action))}`);\n\t\t\t\t});\n\t\t\t}\n\t\t\t$$renderer.push(`<!--]-->`);\n\t\t}, \"svelte-1r91dfo\");\n\t\t$$renderer.push(` `);\n\t\tif (finding.kind === \"root-instructions\" || finding.kind === \"workflow-skill\" || finding.kind === \"subagent\" || finding.kind === \"client-config\") {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t$$renderer.push(`<button type=\"button\" class=\"btn ghost row-toggle svelte-1r91dfo\"${attr(\"aria-expanded\", expanded)}>${escape_html(expanded ? \"Hide\" : \"Preview\")}</button>`);\n\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t$$renderer.push(`<!--]--></div> `);\n\t\tif (isRuntime()) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t$$renderer.push(`<div class=\"row-runtime-note svelte-1r91dfo\">local runtime file — metadata only, no raw preview `);\n\t\t\tif (showsAbsolutePath()) {\n\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\t$$renderer.push(`· contains an absolute path`);\n\t\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t\t$$renderer.push(`<!--]--></div>`);\n\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t$$renderer.push(`<!--]--> <!--[-->`);\n\t\tconst each_array_2 = ensure_array_like(finding.notes);\n\t\tfor (let $$index_2 = 0, $$length = each_array_2.length; $$index_2 < $$length; $$index_2++) {\n\t\t\tlet note = each_array_2[$$index_2];\n\t\t\t$$renderer.push(`<div class=\"row-note svelte-1r91dfo\">note: ${escape_html(note)}</div>`);\n\t\t}\n\t\t$$renderer.push(`<!--]--> `);\n\t\tif (needsReplaceConfirm()) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t$$renderer.push(`<div class=\"row-confirm svelte-1r91dfo\"><label><input type=\"checkbox\"${attr(\"checked\", confirmReplace, true)}/> I understand this overwrites generated-owned content. (required to apply)</label></div>`);\n\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t$$renderer.push(`<!--]--> `);\n\t\tif (expanded) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t$$renderer.push(`<div class=\"row-preview svelte-1r91dfo\">`);\n\t\t\tif (preview.status === \"loading\") {\n\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\t$$renderer.push(`<div class=\"row-preview-state svelte-1r91dfo\">Loading preview…</div>`);\n\t\t\t} else if (preview.status === \"metadata-only\") {\n\t\t\t\t$$renderer.push(\"<!--[1-->\");\n\t\t\t\t$$renderer.push(`<div class=\"row-preview-state muted svelte-1r91dfo\">${escape_html(preview.notes.join(\" · \") || \"metadata only\")}</div>`);\n\t\t\t} else if (preview.status === \"denied\") {\n\t\t\t\t$$renderer.push(\"<!--[2-->\");\n\t\t\t\t$$renderer.push(`<div class=\"row-preview-state err svelte-1r91dfo\">preview refused: ${escape_html(preview.reason)}</div>`);\n\t\t\t} else if (preview.status === \"error\") {\n\t\t\t\t$$renderer.push(\"<!--[3-->\");\n\t\t\t\t$$renderer.push(`<div class=\"row-preview-state err svelte-1r91dfo\">${escape_html(preview.message)}</div>`);\n\t\t\t} else if (preview.status === \"ok\") {\n\t\t\t\t$$renderer.push(\"<!--[4-->\");\n\t\t\t\t$$renderer.push(`<div class=\"row-preview-meta svelte-1r91dfo\">rendered as <span class=\"path\">${escape_html(preview.kind)}</span> `);\n\t\t\t\tif (preview.truncated) {\n\t\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\t\t$$renderer.push(`· <span class=\"warn\">truncated</span>`);\n\t\t\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t\t\t$$renderer.push(`<!--]--></div> `);\n\t\t\t\tif (preview.kind === \"markdown\") {\n\t\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\t\t$$renderer.push(`<pre class=\"row-preview-body markdown svelte-1r91dfo\">${html(preview.sanitizedText)}</pre>`);\n\t\t\t\t} else {\n\t\t\t\t\t$$renderer.push(\"<!--[-1-->\");\n\t\t\t\t\t$$renderer.push(`<pre class=\"row-preview-body code svelte-1r91dfo\">${html(preview.sanitizedText)}</pre>`);\n\t\t\t\t}\n\t\t\t\t$$renderer.push(`<!--]-->`);\n\t\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t\t$$renderer.push(`<!--]--></div>`);\n\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t$$renderer.push(`<!--]--></div>`);\n\t});\n}\n//#endregion\n//#region src/routes/migration/+page.svelte\nfunction _page($$renderer, $$props) {\n\t$$renderer.component(($$renderer) => {\n\t\tlet { data } = $$props;\n\t\tlet report = derived(() => data.report);\n\t\tderived(() => data.csrfToken);\n\t\tlet selectedByPath = {};\n\t\tlet expandedByPath = {};\n\t\tlet previewByPath = {};\n\t\tlet confirmReplaceByPath = {};\n\t\tlet applying = false;\n\t\tlet planSummary = null;\n\t\tlet applyResult = null;\n\t\tlet errorMessage = null;\n\t\tfunction selectAction(path, action) {\n\t\t\tselectedByPath = {\n\t\t\t\t...selectedByPath,\n\t\t\t\t[path]: action\n\t\t\t};\n\t\t\tif (action !== \"replace-generated-owned\") confirmReplaceByPath = {\n\t\t\t\t...confirmReplaceByPath,\n\t\t\t\t[path]: false\n\t\t\t};\n\t\t\tplanSummary = null;\n\t\t\tapplyResult = null;\n\t\t\terrorMessage = null;\n\t\t}\n\t\tfunction toggleConfirmReplace(path, value) {\n\t\t\tconfirmReplaceByPath = {\n\t\t\t\t...confirmReplaceByPath,\n\t\t\t\t[path]: value\n\t\t\t};\n\t\t}\n\t\tasync function togglePreview(targetPath) {\n\t\t\tconst next = !expandedByPath[targetPath];\n\t\t\texpandedByPath = {\n\t\t\t\t...expandedByPath,\n\t\t\t\t[targetPath]: next\n\t\t\t};\n\t\t\tif (!next) return;\n\t\t\tif (previewByPath[targetPath]?.status === \"ok\") return;\n\t\t\tpreviewByPath = {\n\t\t\t\t...previewByPath,\n\t\t\t\t[targetPath]: { status: \"loading\" }\n\t\t\t};\n\t\t\ttry {\n\t\t\t\tconst url = `/api/migration/preview?path=${encodeURIComponent(targetPath)}`;\n\t\t\t\tconst response = await fetch(url);\n\t\t\t\tconst body = await response.json();\n\t\t\t\tif (response.ok && body.ok === true) {\n\t\t\t\t\tpreviewByPath = {\n\t\t\t\t\t\t...previewByPath,\n\t\t\t\t\t\t[targetPath]: {\n\t\t\t\t\t\t\tstatus: \"ok\",\n\t\t\t\t\t\t\tkind: body.kind,\n\t\t\t\t\t\t\tsanitizedText: body.sanitizedText,\n\t\t\t\t\t\t\ttruncated: body.truncated,\n\t\t\t\t\t\t\tnotes: body.notes ?? []\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (response.status === 200 && body.ok === false) {\n\t\t\t\t\tpreviewByPath = {\n\t\t\t\t\t\t...previewByPath,\n\t\t\t\t\t\t[targetPath]: {\n\t\t\t\t\t\t\tstatus: \"metadata-only\",\n\t\t\t\t\t\t\tnotes: body.notes ?? []\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tpreviewByPath = {\n\t\t\t\t\t...previewByPath,\n\t\t\t\t\t[targetPath]: {\n\t\t\t\t\t\tstatus: \"denied\",\n\t\t\t\t\t\treason: body.reason ?? \"unknown\",\n\t\t\t\t\t\tnotes: body.notes ?? []\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t} catch (err) {\n\t\t\t\tpreviewByPath = {\n\t\t\t\t\t...previewByPath,\n\t\t\t\t\t[targetPath]: {\n\t\t\t\t\t\tstatus: \"error\",\n\t\t\t\t\t\tmessage: err instanceof Error ? err.message : \"preview failed\"\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t\t$$renderer.push(`<div class=\"content\"><div class=\"page-intro\"><h2>Migration</h2> <p>Side-by-side adoption of existing <span class=\"path\">AGENTS.md</span>, <span class=\"path\">CLAUDE.md</span>, skills, subagents, and local\n config. Every action is local and reversible — nothing is written\n until you confirm the final plan.</p></div> `);\n\t\tTrustBanner($$renderer, {});\n\t\t$$renderer.push(`<!----> <div class=\"posture-strip svelte-c3xvv7\" data-testid=\"posture-strip\">`);\n\t\tBadge($$renderer, {\n\t\t\ttone: \"ok\",\n\t\t\tchildren: ($$renderer) => {\n\t\t\t\t$$renderer.push(`<!---->local`);\n\t\t\t},\n\t\t\t$$slots: { default: true }\n\t\t});\n\t\t$$renderer.push(`<!----> `);\n\t\tBadge($$renderer, {\n\t\t\ttone: \"ok\",\n\t\t\tchildren: ($$renderer) => {\n\t\t\t\t$$renderer.push(`<!---->no upload`);\n\t\t\t},\n\t\t\t$$slots: { default: true }\n\t\t});\n\t\t$$renderer.push(`<!----> `);\n\t\tBadge($$renderer, {\n\t\t\ttone: \"ok\",\n\t\t\tchildren: ($$renderer) => {\n\t\t\t\t$$renderer.push(`<!---->read-only by default`);\n\t\t\t},\n\t\t\t$$slots: { default: true }\n\t\t});\n\t\t$$renderer.push(`<!----> <span class=\"posture-spacer svelte-c3xvv7\"></span> <span class=\"path muted svelte-c3xvv7\">root · ${escape_html(report().root)}</span></div> <section><h3 class=\"step svelte-c3xvv7\">1. Scan summary</h3> <div class=\"summary svelte-c3xvv7\">`);\n\t\tBadge($$renderer, {\n\t\t\ttone: \"info\",\n\t\t\tchildren: ($$renderer) => {\n\t\t\t\t$$renderer.push(`<!---->${escape_html(report().files.length)} files`);\n\t\t\t},\n\t\t\t$$slots: { default: true }\n\t\t});\n\t\t$$renderer.push(`<!----> `);\n\t\tBadge($$renderer, {\n\t\t\ttone: report().summary.conflicts > 0 ? \"warn\" : \"muted\",\n\t\t\tchildren: ($$renderer) => {\n\t\t\t\t$$renderer.push(`<!---->${escape_html(report().summary.conflicts)} conflicts`);\n\t\t\t},\n\t\t\t$$slots: { default: true }\n\t\t});\n\t\t$$renderer.push(`<!----> `);\n\t\tBadge($$renderer, {\n\t\t\ttone: \"muted\",\n\t\t\tchildren: ($$renderer) => {\n\t\t\t\t$$renderer.push(`<!---->${escape_html(report().summary.preservedManualFiles)} preserve`);\n\t\t\t},\n\t\t\t$$slots: { default: true }\n\t\t});\n\t\t$$renderer.push(`<!----> `);\n\t\tBadge($$renderer, {\n\t\t\ttone: \"muted\",\n\t\t\tchildren: ($$renderer) => {\n\t\t\t\t$$renderer.push(`<!---->${escape_html(report().summary.wouldUpdateRegions)} would update regions`);\n\t\t\t},\n\t\t\t$$slots: { default: true }\n\t\t});\n\t\t$$renderer.push(`<!----> `);\n\t\tBadge($$renderer, {\n\t\t\ttone: report().summary.nameCollisions > 0 ? \"warn\" : \"muted\",\n\t\t\tchildren: ($$renderer) => {\n\t\t\t\t$$renderer.push(`<!---->${escape_html(report().summary.nameCollisions)} name collisions`);\n\t\t\t},\n\t\t\t$$slots: { default: true }\n\t\t});\n\t\t$$renderer.push(`<!----> `);\n\t\tif (report().profileFound) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\tBadge($$renderer, {\n\t\t\t\ttone: \"ok\",\n\t\t\t\tchildren: ($$renderer) => {\n\t\t\t\t\t$$renderer.push(`<!---->ai-profile.yaml present`);\n\t\t\t\t},\n\t\t\t\t$$slots: { default: true }\n\t\t\t});\n\t\t} else {\n\t\t\t$$renderer.push(\"<!--[-1-->\");\n\t\t\tBadge($$renderer, {\n\t\t\t\ttone: \"warn\",\n\t\t\t\tchildren: ($$renderer) => {\n\t\t\t\t\t$$renderer.push(`<!---->ai-profile.yaml not found`);\n\t\t\t\t},\n\t\t\t\t$$slots: { default: true }\n\t\t\t});\n\t\t}\n\t\t$$renderer.push(`<!--]--></div></section> <section><h3 class=\"step svelte-c3xvv7\">2. Profile proposal</h3> `);\n\t\tif (report().profileFound) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t$$renderer.push(`<p class=\"muted-line svelte-c3xvv7\">Profile already exists. Updates flow through <span class=\"path\">agent-profile compile --write</span>.</p>`);\n\t\t} else {\n\t\t\t$$renderer.push(\"<!--[-1-->\");\n\t\t\t$$renderer.push(`<p class=\"muted-line svelte-c3xvv7\">Run <span class=\"path\">npx agent-profile init</span> to create\n ai-profile.yaml. The wizard reuses the same import logic shown below.</p>`);\n\t\t}\n\t\t$$renderer.push(`<!--]--></section> <section><h3 class=\"step svelte-c3xvv7\">3 — 5. Files, regions, and conflicts</h3> `);\n\t\tif (report().files.length === 0) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t$$renderer.push(`<div class=\"empty-note svelte-c3xvv7\">No supported files found under <span class=\"path\">${escape_html(report().root)}</span>.</div>`);\n\t\t} else {\n\t\t\t$$renderer.push(\"<!--[-1-->\");\n\t\t\t$$renderer.push(`<!--[-->`);\n\t\t\tconst each_array = ensure_array_like(report().files);\n\t\t\tfor (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {\n\t\t\t\tlet finding = each_array[$$index];\n\t\t\t\tFileActionRow($$renderer, {\n\t\t\t\t\tfinding,\n\t\t\t\t\tselected: selectedByPath[finding.path] ?? \"preserve\",\n\t\t\t\t\tonSelect: selectAction,\n\t\t\t\t\tonTogglePreview: togglePreview,\n\t\t\t\t\tpreview: previewByPath[finding.path] ?? { status: \"idle\" },\n\t\t\t\t\texpanded: !!expandedByPath[finding.path],\n\t\t\t\t\tconfirmReplace: !!confirmReplaceByPath[finding.path],\n\t\t\t\t\tonToggleConfirmReplace: toggleConfirmReplace,\n\t\t\t\t\tprofileFound: report().profileFound\n\t\t\t\t});\n\t\t\t}\n\t\t\t$$renderer.push(`<!--]-->`);\n\t\t}\n\t\t$$renderer.push(`<!--]--></section> `);\n\t\tif (report().collisions.length > 0) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t$$renderer.push(`<section data-testid=\"collisions-section\"><h3 class=\"step svelte-c3xvv7\">5a. Skill / subagent name collisions</h3> <p class=\"muted-line svelte-c3xvv7\">Two or more files declare the same <span class=\"path\">name:</span> in their frontmatter. Compile clients deduplicate by name, so\n only one of the colliding entries wins — rename or delete the\n others before applying.</p> <ul class=\"collisions-list svelte-c3xvv7\"><!--[-->`);\n\t\t\tconst each_array_1 = ensure_array_like(report().collisions);\n\t\t\tfor (let $$index_2 = 0, $$length = each_array_1.length; $$index_2 < $$length; $$index_2++) {\n\t\t\t\tlet collision = each_array_1[$$index_2];\n\t\t\t\t$$renderer.push(`<li class=\"svelte-c3xvv7\">`);\n\t\t\t\tBadge($$renderer, {\n\t\t\t\t\ttone: \"warn\",\n\t\t\t\t\tchildren: ($$renderer) => {\n\t\t\t\t\t\t$$renderer.push(`<!---->${escape_html(collision.kind)}`);\n\t\t\t\t\t},\n\t\t\t\t\t$$slots: { default: true }\n\t\t\t\t});\n\t\t\t\t$$renderer.push(`<!----> <span class=\"path\">${escape_html(collision.name)}</span> <ul class=\"collisions-paths svelte-c3xvv7\"><!--[-->`);\n\t\t\t\tconst each_array_2 = ensure_array_like(collision.paths);\n\t\t\t\tfor (let $$index_1 = 0, $$length = each_array_2.length; $$index_1 < $$length; $$index_1++) {\n\t\t\t\t\tlet p = each_array_2[$$index_1];\n\t\t\t\t\t$$renderer.push(`<li><span class=\"path\">${escape_html(p)}</span></li>`);\n\t\t\t\t}\n\t\t\t\t$$renderer.push(`<!--]--></ul></li>`);\n\t\t\t}\n\t\t\t$$renderer.push(`<!--]--></ul></section>`);\n\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t$$renderer.push(`<!--]--> <section><h3 class=\"step svelte-c3xvv7\">6. .gitignore recommendations</h3> <ul class=\"gitignore-list svelte-c3xvv7\"><!--[-->`);\n\t\tconst each_array_3 = ensure_array_like(report().gitignore);\n\t\tfor (let $$index_3 = 0, $$length = each_array_3.length; $$index_3 < $$length; $$index_3++) {\n\t\t\tlet g = each_array_3[$$index_3];\n\t\t\t$$renderer.push(`<li><span class=\"path\">${escape_html(g.line)}</span> <span class=\"muted-line svelte-c3xvv7\">· ${escape_html(g.action === \"already-present\" ? \"already present\" : \"suggested addition\")}\n · ${escape_html(g.reason)}</span></li>`);\n\t\t}\n\t\t$$renderer.push(`<!--]--></ul></section> <section><h3 class=\"step svelte-c3xvv7\">7. Final write plan</h3> <div class=\"plan-actions svelte-c3xvv7\"><button class=\"btn\" type=\"button\"${attr(\"disabled\", applying, true)}>Build plan</button> `);\n\t\tif (planSummary) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t$$renderer.push(`<button class=\"btn primary\" type=\"button\"${attr(\"disabled\", applying, true)}>Apply ${escape_html(planSummary.counts.create + planSummary.counts.change)} writes</button>`);\n\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t$$renderer.push(`<!--]--> `);\n\t\tif (errorMessage) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t$$renderer.push(`<span class=\"err svelte-c3xvv7\">${escape_html(errorMessage)}</span>`);\n\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t$$renderer.push(`<!--]--></div> `);\n\t\tif (planSummary) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t$$renderer.push(`<div class=\"plan-summary svelte-c3xvv7\" data-testid=\"plan-summary\"><div class=\"plan-counts svelte-c3xvv7\">`);\n\t\t\tBadge($$renderer, {\n\t\t\t\ttone: \"ok\",\n\t\t\t\tchildren: ($$renderer) => {\n\t\t\t\t\t$$renderer.push(`<!---->${escape_html(planSummary.counts.create)} create`);\n\t\t\t\t},\n\t\t\t\t$$slots: { default: true }\n\t\t\t});\n\t\t\t$$renderer.push(`<!----> `);\n\t\t\tBadge($$renderer, {\n\t\t\t\ttone: \"info\",\n\t\t\t\tchildren: ($$renderer) => {\n\t\t\t\t\t$$renderer.push(`<!---->${escape_html(planSummary.counts.change)} change`);\n\t\t\t\t},\n\t\t\t\t$$slots: { default: true }\n\t\t\t});\n\t\t\t$$renderer.push(`<!----> `);\n\t\t\tBadge($$renderer, {\n\t\t\t\ttone: \"muted\",\n\t\t\t\tchildren: ($$renderer) => {\n\t\t\t\t\t$$renderer.push(`<!---->${escape_html(planSummary.counts.unchanged)} unchanged`);\n\t\t\t\t},\n\t\t\t\t$$slots: { default: true }\n\t\t\t});\n\t\t\t$$renderer.push(`<!----> `);\n\t\t\tif (planSummary.requiresReplaceConfirmation) {\n\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\tBadge($$renderer, {\n\t\t\t\t\ttone: \"warn\",\n\t\t\t\t\tchildren: ($$renderer) => {\n\t\t\t\t\t\t$$renderer.push(`<!---->replace confirmation required`);\n\t\t\t\t\t},\n\t\t\t\t\t$$slots: { default: true }\n\t\t\t\t});\n\t\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t\t$$renderer.push(`<!--]--></div> `);\n\t\t\tif (planSummary.actions.length > 0) {\n\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\t$$renderer.push(`<ul class=\"plan-list svelte-c3xvv7\"><!--[-->`);\n\t\t\t\tconst each_array_4 = ensure_array_like(planSummary.actions);\n\t\t\t\tfor (let $$index_4 = 0, $$length = each_array_4.length; $$index_4 < $$length; $$index_4++) {\n\t\t\t\t\tlet item = each_array_4[$$index_4];\n\t\t\t\t\t$$renderer.push(`<li class=\"svelte-c3xvv7\"><span class=\"path\">${escape_html(item.path)}</span> · <span class=\"muted-line svelte-c3xvv7\">${escape_html(item.action)}</span> · <span class=\"muted-line svelte-c3xvv7\">${escape_html(item.plannedBytes)} bytes</span></li>`);\n\t\t\t\t}\n\t\t\t\t$$renderer.push(`<!--]--></ul>`);\n\t\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t\t$$renderer.push(`<!--]--> `);\n\t\t\tif (planSummary.refusals.length > 0) {\n\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\t$$renderer.push(`<div class=\"plan-refusals svelte-c3xvv7\"><strong>Refusals:</strong> <ul class=\"svelte-c3xvv7\"><!--[-->`);\n\t\t\t\tconst each_array_5 = ensure_array_like(planSummary.refusals);\n\t\t\t\tfor (let $$index_5 = 0, $$length = each_array_5.length; $$index_5 < $$length; $$index_5++) {\n\t\t\t\t\tlet r = each_array_5[$$index_5];\n\t\t\t\t\t$$renderer.push(`<li><span class=\"path\">${escape_html(r.path)}</span> · ${escape_html(r.reason)} — ${escape_html(r.note)}</li>`);\n\t\t\t\t}\n\t\t\t\t$$renderer.push(`<!--]--></ul></div>`);\n\t\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t\t$$renderer.push(`<!--]--></div>`);\n\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t$$renderer.push(`<!--]--></section> <section><h3 class=\"step svelte-c3xvv7\">8. Doctor preview</h3> `);\n\t\tif (!applyResult) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t$$renderer.push(`<p class=\"muted-line svelte-c3xvv7\">Doctor runs automatically after the plan is applied. Findings stay\n visible even if the apply succeeds — failures are not auto-reverted.</p>`);\n\t\t} else if (!applyResult.doctor.ok) {\n\t\t\t$$renderer.push(\"<!--[1-->\");\n\t\t\t$$renderer.push(`<div class=\"doctor-err svelte-c3xvv7\">Doctor failed to run: ${escape_html(applyResult.doctor.message ?? \"(no message)\")}</div>`);\n\t\t} else {\n\t\t\t$$renderer.push(\"<!--[-1-->\");\n\t\t\t$$renderer.push(`<div class=\"doctor-status svelte-c3xvv7\">`);\n\t\t\tBadge($$renderer, {\n\t\t\t\ttone: applyResult.doctor.status === \"pass\" ? \"ok\" : applyResult.doctor.status === \"warn\" ? \"warn\" : \"err\",\n\t\t\t\tchildren: ($$renderer) => {\n\t\t\t\t\t$$renderer.push(`<!---->doctor ${escape_html(applyResult.doctor.status)}`);\n\t\t\t\t},\n\t\t\t\t$$slots: { default: true }\n\t\t\t});\n\t\t\t$$renderer.push(`<!----> <span class=\"muted-line svelte-c3xvv7\">${escape_html(applyResult.doctor.issues?.length ?? 0)} issues</span></div> `);\n\t\t\tif ((applyResult.doctor.issues ?? []).length > 0) {\n\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\t$$renderer.push(`<ul class=\"doctor-list svelte-c3xvv7\"><!--[-->`);\n\t\t\t\tconst each_array_6 = ensure_array_like(applyResult.doctor.issues ?? []);\n\t\t\t\tfor (let $$index_6 = 0, $$length = each_array_6.length; $$index_6 < $$length; $$index_6++) {\n\t\t\t\t\tlet issue = each_array_6[$$index_6];\n\t\t\t\t\t$$renderer.push(`<li class=\"svelte-c3xvv7\">`);\n\t\t\t\t\tBadge($$renderer, {\n\t\t\t\t\t\ttone: issue.severity === \"error\" ? \"err\" : issue.severity === \"warning\" ? \"warn\" : \"muted\",\n\t\t\t\t\t\tchildren: ($$renderer) => {\n\t\t\t\t\t\t\t$$renderer.push(`<!---->${escape_html(issue.severity)}`);\n\t\t\t\t\t\t},\n\t\t\t\t\t\t$$slots: { default: true }\n\t\t\t\t\t});\n\t\t\t\t\t$$renderer.push(`<!----> <span class=\"path\">${escape_html(issue.path)}</span> · <span class=\"muted-line svelte-c3xvv7\">${escape_html(issue.code)}</span> · ${escape_html(issue.message)}</li>`);\n\t\t\t\t}\n\t\t\t\t$$renderer.push(`<!--]--></ul>`);\n\t\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t\t$$renderer.push(`<!--]--> <p class=\"muted-line svelte-c3xvv7\">Revert is a separate action — re-run with different selections, or\n edit files manually.</p>`);\n\t\t}\n\t\t$$renderer.push(`<!--]--></section></div>`);\n\t});\n}\n//#endregion\nexport { _page as default };\n"],"names":[],"mappings":";;;;AAIA;AACA,SAAS,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,EAAE,EAAE;AAC/C,CAAC,MAAM,YAAY,GAAG,OAAO,CAAC,YAAY,IAAI,IAAI;AAClD,CAAC,IAAI,OAAO,CAAC,MAAM,KAAK,iBAAiB,EAAE,O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K,SAAS,GAAG,MAAM,GAAG,OAAO;AAChG,MAAM,QAAQ,EAAE,CAAC,UAAU,KAAK;AAChC,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;AAC/D,MAAM,CAED,CAAC,CAAC;AACP,KAAK,UAAU,CAAC,IAAI,CAAC,CAAC,2BAA2B,EAAE,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,iDAAiD,EAAE,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC;AACpM,IAAI;AACJ,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC,aAAa,CAAC,CAAC;AACpC,GAAG,CAAC,MAAM,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC;AACvC,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;AACpB,gCAAgC,CAAC,CAAC;AAClC,EAAE;AACF,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,wBAAwB,CAAC,CAAC;AAC7C,CAAC,CAAC,CAAC;AACH;;;;"}
|
|
1
|
+
{"version":3,"file":"_page.svelte-nTkjm4Be.js","sources":["../../../.svelte-kit/output/server/entries/pages/migration/_page.svelte.js"],"sourcesContent":["import { E as escape_html, a as ensure_array_like, f as html, i as derived, l as stringify, t as attr_class, w as attr } from \"../../../chunks/server.js\";\nimport { t as TrustBanner } from \"../../../chunks/TrustBanner.js\";\nimport { t as Badge } from \"../../../chunks/Badge.js\";\nimport \"../../../chunks/navigation.js\";\n//#region src/lib/fileRowActions.ts\nfunction offeredActions(finding, context = {}) {\n\tconst profileFound = context.profileFound ?? true;\n\tif (finding.action === \"refuse-conflict\") return [\"skip\"];\n\tif (finding.action === \"ignore-local-runtime\") return [\"preserve\", \"skip\"];\n\tif (finding.kind !== \"root-instructions\") {\n\t\tconst offers = [\"preserve\", \"skip\"];\n\t\tif (profileFound && finding.ownership === \"generated-owned\") offers.push(\"replace-generated-owned\");\n\t\tif (profileFound && finding.ownership === \"mixed\") offers.push(\"update-generated-region\");\n\t\treturn offers;\n\t}\n\tif (finding.action === \"create\") return [\"preserve\", \"skip\"];\n\tif (finding.action === \"update-generated-region\" || finding.ownership === \"mixed\") {\n\t\tif (profileFound) return [\n\t\t\t\"preserve\",\n\t\t\t\"update-generated-region\",\n\t\t\t\"skip\"\n\t\t];\n\t\treturn [\"preserve\", \"skip\"];\n\t}\n\tif (profileFound) return [\n\t\t\"preserve\",\n\t\t\"add-regions\",\n\t\t\"skip\"\n\t];\n\treturn [\"preserve\", \"skip\"];\n}\n//#endregion\n//#region src/lib/components/FileActionRow.svelte\nfunction FileActionRow($$renderer, $$props) {\n\t$$renderer.component(($$renderer) => {\n\t\tlet { finding, selected, onSelect, onTogglePreview, preview = { status: \"idle\" }, expanded, confirmReplace, onToggleConfirmReplace, profileFound } = $$props;\n\t\tconst offered = derived(() => offeredActions(finding, { profileFound }));\n\t\tconst isRuntime = derived(() => finding.tags.includes(\"local-runtime\") || finding.kind === \"mcp-config\" || finding.path === \".claude/settings.local.json\" || finding.path === \".codex/config.toml\" || finding.path === \".codex/hooks.json\");\n\t\tconst showsAbsolutePath = derived(() => finding.tags.includes(\"contains-absolute-path\") && finding.kind === \"mcp-config\");\n\t\tconst needsReplaceConfirm = derived(() => selected === \"replace-generated-owned\");\n\t\tfunction actionLabel(action) {\n\t\t\tswitch (action) {\n\t\t\t\tcase \"preserve\": return \"Preserve\";\n\t\t\t\tcase \"add-regions\": return \"Add regions\";\n\t\t\t\tcase \"update-generated-region\": return \"Update generated region\";\n\t\t\t\tcase \"replace-generated-owned\": return \"Replace generated-owned\";\n\t\t\t\tcase \"skip\": return \"Skip\";\n\t\t\t}\n\t\t}\n\t\tfunction ownershipTone(o) {\n\t\t\tswitch (o) {\n\t\t\t\tcase \"generated-owned\": return \"info\";\n\t\t\t\tcase \"mixed\": return \"ok\";\n\t\t\t\tcase \"manual-owned\": return \"muted\";\n\t\t\t\tcase \"unknown\": return \"warn\";\n\t\t\t}\n\t\t}\n\t\tfunction pickAction(e) {\n\t\t\tconst value = e.target.value;\n\t\t\tonSelect(finding.path, value);\n\t\t}\n\t\t$$renderer.push(`<div${attr_class(\"row svelte-1r91dfo\", void 0, { \"expanded\": expanded })}${attr(\"data-path\", finding.path)}${attr(\"data-action\", selected)}><div class=\"row-head svelte-1r91dfo\"><span class=\"row-path svelte-1r91dfo\">${escape_html(finding.path)}</span> <span class=\"row-meta svelte-1r91dfo\">`);\n\t\tBadge($$renderer, {\n\t\t\ttone: ownershipTone(finding.ownership),\n\t\t\tchildren: ($$renderer) => {\n\t\t\t\t$$renderer.push(`<!---->${escape_html(finding.ownership)}`);\n\t\t\t},\n\t\t\t$$slots: { default: true }\n\t\t});\n\t\t$$renderer.push(`<!----> `);\n\t\tBadge($$renderer, {\n\t\t\ttone: \"muted\",\n\t\t\tchildren: ($$renderer) => {\n\t\t\t\t$$renderer.push(`<!---->${escape_html(finding.kind)}`);\n\t\t\t},\n\t\t\t$$slots: { default: true }\n\t\t});\n\t\t$$renderer.push(`<!----> <!--[-->`);\n\t\tconst each_array = ensure_array_like(finding.tags);\n\t\tfor (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {\n\t\t\tlet tag = each_array[$$index];\n\t\t\tBadge($$renderer, {\n\t\t\t\ttone: tag === \"contains-absolute-path\" ? \"warn\" : \"muted\",\n\t\t\t\tchildren: ($$renderer) => {\n\t\t\t\t\t$$renderer.push(`<!---->${escape_html(tag)}`);\n\t\t\t\t},\n\t\t\t\t$$slots: { default: true }\n\t\t\t});\n\t\t}\n\t\t$$renderer.push(`<!--]--></span> <span class=\"row-spacer svelte-1r91dfo\"></span> `);\n\t\t$$renderer.select({\n\t\t\tclass: \"row-action\",\n\t\t\tonchange: pickAction,\n\t\t\t\"aria-label\": `Action for ${stringify(finding.path)}`,\n\t\t\tvalue: selected\n\t\t}, ($$renderer) => {\n\t\t\t$$renderer.push(`<!--[-->`);\n\t\t\tconst each_array_1 = ensure_array_like(offered());\n\t\t\tfor (let $$index_1 = 0, $$length = each_array_1.length; $$index_1 < $$length; $$index_1++) {\n\t\t\t\tlet action = each_array_1[$$index_1];\n\t\t\t\t$$renderer.option({\n\t\t\t\t\tvalue: action,\n\t\t\t\t\tselected: action === selected\n\t\t\t\t}, ($$renderer) => {\n\t\t\t\t\t$$renderer.push(`${escape_html(actionLabel(action))}`);\n\t\t\t\t});\n\t\t\t}\n\t\t\t$$renderer.push(`<!--]-->`);\n\t\t}, \"svelte-1r91dfo\");\n\t\t$$renderer.push(` `);\n\t\tif (finding.kind === \"root-instructions\" || finding.kind === \"workflow-skill\" || finding.kind === \"subagent\" || finding.kind === \"client-config\") {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t$$renderer.push(`<button type=\"button\" class=\"btn ghost row-toggle svelte-1r91dfo\"${attr(\"aria-expanded\", expanded)}>${escape_html(expanded ? \"Hide\" : \"Preview\")}</button>`);\n\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t$$renderer.push(`<!--]--></div> `);\n\t\tif (isRuntime()) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t$$renderer.push(`<div class=\"row-runtime-note svelte-1r91dfo\">local runtime file — metadata only, no raw preview `);\n\t\t\tif (showsAbsolutePath()) {\n\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\t$$renderer.push(`· contains an absolute path`);\n\t\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t\t$$renderer.push(`<!--]--></div>`);\n\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t$$renderer.push(`<!--]--> <!--[-->`);\n\t\tconst each_array_2 = ensure_array_like(finding.notes);\n\t\tfor (let $$index_2 = 0, $$length = each_array_2.length; $$index_2 < $$length; $$index_2++) {\n\t\t\tlet note = each_array_2[$$index_2];\n\t\t\t$$renderer.push(`<div class=\"row-note svelte-1r91dfo\">note: ${escape_html(note)}</div>`);\n\t\t}\n\t\t$$renderer.push(`<!--]--> `);\n\t\tif (needsReplaceConfirm()) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t$$renderer.push(`<div class=\"row-confirm svelte-1r91dfo\"><label><input type=\"checkbox\"${attr(\"checked\", confirmReplace, true)}/> I understand this overwrites generated-owned content. (required to apply)</label></div>`);\n\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t$$renderer.push(`<!--]--> `);\n\t\tif (expanded) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t$$renderer.push(`<div class=\"row-preview svelte-1r91dfo\">`);\n\t\t\tif (preview.status === \"loading\") {\n\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\t$$renderer.push(`<div class=\"row-preview-state svelte-1r91dfo\">Loading preview…</div>`);\n\t\t\t} else if (preview.status === \"metadata-only\") {\n\t\t\t\t$$renderer.push(\"<!--[1-->\");\n\t\t\t\t$$renderer.push(`<div class=\"row-preview-state muted svelte-1r91dfo\">${escape_html(preview.notes.join(\" · \") || \"metadata only\")}</div>`);\n\t\t\t} else if (preview.status === \"denied\") {\n\t\t\t\t$$renderer.push(\"<!--[2-->\");\n\t\t\t\t$$renderer.push(`<div class=\"row-preview-state err svelte-1r91dfo\">preview refused: ${escape_html(preview.reason)}</div>`);\n\t\t\t} else if (preview.status === \"error\") {\n\t\t\t\t$$renderer.push(\"<!--[3-->\");\n\t\t\t\t$$renderer.push(`<div class=\"row-preview-state err svelte-1r91dfo\">${escape_html(preview.message)}</div>`);\n\t\t\t} else if (preview.status === \"ok\") {\n\t\t\t\t$$renderer.push(\"<!--[4-->\");\n\t\t\t\t$$renderer.push(`<div class=\"row-preview-meta svelte-1r91dfo\">rendered as <span class=\"path\">${escape_html(preview.kind)}</span> `);\n\t\t\t\tif (preview.truncated) {\n\t\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\t\t$$renderer.push(`· <span class=\"warn\">truncated</span>`);\n\t\t\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t\t\t$$renderer.push(`<!--]--></div> `);\n\t\t\t\tif (preview.kind === \"markdown\") {\n\t\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\t\t$$renderer.push(`<pre class=\"row-preview-body markdown svelte-1r91dfo\">${html(preview.sanitizedText)}</pre>`);\n\t\t\t\t} else {\n\t\t\t\t\t$$renderer.push(\"<!--[-1-->\");\n\t\t\t\t\t$$renderer.push(`<pre class=\"row-preview-body code svelte-1r91dfo\">${html(preview.sanitizedText)}</pre>`);\n\t\t\t\t}\n\t\t\t\t$$renderer.push(`<!--]-->`);\n\t\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t\t$$renderer.push(`<!--]--></div>`);\n\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t$$renderer.push(`<!--]--></div>`);\n\t});\n}\n//#endregion\n//#region src/routes/migration/+page.svelte\nfunction _page($$renderer, $$props) {\n\t$$renderer.component(($$renderer) => {\n\t\tlet { data } = $$props;\n\t\tlet report = derived(() => data.report);\n\t\tderived(() => data.csrfToken);\n\t\tlet selectedByPath = {};\n\t\tlet expandedByPath = {};\n\t\tlet previewByPath = {};\n\t\tlet confirmReplaceByPath = {};\n\t\tlet applying = false;\n\t\tlet planSummary = null;\n\t\tlet applyResult = null;\n\t\tlet errorMessage = null;\n\t\tfunction selectAction(path, action) {\n\t\t\tselectedByPath = {\n\t\t\t\t...selectedByPath,\n\t\t\t\t[path]: action\n\t\t\t};\n\t\t\tif (action !== \"replace-generated-owned\") confirmReplaceByPath = {\n\t\t\t\t...confirmReplaceByPath,\n\t\t\t\t[path]: false\n\t\t\t};\n\t\t\tplanSummary = null;\n\t\t\tapplyResult = null;\n\t\t\terrorMessage = null;\n\t\t}\n\t\tfunction toggleConfirmReplace(path, value) {\n\t\t\tconfirmReplaceByPath = {\n\t\t\t\t...confirmReplaceByPath,\n\t\t\t\t[path]: value\n\t\t\t};\n\t\t}\n\t\tasync function togglePreview(targetPath) {\n\t\t\tconst next = !expandedByPath[targetPath];\n\t\t\texpandedByPath = {\n\t\t\t\t...expandedByPath,\n\t\t\t\t[targetPath]: next\n\t\t\t};\n\t\t\tif (!next) return;\n\t\t\tif (previewByPath[targetPath]?.status === \"ok\") return;\n\t\t\tpreviewByPath = {\n\t\t\t\t...previewByPath,\n\t\t\t\t[targetPath]: { status: \"loading\" }\n\t\t\t};\n\t\t\ttry {\n\t\t\t\tconst url = `/api/migration/preview?path=${encodeURIComponent(targetPath)}`;\n\t\t\t\tconst response = await fetch(url);\n\t\t\t\tconst body = await response.json();\n\t\t\t\tif (response.ok && body.ok === true) {\n\t\t\t\t\tpreviewByPath = {\n\t\t\t\t\t\t...previewByPath,\n\t\t\t\t\t\t[targetPath]: {\n\t\t\t\t\t\t\tstatus: \"ok\",\n\t\t\t\t\t\t\tkind: body.kind,\n\t\t\t\t\t\t\tsanitizedText: body.sanitizedText,\n\t\t\t\t\t\t\ttruncated: body.truncated,\n\t\t\t\t\t\t\tnotes: body.notes ?? []\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (response.status === 200 && body.ok === false) {\n\t\t\t\t\tpreviewByPath = {\n\t\t\t\t\t\t...previewByPath,\n\t\t\t\t\t\t[targetPath]: {\n\t\t\t\t\t\t\tstatus: \"metadata-only\",\n\t\t\t\t\t\t\tnotes: body.notes ?? []\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tpreviewByPath = {\n\t\t\t\t\t...previewByPath,\n\t\t\t\t\t[targetPath]: {\n\t\t\t\t\t\tstatus: \"denied\",\n\t\t\t\t\t\treason: body.reason ?? \"unknown\",\n\t\t\t\t\t\tnotes: body.notes ?? []\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t} catch (err) {\n\t\t\t\tpreviewByPath = {\n\t\t\t\t\t...previewByPath,\n\t\t\t\t\t[targetPath]: {\n\t\t\t\t\t\tstatus: \"error\",\n\t\t\t\t\t\tmessage: err instanceof Error ? err.message : \"preview failed\"\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t\t$$renderer.push(`<div class=\"content\"><div class=\"page-intro\"><h2>Migration</h2> <p>Side-by-side adoption of existing <span class=\"path\">AGENTS.md</span>, <span class=\"path\">CLAUDE.md</span>, skills, subagents, and local\n config. Every action is local and reversible — nothing is written\n until you confirm the final plan.</p></div> `);\n\t\tTrustBanner($$renderer, {});\n\t\t$$renderer.push(`<!----> <div class=\"posture-strip svelte-c3xvv7\" data-testid=\"posture-strip\">`);\n\t\tBadge($$renderer, {\n\t\t\ttone: \"ok\",\n\t\t\tchildren: ($$renderer) => {\n\t\t\t\t$$renderer.push(`<!---->local`);\n\t\t\t},\n\t\t\t$$slots: { default: true }\n\t\t});\n\t\t$$renderer.push(`<!----> `);\n\t\tBadge($$renderer, {\n\t\t\ttone: \"ok\",\n\t\t\tchildren: ($$renderer) => {\n\t\t\t\t$$renderer.push(`<!---->no upload`);\n\t\t\t},\n\t\t\t$$slots: { default: true }\n\t\t});\n\t\t$$renderer.push(`<!----> `);\n\t\tBadge($$renderer, {\n\t\t\ttone: \"ok\",\n\t\t\tchildren: ($$renderer) => {\n\t\t\t\t$$renderer.push(`<!---->read-only by default`);\n\t\t\t},\n\t\t\t$$slots: { default: true }\n\t\t});\n\t\t$$renderer.push(`<!----> <span class=\"posture-spacer svelte-c3xvv7\"></span> <span class=\"path muted svelte-c3xvv7\">root · ${escape_html(report().root)}</span></div> <section><h3 class=\"step svelte-c3xvv7\">1. Scan summary</h3> <div class=\"summary svelte-c3xvv7\">`);\n\t\tBadge($$renderer, {\n\t\t\ttone: \"info\",\n\t\t\tchildren: ($$renderer) => {\n\t\t\t\t$$renderer.push(`<!---->${escape_html(report().files.length)} files`);\n\t\t\t},\n\t\t\t$$slots: { default: true }\n\t\t});\n\t\t$$renderer.push(`<!----> `);\n\t\tBadge($$renderer, {\n\t\t\ttone: report().summary.conflicts > 0 ? \"warn\" : \"muted\",\n\t\t\tchildren: ($$renderer) => {\n\t\t\t\t$$renderer.push(`<!---->${escape_html(report().summary.conflicts)} conflicts`);\n\t\t\t},\n\t\t\t$$slots: { default: true }\n\t\t});\n\t\t$$renderer.push(`<!----> `);\n\t\tBadge($$renderer, {\n\t\t\ttone: \"muted\",\n\t\t\tchildren: ($$renderer) => {\n\t\t\t\t$$renderer.push(`<!---->${escape_html(report().summary.preservedManualFiles)} preserve`);\n\t\t\t},\n\t\t\t$$slots: { default: true }\n\t\t});\n\t\t$$renderer.push(`<!----> `);\n\t\tBadge($$renderer, {\n\t\t\ttone: \"muted\",\n\t\t\tchildren: ($$renderer) => {\n\t\t\t\t$$renderer.push(`<!---->${escape_html(report().summary.wouldUpdateRegions)} would update regions`);\n\t\t\t},\n\t\t\t$$slots: { default: true }\n\t\t});\n\t\t$$renderer.push(`<!----> `);\n\t\tBadge($$renderer, {\n\t\t\ttone: report().summary.nameCollisions > 0 ? \"warn\" : \"muted\",\n\t\t\tchildren: ($$renderer) => {\n\t\t\t\t$$renderer.push(`<!---->${escape_html(report().summary.nameCollisions)} name collisions`);\n\t\t\t},\n\t\t\t$$slots: { default: true }\n\t\t});\n\t\t$$renderer.push(`<!----> `);\n\t\tif (report().profileFound) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\tBadge($$renderer, {\n\t\t\t\ttone: \"ok\",\n\t\t\t\tchildren: ($$renderer) => {\n\t\t\t\t\t$$renderer.push(`<!---->ai-profile.yaml present`);\n\t\t\t\t},\n\t\t\t\t$$slots: { default: true }\n\t\t\t});\n\t\t} else {\n\t\t\t$$renderer.push(\"<!--[-1-->\");\n\t\t\tBadge($$renderer, {\n\t\t\t\ttone: \"warn\",\n\t\t\t\tchildren: ($$renderer) => {\n\t\t\t\t\t$$renderer.push(`<!---->ai-profile.yaml not found`);\n\t\t\t\t},\n\t\t\t\t$$slots: { default: true }\n\t\t\t});\n\t\t}\n\t\t$$renderer.push(`<!--]--></div></section> <section><h3 class=\"step svelte-c3xvv7\">2. Profile proposal</h3> `);\n\t\tif (report().profileFound) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t$$renderer.push(`<p class=\"muted-line svelte-c3xvv7\">Profile already exists. Updates flow through <span class=\"path\">agent-profile compile --write</span>.</p>`);\n\t\t} else {\n\t\t\t$$renderer.push(\"<!--[-1-->\");\n\t\t\t$$renderer.push(`<p class=\"muted-line svelte-c3xvv7\">Run <span class=\"path\">npx agent-profile init</span> to create\n ai-profile.yaml. The wizard reuses the same import logic shown below.</p>`);\n\t\t}\n\t\t$$renderer.push(`<!--]--></section> <section><h3 class=\"step svelte-c3xvv7\">3 — 5. Files, regions, and conflicts</h3> `);\n\t\tif (report().files.length === 0) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t$$renderer.push(`<div class=\"empty-note svelte-c3xvv7\">No supported files found under <span class=\"path\">${escape_html(report().root)}</span>.</div>`);\n\t\t} else {\n\t\t\t$$renderer.push(\"<!--[-1-->\");\n\t\t\t$$renderer.push(`<!--[-->`);\n\t\t\tconst each_array = ensure_array_like(report().files);\n\t\t\tfor (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {\n\t\t\t\tlet finding = each_array[$$index];\n\t\t\t\tFileActionRow($$renderer, {\n\t\t\t\t\tfinding,\n\t\t\t\t\tselected: selectedByPath[finding.path] ?? \"preserve\",\n\t\t\t\t\tonSelect: selectAction,\n\t\t\t\t\tonTogglePreview: togglePreview,\n\t\t\t\t\tpreview: previewByPath[finding.path] ?? { status: \"idle\" },\n\t\t\t\t\texpanded: !!expandedByPath[finding.path],\n\t\t\t\t\tconfirmReplace: !!confirmReplaceByPath[finding.path],\n\t\t\t\t\tonToggleConfirmReplace: toggleConfirmReplace,\n\t\t\t\t\tprofileFound: report().profileFound\n\t\t\t\t});\n\t\t\t}\n\t\t\t$$renderer.push(`<!--]-->`);\n\t\t}\n\t\t$$renderer.push(`<!--]--></section> `);\n\t\tif (report().collisions.length > 0) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t$$renderer.push(`<section data-testid=\"collisions-section\"><h3 class=\"step svelte-c3xvv7\">5a. Skill / subagent name collisions</h3> <p class=\"muted-line svelte-c3xvv7\">Two or more files declare the same <span class=\"path\">name:</span> in their frontmatter. Compile clients deduplicate by name, so\n only one of the colliding entries wins — rename or delete the\n others before applying.</p> <ul class=\"collisions-list svelte-c3xvv7\"><!--[-->`);\n\t\t\tconst each_array_1 = ensure_array_like(report().collisions);\n\t\t\tfor (let $$index_2 = 0, $$length = each_array_1.length; $$index_2 < $$length; $$index_2++) {\n\t\t\t\tlet collision = each_array_1[$$index_2];\n\t\t\t\t$$renderer.push(`<li class=\"svelte-c3xvv7\">`);\n\t\t\t\tBadge($$renderer, {\n\t\t\t\t\ttone: \"warn\",\n\t\t\t\t\tchildren: ($$renderer) => {\n\t\t\t\t\t\t$$renderer.push(`<!---->${escape_html(collision.kind)}`);\n\t\t\t\t\t},\n\t\t\t\t\t$$slots: { default: true }\n\t\t\t\t});\n\t\t\t\t$$renderer.push(`<!----> <span class=\"path\">${escape_html(collision.name)}</span> <ul class=\"collisions-paths svelte-c3xvv7\"><!--[-->`);\n\t\t\t\tconst each_array_2 = ensure_array_like(collision.paths);\n\t\t\t\tfor (let $$index_1 = 0, $$length = each_array_2.length; $$index_1 < $$length; $$index_1++) {\n\t\t\t\t\tlet p = each_array_2[$$index_1];\n\t\t\t\t\t$$renderer.push(`<li><span class=\"path\">${escape_html(p)}</span></li>`);\n\t\t\t\t}\n\t\t\t\t$$renderer.push(`<!--]--></ul></li>`);\n\t\t\t}\n\t\t\t$$renderer.push(`<!--]--></ul></section>`);\n\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t$$renderer.push(`<!--]--> <section><h3 class=\"step svelte-c3xvv7\">6. .gitignore recommendations</h3> <ul class=\"gitignore-list svelte-c3xvv7\"><!--[-->`);\n\t\tconst each_array_3 = ensure_array_like(report().gitignore);\n\t\tfor (let $$index_3 = 0, $$length = each_array_3.length; $$index_3 < $$length; $$index_3++) {\n\t\t\tlet g = each_array_3[$$index_3];\n\t\t\t$$renderer.push(`<li><span class=\"path\">${escape_html(g.line)}</span> <span class=\"muted-line svelte-c3xvv7\">· ${escape_html(g.action === \"already-present\" ? \"already present\" : \"suggested addition\")}\n · ${escape_html(g.reason)}</span></li>`);\n\t\t}\n\t\t$$renderer.push(`<!--]--></ul></section> <section><h3 class=\"step svelte-c3xvv7\">7. Final write plan</h3> <div class=\"plan-actions svelte-c3xvv7\"><button class=\"btn\" type=\"button\"${attr(\"disabled\", applying, true)}>Build plan</button> `);\n\t\tif (planSummary) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t$$renderer.push(`<button class=\"btn primary\" type=\"button\"${attr(\"disabled\", applying, true)}>Apply ${escape_html(planSummary.counts.create + planSummary.counts.change)} writes</button>`);\n\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t$$renderer.push(`<!--]--> `);\n\t\tif (errorMessage) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t$$renderer.push(`<span class=\"err svelte-c3xvv7\">${escape_html(errorMessage)}</span>`);\n\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t$$renderer.push(`<!--]--></div> `);\n\t\tif (planSummary) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t$$renderer.push(`<div class=\"plan-summary svelte-c3xvv7\" data-testid=\"plan-summary\"><div class=\"plan-counts svelte-c3xvv7\">`);\n\t\t\tBadge($$renderer, {\n\t\t\t\ttone: \"ok\",\n\t\t\t\tchildren: ($$renderer) => {\n\t\t\t\t\t$$renderer.push(`<!---->${escape_html(planSummary.counts.create)} create`);\n\t\t\t\t},\n\t\t\t\t$$slots: { default: true }\n\t\t\t});\n\t\t\t$$renderer.push(`<!----> `);\n\t\t\tBadge($$renderer, {\n\t\t\t\ttone: \"info\",\n\t\t\t\tchildren: ($$renderer) => {\n\t\t\t\t\t$$renderer.push(`<!---->${escape_html(planSummary.counts.change)} change`);\n\t\t\t\t},\n\t\t\t\t$$slots: { default: true }\n\t\t\t});\n\t\t\t$$renderer.push(`<!----> `);\n\t\t\tBadge($$renderer, {\n\t\t\t\ttone: \"muted\",\n\t\t\t\tchildren: ($$renderer) => {\n\t\t\t\t\t$$renderer.push(`<!---->${escape_html(planSummary.counts.unchanged)} unchanged`);\n\t\t\t\t},\n\t\t\t\t$$slots: { default: true }\n\t\t\t});\n\t\t\t$$renderer.push(`<!----> `);\n\t\t\tif (planSummary.requiresReplaceConfirmation) {\n\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\tBadge($$renderer, {\n\t\t\t\t\ttone: \"warn\",\n\t\t\t\t\tchildren: ($$renderer) => {\n\t\t\t\t\t\t$$renderer.push(`<!---->replace confirmation required`);\n\t\t\t\t\t},\n\t\t\t\t\t$$slots: { default: true }\n\t\t\t\t});\n\t\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t\t$$renderer.push(`<!--]--></div> `);\n\t\t\tif (planSummary.actions.length > 0) {\n\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\t$$renderer.push(`<ul class=\"plan-list svelte-c3xvv7\"><!--[-->`);\n\t\t\t\tconst each_array_4 = ensure_array_like(planSummary.actions);\n\t\t\t\tfor (let $$index_4 = 0, $$length = each_array_4.length; $$index_4 < $$length; $$index_4++) {\n\t\t\t\t\tlet item = each_array_4[$$index_4];\n\t\t\t\t\t$$renderer.push(`<li class=\"svelte-c3xvv7\"><span class=\"path\">${escape_html(item.path)}</span> · <span class=\"muted-line svelte-c3xvv7\">${escape_html(item.action)}</span> · <span class=\"muted-line svelte-c3xvv7\">${escape_html(item.plannedBytes)} bytes</span></li>`);\n\t\t\t\t}\n\t\t\t\t$$renderer.push(`<!--]--></ul>`);\n\t\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t\t$$renderer.push(`<!--]--> `);\n\t\t\tif (planSummary.refusals.length > 0) {\n\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\t$$renderer.push(`<div class=\"plan-refusals svelte-c3xvv7\"><strong>Refusals:</strong> <ul class=\"svelte-c3xvv7\"><!--[-->`);\n\t\t\t\tconst each_array_5 = ensure_array_like(planSummary.refusals);\n\t\t\t\tfor (let $$index_5 = 0, $$length = each_array_5.length; $$index_5 < $$length; $$index_5++) {\n\t\t\t\t\tlet r = each_array_5[$$index_5];\n\t\t\t\t\t$$renderer.push(`<li><span class=\"path\">${escape_html(r.path)}</span> · ${escape_html(r.reason)} — ${escape_html(r.note)}</li>`);\n\t\t\t\t}\n\t\t\t\t$$renderer.push(`<!--]--></ul></div>`);\n\t\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t\t$$renderer.push(`<!--]--></div>`);\n\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t$$renderer.push(`<!--]--></section> <section><h3 class=\"step svelte-c3xvv7\">8. Doctor preview</h3> `);\n\t\tif (!applyResult) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t$$renderer.push(`<p class=\"muted-line svelte-c3xvv7\">Doctor runs automatically after the plan is applied. Findings stay\n visible even if the apply succeeds — failures are not auto-reverted.</p>`);\n\t\t} else if (!applyResult.doctor.ok) {\n\t\t\t$$renderer.push(\"<!--[1-->\");\n\t\t\t$$renderer.push(`<div class=\"doctor-err svelte-c3xvv7\">Doctor failed to run: ${escape_html(applyResult.doctor.message ?? \"(no message)\")}</div>`);\n\t\t} else {\n\t\t\t$$renderer.push(\"<!--[-1-->\");\n\t\t\t$$renderer.push(`<div class=\"doctor-status svelte-c3xvv7\">`);\n\t\t\tBadge($$renderer, {\n\t\t\t\ttone: applyResult.doctor.status === \"pass\" ? \"ok\" : applyResult.doctor.status === \"warn\" ? \"warn\" : \"err\",\n\t\t\t\tchildren: ($$renderer) => {\n\t\t\t\t\t$$renderer.push(`<!---->doctor ${escape_html(applyResult.doctor.status)}`);\n\t\t\t\t},\n\t\t\t\t$$slots: { default: true }\n\t\t\t});\n\t\t\t$$renderer.push(`<!----> <span class=\"muted-line svelte-c3xvv7\">${escape_html(applyResult.doctor.issues?.length ?? 0)} issues</span></div> `);\n\t\t\tif ((applyResult.doctor.issues ?? []).length > 0) {\n\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\t$$renderer.push(`<ul class=\"doctor-list svelte-c3xvv7\"><!--[-->`);\n\t\t\t\tconst each_array_6 = ensure_array_like(applyResult.doctor.issues ?? []);\n\t\t\t\tfor (let $$index_6 = 0, $$length = each_array_6.length; $$index_6 < $$length; $$index_6++) {\n\t\t\t\t\tlet issue = each_array_6[$$index_6];\n\t\t\t\t\t$$renderer.push(`<li class=\"svelte-c3xvv7\">`);\n\t\t\t\t\tBadge($$renderer, {\n\t\t\t\t\t\ttone: issue.severity === \"error\" ? \"err\" : issue.severity === \"warning\" ? \"warn\" : \"muted\",\n\t\t\t\t\t\tchildren: ($$renderer) => {\n\t\t\t\t\t\t\t$$renderer.push(`<!---->${escape_html(issue.severity)}`);\n\t\t\t\t\t\t},\n\t\t\t\t\t\t$$slots: { default: true }\n\t\t\t\t\t});\n\t\t\t\t\t$$renderer.push(`<!----> <span class=\"path\">${escape_html(issue.path)}</span> · <span class=\"muted-line svelte-c3xvv7\">${escape_html(issue.code)}</span> · ${escape_html(issue.message)}</li>`);\n\t\t\t\t}\n\t\t\t\t$$renderer.push(`<!--]--></ul>`);\n\t\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t\t$$renderer.push(`<!--]--> <p class=\"muted-line svelte-c3xvv7\">Revert is a separate action — re-run with different selections, or\n edit files manually.</p>`);\n\t\t}\n\t\t$$renderer.push(`<!--]--></section></div>`);\n\t});\n}\n//#endregion\nexport { _page as default };\n"],"names":[],"mappings":";;;;AAIA;AACA,SAAS,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,EAAE,EAAE;AAC/C,CAAC,MAAM,Y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E;AACvB,MAAM,IAAI,EAAE,KAAK,CAAC,QAAQ,KAAK,OAAO,GAAG,KAAK,GAAG,KAAK,CAAC,QAAQ,KAAK,SAAS,GAAG,MAAM,GAAG,OAAO;AAChG,MAAM,QAAQ,EAAE,CAAC,UAAU,KAAK;AAChC,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;AAC/D,MAAM,CAED,CAAC,CAAC;AACP,KAAK,UAAU,CAAC,IAAI,CAAC,CAAC,2BAA2B,EAAE,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,iDAAiD,EAAE,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC;AACpM,IAAI;AACJ,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC,aAAa,CAAC,CAAC;AACpC,GAAG,CAAC,MAAM,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC;AACvC,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;AACpB,gCAAgC,CAAC,CAAC;AAClC,EAAE;AACF,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,wBAAwB,CAAC,CAAC;AAC7C,CAAC,CAAC,CAAC;AACH;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as escape_html, g as derived } from './index.js-
|
|
2
|
-
import { S as SafetyBadge } from './SafetyBadge-
|
|
3
|
-
import { T as TrustBanner, B as Badge } from './Badge-
|
|
1
|
+
import { c as escape_html, g as derived } from './index.js-v3uAcZBW.js';
|
|
2
|
+
import { S as SafetyBadge } from './SafetyBadge-DhCPQhj2.js';
|
|
3
|
+
import { T as TrustBanner, B as Badge } from './Badge-Y2c835hW.js';
|
|
4
4
|
|
|
5
5
|
//#region src/routes/settings/+page.svelte
|
|
6
6
|
function _page($$renderer, $$props) {
|
|
@@ -89,4 +89,4 @@ function _page($$renderer, $$props) {
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
export { _page as default };
|
|
92
|
-
//# sourceMappingURL=_page.svelte-
|
|
92
|
+
//# sourceMappingURL=_page.svelte-wqrxHsYa.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_page.svelte-
|
|
1
|
+
{"version":3,"file":"_page.svelte-wqrxHsYa.js","sources":["../../../.svelte-kit/output/server/entries/pages/settings/_page.svelte.js"],"sourcesContent":["import { E as escape_html, i as derived } from \"../../../chunks/server.js\";\nimport { t as SafetyBadge } from \"../../../chunks/SafetyBadge.js\";\nimport { t as TrustBanner } from \"../../../chunks/TrustBanner.js\";\nimport { t as Badge } from \"../../../chunks/Badge.js\";\n//#region src/routes/settings/+page.svelte\nfunction _page($$renderer, $$props) {\n\t$$renderer.component(($$renderer) => {\n\t\tlet { data } = $$props;\n\t\tlet p = derived(() => data.project);\n\t\t$$renderer.push(`<div class=\"content\"><div class=\"page-intro\"><h2>Settings</h2> <p>Read-only view of Phase 6 UI posture. The browser does not persist\n preferences or write configuration; durable behavior is still owned by <span class=\"path\">ai-profile.yaml</span> and terminal commands.</p></div> `);\n\t\tTrustBanner($$renderer, { compact: true });\n\t\t$$renderer.push(`<!----> <div class=\"settings-layout\"><section><div class=\"settings-section-lbl\">phase 6 behavior</div> <div class=\"settings-grid\"><div class=\"settings-tile\"><span class=\"k\">browser mode</span> `);\n\t\tBadge($$renderer, {\n\t\t\ttone: \"accent\",\n\t\t\tchildren: ($$renderer) => {\n\t\t\t\t$$renderer.push(`<!---->read-only`);\n\t\t\t},\n\t\t\t$$slots: { default: true }\n\t\t});\n\t\t$$renderer.push(`<!----> <p>Inspects profile data, generated artifacts, doctor output, and diffs.</p></div> <div class=\"settings-tile\"><span class=\"k\">write path</span> `);\n\t\tBadge($$renderer, {\n\t\t\ttone: \"muted\",\n\t\t\tchildren: ($$renderer) => {\n\t\t\t\t$$renderer.push(`<!---->terminal`);\n\t\t\t},\n\t\t\t$$slots: { default: true }\n\t\t});\n\t\t$$renderer.push(`<!----> <p>Use the CLI for compile, dry-run, and write operations.</p></div> <div class=\"settings-tile\"><span class=\"k\">network posture</span> `);\n\t\tBadge($$renderer, {\n\t\t\ttone: \"ok\",\n\t\t\tchildren: ($$renderer) => {\n\t\t\t\t$$renderer.push(`<!---->local`);\n\t\t\t},\n\t\t\t$$slots: { default: true }\n\t\t});\n\t\t$$renderer.push(`<!----> <p>No account, sync, telemetry, hosted execution, or source upload.</p></div></div> <div class=\"settings-section-lbl\">current project</div> <div class=\"card\"><div class=\"kv-list settings-kv\"><span class=\"k\">project</span> <span class=\"v\">${escape_html(p().rootName)}</span> <span class=\"k\">profile</span> <span class=\"v\">`);\n\t\tif (p().profileFound) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\tBadge($$renderer, {\n\t\t\t\ttone: \"ok\",\n\t\t\t\tchildren: ($$renderer) => {\n\t\t\t\t\t$$renderer.push(`<!---->found`);\n\t\t\t\t},\n\t\t\t\t$$slots: { default: true }\n\t\t\t});\n\t\t} else {\n\t\t\t$$renderer.push(\"<!--[-1-->\");\n\t\t\tBadge($$renderer, {\n\t\t\t\ttone: \"err\",\n\t\t\t\tchildren: ($$renderer) => {\n\t\t\t\t\t$$renderer.push(`<!---->missing`);\n\t\t\t\t},\n\t\t\t\t$$slots: { default: true }\n\t\t\t});\n\t\t}\n\t\t$$renderer.push(`<!--]--></span> <span class=\"k\">profile hash</span> <span class=\"v\">${escape_html(p().profileHash ?? \"not available\")}</span> <span class=\"k\">safety</span> <span class=\"v\">`);\n\t\tSafetyBadge($$renderer, {\n\t\t\tmode: p().safetyMode,\n\t\t\tsize: \"sm\"\n\t\t});\n\t\t$$renderer.push(`<!----></span></div></div> <div class=\"settings-section-lbl\">terminal commands</div> <div class=\"command-callout vertical\"><span class=\"lbl\">safe inspection</span> `);\n\t\tif (!p().profileFound) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t$$renderer.push(`<span class=\"cmd\">npx agent-profile init --write</span>`);\n\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t$$renderer.push(`<!--]--> <span class=\"cmd\">npx agent-profile compile --dry-run</span> <span class=\"cmd\">npx agent-profile doctor</span> <span class=\"lbl\">explicit write</span> <span class=\"cmd\">npx agent-profile compile --write</span></div></section> <aside class=\"settings-panel\"><div class=\"settings-section-lbl\">preferences</div> <div class=\"settings-list\"><div class=\"settings-row\"><div><span class=\"t\">Theme</span> <span class=\"d\">Dark theme is the Phase 6 shipped surface.</span></div> `);\n\t\tBadge($$renderer, {\n\t\t\ttone: \"muted\",\n\t\t\tchildren: ($$renderer) => {\n\t\t\t\t$$renderer.push(`<!---->preview later`);\n\t\t\t},\n\t\t\t$$slots: { default: true }\n\t\t});\n\t\t$$renderer.push(`<!----></div> <div class=\"settings-row\"><div><span class=\"t\">Density</span> <span class=\"d\">Comfortable density is fixed for this phase.</span></div> `);\n\t\tBadge($$renderer, {\n\t\t\ttone: \"muted\",\n\t\t\tchildren: ($$renderer) => {\n\t\t\t\t$$renderer.push(`<!---->not persisted`);\n\t\t\t},\n\t\t\t$$slots: { default: true }\n\t\t});\n\t\t$$renderer.push(`<!----></div> <div class=\"settings-row\"><div><span class=\"t\">User-level writes</span> <span class=\"d\">Global paths such as ~/.codex and ~/.claude stay off.</span></div> `);\n\t\tBadge($$renderer, {\n\t\t\ttone: \"ok\",\n\t\t\tchildren: ($$renderer) => {\n\t\t\t\t$$renderer.push(`<!---->off`);\n\t\t\t},\n\t\t\t$$slots: { default: true }\n\t\t});\n\t\t$$renderer.push(`<!----></div> <div class=\"settings-row\"><div><span class=\"t\">Global memory</span> <span class=\"d\">No global memory or cross-project sync in the MVP.</span></div> `);\n\t\tBadge($$renderer, {\n\t\t\ttone: \"ok\",\n\t\t\tchildren: ($$renderer) => {\n\t\t\t\t$$renderer.push(`<!---->off`);\n\t\t\t},\n\t\t\t$$slots: { default: true }\n\t\t});\n\t\t$$renderer.push(`<!----></div> <div class=\"settings-row\"><div><span class=\"t\">Verbose logs</span> <span class=\"d\">Activity logging is represented by the local Activity screen.</span></div> `);\n\t\tBadge($$renderer, {\n\t\t\ttone: \"muted\",\n\t\t\tchildren: ($$renderer) => {\n\t\t\t\t$$renderer.push(`<!---->deferred`);\n\t\t\t},\n\t\t\t$$slots: { default: true }\n\t\t});\n\t\t$$renderer.push(`<!----></div></div></aside></div> <div class=\"settings-foot-note\">Phase 6 has no account, login, sync, browser writes, or persisted UI preferences.</div></div>`);\n\t});\n}\n//#endregion\nexport { _page as default };\n"],"names":[],"mappings":";;;;AAIA;AACA,SAAS,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE;AACpC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,UAAU,KAAK;AACtC,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,OAAO;AACxB,EAAE,IAAI,CAAC,GAAG,OAAO,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC;AACrC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC;AACnB,wJAAwJ,CAAC,CAAC;AAC1J,EAAE,WAAW,CAAC,UAAU,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAC5C,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,iMAAiM,CAAC,CAAC;AACtN,EAAE,KAAK,CAAC,UAAU,EAAE;AACpB,GAAG,IAAI,EAAE,QAAQ;AACjB,GAAG,QAAQ,EAAE,CAAC,UAAU,KAAK;AAC7B,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC,gBAAgB,CAAC,CAAC;AACvC,GAAG,CAED,CAAC,CAAC;AACJ,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,wJAAwJ,CAAC,CAAC;AAC7K,EAAE,KAAK,CAAC,UAAU,EAAE;AACpB,GAAG,IAAI,EAAE,OAAO;AAChB,GAAG,QAAQ,EAAE,CAAC,UAAU,KAAK;AAC7B,IAAI,UAAU,CAAC,IAAI,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EAAE;AACpB,GAAG,IAAI,EAAE,IAAI;AACb,GAAG,QAAQ,EAAE,CAAC,UAAU,KAAK;AAC7B,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,CAAC;AACjC,GAAG,CAED,CAAC,CAAC;AACJ,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,4KAA4K,CAAC,CAAC;AACjM,EAAE,KAAK,CAAC,UAAU,EAAE;AACpB,GAAG,IAAI,EAAE,OAAO;AAChB,GAAG,QAAQ,EAAE,CAAC,UAAU,KAAK;AAC7B,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC,eAAe,CAAC,CAAC;AACtC,GAAG,CAED,CAAC,CAAC;AACJ,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,+JAA+J,CAAC,CAAC;AACpL,CAAC,CAAC,CAAC;AACH;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as resolveProjectRoot, x as readLockfileForRegions, c as compileProfile, y as planRootInstructionsAdoption, z as planWrites, p as parseProfileYaml, R as REGION_AWARE_ROOT_PATHS } from './projectContext-
|
|
2
|
-
import { r as readJsonRequestBody } from './profileApiHelpers-
|
|
1
|
+
import { r as resolveProjectRoot, x as readLockfileForRegions, c as compileProfile, y as planRootInstructionsAdoption, z as planWrites, p as parseProfileYaml, R as REGION_AWARE_ROOT_PATHS } from './projectContext-A3_20XfX.js';
|
|
2
|
+
import { r as readJsonRequestBody } from './profileApiHelpers-Cm4N8UkT.js';
|
|
3
3
|
import { v as verifyCsrfToken, s as storeMigrationPlan } from './tokenStore-CTHhmHsk.js';
|
|
4
|
-
import { j as json } from './index.js-
|
|
4
|
+
import { j as json } from './index.js-v3uAcZBW.js';
|
|
5
5
|
import { readFile } from 'node:fs/promises';
|
|
6
6
|
import path from 'node:path';
|
|
7
7
|
import 'process';
|
|
@@ -333,4 +333,4 @@ function isRecord(v) {
|
|
|
333
333
|
}
|
|
334
334
|
|
|
335
335
|
export { POST };
|
|
336
|
-
//# sourceMappingURL=_server.ts-
|
|
336
|
+
//# sourceMappingURL=_server.ts-3Z45ckHV.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_server.ts-B6p7ukMz.js","sources":["../../../.svelte-kit/output/server/entries/endpoints/api/migration/plan/_server.ts.js"],"sourcesContent":["import { _ as compileProfile, h as planWrites, l as planRootInstructionsAdoption, r as resolveProjectRoot, s as REGION_AWARE_ROOT_PATHS, u as readLockfileForRegions } from \"../../../../../chunks/projectContext.js\";\nimport { _ as parseProfileYaml } from \"../../../../../chunks/src.js\";\nimport { r as readJsonRequestBody } from \"../../../../../chunks/profileApiHelpers.js\";\nimport { a as storeMigrationPlan, s as verifyCsrfToken } from \"../../../../../chunks/tokenStore.js\";\nimport { json } from \"@sveltejs/kit\";\nimport { readFile } from \"node:fs/promises\";\nimport path from \"node:path\";\n//#region src/lib/server/migrationPlan.ts\nvar REGION_ROOTS = new Set(REGION_AWARE_ROOT_PATHS);\nasync function buildMigrationPlan(rootDir, rows) {\n\tconst profile = await readOptionalProfile(rootDir);\n\tconst lockfile = await readLockfileForRegions(rootDir);\n\tlet compiledGeneratedByPath;\n\tlet compileError;\n\tif (profile) {\n\t\tconst result = compileProfile({ profile });\n\t\tif (result.ok) {\n\t\t\tcompiledGeneratedByPath = /* @__PURE__ */ new Map();\n\t\t\tfor (const f of result.files) compiledGeneratedByPath.set(f.path, f.bytes);\n\t\t} else compileError = result.issues.map((issue) => `${issue.code}: ${issue.message}`).join(\"; \");\n\t}\n\tconst generatedBytesByRoot = /* @__PURE__ */ new Map();\n\tif (compiledGeneratedByPath) for (const root of REGION_ROOTS) {\n\t\tconst bytes = compiledGeneratedByPath.get(root);\n\t\tif (bytes) generatedBytesByRoot.set(root, bytes);\n\t}\n\tconst rootAdoptions = await planRootInstructionsAdoption(rootDir, generatedBytesByRoot);\n\tconst rootOutcomeByPath = /* @__PURE__ */ new Map();\n\tfor (const outcome of rootAdoptions) rootOutcomeByPath.set(outcome.path, outcome);\n\tconst ownershipByPath = /* @__PURE__ */ new Map();\n\tif (lockfile) for (const output of lockfile.outputs) ownershipByPath.set(output.path, output.ownership);\n\tconst writes = [];\n\tconst refusals = [];\n\tconst resolved = [];\n\tfor (const row of rows) {\n\t\tif (row.action === \"skip\" || row.action === \"preserve\") {\n\t\t\tresolved.push({\n\t\t\t\tpath: row.path,\n\t\t\t\taction: row.action,\n\t\t\t\tbytes: 0\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tif (row.action === \"replace-generated-owned\" && row.confirmReplace !== true) {\n\t\t\trefusals.push({\n\t\t\t\tpath: row.path,\n\t\t\t\treason: \"missing-replace-confirmation\",\n\t\t\t\tnote: \"replace-generated-owned requires confirmReplace:true\"\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tif (REGION_ROOTS.has(row.path)) {\n\t\t\tconst outcome = rootOutcomeByPath.get(row.path);\n\t\t\tif (!outcome) {\n\t\t\t\trefusals.push({\n\t\t\t\t\tpath: row.path,\n\t\t\t\t\treason: \"unsupported-path\",\n\t\t\t\t\tnote: \"no root outcome was computed for this path\"\n\t\t\t\t});\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (row.action === \"add-regions\") {\n\t\t\t\tif (!profile) {\n\t\t\t\t\trefusals.push({\n\t\t\t\t\t\tpath: row.path,\n\t\t\t\t\t\treason: \"requires-profile\",\n\t\t\t\t\t\tnote: \"add-regions needs ai-profile.yaml so compile can emit the generated region\"\n\t\t\t\t\t});\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (compileError) {\n\t\t\t\t\trefusals.push({\n\t\t\t\t\t\tpath: row.path,\n\t\t\t\t\t\treason: \"compile-failed\",\n\t\t\t\t\t\tnote: compileError\n\t\t\t\t\t});\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tapplyRootOutcome(row, outcome, true, void 0, writes, refusals, resolved);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (row.action === \"update-generated-region\") {\n\t\t\t\tif (!profile) {\n\t\t\t\t\trefusals.push({\n\t\t\t\t\t\tpath: row.path,\n\t\t\t\t\t\treason: \"requires-profile\",\n\t\t\t\t\t\tnote: \"update-generated-region needs ai-profile.yaml; create one first\"\n\t\t\t\t\t});\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (compileError) {\n\t\t\t\t\trefusals.push({\n\t\t\t\t\t\tpath: row.path,\n\t\t\t\t\t\treason: \"compile-failed\",\n\t\t\t\t\t\tnote: compileError\n\t\t\t\t\t});\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (!generatedBytesByRoot.has(row.path)) {\n\t\t\t\t\trefusals.push({\n\t\t\t\t\t\tpath: row.path,\n\t\t\t\t\t\treason: \"no-compiled-output\",\n\t\t\t\t\t\tnote: `compile did not emit ${row.path}`\n\t\t\t\t\t});\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tapplyRootOutcome(row, outcome, true, void 0, writes, refusals, resolved);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (row.action === \"replace-generated-owned\") {\n\t\t\t\trefusals.push({\n\t\t\t\t\tpath: row.path,\n\t\t\t\t\treason: \"ownership-mismatch\",\n\t\t\t\t\tnote: \"replace-generated-owned is not available for root instructions; use update-generated-region\"\n\t\t\t\t});\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\tif (!profile) {\n\t\t\trefusals.push({\n\t\t\t\tpath: row.path,\n\t\t\t\treason: \"requires-profile\",\n\t\t\t\tnote: \"this action needs ai-profile.yaml; create one first\"\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tif (compileError) {\n\t\t\trefusals.push({\n\t\t\t\tpath: row.path,\n\t\t\t\treason: \"compile-failed\",\n\t\t\t\tnote: compileError\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tconst compiledBytes = compiledGeneratedByPath?.get(row.path);\n\t\tif (!compiledBytes) {\n\t\t\trefusals.push({\n\t\t\t\tpath: row.path,\n\t\t\t\treason: \"no-compiled-output\",\n\t\t\t\tnote: `compile did not emit ${row.path}`\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tif (row.action === \"replace-generated-owned\") {\n\t\t\tconst ownership = ownershipByPath.get(row.path);\n\t\t\tif (ownership !== \"generated-owned\") {\n\t\t\t\trefusals.push({\n\t\t\t\t\tpath: row.path,\n\t\t\t\t\treason: \"ownership-mismatch\",\n\t\t\t\t\tnote: `replace-generated-owned requires lockfile ownership=generated-owned (was ${ownership ?? \"absent\"})`\n\t\t\t\t});\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\twrites.push({\n\t\t\t\tpath: row.path,\n\t\t\t\tbytes: compiledBytes\n\t\t\t});\n\t\t\tresolved.push({\n\t\t\t\tpath: row.path,\n\t\t\t\taction: row.action,\n\t\t\t\tbytes: compiledBytes.length\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tif (row.action === \"update-generated-region\") {\n\t\t\tconst ownership = ownershipByPath.get(row.path);\n\t\t\tif (ownership !== \"mixed\") {\n\t\t\t\trefusals.push({\n\t\t\t\t\tpath: row.path,\n\t\t\t\t\treason: \"ownership-mismatch\",\n\t\t\t\t\tnote: `update-generated-region requires lockfile ownership=mixed (was ${ownership ?? \"absent\"})`\n\t\t\t\t});\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\trefusals.push({\n\t\t\t\tpath: row.path,\n\t\t\t\treason: \"no-compiled-output\",\n\t\t\t\tnote: \"compile does not emit mixed outputs for non-root paths yet\"\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tif (row.action === \"add-regions\") {\n\t\t\trefusals.push({\n\t\t\t\tpath: row.path,\n\t\t\t\treason: \"unsupported-path\",\n\t\t\t\tnote: \"add-regions is only valid for AGENTS.md and CLAUDE.md\"\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t}\n\treturn {\n\t\twrites,\n\t\trefusals,\n\t\tresolved\n\t};\n}\nfunction applyRootOutcome(row, outcome, profileLoaded, compileError, writes, refusals, resolved) {\n\tif (!outcome.ok) switch (outcome.reason) {\n\t\tcase \"symlink\":\n\t\t\trefusals.push({\n\t\t\t\tpath: outcome.path,\n\t\t\t\treason: \"symlinked\",\n\t\t\t\tnote: \"Phase 14 refuses to follow symlinks\"\n\t\t\t});\n\t\t\treturn;\n\t\tcase \"partial-markers\":\n\t\t\trefusals.push({\n\t\t\t\tpath: outcome.path,\n\t\t\t\treason: \"partial-region-markers\",\n\t\t\t\tnote: \"file has partial region markers and must be repaired manually\"\n\t\t\t});\n\t\t\treturn;\n\t\tcase \"duplicate-markers\":\n\t\t\trefusals.push({\n\t\t\t\tpath: outcome.path,\n\t\t\t\treason: \"duplicate-region-markers\",\n\t\t\t\tnote: \"file has duplicate generated markers; cannot safely replace\"\n\t\t\t});\n\t\t\treturn;\n\t\tcase \"missing-file\":\n\t\t\trefusals.push({\n\t\t\t\tpath: outcome.path,\n\t\t\t\treason: \"missing-file\",\n\t\t\t\tnote: \"file does not exist on disk; nothing to adopt\"\n\t\t\t});\n\t\t\treturn;\n\t\tcase \"missing-generated-bytes\":\n\t\t\trefusals.push({\n\t\t\t\tpath: outcome.path,\n\t\t\t\treason: profileLoaded ? compileError ? \"compile-failed\" : \"no-compiled-output\" : \"requires-profile\",\n\t\t\t\tnote: profileLoaded ? compileError ?? `compile did not emit ${outcome.path}` : \"ai-profile.yaml is missing; cannot insert a generated region\"\n\t\t\t});\n\t\t\treturn;\n\t}\n\twrites.push({\n\t\tpath: outcome.path,\n\t\tbytes: outcome.bytes\n\t});\n\tresolved.push({\n\t\tpath: row.path,\n\t\taction: row.action,\n\t\tbytes: outcome.bytes.length\n\t});\n}\nasync function previewMigrationPlan(rootDir, plan) {\n\treturn planWrites({\n\t\trootDir,\n\t\twrites: plan.writes\n\t});\n}\nasync function readOptionalProfile(rootDir) {\n\tlet source;\n\ttry {\n\t\tsource = await readFile(path.join(rootDir, \"ai-profile.yaml\"), \"utf8\");\n\t} catch (err) {\n\t\tif (typeof err === \"object\" && err !== null && \"code\" in err && err.code === \"ENOENT\") return;\n\t\tthrow err;\n\t}\n\tconst parsed = parseProfileYaml(source);\n\treturn parsed.ok ? parsed.profile : void 0;\n}\n//#endregion\n//#region src/routes/api/migration/plan/+server.ts\nvar VALID_ACTIONS = [\n\t\"preserve\",\n\t\"add-regions\",\n\t\"update-generated-region\",\n\t\"replace-generated-owned\",\n\t\"skip\"\n];\nvar POST = async ({ request }) => {\n\tif (!verifyCsrfToken(request.headers.get(\"x-csrf-token\"))) return json({ error: \"csrf_failed\" }, { status: 403 });\n\tif (!(request.headers.get(\"content-type\") ?? \"\").includes(\"application/json\")) return json({ error: \"unsupported_media_type\" }, { status: 415 });\n\tconst parsed = await readJsonRequestBody(request);\n\tif (!parsed.ok) return json({\n\t\terror: parsed.error,\n\t\tmessage: parsed.message\n\t}, { status: parsed.status });\n\tconst body = parsed.body;\n\tif (!isRecord(body) || !Array.isArray(body.actions)) return json({\n\t\terror: \"invalid_request\",\n\t\tmessage: \"Missing `actions` array.\"\n\t}, { status: 400 });\n\tconst rows = [];\n\tfor (const candidate of body.actions) {\n\t\tif (!isRecord(candidate)) return json({\n\t\t\terror: \"invalid_request\",\n\t\t\tmessage: \"Each action must be an object.\"\n\t\t}, { status: 400 });\n\t\tconst pathValue = candidate.path;\n\t\tconst actionValue = candidate.action;\n\t\tif (typeof pathValue !== \"string\" || typeof actionValue !== \"string\") return json({\n\t\t\terror: \"invalid_request\",\n\t\t\tmessage: \"path/action must be strings.\"\n\t\t}, { status: 400 });\n\t\tif (!VALID_ACTIONS.includes(actionValue)) return json({\n\t\t\terror: \"invalid_request\",\n\t\t\tmessage: `Unknown action: ${actionValue}`\n\t\t}, { status: 400 });\n\t\trows.push({\n\t\t\tpath: pathValue,\n\t\t\taction: actionValue,\n\t\t\tconfirmReplace: candidate.confirmReplace === true ? true : void 0\n\t\t});\n\t}\n\tconst rootDir = resolveProjectRoot();\n\tconst plan = await buildMigrationPlan(rootDir, rows);\n\tconst preview = await previewMigrationPlan(rootDir, plan);\n\tconst requiresReplaceConfirmation = plan.resolved.some((entry) => entry.action === \"replace-generated-owned\");\n\treturn json({\n\t\tplanToken: storeMigrationPlan({\n\t\t\tserializedPlan: JSON.stringify({ writes: plan.writes.map((w) => ({\n\t\t\t\tpath: w.path,\n\t\t\t\tbytesBase64: Buffer.from(w.bytes).toString(\"base64\")\n\t\t\t})) }),\n\t\t\trequiresReplaceConfirmation\n\t\t}),\n\t\texpiresAt: new Date(Date.now() + 6e4).toISOString(),\n\t\tcounts: preview.counts,\n\t\tactions: preview.actions,\n\t\tresolved: plan.resolved,\n\t\trefusals: plan.refusals,\n\t\trequiresReplaceConfirmation\n\t});\n};\nfunction isRecord(v) {\n\treturn typeof v === \"object\" && v !== null && !Array.isArray(v);\n}\n//#endregion\nexport { POST };\n"],"names":[],"mappings":";;;;;;;;;;;;AAOA;AACA,IAAI,YAAY,GAAG,IAAI,GAAG,CAAC,uBAAuB,CAAC;AACnD,eAAe,kBAAkB,CAAC,OAAO,EAAE,IAAI,EAAE;AACjD,CAAC,MAAM,OAAO,GAAG,MAAM,mBAAmB,CAAC,OAAO,CAAC;AACnD,CAAC,MAAM,QAAQ,GAAG,MAAM,sBAAsB,CAAC,OAAO,CAAC;AACvD,CAAC,IAAI,uBAAuB;AAC5B,CAAC,IAAI,YAAY;AACjB,CAAC,IAAI,OAAO,EAAE;AACd,EAAE,MAAM,MAAM,GAAG,cAAc,CAAC,EAAE,OAAO,EAAE,CAAC;AAC5C,EAAE,IAAI,MAAM,CAAC,EAAE,EAAE;AACjB,GAAG,uBAAuB,mBAAmB,IAAI,GAAG,EAAE;AACtD,GAAG,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,KAAK,EAAE,uBAAuB,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC;AAC7E,EAAE,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,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AK,CAAC,CAAC,QAAQ,CAAC,QAAQ;AACvD,IAAI,CAAC,CAAC,EAAE,CAAC;AACT,GAAG;AACH,GAAG,CAAC;AACJ,EAAE,SAAS,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,GAAG,CAAC,CAAC,WAAW,EAAE;AACrD,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM;AACxB,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO;AAC1B,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ;AACzB,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ;AACzB,EAAE;AACF,EAAE,CAAC;AACH;AACA,SAAS,QAAQ,CAAC,CAAC,EAAE;AACrB,CAAC,OAAO,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AAChE;;;;"}
|
|
1
|
+
{"version":3,"file":"_server.ts-3Z45ckHV.js","sources":["../../../.svelte-kit/output/server/entries/endpoints/api/migration/plan/_server.ts.js"],"sourcesContent":["import { _ as compileProfile, h as planWrites, l as planRootInstructionsAdoption, r as resolveProjectRoot, s as REGION_AWARE_ROOT_PATHS, u as readLockfileForRegions } from \"../../../../../chunks/projectContext.js\";\nimport { _ as parseProfileYaml } from \"../../../../../chunks/src.js\";\nimport { r as readJsonRequestBody } from \"../../../../../chunks/profileApiHelpers.js\";\nimport { a as storeMigrationPlan, s as verifyCsrfToken } from \"../../../../../chunks/tokenStore.js\";\nimport { json } from \"@sveltejs/kit\";\nimport { readFile } from \"node:fs/promises\";\nimport path from \"node:path\";\n//#region src/lib/server/migrationPlan.ts\nvar REGION_ROOTS = new Set(REGION_AWARE_ROOT_PATHS);\nasync function buildMigrationPlan(rootDir, rows) {\n\tconst profile = await readOptionalProfile(rootDir);\n\tconst lockfile = await readLockfileForRegions(rootDir);\n\tlet compiledGeneratedByPath;\n\tlet compileError;\n\tif (profile) {\n\t\tconst result = compileProfile({ profile });\n\t\tif (result.ok) {\n\t\t\tcompiledGeneratedByPath = /* @__PURE__ */ new Map();\n\t\t\tfor (const f of result.files) compiledGeneratedByPath.set(f.path, f.bytes);\n\t\t} else compileError = result.issues.map((issue) => `${issue.code}: ${issue.message}`).join(\"; \");\n\t}\n\tconst generatedBytesByRoot = /* @__PURE__ */ new Map();\n\tif (compiledGeneratedByPath) for (const root of REGION_ROOTS) {\n\t\tconst bytes = compiledGeneratedByPath.get(root);\n\t\tif (bytes) generatedBytesByRoot.set(root, bytes);\n\t}\n\tconst rootAdoptions = await planRootInstructionsAdoption(rootDir, generatedBytesByRoot);\n\tconst rootOutcomeByPath = /* @__PURE__ */ new Map();\n\tfor (const outcome of rootAdoptions) rootOutcomeByPath.set(outcome.path, outcome);\n\tconst ownershipByPath = /* @__PURE__ */ new Map();\n\tif (lockfile) for (const output of lockfile.outputs) ownershipByPath.set(output.path, output.ownership);\n\tconst writes = [];\n\tconst refusals = [];\n\tconst resolved = [];\n\tfor (const row of rows) {\n\t\tif (row.action === \"skip\" || row.action === \"preserve\") {\n\t\t\tresolved.push({\n\t\t\t\tpath: row.path,\n\t\t\t\taction: row.action,\n\t\t\t\tbytes: 0\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tif (row.action === \"replace-generated-owned\" && row.confirmReplace !== true) {\n\t\t\trefusals.push({\n\t\t\t\tpath: row.path,\n\t\t\t\treason: \"missing-replace-confirmation\",\n\t\t\t\tnote: \"replace-generated-owned requires confirmReplace:true\"\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tif (REGION_ROOTS.has(row.path)) {\n\t\t\tconst outcome = rootOutcomeByPath.get(row.path);\n\t\t\tif (!outcome) {\n\t\t\t\trefusals.push({\n\t\t\t\t\tpath: row.path,\n\t\t\t\t\treason: \"unsupported-path\",\n\t\t\t\t\tnote: \"no root outcome was computed for this path\"\n\t\t\t\t});\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (row.action === \"add-regions\") {\n\t\t\t\tif (!profile) {\n\t\t\t\t\trefusals.push({\n\t\t\t\t\t\tpath: row.path,\n\t\t\t\t\t\treason: \"requires-profile\",\n\t\t\t\t\t\tnote: \"add-regions needs ai-profile.yaml so compile can emit the generated region\"\n\t\t\t\t\t});\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (compileError) {\n\t\t\t\t\trefusals.push({\n\t\t\t\t\t\tpath: row.path,\n\t\t\t\t\t\treason: \"compile-failed\",\n\t\t\t\t\t\tnote: compileError\n\t\t\t\t\t});\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tapplyRootOutcome(row, outcome, true, void 0, writes, refusals, resolved);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (row.action === \"update-generated-region\") {\n\t\t\t\tif (!profile) {\n\t\t\t\t\trefusals.push({\n\t\t\t\t\t\tpath: row.path,\n\t\t\t\t\t\treason: \"requires-profile\",\n\t\t\t\t\t\tnote: \"update-generated-region needs ai-profile.yaml; create one first\"\n\t\t\t\t\t});\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (compileError) {\n\t\t\t\t\trefusals.push({\n\t\t\t\t\t\tpath: row.path,\n\t\t\t\t\t\treason: \"compile-failed\",\n\t\t\t\t\t\tnote: compileError\n\t\t\t\t\t});\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (!generatedBytesByRoot.has(row.path)) {\n\t\t\t\t\trefusals.push({\n\t\t\t\t\t\tpath: row.path,\n\t\t\t\t\t\treason: \"no-compiled-output\",\n\t\t\t\t\t\tnote: `compile did not emit ${row.path}`\n\t\t\t\t\t});\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tapplyRootOutcome(row, outcome, true, void 0, writes, refusals, resolved);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (row.action === \"replace-generated-owned\") {\n\t\t\t\trefusals.push({\n\t\t\t\t\tpath: row.path,\n\t\t\t\t\treason: \"ownership-mismatch\",\n\t\t\t\t\tnote: \"replace-generated-owned is not available for root instructions; use update-generated-region\"\n\t\t\t\t});\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\tif (!profile) {\n\t\t\trefusals.push({\n\t\t\t\tpath: row.path,\n\t\t\t\treason: \"requires-profile\",\n\t\t\t\tnote: \"this action needs ai-profile.yaml; create one first\"\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tif (compileError) {\n\t\t\trefusals.push({\n\t\t\t\tpath: row.path,\n\t\t\t\treason: \"compile-failed\",\n\t\t\t\tnote: compileError\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tconst compiledBytes = compiledGeneratedByPath?.get(row.path);\n\t\tif (!compiledBytes) {\n\t\t\trefusals.push({\n\t\t\t\tpath: row.path,\n\t\t\t\treason: \"no-compiled-output\",\n\t\t\t\tnote: `compile did not emit ${row.path}`\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tif (row.action === \"replace-generated-owned\") {\n\t\t\tconst ownership = ownershipByPath.get(row.path);\n\t\t\tif (ownership !== \"generated-owned\") {\n\t\t\t\trefusals.push({\n\t\t\t\t\tpath: row.path,\n\t\t\t\t\treason: \"ownership-mismatch\",\n\t\t\t\t\tnote: `replace-generated-owned requires lockfile ownership=generated-owned (was ${ownership ?? \"absent\"})`\n\t\t\t\t});\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\twrites.push({\n\t\t\t\tpath: row.path,\n\t\t\t\tbytes: compiledBytes\n\t\t\t});\n\t\t\tresolved.push({\n\t\t\t\tpath: row.path,\n\t\t\t\taction: row.action,\n\t\t\t\tbytes: compiledBytes.length\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tif (row.action === \"update-generated-region\") {\n\t\t\tconst ownership = ownershipByPath.get(row.path);\n\t\t\tif (ownership !== \"mixed\") {\n\t\t\t\trefusals.push({\n\t\t\t\t\tpath: row.path,\n\t\t\t\t\treason: \"ownership-mismatch\",\n\t\t\t\t\tnote: `update-generated-region requires lockfile ownership=mixed (was ${ownership ?? \"absent\"})`\n\t\t\t\t});\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\trefusals.push({\n\t\t\t\tpath: row.path,\n\t\t\t\treason: \"no-compiled-output\",\n\t\t\t\tnote: \"compile does not emit mixed outputs for non-root paths yet\"\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tif (row.action === \"add-regions\") {\n\t\t\trefusals.push({\n\t\t\t\tpath: row.path,\n\t\t\t\treason: \"unsupported-path\",\n\t\t\t\tnote: \"add-regions is only valid for AGENTS.md and CLAUDE.md\"\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t}\n\treturn {\n\t\twrites,\n\t\trefusals,\n\t\tresolved\n\t};\n}\nfunction applyRootOutcome(row, outcome, profileLoaded, compileError, writes, refusals, resolved) {\n\tif (!outcome.ok) switch (outcome.reason) {\n\t\tcase \"symlink\":\n\t\t\trefusals.push({\n\t\t\t\tpath: outcome.path,\n\t\t\t\treason: \"symlinked\",\n\t\t\t\tnote: \"Phase 14 refuses to follow symlinks\"\n\t\t\t});\n\t\t\treturn;\n\t\tcase \"partial-markers\":\n\t\t\trefusals.push({\n\t\t\t\tpath: outcome.path,\n\t\t\t\treason: \"partial-region-markers\",\n\t\t\t\tnote: \"file has partial region markers and must be repaired manually\"\n\t\t\t});\n\t\t\treturn;\n\t\tcase \"duplicate-markers\":\n\t\t\trefusals.push({\n\t\t\t\tpath: outcome.path,\n\t\t\t\treason: \"duplicate-region-markers\",\n\t\t\t\tnote: \"file has duplicate generated markers; cannot safely replace\"\n\t\t\t});\n\t\t\treturn;\n\t\tcase \"missing-file\":\n\t\t\trefusals.push({\n\t\t\t\tpath: outcome.path,\n\t\t\t\treason: \"missing-file\",\n\t\t\t\tnote: \"file does not exist on disk; nothing to adopt\"\n\t\t\t});\n\t\t\treturn;\n\t\tcase \"missing-generated-bytes\":\n\t\t\trefusals.push({\n\t\t\t\tpath: outcome.path,\n\t\t\t\treason: profileLoaded ? compileError ? \"compile-failed\" : \"no-compiled-output\" : \"requires-profile\",\n\t\t\t\tnote: profileLoaded ? compileError ?? `compile did not emit ${outcome.path}` : \"ai-profile.yaml is missing; cannot insert a generated region\"\n\t\t\t});\n\t\t\treturn;\n\t}\n\twrites.push({\n\t\tpath: outcome.path,\n\t\tbytes: outcome.bytes\n\t});\n\tresolved.push({\n\t\tpath: row.path,\n\t\taction: row.action,\n\t\tbytes: outcome.bytes.length\n\t});\n}\nasync function previewMigrationPlan(rootDir, plan) {\n\treturn planWrites({\n\t\trootDir,\n\t\twrites: plan.writes\n\t});\n}\nasync function readOptionalProfile(rootDir) {\n\tlet source;\n\ttry {\n\t\tsource = await readFile(path.join(rootDir, \"ai-profile.yaml\"), \"utf8\");\n\t} catch (err) {\n\t\tif (typeof err === \"object\" && err !== null && \"code\" in err && err.code === \"ENOENT\") return;\n\t\tthrow err;\n\t}\n\tconst parsed = parseProfileYaml(source);\n\treturn parsed.ok ? parsed.profile : void 0;\n}\n//#endregion\n//#region src/routes/api/migration/plan/+server.ts\nvar VALID_ACTIONS = [\n\t\"preserve\",\n\t\"add-regions\",\n\t\"update-generated-region\",\n\t\"replace-generated-owned\",\n\t\"skip\"\n];\nvar POST = async ({ request }) => {\n\tif (!verifyCsrfToken(request.headers.get(\"x-csrf-token\"))) return json({ error: \"csrf_failed\" }, { status: 403 });\n\tif (!(request.headers.get(\"content-type\") ?? \"\").includes(\"application/json\")) return json({ error: \"unsupported_media_type\" }, { status: 415 });\n\tconst parsed = await readJsonRequestBody(request);\n\tif (!parsed.ok) return json({\n\t\terror: parsed.error,\n\t\tmessage: parsed.message\n\t}, { status: parsed.status });\n\tconst body = parsed.body;\n\tif (!isRecord(body) || !Array.isArray(body.actions)) return json({\n\t\terror: \"invalid_request\",\n\t\tmessage: \"Missing `actions` array.\"\n\t}, { status: 400 });\n\tconst rows = [];\n\tfor (const candidate of body.actions) {\n\t\tif (!isRecord(candidate)) return json({\n\t\t\terror: \"invalid_request\",\n\t\t\tmessage: \"Each action must be an object.\"\n\t\t}, { status: 400 });\n\t\tconst pathValue = candidate.path;\n\t\tconst actionValue = candidate.action;\n\t\tif (typeof pathValue !== \"string\" || typeof actionValue !== \"string\") return json({\n\t\t\terror: \"invalid_request\",\n\t\t\tmessage: \"path/action must be strings.\"\n\t\t}, { status: 400 });\n\t\tif (!VALID_ACTIONS.includes(actionValue)) return json({\n\t\t\terror: \"invalid_request\",\n\t\t\tmessage: `Unknown action: ${actionValue}`\n\t\t}, { status: 400 });\n\t\trows.push({\n\t\t\tpath: pathValue,\n\t\t\taction: actionValue,\n\t\t\tconfirmReplace: candidate.confirmReplace === true ? true : void 0\n\t\t});\n\t}\n\tconst rootDir = resolveProjectRoot();\n\tconst plan = await buildMigrationPlan(rootDir, rows);\n\tconst preview = await previewMigrationPlan(rootDir, plan);\n\tconst requiresReplaceConfirmation = plan.resolved.some((entry) => entry.action === \"replace-generated-owned\");\n\treturn json({\n\t\tplanToken: storeMigrationPlan({\n\t\t\tserializedPlan: JSON.stringify({ writes: plan.writes.map((w) => ({\n\t\t\t\tpath: w.path,\n\t\t\t\tbytesBase64: Buffer.from(w.bytes).toString(\"base64\")\n\t\t\t})) }),\n\t\t\trequiresReplaceConfirmation\n\t\t}),\n\t\texpiresAt: new Date(Date.now() + 6e4).toISOString(),\n\t\tcounts: preview.counts,\n\t\tactions: preview.actions,\n\t\tresolved: plan.resolved,\n\t\trefusals: plan.refusals,\n\t\trequiresReplaceConfirmation\n\t});\n};\nfunction isRecord(v) {\n\treturn typeof v === \"object\" && v !== null && !Array.isArray(v);\n}\n//#endregion\nexport { POST };\n"],"names":[],"mappings":";;;;;;;;;;;;AAOA;AACA,IAAI,YAAY,GAAG,IAAI,GAAG,CAAC,uBAAuB,CAAC;AACnD,eAAe,kBAAkB,CAAC,OAAO,EAAE,IAAI,EAAE;AACjD,CAAC,MAAM,OAAO,GAAG,MAAM,mBAAmB,CAAC,OAAO,CAAC;AACnD,CA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AAM,OAAO,GAAG,MAAM,oBAAoB,CAAC,OAAO,EAAE,IAAI,CAAC;AAC1D,CAAC,MAAM,2BAA2B,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,KAAK,KAAK,KAAK,CAAC,MAAM,KAAK,yBAAyB,CAAC;AAC9G,CAAC,OAAO,IAAI,CAAC;AACb,EAAE,SAAS,EAAE,kBAAkB,CAAC;AAChC,GAAG,cAAc,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM;AACpE,IAAI,IAAI,EAAE,CAAC,CAAC,IAAI;AAChB,IAAI,WAAW,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,QAAQ;AACvD,IAAI,CAAC,CAAC,EAAE,CAAC;AACT,GAAG;AACH,GAAG,CAAC;AACJ,EAAE,SAAS,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,GAAG,CAAC,CAAC,WAAW,EAAE;AACrD,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM;AACxB,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO;AAC1B,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ;AACzB,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ;AACzB,EAAE;AACF,EAAE,CAAC;AACH;AACA,SAAS,QAAQ,CAAC,CAAC,EAAE;AACrB,CAAC,OAAO,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AAChE;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as resolveProjectRoot, a as applyWritePlan } from './projectContext-
|
|
2
|
-
import { r as runDoctor } from './src3-
|
|
3
|
-
import { r as readJsonRequestBody } from './profileApiHelpers-
|
|
1
|
+
import { r as resolveProjectRoot, a as applyWritePlan } from './projectContext-A3_20XfX.js';
|
|
2
|
+
import { r as runDoctor } from './src3-CTp6y3wn.js';
|
|
3
|
+
import { r as readJsonRequestBody } from './profileApiHelpers-Cm4N8UkT.js';
|
|
4
4
|
import { v as verifyCsrfToken, l as lookupMigrationPlan, c as consumeMigrationPlan } from './tokenStore-CTHhmHsk.js';
|
|
5
|
-
import { j as json } from './index.js-
|
|
5
|
+
import { j as json } from './index.js-v3uAcZBW.js';
|
|
6
6
|
import 'node:fs/promises';
|
|
7
7
|
import 'process';
|
|
8
8
|
import 'buffer';
|
|
@@ -97,4 +97,4 @@ function isRecord(v) {
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
export { POST };
|
|
100
|
-
//# sourceMappingURL=_server.ts-
|
|
100
|
+
//# sourceMappingURL=_server.ts-CgyKDc7X.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_server.ts-
|
|
1
|
+
{"version":3,"file":"_server.ts-CgyKDc7X.js","sources":["../../../.svelte-kit/output/server/entries/endpoints/api/migration/apply/_server.ts.js"],"sourcesContent":["import { p as applyWritePlan, r as resolveProjectRoot } from \"../../../../../chunks/projectContext.js\";\nimport { t as runDoctor } from \"../../../../../chunks/src3.js\";\nimport { r as readJsonRequestBody } from \"../../../../../chunks/profileApiHelpers.js\";\nimport { i as lookupMigrationPlan, s as verifyCsrfToken, t as consumeMigrationPlan } from \"../../../../../chunks/tokenStore.js\";\nimport { json } from \"@sveltejs/kit\";\n//#region src/routes/api/migration/apply/+server.ts\nvar POST = async ({ request }) => {\n\tif (!verifyCsrfToken(request.headers.get(\"x-csrf-token\"))) return json({ error: \"csrf_failed\" }, { status: 403 });\n\tif (!(request.headers.get(\"content-type\") ?? \"\").includes(\"application/json\")) return json({ error: \"unsupported_media_type\" }, { status: 415 });\n\tconst parsed = await readJsonRequestBody(request);\n\tif (!parsed.ok) return json({\n\t\terror: parsed.error,\n\t\tmessage: parsed.message\n\t}, { status: parsed.status });\n\tconst body = parsed.body;\n\tif (!isRecord(body) || typeof body.planToken !== \"string\") return json({\n\t\terror: \"invalid_request\",\n\t\tmessage: \"Missing `planToken`.\"\n\t}, { status: 400 });\n\tconst peeked = lookupMigrationPlan(body.planToken);\n\tif (!peeked) return json({\n\t\terror: \"plan_expired\",\n\t\tmessage: \"Migration plan token has expired or is unknown.\"\n\t}, { status: 410 });\n\tif (peeked.requiresReplaceConfirmation && body.confirmReplace !== true) return json({\n\t\terror: \"confirm_replace_required\",\n\t\tmessage: \"This plan touches generated-owned files. Re-issue apply with confirmReplace:true.\"\n\t}, { status: 412 });\n\tconst entry = consumeMigrationPlan(body.planToken);\n\tif (!entry) return json({\n\t\terror: \"plan_expired\",\n\t\tmessage: \"Migration plan token expired while applying.\"\n\t}, { status: 410 });\n\tlet serialized;\n\ttry {\n\t\tserialized = JSON.parse(entry.serializedPlan);\n\t} catch {\n\t\treturn json({\n\t\t\terror: \"plan_corrupted\",\n\t\t\tmessage: \"Stored plan could not be decoded.\"\n\t\t}, { status: 500 });\n\t}\n\tif (!serialized || !Array.isArray(serialized.writes)) return json({\n\t\terror: \"plan_corrupted\",\n\t\tmessage: \"Stored plan has no writes.\"\n\t}, { status: 500 });\n\tconst writes = serialized.writes.map((w) => ({\n\t\tpath: w.path,\n\t\tbytes: Buffer.from(w.bytesBase64, \"base64\")\n\t}));\n\tconst rootDir = resolveProjectRoot();\n\tlet writeResult;\n\ttry {\n\t\twriteResult = await applyWritePlan({\n\t\t\trootDir,\n\t\t\twrites\n\t\t});\n\t} catch (err) {\n\t\treturn json({\n\t\t\terror: \"write_failed\",\n\t\t\tmessage: err instanceof Error ? err.message : \"unknown write error\"\n\t\t}, { status: 422 });\n\t}\n\tlet doctor;\n\ttry {\n\t\tdoctor = await runDoctor({ rootDir });\n\t} catch (err) {\n\t\treturn json({\n\t\t\tcounts: writeResult.counts,\n\t\t\twrites: writeResult.actions,\n\t\t\tdoctor: {\n\t\t\t\tok: false,\n\t\t\t\tmessage: err instanceof Error ? err.message : \"doctor failed\"\n\t\t\t}\n\t\t}, { status: 200 });\n\t}\n\treturn json({\n\t\tcounts: writeResult.counts,\n\t\twrites: writeResult.actions,\n\t\tdoctor: {\n\t\t\tok: true,\n\t\t\tstatus: doctor.status,\n\t\t\tissues: doctor.issues\n\t\t}\n\t});\n};\nfunction isRecord(v) {\n\treturn typeof v === \"object\" && v !== null && !Array.isArray(v);\n}\n//#endregion\nexport { POST };\n"],"names":[],"mappings":";;;;;;;;;;;;;AAKA;AACG,IAAC,IAAI,GAAG,OAAO,EAAE,OAAO,EAAE,KAAK;AAClC,CAAC,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,EAAE,OAAO,IAAI,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;AAClH,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,EAAE,EAAE,QAAQ,CAAC,kBAAkB,CAAC,EAAE,OAAO,IAAI,CAAC,EAAE,KAAK,EAAE,wBAAwB,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;AACjJ,CAAC,MAAM,MAAM,GAAG,MAAM,mBAAmB,CAAC,OAAO,CAAC;AAClD,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,IAAI,CAAC;AAC7B,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK;AACrB,EAAE,OAAO,EAAE,MAAM,CAAC;AAClB,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC;AAC9B,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI;AACzB,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,OAAO,IAAI,CAAC,SAAS,KAAK,QAAQ,EAAE,OAAO,IAAI,CAAC;AACxE,EA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EAAE,MAAM,EAAE,WAAW,CAAC,OAAO;AAC7B,EAAE,MAAM,EAAE;AACV,GAAG,EAAE,EAAE,IAAI;AACX,GAAG,MAAM,EAAE,MAAM,CAAC,MAAM;AACxB,GAAG,MAAM,EAAE,MAAM,CAAC;AAClB;AACA,EAAE,CAAC;AACH;AACA,SAAS,QAAQ,CAAC,CAAC,EAAE;AACrB,CAAC,OAAO,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AAChE;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as buildRobotsTxt } from './marketingSeo-
|
|
1
|
+
import { a as buildRobotsTxt } from './marketingSeo-CXh0KJlO.js';
|
|
2
2
|
|
|
3
3
|
//#region src/routes/robots.txt/+server.ts
|
|
4
4
|
var prerender = process.env.AGENT_PROFILE_MARKETING_BUILD === "1";
|
|
5
5
|
var GET = () => new Response(buildRobotsTxt(), { headers: { "content-type": "text/plain; charset=utf-8" } });
|
|
6
6
|
|
|
7
7
|
export { GET, prerender };
|
|
8
|
-
//# sourceMappingURL=_server.ts-
|
|
8
|
+
//# sourceMappingURL=_server.ts-CqjSwNoV.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_server.ts-
|
|
1
|
+
{"version":3,"file":"_server.ts-CqjSwNoV.js","sources":["../../../.svelte-kit/output/server/entries/endpoints/robots.txt/_server.ts.js"],"sourcesContent":["import { n as buildRobotsTxt } from \"../../../chunks/marketingSeo.js\";\n//#region src/routes/robots.txt/+server.ts\nvar prerender = process.env.AGENT_PROFILE_MARKETING_BUILD === \"1\";\nvar GET = () => new Response(buildRobotsTxt(), { headers: { \"content-type\": \"text/plain; charset=utf-8\" } });\n//#endregion\nexport { GET, prerender };\n"],"names":[],"mappings":";;AACA;AACG,IAAC,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,6BAA6B,KAAK;AAC3D,IAAC,GAAG,GAAG,MAAM,IAAI,QAAQ,CAAC,cAAc,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,cAAc,EAAE,2BAA2B,EAAE,EAAE;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { D as loadProjectContext } from './projectContext-
|
|
2
|
-
import { a as readDiskProfile } from './profileApiHelpers-
|
|
1
|
+
import { D as loadProjectContext } from './projectContext-A3_20XfX.js';
|
|
2
|
+
import { a as readDiskProfile } from './profileApiHelpers-Cm4N8UkT.js';
|
|
3
3
|
import { i as issueCsrfToken } from './tokenStore-CTHhmHsk.js';
|
|
4
|
-
import { j as json } from './index.js-
|
|
4
|
+
import { j as json } from './index.js-v3uAcZBW.js';
|
|
5
5
|
import 'node:fs/promises';
|
|
6
6
|
import 'process';
|
|
7
7
|
import 'buffer';
|
|
@@ -39,4 +39,4 @@ var GET = async () => {
|
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
export { GET };
|
|
42
|
-
//# sourceMappingURL=_server.ts-
|
|
42
|
+
//# sourceMappingURL=_server.ts-D7BHmX-e.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_server.ts-
|
|
1
|
+
{"version":3,"file":"_server.ts-D7BHmX-e.js","sources":["../../../.svelte-kit/output/server/entries/endpoints/api/profile/_server.ts.js"],"sourcesContent":["import { t as loadProjectContext } from \"../../../../chunks/projectContext.js\";\nimport { n as readDiskProfile } from \"../../../../chunks/profileApiHelpers.js\";\nimport { r as issueCsrfToken } from \"../../../../chunks/tokenStore.js\";\nimport { json } from \"@sveltejs/kit\";\n//#region src/routes/api/profile/+server.ts\nvar GET = async () => {\n\tconst disk = await readDiskProfile((await loadProjectContext()).rootDir);\n\tconst csrfToken = issueCsrfToken();\n\tif (!disk.ok) {\n\t\tif (disk.reason === \"not_found\") return json({\n\t\t\terror: \"file_not_found\",\n\t\t\tmessage: \"ai-profile.yaml not found; run agent-profile init --write.\"\n\t\t}, { status: 404 });\n\t\treturn json({\n\t\t\terror: \"invalid_profile\",\n\t\t\tissues: disk.issues,\n\t\t\tunsupportedEditing: disk.unsupportedEditing,\n\t\t\tetag: disk.etag ?? null,\n\t\t\tcsrfToken\n\t\t}, { status: 422 });\n\t}\n\treturn json({\n\t\tprofile: disk.profile,\n\t\tsafety: disk.safety,\n\t\teffectivePermissions: disk.effectivePermissions,\n\t\tbytes: disk.bytes.length,\n\t\tetag: disk.etag,\n\t\tcsrfToken,\n\t\tprofilePath: \"ai-profile.yaml\"\n\t});\n};\n//#endregion\nexport { GET };\n"],"names":[],"mappings":";;;;;;;;;;;;AAIA;AACG,IAAC,GAAG,GAAG,YAAY;AACtB,CAAC,MAAM,IAAI,GAAG,MAAM,eAAe,CAAC,CAAC,MAAM,kBAAkB,EAAE,EAAE,OAAO,CAAC;AACzE,CAAC,MAAM,SAAS,GAAG,cAAc,EAAE;AACnC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;AACf,EAAE,IAAI,IAAI,CAAC,MAAM,KAAK,WAAW,EAAE,OAAO,IAAI,CAAC;AAC/C,GAAG,KAAK,EAAE,gBAAgB;AAC1B,GAAG,OAAO,EAAE;AACZ,GAAG,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;AACrB,EAAE,OAAO,IAAI,CAAC;AACd,GAAG,KAAK,EAAE,iBAAiB;AAC3B,GAAG,MAAM,EAAE,IAAI,CAAC,MAAM;AACtB,GAAG,kBAAkB,EAAE,IAAI,CAAC,kBAAkB;AAC9C,GAAG,IAAI,EAAE,IAAI,CAAC,IAAI,IAAI,IAAI;AAC1B,GAAG;AACH,GAAG,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;AACrB,CAAC;AACD,CAAC,OAAO,IAAI,CAAC;AACb,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO;AACvB,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM;AACrB,EAAE,oBAAoB,EAAE,IAAI,CAAC,oBAAoB;AACjD,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM;AAC1B,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI;AACjB,EAAE,SAAS;AACX,EAAE,WAAW,EAAE;AACf,EAAE,CAAC;AACH;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as buildSitemapXml } from './marketingSeo-
|
|
1
|
+
import { c as buildSitemapXml } from './marketingSeo-CXh0KJlO.js';
|
|
2
2
|
|
|
3
3
|
//#region src/routes/sitemap.xml/+server.ts
|
|
4
4
|
var prerender = process.env.AGENT_PROFILE_MARKETING_BUILD === "1";
|
|
5
5
|
var GET = () => new Response(buildSitemapXml(), { headers: { "content-type": "application/xml; charset=utf-8" } });
|
|
6
6
|
|
|
7
7
|
export { GET, prerender };
|
|
8
|
-
//# sourceMappingURL=_server.ts-
|
|
8
|
+
//# sourceMappingURL=_server.ts-DBxq75MD.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_server.ts-
|
|
1
|
+
{"version":3,"file":"_server.ts-DBxq75MD.js","sources":["../../../.svelte-kit/output/server/entries/endpoints/sitemap.xml/_server.ts.js"],"sourcesContent":["import { r as buildSitemapXml } from \"../../../chunks/marketingSeo.js\";\n//#region src/routes/sitemap.xml/+server.ts\nvar prerender = process.env.AGENT_PROFILE_MARKETING_BUILD === \"1\";\nvar GET = () => new Response(buildSitemapXml(), { headers: { \"content-type\": \"application/xml; charset=utf-8\" } });\n//#endregion\nexport { GET, prerender };\n"],"names":[],"mappings":";;AACA;AACG,IAAC,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,6BAA6B,KAAK;AAC3D,IAAC,GAAG,GAAG,MAAM,IAAI,QAAQ,CAAC,eAAe,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,cAAc,EAAE,gCAAgC,EAAE,EAAE;;;;"}
|