plan-assistant 1.2.1 → 1.3.0-alpha.3
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/assets/0.xgRkQ1lY.css +1 -0
- package/build/client/_app/immutable/chunks/{C40UEiDa.js → -aE-KL3N.js} +1 -1
- package/build/client/_app/immutable/chunks/{Cnk3veQv.js → A2YmdcbE.js} +1 -1
- package/build/client/_app/immutable/chunks/{Zl01-BCk.js → BDlseEyh.js} +1 -1
- package/build/client/_app/immutable/chunks/{et9SQoBt.js → BFBYzAsj.js} +41 -41
- package/build/client/_app/immutable/chunks/{Cfu7LlTl.js → BGqF3rQm.js} +1 -1
- package/build/client/_app/immutable/chunks/{CjU8zlr4.js → BHjBWvud.js} +1 -1
- package/build/client/_app/immutable/chunks/{DV6acRrl.js → BSxTGtcK.js} +1 -1
- package/build/client/_app/immutable/chunks/{CdWYTPbj.js → BZNiIU90.js} +1 -1
- package/build/client/_app/immutable/chunks/{D1smdH78.js → B_U299fe.js} +1 -1
- package/build/client/_app/immutable/chunks/BdoKnygS.js +2 -0
- package/build/client/_app/immutable/chunks/{ChXJ3_8d.js → BeBcuTsW.js} +1 -1
- package/build/client/_app/immutable/chunks/{Ds2Jk9YM.js → BgbLjDvB.js} +1 -1
- package/build/client/_app/immutable/chunks/{CCvUv5wO.js → BglRpvde.js} +1 -1
- package/build/client/_app/immutable/chunks/{DYmr2Cu_.js → BvvuIzZ5.js} +1 -1
- package/build/client/_app/immutable/chunks/{BEd52Y9t.js → BwE9TKxZ.js} +42 -42
- package/build/client/_app/immutable/chunks/{zzrVTw61.js → BzUyy-dt.js} +1 -1
- package/build/client/_app/immutable/chunks/{CpzGW5sx.js → C0xCC0Sq.js} +1 -1
- package/build/client/_app/immutable/chunks/{BgWVd2JH.js → C2X8ykUY.js} +1 -1
- package/build/client/_app/immutable/chunks/{D7AzvARu.js → C4TRBxnl.js} +1 -1
- package/build/client/_app/immutable/chunks/C7DdITi2.js +1 -0
- package/build/client/_app/immutable/chunks/{B_m78aJo.js → CELHSnoC.js} +1 -1
- package/build/client/_app/immutable/chunks/{DtRnjJCq.js → CGtriK76.js} +1 -1
- package/build/client/_app/immutable/chunks/{C7_sUGKI.js → CYYXOzpr.js} +1 -1
- package/build/client/_app/immutable/chunks/{_8lNgEhN.js → CZCoJGyT.js} +1 -1
- package/build/client/_app/immutable/chunks/{C6G9eLNg.js → CdPLj01x.js} +1 -1
- package/build/client/_app/immutable/chunks/{CZDB-NCS.js → CdVbgzBr.js} +1 -1
- package/build/client/_app/immutable/chunks/{CAs7BFgw.js → CukMqC9d.js} +1 -1
- package/build/client/_app/immutable/chunks/{D6mQqXUs.js → Czrxw8H8.js} +1 -1
- package/build/client/_app/immutable/chunks/{Rt06R0BH.js → D9jmuUDt.js} +1 -1
- package/build/client/_app/immutable/chunks/DKNAb9R5.js +1 -0
- package/build/client/_app/immutable/chunks/{DK1EzMSE.js → DLgNdwL-.js} +1 -1
- package/build/client/_app/immutable/chunks/{SLcsOks0.js → DNTjyB5O.js} +1 -1
- package/build/client/_app/immutable/chunks/{66S44dU2.js → DPoAdk27.js} +1 -1
- package/build/client/_app/immutable/chunks/{BwE1zFLP.js → DUhNQyOP.js} +1 -1
- package/build/client/_app/immutable/chunks/{BQLlh6rw.js → DVrXUsxi.js} +1 -1
- package/build/client/_app/immutable/chunks/{C9sq1NiT.js → Da7RbzHT.js} +1 -1
- package/build/client/_app/immutable/chunks/{yJkIcB-2.js → DbHdHraX.js} +1 -1
- package/build/client/_app/immutable/chunks/{BPiLmQNn.js → Dd71Iv7J.js} +1 -1
- package/build/client/_app/immutable/chunks/{CptLmxn7.js → DlujAFOe.js} +1 -1
- package/build/client/_app/immutable/chunks/{CEkljthY.js → Dn2N7IvN.js} +1 -1
- package/build/client/_app/immutable/chunks/DpY4-NiY.js +3 -0
- package/build/client/_app/immutable/chunks/{DJPNFy2Z.js → DwoAbj8z.js} +1 -1
- package/build/client/_app/immutable/chunks/{B5wH4gxC.js → PRH9vIIE.js} +1 -1
- package/build/client/_app/immutable/chunks/{QOziFLFL.js → dEcRtk-k.js} +1 -1
- package/build/client/_app/immutable/chunks/{BcL-TGiq.js → dv8n_yuj.js} +1 -1
- package/build/client/_app/immutable/chunks/{enKT794F.js → jS-WS0qK.js} +1 -1
- package/build/client/_app/immutable/chunks/{De3MB1l1.js → rQOBSFfb.js} +1 -1
- package/build/client/_app/immutable/chunks/{BlhCArX0.js → sQwqhwzr.js} +1 -1
- package/build/client/_app/immutable/entry/{app.DgAoonRR.js → app.DhdLjL2n.js} +2 -2
- package/build/client/_app/immutable/entry/start.CDcVNCIu.js +1 -0
- package/build/client/_app/immutable/nodes/{1.KxbQIKTb.js → 1.ejshJzsT.js} +1 -1
- package/build/client/_app/immutable/nodes/{2.CNfAa1lN.js → 2.ZFWOqsMm.js} +1 -1
- package/build/client/_app/immutable/nodes/3.BY6KFpqQ.js +1 -0
- package/build/client/_app/version.json +1 -1
- package/build/server/chunks/{0-FD3Yst2W.js → 0-F8UDIQlw.js} +3 -3
- package/build/server/chunks/{0-FD3Yst2W.js.map → 0-F8UDIQlw.js.map} +1 -1
- package/build/server/chunks/{1-B1UHlD8w.js → 1-DuleYJMw.js} +2 -2
- package/build/server/chunks/{1-B1UHlD8w.js.map → 1-DuleYJMw.js.map} +1 -1
- package/build/server/chunks/{2-C9Pr1aKN.js → 2-tND4IT0j.js} +4 -4
- package/build/server/chunks/{2-C9Pr1aKN.js.map → 2-tND4IT0j.js.map} +1 -1
- package/build/server/chunks/{3-CsZto47z.js → 3-BaEfaEMw.js} +4 -4
- package/build/server/chunks/{3-CsZto47z.js.map → 3-BaEfaEMw.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-C-jd6GOL.js → _page.svelte-BHgQV7I4.js} +67 -60
- package/build/server/chunks/_page.svelte-BHgQV7I4.js.map +1 -0
- package/build/server/chunks/{_page.svelte-CWIhxW51.js → _page.svelte-ByTjHRUq.js} +2 -2
- package/build/server/chunks/{_page.svelte-CWIhxW51.js.map → _page.svelte-ByTjHRUq.js.map} +1 -1
- package/build/server/chunks/{_server.ts-CpPXj3O_.js → _server.ts-BkcqX0Gw.js} +2 -2
- package/build/server/chunks/{_server.ts-CpPXj3O_.js.map → _server.ts-BkcqX0Gw.js.map} +1 -1
- package/build/server/chunks/{_server.ts-DJbYluhf.js → _server.ts-C9Rz5pqb.js} +2 -2
- package/build/server/chunks/{_server.ts-DJbYluhf.js.map → _server.ts-C9Rz5pqb.js.map} +1 -1
- package/build/server/chunks/{_server.ts-CY7NfbtD.js → _server.ts-DCa-_qe7.js} +5 -2
- package/build/server/chunks/_server.ts-DCa-_qe7.js.map +1 -0
- package/build/server/chunks/_server.ts-DVH0ejp0.js +12 -0
- package/build/server/chunks/_server.ts-DVH0ejp0.js.map +1 -0
- package/build/server/chunks/{_server.ts-CtgVvBfR.js → _server.ts-aWI5JVTi.js} +2 -2
- package/build/server/chunks/{_server.ts-CtgVvBfR.js.map → _server.ts-aWI5JVTi.js.map} +1 -1
- package/build/server/chunks/{_server.ts-K9S2g_-L.js → _server.ts-b4ynvdd4.js} +2 -2
- package/build/server/chunks/{_server.ts-K9S2g_-L.js.map → _server.ts-b4ynvdd4.js.map} +1 -1
- package/build/server/chunks/{_server.ts-DI8tBJml.js → _server.ts-r59HGb-h.js} +2 -2
- package/build/server/chunks/{_server.ts-DI8tBJml.js.map → _server.ts-r59HGb-h.js.map} +1 -1
- package/build/server/chunks/{hooks.server-BHuIRhU1.js → hooks.server-CeNxBnIX.js} +2 -4
- package/build/server/chunks/hooks.server-CeNxBnIX.js.map +1 -0
- package/build/server/chunks/{session-manager-CBzriHWC.js → session-manager-Vdr0BxAo.js} +7 -12
- package/build/server/chunks/session-manager-Vdr0BxAo.js.map +1 -0
- package/build/server/chunks/{status-BrtsDZqP.js → status-BV9je7QE.js} +10 -2
- package/build/server/chunks/status-BV9je7QE.js.map +1 -0
- package/build/server/index.js +2 -2
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +12 -12
- package/build/server/manifest.js.map +1 -1
- package/dist/cli/commands/review.js +125 -38
- package/dist/cli/index.js +78 -9
- package/dist/cli/markdown-parser.js +3 -3
- package/dist/cli/markdown-to-plan.js +1 -19
- package/dist/cli/utils.js +14 -13
- package/package.json +13 -4
- package/build/client/_app/immutable/assets/0.DdHQkxqS.css +0 -1
- package/build/client/_app/immutable/chunks/9io9WUbM.js +0 -2
- package/build/client/_app/immutable/chunks/B1KfJkVF.js +0 -1
- package/build/client/_app/immutable/chunks/CgHT_ma3.js +0 -3
- package/build/client/_app/immutable/chunks/D5TNeoIz.js +0 -1
- package/build/client/_app/immutable/entry/start.C2lUIh_t.js +0 -1
- package/build/client/_app/immutable/nodes/3.nevoqbPf.js +0 -1
- package/build/server/chunks/_page.svelte-C-jd6GOL.js.map +0 -1
- package/build/server/chunks/_server.ts-CY7NfbtD.js.map +0 -1
- package/build/server/chunks/_server.ts-DAVgIfvo.js +0 -11
- package/build/server/chunks/_server.ts-DAVgIfvo.js.map +0 -1
- package/build/server/chunks/hooks.server-BHuIRhU1.js.map +0 -1
- package/build/server/chunks/session-manager-CBzriHWC.js.map +0 -1
- package/build/server/chunks/status-BrtsDZqP.js.map +0 -1
- /package/build/client/_app/immutable/nodes/{0.DJ6Q_WzM.js → 0.BZ6p9IRV.js} +0 -0
package/build/server/manifest.js
CHANGED
|
@@ -10,12 +10,12 @@ return {
|
|
|
10
10
|
assets: new Set(["favicon.png"]),
|
|
11
11
|
mimeTypes: {".png":"image/png"},
|
|
12
12
|
_: {
|
|
13
|
-
client: {start:"_app/immutable/entry/start.
|
|
13
|
+
client: {start:"_app/immutable/entry/start.CDcVNCIu.js",app:"_app/immutable/entry/app.DhdLjL2n.js",imports:["_app/immutable/entry/start.CDcVNCIu.js","_app/immutable/chunks/DpY4-NiY.js","_app/immutable/chunks/CD_kQCcy.js","_app/immutable/chunks/BfABZbDO.js","_app/immutable/entry/app.DhdLjL2n.js","_app/immutable/chunks/1uq0WVax.js","_app/immutable/chunks/CD_kQCcy.js","_app/immutable/chunks/wOfVBGZS.js","_app/immutable/chunks/Dl-inTne.js","_app/immutable/chunks/BfABZbDO.js","_app/immutable/chunks/DteI5BLO.js","_app/immutable/chunks/2wZlHG5k.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
|
|
14
14
|
nodes: [
|
|
15
|
-
__memo(() => import('./chunks/0-
|
|
16
|
-
__memo(() => import('./chunks/1-
|
|
17
|
-
__memo(() => import('./chunks/2-
|
|
18
|
-
__memo(() => import('./chunks/3-
|
|
15
|
+
__memo(() => import('./chunks/0-F8UDIQlw.js')),
|
|
16
|
+
__memo(() => import('./chunks/1-DuleYJMw.js')),
|
|
17
|
+
__memo(() => import('./chunks/2-tND4IT0j.js')),
|
|
18
|
+
__memo(() => import('./chunks/3-BaEfaEMw.js'))
|
|
19
19
|
],
|
|
20
20
|
remotes: {
|
|
21
21
|
|
|
@@ -33,49 +33,49 @@ return {
|
|
|
33
33
|
pattern: /^\/api\/health\/?$/,
|
|
34
34
|
params: [],
|
|
35
35
|
page: null,
|
|
36
|
-
endpoint: __memo(() => import('./chunks/_server.ts-
|
|
36
|
+
endpoint: __memo(() => import('./chunks/_server.ts-DVH0ejp0.js'))
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
id: "/api/sessions",
|
|
40
40
|
pattern: /^\/api\/sessions\/?$/,
|
|
41
41
|
params: [],
|
|
42
42
|
page: null,
|
|
43
|
-
endpoint: __memo(() => import('./chunks/_server.ts-
|
|
43
|
+
endpoint: __memo(() => import('./chunks/_server.ts-aWI5JVTi.js'))
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
id: "/api/sessions/[sessionId]",
|
|
47
47
|
pattern: /^\/api\/sessions\/([^/]+?)\/?$/,
|
|
48
48
|
params: [{"name":"sessionId","optional":false,"rest":false,"chained":false}],
|
|
49
49
|
page: null,
|
|
50
|
-
endpoint: __memo(() => import('./chunks/_server.ts-
|
|
50
|
+
endpoint: __memo(() => import('./chunks/_server.ts-C9Rz5pqb.js'))
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
id: "/api/sessions/[sessionId]/approve",
|
|
54
54
|
pattern: /^\/api\/sessions\/([^/]+?)\/approve\/?$/,
|
|
55
55
|
params: [{"name":"sessionId","optional":false,"rest":false,"chained":false}],
|
|
56
56
|
page: null,
|
|
57
|
-
endpoint: __memo(() => import('./chunks/_server.ts-
|
|
57
|
+
endpoint: __memo(() => import('./chunks/_server.ts-r59HGb-h.js'))
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
id: "/api/sessions/[sessionId]/feedback",
|
|
61
61
|
pattern: /^\/api\/sessions\/([^/]+?)\/feedback\/?$/,
|
|
62
62
|
params: [{"name":"sessionId","optional":false,"rest":false,"chained":false}],
|
|
63
63
|
page: null,
|
|
64
|
-
endpoint: __memo(() => import('./chunks/_server.ts-
|
|
64
|
+
endpoint: __memo(() => import('./chunks/_server.ts-DCa-_qe7.js'))
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
id: "/api/sessions/[sessionId]/versions",
|
|
68
68
|
pattern: /^\/api\/sessions\/([^/]+?)\/versions\/?$/,
|
|
69
69
|
params: [{"name":"sessionId","optional":false,"rest":false,"chained":false}],
|
|
70
70
|
page: null,
|
|
71
|
-
endpoint: __memo(() => import('./chunks/_server.ts-
|
|
71
|
+
endpoint: __memo(() => import('./chunks/_server.ts-BkcqX0Gw.js'))
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
74
|
id: "/api/sessions/[sessionId]/versions/[version]",
|
|
75
75
|
pattern: /^\/api\/sessions\/([^/]+?)\/versions\/([^/]+?)\/?$/,
|
|
76
76
|
params: [{"name":"sessionId","optional":false,"rest":false,"chained":false},{"name":"version","optional":false,"rest":false,"chained":false}],
|
|
77
77
|
page: null,
|
|
78
|
-
endpoint: __memo(() => import('./chunks/_server.ts-
|
|
78
|
+
endpoint: __memo(() => import('./chunks/_server.ts-b4ynvdd4.js'))
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
id: "/api/sse/[sessionId]",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.js","sources":["../../.svelte-kit/adapter-node/manifest.js"],"sourcesContent":["export const manifest = (() => {\nfunction __memo(fn) {\n\tlet value;\n\treturn () => value ??= (value = fn());\n}\n\nreturn {\n\tappDir: \"_app\",\n\tappPath: \"_app\",\n\tassets: new Set([\"favicon.png\"]),\n\tmimeTypes: {\".png\":\"image/png\"},\n\t_: {\n\t\tclient: {start:\"_app/immutable/entry/start.
|
|
1
|
+
{"version":3,"file":"manifest.js","sources":["../../.svelte-kit/adapter-node/manifest.js"],"sourcesContent":["export const manifest = (() => {\nfunction __memo(fn) {\n\tlet value;\n\treturn () => value ??= (value = fn());\n}\n\nreturn {\n\tappDir: \"_app\",\n\tappPath: \"_app\",\n\tassets: new Set([\"favicon.png\"]),\n\tmimeTypes: {\".png\":\"image/png\"},\n\t_: {\n\t\tclient: {start:\"_app/immutable/entry/start.CDcVNCIu.js\",app:\"_app/immutable/entry/app.DhdLjL2n.js\",imports:[\"_app/immutable/entry/start.CDcVNCIu.js\",\"_app/immutable/chunks/DpY4-NiY.js\",\"_app/immutable/chunks/CD_kQCcy.js\",\"_app/immutable/chunks/BfABZbDO.js\",\"_app/immutable/entry/app.DhdLjL2n.js\",\"_app/immutable/chunks/1uq0WVax.js\",\"_app/immutable/chunks/CD_kQCcy.js\",\"_app/immutable/chunks/wOfVBGZS.js\",\"_app/immutable/chunks/Dl-inTne.js\",\"_app/immutable/chunks/BfABZbDO.js\",\"_app/immutable/chunks/DteI5BLO.js\",\"_app/immutable/chunks/2wZlHG5k.js\"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},\n\t\tnodes: [\n\t\t\t__memo(() => import('./nodes/0.js')),\n\t\t\t__memo(() => import('./nodes/1.js')),\n\t\t\t__memo(() => import('./nodes/2.js')),\n\t\t\t__memo(() => import('./nodes/3.js'))\n\t\t],\n\t\tremotes: {\n\t\t\t\n\t\t},\n\t\troutes: [\n\t\t\t{\n\t\t\t\tid: \"/\",\n\t\t\t\tpattern: /^\\/$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 2 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/health\",\n\t\t\t\tpattern: /^\\/api\\/health\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/health/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/sessions\",\n\t\t\t\tpattern: /^\\/api\\/sessions\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/sessions/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/sessions/[sessionId]\",\n\t\t\t\tpattern: /^\\/api\\/sessions\\/([^/]+?)\\/?$/,\n\t\t\t\tparams: [{\"name\":\"sessionId\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/sessions/_sessionId_/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/sessions/[sessionId]/approve\",\n\t\t\t\tpattern: /^\\/api\\/sessions\\/([^/]+?)\\/approve\\/?$/,\n\t\t\t\tparams: [{\"name\":\"sessionId\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/sessions/_sessionId_/approve/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/sessions/[sessionId]/feedback\",\n\t\t\t\tpattern: /^\\/api\\/sessions\\/([^/]+?)\\/feedback\\/?$/,\n\t\t\t\tparams: [{\"name\":\"sessionId\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/sessions/_sessionId_/feedback/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/sessions/[sessionId]/versions\",\n\t\t\t\tpattern: /^\\/api\\/sessions\\/([^/]+?)\\/versions\\/?$/,\n\t\t\t\tparams: [{\"name\":\"sessionId\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/sessions/_sessionId_/versions/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/sessions/[sessionId]/versions/[version]\",\n\t\t\t\tpattern: /^\\/api\\/sessions\\/([^/]+?)\\/versions\\/([^/]+?)\\/?$/,\n\t\t\t\tparams: [{\"name\":\"sessionId\",\"optional\":false,\"rest\":false,\"chained\":false},{\"name\":\"version\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/sessions/_sessionId_/versions/_version_/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/api/sse/[sessionId]\",\n\t\t\t\tpattern: /^\\/api\\/sse\\/([^/]+?)\\/?$/,\n\t\t\t\tparams: [{\"name\":\"sessionId\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: null,\n\t\t\t\tendpoint: __memo(() => import('./entries/endpoints/api/sse/_sessionId_/_server.ts.js'))\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/plan/[sessionId]\",\n\t\t\t\tpattern: /^\\/plan\\/([^/]+?)\\/?$/,\n\t\t\t\tparams: [{\"name\":\"sessionId\",\"optional\":false,\"rest\":false,\"chained\":false}],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 3 },\n\t\t\t\tendpoint: null\n\t\t\t}\n\t\t],\n\t\tprerendered_routes: new Set([]),\n\t\tmatchers: async () => {\n\t\t\t\n\t\t\treturn { };\n\t\t},\n\t\tserver_assets: {}\n\t}\n}\n})();\n\nexport const prerendered = new Set([]);\n\nexport const base = \"\";"],"names":[],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { readFileSync, writeFileSync, existsSync } from "node:fs";
|
|
1
|
+
import { readFileSync, writeFileSync, existsSync, mkdirSync } from "node:fs";
|
|
2
2
|
import { resolve, dirname, join } from "node:path";
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
4
|
import { spawn, execSync } from "node:child_process";
|
|
@@ -6,7 +6,8 @@ import { createServer } from "node:net";
|
|
|
6
6
|
import { watch } from "chokidar";
|
|
7
7
|
import { parseMarkdownToPlan, sessionIdFromPath } from "../markdown-to-plan.js";
|
|
8
8
|
import { outputJson } from "../output.js";
|
|
9
|
-
|
|
9
|
+
const EXIT_APPROVED = 0;
|
|
10
|
+
const EXIT_NEEDS_WORK = 3;
|
|
10
11
|
const DEFAULT_BASE_PORT = 5181;
|
|
11
12
|
const MAX_PORT = 5199;
|
|
12
13
|
function getPackageDir() {
|
|
@@ -99,6 +100,17 @@ function startServer(sessionDir, port) {
|
|
|
99
100
|
}, 500);
|
|
100
101
|
});
|
|
101
102
|
}
|
|
103
|
+
async function launchServer(sessionDir, port) {
|
|
104
|
+
process.stdout.write(`Starting Plan Assistant server on port ${port}...`);
|
|
105
|
+
try {
|
|
106
|
+
await startServer(sessionDir, port);
|
|
107
|
+
console.log(" ready.");
|
|
108
|
+
}
|
|
109
|
+
catch (err) {
|
|
110
|
+
console.error(` failed: ${err}`);
|
|
111
|
+
process.exit(1);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
102
114
|
function openBrowser(url) {
|
|
103
115
|
try {
|
|
104
116
|
const cmd = process.platform === "darwin"
|
|
@@ -164,9 +176,30 @@ export async function review(args) {
|
|
|
164
176
|
for (const warning of warnings) {
|
|
165
177
|
console.error(`Warning: ${warning}`);
|
|
166
178
|
}
|
|
179
|
+
if (plan.phases.length === 0) {
|
|
180
|
+
console.error(`
|
|
181
|
+
⚠ No phases found — plan will appear empty in the browser.
|
|
182
|
+
|
|
183
|
+
Use the correct format for phases:
|
|
184
|
+
|
|
185
|
+
## Phase 1: Phase Name
|
|
186
|
+
|
|
187
|
+
### Changes Required:
|
|
188
|
+
|
|
189
|
+
#### 1. Component Name
|
|
190
|
+
**File**: \`path/to/file.ext\`
|
|
191
|
+
Description of what to change.
|
|
192
|
+
|
|
193
|
+
### Success Criteria:
|
|
194
|
+
- [ ] \`npm test\`
|
|
195
|
+
|
|
196
|
+
Accepted phase keywords: "Phase N:", "Step N:", "Task N:" (H2 headings)
|
|
197
|
+
Run \`npx plan-assistant init --output <file>\` to generate a correctly-formatted template.
|
|
198
|
+
`);
|
|
199
|
+
}
|
|
167
200
|
// Write session files
|
|
168
|
-
|
|
169
|
-
|
|
201
|
+
mkdirSync(sessionPath, { recursive: true });
|
|
202
|
+
mkdirSync(join(sessionPath, "versions"), { recursive: true });
|
|
170
203
|
const meta = {
|
|
171
204
|
id: sessionId,
|
|
172
205
|
planTitle: plan.meta.title,
|
|
@@ -183,37 +216,18 @@ export async function review(args) {
|
|
|
183
216
|
// Find existing server for this session dir or start a new one
|
|
184
217
|
const basePort = requestedPort ?? DEFAULT_BASE_PORT;
|
|
185
218
|
let port = await findExistingServer(sessionDir, basePort);
|
|
186
|
-
if (port) {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
process.exit(1);
|
|
194
|
-
}
|
|
195
|
-
port = requestedPort;
|
|
196
|
-
process.stdout.write(`Starting Plan Assistant server on port ${port}...`);
|
|
197
|
-
try {
|
|
198
|
-
await startServer(sessionDir, port);
|
|
199
|
-
console.log(" ready.");
|
|
200
|
-
}
|
|
201
|
-
catch (err) {
|
|
202
|
-
console.error(` failed: ${err}`);
|
|
203
|
-
process.exit(1);
|
|
219
|
+
if (!port) {
|
|
220
|
+
if (requestedPort) {
|
|
221
|
+
if (!(await isPortFree(requestedPort))) {
|
|
222
|
+
console.error(`Error: Port ${requestedPort} is already in use`);
|
|
223
|
+
process.exit(1);
|
|
224
|
+
}
|
|
225
|
+
port = requestedPort;
|
|
204
226
|
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
port = await findFreePort(basePort);
|
|
208
|
-
process.stdout.write(`Starting Plan Assistant server on port ${port}...`);
|
|
209
|
-
try {
|
|
210
|
-
await startServer(sessionDir, port);
|
|
211
|
-
console.log(" ready.");
|
|
212
|
-
}
|
|
213
|
-
catch (err) {
|
|
214
|
-
console.error(` failed: ${err}`);
|
|
215
|
-
process.exit(1);
|
|
227
|
+
else {
|
|
228
|
+
port = await findFreePort(basePort);
|
|
216
229
|
}
|
|
230
|
+
await launchServer(sessionDir, port);
|
|
217
231
|
}
|
|
218
232
|
const url = `http://localhost:${port}/plan/${sessionId}`;
|
|
219
233
|
const feedbackPath = join(sessionPath, "feedback.json");
|
|
@@ -225,16 +239,24 @@ export async function review(args) {
|
|
|
225
239
|
feedbackPath,
|
|
226
240
|
});
|
|
227
241
|
openBrowser(url);
|
|
242
|
+
const noWait = args.flags["no-wait"] === true;
|
|
228
243
|
console.error(`\nPlan Assistant`);
|
|
229
244
|
console.error(` Review: ${url}`);
|
|
230
245
|
console.error(` Session: ${sessionPath}`);
|
|
231
246
|
console.error(` Feedback: ${feedbackPath}`);
|
|
232
|
-
|
|
247
|
+
if (noWait) {
|
|
248
|
+
console.error(`\nWatching ${absolutePath} for changes...`);
|
|
249
|
+
console.error(`Run \`plan-assistant status --wait ${markdownFile}\` to wait for feedback.`);
|
|
250
|
+
}
|
|
251
|
+
else {
|
|
252
|
+
console.error(`\nWatching for changes and waiting for your feedback (Approve / Request Changes)...`);
|
|
253
|
+
console.error(`Press Ctrl+C to stop without waiting.`);
|
|
254
|
+
}
|
|
233
255
|
// Watch markdown file for changes
|
|
234
|
-
const
|
|
256
|
+
const mdWatcher = watch(absolutePath, {
|
|
235
257
|
awaitWriteFinish: { stabilityThreshold: 300, pollInterval: 100 },
|
|
236
258
|
});
|
|
237
|
-
|
|
259
|
+
mdWatcher.on("change", () => {
|
|
238
260
|
try {
|
|
239
261
|
const updated = readFileSync(absolutePath, "utf-8");
|
|
240
262
|
const existingPlan = JSON.parse(readFileSync(existingPlanPath, "utf-8"));
|
|
@@ -243,6 +265,9 @@ export async function review(args) {
|
|
|
243
265
|
for (const warning of newWarnings) {
|
|
244
266
|
console.error(`Warning: ${warning}`);
|
|
245
267
|
}
|
|
268
|
+
if (newPlan.phases.length === 0) {
|
|
269
|
+
console.error(`⚠ No phases found after reload — check format. Run \`npx plan-assistant init\` for a template.`);
|
|
270
|
+
}
|
|
246
271
|
writeFileSync(join(sessionPath, "plan.json"), JSON.stringify(newPlan, null, 2));
|
|
247
272
|
writeFileSync(join(sessionPath, "versions", `v${newVersion}.json`), JSON.stringify(newPlan, null, 2));
|
|
248
273
|
console.error(`[${new Date().toLocaleTimeString()}] Plan updated (v${newVersion})`);
|
|
@@ -251,10 +276,72 @@ export async function review(args) {
|
|
|
251
276
|
console.error(`Error re-parsing markdown: ${err}`);
|
|
252
277
|
}
|
|
253
278
|
});
|
|
254
|
-
//
|
|
279
|
+
// Wait for feedback unless --no-wait
|
|
280
|
+
if (!noWait) {
|
|
281
|
+
await waitForFeedback(feedbackPath, sessionId, plan.meta.title, mdWatcher);
|
|
282
|
+
return;
|
|
283
|
+
}
|
|
284
|
+
// Keep process alive (--no-wait mode)
|
|
255
285
|
process.on("SIGINT", () => {
|
|
256
|
-
|
|
286
|
+
mdWatcher.close();
|
|
257
287
|
console.error("\nStopped watching.");
|
|
258
288
|
process.exit(0);
|
|
259
289
|
});
|
|
260
290
|
}
|
|
291
|
+
async function waitForFeedback(feedbackPath, sessionId, planTitle, mdWatcher) {
|
|
292
|
+
// Check if feedback already submitted
|
|
293
|
+
if (existsSync(feedbackPath)) {
|
|
294
|
+
try {
|
|
295
|
+
const existing = JSON.parse(readFileSync(feedbackPath, "utf-8"));
|
|
296
|
+
if (existing.status === "approved" || existing.status === "needs-work") {
|
|
297
|
+
mdWatcher.close();
|
|
298
|
+
outputFeedbackResult(existing, sessionId, planTitle);
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
catch {
|
|
303
|
+
/* ignore */
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
return new Promise((resolve) => {
|
|
307
|
+
const fbWatcher = watch(feedbackPath, {
|
|
308
|
+
awaitWriteFinish: { stabilityThreshold: 200, pollInterval: 100 },
|
|
309
|
+
});
|
|
310
|
+
const check = () => {
|
|
311
|
+
try {
|
|
312
|
+
if (!existsSync(feedbackPath))
|
|
313
|
+
return;
|
|
314
|
+
const data = JSON.parse(readFileSync(feedbackPath, "utf-8"));
|
|
315
|
+
if (data.status === "approved" || data.status === "needs-work") {
|
|
316
|
+
fbWatcher.close();
|
|
317
|
+
mdWatcher.close();
|
|
318
|
+
outputFeedbackResult(data, sessionId, planTitle);
|
|
319
|
+
resolve();
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
catch {
|
|
323
|
+
/* ignore parse errors during writes */
|
|
324
|
+
}
|
|
325
|
+
};
|
|
326
|
+
fbWatcher.on("change", check);
|
|
327
|
+
fbWatcher.on("add", check);
|
|
328
|
+
process.on("SIGINT", () => {
|
|
329
|
+
fbWatcher.close();
|
|
330
|
+
mdWatcher.close();
|
|
331
|
+
console.error("\nStopped watching.");
|
|
332
|
+
process.exit(0);
|
|
333
|
+
});
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
function outputFeedbackResult(feedback, sessionId, planTitle) {
|
|
337
|
+
const unresolvedComments = feedback.comments.filter((c) => !c.resolved);
|
|
338
|
+
outputJson({
|
|
339
|
+
event: "feedback",
|
|
340
|
+
sessionId,
|
|
341
|
+
planTitle,
|
|
342
|
+
status: feedback.status,
|
|
343
|
+
comments: unresolvedComments,
|
|
344
|
+
commentCount: unresolvedComments.length,
|
|
345
|
+
});
|
|
346
|
+
process.exit(feedback.status === "approved" ? EXIT_APPROVED : EXIT_NEEDS_WORK);
|
|
347
|
+
}
|
package/dist/cli/index.js
CHANGED
|
@@ -42,26 +42,90 @@ export function parseArgs(argv) {
|
|
|
42
42
|
function usage() {
|
|
43
43
|
console.log(`plan-assistant - Review implementation plans in the browser
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
Workflow:
|
|
46
|
+
1. plan-assistant init --output plan.md Create correctly-formatted template
|
|
47
|
+
2. # Edit plan.md with your plan content
|
|
48
|
+
3. plan-assistant review plan.md Open in browser, wait for Approve/Request Changes
|
|
49
|
+
4. # review exits with the feedback result automatically
|
|
50
|
+
|
|
51
|
+
Commands:
|
|
52
|
+
plan-assistant init [--output <file>] Generate plan template (stdout if no --output)
|
|
46
53
|
plan-assistant review <markdown-file> Parse and review a plan
|
|
47
54
|
plan-assistant status <session-id-or-file> Check review status
|
|
48
55
|
plan-assistant feedback <session-id-or-file> Read feedback JSON
|
|
49
56
|
plan-assistant list [--dir <path>] List all sessions
|
|
50
|
-
plan-assistant init [--output <file>] Generate plan template
|
|
51
57
|
plan-assistant clean [--all] [--older-than <dur>] Remove old sessions
|
|
52
58
|
plan-assistant export <session-id-or-file> Export as HTML
|
|
59
|
+
plan-assistant help format Show the required plan format
|
|
53
60
|
plan-assistant help Show this help
|
|
54
61
|
|
|
55
62
|
Flags:
|
|
56
63
|
--pretty Human-readable output (default: JSON)
|
|
57
|
-
--port <N> Port for review server
|
|
64
|
+
--port <N> Port for review server (review command)
|
|
65
|
+
--no-wait Don't wait for feedback, just start server (review command)
|
|
58
66
|
--wait Block until feedback is submitted (status command)
|
|
59
67
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
68
|
+
TIP: Always start with \`plan-assistant init\` to get a correctly-formatted template.
|
|
69
|
+
Run \`plan-assistant help format\` to see the expected markdown structure.`);
|
|
70
|
+
}
|
|
71
|
+
function usageFormat() {
|
|
72
|
+
console.log(`plan-assistant - Expected plan markdown format
|
|
73
|
+
|
|
74
|
+
Always start with: npx plan-assistant init --output <file>
|
|
75
|
+
|
|
76
|
+
Required structure:
|
|
77
|
+
─────────────────────────────────────────────────────────────────
|
|
78
|
+
# Plan Title
|
|
79
|
+
|
|
80
|
+
## Overview
|
|
81
|
+
Brief description of what this plan accomplishes.
|
|
82
|
+
|
|
83
|
+
## Phase 1: Phase Name
|
|
84
|
+
|
|
85
|
+
### Changes Required:
|
|
86
|
+
|
|
87
|
+
#### 1. Component Name
|
|
88
|
+
**File**: \`path/to/file.ext\`
|
|
89
|
+
Description of what to change.
|
|
90
|
+
|
|
91
|
+
#### 2. Another Component
|
|
92
|
+
**File**: \`path/to/other.ts\`
|
|
93
|
+
Description of changes.
|
|
94
|
+
|
|
95
|
+
### Success Criteria:
|
|
96
|
+
|
|
97
|
+
#### Automated Verification:
|
|
98
|
+
- [ ] \`npm test\`
|
|
99
|
+
|
|
100
|
+
#### Manual Verification:
|
|
101
|
+
- [ ] Manually verify the feature works
|
|
102
|
+
|
|
103
|
+
## Phase 2: Phase Name
|
|
104
|
+
(same structure as Phase 1)
|
|
105
|
+
─────────────────────────────────────────────────────────────────
|
|
106
|
+
|
|
107
|
+
Phase heading formats (all accepted):
|
|
108
|
+
## Phase N: Name (canonical)
|
|
109
|
+
## Phase N - Name
|
|
110
|
+
## Step N: Name
|
|
111
|
+
## Task N: Name
|
|
112
|
+
|
|
113
|
+
Changes section heading alternatives:
|
|
114
|
+
### Changes Required: (canonical)
|
|
115
|
+
### Changes:
|
|
116
|
+
### Modifications:
|
|
117
|
+
|
|
118
|
+
Success Criteria heading alternatives:
|
|
119
|
+
### Success Criteria: (canonical)
|
|
120
|
+
### Criteria:
|
|
121
|
+
### Verification:
|
|
122
|
+
|
|
123
|
+
Optional top-level sections (all H2):
|
|
124
|
+
## Current State
|
|
125
|
+
## What We're NOT Doing
|
|
126
|
+
## Implementation Approach
|
|
127
|
+
## Testing Strategy
|
|
128
|
+
## References`);
|
|
65
129
|
}
|
|
66
130
|
export async function main(args) {
|
|
67
131
|
const parsed = parseArgs(args);
|
|
@@ -97,7 +161,12 @@ export async function main(args) {
|
|
|
97
161
|
case "help":
|
|
98
162
|
case "--help":
|
|
99
163
|
case "-h":
|
|
100
|
-
|
|
164
|
+
if (parsed.positional[0] === "format") {
|
|
165
|
+
usageFormat();
|
|
166
|
+
}
|
|
167
|
+
else {
|
|
168
|
+
usage();
|
|
169
|
+
}
|
|
101
170
|
return;
|
|
102
171
|
default:
|
|
103
172
|
console.error(`Unknown command: ${parsed.command}`);
|
|
@@ -260,7 +260,7 @@ export function tryMatchPhaseHeading(heading, autoNumber) {
|
|
|
260
260
|
return null;
|
|
261
261
|
}
|
|
262
262
|
/** Known top-level section patterns that should NOT be treated as phases */
|
|
263
|
-
|
|
263
|
+
const KNOWN_SECTION_PATTERNS = [
|
|
264
264
|
/^Overview$/i,
|
|
265
265
|
/^Current\s+State/i,
|
|
266
266
|
/What\s+We.*NOT\s+Doing/i,
|
|
@@ -272,8 +272,8 @@ export const KNOWN_SECTION_PATTERNS = [
|
|
|
272
272
|
/^Version$/i,
|
|
273
273
|
/^Summary$/i,
|
|
274
274
|
];
|
|
275
|
-
|
|
276
|
-
|
|
275
|
+
const CHANGES_HEADING_PATTERN = /^(?:Changes\s+Required|Changes|File\s+Changes|Modifications):?$/i;
|
|
276
|
+
const SUCCESS_CRITERIA_HEADING_PATTERN = /^(?:Success\s+Criteria|Criteria|Verification):?$/i;
|
|
277
277
|
export function parsePhases(allSections, ctx) {
|
|
278
278
|
const phases = [];
|
|
279
279
|
let autoNumber = 1;
|
|
@@ -2,7 +2,7 @@ import { Lexer } from "marked";
|
|
|
2
2
|
import { createHash } from "node:crypto";
|
|
3
3
|
import { basename } from "node:path";
|
|
4
4
|
import { generatePhaseFlowDiagram } from "./mermaid-gen.js";
|
|
5
|
-
import { createParseContext, splitIntoSections, tokensToMarkdown, findSection, collectSectionsUntilLevel, parseKeyDiscoveries, parseScopeExclusions, parsePhases, parseTestingStrategy, parseReferences, tryMatchPhaseHeading,
|
|
5
|
+
import { createParseContext, splitIntoSections, tokensToMarkdown, findSection, collectSectionsUntilLevel, parseKeyDiscoveries, parseScopeExclusions, parsePhases, parseTestingStrategy, parseReferences, tryMatchPhaseHeading, } from "./markdown-parser.js";
|
|
6
6
|
export function sessionIdFromPath(absolutePath) {
|
|
7
7
|
return createHash("sha256").update(absolutePath).digest("hex").slice(0, 8);
|
|
8
8
|
}
|
|
@@ -151,21 +151,3 @@ export function parseMarkdownToPlan(markdown, markdownPath, projectDir, version
|
|
|
151
151
|
};
|
|
152
152
|
return { plan, warnings: ctx.warnings };
|
|
153
153
|
}
|
|
154
|
-
// Export internals for testing
|
|
155
|
-
export const _internal = {
|
|
156
|
-
splitIntoSections,
|
|
157
|
-
tokensToMarkdown,
|
|
158
|
-
findSection,
|
|
159
|
-
collectSectionsUntilLevel,
|
|
160
|
-
parseKeyDiscoveries,
|
|
161
|
-
parseScopeExclusions,
|
|
162
|
-
parseChangesFromHeadings,
|
|
163
|
-
parseChangesFromList,
|
|
164
|
-
parseCriteria,
|
|
165
|
-
parsePhases,
|
|
166
|
-
parseTestingStrategy,
|
|
167
|
-
parseReferences,
|
|
168
|
-
tryMatchPhaseHeading,
|
|
169
|
-
extractFilePath,
|
|
170
|
-
createParseContext,
|
|
171
|
-
};
|
package/dist/cli/utils.js
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { existsSync, mkdirSync } from "node:fs";
|
|
2
1
|
export function parseDuration(s) {
|
|
3
2
|
const match = s.match(/^(\d+)(ms|s|m|h|d|w)$/);
|
|
4
3
|
if (!match)
|
|
5
4
|
return null;
|
|
6
5
|
const n = parseInt(match[1], 10);
|
|
7
6
|
switch (match[2]) {
|
|
8
|
-
case "ms":
|
|
9
|
-
|
|
10
|
-
case "
|
|
11
|
-
|
|
12
|
-
case "
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
7
|
+
case "ms":
|
|
8
|
+
return n;
|
|
9
|
+
case "s":
|
|
10
|
+
return n * 1000;
|
|
11
|
+
case "m":
|
|
12
|
+
return n * 60 * 1000;
|
|
13
|
+
case "h":
|
|
14
|
+
return n * 3600 * 1000;
|
|
15
|
+
case "d":
|
|
16
|
+
return n * 86400 * 1000;
|
|
17
|
+
case "w":
|
|
18
|
+
return n * 7 * 86400 * 1000;
|
|
19
|
+
default:
|
|
20
|
+
return null;
|
|
20
21
|
}
|
|
21
22
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "plan-assistant",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0-alpha.3",
|
|
4
4
|
"description": "Review implementation plans in the browser with live reload",
|
|
5
5
|
"homepage": "https://github.com/sanderdatema/plan_assistant#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -33,7 +33,18 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"chokidar": "^4.0.3",
|
|
36
|
-
"
|
|
36
|
+
"highlight.js": "^11.11.0",
|
|
37
|
+
"marked": "^15.0.7",
|
|
38
|
+
"mermaid": "^11.6.0"
|
|
39
|
+
},
|
|
40
|
+
"knip": {
|
|
41
|
+
"entry": [
|
|
42
|
+
"src/cli/index.ts",
|
|
43
|
+
"src/cli/commands/*.ts"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"overrides": {
|
|
47
|
+
"dompurify": ">=3.3.2"
|
|
37
48
|
},
|
|
38
49
|
"devDependencies": {
|
|
39
50
|
"@sveltejs/adapter-node": "^5.5.3",
|
|
@@ -41,8 +52,6 @@
|
|
|
41
52
|
"@sveltejs/vite-plugin-svelte": "^5.0.3",
|
|
42
53
|
"@tailwindcss/vite": "^4.1.4",
|
|
43
54
|
"@types/node": "^25.3.0",
|
|
44
|
-
"highlight.js": "^11.11.0",
|
|
45
|
-
"mermaid": "^11.6.0",
|
|
46
55
|
"svelte": "^5.20.0",
|
|
47
56
|
"svelte-check": "^4.1.0",
|
|
48
57
|
"tailwindcss": "^4.1.4",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! tailwindcss v4.2.0 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;--font-mono:"JetBrains Mono", "SF Mono", SFMono-Regular, Consolas, monospace;--color-red-200:oklch(88.5% .062 18.334);--color-red-900:oklch(39.6% .141 25.723);--color-green-50:oklch(98.2% .018 155.826);--color-green-200:oklch(92.5% .084 155.995);--color-green-600:oklch(62.7% .194 149.214);--color-green-800:oklch(44.8% .119 151.328);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-400:oklch(70.4% .04 256.788);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-800:oklch(27.9% .041 260.031);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-4xl:56rem;--container-5xl:64rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-wide:.025em;--leading-relaxed:1.625;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-out:cubic-bezier(0, 0, .2, 1);--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;--default-mono-font-family:"JetBrains Mono", "SF Mono", SFMono-Regular, Consolas, monospace;--color-surface:#161b22;--color-surface2:#1c2129;--color-border:#30363d;--color-text:#e6edf3;--color-text-dim:#8b949e;--color-accent:#58a6ff;--color-green:#3fb950}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:#30363d}body{color:#e6edf3;background-color:#0d1117;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;line-height:1.6}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.top-0{top:calc(var(--spacing) * 0)}.top-2{top:calc(var(--spacing) * 2)}.right-0{right:calc(var(--spacing) * 0)}.right-4{right:calc(var(--spacing) * 4)}.bottom-0{bottom:calc(var(--spacing) * 0)}.left-0{left:calc(var(--spacing) * 0)}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.table{display:table}.h-\[3px\]{height:3px}.h-full{height:100%}.max-h-\[calc\(100vh-1rem\)\]{max-height:calc(100vh - 1rem)}.min-h-screen{min-height:100vh}.w-32{width:calc(var(--spacing) * 32)}.w-80{width:calc(var(--spacing) * 80)}.w-full{width:100%}.max-w-4xl{max-width:var(--container-4xl)}.max-w-5xl{max-width:var(--container-5xl)}.flex-1{flex:1}.flex-shrink{flex-shrink:1}.border-collapse{border-collapse:collapse}.rotate-90{rotate:90deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize-y{resize:vertical}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-border>:not(:last-child)){border-color:#30363d}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-3{border-left-style:var(--tw-border-style);border-left-width:3px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-accent\/30{border-color:#58a6ff4d}.border-blue-500{border-color:var(--color-blue-500)}.border-border{border-color:#30363d}.border-green\/30{border-color:#3fb9504d}.border-orange\/30{border-color:#d299224d}.border-slate-600{border-color:var(--color-slate-600)}.border-slate-600\/40{border-color:#45556c66}@supports (color:color-mix(in lab,red,red)){.border-slate-600\/40{border-color:color-mix(in oklab,var(--color-slate-600) 40%,transparent)}}.border-slate-700{border-color:var(--color-slate-700)}.border-transparent{border-color:#0000}.border-white\/10{border-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.border-white\/10{border-color:color-mix(in oklab,var(--color-white) 10%,transparent)}}.border-l-border{border-left-color:#30363d}.border-l-green{border-left-color:#3fb950}.border-l-orange{border-left-color:#d29922}.border-l-red{border-left-color:#f85149}.bg-\[\#0f172a\]{background-color:#0f172a}.bg-accent\/15{background-color:#58a6ff26}.bg-bg{background-color:#0d1117}.bg-blue-600{background-color:var(--color-blue-600)}.bg-blue-700{background-color:var(--color-blue-700)}.bg-green{background-color:#3fb950}.bg-green-600{background-color:var(--color-green-600)}.bg-green-800{background-color:var(--color-green-800)}.bg-green\/5{background-color:#3fb9500d}.bg-green\/15{background-color:#3fb95026}.bg-orange\/5{background-color:#d299220d}.bg-orange\/15{background-color:#d2992226}.bg-red-900{background-color:var(--color-red-900)}.bg-red\/5{background-color:#f851490d}.bg-red\/15{background-color:#f8514926}.bg-slate-700{background-color:var(--color-slate-700)}.bg-slate-800\/40{background-color:#1d293d66}@supports (color:color-mix(in lab,red,red)){.bg-slate-800\/40{background-color:color-mix(in oklab,var(--color-slate-800) 40%,transparent)}}.bg-slate-800\/90{background-color:#1d293de6}@supports (color:color-mix(in lab,red,red)){.bg-slate-800\/90{background-color:color-mix(in oklab,var(--color-slate-800) 90%,transparent)}}.bg-surface{background-color:#161b22}.bg-surface2{background-color:#1c2129}.bg-text-dim\/15{background-color:#8b949e26}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pr-80{padding-right:calc(var(--spacing) * 80)}.pr-\[22rem\]{padding-right:22rem}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-20{padding-bottom:calc(var(--spacing) * 20)}.pl-1{padding-left:calc(var(--spacing) * 1)}.pl-5{padding-left:calc(var(--spacing) * 5)}.pl-8{padding-left:calc(var(--spacing) * 8)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:JetBrains Mono,SF Mono,SFMono-Regular,Consolas,monospace}.font-sans{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[0\.7rem\]{font-size:.7rem}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.whitespace-pre-wrap{white-space:pre-wrap}.text-accent{color:#58a6ff}.text-blue-300{color:var(--color-blue-300)}.text-green{color:#3fb950}.text-green-50{color:var(--color-green-50)}.text-green-200{color:var(--color-green-200)}.text-orange{color:#d29922}.text-red{color:#f85149}.text-red-200{color:var(--color-red-200)}.text-slate-100{color:var(--color-slate-100)}.text-slate-200{color:var(--color-slate-200)}.text-slate-300{color:var(--color-slate-300)}.text-slate-400{color:var(--color-slate-400)}.text-text{color:#e6edf3}.text-text-dim{color:#8b949e}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.line-through{text-decoration-line:line-through}.accent-green{accent-color:#3fb950}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-black\/30{--tw-shadow-color:#0000004d}@supports (color:color-mix(in lab,red,red)){.shadow-black\/30{--tw-shadow-color:color-mix(in oklab, color-mix(in oklab, var(--color-black) 30%, transparent) var(--tw-shadow-alpha), transparent)}}.shadow-black\/35{--tw-shadow-color:#00000059}@supports (color:color-mix(in lab,red,red)){.shadow-black\/35{--tw-shadow-color:color-mix(in oklab, color-mix(in oklab, var(--color-black) 35%, transparent) var(--tw-shadow-alpha), transparent)}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-400{--tw-duration:.4s;transition-duration:.4s}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}@media(hover:hover){.hover\:border-accent\/50:hover{border-color:#58a6ff80}.hover\:bg-blue-500:hover{background-color:var(--color-blue-500)}.hover\:bg-orange\/25:hover{background-color:#d2992240}.hover\:bg-surface:hover{background-color:#161b22}.hover\:bg-surface2:hover{background-color:#1c2129}.hover\:text-accent:hover{color:#58a6ff}.hover\:text-text:hover{color:#e6edf3}.hover\:brightness-110:hover{--tw-brightness:brightness(110%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}}.focus\:border-blue-500:focus{border-color:var(--color-blue-500)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.disabled\:opacity-50:disabled{opacity:.5}}pre code.hljs{padding:1em;display:block;overflow-x:auto}code.hljs{padding:3px 5px}.hljs{color:#c9d1d9;background:#0d1117}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#ff7b72}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#d2a8ff}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable{color:#79c0ff}.hljs-meta .hljs-string,.hljs-regexp,.hljs-string{color:#a5d6ff}.hljs-built_in,.hljs-symbol{color:#ffa657}.hljs-code,.hljs-comment,.hljs-formula{color:#8b949e}.hljs-name,.hljs-quote,.hljs-selector-pseudo,.hljs-selector-tag{color:#7ee787}.hljs-subst{color:#c9d1d9}.hljs-section{color:#1f6feb;font-weight:700}.hljs-bullet{color:#f2cc60}.hljs-emphasis{color:#c9d1d9;font-style:italic}.hljs-strong{color:#c9d1d9;font-weight:700}.hljs-addition{color:#aff5b4;background-color:#033a16}.hljs-deletion{color:#ffdcd7;background-color:#67060c}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}
|