@agent-profile/web 0.1.3 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +70 -29
- package/build/client/_app/immutable/assets/{0.BG6jUcBX.css → 0.8hVtEx5X.css} +1 -1
- package/build/client/_app/immutable/assets/0.8hVtEx5X.css.br +0 -0
- package/build/client/_app/immutable/assets/0.8hVtEx5X.css.gz +0 -0
- package/build/client/_app/immutable/assets/9.BsbC-D7w.css +1 -0
- package/build/client/_app/immutable/assets/9.BsbC-D7w.css.br +0 -0
- package/build/client/_app/immutable/assets/9.BsbC-D7w.css.gz +0 -0
- package/build/client/_app/immutable/chunks/4FiW6_9u.js +1 -0
- package/build/client/_app/immutable/chunks/4FiW6_9u.js.br +2 -0
- package/build/client/_app/immutable/chunks/4FiW6_9u.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CF39CcoQ.js +3 -0
- package/build/client/_app/immutable/chunks/CF39CcoQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/CF39CcoQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CRcOA4L4.js +3 -0
- package/build/client/_app/immutable/chunks/CRcOA4L4.js.br +0 -0
- package/build/client/_app/immutable/chunks/CRcOA4L4.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cc9Av3g9.js +2 -0
- package/build/client/_app/immutable/chunks/Cc9Av3g9.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cc9Av3g9.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DUEBfJ-c.js +1 -0
- package/build/client/_app/immutable/chunks/DUEBfJ-c.js.br +4 -0
- package/build/client/_app/immutable/chunks/DUEBfJ-c.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DvNNrklS.js +1 -0
- package/build/client/_app/immutable/chunks/DvNNrklS.js.br +2 -0
- package/build/client/_app/immutable/chunks/DvNNrklS.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.ZULfIbKE.js +2 -0
- package/build/client/_app/immutable/entry/app.ZULfIbKE.js.br +0 -0
- package/build/client/_app/immutable/entry/app.ZULfIbKE.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.XwZvWTgq.js +1 -0
- package/build/client/_app/immutable/entry/start.XwZvWTgq.js.br +0 -0
- package/build/client/_app/immutable/entry/start.XwZvWTgq.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.BTaKrNnR.js +1 -0
- package/build/client/_app/immutable/nodes/0.BTaKrNnR.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.BTaKrNnR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.B4GcuHvH.js +1 -0
- package/build/client/_app/immutable/nodes/1.B4GcuHvH.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.B4GcuHvH.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{10.BOQgahuX.js → 10.IHQDAuDz.js} +2 -2
- package/build/client/_app/immutable/nodes/10.IHQDAuDz.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.IHQDAuDz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.B5APptAv.js +1 -0
- package/build/client/_app/immutable/nodes/11.B5APptAv.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.B5APptAv.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.BHUaWFMZ.js +10 -0
- package/build/client/_app/immutable/nodes/2.BHUaWFMZ.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.BHUaWFMZ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.DIhh3cSh.js +2 -0
- package/build/client/_app/immutable/nodes/3.DIhh3cSh.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.DIhh3cSh.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.DjkBBmOF.js +4 -0
- package/build/client/_app/immutable/nodes/4.DjkBBmOF.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.DjkBBmOF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.BPcSAYs6.js +2 -0
- package/build/client/_app/immutable/nodes/5.BPcSAYs6.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.BPcSAYs6.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.DZa-5yoH.js +5 -0
- package/build/client/_app/immutable/nodes/6.DZa-5yoH.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.DZa-5yoH.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.v6t5o5IK.js +4 -0
- package/build/client/_app/immutable/nodes/7.v6t5o5IK.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.v6t5o5IK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.UWqOmBTc.js +1 -0
- package/build/client/_app/immutable/nodes/8.UWqOmBTc.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.UWqOmBTc.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.xVCOCMfn.js +3 -0
- package/build/client/_app/immutable/nodes/9.xVCOCMfn.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.xVCOCMfn.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/client/marketing.js +105 -0
- package/build/client/marketing.js.br +0 -0
- package/build/client/marketing.js.gz +0 -0
- package/build/server/chunks/{0-aBAedq2p.js → 0-IAeZ4YD5.js} +17 -11
- package/build/server/chunks/0-IAeZ4YD5.js.map +1 -0
- package/build/server/chunks/{1-7SwLsXP7.js → 1--R3gZqoU.js} +3 -3
- package/build/server/chunks/{1-7SwLsXP7.js.map → 1--R3gZqoU.js.map} +1 -1
- package/build/server/chunks/10-B2v4GVik.js +9 -0
- package/build/server/chunks/{10-B1aX7ZZ8.js.map → 10-B2v4GVik.js.map} +1 -1
- package/build/server/chunks/{11-4z6b2WB8.js → 11-DbxvesJH.js} +6 -6
- package/build/server/chunks/{11-4z6b2WB8.js.map → 11-DbxvesJH.js.map} +1 -1
- package/build/server/chunks/2-CHviyPyI.js +21 -0
- package/build/server/chunks/2-CHviyPyI.js.map +1 -0
- package/build/server/chunks/3-CdNRNP5d.js +9 -0
- package/build/server/chunks/{3-CLWhM7Et.js.map → 3-CdNRNP5d.js.map} +1 -1
- package/build/server/chunks/{4-BehBrXcu.js → 4-CCj_Mhpz.js} +6 -6
- package/build/server/chunks/{4-BehBrXcu.js.map → 4-CCj_Mhpz.js.map} +1 -1
- package/build/server/chunks/5-CqBVRlNU.js +9 -0
- package/build/server/chunks/{5-C1YtO2Ru.js.map → 5-CqBVRlNU.js.map} +1 -1
- package/build/server/chunks/{6-DJ03bQJy.js → 6-BHxeFzUE.js} +3 -3
- package/build/server/chunks/{6-DJ03bQJy.js.map → 6-BHxeFzUE.js.map} +1 -1
- package/build/server/chunks/{7-BHefj3jR.js → 7-BUFOaHdC.js} +8 -8
- package/build/server/chunks/{7-BHefj3jR.js.map → 7-BUFOaHdC.js.map} +1 -1
- package/build/server/chunks/8-BbviFV5J.js +9 -0
- package/build/server/chunks/{8-BNb36pCU.js.map → 8-BbviFV5J.js.map} +1 -1
- package/build/server/chunks/9-kCTRECfO.js +67 -0
- package/build/server/chunks/9-kCTRECfO.js.map +1 -0
- package/build/server/chunks/{Badge-BrV_lIru.js → Badge-DCQxSQCS.js} +2 -2
- package/build/server/chunks/{Badge-BrV_lIru.js.map → Badge-DCQxSQCS.js.map} +1 -1
- package/build/server/chunks/{SafetyBadge-BSDbVVMY.js → SafetyBadge-BxEGojgX.js} +2 -2
- package/build/server/chunks/{SafetyBadge-BSDbVVMY.js.map → SafetyBadge-BxEGojgX.js.map} +1 -1
- package/build/server/chunks/{_layout.svelte-C6Ru_7YV.js → _layout.svelte-CQM4xaaq.js} +8 -8
- package/build/server/chunks/_layout.svelte-CQM4xaaq.js.map +1 -0
- package/build/server/chunks/{_page.svelte-Bv-w7cKm.js → _page.svelte-1wUrXGW-.js} +3 -3
- package/build/server/chunks/{_page.svelte-Bv-w7cKm.js.map → _page.svelte-1wUrXGW-.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-BS9xpx67.js → _page.svelte-2W3EhlSt.js} +141 -60
- package/build/server/chunks/_page.svelte-2W3EhlSt.js.map +1 -0
- package/build/server/chunks/{_page.svelte-C8HqSRYY.js → _page.svelte-B3CasgD8.js} +2 -2
- package/build/server/chunks/{_page.svelte-C8HqSRYY.js.map → _page.svelte-B3CasgD8.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-QyOMa9Ce.js → _page.svelte-B6d3qwTm.js} +5 -5
- package/build/server/chunks/{_page.svelte-QyOMa9Ce.js.map → _page.svelte-B6d3qwTm.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-DRj4L7XZ.js → _page.svelte-BikYFdJv.js} +4 -4
- package/build/server/chunks/{_page.svelte-DRj4L7XZ.js.map → _page.svelte-BikYFdJv.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-r2AHAn4f.js → _page.svelte-D8ffqrO3.js} +3 -3
- package/build/server/chunks/{_page.svelte-r2AHAn4f.js.map → _page.svelte-D8ffqrO3.js.map} +1 -1
- package/build/server/chunks/_page.svelte-DfUc4h7g.js +435 -0
- package/build/server/chunks/_page.svelte-DfUc4h7g.js.map +1 -0
- package/build/server/chunks/{_page.svelte-DYBnVmA8.js → _page.svelte-sygmDxbg.js} +6 -6
- package/build/server/chunks/{_page.svelte-DYBnVmA8.js.map → _page.svelte-sygmDxbg.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-DyYKrY-D.js → _page.svelte-wL3fdD1l.js} +4 -4
- package/build/server/chunks/{_page.svelte-DyYKrY-D.js.map → _page.svelte-wL3fdD1l.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-DuJcNgye.js → _page.svelte-xTZOj1o8.js} +3 -3
- package/build/server/chunks/{_page.svelte-DuJcNgye.js.map → _page.svelte-xTZOj1o8.js.map} +1 -1
- package/build/server/chunks/_server.ts-B7znNtap.js +100 -0
- package/build/server/chunks/_server.ts-B7znNtap.js.map +1 -0
- package/build/server/chunks/_server.ts-BjPyYUki.js +85 -0
- package/build/server/chunks/_server.ts-BjPyYUki.js.map +1 -0
- package/build/server/chunks/_server.ts-C8Fe0kql.js +8 -0
- package/build/server/chunks/_server.ts-C8Fe0kql.js.map +1 -0
- package/build/server/chunks/_server.ts-D1Ja2hnG.js +8 -0
- package/build/server/chunks/_server.ts-D1Ja2hnG.js.map +1 -0
- package/build/server/chunks/_server.ts-DsbQ4b7x.js +43 -0
- package/build/server/chunks/_server.ts-DsbQ4b7x.js.map +1 -0
- package/build/server/chunks/_server.ts-hEGlXjuB.js +8 -0
- package/build/server/chunks/_server.ts-hEGlXjuB.js.map +1 -0
- package/build/server/chunks/{client-CBew73li.js → client-h6Frgnzt.js} +3 -3
- package/build/server/chunks/{client-CBew73li.js.map → client-h6Frgnzt.js.map} +1 -1
- package/build/server/chunks/{dev-CrqJ3ZR3.js → dev-BdIdjvaY.js} +216 -82
- package/build/server/chunks/dev-BdIdjvaY.js.map +1 -0
- package/build/server/chunks/{doctorSummary-CGjSiyKU.js → doctorSummary-FyoWuR3R.js} +3 -3
- package/build/server/chunks/{doctorSummary-CGjSiyKU.js.map → doctorSummary-FyoWuR3R.js.map} +1 -1
- package/build/server/chunks/{error.svelte-C78Jl1J5.js → error.svelte-DYzh-S9t.js} +5 -5
- package/build/server/chunks/{error.svelte-C78Jl1J5.js.map → error.svelte-DYzh-S9t.js.map} +1 -1
- package/build/server/chunks/hooks.server-BKavEpqC.js +81 -0
- package/build/server/chunks/hooks.server-BKavEpqC.js.map +1 -0
- package/build/server/chunks/index-CLnuRv4X.js +134 -0
- package/build/server/chunks/index-CLnuRv4X.js.map +1 -0
- package/build/server/chunks/index-DBqjc0Yf.js +77 -0
- package/build/server/chunks/index-DBqjc0Yf.js.map +1 -0
- package/build/server/chunks/{internal-WBaPpipk.js → internal-Dz8-ksla.js} +23 -93
- package/build/server/chunks/internal-Dz8-ksla.js.map +1 -0
- package/build/server/chunks/marketingSeo-6Ec8IVzY.js +132 -0
- package/build/server/chunks/marketingSeo-6Ec8IVzY.js.map +1 -0
- package/build/server/chunks/profileApiHelpers-CUuQdn1G.js +180 -0
- package/build/server/chunks/profileApiHelpers-CUuQdn1G.js.map +1 -0
- package/build/server/chunks/{projectContext-C4-xYqFg.js → projectContext-fk5wtjwg.js} +1393 -69
- package/build/server/chunks/projectContext-fk5wtjwg.js.map +1 -0
- package/build/server/chunks/src2-BFardyAd.js +12 -0
- package/build/server/chunks/src2-BFardyAd.js.map +1 -0
- package/build/server/chunks/{dist--t-UlYlZ.js → src3-vKD2iyNK.js} +135 -3
- package/build/server/chunks/src3-vKD2iyNK.js.map +1 -0
- package/build/server/chunks/tokenStore-DQfTa-N3.js +57 -0
- package/build/server/chunks/tokenStore-DQfTa-N3.js.map +1 -0
- package/build/server/index.js +4592 -4
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +57 -15
- package/build/server/manifest.js.map +1 -1
- package/package.json +12 -9
- package/build/client/_app/immutable/assets/0.BG6jUcBX.css.br +0 -0
- package/build/client/_app/immutable/assets/0.BG6jUcBX.css.gz +0 -0
- package/build/client/_app/immutable/chunks/B-io8J2C.js +0 -1
- package/build/client/_app/immutable/chunks/B-io8J2C.js.br +0 -2
- package/build/client/_app/immutable/chunks/B-io8J2C.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BWDgWdtq.js +0 -3
- package/build/client/_app/immutable/chunks/BWDgWdtq.js.br +0 -0
- package/build/client/_app/immutable/chunks/BWDgWdtq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CBvCQPh1.js +0 -1
- package/build/client/_app/immutable/chunks/CBvCQPh1.js.br +0 -2
- package/build/client/_app/immutable/chunks/CBvCQPh1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DAWBIq3g.js +0 -2
- package/build/client/_app/immutable/chunks/DAWBIq3g.js.br +0 -0
- package/build/client/_app/immutable/chunks/DAWBIq3g.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DCJP-V9E.js +0 -3
- package/build/client/_app/immutable/chunks/DCJP-V9E.js.br +0 -0
- package/build/client/_app/immutable/chunks/DCJP-V9E.js.gz +0 -0
- package/build/client/_app/immutable/chunks/SOrpfga1.js +0 -1
- package/build/client/_app/immutable/chunks/SOrpfga1.js.br +0 -0
- package/build/client/_app/immutable/chunks/SOrpfga1.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.CvfSMy7S.js +0 -2
- package/build/client/_app/immutable/entry/app.CvfSMy7S.js.br +0 -0
- package/build/client/_app/immutable/entry/app.CvfSMy7S.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.nKIgWfXU.js +0 -1
- package/build/client/_app/immutable/entry/start.nKIgWfXU.js.br +0 -0
- package/build/client/_app/immutable/entry/start.nKIgWfXU.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.l1JjQQQj.js +0 -1
- package/build/client/_app/immutable/nodes/0.l1JjQQQj.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.l1JjQQQj.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.BzbldZDH.js +0 -1
- package/build/client/_app/immutable/nodes/1.BzbldZDH.js.br +0 -4
- package/build/client/_app/immutable/nodes/1.BzbldZDH.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.BOQgahuX.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.BOQgahuX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.BjwWla8T.js +0 -1
- package/build/client/_app/immutable/nodes/11.BjwWla8T.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.BjwWla8T.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.BDMGSS6l.js +0 -9
- package/build/client/_app/immutable/nodes/2.BDMGSS6l.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.BDMGSS6l.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.NnDkXnSG.js +0 -2
- package/build/client/_app/immutable/nodes/3.NnDkXnSG.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.NnDkXnSG.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.8sZ5zCiS.js +0 -4
- package/build/client/_app/immutable/nodes/4.8sZ5zCiS.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.8sZ5zCiS.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.CSOalQ9R.js +0 -2
- package/build/client/_app/immutable/nodes/5.CSOalQ9R.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.CSOalQ9R.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.BMBuGW7y.js +0 -5
- package/build/client/_app/immutable/nodes/6.BMBuGW7y.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.BMBuGW7y.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.CKFnFT6B.js +0 -4
- package/build/client/_app/immutable/nodes/7.CKFnFT6B.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.CKFnFT6B.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.Dw5huUXy.js +0 -1
- package/build/client/_app/immutable/nodes/8.Dw5huUXy.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.Dw5huUXy.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.CnkwRoxn.js +0 -5
- package/build/client/_app/immutable/nodes/9.CnkwRoxn.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.CnkwRoxn.js.gz +0 -0
- package/build/server/chunks/0-aBAedq2p.js.map +0 -1
- package/build/server/chunks/10-B1aX7ZZ8.js +0 -9
- package/build/server/chunks/2-BT3hDge_.js +0 -9
- package/build/server/chunks/2-BT3hDge_.js.map +0 -1
- package/build/server/chunks/3-CLWhM7Et.js +0 -9
- package/build/server/chunks/5-C1YtO2Ru.js +0 -9
- package/build/server/chunks/8-BNb36pCU.js +0 -9
- package/build/server/chunks/9-LeS-ldcl.js +0 -57
- package/build/server/chunks/9-LeS-ldcl.js.map +0 -1
- package/build/server/chunks/_layout.svelte-C6Ru_7YV.js.map +0 -1
- package/build/server/chunks/_page.svelte-BS9xpx67.js.map +0 -1
- package/build/server/chunks/_page.svelte-IYyXbXcB.js +0 -424
- package/build/server/chunks/_page.svelte-IYyXbXcB.js.map +0 -1
- package/build/server/chunks/dev-CrqJ3ZR3.js.map +0 -1
- package/build/server/chunks/dist--t-UlYlZ.js.map +0 -1
- package/build/server/chunks/hooks.server-BU12K8IL.js +0 -38
- package/build/server/chunks/hooks.server-BU12K8IL.js.map +0 -1
- package/build/server/chunks/index-CNsiSQmW.js +0 -4727
- package/build/server/chunks/index-CNsiSQmW.js.map +0 -1
- package/build/server/chunks/internal-WBaPpipk.js.map +0 -1
- package/build/server/chunks/projectContext-C4-xYqFg.js.map +0 -1
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1779047738841"}
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
// Copyright (c) 2026 Agent Profile Compiler contributors
|
|
3
|
+
|
|
4
|
+
(() => {
|
|
5
|
+
const copyButtons = document.querySelectorAll("[data-copy-command]");
|
|
6
|
+
const heroStages = document.querySelectorAll("[data-hero-stage]");
|
|
7
|
+
const stepButtons = document.querySelectorAll("[data-marketing-step]");
|
|
8
|
+
const stepPanels = document.querySelectorAll("[data-marketing-step-panel]");
|
|
9
|
+
|
|
10
|
+
copyButtons.forEach((button) => {
|
|
11
|
+
button.addEventListener("click", async () => {
|
|
12
|
+
const command = button.getAttribute("data-copy-command") ?? "";
|
|
13
|
+
const copied = await copyText(command);
|
|
14
|
+
const label =
|
|
15
|
+
button.getAttribute("data-copy-label") ?? button.textContent ?? "copy";
|
|
16
|
+
const shell = button.closest("[data-copy-shell]");
|
|
17
|
+
|
|
18
|
+
button.setAttribute("data-copy-label", label);
|
|
19
|
+
button.textContent = copied ? "Copied" : "Failed";
|
|
20
|
+
button.classList.toggle("copied", copied);
|
|
21
|
+
button.classList.toggle("copy-failed", !copied);
|
|
22
|
+
shell?.classList.toggle("copied", copied);
|
|
23
|
+
|
|
24
|
+
window.setTimeout(() => {
|
|
25
|
+
button.textContent = label;
|
|
26
|
+
button.classList.remove("copied", "copy-failed");
|
|
27
|
+
shell?.classList.remove("copied");
|
|
28
|
+
}, 1400);
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
heroStages.forEach((stage) => {
|
|
33
|
+
const id = stage.getAttribute("data-hero-stage");
|
|
34
|
+
if (!id) return;
|
|
35
|
+
|
|
36
|
+
const activate = () => setHeroStage(id);
|
|
37
|
+
stage.addEventListener("pointerenter", activate);
|
|
38
|
+
stage.addEventListener("focusin", activate);
|
|
39
|
+
stage.addEventListener("click", activate);
|
|
40
|
+
stage.addEventListener("keydown", (event) => {
|
|
41
|
+
if (event.key !== "Enter" && event.key !== " ") return;
|
|
42
|
+
event.preventDefault();
|
|
43
|
+
activate();
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
stepButtons.forEach((button) => {
|
|
48
|
+
button.addEventListener("click", () => {
|
|
49
|
+
const id = button.getAttribute("data-marketing-step");
|
|
50
|
+
if (id) setStep(id);
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
async function copyText(text) {
|
|
55
|
+
if (!text) return false;
|
|
56
|
+
|
|
57
|
+
try {
|
|
58
|
+
await navigator.clipboard.writeText(text);
|
|
59
|
+
return true;
|
|
60
|
+
} catch {
|
|
61
|
+
return fallbackCopy(text);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
function fallbackCopy(text) {
|
|
66
|
+
const textarea = document.createElement("textarea");
|
|
67
|
+
textarea.value = text;
|
|
68
|
+
textarea.setAttribute("readonly", "");
|
|
69
|
+
textarea.style.position = "fixed";
|
|
70
|
+
textarea.style.top = "-1000px";
|
|
71
|
+
textarea.style.left = "-1000px";
|
|
72
|
+
document.body.append(textarea);
|
|
73
|
+
textarea.select();
|
|
74
|
+
|
|
75
|
+
try {
|
|
76
|
+
return document.execCommand("copy");
|
|
77
|
+
} catch {
|
|
78
|
+
return false;
|
|
79
|
+
} finally {
|
|
80
|
+
textarea.remove();
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
function setHeroStage(id) {
|
|
85
|
+
heroStages.forEach((stage) => {
|
|
86
|
+
const active = stage.getAttribute("data-hero-stage") === id;
|
|
87
|
+
stage.classList.toggle("on", active);
|
|
88
|
+
stage.setAttribute("aria-pressed", String(active));
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function setStep(id) {
|
|
93
|
+
stepButtons.forEach((button) => {
|
|
94
|
+
const active = button.getAttribute("data-marketing-step") === id;
|
|
95
|
+
button.classList.toggle("on", active);
|
|
96
|
+
button.setAttribute("aria-selected", String(active));
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
stepPanels.forEach((panel) => {
|
|
100
|
+
const active = panel.getAttribute("data-marketing-step-panel") === id;
|
|
101
|
+
panel.classList.toggle("on", active);
|
|
102
|
+
panel.hidden = !active;
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
})();
|
|
Binary file
|
|
Binary file
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { l as loadProjectContext, c as compileProfile } from './projectContext-
|
|
2
|
-
import {
|
|
3
|
-
import '
|
|
1
|
+
import { l as loadProjectContext, c as compileProfile } from './projectContext-fk5wtjwg.js';
|
|
2
|
+
import { g as getMarketingSeoData } from './marketingSeo-6Ec8IVzY.js';
|
|
3
|
+
import { l as loadDoctorSummary } from './doctorSummary-FyoWuR3R.js';
|
|
4
4
|
import 'node:fs/promises';
|
|
5
|
-
import 'node:path';
|
|
6
5
|
import 'process';
|
|
7
6
|
import 'buffer';
|
|
7
|
+
import 'node:util';
|
|
8
|
+
import 'node:path';
|
|
8
9
|
import 'node:crypto';
|
|
9
|
-
import './
|
|
10
|
+
import './src3-vKD2iyNK.js';
|
|
10
11
|
|
|
11
12
|
//#region src/lib/server/projectSummary.ts
|
|
12
13
|
function enabledTargetIds(profile) {
|
|
@@ -65,10 +66,14 @@ function marketingLayoutData() {
|
|
|
65
66
|
lastRunIso: null,
|
|
66
67
|
elapsedMs: 0,
|
|
67
68
|
message: null
|
|
68
|
-
}
|
|
69
|
+
},
|
|
70
|
+
seo: getMarketingSeoData()
|
|
69
71
|
};
|
|
70
72
|
}
|
|
71
73
|
//#endregion
|
|
74
|
+
//#region package.json
|
|
75
|
+
var version = "0.2.0";
|
|
76
|
+
//#endregion
|
|
72
77
|
//#region src/routes/+layout.server.ts
|
|
73
78
|
var prerender = false;
|
|
74
79
|
var ssr = true;
|
|
@@ -87,7 +92,8 @@ async function load({ url }) {
|
|
|
87
92
|
profileValid: ctx.profileResult?.ok === true,
|
|
88
93
|
summary: profileSummary
|
|
89
94
|
},
|
|
90
|
-
doctor
|
|
95
|
+
doctor,
|
|
96
|
+
version
|
|
91
97
|
};
|
|
92
98
|
}
|
|
93
99
|
|
|
@@ -100,11 +106,11 @@ var _layout_server_ts = /*#__PURE__*/Object.freeze({
|
|
|
100
106
|
|
|
101
107
|
const index = 0;
|
|
102
108
|
let component_cache;
|
|
103
|
-
const component = async () => component_cache ??= (await import('./_layout.svelte-
|
|
109
|
+
const component = async () => component_cache ??= (await import('./_layout.svelte-CQM4xaaq.js')).default;
|
|
104
110
|
const server_id = "src/routes/+layout.server.ts";
|
|
105
|
-
const imports = ["_app/immutable/nodes/0.
|
|
106
|
-
const stylesheets = ["_app/immutable/assets/0.
|
|
111
|
+
const imports = ["_app/immutable/nodes/0.BTaKrNnR.js","_app/immutable/chunks/CF39CcoQ.js","_app/immutable/chunks/CRcOA4L4.js","_app/immutable/chunks/DvNNrklS.js","_app/immutable/chunks/I8rQr1kY.js"];
|
|
112
|
+
const stylesheets = ["_app/immutable/assets/0.8hVtEx5X.css"];
|
|
107
113
|
const fonts = [];
|
|
108
114
|
|
|
109
115
|
export { component, fonts, imports, index, _layout_server_ts as server, server_id, stylesheets };
|
|
110
|
-
//# sourceMappingURL=0-
|
|
116
|
+
//# sourceMappingURL=0-IAeZ4YD5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"0-IAeZ4YD5.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/_layout.server.ts.js","../../../.svelte-kit/adapter-node/nodes/0.js"],"sourcesContent":["import { c as compileProfile, t as loadProjectContext } from \"../../chunks/projectContext.js\";\nimport { i as getMarketingSeoData } from \"../../chunks/marketingSeo.js\";\nimport { n as loadDoctorSummary } from \"../../chunks/doctorSummary.js\";\n//#region src/lib/server/projectSummary.ts\nfunction enabledTargetIds(profile) {\n\treturn [\n\t\tprofile.clients.tabnine.enabled ? \"tabnine\" : null,\n\t\tprofile.clients.codex.enabled ? \"codex\" : null,\n\t\tprofile.clients.claude.enabled ? \"claude\" : null\n\t].filter((value) => value !== null);\n}\nfunction summarizeProfile(profile) {\n\tconst targets = enabledTargetIds(profile);\n\tconst compiled = compileProfile({ profile });\n\tconst fileCount = compiled.ok ? compiled.files.length : null;\n\treturn {\n\t\tstack: {\n\t\t\tlanguages: profile.stack.languages,\n\t\t\tframeworks: profile.stack.frameworks,\n\t\t\tpackageManagers: profile.stack.packageManagers,\n\t\t\ttesting: profile.stack.testing\n\t\t},\n\t\ttargets: {\n\t\t\tenabled: targets,\n\t\t\tenabledCount: targets.length\n\t\t},\n\t\tartifacts: {\n\t\t\tfileCount,\n\t\t\ttargetCount: targets.length\n\t\t}\n\t};\n}\n//#endregion\n//#region src/lib/server/marketingLayout.ts\nfunction isMarketingRoute(pathname) {\n\treturn pathname === \"/\" || pathname === \"/landing\";\n}\nfunction marketingLayoutData() {\n\treturn {\n\t\tproject: {\n\t\t\trootName: \"agent-profile\",\n\t\t\tprofilePath: \"ai-profile.yaml\",\n\t\t\tprofileHash: null,\n\t\t\tsafetyMode: \"guarded\",\n\t\t\tprofileFound: false,\n\t\t\tprofileValid: false,\n\t\t\tsummary: null\n\t\t},\n\t\tdoctor: {\n\t\t\tok: false,\n\t\t\tstatus: \"unknown\",\n\t\t\tlabel: \"not run\",\n\t\t\terrorCount: 0,\n\t\t\twarningCount: 0,\n\t\t\tinfoCount: 0,\n\t\t\tnotVerifiableCount: 0,\n\t\t\ttotalIssues: 0,\n\t\t\tlastRunIso: null,\n\t\t\telapsedMs: 0,\n\t\t\tmessage: null\n\t\t},\n\t\tseo: getMarketingSeoData()\n\t};\n}\n//#endregion\n//#region package.json\nvar version = \"0.2.0\";\n//#endregion\n//#region src/routes/+layout.server.ts\nvar prerender = false;\nvar ssr = true;\nasync function load({ url }) {\n\tif (isMarketingRoute(url.pathname)) return marketingLayoutData();\n\tconst ctx = await loadProjectContext();\n\tconst doctor = await loadDoctorSummary(ctx.rootDir);\n\tconst profileSummary = ctx.profileResult?.ok === true ? summarizeProfile(ctx.profileResult.profile) : null;\n\treturn {\n\t\tproject: {\n\t\t\trootName: ctx.rootName,\n\t\t\tprofilePath: ctx.profilePath,\n\t\t\tprofileHash: ctx.profileHash,\n\t\t\tsafetyMode: ctx.safetyMode,\n\t\t\tprofileFound: ctx.profileFound,\n\t\t\tprofileValid: ctx.profileResult?.ok === true,\n\t\t\tsummary: profileSummary\n\t\t},\n\t\tdoctor,\n\t\tversion\n\t};\n}\n//#endregion\nexport { load, prerender, ssr };\n","import * as server from '../entries/pages/_layout.server.ts.js';\n\nexport const index = 0;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_layout.svelte.js')).default;\nexport { server };\nexport const server_id = \"src/routes/+layout.server.ts\";\nexport const imports = [\"_app/immutable/nodes/0.BTaKrNnR.js\",\"_app/immutable/chunks/CF39CcoQ.js\",\"_app/immutable/chunks/CRcOA4L4.js\",\"_app/immutable/chunks/DvNNrklS.js\",\"_app/immutable/chunks/I8rQr1kY.js\"];\nexport const stylesheets = [\"_app/immutable/assets/0.8hVtEx5X.css\"];\nexport const fonts = [];\n"],"names":[],"mappings":";;;;;;;;;;;AAGA;AACA,SAAS,gBAAgB,CAAC,OAAO,EAAE;AACnC,CAAC,OAAO;AACR,E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C,WAAW;AAC/B,GAAG,WAAW,EAAE,GAAG,CAAC,WAAW;AAC/B,GAAG,UAAU,EAAE,GAAG,CAAC,UAAU;AAC7B,GAAG,YAAY,EAAE,GAAG,CAAC,YAAY;AACjC,GAAG,YAAY,EAAE,GAAG,CAAC,aAAa,EAAE,EAAE,KAAK,IAAI;AAC/C,GAAG,OAAO,EAAE;AACZ,GAAG;AACH,EAAE,MAAM;AACR,EAAE;AACF,EAAE;AACF;;;;;;;;;ACvFY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,8BAAoC,CAAC,EAAE;AAElG,MAAC,SAAS,GAAG;AACb,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAChM,MAAC,WAAW,GAAG,CAAC,sCAAsC;AACtD,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const index = 1;
|
|
2
2
|
let component_cache;
|
|
3
|
-
const component = async () => component_cache ??= (await import('./error.svelte-
|
|
4
|
-
const imports = ["_app/immutable/nodes/1.
|
|
3
|
+
const component = async () => component_cache ??= (await import('./error.svelte-DYzh-S9t.js')).default;
|
|
4
|
+
const imports = ["_app/immutable/nodes/1.B4GcuHvH.js","_app/immutable/chunks/CF39CcoQ.js","_app/immutable/chunks/CRcOA4L4.js","_app/immutable/chunks/I8rQr1kY.js"];
|
|
5
5
|
const stylesheets = [];
|
|
6
6
|
const fonts = [];
|
|
7
7
|
|
|
8
8
|
export { component, fonts, imports, index, stylesheets };
|
|
9
|
-
//# sourceMappingURL=1
|
|
9
|
+
//# sourceMappingURL=1--R3gZqoU.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1
|
|
1
|
+
{"version":3,"file":"1--R3gZqoU.js","sources":["../../../.svelte-kit/adapter-node/nodes/1.js"],"sourcesContent":["\n\nexport const index = 1;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/fallbacks/error.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/1.B4GcuHvH.js\",\"_app/immutable/chunks/CF39CcoQ.js\",\"_app/immutable/chunks/CRcOA4L4.js\",\"_app/immutable/chunks/I8rQr1kY.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAsC,CAAC,EAAE;AACpG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAC5J,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const index = 10;
|
|
2
|
+
let component_cache;
|
|
3
|
+
const component = async () => component_cache ??= (await import('./_page.svelte-wL3fdD1l.js')).default;
|
|
4
|
+
const imports = ["_app/immutable/nodes/10.IHQDAuDz.js","_app/immutable/chunks/CF39CcoQ.js","_app/immutable/chunks/DUEBfJ-c.js","_app/immutable/chunks/I8rQr1kY.js","_app/immutable/chunks/DvNNrklS.js","_app/immutable/chunks/Cc9Av3g9.js"];
|
|
5
|
+
const stylesheets = [];
|
|
6
|
+
const fonts = [];
|
|
7
|
+
|
|
8
|
+
export { component, fonts, imports, index, stylesheets };
|
|
9
|
+
//# sourceMappingURL=10-B2v4GVik.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"10-
|
|
1
|
+
{"version":3,"file":"10-B2v4GVik.js","sources":["../../../.svelte-kit/adapter-node/nodes/10.js"],"sourcesContent":["\n\nexport const index = 10;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/settings/_page.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/10.IHQDAuDz.js\",\"_app/immutable/chunks/CF39CcoQ.js\",\"_app/immutable/chunks/DUEBfJ-c.js\",\"_app/immutable/chunks/I8rQr1kY.js\",\"_app/immutable/chunks/DvNNrklS.js\",\"_app/immutable/chunks/Cc9Av3g9.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAA2C,CAAC,EAAE;AACzG,MAAC,OAAO,GAAG,CAAC,qCAAqC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACrO,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { l as loadProjectContext } from './projectContext-
|
|
2
|
-
import 'node:module';
|
|
1
|
+
import { l as loadProjectContext } from './projectContext-fk5wtjwg.js';
|
|
3
2
|
import 'node:fs/promises';
|
|
4
|
-
import 'node:path';
|
|
5
3
|
import 'process';
|
|
6
4
|
import 'buffer';
|
|
5
|
+
import 'node:util';
|
|
6
|
+
import 'node:path';
|
|
7
7
|
import 'node:crypto';
|
|
8
8
|
|
|
9
9
|
//#region src/routes/targets/+page.server.ts
|
|
@@ -73,11 +73,11 @@ var _page_server_ts = /*#__PURE__*/Object.freeze({
|
|
|
73
73
|
|
|
74
74
|
const index = 11;
|
|
75
75
|
let component_cache;
|
|
76
|
-
const component = async () => component_cache ??= (await import('./_page.svelte-
|
|
76
|
+
const component = async () => component_cache ??= (await import('./_page.svelte-xTZOj1o8.js')).default;
|
|
77
77
|
const server_id = "src/routes/targets/+page.server.ts";
|
|
78
|
-
const imports = ["_app/immutable/nodes/11.
|
|
78
|
+
const imports = ["_app/immutable/nodes/11.B5APptAv.js","_app/immutable/chunks/CF39CcoQ.js","_app/immutable/chunks/DUEBfJ-c.js","_app/immutable/chunks/I8rQr1kY.js","_app/immutable/chunks/Cc9Av3g9.js"];
|
|
79
79
|
const stylesheets = [];
|
|
80
80
|
const fonts = [];
|
|
81
81
|
|
|
82
82
|
export { component, fonts, imports, index, _page_server_ts as server, server_id, stylesheets };
|
|
83
|
-
//# sourceMappingURL=11-
|
|
83
|
+
//# sourceMappingURL=11-DbxvesJH.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"11-
|
|
1
|
+
{"version":3,"file":"11-DbxvesJH.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/targets/_page.server.ts.js","../../../.svelte-kit/adapter-node/nodes/11.js"],"sourcesContent":["import { t as loadProjectContext } from \"../../../chunks/projectContext.js\";\n//#region src/routes/targets/+page.server.ts\nvar OUTPUTS = {\n\ttabnine: [\n\t\t\"AGENTS.md\",\n\t\t\".tabnine/guidelines/00-general-agent-behavior.md\",\n\t\t\".tabnine/guidelines/10-sdd-workflow.md\",\n\t\t\".tabnine/guidelines/20-tdd-workflow.md\",\n\t\t\".tabnine/guidelines/30-stack-typescript-svelte.md\",\n\t\t\".tabnine/guidelines/40-stack-java-spring.md\",\n\t\t\".tabnine/guidelines/50-testing-playwright-junit.md\",\n\t\t\".tabnine/guidelines/90-final-review.md\",\n\t\t\".tabnine/mcp_servers.json\"\n\t],\n\tcodex: [\n\t\t\"AGENTS.md\",\n\t\t\".codex/config.toml\",\n\t\t\".agents/skills/sdd-change/SKILL.md\",\n\t\t\".agents/skills/tdd-change/SKILL.md\",\n\t\t\".agents/skills/final-review/SKILL.md\"\n\t],\n\tclaude: [\n\t\t\"CLAUDE.md\",\n\t\t\".claude/settings.json\",\n\t\t\".claude/skills/sdd-change/SKILL.md\",\n\t\t\".claude/skills/tdd-change/SKILL.md\",\n\t\t\".claude/skills/final-review/SKILL.md\"\n\t]\n};\nasync function load() {\n\tconst ctx = await loadProjectContext();\n\tif (!ctx.profileFound || ctx.profileResult === null || !ctx.profileResult.ok) return { view: {\n\t\tok: false,\n\t\treason: \"missing\"\n\t} };\n\tconst c = ctx.profileResult.profile.clients;\n\treturn { view: {\n\t\tok: true,\n\t\trows: [\n\t\t\t{\n\t\t\t\tid: \"tabnine\",\n\t\t\t\tname: \"Tabnine\",\n\t\t\t\tenabled: c.tabnine.enabled,\n\t\t\t\toutputs: OUTPUTS.tabnine\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"codex\",\n\t\t\t\tname: \"Codex\",\n\t\t\t\tenabled: c.codex.enabled,\n\t\t\t\toutputs: OUTPUTS.codex\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"claude\",\n\t\t\t\tname: \"Claude\",\n\t\t\t\tenabled: c.claude.enabled,\n\t\t\t\toutputs: OUTPUTS.claude\n\t\t\t}\n\t\t]\n\t} };\n}\n//#endregion\nexport { load };\n","import * as server from '../entries/pages/targets/_page.server.ts.js';\n\nexport const index = 11;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/targets/_page.svelte.js')).default;\nexport { server };\nexport const server_id = \"src/routes/targets/+page.server.ts\";\nexport const imports = [\"_app/immutable/nodes/11.B5APptAv.js\",\"_app/immutable/chunks/CF39CcoQ.js\",\"_app/immutable/chunks/DUEBfJ-c.js\",\"_app/immutable/chunks/I8rQr1kY.js\",\"_app/immutable/chunks/Cc9Av3g9.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":";;;;;;;;AACA;AACA,IAAI,OAAO,GAAG;AACd,CAAC,OAAO,EAAE;AACV,EAAE,WAAW;AACb,EAAE,kDAAkD;AACpD,EAAE,wCAAwC;AAC1C,EAAE,wCAAwC;AAC1C,EAAE,mDAAmD;AACrD,EAAE,6CAA6C;AAC/C,EAAE,oDAAoD;AACtD,EAAE,wCAAwC;AAC1C,EAAE;AACF,EAAE;AACF,CAAC,KAAK,EAAE;AACR,EAAE,WAAW;AACb,EAAE,oBAAoB;AACtB,EAAE,oCAAoC;AACtC,EAAE,oCAAoC;AACtC,EAAE;AACF,EAAE;AACF,CAAC,MAAM,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AAC,EAAE;AAExG,MAAC,SAAS,GAAG;AACb,MAAC,OAAO,GAAG,CAAC,qCAAqC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACjM,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/routes/+page.ts
|
|
2
|
+
var marketingBuild = typeof process !== "undefined" && process.env.AGENT_PROFILE_MARKETING_BUILD === "1";
|
|
3
|
+
var csr = !marketingBuild;
|
|
4
|
+
var prerender = marketingBuild;
|
|
5
|
+
|
|
6
|
+
var _page_ts = /*#__PURE__*/Object.freeze({
|
|
7
|
+
__proto__: null,
|
|
8
|
+
csr: csr,
|
|
9
|
+
prerender: prerender
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
const index = 2;
|
|
13
|
+
let component_cache;
|
|
14
|
+
const component = async () => component_cache ??= (await import('./_page.svelte-DfUc4h7g.js')).default;
|
|
15
|
+
const universal_id = "src/routes/+page.ts";
|
|
16
|
+
const imports = ["_app/immutable/nodes/2.BHUaWFMZ.js","_app/immutable/chunks/CF39CcoQ.js","_app/immutable/chunks/DvNNrklS.js","_app/immutable/chunks/I8rQr1kY.js"];
|
|
17
|
+
const stylesheets = [];
|
|
18
|
+
const fonts = [];
|
|
19
|
+
|
|
20
|
+
export { component, fonts, imports, index, stylesheets, _page_ts as universal, universal_id };
|
|
21
|
+
//# sourceMappingURL=2-CHviyPyI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"2-CHviyPyI.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/_page.ts.js","../../../.svelte-kit/adapter-node/nodes/2.js"],"sourcesContent":["//#region src/routes/+page.ts\nvar marketingBuild = typeof process !== \"undefined\" && process.env.AGENT_PROFILE_MARKETING_BUILD === \"1\";\nvar csr = !marketingBuild;\nvar prerender = marketingBuild;\n//#endregion\nexport { csr, prerender };\n","import * as universal from '../entries/pages/_page.ts.js';\n\nexport const index = 2;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_page.svelte.js')).default;\nexport { universal };\nexport const universal_id = \"src/routes/+page.ts\";\nexport const imports = [\"_app/immutable/nodes/2.BHUaWFMZ.js\",\"_app/immutable/chunks/CF39CcoQ.js\",\"_app/immutable/chunks/DvNNrklS.js\",\"_app/immutable/chunks/I8rQr1kY.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAAA;AACA,IAAI,cAAc,GAAG,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,GAAG,CAAC,6BAA6B,KAAK,GAAG;AACxG,IAAI,GAAG,GAAG,CAAC,cAAc;AACzB,IAAI,SAAS,GAAG,cAAc;;;;;;;;ACDlB,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAkC,CAAC,EAAE;AAEhG,MAAC,YAAY,GAAG;AAChB,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAC5J,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const index = 3;
|
|
2
|
+
let component_cache;
|
|
3
|
+
const component = async () => component_cache ??= (await import('./_page.svelte-1wUrXGW-.js')).default;
|
|
4
|
+
const imports = ["_app/immutable/nodes/3.DIhh3cSh.js","_app/immutable/chunks/CF39CcoQ.js","_app/immutable/chunks/DUEBfJ-c.js","_app/immutable/chunks/I8rQr1kY.js","_app/immutable/chunks/Cc9Av3g9.js"];
|
|
5
|
+
const stylesheets = [];
|
|
6
|
+
const fonts = [];
|
|
7
|
+
|
|
8
|
+
export { component, fonts, imports, index, stylesheets };
|
|
9
|
+
//# sourceMappingURL=3-CdNRNP5d.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"3-
|
|
1
|
+
{"version":3,"file":"3-CdNRNP5d.js","sources":["../../../.svelte-kit/adapter-node/nodes/3.js"],"sourcesContent":["\n\nexport const index = 3;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/activity/_page.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/3.DIhh3cSh.js\",\"_app/immutable/chunks/CF39CcoQ.js\",\"_app/immutable/chunks/DUEBfJ-c.js\",\"_app/immutable/chunks/I8rQr1kY.js\",\"_app/immutable/chunks/Cc9Av3g9.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAA2C,CAAC,EAAE;AACzG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAChM,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { l as loadProjectContext, c as compileProfile, v as validateLockfileText,
|
|
2
|
-
import { r as runDoctor } from './
|
|
1
|
+
import { l as loadProjectContext, c as compileProfile, v as validateLockfileText, k as redactIfSecretLike, t as truncatePreview, e as sha256Hex } from './projectContext-fk5wtjwg.js';
|
|
2
|
+
import { r as runDoctor } from './src3-vKD2iyNK.js';
|
|
3
3
|
import { readFile } from 'node:fs/promises';
|
|
4
4
|
import path from 'node:path';
|
|
5
|
-
import 'node:module';
|
|
6
5
|
import 'process';
|
|
7
6
|
import 'buffer';
|
|
7
|
+
import 'node:util';
|
|
8
8
|
import 'node:crypto';
|
|
9
9
|
|
|
10
10
|
//#region src/routes/artifacts/+page.server.ts
|
|
@@ -136,11 +136,11 @@ var _page_server_ts = /*#__PURE__*/Object.freeze({
|
|
|
136
136
|
|
|
137
137
|
const index = 4;
|
|
138
138
|
let component_cache;
|
|
139
|
-
const component = async () => component_cache ??= (await import('./_page.svelte-
|
|
139
|
+
const component = async () => component_cache ??= (await import('./_page.svelte-D8ffqrO3.js')).default;
|
|
140
140
|
const server_id = "src/routes/artifacts/+page.server.ts";
|
|
141
|
-
const imports = ["_app/immutable/nodes/4.
|
|
141
|
+
const imports = ["_app/immutable/nodes/4.DjkBBmOF.js","_app/immutable/chunks/CF39CcoQ.js","_app/immutable/chunks/DUEBfJ-c.js","_app/immutable/chunks/I8rQr1kY.js","_app/immutable/chunks/Cc9Av3g9.js"];
|
|
142
142
|
const stylesheets = [];
|
|
143
143
|
const fonts = [];
|
|
144
144
|
|
|
145
145
|
export { component, fonts, imports, index, _page_server_ts as server, server_id, stylesheets };
|
|
146
|
-
//# sourceMappingURL=4-
|
|
146
|
+
//# sourceMappingURL=4-CCj_Mhpz.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"4-BehBrXcu.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/artifacts/_page.server.ts.js","../../../.svelte-kit/adapter-node/nodes/4.js"],"sourcesContent":["import { a as compileProfile, i as truncatePreview, l as sha256Hex, n as redactIfSecretLike, s as validateLockfileText, t as loadProjectContext } from \"../../../chunks/projectContext.js\";\nimport { t as runDoctor } from \"../../../chunks/dist.js\";\nimport { readFile } from \"node:fs/promises\";\nimport path from \"node:path\";\n//#region src/routes/artifacts/+page.server.ts\nvar DRIFT_CODES = new Set([\n\t\"LINT-LOCK-001\",\n\t\"LINT-LOCK-002\",\n\t\"LINT-LOCK-003\",\n\t\"LINT-LOCK-004\",\n\t\"LINT-LOCK-005\",\n\t\"LINT-LOCK-006\",\n\t\"LINT-LOCK-007\"\n]);\nvar LOCKFILE_PATH = \"ai-profile.lock\";\nfunction safeRootPath(rootDir, relativePath) {\n\tconst resolvedRoot = path.resolve(rootDir);\n\tconst resolved = path.resolve(resolvedRoot, ...relativePath.split(\"/\"));\n\tif (resolved === resolvedRoot || resolved.startsWith(resolvedRoot + path.sep)) return resolved;\n\treturn null;\n}\nfunction artifactFromBytes(input, bytes) {\n\tconst text = new TextDecoder(\"utf-8\").decode(bytes);\n\tconst redactedText = redactIfSecretLike(text);\n\tconst redacted = redactedText !== text;\n\tconst { text: previewText, truncated } = truncatePreview(redactedText);\n\treturn {\n\t\tpath: input.path,\n\t\ttarget: input.target,\n\t\ttemplateId: input.templateId,\n\t\thash: sha256Hex(bytes).slice(0, 8),\n\t\tstatus: input.status,\n\t\tpreview: previewText,\n\t\tredacted,\n\t\ttruncated,\n\t\tbyteSize: bytes.byteLength\n\t};\n}\nfunction generatedArtifact(file, driftedPaths) {\n\treturn artifactFromBytes({\n\t\tpath: file.path,\n\t\ttarget: file.target,\n\t\ttemplateId: file.templateId,\n\t\tstatus: driftedPaths.has(file.path) ? \"drifted\" : \"generated\"\n\t}, file.bytes);\n}\nasync function loadManualArtifacts(rootDir, generatedPaths) {\n\tconst lockfilePath = safeRootPath(rootDir, LOCKFILE_PATH);\n\tif (lockfilePath === null) return [];\n\tlet lockSource;\n\ttry {\n\t\tlockSource = await readFile(lockfilePath, \"utf8\");\n\t} catch {\n\t\treturn [];\n\t}\n\tconst lock = validateLockfileText(lockSource);\n\tif (!lock.ok) return [];\n\tconst manual = [];\n\tfor (const output of lock.lockfile.outputs) {\n\t\tif (generatedPaths.has(output.path)) continue;\n\t\tconst file = await readManualOutput(rootDir, output);\n\t\tif (file !== null) manual.push(file);\n\t}\n\treturn manual;\n}\nasync function readManualOutput(rootDir, output) {\n\tconst outputPath = safeRootPath(rootDir, output.path);\n\tif (outputPath === null) return null;\n\ttry {\n\t\tconst bytes = await readFile(outputPath);\n\t\treturn artifactFromBytes({\n\t\t\tpath: output.path,\n\t\t\ttarget: output.target,\n\t\t\ttemplateId: output.templateId,\n\t\t\tstatus: \"manual\"\n\t\t}, bytes);\n\t} catch {\n\t\treturn null;\n\t}\n}\nasync function load() {\n\tconst ctx = await loadProjectContext();\n\tif (!ctx.profileFound || ctx.profileResult === null) return { view: {\n\t\tok: false,\n\t\treason: \"missing\"\n\t} };\n\tif (!ctx.profileResult.ok) return { view: {\n\t\tok: false,\n\t\treason: \"invalid\",\n\t\tissues: ctx.profileResult.issues.map((i) => ({\n\t\t\tcode: i.code,\n\t\t\tpath: i.path,\n\t\t\tmessage: i.message\n\t\t}))\n\t} };\n\tconst result = compileProfile({ profile: ctx.profileResult.profile });\n\tif (!result.ok) return { view: {\n\t\tok: false,\n\t\treason: \"compile_error\",\n\t\tissues: result.issues.map((i) => ({\n\t\t\tcode: i.code,\n\t\t\tpath: i.path,\n\t\t\tmessage: i.message\n\t\t}))\n\t} };\n\tlet driftedPaths = /* @__PURE__ */ new Set();\n\ttry {\n\t\tconst doctorResult = await runDoctor({ rootDir: ctx.rootDir });\n\t\tdriftedPaths = new Set(doctorResult.issues.filter((i) => DRIFT_CODES.has(i.code)).map((i) => i.path));\n\t} catch {\n\t\tdriftedPaths = /* @__PURE__ */ new Set();\n\t}\n\tconst generatedPaths = new Set(result.files.map((file) => file.path));\n\tconst targetCount = [\n\t\tctx.profileResult.profile.clients.tabnine.enabled,\n\t\tctx.profileResult.profile.clients.codex.enabled,\n\t\tctx.profileResult.profile.clients.claude.enabled\n\t].filter(Boolean).length;\n\tconst manualFiles = await loadManualArtifacts(ctx.rootDir, generatedPaths);\n\treturn { view: {\n\t\tok: true,\n\t\tfiles: result.files.map((file) => generatedArtifact(file, driftedPaths)).concat(manualFiles).sort((a, b) => a.path.localeCompare(b.path)),\n\t\ttargetCount\n\t} };\n}\n//#endregion\nexport { load };\n","import * as server from '../entries/pages/artifacts/_page.server.ts.js';\n\nexport const index = 4;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/artifacts/_page.svelte.js')).default;\nexport { server };\nexport const server_id = \"src/routes/artifacts/+page.server.ts\";\nexport const imports = [\"_app/immutable/nodes/4.8sZ5zCiS.js\",\"_app/immutable/chunks/DCJP-V9E.js\",\"_app/immutable/chunks/SOrpfga1.js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GAAG,CAAC,aAAa,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO;AACnD,EAAE,GAAG,CAAC,aAAa,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO;AACjD,EAAE,GAAG,CAAC,aAAa,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC;AAC3C,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM;AACzB,CAAC,MAAM,WAAW,GAAG,MAAM,mBAAmB,CAAC,GAAG,CAAC,OAAO,EAAE,cAAc,CAAC;AAC3E,CAAC,OAAO,EAAE,IAAI,EAAE;AAChB,EAAE,EAAE,EAAE,IAAI;AACV,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,iBAAiB,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AAC3I,EAAE;AACF,EAAE,EAAE;AACJ;;;;;;;AC1HY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAA4C,CAAC,EAAE;AAE1G,MAAC,SAAS,GAAG;AACb,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAChM,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
|
|
1
|
+
{"version":3,"file":"4-CCj_Mhpz.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/artifacts/_page.server.ts.js","../../../.svelte-kit/adapter-node/nodes/4.js"],"sourcesContent":["import { c as compileProfile, f as sha256Hex, i as truncatePreview, n as redactIfSecretLike, t as loadProjectContext, u as validateLockfileText } from \"../../../chunks/projectContext.js\";\nimport { t as runDoctor } from \"../../../chunks/src3.js\";\nimport { readFile } from \"node:fs/promises\";\nimport path from \"node:path\";\n//#region src/routes/artifacts/+page.server.ts\nvar DRIFT_CODES = new Set([\n\t\"LINT-LOCK-001\",\n\t\"LINT-LOCK-002\",\n\t\"LINT-LOCK-003\",\n\t\"LINT-LOCK-004\",\n\t\"LINT-LOCK-005\",\n\t\"LINT-LOCK-006\",\n\t\"LINT-LOCK-007\"\n]);\nvar LOCKFILE_PATH = \"ai-profile.lock\";\nfunction safeRootPath(rootDir, relativePath) {\n\tconst resolvedRoot = path.resolve(rootDir);\n\tconst resolved = path.resolve(resolvedRoot, ...relativePath.split(\"/\"));\n\tif (resolved === resolvedRoot || resolved.startsWith(resolvedRoot + path.sep)) return resolved;\n\treturn null;\n}\nfunction artifactFromBytes(input, bytes) {\n\tconst text = new TextDecoder(\"utf-8\").decode(bytes);\n\tconst redactedText = redactIfSecretLike(text);\n\tconst redacted = redactedText !== text;\n\tconst { text: previewText, truncated } = truncatePreview(redactedText);\n\treturn {\n\t\tpath: input.path,\n\t\ttarget: input.target,\n\t\ttemplateId: input.templateId,\n\t\thash: sha256Hex(bytes).slice(0, 8),\n\t\tstatus: input.status,\n\t\tpreview: previewText,\n\t\tredacted,\n\t\ttruncated,\n\t\tbyteSize: bytes.byteLength\n\t};\n}\nfunction generatedArtifact(file, driftedPaths) {\n\treturn artifactFromBytes({\n\t\tpath: file.path,\n\t\ttarget: file.target,\n\t\ttemplateId: file.templateId,\n\t\tstatus: driftedPaths.has(file.path) ? \"drifted\" : \"generated\"\n\t}, file.bytes);\n}\nasync function loadManualArtifacts(rootDir, generatedPaths) {\n\tconst lockfilePath = safeRootPath(rootDir, LOCKFILE_PATH);\n\tif (lockfilePath === null) return [];\n\tlet lockSource;\n\ttry {\n\t\tlockSource = await readFile(lockfilePath, \"utf8\");\n\t} catch {\n\t\treturn [];\n\t}\n\tconst lock = validateLockfileText(lockSource);\n\tif (!lock.ok) return [];\n\tconst manual = [];\n\tfor (const output of lock.lockfile.outputs) {\n\t\tif (generatedPaths.has(output.path)) continue;\n\t\tconst file = await readManualOutput(rootDir, output);\n\t\tif (file !== null) manual.push(file);\n\t}\n\treturn manual;\n}\nasync function readManualOutput(rootDir, output) {\n\tconst outputPath = safeRootPath(rootDir, output.path);\n\tif (outputPath === null) return null;\n\ttry {\n\t\tconst bytes = await readFile(outputPath);\n\t\treturn artifactFromBytes({\n\t\t\tpath: output.path,\n\t\t\ttarget: output.target,\n\t\t\ttemplateId: output.templateId,\n\t\t\tstatus: \"manual\"\n\t\t}, bytes);\n\t} catch {\n\t\treturn null;\n\t}\n}\nasync function load() {\n\tconst ctx = await loadProjectContext();\n\tif (!ctx.profileFound || ctx.profileResult === null) return { view: {\n\t\tok: false,\n\t\treason: \"missing\"\n\t} };\n\tif (!ctx.profileResult.ok) return { view: {\n\t\tok: false,\n\t\treason: \"invalid\",\n\t\tissues: ctx.profileResult.issues.map((i) => ({\n\t\t\tcode: i.code,\n\t\t\tpath: i.path,\n\t\t\tmessage: i.message\n\t\t}))\n\t} };\n\tconst result = compileProfile({ profile: ctx.profileResult.profile });\n\tif (!result.ok) return { view: {\n\t\tok: false,\n\t\treason: \"compile_error\",\n\t\tissues: result.issues.map((i) => ({\n\t\t\tcode: i.code,\n\t\t\tpath: i.path,\n\t\t\tmessage: i.message\n\t\t}))\n\t} };\n\tlet driftedPaths = /* @__PURE__ */ new Set();\n\ttry {\n\t\tconst doctorResult = await runDoctor({ rootDir: ctx.rootDir });\n\t\tdriftedPaths = new Set(doctorResult.issues.filter((i) => DRIFT_CODES.has(i.code)).map((i) => i.path));\n\t} catch {\n\t\tdriftedPaths = /* @__PURE__ */ new Set();\n\t}\n\tconst generatedPaths = new Set(result.files.map((file) => file.path));\n\tconst targetCount = [\n\t\tctx.profileResult.profile.clients.tabnine.enabled,\n\t\tctx.profileResult.profile.clients.codex.enabled,\n\t\tctx.profileResult.profile.clients.claude.enabled\n\t].filter(Boolean).length;\n\tconst manualFiles = await loadManualArtifacts(ctx.rootDir, generatedPaths);\n\treturn { view: {\n\t\tok: true,\n\t\tfiles: result.files.map((file) => generatedArtifact(file, driftedPaths)).concat(manualFiles).sort((a, b) => a.path.localeCompare(b.path)),\n\t\ttargetCount\n\t} };\n}\n//#endregion\nexport { load };\n","import * as server from '../entries/pages/artifacts/_page.server.ts.js';\n\nexport const index = 4;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/artifacts/_page.svelte.js')).default;\nexport { server };\nexport const server_id = \"src/routes/artifacts/+page.server.ts\";\nexport const imports = [\"_app/immutable/nodes/4.DjkBBmOF.js\",\"_app/immutable/chunks/CF39CcoQ.js\",\"_app/immutable/chunks/DUEBfJ-c.js\",\"_app/immutable/chunks/I8rQr1kY.js\",\"_app/immutable/chunks/Cc9Av3g9.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":";;;;;;;;;AAIA;AACA,IAAI,WAAW,GAAG,IAAI,GAAG,CAAC;AAC1B,CAAC,eAAe;AAChB,CAAC,eAAe;AAChB,CAAC,eAAe;AAChB,CAAC,eAAe;AAChB,CAAC,eAAe;AAChB,CAAC,eAAe;AAChB,CAAC;AACD,CAAC,CAAC;AACF,IAAI,aAAa,GAAG,iBAAiB;AACrC,SAAS,YAAY,CAAC,OAAO,EAAE,YAAY,EAAE;AAC7C,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;AAC3C,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,GAAG,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACxE,CAAC,IAAI,QAAQ,KAAK,YAAY,IAAI,QAAQ,CAAC,UAAU,CAAC,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,OAAO,QAAQ;AAC/F,CAAC,OAAO,IAAI;AACZ;AACA,SAAS,iBAAiB,CAAC,KAAK,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AAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAA4C,CAAC,EAAE;AAE1G,MAAC,SAAS,GAAG;AACb,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAChM,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const index = 5;
|
|
2
|
+
let component_cache;
|
|
3
|
+
const component = async () => component_cache ??= (await import('./_page.svelte-BikYFdJv.js')).default;
|
|
4
|
+
const imports = ["_app/immutable/nodes/5.BPcSAYs6.js","_app/immutable/chunks/CF39CcoQ.js","_app/immutable/chunks/DUEBfJ-c.js","_app/immutable/chunks/I8rQr1kY.js","_app/immutable/chunks/DvNNrklS.js","_app/immutable/chunks/Cc9Av3g9.js"];
|
|
5
|
+
const stylesheets = [];
|
|
6
|
+
const fonts = [];
|
|
7
|
+
|
|
8
|
+
export { component, fonts, imports, index, stylesheets };
|
|
9
|
+
//# sourceMappingURL=5-CqBVRlNU.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"5-
|
|
1
|
+
{"version":3,"file":"5-CqBVRlNU.js","sources":["../../../.svelte-kit/adapter-node/nodes/5.js"],"sourcesContent":["\n\nexport const index = 5;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/dashboard/_page.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/5.BPcSAYs6.js\",\"_app/immutable/chunks/CF39CcoQ.js\",\"_app/immutable/chunks/DUEBfJ-c.js\",\"_app/immutable/chunks/I8rQr1kY.js\",\"_app/immutable/chunks/DvNNrklS.js\",\"_app/immutable/chunks/Cc9Av3g9.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAA4C,CAAC,EAAE;AAC1G,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACpO,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const index = 6;
|
|
2
2
|
let component_cache;
|
|
3
|
-
const component = async () => component_cache ??= (await import('./_page.svelte-
|
|
4
|
-
const imports = ["_app/immutable/nodes/6.
|
|
3
|
+
const component = async () => component_cache ??= (await import('./_page.svelte-B3CasgD8.js')).default;
|
|
4
|
+
const imports = ["_app/immutable/nodes/6.DZa-5yoH.js","_app/immutable/chunks/CF39CcoQ.js","_app/immutable/chunks/Cc9Av3g9.js","_app/immutable/chunks/I8rQr1kY.js"];
|
|
5
5
|
const stylesheets = [];
|
|
6
6
|
const fonts = [];
|
|
7
7
|
|
|
8
8
|
export { component, fonts, imports, index, stylesheets };
|
|
9
|
-
//# sourceMappingURL=6-
|
|
9
|
+
//# sourceMappingURL=6-BHxeFzUE.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"6-
|
|
1
|
+
{"version":3,"file":"6-BHxeFzUE.js","sources":["../../../.svelte-kit/adapter-node/nodes/6.js"],"sourcesContent":["\n\nexport const index = 6;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/diff/_page.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/6.DZa-5yoH.js\",\"_app/immutable/chunks/CF39CcoQ.js\",\"_app/immutable/chunks/Cc9Av3g9.js\",\"_app/immutable/chunks/I8rQr1kY.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAuC,CAAC,EAAE;AACrG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAC5J,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { l as loadProjectContext } from './projectContext-
|
|
2
|
-
import { r as runDoctor } from './
|
|
3
|
-
import { b as bucketDoctorIssues } from './doctorSummary-
|
|
4
|
-
import 'node:module';
|
|
1
|
+
import { l as loadProjectContext } from './projectContext-fk5wtjwg.js';
|
|
2
|
+
import { r as runDoctor } from './src3-vKD2iyNK.js';
|
|
3
|
+
import { b as bucketDoctorIssues } from './doctorSummary-FyoWuR3R.js';
|
|
5
4
|
import 'node:fs/promises';
|
|
6
|
-
import 'node:path';
|
|
7
5
|
import 'process';
|
|
8
6
|
import 'buffer';
|
|
7
|
+
import 'node:util';
|
|
8
|
+
import 'node:path';
|
|
9
9
|
import 'node:crypto';
|
|
10
10
|
|
|
11
11
|
//#region src/routes/doctor/+page.server.ts
|
|
@@ -63,11 +63,11 @@ var _page_server_ts = /*#__PURE__*/Object.freeze({
|
|
|
63
63
|
|
|
64
64
|
const index = 7;
|
|
65
65
|
let component_cache;
|
|
66
|
-
const component = async () => component_cache ??= (await import('./_page.svelte-
|
|
66
|
+
const component = async () => component_cache ??= (await import('./_page.svelte-sygmDxbg.js')).default;
|
|
67
67
|
const server_id = "src/routes/doctor/+page.server.ts";
|
|
68
|
-
const imports = ["_app/immutable/nodes/7.
|
|
68
|
+
const imports = ["_app/immutable/nodes/7.v6t5o5IK.js","_app/immutable/chunks/CF39CcoQ.js","_app/immutable/chunks/CRcOA4L4.js","_app/immutable/chunks/DUEBfJ-c.js","_app/immutable/chunks/I8rQr1kY.js","_app/immutable/chunks/Cc9Av3g9.js","_app/immutable/chunks/4FiW6_9u.js"];
|
|
69
69
|
const stylesheets = [];
|
|
70
70
|
const fonts = [];
|
|
71
71
|
|
|
72
72
|
export { component, fonts, imports, index, _page_server_ts as server, server_id, stylesheets };
|
|
73
|
-
//# sourceMappingURL=7-
|
|
73
|
+
//# sourceMappingURL=7-BUFOaHdC.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"7-
|
|
1
|
+
{"version":3,"file":"7-BUFOaHdC.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/doctor/_page.server.ts.js","../../../.svelte-kit/adapter-node/nodes/7.js"],"sourcesContent":["import { t as loadProjectContext } from \"../../../chunks/projectContext.js\";\nimport { t as runDoctor } from \"../../../chunks/src3.js\";\nimport { t as bucketDoctorIssues } from \"../../../chunks/doctorSummary.js\";\n//#region src/routes/doctor/+page.server.ts\nvar TITLE = {\n\terror: \"Errors\",\n\twarning: \"Warnings\",\n\tinfo: \"Info\",\n\tnot_verifiable: \"Not verifiable\"\n};\nasync function load() {\n\tconst ctx = await loadProjectContext();\n\tif (!ctx.profileFound) return { view: {\n\t\tok: false,\n\t\treason: \"missing\",\n\t\tmessage: \"Doctor needs ai-profile.yaml before it can run useful project checks.\"\n\t} };\n\tconst rootDir = ctx.rootDir;\n\tconst startedAt = process.hrtime.bigint();\n\tlet result;\n\ttry {\n\t\tresult = await runDoctor({ rootDir });\n\t} catch (err) {\n\t\treturn { view: {\n\t\t\tok: false,\n\t\t\treason: \"missing\",\n\t\t\tmessage: `Doctor could not run: ${err instanceof Error ? err.message : String(err)}`\n\t\t} };\n\t}\n\tconst elapsedMs = Number((process.hrtime.bigint() - startedAt) / 1000000n) || 0;\n\tconst buckets = bucketDoctorIssues(result.issues);\n\treturn { view: {\n\t\tok: true,\n\t\tbuckets: [\n\t\t\t\"error\",\n\t\t\t\"warning\",\n\t\t\t\"info\",\n\t\t\t\"not_verifiable\"\n\t\t].map((key) => ({\n\t\t\tkey,\n\t\t\ttitle: TITLE[key],\n\t\t\tcount: buckets[key].length,\n\t\t\tissues: buckets[key]\n\t\t})),\n\t\ttotalIssues: result.issues.length,\n\t\tlastRunIso: (/* @__PURE__ */ new Date()).toISOString(),\n\t\telapsedMs,\n\t\tstatus: result.status\n\t} };\n}\n//#endregion\nexport { load };\n","import * as server from '../entries/pages/doctor/_page.server.ts.js';\n\nexport const index = 7;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/doctor/_page.svelte.js')).default;\nexport { server };\nexport const server_id = \"src/routes/doctor/+page.server.ts\";\nexport const imports = [\"_app/immutable/nodes/7.v6t5o5IK.js\",\"_app/immutable/chunks/CF39CcoQ.js\",\"_app/immutable/chunks/CRcOA4L4.js\",\"_app/immutable/chunks/DUEBfJ-c.js\",\"_app/immutable/chunks/I8rQr1kY.js\",\"_app/immutable/chunks/Cc9Av3g9.js\",\"_app/immutable/chunks/4FiW6_9u.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":";;;;;;;;;;AAGA;AACA,IAAI,KAAK,GAAG;AACZ,CAAC,KAAK,EAAE,QAAQ;AAChB,CAAC,OAAO,EAAE,UAAU;AACpB,CAAC,IAAI,EAAE,MAAM;AACb,CAAC,cAAc,EAAE;AACjB,CAAC;AACD,eAAe,IAAI,GAAG;AACtB,CAAC,MAAM,GAAG,GAAG,MAAM,kBAAkB,EAAE;AACvC,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE;AACvC,EAAE,EAAE,EAAE,KAAK;AACX,EAAE,MAAM,EAAE,SAAS;AACnB,EAAE,OAAO,EAAE;AACX,EAAE,EAAE;AACJ,CAAC,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO;AAC5B,CAAC,MAAM,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE;AAC1C,CAAC,IAAI,MAAM;AACX,CAAC,IAAI;AACL,EAAE,MAAM,GAAG,MAAM,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC;AACvC,CAAC,CAAC,CAAC,OAAO,GAAG,EAAE;AACf,EAAE,OAAO,EAAE,IAAI,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AAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACxQ,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const index = 8;
|
|
2
|
+
let component_cache;
|
|
3
|
+
const component = async () => component_cache ??= (await import('./_page.svelte-B6d3qwTm.js')).default;
|
|
4
|
+
const imports = ["_app/immutable/nodes/8.UWqOmBTc.js","_app/immutable/chunks/CF39CcoQ.js","_app/immutable/chunks/CRcOA4L4.js","_app/immutable/chunks/4FiW6_9u.js","_app/immutable/chunks/I8rQr1kY.js"];
|
|
5
|
+
const stylesheets = [];
|
|
6
|
+
const fonts = [];
|
|
7
|
+
|
|
8
|
+
export { component, fonts, imports, index, stylesheets };
|
|
9
|
+
//# sourceMappingURL=8-BbviFV5J.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"8-
|
|
1
|
+
{"version":3,"file":"8-BbviFV5J.js","sources":["../../../.svelte-kit/adapter-node/nodes/8.js"],"sourcesContent":["\n\nexport const index = 8;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/landing/_page.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/8.UWqOmBTc.js\",\"_app/immutable/chunks/CF39CcoQ.js\",\"_app/immutable/chunks/CRcOA4L4.js\",\"_app/immutable/chunks/4FiW6_9u.js\",\"_app/immutable/chunks/I8rQr1kY.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAA0C,CAAC,EAAE;AACxG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAChM,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { l as loadProjectContext, n as normalizeSafety, d as deriveEffectivePermissions, k as redactIfSecretLike, f as computeFileEtag } from './projectContext-fk5wtjwg.js';
|
|
2
|
+
import { i as issueCsrfToken } from './tokenStore-DQfTa-N3.js';
|
|
3
|
+
import 'node:fs/promises';
|
|
4
|
+
import 'process';
|
|
5
|
+
import 'buffer';
|
|
6
|
+
import 'node:util';
|
|
7
|
+
import 'node:path';
|
|
8
|
+
import 'node:crypto';
|
|
9
|
+
|
|
10
|
+
//#region src/routes/profile/+page.server.ts
|
|
11
|
+
async function load() {
|
|
12
|
+
const ctx = await loadProjectContext();
|
|
13
|
+
if (!ctx.profileFound || ctx.profileResult === null) return { view: {
|
|
14
|
+
ok: false,
|
|
15
|
+
reason: "missing"
|
|
16
|
+
} };
|
|
17
|
+
if (!ctx.profileResult.ok) {
|
|
18
|
+
const hasUnknown = ctx.profileResult.issues.some((i) => i.code === "schema_validation_error" && i.expected === "no additional properties");
|
|
19
|
+
return { view: {
|
|
20
|
+
ok: false,
|
|
21
|
+
reason: "invalid",
|
|
22
|
+
issues: ctx.profileResult.issues.map((i) => ({
|
|
23
|
+
code: i.code,
|
|
24
|
+
path: i.path,
|
|
25
|
+
message: i.message
|
|
26
|
+
})),
|
|
27
|
+
unsupportedEditing: hasUnknown
|
|
28
|
+
} };
|
|
29
|
+
}
|
|
30
|
+
const profile = ctx.profileResult.profile;
|
|
31
|
+
const safety = normalizeSafety(profile);
|
|
32
|
+
const permissions = deriveEffectivePermissions(profile);
|
|
33
|
+
const yamlRedacted = redactIfSecretLike(ctx.profileSource ?? "");
|
|
34
|
+
const csrfToken = issueCsrfToken();
|
|
35
|
+
return { view: {
|
|
36
|
+
ok: true,
|
|
37
|
+
name: profile.profile.name,
|
|
38
|
+
description: profile.profile.description,
|
|
39
|
+
stack: profile.stack,
|
|
40
|
+
clients: profile.clients,
|
|
41
|
+
safety,
|
|
42
|
+
workflow: profile.workflow,
|
|
43
|
+
permissions,
|
|
44
|
+
rawPermissions: profile.permissions,
|
|
45
|
+
rawSafety: profile.safety,
|
|
46
|
+
hasSecretLikeContent: yamlRedacted !== ctx.profileSource,
|
|
47
|
+
yaml: yamlRedacted,
|
|
48
|
+
etag: ctx.profileSource ? computeFileEtag(Buffer.from(ctx.profileSource, "utf8")) : "",
|
|
49
|
+
csrfToken
|
|
50
|
+
} };
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
var _page_server_ts = /*#__PURE__*/Object.freeze({
|
|
54
|
+
__proto__: null,
|
|
55
|
+
load: load
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
const index = 9;
|
|
59
|
+
let component_cache;
|
|
60
|
+
const component = async () => component_cache ??= (await import('./_page.svelte-2W3EhlSt.js')).default;
|
|
61
|
+
const server_id = "src/routes/profile/+page.server.ts";
|
|
62
|
+
const imports = ["_app/immutable/nodes/9.xVCOCMfn.js","_app/immutable/chunks/CF39CcoQ.js","_app/immutable/chunks/CRcOA4L4.js","_app/immutable/chunks/DUEBfJ-c.js","_app/immutable/chunks/I8rQr1kY.js","_app/immutable/chunks/DvNNrklS.js","_app/immutable/chunks/Cc9Av3g9.js","_app/immutable/chunks/4FiW6_9u.js"];
|
|
63
|
+
const stylesheets = ["_app/immutable/assets/9.BsbC-D7w.css"];
|
|
64
|
+
const fonts = [];
|
|
65
|
+
|
|
66
|
+
export { component, fonts, imports, index, _page_server_ts as server, server_id, stylesheets };
|
|
67
|
+
//# sourceMappingURL=9-kCTRECfO.js.map
|