@kenkaiiii/ggcoder 5.100.3 → 5.102.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/README.md +0 -2
  2. package/assets/motion/fonts/anybody/OFL.txt +93 -93
  3. package/assets/motion/fonts/finger-paint/OFL.txt +93 -93
  4. package/assets/skills/gg-guide/references/checklist-and-safety.md +1 -1
  5. package/assets/skills/gg-guide/references/code-mode.md +1 -3
  6. package/dist/app-sidecar/autopilot-runner.d.ts +5 -0
  7. package/dist/app-sidecar/autopilot-runner.js +45 -1
  8. package/dist/app-sidecar/autopilot-runner.js.map +1 -1
  9. package/dist/app-sidecar/prompt-routes.js +1 -1
  10. package/dist/app-sidecar/prompt-routes.js.map +1 -1
  11. package/dist/app-sidecar.js +33 -2
  12. package/dist/app-sidecar.js.map +1 -1
  13. package/dist/core/ask-user.d.ts +2 -0
  14. package/dist/core/ask-user.js +7 -0
  15. package/dist/core/ask-user.js.map +1 -1
  16. package/dist/core/autopilot-gate.js +1 -1
  17. package/dist/core/checklist-items.d.ts +2 -2
  18. package/dist/core/checklist-items.js +14 -2
  19. package/dist/core/checklist-items.js.map +1 -1
  20. package/dist/core/checklist-prompt.d.ts +1 -1
  21. package/dist/core/checklist-prompt.js +1 -1
  22. package/dist/core/ken-ask-answer.d.ts +24 -0
  23. package/dist/core/ken-ask-answer.js +96 -0
  24. package/dist/core/ken-ask-answer.js.map +1 -0
  25. package/dist/core/ken-context.d.ts +20 -0
  26. package/dist/core/ken-context.js +55 -0
  27. package/dist/core/ken-context.js.map +1 -1
  28. package/dist/core/ken-prompt.js +6 -0
  29. package/dist/core/ken-prompt.js.map +1 -1
  30. package/dist/core/prompt-commands.js +57 -153
  31. package/dist/core/prompt-commands.js.map +1 -1
  32. package/dist/core/trophies/catalog-more.js +3 -3
  33. package/dist/core/trophies/catalog-more.js.map +1 -1
  34. package/dist/core/trophies/catalog.js +3 -3
  35. package/dist/core/trophies/catalog.js.map +1 -1
  36. package/dist/system-prompt.js +1 -1
  37. package/dist/ui/App.js +0 -2
  38. package/dist/ui/App.js.map +1 -1
  39. package/package.json +4 -4
package/README.md CHANGED
@@ -98,8 +98,6 @@ Built-in workflows:
98
98
  | --------------- | ------------------------------------------------------- |
99
99
  | `/init` | Write or update the project's `AGENTS.md` / `CLAUDE.md` |
100
100
  | `/setup-commit` | Create a `/commit` command with your project's checks |
101
- | `/setup-ci` | Set up or harden CI for any stack |
102
- | `/compare` | Compare your code against real-world code |
103
101
  | `/steroids` | Index real repos similar to this project |
104
102
  | `/expand` | Suggest new features worth building |
105
103
 
@@ -1,93 +1,93 @@
1
- Copyright 2020 The Anybody Project Authors (https://github.com/Etcetera-Type-Co/Anybody)
2
-
3
- This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
- This license is copied below, and is also available with a FAQ at:
5
- https://scripts.sil.org/OFL
6
-
7
-
8
- -----------------------------------------------------------
9
- SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
- -----------------------------------------------------------
11
-
12
- PREAMBLE
13
- The goals of the Open Font License (OFL) are to stimulate worldwide
14
- development of collaborative font projects, to support the font creation
15
- efforts of academic and linguistic communities, and to provide a free and
16
- open framework in which fonts may be shared and improved in partnership
17
- with others.
18
-
19
- The OFL allows the licensed fonts to be used, studied, modified and
20
- redistributed freely as long as they are not sold by themselves. The
21
- fonts, including any derivative works, can be bundled, embedded,
22
- redistributed and/or sold with any software provided that any reserved
23
- names are not used by derivative works. The fonts and derivatives,
24
- however, cannot be released under any other type of license. The
25
- requirement for fonts to remain under this license does not apply
26
- to any document created using the fonts or their derivatives.
27
-
28
- DEFINITIONS
29
- "Font Software" refers to the set of files released by the Copyright
30
- Holder(s) under this license and clearly marked as such. This may
31
- include source files, build scripts and documentation.
32
-
33
- "Reserved Font Name" refers to any names specified as such after the
34
- copyright statement(s).
35
-
36
- "Original Version" refers to the collection of Font Software components as
37
- distributed by the Copyright Holder(s).
38
-
39
- "Modified Version" refers to any derivative made by adding to, deleting,
40
- or substituting -- in part or in whole -- any of the components of the
41
- Original Version, by changing formats or by porting the Font Software to a
42
- new environment.
43
-
44
- "Author" refers to any designer, engineer, programmer, technical
45
- writer or other person who contributed to the Font Software.
46
-
47
- PERMISSION & CONDITIONS
48
- Permission is hereby granted, free of charge, to any person obtaining
49
- a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
- redistribute, and sell modified and unmodified copies of the Font
51
- Software, subject to the following conditions:
52
-
53
- 1) Neither the Font Software nor any of its individual components,
54
- in Original or Modified Versions, may be sold by itself.
55
-
56
- 2) Original or Modified Versions of the Font Software may be bundled,
57
- redistributed and/or sold with any software, provided that each copy
58
- contains the above copyright notice and this license. These can be
59
- included either as stand-alone text files, human-readable headers or
60
- in the appropriate machine-readable metadata fields within text or
61
- binary files as long as those fields can be easily viewed by the user.
62
-
63
- 3) No Modified Version of the Font Software may use the Reserved Font
64
- Name(s) unless explicit written permission is granted by the corresponding
65
- Copyright Holder. This restriction only applies to the primary font name as
66
- presented to the users.
67
-
68
- 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
- Software shall not be used to promote, endorse or advertise any
70
- Modified Version, except to acknowledge the contribution(s) of the
71
- Copyright Holder(s) and the Author(s) or with their explicit written
72
- permission.
73
-
74
- 5) The Font Software, modified or unmodified, in part or in whole,
75
- must be distributed entirely under this license, and must not be
76
- distributed under any other license. The requirement for fonts to
77
- remain under this license does not apply to any document created
78
- using the Font Software.
79
-
80
- TERMINATION
81
- This license becomes null and void if any of the above conditions are
82
- not met.
83
-
84
- DISCLAIMER
85
- THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
- OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
- COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
- INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
- DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
- FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
- OTHER DEALINGS IN THE FONT SOFTWARE.
1
+ Copyright 2020 The Anybody Project Authors (https://github.com/Etcetera-Type-Co/Anybody)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ https://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -1,93 +1,93 @@
1
- Copyright (c) 2011 by Ralph du Carrois, with Reserved Font Name 'Finger Paint'
2
-
3
- This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
- This license is copied below, and is also available with a FAQ at:
5
- http://scripts.sil.org/OFL
6
-
7
-
8
- -----------------------------------------------------------
9
- SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
- -----------------------------------------------------------
11
-
12
- PREAMBLE
13
- The goals of the Open Font License (OFL) are to stimulate worldwide
14
- development of collaborative font projects, to support the font creation
15
- efforts of academic and linguistic communities, and to provide a free and
16
- open framework in which fonts may be shared and improved in partnership
17
- with others.
18
-
19
- The OFL allows the licensed fonts to be used, studied, modified and
20
- redistributed freely as long as they are not sold by themselves. The
21
- fonts, including any derivative works, can be bundled, embedded,
22
- redistributed and/or sold with any software provided that any reserved
23
- names are not used by derivative works. The fonts and derivatives,
24
- however, cannot be released under any other type of license. The
25
- requirement for fonts to remain under this license does not apply
26
- to any document created using the fonts or their derivatives.
27
-
28
- DEFINITIONS
29
- "Font Software" refers to the set of files released by the Copyright
30
- Holder(s) under this license and clearly marked as such. This may
31
- include source files, build scripts and documentation.
32
-
33
- "Reserved Font Name" refers to any names specified as such after the
34
- copyright statement(s).
35
-
36
- "Original Version" refers to the collection of Font Software components as
37
- distributed by the Copyright Holder(s).
38
-
39
- "Modified Version" refers to any derivative made by adding to, deleting,
40
- or substituting -- in part or in whole -- any of the components of the
41
- Original Version, by changing formats or by porting the Font Software to a
42
- new environment.
43
-
44
- "Author" refers to any designer, engineer, programmer, technical
45
- writer or other person who contributed to the Font Software.
46
-
47
- PERMISSION & CONDITIONS
48
- Permission is hereby granted, free of charge, to any person obtaining
49
- a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
- redistribute, and sell modified and unmodified copies of the Font
51
- Software, subject to the following conditions:
52
-
53
- 1) Neither the Font Software nor any of its individual components,
54
- in Original or Modified Versions, may be sold by itself.
55
-
56
- 2) Original or Modified Versions of the Font Software may be bundled,
57
- redistributed and/or sold with any software, provided that each copy
58
- contains the above copyright notice and this license. These can be
59
- included either as stand-alone text files, human-readable headers or
60
- in the appropriate machine-readable metadata fields within text or
61
- binary files as long as those fields can be easily viewed by the user.
62
-
63
- 3) No Modified Version of the Font Software may use the Reserved Font
64
- Name(s) unless explicit written permission is granted by the corresponding
65
- Copyright Holder. This restriction only applies to the primary font name as
66
- presented to the users.
67
-
68
- 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
- Software shall not be used to promote, endorse or advertise any
70
- Modified Version, except to acknowledge the contribution(s) of the
71
- Copyright Holder(s) and the Author(s) or with their explicit written
72
- permission.
73
-
74
- 5) The Font Software, modified or unmodified, in part or in whole,
75
- must be distributed entirely under this license, and must not be
76
- distributed under any other license. The requirement for fonts to
77
- remain under this license does not apply to any document created
78
- using the Font Software.
79
-
80
- TERMINATION
81
- This license becomes null and void if any of the above conditions are
82
- not met.
83
-
84
- DISCLAIMER
85
- THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
- OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
- COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
- INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
- DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
- FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
- OTHER DEALINGS IN THE FONT SOFTWARE.
1
+ Copyright (c) 2011 by Ralph du Carrois, with Reserved Font Name 'Finger Paint'
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -27,7 +27,7 @@ Several items load a bundled skill first: Secrets kept out, Dependencies and Sec
27
27
 
28
28
  - Agent setup is the first item. It checks that a context file (AGENTS.md or CLAUDE.md) exists, matches the code today, and that the project has the skills its recurring work needs.
29
29
  - Its button runs `/init` (tooltip: "Run /init to create or update project instructions"). This is setup that writes project instructions, not an audit.
30
- - Git & GitHub and CI point to `/setup-ci`, and Commit checks points to `/setup-commit`, as the setup commands that fix most gaps.
30
+ - Commit checks points to `/setup-commit` as the setup command that fixes most gaps. Git & GitHub and CI have no setup command: run the check, then pick a fix.
31
31
 
32
32
  ## Running a check
33
33
 
@@ -60,12 +60,10 @@ A Code-mode window is one session on one project folder. You type in the compose
60
60
  Type `/` to open the menu. You only see commands in a Code-mode window.
61
61
 
62
62
  - `/schedule` (alias `/sched`): run a prompt on a repeating schedule (see Schedules below).
63
- - `/init`: create or update CLAUDE.md for this project.
63
+ - `/init`: create or update the project's AGENTS.md / CLAUDE.md.
64
64
  - `/commit`: runs the project's checks and tests and fixes failures, has a helper review the diff, stages the changed files, commits with a one-line message and pushes if the branch has an upstream. If the review finds real issues, GG asks whether to fix them first or commit anyway. A project's own `.gg/commands/commit.md` takes precedence.
65
65
  - `/setup-commit`: writes a project-specific `.gg/commands/commit.md` with that project's checks.
66
- - `/setup-ci`: set up or harden CI for any stack.
67
66
  - `/expand`: researches similar products and reports a ranked table of user-facing features to add. Nothing is changed until you pick an option. Text after the command sets a focus.
68
- - `/compare`: compares the code GG just wrote in this chat with how real projects do it, using the Steroids code index.
69
67
  - `/steroids`: finds well-maintained repos like this project, shows them in a table, asks how many to index, then adds them to the Steroids index. It needs Agent Steroids installed.
70
68
 
71
69
  Custom commands: each Markdown file in the project's `.gg/commands/` folder becomes a `/<name>` command with its own description. Folders added with **Add folder** bring their `.gg/commands` too. A custom command can't take over a built-in name.
@@ -2,6 +2,8 @@ import type { Provider } from "@kenkaiiii/gg-ai";
2
2
  import type { AgentSession } from "../core/agent-session.js";
3
3
  import type { RunClaim } from "../core/run-claim.js";
4
4
  import type { RunLifecycle } from "../core/run-lifecycle.js";
5
+ import { type KenAskAnswer } from "../core/ken-ask-answer.js";
6
+ import type { AskUserPrompt } from "../core/ask-user.js";
5
7
  import { type AutopilotVerdict } from "../core/autopilot-verdict.js";
6
8
  import { type WorkflowCommandSpec } from "../core/autopilot-gate.js";
7
9
  import type { RunOutcome } from "../core/session-manager.js";
@@ -53,6 +55,9 @@ export interface AutopilotRunnerContext {
53
55
  taskRunAll: boolean;
54
56
  }
55
57
  export interface AutopilotRunnerContextApi {
58
+ /** Ask Autopilot Ken to answer a question card. Null when it was no longer
59
+ * pending (or autopilot went off) by the time Ken's turn came. */
60
+ answerAskWithKen: (prompt: AskUserPrompt, isPending: () => boolean) => Promise<KenAskAnswer | null>;
56
61
  runAutopilotReview: (originalRequest: string) => Promise<AutopilotVerdict | null>;
57
62
  runAutopilotPlanReview: (originalRequest: string) => Promise<AutopilotVerdict | null>;
58
63
  runAutopilotCycle: (originalRequest: string) => Promise<void>;
@@ -1,5 +1,6 @@
1
1
  import fs from "node:fs/promises";
2
- import { buildKenAutopilotContext, buildKenAutopilotPlanContext } from "../core/ken-context.js";
2
+ import { buildKenAutopilotAskContext, buildKenAutopilotContext, buildKenAutopilotPlanContext, latestHumanRequest, } from "../core/ken-context.js";
3
+ import { parseKenAskAnswer } from "../core/ken-ask-answer.js";
3
4
  import { parseAutopilotVerdict } from "../core/autopilot-verdict.js";
4
5
  import { isWorkflowCommandText, countAssistantMessages, shouldStartAutopilotCycle, extractTurnToolCalls, isMechanicalOnlyTurn, } from "../core/autopilot-gate.js";
5
6
  import { driveAutopilotCycle, frameAutopilotInjection } from "../core/autopilot-cycle.js";
@@ -13,6 +14,46 @@ const AUTOMATION_PROVENANCE = {
13
14
  visibility: "hidden",
14
15
  };
15
16
  export function createAutopilotRunner(ctx) {
17
+ // Ken's answers to question cards, one at a time: parallel ask_user calls
18
+ // (and the reviews below) share the one kenAuto session, which takes a
19
+ // single prompt at a time.
20
+ let kenAskChain = Promise.resolve();
21
+ function answerAskWithKen(prompt, isPending) {
22
+ const run = kenAskChain.then(() => answerOneAsk(prompt, isPending));
23
+ kenAskChain = run.catch(() => { });
24
+ return run;
25
+ }
26
+ async function answerOneAsk(prompt, isPending) {
27
+ if (!ctx.autopilot || !isPending())
28
+ return null;
29
+ ctx.autopilotReviewing = true;
30
+ try {
31
+ const ken = await ctx.ensureKenAutoSession();
32
+ const messages = ctx.session.getMessages();
33
+ const injectedPrompts = [...ctx.injectedAutopilotPrompts];
34
+ const digest = buildKenAutopilotAskContext({
35
+ cwd: ctx.cwd,
36
+ gitBranch: ctx.gitBranch,
37
+ messages,
38
+ verificationEvidence: ctx.session.getVerificationEvidence(),
39
+ verificationProblem: ctx.session.getVerificationProblem(),
40
+ originalRequest: latestHumanRequest(messages, injectedPrompts),
41
+ injectedPrompts,
42
+ workflowCommands: await ctx.loadWorkflowCommandSpecs(),
43
+ questions: prompt.questions,
44
+ });
45
+ await ken.prompt(digest);
46
+ return parseKenAskAnswer(lastAssistantText(ken.getMessages()), prompt.questions);
47
+ }
48
+ finally {
49
+ ctx.autopilotReviewing = false;
50
+ // Apply any model switch that landed while Ken was answering.
51
+ const pending = ctx.pendingKenAutoModel;
52
+ ctx.pendingKenAutoModel = null;
53
+ if (pending)
54
+ await ctx.syncKenAutoModel(pending.provider, pending.model);
55
+ }
56
+ }
16
57
  // ── Autopilot orchestration ─────────────────────────────────
17
58
  // One review = prompt the kenAuto session with the review digest, read its
18
59
  // final assistant text, parse a verdict. Returns null on failure (surfaced as
@@ -20,6 +61,7 @@ export function createAutopilotRunner(ctx) {
20
61
  // `originalRequest` is the user prompt that started the turn under review —
21
62
  // pinned in the digest so it can't scroll out during multi-round cycles.
22
63
  async function runAutopilotReview(originalRequest) {
64
+ await kenAskChain;
23
65
  ctx.autopilotReviewing = true;
24
66
  ctx.broadcast("autopilot_review_start", {});
25
67
  try {
@@ -58,6 +100,7 @@ export function createAutopilotRunner(ctx) {
58
100
  // (cancel or a manual Accept/Reject that bumped planGeneration) stays
59
101
  // SILENT — no autopilot_error — because the user's decision already won.
60
102
  async function runAutopilotPlanReview(originalRequest) {
103
+ await kenAskChain;
61
104
  const planPath = ctx.pendingPlanPath;
62
105
  if (planPath === null)
63
106
  return null;
@@ -369,6 +412,7 @@ export function createAutopilotRunner(ctx) {
369
412
  }
370
413
  }
371
414
  return {
415
+ answerAskWithKen,
372
416
  runAutopilotReview,
373
417
  runAutopilotPlanReview,
374
418
  runAutopilotCycle,
@@ -1 +1 @@
1
- {"version":3,"file":"autopilot-runner.js","sourceRoot":"","sources":["../../src/app-sidecar/autopilot-runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAKlC,OAAO,EAAE,wBAAwB,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAC;AAChG,OAAO,EAAE,qBAAqB,EAAyB,MAAM,8BAA8B,CAAC;AAC5F,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,oBAAoB,EACpB,oBAAoB,GAErB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAE1F,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,MAAM,qBAAqB,GAAsB;IAC/C,MAAM,EAAE,SAAS;IACjB,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,QAAQ;CACrB,CAAC;AA8DF,MAAM,UAAU,qBAAqB,CAAC,GAA2B;I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,EAAE,CAAC;YACb,GAAG,CAAC,cAAc,CAAC,OAAO,EAAE,iBAAiB,EAAE,GAAG,CAAC,CAAC;QACtD,CAAC;gBAAS,CAAC;YACT,GAAG,CAAC,UAAU,GAAG,KAAK,CAAC;YACvB,GAAG,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;YACvB,GAAG,CAAC,SAAS,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC;YACpC,yEAAyE;YACzE,wBAAwB;YACxB,GAAG,CAAC,gBAAgB,EAAE,CAAC;QACzB,CAAC;IACH,CAAC;IAED,OAAO;QACL,gBAAgB;QAChB,kBAAkB;QAClB,sBAAsB;QACtB,iBAAiB;QACjB,gBAAgB;QAChB,WAAW;QACX,QAAQ;KACT,CAAC;AACJ,CAAC"}
@@ -246,7 +246,7 @@ export function handlePromptRoutes(ctx, req, res, url, method) {
246
246
  }, () => ctx.autopilot);
247
247
  // After the user's run settles, kick off Ken's auto-review loop — but
248
248
  // only when the turn is actually reviewable (shouldStartAutopilotCycle):
249
- // workflow commands (/compare, /expand, …) end with reports or
249
+ // workflow commands (/expand, /init, …) end with reports or
250
250
  // A/B/C choices reserved for the USER; registry commands (/help) and
251
251
  // failed runs add no assistant work to judge; a turn that ended in plan
252
252
  // mode has a pending Accept/Reject modal Ken must not preempt. This is