gsd-pi 2.41.0-dev.cac69f9 → 2.42.0-dev.97e9e30
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/dist/resources/extensions/gsd/auto/loop.js +80 -0
- package/dist/resources/extensions/gsd/auto/phases.js +2 -2
- package/dist/resources/extensions/gsd/auto/session.js +6 -0
- package/dist/resources/extensions/gsd/auto-dashboard.js +2 -0
- package/dist/resources/extensions/gsd/auto.js +28 -1
- package/dist/resources/extensions/gsd/bootstrap/tool-call-loop-guard.js +7 -2
- package/dist/resources/extensions/gsd/commands/catalog.js +32 -0
- package/dist/resources/extensions/gsd/commands/handlers/workflow.js +146 -0
- package/dist/resources/extensions/gsd/context-injector.js +74 -0
- package/dist/resources/extensions/gsd/custom-execution-policy.js +47 -0
- package/dist/resources/extensions/gsd/custom-verification.js +145 -0
- package/dist/resources/extensions/gsd/custom-workflow-engine.js +164 -0
- package/dist/resources/extensions/gsd/dashboard-overlay.js +1 -0
- package/dist/resources/extensions/gsd/definition-loader.js +352 -0
- package/dist/resources/extensions/gsd/dev-execution-policy.js +24 -0
- package/dist/resources/extensions/gsd/dev-workflow-engine.js +82 -0
- package/dist/resources/extensions/gsd/engine-resolver.js +40 -0
- package/dist/resources/extensions/gsd/engine-types.js +8 -0
- package/dist/resources/extensions/gsd/execution-policy.js +8 -0
- package/dist/resources/extensions/gsd/graph.js +225 -0
- package/dist/resources/extensions/gsd/run-manager.js +134 -0
- package/dist/resources/extensions/gsd/workflow-engine.js +7 -0
- package/dist/resources/skills/create-workflow/SKILL.md +103 -0
- package/dist/resources/skills/create-workflow/references/feature-patterns.md +128 -0
- package/dist/resources/skills/create-workflow/references/verification-policies.md +76 -0
- package/dist/resources/skills/create-workflow/references/yaml-schema-v1.md +46 -0
- package/dist/resources/skills/create-workflow/templates/blog-post-pipeline.yaml +60 -0
- package/dist/resources/skills/create-workflow/templates/code-audit.yaml +60 -0
- package/dist/resources/skills/create-workflow/templates/release-checklist.yaml +66 -0
- package/dist/resources/skills/create-workflow/templates/workflow-definition.yaml +32 -0
- package/dist/resources/skills/create-workflow/workflows/create-from-scratch.md +104 -0
- package/dist/resources/skills/create-workflow/workflows/create-from-template.md +72 -0
- package/dist/web/standalone/.next/BUILD_ID +1 -1
- package/dist/web/standalone/.next/app-path-routes-manifest.json +15 -15
- package/dist/web/standalone/.next/build-manifest.json +2 -2
- package/dist/web/standalone/.next/prerender-manifest.json +3 -3
- package/dist/web/standalone/.next/server/app/_global-error.html +2 -2
- package/dist/web/standalone/.next/server/app/_global-error.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_not-found.html +1 -1
- package/dist/web/standalone/.next/server/app/_not-found.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/index.html +1 -1
- package/dist/web/standalone/.next/server/app/index.rsc +1 -1
- package/dist/web/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/index.segments/_full.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/index.segments/_index.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/dist/web/standalone/.next/server/app-paths-manifest.json +15 -15
- package/dist/web/standalone/.next/server/pages/404.html +1 -1
- package/dist/web/standalone/.next/server/pages/500.html +2 -2
- package/dist/web/standalone/.next/server/server-reference-manifest.json +1 -1
- package/package.json +1 -1
- package/packages/pi-coding-agent/package.json +1 -1
- package/pkg/package.json +1 -1
- package/src/resources/extensions/gsd/auto/loop.ts +91 -0
- package/src/resources/extensions/gsd/auto/phases.ts +2 -2
- package/src/resources/extensions/gsd/auto/session.ts +6 -0
- package/src/resources/extensions/gsd/auto-dashboard.ts +2 -0
- package/src/resources/extensions/gsd/auto.ts +31 -1
- package/src/resources/extensions/gsd/bootstrap/tool-call-loop-guard.ts +9 -2
- package/src/resources/extensions/gsd/commands/catalog.ts +32 -0
- package/src/resources/extensions/gsd/commands/handlers/workflow.ts +164 -0
- package/src/resources/extensions/gsd/context-injector.ts +100 -0
- package/src/resources/extensions/gsd/custom-execution-policy.ts +73 -0
- package/src/resources/extensions/gsd/custom-verification.ts +180 -0
- package/src/resources/extensions/gsd/custom-workflow-engine.ts +216 -0
- package/src/resources/extensions/gsd/dashboard-overlay.ts +1 -0
- package/src/resources/extensions/gsd/definition-loader.ts +462 -0
- package/src/resources/extensions/gsd/dev-execution-policy.ts +51 -0
- package/src/resources/extensions/gsd/dev-workflow-engine.ts +110 -0
- package/src/resources/extensions/gsd/engine-resolver.ts +57 -0
- package/src/resources/extensions/gsd/engine-types.ts +71 -0
- package/src/resources/extensions/gsd/execution-policy.ts +43 -0
- package/src/resources/extensions/gsd/graph.ts +312 -0
- package/src/resources/extensions/gsd/run-manager.ts +180 -0
- package/src/resources/extensions/gsd/tests/bundled-workflow-defs.test.ts +180 -0
- package/src/resources/extensions/gsd/tests/commands-workflow-custom.test.ts +283 -0
- package/src/resources/extensions/gsd/tests/context-injector.test.ts +313 -0
- package/src/resources/extensions/gsd/tests/custom-engine-loop-integration.test.ts +540 -0
- package/src/resources/extensions/gsd/tests/custom-verification.test.ts +382 -0
- package/src/resources/extensions/gsd/tests/custom-workflow-engine.test.ts +339 -0
- package/src/resources/extensions/gsd/tests/dashboard-custom-engine.test.ts +87 -0
- package/src/resources/extensions/gsd/tests/definition-loader.test.ts +778 -0
- package/src/resources/extensions/gsd/tests/dev-engine-wrapper.test.ts +318 -0
- package/src/resources/extensions/gsd/tests/e2e-workflow-pipeline-integration.test.ts +476 -0
- package/src/resources/extensions/gsd/tests/engine-interfaces-contract.test.ts +271 -0
- package/src/resources/extensions/gsd/tests/graph-operations.test.ts +599 -0
- package/src/resources/extensions/gsd/tests/iterate-engine-integration.test.ts +429 -0
- package/src/resources/extensions/gsd/tests/run-manager.test.ts +229 -0
- package/src/resources/extensions/gsd/tests/tool-call-loop-guard.test.ts +45 -0
- package/src/resources/extensions/gsd/workflow-engine.ts +38 -0
- package/src/resources/skills/create-workflow/SKILL.md +103 -0
- package/src/resources/skills/create-workflow/references/feature-patterns.md +128 -0
- package/src/resources/skills/create-workflow/references/verification-policies.md +76 -0
- package/src/resources/skills/create-workflow/references/yaml-schema-v1.md +46 -0
- package/src/resources/skills/create-workflow/templates/blog-post-pipeline.yaml +60 -0
- package/src/resources/skills/create-workflow/templates/code-audit.yaml +60 -0
- package/src/resources/skills/create-workflow/templates/release-checklist.yaml +66 -0
- package/src/resources/skills/create-workflow/templates/workflow-definition.yaml +32 -0
- package/src/resources/skills/create-workflow/workflows/create-from-scratch.md +104 -0
- package/src/resources/skills/create-workflow/workflows/create-from-template.md +72 -0
- /package/dist/web/standalone/.next/static/{EnGUNqHeGbE0tuuUkTJVA → PXrI5DoWsm7rwAVnEU2rD}/_buildManifest.js +0 -0
- /package/dist/web/standalone/.next/static/{EnGUNqHeGbE0tuuUkTJVA → PXrI5DoWsm7rwAVnEU2rD}/_ssgManifest.js +0 -0
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
3:I[90484,[],"MetadataBoundary"]
|
|
4
4
|
4:"$Sreact.suspense"
|
|
5
5
|
5:I[86869,[],"IconMark"]
|
|
6
|
-
0:{"buildId":"
|
|
6
|
+
0:{"buildId":"PXrI5DoWsm7rwAVnEU2rD","rsc":["$","$1","h",{"children":[null,["$","$L2",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","div",null,{"hidden":true,"children":["$","$L3",null,{"children":["$","$4",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"GSD"}],["$","meta","1",{"name":"description","content":"The evolution of Get Shit Done — now a real coding agent. One command. Walk away. Come back to a built project."}],["$","meta","2",{"name":"application-name","content":"GSD"}],["$","link","3",{"rel":"icon","href":"/icon-light-32x32.png","media":"(prefers-color-scheme: light)"}],["$","link","4",{"rel":"icon","href":"/icon-dark-32x32.png","media":"(prefers-color-scheme: dark)"}],["$","link","5",{"rel":"icon","href":"/icon.svg","type":"image/svg+xml"}],["$","$L5","6",{}]]}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],"loading":null,"isPartial":false}
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
5:I[61549,["4986","static/chunks/4986-c2fc8845ce785303.js","7177","static/chunks/app/layout-a16c7a7ecdf0c2cf.js"],"Toaster"]
|
|
6
6
|
:HL["/_next/static/css/de70bee13400563f.css","style"]
|
|
7
7
|
:HL["/_next/static/css/123c0bb039697968.css","style"]
|
|
8
|
-
0:{"buildId":"
|
|
8
|
+
0:{"buildId":"PXrI5DoWsm7rwAVnEU2rD","rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/de70bee13400563f.css","precedence":"next"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/123c0bb039697968.css","precedence":"next"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__variable_188709 __variable_9a8899 font-sans antialiased","children":["$","$L2",null,{"attribute":"class","defaultTheme":"dark","children":[["$","$L3",null,{"parallelRouterKey":"children","template":["$","$L4",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]]}],["$","$L5",null,{"position":"bottom-right"}]]}]}]}]]}],"loading":null,"isPartial":false}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
:HL["/_next/static/media/93f479601ee12b01-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
3
3
|
:HL["/_next/static/css/de70bee13400563f.css","style"]
|
|
4
4
|
:HL["/_next/static/css/123c0bb039697968.css","style"]
|
|
5
|
-
0:{"buildId":"
|
|
5
|
+
0:{"buildId":"PXrI5DoWsm7rwAVnEU2rD","tree":{"name":"","paramType":null,"paramKey":"","hasRuntimePrefetch":false,"slots":{"children":{"name":"__PAGE__","paramType":null,"paramKey":"__PAGE__","hasRuntimePrefetch":false,"slots":null,"isRootLayout":false}},"isRootLayout":true},"staleTime":300}
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
{
|
|
2
|
-
"/_global-error/page": "app/_global-error/page.js",
|
|
3
2
|
"/_not-found/page": "app/_not-found/page.js",
|
|
4
|
-
"/
|
|
5
|
-
"/api/boot/route": "app/api/boot/route.js",
|
|
3
|
+
"/_global-error/page": "app/_global-error/page.js",
|
|
6
4
|
"/api/bridge-terminal/input/route": "app/api/bridge-terminal/input/route.js",
|
|
7
|
-
"/api/
|
|
8
|
-
"/api/
|
|
5
|
+
"/api/boot/route": "app/api/boot/route.js",
|
|
6
|
+
"/api/bridge-terminal/resize/route": "app/api/bridge-terminal/resize/route.js",
|
|
9
7
|
"/api/dev-mode/route": "app/api/dev-mode/route.js",
|
|
8
|
+
"/api/doctor/route": "app/api/doctor/route.js",
|
|
10
9
|
"/api/browse-directories/route": "app/api/browse-directories/route.js",
|
|
11
10
|
"/api/cleanup/route": "app/api/cleanup/route.js",
|
|
12
11
|
"/api/export-data/route": "app/api/export-data/route.js",
|
|
13
|
-
"/api/doctor/route": "app/api/doctor/route.js",
|
|
14
|
-
"/api/git/route": "app/api/git/route.js",
|
|
15
12
|
"/api/forensics/route": "app/api/forensics/route.js",
|
|
13
|
+
"/api/git/route": "app/api/git/route.js",
|
|
16
14
|
"/api/history/route": "app/api/history/route.js",
|
|
15
|
+
"/api/captures/route": "app/api/captures/route.js",
|
|
17
16
|
"/api/hooks/route": "app/api/hooks/route.js",
|
|
18
17
|
"/api/inspect/route": "app/api/inspect/route.js",
|
|
19
|
-
"/api/live-state/route": "app/api/live-state/route.js",
|
|
20
18
|
"/api/knowledge/route": "app/api/knowledge/route.js",
|
|
19
|
+
"/api/live-state/route": "app/api/live-state/route.js",
|
|
20
|
+
"/api/onboarding/route": "app/api/onboarding/route.js",
|
|
21
21
|
"/api/preferences/route": "app/api/preferences/route.js",
|
|
22
|
-
"/api/projects/route": "app/api/projects/route.js",
|
|
23
22
|
"/api/recovery/route": "app/api/recovery/route.js",
|
|
24
|
-
"/api/
|
|
25
|
-
"/api/
|
|
23
|
+
"/api/projects/route": "app/api/projects/route.js",
|
|
24
|
+
"/api/bridge-terminal/stream/route": "app/api/bridge-terminal/stream/route.js",
|
|
26
25
|
"/api/session/command/route": "app/api/session/command/route.js",
|
|
27
26
|
"/api/session/events/route": "app/api/session/events/route.js",
|
|
28
27
|
"/api/session/manage/route": "app/api/session/manage/route.js",
|
|
28
|
+
"/api/shutdown/route": "app/api/shutdown/route.js",
|
|
29
29
|
"/api/settings-data/route": "app/api/settings-data/route.js",
|
|
30
|
+
"/api/session/browser/route": "app/api/session/browser/route.js",
|
|
30
31
|
"/api/skill-health/route": "app/api/skill-health/route.js",
|
|
31
|
-
"/api/shutdown/route": "app/api/shutdown/route.js",
|
|
32
32
|
"/api/steer/route": "app/api/steer/route.js",
|
|
33
33
|
"/api/terminal/input/route": "app/api/terminal/input/route.js",
|
|
34
34
|
"/api/terminal/resize/route": "app/api/terminal/resize/route.js",
|
|
35
35
|
"/api/terminal/sessions/route": "app/api/terminal/sessions/route.js",
|
|
36
|
-
"/api/terminal/stream/route": "app/api/terminal/stream/route.js",
|
|
37
36
|
"/api/undo/route": "app/api/undo/route.js",
|
|
37
|
+
"/api/terminal/stream/route": "app/api/terminal/stream/route.js",
|
|
38
|
+
"/api/remote-questions/route": "app/api/remote-questions/route.js",
|
|
38
39
|
"/api/terminal/upload/route": "app/api/terminal/upload/route.js",
|
|
39
|
-
"/api/visualizer/route": "app/api/visualizer/route.js",
|
|
40
40
|
"/api/update/route": "app/api/update/route.js",
|
|
41
|
-
"/api/
|
|
41
|
+
"/api/visualizer/route": "app/api/visualizer/route.js",
|
|
42
42
|
"/api/files/route": "app/api/files/route.js",
|
|
43
43
|
"/page": "app/page.js"
|
|
44
44
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
1
|
+
<!DOCTYPE html><!--PXrI5DoWsm7rwAVnEU2rD--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/4cf2300e9c8272f7-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/93f479601ee12b01-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/css/de70bee13400563f.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/123c0bb039697968.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-fa307370fcf9fb2c.js"/><script src="/_next/static/chunks/4bd1b696-e5d7c65570c947b7.js" async=""></script><script src="/_next/static/chunks/3794-337d1ca25ad99a89.js" async=""></script><script src="/_next/static/chunks/main-app-fdab67f7802d7832.js" async=""></script><script src="/_next/static/chunks/4986-c2fc8845ce785303.js" async=""></script><script src="/_next/static/chunks/app/layout-a16c7a7ecdf0c2cf.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><title>GSD</title><meta name="description" content="The evolution of Get Shit Done — now a real coding agent. One command. Walk away. Come back to a built project."/><meta name="application-name" content="GSD"/><link rel="icon" href="/icon-light-32x32.png" media="(prefers-color-scheme: light)"/><link rel="icon" href="/icon-dark-32x32.png" media="(prefers-color-scheme: dark)"/><link rel="icon" href="/icon.svg" type="image/svg+xml"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="__variable_188709 __variable_9a8899 font-sans antialiased"><div hidden=""><!--$--><!--/$--></div><script>((a,b,c,d,e,f,g,h)=>{let i=document.documentElement,j=["light","dark"];function k(b){var c;(Array.isArray(a)?a:[a]).forEach(a=>{let c="class"===a,d=c&&f?e.map(a=>f[a]||a):e;c?(i.classList.remove(...d),i.classList.add(f&&f[b]?f[b]:b)):i.setAttribute(a,b)}),c=b,h&&j.includes(c)&&(i.style.colorScheme=c)}if(d)k(d);else try{let a=localStorage.getItem(b)||c,d=g&&"system"===a?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a;k(d)}catch(a){}})("class","theme","dark",null,["light","dark"],null,true,true)</script><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><section aria-label="Notifications alt+T" tabindex="-1" aria-live="polite" aria-relevant="additions text" aria-atomic="false"></section><script src="/_next/static/chunks/webpack-fa307370fcf9fb2c.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[21942,[\"4986\",\"static/chunks/4986-c2fc8845ce785303.js\",\"7177\",\"static/chunks/app/layout-a16c7a7ecdf0c2cf.js\"],\"ThemeProvider\"]\n3:I[57121,[],\"\"]\n4:I[74581,[],\"\"]\n5:I[61549,[\"4986\",\"static/chunks/4986-c2fc8845ce785303.js\",\"7177\",\"static/chunks/app/layout-a16c7a7ecdf0c2cf.js\"],\"Toaster\"]\n6:I[90484,[],\"OutletBoundary\"]\n7:\"$Sreact.suspense\"\n9:I[90484,[],\"ViewportBoundary\"]\nb:I[90484,[],\"MetadataBoundary\"]\nd:I[27123,[],\"\"]\n:HL[\"/_next/static/media/4cf2300e9c8272f7-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/93f479601ee12b01-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/css/de70bee13400563f.css\",\"style\"]\n:HL[\"/_next/static/css/123c0bb039697968.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"PXrI5DoWsm7rwAVnEU2rD\",\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/de70bee13400563f.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/123c0bb039697968.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[\"$\",\"body\",null,{\"className\":\"__variable_188709 __variable_9a8899 font-sans antialiased\",\"children\":[\"$\",\"$L2\",null,{\"attribute\":\"class\",\"defaultTheme\":\"dark\",\"children\":[[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}],[\"$\",\"$L5\",null,{\"position\":\"bottom-right\"}]]}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$7\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@8\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L9\",null,{\"children\":\"$La\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Lb\",null,{\"children\":[\"$\",\"$7\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lc\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$d\",[]],\"S\":true}\n"])</script><script>self.__next_f.push([1,"a:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"e:I[86869,[],\"IconMark\"]\n8:null\nc:[[\"$\",\"title\",\"0\",{\"children\":\"GSD\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"The evolution of Get Shit Done — now a real coding agent. One command. Walk away. Come back to a built project.\"}],[\"$\",\"meta\",\"2\",{\"name\":\"application-name\",\"content\":\"GSD\"}],[\"$\",\"link\",\"3\",{\"rel\":\"icon\",\"href\":\"/icon-light-32x32.png\",\"media\":\"(prefers-color-scheme: light)\"}],[\"$\",\"link\",\"4\",{\"rel\":\"icon\",\"href\":\"/icon-dark-32x32.png\",\"media\":\"(prefers-color-scheme: dark)\"}],[\"$\",\"link\",\"5\",{\"rel\":\"icon\",\"href\":\"/icon.svg\",\"type\":\"image/svg+xml\"}],[\"$\",\"$Le\",\"6\",{}]]\n"])</script></body></html>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
2
|
-
@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/webpack-fa307370fcf9fb2c.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[57121,[],\"\"]\n3:I[74581,[],\"\"]\n4:I[90484,[],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n7:I[90484,[],\"ViewportBoundary\"]\n9:I[90484,[],\"MetadataBoundary\"]\nb:I[27123,[],\"\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"
|
|
1
|
+
<!DOCTYPE html><!--PXrI5DoWsm7rwAVnEU2rD--><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-fa307370fcf9fb2c.js"/><script src="/_next/static/chunks/4bd1b696-e5d7c65570c947b7.js" async=""></script><script src="/_next/static/chunks/3794-337d1ca25ad99a89.js" async=""></script><script src="/_next/static/chunks/main-app-fdab67f7802d7832.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: Internal Server Error.</title><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}
|
|
2
|
+
@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/webpack-fa307370fcf9fb2c.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[57121,[],\"\"]\n3:I[74581,[],\"\"]\n4:I[90484,[],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n7:I[90484,[],\"ViewportBoundary\"]\n9:I[90484,[],\"MetadataBoundary\"]\nb:I[27123,[],\"\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"PXrI5DoWsm7rwAVnEU2rD\",\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"_global-error\",{\"children\":[\"__PAGE__\",{}]}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"title\",null,{\"children\":\"500: Internal Server Error.\"}]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"lineHeight\":\"48px\"},\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}\\n@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"paddingRight\":23,\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\"},\"children\":\"500\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"28px\"},\"children\":\"Internal Server Error.\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L7\",null,{\"children\":\"$L8\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L9\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$La\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$b\",[]],\"S\":true}\n"])</script><script>self.__next_f.push([1,"8:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"6:null\na:[]\n"])</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"node":{},"edge":{},"encryptionKey":"
|
|
1
|
+
{"node":{},"edge":{},"encryptionKey":"afUVR/6eRVOtKDZdAXC3Uc/YUfy+1lgZEuU8w0qZk6Y="}
|
package/package.json
CHANGED
package/pkg/package.json
CHANGED
|
@@ -28,6 +28,7 @@ import {
|
|
|
28
28
|
} from "./phases.js";
|
|
29
29
|
import { debugLog } from "../debug-logger.js";
|
|
30
30
|
import { isInfrastructureError } from "./infra-errors.js";
|
|
31
|
+
import { resolveEngine } from "../engine-resolver.js";
|
|
31
32
|
|
|
32
33
|
/**
|
|
33
34
|
* Main auto-mode execution loop. Iterates: derive → dispatch → guards →
|
|
@@ -117,6 +118,96 @@ export async function autoLoop(
|
|
|
117
118
|
deps.emitJournalEvent({ ts: new Date().toISOString(), flowId, seq: nextSeq(), eventType: "iteration-start", data: { iteration } });
|
|
118
119
|
let iterData: IterationData;
|
|
119
120
|
|
|
121
|
+
// ── Custom engine path ──────────────────────────────────────────────
|
|
122
|
+
// When activeEngineId is a non-dev value, bypass runPreDispatch and
|
|
123
|
+
// runDispatch entirely — the custom engine drives its own state via
|
|
124
|
+
// GRAPH.yaml. Shares runGuards and runUnitPhase with the dev path.
|
|
125
|
+
// After unit execution, verifies then reconciles via the engine layer.
|
|
126
|
+
//
|
|
127
|
+
// GSD_ENGINE_BYPASS=1 skips the engine layer entirely — falls through
|
|
128
|
+
// to the dev path below.
|
|
129
|
+
if (s.activeEngineId != null && s.activeEngineId !== "dev" && !sidecarItem && process.env.GSD_ENGINE_BYPASS !== "1") {
|
|
130
|
+
debugLog("autoLoop", { phase: "custom-engine-derive", iteration, engineId: s.activeEngineId });
|
|
131
|
+
|
|
132
|
+
const { engine, policy } = resolveEngine({
|
|
133
|
+
activeEngineId: s.activeEngineId,
|
|
134
|
+
activeRunDir: s.activeRunDir,
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
const engineState = await engine.deriveState(s.basePath);
|
|
138
|
+
if (engineState.isComplete) {
|
|
139
|
+
await deps.stopAuto(ctx, pi, "Workflow complete");
|
|
140
|
+
break;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
debugLog("autoLoop", { phase: "custom-engine-dispatch", iteration });
|
|
144
|
+
const dispatch = await engine.resolveDispatch(engineState, { basePath: s.basePath });
|
|
145
|
+
|
|
146
|
+
if (dispatch.action === "stop") {
|
|
147
|
+
await deps.stopAuto(ctx, pi, dispatch.reason ?? "Engine stopped");
|
|
148
|
+
break;
|
|
149
|
+
}
|
|
150
|
+
if (dispatch.action === "skip") {
|
|
151
|
+
continue;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
// dispatch.action === "dispatch"
|
|
155
|
+
const step = dispatch.step!;
|
|
156
|
+
const gsdState = await deps.deriveState(s.basePath);
|
|
157
|
+
|
|
158
|
+
iterData = {
|
|
159
|
+
unitType: step.unitType,
|
|
160
|
+
unitId: step.unitId,
|
|
161
|
+
prompt: step.prompt,
|
|
162
|
+
finalPrompt: step.prompt,
|
|
163
|
+
pauseAfterUatDispatch: false,
|
|
164
|
+
observabilityIssues: [],
|
|
165
|
+
state: gsdState,
|
|
166
|
+
mid: s.currentMilestoneId ?? "workflow",
|
|
167
|
+
midTitle: "Workflow",
|
|
168
|
+
isRetry: false,
|
|
169
|
+
previousTier: undefined,
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
// ── Progress widget (mirrors dev path in runDispatch) ──
|
|
173
|
+
deps.updateProgressWidget(ctx, iterData.unitType, iterData.unitId, iterData.state);
|
|
174
|
+
|
|
175
|
+
// ── Guards (shared with dev path) ──
|
|
176
|
+
const guardsResult = await runGuards(ic, s.currentMilestoneId ?? "workflow");
|
|
177
|
+
if (guardsResult.action === "break") break;
|
|
178
|
+
|
|
179
|
+
// ── Unit execution (shared with dev path) ──
|
|
180
|
+
const unitPhaseResult = await runUnitPhase(ic, iterData, loopState);
|
|
181
|
+
if (unitPhaseResult.action === "break") break;
|
|
182
|
+
|
|
183
|
+
// ── Verify first, then reconcile (only mark complete on pass) ──
|
|
184
|
+
debugLog("autoLoop", { phase: "custom-engine-verify", iteration, unitId: iterData.unitId });
|
|
185
|
+
const verifyResult = await policy.verify(iterData.unitType, iterData.unitId, { basePath: s.basePath });
|
|
186
|
+
if (verifyResult === "pause") {
|
|
187
|
+
await deps.pauseAuto(ctx, pi);
|
|
188
|
+
break;
|
|
189
|
+
}
|
|
190
|
+
if (verifyResult === "retry") {
|
|
191
|
+
debugLog("autoLoop", { phase: "custom-engine-verify-retry", iteration, unitId: iterData.unitId });
|
|
192
|
+
continue;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
// Verification passed — mark step complete
|
|
196
|
+
debugLog("autoLoop", { phase: "custom-engine-reconcile", iteration, unitId: iterData.unitId });
|
|
197
|
+
await engine.reconcile(engineState, {
|
|
198
|
+
unitType: iterData.unitType,
|
|
199
|
+
unitId: iterData.unitId,
|
|
200
|
+
startedAt: s.currentUnit?.startedAt ?? Date.now(),
|
|
201
|
+
finishedAt: Date.now(),
|
|
202
|
+
});
|
|
203
|
+
|
|
204
|
+
deps.clearUnitTimeout();
|
|
205
|
+
consecutiveErrors = 0;
|
|
206
|
+
deps.emitJournalEvent({ ts: new Date().toISOString(), flowId, seq: nextSeq(), eventType: "iteration-end", data: { iteration } });
|
|
207
|
+
debugLog("autoLoop", { phase: "iteration-complete", iteration });
|
|
208
|
+
continue;
|
|
209
|
+
}
|
|
210
|
+
|
|
120
211
|
if (!sidecarItem) {
|
|
121
212
|
// ── Phase 1: Pre-dispatch ─────────────────────────────────────────
|
|
122
213
|
const preDispatchResult = await runPreDispatch(ic, loopState);
|
|
@@ -1133,9 +1133,9 @@ export async function runUnitPhase(
|
|
|
1133
1133
|
);
|
|
1134
1134
|
}
|
|
1135
1135
|
|
|
1136
|
-
const
|
|
1136
|
+
const skipArtifactVerification = unitType.startsWith("hook/") || unitType === "custom-step";
|
|
1137
1137
|
const artifactVerified =
|
|
1138
|
-
|
|
1138
|
+
skipArtifactVerification ||
|
|
1139
1139
|
deps.verifyExpectedArtifact(unitType, unitId, s.basePath);
|
|
1140
1140
|
if (artifactVerified) {
|
|
1141
1141
|
s.completedUnits.push({
|
|
@@ -83,6 +83,8 @@ export class AutoSession {
|
|
|
83
83
|
paused = false;
|
|
84
84
|
stepMode = false;
|
|
85
85
|
verbose = false;
|
|
86
|
+
activeEngineId: string | null = null;
|
|
87
|
+
activeRunDir: string | null = null;
|
|
86
88
|
cmdCtx: ExtensionCommandContext | null = null;
|
|
87
89
|
|
|
88
90
|
// ── Paths ────────────────────────────────────────────────────────────────
|
|
@@ -174,6 +176,8 @@ export class AutoSession {
|
|
|
174
176
|
this.paused = false;
|
|
175
177
|
this.stepMode = false;
|
|
176
178
|
this.verbose = false;
|
|
179
|
+
this.activeEngineId = null;
|
|
180
|
+
this.activeRunDir = null;
|
|
177
181
|
this.cmdCtx = null;
|
|
178
182
|
|
|
179
183
|
// Paths
|
|
@@ -226,6 +230,8 @@ export class AutoSession {
|
|
|
226
230
|
paused: this.paused,
|
|
227
231
|
stepMode: this.stepMode,
|
|
228
232
|
basePath: this.basePath,
|
|
233
|
+
activeEngineId: this.activeEngineId,
|
|
234
|
+
activeRunDir: this.activeRunDir,
|
|
229
235
|
currentMilestoneId: this.currentMilestoneId,
|
|
230
236
|
currentUnit: this.currentUnit,
|
|
231
237
|
completedUnits: this.completedUnits.length,
|
|
@@ -79,6 +79,7 @@ export function unitVerb(unitType: string): string {
|
|
|
79
79
|
case "rewrite-docs": return "rewriting";
|
|
80
80
|
case "reassess-roadmap": return "reassessing";
|
|
81
81
|
case "run-uat": return "running UAT";
|
|
82
|
+
case "custom-step": return "executing workflow step";
|
|
82
83
|
default: return unitType;
|
|
83
84
|
}
|
|
84
85
|
}
|
|
@@ -97,6 +98,7 @@ export function unitPhaseLabel(unitType: string): string {
|
|
|
97
98
|
case "rewrite-docs": return "REWRITE";
|
|
98
99
|
case "reassess-roadmap": return "REASSESS";
|
|
99
100
|
case "run-uat": return "UAT";
|
|
101
|
+
case "custom-step": return "WORKFLOW";
|
|
100
102
|
default: return unitType.toUpperCase();
|
|
101
103
|
}
|
|
102
104
|
}
|
|
@@ -358,6 +358,22 @@ export function isAutoPaused(): boolean {
|
|
|
358
358
|
return s.paused;
|
|
359
359
|
}
|
|
360
360
|
|
|
361
|
+
export function setActiveEngineId(id: string | null): void {
|
|
362
|
+
s.activeEngineId = id;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
export function getActiveEngineId(): string | null {
|
|
366
|
+
return s.activeEngineId;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
export function setActiveRunDir(runDir: string | null): void {
|
|
370
|
+
s.activeRunDir = runDir;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
export function getActiveRunDir(): string | null {
|
|
374
|
+
return s.activeRunDir;
|
|
375
|
+
}
|
|
376
|
+
|
|
361
377
|
/**
|
|
362
378
|
* Return the model captured at auto-mode start for this session.
|
|
363
379
|
* Used by error-recovery to fall back to the session's own model
|
|
@@ -782,6 +798,8 @@ export async function pauseAuto(
|
|
|
782
798
|
stepMode: s.stepMode,
|
|
783
799
|
pausedAt: new Date().toISOString(),
|
|
784
800
|
sessionFile: s.pausedSessionFile,
|
|
801
|
+
activeEngineId: s.activeEngineId,
|
|
802
|
+
activeRunDir: s.activeRunDir,
|
|
785
803
|
};
|
|
786
804
|
const runtimeDir = join(gsdRoot(s.originalBasePath || s.basePath), "runtime");
|
|
787
805
|
mkdirSync(runtimeDir, { recursive: true });
|
|
@@ -1018,7 +1036,19 @@ export async function startAuto(
|
|
|
1018
1036
|
const pausedPath = join(gsdRoot(base), "runtime", "paused-session.json");
|
|
1019
1037
|
if (existsSync(pausedPath)) {
|
|
1020
1038
|
const meta = JSON.parse(readFileSync(pausedPath, "utf-8"));
|
|
1021
|
-
if (meta.
|
|
1039
|
+
if (meta.activeEngineId && meta.activeEngineId !== "dev") {
|
|
1040
|
+
// Custom workflow resume — restore engine state
|
|
1041
|
+
s.activeEngineId = meta.activeEngineId;
|
|
1042
|
+
s.activeRunDir = meta.activeRunDir ?? null;
|
|
1043
|
+
s.originalBasePath = meta.originalBasePath || base;
|
|
1044
|
+
s.stepMode = meta.stepMode ?? requestedStepMode;
|
|
1045
|
+
s.paused = true;
|
|
1046
|
+
try { unlinkSync(pausedPath); } catch { /* non-fatal */ }
|
|
1047
|
+
ctx.ui.notify(
|
|
1048
|
+
`Resuming paused custom workflow${meta.activeRunDir ? ` (${meta.activeRunDir})` : ""}.`,
|
|
1049
|
+
"info",
|
|
1050
|
+
);
|
|
1051
|
+
} else if (meta.milestoneId) {
|
|
1022
1052
|
// Validate the milestone still exists and isn't already complete (#1664).
|
|
1023
1053
|
const mDir = resolveMilestonePath(base, meta.milestoneId);
|
|
1024
1054
|
const summaryFile = resolveMilestoneFile(base, meta.milestoneId, "SUMMARY");
|
|
@@ -24,8 +24,15 @@ let enabled = true;
|
|
|
24
24
|
function hashToolCall(toolName: string, args: Record<string, unknown>): string {
|
|
25
25
|
const h = createHash("sha256");
|
|
26
26
|
h.update(toolName);
|
|
27
|
-
// Sort keys for deterministic hashing regardless of object key order
|
|
28
|
-
h.update(JSON.stringify(args,
|
|
27
|
+
// Sort keys recursively for deterministic hashing regardless of object key order
|
|
28
|
+
h.update(JSON.stringify(args, (_key, value) =>
|
|
29
|
+
value && typeof value === "object" && !Array.isArray(value)
|
|
30
|
+
? Object.keys(value).sort().reduce<Record<string, unknown>>((o, k) => {
|
|
31
|
+
o[k] = value[k];
|
|
32
|
+
return o;
|
|
33
|
+
}, {})
|
|
34
|
+
: value
|
|
35
|
+
));
|
|
29
36
|
return h.digest("hex").slice(0, 16);
|
|
30
37
|
}
|
|
31
38
|
|
|
@@ -3,6 +3,7 @@ import { homedir } from "node:os";
|
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
|
|
5
5
|
import { loadRegistry } from "../workflow-templates.js";
|
|
6
|
+
import { resolveProjectRoot } from "../worktree.js";
|
|
6
7
|
|
|
7
8
|
const gsdHome = process.env.GSD_HOME || join(homedir(), ".gsd");
|
|
8
9
|
|
|
@@ -65,6 +66,7 @@ export const TOP_LEVEL_SUBCOMMANDS: readonly GsdCommandDefinition[] = [
|
|
|
65
66
|
{ cmd: "templates", desc: "List available workflow templates" },
|
|
66
67
|
{ cmd: "extensions", desc: "Manage extensions (list, enable, disable, info)" },
|
|
67
68
|
{ cmd: "fast", desc: "Toggle OpenAI service tier (on/off/flex/status)" },
|
|
69
|
+
{ cmd: "workflow", desc: "Custom workflow lifecycle (new, run, list, validate, pause, resume)" },
|
|
68
70
|
];
|
|
69
71
|
|
|
70
72
|
const NESTED_COMPLETIONS: CompletionMap = {
|
|
@@ -206,6 +208,14 @@ const NESTED_COMPLETIONS: CompletionMap = {
|
|
|
206
208
|
{ cmd: "ok", desc: "Model was appropriate for this task" },
|
|
207
209
|
{ cmd: "under", desc: "Model was underqualified for this task" },
|
|
208
210
|
],
|
|
211
|
+
workflow: [
|
|
212
|
+
{ cmd: "new", desc: "Create a new workflow definition (via skill)" },
|
|
213
|
+
{ cmd: "run", desc: "Create a run and start auto-mode" },
|
|
214
|
+
{ cmd: "list", desc: "List workflow runs" },
|
|
215
|
+
{ cmd: "validate", desc: "Validate a workflow definition YAML" },
|
|
216
|
+
{ cmd: "pause", desc: "Pause custom workflow auto-mode" },
|
|
217
|
+
{ cmd: "resume", desc: "Resume paused custom workflow auto-mode" },
|
|
218
|
+
],
|
|
209
219
|
};
|
|
210
220
|
|
|
211
221
|
function filterOptions(
|
|
@@ -309,6 +319,28 @@ export function getGsdArgumentCompletions(prefix: string) {
|
|
|
309
319
|
return [{ value: "undo --force", label: "--force", description: "Skip confirmation prompt" }];
|
|
310
320
|
}
|
|
311
321
|
|
|
322
|
+
// Workflow definition-name completion for `workflow run <name>` and `workflow validate <name>`
|
|
323
|
+
if (command === "workflow" && (subcommand === "run" || subcommand === "validate") && parts.length <= 3) {
|
|
324
|
+
try {
|
|
325
|
+
const defsDir = join(resolveProjectRoot(process.cwd()), ".gsd", "workflow-defs");
|
|
326
|
+
if (existsSync(defsDir)) {
|
|
327
|
+
return readdirSync(defsDir)
|
|
328
|
+
.filter((f) => f.endsWith(".yaml") && f.startsWith(third))
|
|
329
|
+
.map((f) => {
|
|
330
|
+
const name = f.replace(/\.yaml$/, "");
|
|
331
|
+
return {
|
|
332
|
+
value: `workflow ${subcommand} ${name}`,
|
|
333
|
+
label: name,
|
|
334
|
+
description: `Workflow definition: ${name}`,
|
|
335
|
+
};
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
} catch {
|
|
339
|
+
// ignore filesystem errors during completion
|
|
340
|
+
}
|
|
341
|
+
return [];
|
|
342
|
+
}
|
|
343
|
+
|
|
312
344
|
const nested = NESTED_COMPLETIONS[command];
|
|
313
345
|
if (nested && parts.length <= 2) {
|
|
314
346
|
return filterOptions(subcommand, nested, command);
|