@kenkaiiii/gg-engine 0.0.0-stage → 7.0.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 (850) hide show
  1. package/LICENSE +661 -0
  2. package/NOTICE +43 -0
  3. package/README.md +53 -2
  4. package/assets/skills/bulletproof/SKILL.md +132 -0
  5. package/assets/skills/bulletproof/references/agent-surface.md +113 -0
  6. package/assets/skills/bulletproof/references/attack-classes.md +226 -0
  7. package/assets/skills/bulletproof/references/audit-protocol.md +232 -0
  8. package/assets/skills/bulletproof/references/platform-playbooks.md +196 -0
  9. package/assets/skills/bulletproof/references/provenance.md +146 -0
  10. package/assets/skills/bulletproof/references/secure-defaults.md +137 -0
  11. package/assets/skills/bulletproof/references/supply-chain.md +84 -0
  12. package/assets/skills/bulletproof/references/threat-landscape.md +66 -0
  13. package/assets/skills/bulletproof/references/verification.md +74 -0
  14. package/assets/skills/compliance-guard/SKILL.md +115 -0
  15. package/assets/skills/compliance-guard/references/artifacts.md +199 -0
  16. package/assets/skills/compliance-guard/references/eu-uk.md +162 -0
  17. package/assets/skills/compliance-guard/references/exposure-triage.md +177 -0
  18. package/assets/skills/compliance-guard/references/full-review.md +155 -0
  19. package/assets/skills/compliance-guard/references/lawsuit-vectors.md +153 -0
  20. package/assets/skills/compliance-guard/references/provenance.md +135 -0
  21. package/assets/skills/compliance-guard/references/sector-gates.md +187 -0
  22. package/assets/skills/compliance-guard/references/security-baseline.md +117 -0
  23. package/assets/skills/compliance-guard/references/trigger-map.md +177 -0
  24. package/assets/skills/compliance-guard/references/us.md +194 -0
  25. package/assets/skills/durable/SKILL.md +114 -0
  26. package/assets/skills/durable/references/agent-db-safety.md +76 -0
  27. package/assets/skills/durable/references/backups-and-runtime.md +93 -0
  28. package/assets/skills/durable/references/migrations-and-schema.md +87 -0
  29. package/assets/skills/gg-guide/SKILL.md +43 -0
  30. package/assets/skills/gg-guide/references/chat-motion-goals.md +217 -0
  31. package/assets/skills/gg-guide/references/checklist-and-safety.md +177 -0
  32. package/assets/skills/gg-guide/references/code-mode.md +269 -0
  33. package/assets/skills/gg-guide/references/getting-started.md +290 -0
  34. package/assets/skills/gg-guide/references/ken-and-autopilot.md +172 -0
  35. package/assets/skills/gg-guide/references/mcp-and-skills.md +204 -0
  36. package/assets/skills/gg-guide/references/models-and-sign-in.md +200 -0
  37. package/assets/skills/gg-guide/references/sessions-and-history.md +213 -0
  38. package/assets/skills/gg-guide/references/settings.md +193 -0
  39. package/assets/skills/gg-guide/references/troubleshooting-and-data.md +186 -0
  40. package/assets/skills/lean/SKILL.md +117 -0
  41. package/assets/skills/lean/references/memory-and-processes.md +99 -0
  42. package/assets/skills/lean/references/playbooks.md +134 -0
  43. package/dist/app-error.d.ts +22 -0
  44. package/dist/app-error.js +41 -0
  45. package/dist/app-error.js.map +1 -0
  46. package/dist/config.d.ts +90 -0
  47. package/dist/config.js +240 -0
  48. package/dist/config.js.map +1 -0
  49. package/dist/core/acceptance-checks.d.ts +48 -0
  50. package/dist/core/acceptance-checks.js +151 -0
  51. package/dist/core/acceptance-checks.js.map +1 -0
  52. package/dist/core/action-threats.d.ts +68 -0
  53. package/dist/core/action-threats.js +894 -0
  54. package/dist/core/action-threats.js.map +1 -0
  55. package/dist/core/agent-notifications.d.ts +79 -0
  56. package/dist/core/agent-notifications.js +125 -0
  57. package/dist/core/agent-notifications.js.map +1 -0
  58. package/dist/core/agent-session/helpers.d.ts +26 -0
  59. package/dist/core/agent-session/helpers.js +47 -0
  60. package/dist/core/agent-session/helpers.js.map +1 -0
  61. package/dist/core/agent-session/mcp-tools.d.ts +87 -0
  62. package/dist/core/agent-session/mcp-tools.js +227 -0
  63. package/dist/core/agent-session/mcp-tools.js.map +1 -0
  64. package/dist/core/agent-session/run-loop-monitor.d.ts +63 -0
  65. package/dist/core/agent-session/run-loop-monitor.js +164 -0
  66. package/dist/core/agent-session/run-loop-monitor.js.map +1 -0
  67. package/dist/core/agent-session/transcript-markers.d.ts +57 -0
  68. package/dist/core/agent-session/transcript-markers.js +166 -0
  69. package/dist/core/agent-session/transcript-markers.js.map +1 -0
  70. package/dist/core/agent-session/verification-tracker.d.ts +71 -0
  71. package/dist/core/agent-session/verification-tracker.js +295 -0
  72. package/dist/core/agent-session/verification-tracker.js.map +1 -0
  73. package/dist/core/agent-session.d.ts +1401 -0
  74. package/dist/core/agent-session.js +5160 -0
  75. package/dist/core/agent-session.js.map +1 -0
  76. package/dist/core/agents.d.ts +63 -0
  77. package/dist/core/agents.js +160 -0
  78. package/dist/core/agents.js.map +1 -0
  79. package/dist/core/ask-user.d.ts +163 -0
  80. package/dist/core/ask-user.js +178 -0
  81. package/dist/core/ask-user.js.map +1 -0
  82. package/dist/core/auto-update.d.ts +32 -0
  83. package/dist/core/auto-update.js +218 -0
  84. package/dist/core/auto-update.js.map +1 -0
  85. package/dist/core/autopilot-cycle.d.ts +127 -0
  86. package/dist/core/autopilot-cycle.js +182 -0
  87. package/dist/core/autopilot-cycle.js.map +1 -0
  88. package/dist/core/autopilot-gate.d.ts +106 -0
  89. package/dist/core/autopilot-gate.js +192 -0
  90. package/dist/core/autopilot-gate.js.map +1 -0
  91. package/dist/core/autopilot-verdict.d.ts +55 -0
  92. package/dist/core/autopilot-verdict.js +226 -0
  93. package/dist/core/autopilot-verdict.js.map +1 -0
  94. package/dist/core/blocked-packages-file.d.ts +33 -0
  95. package/dist/core/blocked-packages-file.js +274 -0
  96. package/dist/core/blocked-packages-file.js.map +1 -0
  97. package/dist/core/bundled-agents.d.ts +2 -0
  98. package/dist/core/bundled-agents.js +253 -0
  99. package/dist/core/bundled-agents.js.map +1 -0
  100. package/dist/core/cache-diagnostics.d.ts +72 -0
  101. package/dist/core/cache-diagnostics.js +200 -0
  102. package/dist/core/cache-diagnostics.js.map +1 -0
  103. package/dist/core/cache-expiry.d.ts +89 -0
  104. package/dist/core/cache-expiry.js +117 -0
  105. package/dist/core/cache-expiry.js.map +1 -0
  106. package/dist/core/checklist-detection.d.ts +8 -0
  107. package/dist/core/checklist-detection.js +238 -0
  108. package/dist/core/checklist-detection.js.map +1 -0
  109. package/dist/core/checklist-git.d.ts +19 -0
  110. package/dist/core/checklist-git.js +54 -0
  111. package/dist/core/checklist-git.js.map +1 -0
  112. package/dist/core/checklist-items.d.ts +182 -0
  113. package/dist/core/checklist-items.js +228 -0
  114. package/dist/core/checklist-items.js.map +1 -0
  115. package/dist/core/checklist-prompt.d.ts +14 -0
  116. package/dist/core/checklist-prompt.js +64 -0
  117. package/dist/core/checklist-prompt.js.map +1 -0
  118. package/dist/core/checklist-snapshot.d.ts +7 -0
  119. package/dist/core/checklist-snapshot.js +46 -0
  120. package/dist/core/checklist-snapshot.js.map +1 -0
  121. package/dist/core/checklist-store.d.ts +45 -0
  122. package/dist/core/checklist-store.js +278 -0
  123. package/dist/core/checklist-store.js.map +1 -0
  124. package/dist/core/checkout-record.d.ts +22 -0
  125. package/dist/core/checkout-record.js +68 -0
  126. package/dist/core/checkout-record.js.map +1 -0
  127. package/dist/core/checkpoint-store.d.ts +109 -0
  128. package/dist/core/checkpoint-store.js +260 -0
  129. package/dist/core/checkpoint-store.js.map +1 -0
  130. package/dist/core/claude-code/complete.d.ts +35 -0
  131. package/dist/core/claude-code/complete.js +125 -0
  132. package/dist/core/claude-code/complete.js.map +1 -0
  133. package/dist/core/claude-code/events.d.ts +67 -0
  134. package/dist/core/claude-code/events.js +460 -0
  135. package/dist/core/claude-code/events.js.map +1 -0
  136. package/dist/core/claude-code/live-session.d.ts +94 -0
  137. package/dist/core/claude-code/live-session.js +525 -0
  138. package/dist/core/claude-code/live-session.js.map +1 -0
  139. package/dist/core/claude-code/loop.d.ts +9 -0
  140. package/dist/core/claude-code/loop.js +15 -0
  141. package/dist/core/claude-code/loop.js.map +1 -0
  142. package/dist/core/claude-code/session-sync.d.ts +28 -0
  143. package/dist/core/claude-code/session-sync.js +53 -0
  144. package/dist/core/claude-code/session-sync.js.map +1 -0
  145. package/dist/core/claude-code/tool-bridge.d.ts +49 -0
  146. package/dist/core/claude-code/tool-bridge.js +352 -0
  147. package/dist/core/claude-code/tool-bridge.js.map +1 -0
  148. package/dist/core/claude-code/transcripts.d.ts +39 -0
  149. package/dist/core/claude-code/transcripts.js +195 -0
  150. package/dist/core/claude-code/transcripts.js.map +1 -0
  151. package/dist/core/code-retrieval-chunkers.d.ts +26 -0
  152. package/dist/core/code-retrieval-chunkers.js +264 -0
  153. package/dist/core/code-retrieval-chunkers.js.map +1 -0
  154. package/dist/core/code-retrieval.d.ts +18 -0
  155. package/dist/core/code-retrieval.js +124 -0
  156. package/dist/core/code-retrieval.js.map +1 -0
  157. package/dist/core/codex-request-shape.d.ts +7 -0
  158. package/dist/core/codex-request-shape.js +19 -0
  159. package/dist/core/codex-request-shape.js.map +1 -0
  160. package/dist/core/compaction/active-context.d.ts +16 -0
  161. package/dist/core/compaction/active-context.js +20 -0
  162. package/dist/core/compaction/active-context.js.map +1 -0
  163. package/dist/core/compaction/compactor.d.ts +281 -0
  164. package/dist/core/compaction/compactor.js +1451 -0
  165. package/dist/core/compaction/compactor.js.map +1 -0
  166. package/dist/core/compaction/plan-step-policy.d.ts +46 -0
  167. package/dist/core/compaction/plan-step-policy.js +57 -0
  168. package/dist/core/compaction/plan-step-policy.js.map +1 -0
  169. package/dist/core/compaction/policy.d.ts +36 -0
  170. package/dist/core/compaction/policy.js +144 -0
  171. package/dist/core/compaction/policy.js.map +1 -0
  172. package/dist/core/compaction/query-aware-selector.d.ts +32 -0
  173. package/dist/core/compaction/query-aware-selector.js +202 -0
  174. package/dist/core/compaction/query-aware-selector.js.map +1 -0
  175. package/dist/core/compaction/token-estimator.d.ts +36 -0
  176. package/dist/core/compaction/token-estimator.js +180 -0
  177. package/dist/core/compaction/token-estimator.js.map +1 -0
  178. package/dist/core/compaction/tool-result-pruner.d.ts +90 -0
  179. package/dist/core/compaction/tool-result-pruner.js +238 -0
  180. package/dist/core/compaction/tool-result-pruner.js.map +1 -0
  181. package/dist/core/completion-review.d.ts +24 -0
  182. package/dist/core/completion-review.js +2 -0
  183. package/dist/core/completion-review.js.map +1 -0
  184. package/dist/core/context-files.d.ts +8 -0
  185. package/dist/core/context-files.js +46 -0
  186. package/dist/core/context-files.js.map +1 -0
  187. package/dist/core/context-limits.d.ts +40 -0
  188. package/dist/core/context-limits.js +43 -0
  189. package/dist/core/context-limits.js.map +1 -0
  190. package/dist/core/custom-commands.d.ts +18 -0
  191. package/dist/core/custom-commands.js +57 -0
  192. package/dist/core/custom-commands.js.map +1 -0
  193. package/dist/core/destructive-git-guard.d.ts +113 -0
  194. package/dist/core/destructive-git-guard.js +874 -0
  195. package/dist/core/destructive-git-guard.js.map +1 -0
  196. package/dist/core/display-items.d.ts +8 -0
  197. package/dist/core/display-items.js +2 -0
  198. package/dist/core/display-items.js.map +1 -0
  199. package/dist/core/encode-cwd.d.ts +41 -0
  200. package/dist/core/encode-cwd.js +53 -0
  201. package/dist/core/encode-cwd.js.map +1 -0
  202. package/dist/core/env-delta.d.ts +34 -0
  203. package/dist/core/env-delta.js +84 -0
  204. package/dist/core/env-delta.js.map +1 -0
  205. package/dist/core/event-bus.d.ts +178 -0
  206. package/dist/core/event-bus.js +171 -0
  207. package/dist/core/event-bus.js.map +1 -0
  208. package/dist/core/extensions/loader.d.ts +7 -0
  209. package/dist/core/extensions/loader.js +68 -0
  210. package/dist/core/extensions/loader.js.map +1 -0
  211. package/dist/core/extensions/plugin-bundles.d.ts +13 -0
  212. package/dist/core/extensions/plugin-bundles.js +45 -0
  213. package/dist/core/extensions/plugin-bundles.js.map +1 -0
  214. package/dist/core/extensions/types.d.ts +18 -0
  215. package/dist/core/extensions/types.js +2 -0
  216. package/dist/core/extensions/types.js.map +1 -0
  217. package/dist/core/foreign-session-import.d.ts +119 -0
  218. package/dist/core/foreign-session-import.js +598 -0
  219. package/dist/core/foreign-session-import.js.map +1 -0
  220. package/dist/core/foreign-transcript-blocks.d.ts +50 -0
  221. package/dist/core/foreign-transcript-blocks.js +151 -0
  222. package/dist/core/foreign-transcript-blocks.js.map +1 -0
  223. package/dist/core/frontmatter.d.ts +22 -0
  224. package/dist/core/frontmatter.js +90 -0
  225. package/dist/core/frontmatter.js.map +1 -0
  226. package/dist/core/goal-run-marker.d.ts +32 -0
  227. package/dist/core/goal-run-marker.js +178 -0
  228. package/dist/core/goal-run-marker.js.map +1 -0
  229. package/dist/core/goal-summary.d.ts +15 -0
  230. package/dist/core/goal-summary.js +110 -0
  231. package/dist/core/goal-summary.js.map +1 -0
  232. package/dist/core/goals-store.d.ts +208 -0
  233. package/dist/core/goals-store.js +577 -0
  234. package/dist/core/goals-store.js.map +1 -0
  235. package/dist/core/hashline.d.ts +51 -0
  236. package/dist/core/hashline.js +76 -0
  237. package/dist/core/hashline.js.map +1 -0
  238. package/dist/core/idle-wake.d.ts +62 -0
  239. package/dist/core/idle-wake.js +103 -0
  240. package/dist/core/idle-wake.js.map +1 -0
  241. package/dist/core/index.d.ts +15 -0
  242. package/dist/core/index.js +15 -0
  243. package/dist/core/index.js.map +1 -0
  244. package/dist/core/injection-detect.d.ts +39 -0
  245. package/dist/core/injection-detect.js +241 -0
  246. package/dist/core/injection-detect.js.map +1 -0
  247. package/dist/core/installed-threats.d.ts +23 -0
  248. package/dist/core/installed-threats.js +71 -0
  249. package/dist/core/installed-threats.js.map +1 -0
  250. package/dist/core/internal-diagnostics.d.ts +159 -0
  251. package/dist/core/internal-diagnostics.js +495 -0
  252. package/dist/core/internal-diagnostics.js.map +1 -0
  253. package/dist/core/keep-awake.d.ts +88 -0
  254. package/dist/core/keep-awake.js +251 -0
  255. package/dist/core/keep-awake.js.map +1 -0
  256. package/dist/core/ken-ask-answer.d.ts +24 -0
  257. package/dist/core/ken-ask-answer.js +96 -0
  258. package/dist/core/ken-ask-answer.js.map +1 -0
  259. package/dist/core/ken-context.d.ts +119 -0
  260. package/dist/core/ken-context.js +447 -0
  261. package/dist/core/ken-context.js.map +1 -0
  262. package/dist/core/ken-model.d.ts +45 -0
  263. package/dist/core/ken-model.js +26 -0
  264. package/dist/core/ken-model.js.map +1 -0
  265. package/dist/core/ken-prompt.d.ts +21 -0
  266. package/dist/core/ken-prompt.js +370 -0
  267. package/dist/core/ken-prompt.js.map +1 -0
  268. package/dist/core/language-detector.d.ts +41 -0
  269. package/dist/core/language-detector.js +293 -0
  270. package/dist/core/language-detector.js.map +1 -0
  271. package/dist/core/live-preview.d.ts +26 -0
  272. package/dist/core/live-preview.js +80 -0
  273. package/dist/core/live-preview.js.map +1 -0
  274. package/dist/core/local-endpoint-store.d.ts +53 -0
  275. package/dist/core/local-endpoint-store.js +221 -0
  276. package/dist/core/local-endpoint-store.js.map +1 -0
  277. package/dist/core/logger.d.ts +21 -0
  278. package/dist/core/logger.js +94 -0
  279. package/dist/core/logger.js.map +1 -0
  280. package/dist/core/loop-breaker.d.ts +89 -0
  281. package/dist/core/loop-breaker.js +204 -0
  282. package/dist/core/loop-breaker.js.map +1 -0
  283. package/dist/core/lsp/client.d.ts +206 -0
  284. package/dist/core/lsp/client.js +685 -0
  285. package/dist/core/lsp/client.js.map +1 -0
  286. package/dist/core/lsp/edit-telemetry.d.ts +26 -0
  287. package/dist/core/lsp/edit-telemetry.js +52 -0
  288. package/dist/core/lsp/edit-telemetry.js.map +1 -0
  289. package/dist/core/lsp/format.d.ts +11 -0
  290. package/dist/core/lsp/format.js +30 -0
  291. package/dist/core/lsp/format.js.map +1 -0
  292. package/dist/core/lsp/jsonrpc.d.ts +68 -0
  293. package/dist/core/lsp/jsonrpc.js +153 -0
  294. package/dist/core/lsp/jsonrpc.js.map +1 -0
  295. package/dist/core/lsp/manager.d.ts +188 -0
  296. package/dist/core/lsp/manager.js +576 -0
  297. package/dist/core/lsp/manager.js.map +1 -0
  298. package/dist/core/lsp/pool.d.ts +114 -0
  299. package/dist/core/lsp/pool.js +259 -0
  300. package/dist/core/lsp/pool.js.map +1 -0
  301. package/dist/core/lsp/project-root.d.ts +9 -0
  302. package/dist/core/lsp/project-root.js +75 -0
  303. package/dist/core/lsp/project-root.js.map +1 -0
  304. package/dist/core/lsp/reference-project.d.ts +6 -0
  305. package/dist/core/lsp/reference-project.js +110 -0
  306. package/dist/core/lsp/reference-project.js.map +1 -0
  307. package/dist/core/lsp/servers.d.ts +44 -0
  308. package/dist/core/lsp/servers.js +289 -0
  309. package/dist/core/lsp/servers.js.map +1 -0
  310. package/dist/core/lsp/test-support.d.ts +17 -0
  311. package/dist/core/lsp/test-support.js +27 -0
  312. package/dist/core/lsp/test-support.js.map +1 -0
  313. package/dist/core/mcp/catalog-cache.d.ts +64 -0
  314. package/dist/core/mcp/catalog-cache.js +166 -0
  315. package/dist/core/mcp/catalog-cache.js.map +1 -0
  316. package/dist/core/mcp/client.d.ts +317 -0
  317. package/dist/core/mcp/client.js +1168 -0
  318. package/dist/core/mcp/client.js.map +1 -0
  319. package/dist/core/mcp/content.d.ts +23 -0
  320. package/dist/core/mcp/content.js +194 -0
  321. package/dist/core/mcp/content.js.map +1 -0
  322. package/dist/core/mcp/defaults.d.ts +26 -0
  323. package/dist/core/mcp/defaults.js +81 -0
  324. package/dist/core/mcp/defaults.js.map +1 -0
  325. package/dist/core/mcp/deferred-catalog.d.ts +53 -0
  326. package/dist/core/mcp/deferred-catalog.js +117 -0
  327. package/dist/core/mcp/deferred-catalog.js.map +1 -0
  328. package/dist/core/mcp/elicitation-bridge.d.ts +40 -0
  329. package/dist/core/mcp/elicitation-bridge.js +36 -0
  330. package/dist/core/mcp/elicitation-bridge.js.map +1 -0
  331. package/dist/core/mcp/index.d.ts +16 -0
  332. package/dist/core/mcp/index.js +10 -0
  333. package/dist/core/mcp/index.js.map +1 -0
  334. package/dist/core/mcp/loopback.d.ts +26 -0
  335. package/dist/core/mcp/loopback.js +66 -0
  336. package/dist/core/mcp/loopback.js.map +1 -0
  337. package/dist/core/mcp/oauth-provider.d.ts +55 -0
  338. package/dist/core/mcp/oauth-provider.js +106 -0
  339. package/dist/core/mcp/oauth-provider.js.map +1 -0
  340. package/dist/core/mcp/oauth-store.d.ts +44 -0
  341. package/dist/core/mcp/oauth-store.js +76 -0
  342. package/dist/core/mcp/oauth-store.js.map +1 -0
  343. package/dist/core/mcp/parse-add-command.d.ts +50 -0
  344. package/dist/core/mcp/parse-add-command.js +391 -0
  345. package/dist/core/mcp/parse-add-command.js.map +1 -0
  346. package/dist/core/mcp/resolve-stdio.d.ts +77 -0
  347. package/dist/core/mcp/resolve-stdio.js +359 -0
  348. package/dist/core/mcp/resolve-stdio.js.map +1 -0
  349. package/dist/core/mcp/shared-pool.d.ts +157 -0
  350. package/dist/core/mcp/shared-pool.js +236 -0
  351. package/dist/core/mcp/shared-pool.js.map +1 -0
  352. package/dist/core/mcp/store.d.ts +100 -0
  353. package/dist/core/mcp/store.js +202 -0
  354. package/dist/core/mcp/store.js.map +1 -0
  355. package/dist/core/mcp/tool-guard.d.ts +58 -0
  356. package/dist/core/mcp/tool-guard.js +215 -0
  357. package/dist/core/mcp/tool-guard.js.map +1 -0
  358. package/dist/core/mcp/types.d.ts +57 -0
  359. package/dist/core/mcp/types.js +2 -0
  360. package/dist/core/mcp/types.js.map +1 -0
  361. package/dist/core/message-images.d.ts +11 -0
  362. package/dist/core/message-images.js +52 -0
  363. package/dist/core/message-images.js.map +1 -0
  364. package/dist/core/model-unavailable.d.ts +14 -0
  365. package/dist/core/model-unavailable.js +23 -0
  366. package/dist/core/model-unavailable.js.map +1 -0
  367. package/dist/core/network-guard.d.ts +28 -0
  368. package/dist/core/network-guard.js +251 -0
  369. package/dist/core/network-guard.js.map +1 -0
  370. package/dist/core/node-debugger.d.ts +148 -0
  371. package/dist/core/node-debugger.js +642 -0
  372. package/dist/core/node-debugger.js.map +1 -0
  373. package/dist/core/opencode-catalog-store.d.ts +20 -0
  374. package/dist/core/opencode-catalog-store.js +82 -0
  375. package/dist/core/opencode-catalog-store.js.map +1 -0
  376. package/dist/core/openrouter-catalog-store.d.ts +24 -0
  377. package/dist/core/openrouter-catalog-store.js +140 -0
  378. package/dist/core/openrouter-catalog-store.js.map +1 -0
  379. package/dist/core/package-cooldown.d.ts +69 -0
  380. package/dist/core/package-cooldown.js +297 -0
  381. package/dist/core/package-cooldown.js.map +1 -0
  382. package/dist/core/package-threats.d.ts +92 -0
  383. package/dist/core/package-threats.js +1339 -0
  384. package/dist/core/package-threats.js.map +1 -0
  385. package/dist/core/parked-requests.d.ts +43 -0
  386. package/dist/core/parked-requests.js +34 -0
  387. package/dist/core/parked-requests.js.map +1 -0
  388. package/dist/core/persistent-shell.d.ts +81 -0
  389. package/dist/core/persistent-shell.js +452 -0
  390. package/dist/core/persistent-shell.js.map +1 -0
  391. package/dist/core/plan-delta.d.ts +23 -0
  392. package/dist/core/plan-delta.js +36 -0
  393. package/dist/core/plan-delta.js.map +1 -0
  394. package/dist/core/plan-handoff.d.ts +38 -0
  395. package/dist/core/plan-handoff.js +21 -0
  396. package/dist/core/plan-handoff.js.map +1 -0
  397. package/dist/core/plan-submission-gate.d.ts +28 -0
  398. package/dist/core/plan-submission-gate.js +27 -0
  399. package/dist/core/plan-submission-gate.js.map +1 -0
  400. package/dist/core/platform-clis.d.ts +15 -0
  401. package/dist/core/platform-clis.js +299 -0
  402. package/dist/core/platform-clis.js.map +1 -0
  403. package/dist/core/process-gate.d.ts +61 -0
  404. package/dist/core/process-gate.js +103 -0
  405. package/dist/core/process-gate.js.map +1 -0
  406. package/dist/core/process-manager.d.ts +242 -0
  407. package/dist/core/process-manager.js +902 -0
  408. package/dist/core/process-manager.js.map +1 -0
  409. package/dist/core/progress/engine.d.ts +22 -0
  410. package/dist/core/progress/engine.js +131 -0
  411. package/dist/core/progress/engine.js.map +1 -0
  412. package/dist/core/progress/git-xp.d.ts +15 -0
  413. package/dist/core/progress/git-xp.js +100 -0
  414. package/dist/core/progress/git-xp.js.map +1 -0
  415. package/dist/core/progress/ranks.d.ts +31 -0
  416. package/dist/core/progress/ranks.js +310 -0
  417. package/dist/core/progress/ranks.js.map +1 -0
  418. package/dist/core/progress/rebuild.d.ts +8 -0
  419. package/dist/core/progress/rebuild.js +125 -0
  420. package/dist/core/progress/rebuild.js.map +1 -0
  421. package/dist/core/progress/store.d.ts +34 -0
  422. package/dist/core/progress/store.js +200 -0
  423. package/dist/core/progress/store.js.map +1 -0
  424. package/dist/core/progress/types.d.ts +56 -0
  425. package/dist/core/progress/types.js +2 -0
  426. package/dist/core/progress/types.js.map +1 -0
  427. package/dist/core/project-discovery.d.ts +64 -0
  428. package/dist/core/project-discovery.js +908 -0
  429. package/dist/core/project-discovery.js.map +1 -0
  430. package/dist/core/project-files.d.ts +15 -0
  431. package/dist/core/project-files.js +37 -0
  432. package/dist/core/project-files.js.map +1 -0
  433. package/dist/core/project-health-scan.d.ts +109 -0
  434. package/dist/core/project-health-scan.js +673 -0
  435. package/dist/core/project-health-scan.js.map +1 -0
  436. package/dist/core/project-health-score.d.ts +41 -0
  437. package/dist/core/project-health-score.js +257 -0
  438. package/dist/core/project-health-score.js.map +1 -0
  439. package/dist/core/prompt-command-expansion.d.ts +13 -0
  440. package/dist/core/prompt-command-expansion.js +48 -0
  441. package/dist/core/prompt-command-expansion.js.map +1 -0
  442. package/dist/core/prompt-commands.d.ts +13 -0
  443. package/dist/core/prompt-commands.js +370 -0
  444. package/dist/core/prompt-commands.js.map +1 -0
  445. package/dist/core/radio-players.d.ts +28 -0
  446. package/dist/core/radio-players.js +132 -0
  447. package/dist/core/radio-players.js.map +1 -0
  448. package/dist/core/radio.d.ts +42 -0
  449. package/dist/core/radio.js +499 -0
  450. package/dist/core/radio.js.map +1 -0
  451. package/dist/core/regrounding.d.ts +37 -0
  452. package/dist/core/regrounding.js +89 -0
  453. package/dist/core/regrounding.js.map +1 -0
  454. package/dist/core/resolve-start.d.ts +28 -0
  455. package/dist/core/resolve-start.js +35 -0
  456. package/dist/core/resolve-start.js.map +1 -0
  457. package/dist/core/run-claim.d.ts +36 -0
  458. package/dist/core/run-claim.js +46 -0
  459. package/dist/core/run-claim.js.map +1 -0
  460. package/dist/core/run-lifecycle.d.ts +58 -0
  461. package/dist/core/run-lifecycle.js +104 -0
  462. package/dist/core/run-lifecycle.js.map +1 -0
  463. package/dist/core/run-status.d.ts +17 -0
  464. package/dist/core/run-status.js +28 -0
  465. package/dist/core/run-status.js.map +1 -0
  466. package/dist/core/runtime-mode.d.ts +21 -0
  467. package/dist/core/runtime-mode.js +43 -0
  468. package/dist/core/runtime-mode.js.map +1 -0
  469. package/dist/core/sandbox-domains.d.ts +13 -0
  470. package/dist/core/sandbox-domains.js +76 -0
  471. package/dist/core/sandbox-domains.js.map +1 -0
  472. package/dist/core/sandbox-feedback.d.ts +21 -0
  473. package/dist/core/sandbox-feedback.js +69 -0
  474. package/dist/core/sandbox-feedback.js.map +1 -0
  475. package/dist/core/sandbox.d.ts +106 -0
  476. package/dist/core/sandbox.js +383 -0
  477. package/dist/core/sandbox.js.map +1 -0
  478. package/dist/core/semantic-loop-check.d.ts +58 -0
  479. package/dist/core/semantic-loop-check.js +103 -0
  480. package/dist/core/semantic-loop-check.js.map +1 -0
  481. package/dist/core/session-compaction.d.ts +23 -0
  482. package/dist/core/session-compaction.js +54 -0
  483. package/dist/core/session-compaction.js.map +1 -0
  484. package/dist/core/session-export.d.ts +97 -0
  485. package/dist/core/session-export.js +368 -0
  486. package/dist/core/session-export.js.map +1 -0
  487. package/dist/core/session-history.d.ts +160 -0
  488. package/dist/core/session-history.js +467 -0
  489. package/dist/core/session-history.js.map +1 -0
  490. package/dist/core/session-manager.d.ts +510 -0
  491. package/dist/core/session-manager.js +1368 -0
  492. package/dist/core/session-manager.js.map +1 -0
  493. package/dist/core/session-preview.d.ts +12 -0
  494. package/dist/core/session-preview.js +58 -0
  495. package/dist/core/session-preview.js.map +1 -0
  496. package/dist/core/session-storage.d.ts +78 -0
  497. package/dist/core/session-storage.js +659 -0
  498. package/dist/core/session-storage.js.map +1 -0
  499. package/dist/core/session-summary-index.d.ts +51 -0
  500. package/dist/core/session-summary-index.js +192 -0
  501. package/dist/core/session-summary-index.js.map +1 -0
  502. package/dist/core/settings-manager.d.ts +113 -0
  503. package/dist/core/settings-manager.js +281 -0
  504. package/dist/core/settings-manager.js.map +1 -0
  505. package/dist/core/shared-checkout-guard.d.ts +78 -0
  506. package/dist/core/shared-checkout-guard.js +219 -0
  507. package/dist/core/shared-checkout-guard.js.map +1 -0
  508. package/dist/core/shell-path.d.ts +13 -0
  509. package/dist/core/shell-path.js +175 -0
  510. package/dist/core/shell-path.js.map +1 -0
  511. package/dist/core/shell-threats-popular-packages.d.ts +11 -0
  512. package/dist/core/shell-threats-popular-packages.js +675 -0
  513. package/dist/core/shell-threats-popular-packages.js.map +1 -0
  514. package/dist/core/shell-threats.d.ts +21 -0
  515. package/dist/core/shell-threats.js +235 -0
  516. package/dist/core/shell-threats.js.map +1 -0
  517. package/dist/core/shell.d.ts +54 -0
  518. package/dist/core/shell.js +99 -0
  519. package/dist/core/shell.js.map +1 -0
  520. package/dist/core/shutdown.d.ts +70 -0
  521. package/dist/core/shutdown.js +144 -0
  522. package/dist/core/shutdown.js.map +1 -0
  523. package/dist/core/skill-scan.d.ts +112 -0
  524. package/dist/core/skill-scan.js +781 -0
  525. package/dist/core/skill-scan.js.map +1 -0
  526. package/dist/core/skills.d.ts +80 -0
  527. package/dist/core/skills.js +270 -0
  528. package/dist/core/skills.js.map +1 -0
  529. package/dist/core/slash-commands.d.ts +58 -0
  530. package/dist/core/slash-commands.js +242 -0
  531. package/dist/core/slash-commands.js.map +1 -0
  532. package/dist/core/steering.d.ts +47 -0
  533. package/dist/core/steering.js +65 -0
  534. package/dist/core/steering.js.map +1 -0
  535. package/dist/core/steroids.d.ts +66 -0
  536. package/dist/core/steroids.js +243 -0
  537. package/dist/core/steroids.js.map +1 -0
  538. package/dist/core/stream-diag-level.d.ts +3 -0
  539. package/dist/core/stream-diag-level.js +24 -0
  540. package/dist/core/stream-diag-level.js.map +1 -0
  541. package/dist/core/stream-rules.d.ts +30 -0
  542. package/dist/core/stream-rules.js +151 -0
  543. package/dist/core/stream-rules.js.map +1 -0
  544. package/dist/core/subagent-manager.d.ts +239 -0
  545. package/dist/core/subagent-manager.js +1059 -0
  546. package/dist/core/subagent-manager.js.map +1 -0
  547. package/dist/core/subagent-policy.d.ts +9 -0
  548. package/dist/core/subagent-policy.js +41 -0
  549. package/dist/core/subagent-policy.js.map +1 -0
  550. package/dist/core/subagent-receipt.d.ts +54 -0
  551. package/dist/core/subagent-receipt.js +274 -0
  552. package/dist/core/subagent-receipt.js.map +1 -0
  553. package/dist/core/subagent-store.d.ts +41 -0
  554. package/dist/core/subagent-store.js +284 -0
  555. package/dist/core/subagent-store.js.map +1 -0
  556. package/dist/core/subagent-turn-record.d.ts +18 -0
  557. package/dist/core/subagent-turn-record.js +82 -0
  558. package/dist/core/subagent-turn-record.js.map +1 -0
  559. package/dist/core/tasks-store.d.ts +31 -0
  560. package/dist/core/tasks-store.js +97 -0
  561. package/dist/core/tasks-store.js.map +1 -0
  562. package/dist/core/telegram-config.d.ts +20 -0
  563. package/dist/core/telegram-config.js +52 -0
  564. package/dist/core/telegram-config.js.map +1 -0
  565. package/dist/core/telegram.d.ts +114 -0
  566. package/dist/core/telegram.js +275 -0
  567. package/dist/core/telegram.js.map +1 -0
  568. package/dist/core/temp-paths.d.ts +5 -0
  569. package/dist/core/temp-paths.js +50 -0
  570. package/dist/core/temp-paths.js.map +1 -0
  571. package/dist/core/test-impact.d.ts +73 -0
  572. package/dist/core/test-impact.js +467 -0
  573. package/dist/core/test-impact.js.map +1 -0
  574. package/dist/core/threat-feed.d.ts +65 -0
  575. package/dist/core/threat-feed.js +334 -0
  576. package/dist/core/threat-feed.js.map +1 -0
  577. package/dist/core/trophies/catalog-more.d.ts +2 -0
  578. package/dist/core/trophies/catalog-more.js +837 -0
  579. package/dist/core/trophies/catalog-more.js.map +1 -0
  580. package/dist/core/trophies/catalog.d.ts +4 -0
  581. package/dist/core/trophies/catalog.js +649 -0
  582. package/dist/core/trophies/catalog.js.map +1 -0
  583. package/dist/core/trophies/engine.d.ts +70 -0
  584. package/dist/core/trophies/engine.js +347 -0
  585. package/dist/core/trophies/engine.js.map +1 -0
  586. package/dist/core/trophies/store.d.ts +17 -0
  587. package/dist/core/trophies/store.js +113 -0
  588. package/dist/core/trophies/store.js.map +1 -0
  589. package/dist/core/trophies/types.d.ts +87 -0
  590. package/dist/core/trophies/types.js +74 -0
  591. package/dist/core/trophies/types.js.map +1 -0
  592. package/dist/core/ui-adoption.d.ts +32 -0
  593. package/dist/core/ui-adoption.js +302 -0
  594. package/dist/core/ui-adoption.js.map +1 -0
  595. package/dist/core/ui-compatibility.d.ts +10 -0
  596. package/dist/core/ui-compatibility.js +51 -0
  597. package/dist/core/ui-compatibility.js.map +1 -0
  598. package/dist/core/ui-registry.d.ts +101 -0
  599. package/dist/core/ui-registry.js +292 -0
  600. package/dist/core/ui-registry.js.map +1 -0
  601. package/dist/core/user-shell-context.d.ts +8 -0
  602. package/dist/core/user-shell-context.js +12 -0
  603. package/dist/core/user-shell-context.js.map +1 -0
  604. package/dist/core/verification-evidence.d.ts +49 -0
  605. package/dist/core/verification-evidence.js +816 -0
  606. package/dist/core/verification-evidence.js.map +1 -0
  607. package/dist/core/verification-gate.d.ts +77 -0
  608. package/dist/core/verification-gate.js +504 -0
  609. package/dist/core/verification-gate.js.map +1 -0
  610. package/dist/core/verification-snapshot.d.ts +7 -0
  611. package/dist/core/verification-snapshot.js +109 -0
  612. package/dist/core/verification-snapshot.js.map +1 -0
  613. package/dist/core/verify-commands.d.ts +34 -0
  614. package/dist/core/verify-commands.js +203 -0
  615. package/dist/core/verify-commands.js.map +1 -0
  616. package/dist/core/voice-transcriber.d.ts +32 -0
  617. package/dist/core/voice-transcriber.js +114 -0
  618. package/dist/core/voice-transcriber.js.map +1 -0
  619. package/dist/core/workspace-guard.d.ts +56 -0
  620. package/dist/core/workspace-guard.js +334 -0
  621. package/dist/core/workspace-guard.js.map +1 -0
  622. package/dist/index.d.ts +15 -0
  623. package/dist/index.js +21 -0
  624. package/dist/index.js.map +1 -0
  625. package/dist/session.d.ts +44 -0
  626. package/dist/session.js +105 -0
  627. package/dist/session.js.map +1 -0
  628. package/dist/system-prompt.d.ts +104 -0
  629. package/dist/system-prompt.js +480 -0
  630. package/dist/system-prompt.js.map +1 -0
  631. package/dist/test-support/fake-home.d.ts +19 -0
  632. package/dist/test-support/fake-home.js +37 -0
  633. package/dist/test-support/fake-home.js.map +1 -0
  634. package/dist/test-support/keep-alive.d.ts +14 -0
  635. package/dist/test-support/keep-alive.js +17 -0
  636. package/dist/test-support/keep-alive.js.map +1 -0
  637. package/dist/test-support/slow-git.d.ts +1 -0
  638. package/dist/test-support/slow-git.js +21 -0
  639. package/dist/test-support/slow-git.js.map +1 -0
  640. package/dist/test-support/system-tools.d.ts +6 -0
  641. package/dist/test-support/system-tools.js +36 -0
  642. package/dist/test-support/system-tools.js.map +1 -0
  643. package/dist/tools/ask-user.d.ts +34 -0
  644. package/dist/tools/ask-user.js +99 -0
  645. package/dist/tools/ask-user.js.map +1 -0
  646. package/dist/tools/background-watch-lint.d.ts +18 -0
  647. package/dist/tools/background-watch-lint.js +102 -0
  648. package/dist/tools/background-watch-lint.js.map +1 -0
  649. package/dist/tools/bash-read-evidence.d.ts +23 -0
  650. package/dist/tools/bash-read-evidence.js +180 -0
  651. package/dist/tools/bash-read-evidence.js.map +1 -0
  652. package/dist/tools/bash.d.ts +64 -0
  653. package/dist/tools/bash.js +552 -0
  654. package/dist/tools/bash.js.map +1 -0
  655. package/dist/tools/browser-api.d.ts +27 -0
  656. package/dist/tools/browser-api.js +449 -0
  657. package/dist/tools/browser-api.js.map +1 -0
  658. package/dist/tools/browser-sandbox.d.ts +16 -0
  659. package/dist/tools/browser-sandbox.js +158 -0
  660. package/dist/tools/browser-sandbox.js.map +1 -0
  661. package/dist/tools/browser-session.d.ts +84 -0
  662. package/dist/tools/browser-session.js +304 -0
  663. package/dist/tools/browser-session.js.map +1 -0
  664. package/dist/tools/browser-snapshot.d.ts +19 -0
  665. package/dist/tools/browser-snapshot.js +109 -0
  666. package/dist/tools/browser-snapshot.js.map +1 -0
  667. package/dist/tools/browser.d.ts +11 -0
  668. package/dist/tools/browser.js +106 -0
  669. package/dist/tools/browser.js.map +1 -0
  670. package/dist/tools/checklist.d.ts +49 -0
  671. package/dist/tools/checklist.js +154 -0
  672. package/dist/tools/checklist.js.map +1 -0
  673. package/dist/tools/compress.d.ts +56 -0
  674. package/dist/tools/compress.js +226 -0
  675. package/dist/tools/compress.js.map +1 -0
  676. package/dist/tools/debug.d.ts +54 -0
  677. package/dist/tools/debug.js +230 -0
  678. package/dist/tools/debug.js.map +1 -0
  679. package/dist/tools/document-text.d.ts +6 -0
  680. package/dist/tools/document-text.js +154 -0
  681. package/dist/tools/document-text.js.map +1 -0
  682. package/dist/tools/edit-diff.d.ts +123 -0
  683. package/dist/tools/edit-diff.js +476 -0
  684. package/dist/tools/edit-diff.js.map +1 -0
  685. package/dist/tools/edit-targets.d.ts +10 -0
  686. package/dist/tools/edit-targets.js +31 -0
  687. package/dist/tools/edit-targets.js.map +1 -0
  688. package/dist/tools/edit.d.ts +38 -0
  689. package/dist/tools/edit.js +695 -0
  690. package/dist/tools/edit.js.map +1 -0
  691. package/dist/tools/enter-plan.d.ts +7 -0
  692. package/dist/tools/enter-plan.js +20 -0
  693. package/dist/tools/enter-plan.js.map +1 -0
  694. package/dist/tools/exit-plan.d.ts +7 -0
  695. package/dist/tools/exit-plan.js +51 -0
  696. package/dist/tools/exit-plan.js.map +1 -0
  697. package/dist/tools/find.d.ts +17 -0
  698. package/dist/tools/find.js +100 -0
  699. package/dist/tools/find.js.map +1 -0
  700. package/dist/tools/generate-image.d.ts +83 -0
  701. package/dist/tools/generate-image.js +625 -0
  702. package/dist/tools/generate-image.js.map +1 -0
  703. package/dist/tools/grep-scan.d.ts +96 -0
  704. package/dist/tools/grep-scan.js +283 -0
  705. package/dist/tools/grep-scan.js.map +1 -0
  706. package/dist/tools/grep.d.ts +48 -0
  707. package/dist/tools/grep.js +1013 -0
  708. package/dist/tools/grep.js.map +1 -0
  709. package/dist/tools/html-extract.d.ts +57 -0
  710. package/dist/tools/html-extract.js +130 -0
  711. package/dist/tools/html-extract.js.map +1 -0
  712. package/dist/tools/index.d.ts +198 -0
  713. package/dist/tools/index.js +216 -0
  714. package/dist/tools/index.js.map +1 -0
  715. package/dist/tools/live-preview.d.ts +23 -0
  716. package/dist/tools/live-preview.js +41 -0
  717. package/dist/tools/live-preview.js.map +1 -0
  718. package/dist/tools/ls.d.ts +9 -0
  719. package/dist/tools/ls.js +59 -0
  720. package/dist/tools/ls.js.map +1 -0
  721. package/dist/tools/operations.d.ts +86 -0
  722. package/dist/tools/operations.js +117 -0
  723. package/dist/tools/operations.js.map +1 -0
  724. package/dist/tools/overflow.d.ts +17 -0
  725. package/dist/tools/overflow.js +68 -0
  726. package/dist/tools/overflow.js.map +1 -0
  727. package/dist/tools/path-utils.d.ts +30 -0
  728. package/dist/tools/path-utils.js +74 -0
  729. package/dist/tools/path-utils.js.map +1 -0
  730. package/dist/tools/pdf-extract.d.ts +17 -0
  731. package/dist/tools/pdf-extract.js +43 -0
  732. package/dist/tools/pdf-extract.js.map +1 -0
  733. package/dist/tools/prompt-hints.d.ts +46 -0
  734. package/dist/tools/prompt-hints.js +171 -0
  735. package/dist/tools/prompt-hints.js.map +1 -0
  736. package/dist/tools/read-only-bash.d.ts +31 -0
  737. package/dist/tools/read-only-bash.js +338 -0
  738. package/dist/tools/read-only-bash.js.map +1 -0
  739. package/dist/tools/read-tracker.d.ts +43 -0
  740. package/dist/tools/read-tracker.js +120 -0
  741. package/dist/tools/read-tracker.js.map +1 -0
  742. package/dist/tools/read.d.ts +18 -0
  743. package/dist/tools/read.js +316 -0
  744. package/dist/tools/read.js.map +1 -0
  745. package/dist/tools/redaction-guard.d.ts +10 -0
  746. package/dist/tools/redaction-guard.js +55 -0
  747. package/dist/tools/redaction-guard.js.map +1 -0
  748. package/dist/tools/routine-output.d.ts +39 -0
  749. package/dist/tools/routine-output.js +281 -0
  750. package/dist/tools/routine-output.js.map +1 -0
  751. package/dist/tools/safe-env.d.ts +1 -0
  752. package/dist/tools/safe-env.js +79 -0
  753. package/dist/tools/safe-env.js.map +1 -0
  754. package/dist/tools/session-stats.d.ts +26 -0
  755. package/dist/tools/session-stats.js +51 -0
  756. package/dist/tools/session-stats.js.map +1 -0
  757. package/dist/tools/side-web-search.d.ts +34 -0
  758. package/dist/tools/side-web-search.js +146 -0
  759. package/dist/tools/side-web-search.js.map +1 -0
  760. package/dist/tools/skill.d.ts +12 -0
  761. package/dist/tools/skill.js +94 -0
  762. package/dist/tools/skill.js.map +1 -0
  763. package/dist/tools/source-path.d.ts +8 -0
  764. package/dist/tools/source-path.js +135 -0
  765. package/dist/tools/source-path.js.map +1 -0
  766. package/dist/tools/steroids.d.ts +44 -0
  767. package/dist/tools/steroids.js +356 -0
  768. package/dist/tools/steroids.js.map +1 -0
  769. package/dist/tools/subagent-control.d.ts +5 -0
  770. package/dist/tools/subagent-control.js +211 -0
  771. package/dist/tools/subagent-control.js.map +1 -0
  772. package/dist/tools/subagent-shared.d.ts +115 -0
  773. package/dist/tools/subagent-shared.js +182 -0
  774. package/dist/tools/subagent-shared.js.map +1 -0
  775. package/dist/tools/subagent.d.ts +37 -0
  776. package/dist/tools/subagent.js +406 -0
  777. package/dist/tools/subagent.js.map +1 -0
  778. package/dist/tools/task-output.d.ts +10 -0
  779. package/dist/tools/task-output.js +74 -0
  780. package/dist/tools/task-output.js.map +1 -0
  781. package/dist/tools/task-send.d.ts +11 -0
  782. package/dist/tools/task-send.js +36 -0
  783. package/dist/tools/task-send.js.map +1 -0
  784. package/dist/tools/task-stop.d.ts +8 -0
  785. package/dist/tools/task-stop.js +15 -0
  786. package/dist/tools/task-stop.js.map +1 -0
  787. package/dist/tools/tasks.d.ts +15 -0
  788. package/dist/tools/tasks.js +94 -0
  789. package/dist/tools/tasks.js.map +1 -0
  790. package/dist/tools/tool-search.d.ts +26 -0
  791. package/dist/tools/tool-search.js +81 -0
  792. package/dist/tools/tool-search.js.map +1 -0
  793. package/dist/tools/tool-tiers.d.ts +65 -0
  794. package/dist/tools/tool-tiers.js +121 -0
  795. package/dist/tools/tool-tiers.js.map +1 -0
  796. package/dist/tools/truncate.d.ts +39 -0
  797. package/dist/tools/truncate.js +242 -0
  798. package/dist/tools/truncate.js.map +1 -0
  799. package/dist/tools/ui-adopt.d.ts +16 -0
  800. package/dist/tools/ui-adopt.js +66 -0
  801. package/dist/tools/ui-adopt.js.map +1 -0
  802. package/dist/tools/ui-registry.d.ts +15 -0
  803. package/dist/tools/ui-registry.js +39 -0
  804. package/dist/tools/ui-registry.js.map +1 -0
  805. package/dist/tools/verification-review.d.ts +2 -0
  806. package/dist/tools/verification-review.js +41 -0
  807. package/dist/tools/verification-review.js.map +1 -0
  808. package/dist/tools/web-fetch.d.ts +52 -0
  809. package/dist/tools/web-fetch.js +986 -0
  810. package/dist/tools/web-fetch.js.map +1 -0
  811. package/dist/tools/web-search.d.ts +35 -0
  812. package/dist/tools/web-search.js +926 -0
  813. package/dist/tools/web-search.js.map +1 -0
  814. package/dist/tools/write.d.ts +16 -0
  815. package/dist/tools/write.js +196 -0
  816. package/dist/tools/write.js.map +1 -0
  817. package/dist/types.d.ts +44 -0
  818. package/dist/types.js +2 -0
  819. package/dist/types.js.map +1 -0
  820. package/dist/utils/commit-message.d.ts +25 -0
  821. package/dist/utils/commit-message.js +72 -0
  822. package/dist/utils/commit-message.js.map +1 -0
  823. package/dist/utils/git.d.ts +102 -0
  824. package/dist/utils/git.js +325 -0
  825. package/dist/utils/git.js.map +1 -0
  826. package/dist/utils/github-ci.d.ts +9 -0
  827. package/dist/utils/github-ci.js +138 -0
  828. package/dist/utils/github-ci.js.map +1 -0
  829. package/dist/utils/github.d.ts +19 -0
  830. package/dist/utils/github.js +67 -0
  831. package/dist/utils/github.js.map +1 -0
  832. package/dist/utils/image.d.ts +166 -0
  833. package/dist/utils/image.js +673 -0
  834. package/dist/utils/image.js.map +1 -0
  835. package/dist/utils/open-browser.d.ts +13 -0
  836. package/dist/utils/open-browser.js +31 -0
  837. package/dist/utils/open-browser.js.map +1 -0
  838. package/dist/utils/plan-steps.d.ts +90 -0
  839. package/dist/utils/plan-steps.js +209 -0
  840. package/dist/utils/plan-steps.js.map +1 -0
  841. package/dist/utils/process.d.ts +48 -0
  842. package/dist/utils/process.js +175 -0
  843. package/dist/utils/process.js.map +1 -0
  844. package/dist/utils/prompt-enhancer.d.ts +34 -0
  845. package/dist/utils/prompt-enhancer.js +178 -0
  846. package/dist/utils/prompt-enhancer.js.map +1 -0
  847. package/dist/utils/text.d.ts +61 -0
  848. package/dist/utils/text.js +68 -0
  849. package/dist/utils/text.js.map +1 -0
  850. package/package.json +87 -3
@@ -0,0 +1,87 @@
1
+ # Durable — migrations & schema
2
+
3
+ Load for any migration or schema finding. Postgres examples dominate because it is the default; MySQL and SQLite divergences are called out. `SNAPSHOT` = sourced 3 October 2026 unless dated otherwise (Prisma and PostgreSQL 19 status re-verified 22 October 2026) — version behaviours decay, verify before asserting. Run every migration on a branch or copy first, and obey SKILL.md's agent gate before applying anything to a database that may hold real data.
4
+
5
+ ## The one rule that prevents most downtime
6
+
7
+ **Never deploy a schema change and the code that depends on it in the same step.** Old code must keep working against the new schema, and new code must keep working against the old schema, for at least one deploy cycle. That is what expand-contract buys.
8
+
9
+ ## Expand-contract (parallel change)
10
+
11
+ Every breaking change is two or three separately-deployed steps, each leaving the system fully functional:
12
+
13
+ 1. **Expand** — add the new column/table/index (nullable, no constraints yet). Old code ignores it; nothing breaks.
14
+ 2. **Backfill + dual-write** — copy old data to new in batches; code writes both; code reads new with fallback to old. Deploy, watch, wait.
15
+ 3. **Contract** — after the old path is provably dead (feature flag flipped, traffic at zero), remove the old column and the dual-write.
16
+
17
+ Rollback at any point is "flip back to the old path", not "restore the database".
18
+
19
+ **Rename a column** — never `RENAME COLUMN` on a live system (breaks all in-flight code): add `email`, backfill from `email_addr`, dual-write, switch reads, drop `email_addr` in a later deploy.
20
+
21
+ **Change a type or split a column** — add the new column, backfill with transformation in batches, cut writes over, drop old. Same shape, always.
22
+
23
+ ## Lock-safety table (Postgres)
24
+
25
+ What common DDL actually does to a live table (`SNAPSHOT` — verify per version).
26
+
27
+ **Always set `SET lock_timeout = '5s'` (and a `statement_timeout`) before DDL on a live table.** An `ALTER` queued behind a long transaction blocks every query behind it; the timeout turns that outage into a retryable failure. `CONCURRENTLY` operations cannot run inside a transaction block — keep them in their own migration (many ORMs wrap migrations in a transaction by default).
28
+
29
+ | Operation | Behavior | Safe pattern |
30
+ |---|---|---|
31
+ | `ADD COLUMN` (no default) | Fast, brief lock | Fine as-is |
32
+ | `ADD COLUMN ... NOT NULL DEFAULT x` | Fast since Postgres 11 (default not backfilled); table rewrite before 11 | Fine on ≥11; otherwise add nullable → backfill → `SET NOT NULL` |
33
+ | `SET NOT NULL` on existing column | Full-table scan under lock | Backfill first. Postgres 18: `ADD CONSTRAINT … NOT NULL col NOT VALID`, then `VALIDATE CONSTRAINT`. Older: `CHECK (col IS NOT NULL) NOT VALID` → `VALIDATE` → `SET NOT NULL` (uses the valid check, skipping the scan) → drop the check |
34
+ | `CREATE INDEX` | Blocks writes for the whole build | `CREATE INDEX CONCURRENTLY` (drop with `DROP INDEX CONCURRENTLY`); slower, non-transactional — if it fails, drop the invalid index and retry |
35
+ | `ADD FOREIGN KEY` | Locks while validating all rows | Two-step: `ADD CONSTRAINT ... NOT VALID` then `VALIDATE CONSTRAINT` (weaker lock) |
36
+ | One giant `UPDATE`/`DELETE` | Locks rows, bloats the table, stalls replication | Batch: keyset-select N rows → update → sleep → repeat, resumable from last key |
37
+ | `DROP COLUMN` | Fast (metadata) — but data is gone | Only in the contract phase, after dual-write is verified dead |
38
+
39
+ **Postgres 18 notes** (`SNAPSHOT`, released 25 Sep 2025): `uuidv7()` built in; generated columns are now **virtual by default** (computed on read — say `STORED` if you need it materialised or indexed); `pg_upgrade` keeps planner statistics (not extended statistics), so post-upgrade slow plans are less likely; new clusters get data checksums by default and `pg_upgrade` needs matching checksum settings (`initdb --no-data-checksums` for old non-checksum clusters); asynchronous I/O via `io_method`. **Postgres 19 notes** (`SNAPSHOT`, released 19 Nov 2026): JIT off by default; a warning on md5 password logins (move to SCRAM); RADIUS auth removed; `INSERT … ON CONFLICT DO SELECT`. **Postgres 14 reached end of life on 12 November 2026** (13 on 13 Nov 2025) — no more security or data-corruption fixes; flag any project on ≤14 as High.
40
+
41
+ **Tools that automate expand/contract** (`SNAPSHOT`, verify maturity before recommending): pgroll (Xata; serves old and new schema versions via views during a migration), Reshape (same idea, less active), and migration linters — Squawk (Postgres SQL lint), `strong_migrations` (Rails), `django-pg-zero-downtime-migrations` / `django-migration-linter` (Django). For Laravel, no equivalent gem is verified here — review SQL with `php artisan migrate --pretend`.
42
+
43
+ MySQL has no `CONCURRENTLY`: use `ALGORITHM=INSTANT/INPLACE` where the version supports it, `gh-ost` or `pt-online-schema-change` for big tables (`SNAPSHOT` — both maintained; verify current). Postgres big-table rebuilds (PK change, deep bloat, partitioning): `pg_repack`, which rebuilds online with minimal locking and needs ~2x disk temporarily. PostgreSQL 19 (released 19 Nov 2026 — `SNAPSHOT` 22 Nov 2026) adds a built-in `REPACK` command; plain `REPACK` takes `ACCESS EXCLUSIVE`, `REPACK (CONCURRENTLY)` avoids it — on 19+ prefer it over installing `pg_repack` for bloat, after checking the running version.
44
+
45
+ ## Resumable backfill skeleton
46
+
47
+ ```sql
48
+ -- keyset, not OFFSET: stable order, restartable from last processed id
49
+ UPDATE users
50
+ SET status = 'active'
51
+ WHERE id IN (
52
+ SELECT id FROM users WHERE id > :last_id AND status IS NULL
53
+ ORDER BY id LIMIT 5000
54
+ )
55
+ RETURNING id; -- record max(id) as the checkpoint; sleep between batches
56
+ ```
57
+
58
+ From application code the same shape applies: select batch by `id > last`, write, record checkpoint durably (a checkpoint table or job state), sleep. A crashed backfill resumes at the checkpoint instead of restarting or double-writing. On stores without `RETURNING`, select the batch first, update by primary key, checkpoint the max selected id.
59
+
60
+ ## Migration tooling discipline
61
+
62
+ - **Versioned, checked-in migrations from the first table** — Alembic (Python), Flyway/Liquibase (JVM), golang-migrate (Go), sqlx/Diesel (Rust), Drizzle Kit / Prisma Migrate (TS). Hand-run SQL files and "schema.sql we run sometimes" are how drift starts.
63
+ - **Review generated SQL before it touches anything real.** ORM migration generators emit what the schema diff implies: renaming a column in the schema file becomes `DROP COLUMN` + `ADD COLUMN` — the data is dropped. Prisma flow: `migrate dev --create-only`, read the SQL, fix it to a safe expand-contract, then apply. Drizzle: `drizzle-kit generate`, read the SQL, then `drizzle-kit migrate`. This review is the single highest-value habit in this file.
64
+ - **Prisma 7** (`SNAPSHOT`, Nov 2025): Rust-free TypeScript client via the `prisma-client` generator with a required `output`, driver adapters required, config in `prisma.config.ts`, and automatic seeding after migrate removed. Migration semantics are unchanged: `migrate dev` (dev only, may prompt to reset), `migrate deploy` (production, applies pending only), `migrate reset` (drops everything — agent-gated, see SKILL.md). Upgrading v6→v7 is a client/config change; it should not create a migration — if a diff appears, read it. Prisma 6's security-patch window ended 19 Nov 2026, so it is unsupported; MongoDB users must go to v8, because v7 has no MongoDB support.
65
+ - **Prisma ORM 8** (`SNAPSHOT` 22 Nov 2026): still a release candidate (CLI `8.0.0-rc.34` on 16 Nov 2026, no GA date given), but `npm install prisma` / `npx prisma` already resolve to the v8 CLI, which does not read `schema.prisma` and has no `generate`, `migrate dev` or `db push`. A Prisma 7 project must pin `prisma@7` in `package.json`; an unpinned `npx prisma migrate …` is a finding. Prisma 7 stays supported for 18 months after v8 GA. v8's schema commands are `prisma migration plan` and `prisma db update`, which ask about each dropped model or field (`agent-db-safety.md` §Tool interlocks).
66
+ - **`db push` / `drizzle-kit push` / sync-style commands are for throwaway dev databases only** (Drizzle documents push as its rapid-prototyping path). They bypass migration history; on a database with data they can apply destructive diffs without review. If a deploy script or CI contains `db push` against anything shared or persistent, that is a finding.
67
+ - **Never edit an applied migration.** The hash changes, history diverges, teammates' databases desync. Corrections are new migrations.
68
+ - **Forward-only in production.** Down migrations cannot faithfully reverse a migration that touched data (you cannot un-drop a column). "Rollback" is a new forward migration that reverses the change, written and tested like any other. Down migrations are a dev convenience at most.
69
+ - **Apply migrations as a distinct step before the new code rolls out** (deploy script step or pre-deploy Job), never lazily on first request, never concurrently from every replica. One applier, ordered, recorded.
70
+
71
+ ## CI and testing
72
+
73
+ - A CI job that applies all migrations to a throwaway database (a fresh dump or seed of production shape) on every PR — catches broken SQL and lock surprises before merge, and keeps prod-shaped test data honest.
74
+ - Migration + dependent code in one PR is fine; shipping them as one *deploy step* is not — expand and contract are separate deploys even when they merge as one review.
75
+
76
+ ## Schema integrity sweep
77
+
78
+ - **Foreign keys enforced?** MySQL: check the engine (InnoDB enforces, MyISAM does not). SQLite: `PRAGMA foreign_keys = ON` per connection — it is OFF by default and every connection must set it. Postgres: on by default; hunt instead for `ON DELETE` behavior nobody chose — cascade on a `users` delete that sweeps orders, messages, and uploads is a mass-delete path wearing a constraint's clothing.
79
+ - **Unique constraints where identity lives** — email, username, external IDs (`stripe_customer_id`), webhook event IDs. Without the constraint, every race produces a duplicate; with it, the race becomes a retryable error. Partial unique indexes for soft delete: `CREATE UNIQUE INDEX ... ON users(email) WHERE deleted_at IS NULL` — the live rows stay unique, the deleted ones don't collide.
80
+ - **Nullable-in-fact columns** — every column the code treats as required should be `NOT NULL`, or the store will accept what the code never imagined.
81
+ - **Lossy types** — money in floating point (use integer cents or `NUMERIC`), IDs in 32-bit ints near overflow (YouTube hit this), timestamps without timezone when the product is multi-timezone, enums-as-free-text where a `CHECK` or lookup table belongs.
82
+ - **Orphan check** — rows referencing deleted parents (FKs added late don't clean history): count them before adding the constraint, and expect `VALIDATE` to fail if history is dirty. Decide: clean, archive, or keep the constraint `NOT VALID` deliberately and document why.
83
+ - **Drift** — schema file vs live DB: most ORMs can diff (`prisma migrate diff`, `drizzle-kit check`). Drift on production means migrations were bypassed at some point — a process finding, not just a schema one.
84
+
85
+ ---
86
+
87
+ **Provenance:** snapshot 3 October 2026. Re-verified 22 Nov 2026: PostgreSQL 19 release https://www.postgresql.org/about/news/postgresql-19-released-3449/ ; versioning (14 EOL) https://www.postgresql.org/support/versioning/ ; Prisma release status (8.0.0-rc.34, Prisma 6 window ended) and drop-consent changelog https://www.prisma.io/changelog/2026-10-09 . Re-verified 22 Oct 2026: Prisma release status https://www.prisma.io/docs/orm/release-status and changelog https://www.prisma.io/changelog/2026-10-02 ; PostgreSQL 19 RC1 https://www.postgresql.org/about/news/postgresql-19-rc-1-released-3409/ and https://www.postgresql.org/docs/19/sql-repack.html . Accessed 3 Oct 2026: PostgreSQL 18 release notes https://www.postgresql.org/docs/18/release-18.html and announcement https://www.postgresql.org/about/news/postgresql-18-released-3142/ ; versioning policy (13 EOL) https://www.postgresql.org/support/versioning/ ; Prisma 7 https://www.prisma.io/blog/announcing-prisma-orm-7-0-0 and https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7 ; Drizzle push https://orm.drizzle.team/docs/drizzle-kit-push . Earlier sources: Postgres documentation (DDL locking behavior, `CONCURRENTLY`, `NOT VALID`/`VALIDATE`, ADD COLUMN default fast-path), current zero-downtime migration practice guides (expand-contract/parallel-change, batched keyset backfill, forward-only production, pre-deploy application), Prisma/Drizzle documentation (create-only review workflow, `db push` scope), MySQL online-schema-change tooling (gh-ost, pt-online-schema-change) public docs. Version-specific lock behavior decays fastest — re-verify against the running version before asserting.
@@ -0,0 +1,43 @@
1
+ ---
2
+ name: gg-guide
3
+ description: "Only when the user asks how to use GG Coder itself: how or where to do something in the app (models, sessions, settings, MCP, `!` and `/` commands, Checklist, safety, Goals, Motion, Chat, files, errors). Do NOT use for coding work."
4
+ metadata:
5
+ version: "2026.11.30"
6
+ ---
7
+
8
+ # GG Coder guide
9
+
10
+ How the GG Coder desktop app works, for answering the user's questions about it. The user is in the desktop app (not the `ggcoder` terminal CLI) unless they say otherwise.
11
+
12
+ ## Rules
13
+
14
+ 1. Use this only to answer a question the user asked about the app. Don't bring the app's features up unprompted while doing other work.
15
+ 2. Read the matching reference below before answering. Answer from it, not from memory: the app changes often. Each page ends with common questions in users' own words.
16
+ 3. Use the exact on-screen labels from the reference, in bold, and say where they are (for example **Settings** › **General**).
17
+ 4. If the references don't cover it, say so plainly and suggest where to look in the app. Never invent a button, setting or command.
18
+ 5. Give the steps the user needs, not whole sections. Answer first, in your reply text. Only after that, if it's something you could do for them (run a Checklist item, a security review, a commit), offer it in one line; don't start it unasked.
19
+
20
+ ## Quick answers
21
+
22
+ - New session: **New session** in the **More** panel (the ⋯ key on the bottom bar), **New session** in the sidebar, or **+ New session** in the project's session list. See `references/sessions-and-history.md`.
23
+ - Code, Chat, Goal and Motion: the four mode buttons on the icon rail (left of every window, Settings too). They are not in the sidebar. See `references/getting-started.md`.
24
+ - Change model or thinking: click the model readout in a session to open the **Model** panel. See `references/models-and-sign-in.md`.
25
+ - Improve a prompt before sending: the **Enhance** key next to send. See `references/code-mode.md`.
26
+ - Add an MCP server: give the user the exact line to paste into the chat input, `!claude mcp add …` (from the server's docs). It loads straight away, no restart. Never run `claude mcp add` in your own bash tool: that changes Claude Code's config, not GG Coder's. See `references/mcp-and-skills.md`.
27
+ - Is my app safe / ready to ship: the **Checklist** (Security, Dependencies, Secrets and the rest), or ask for a review. See `references/checklist-and-safety.md`.
28
+ - App problems: the log is `~/.gg/gg-app-sidecar.log`. See `references/troubleshooting-and-data.md`.
29
+
30
+ ## References
31
+
32
+ | The question is about | Read |
33
+ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------- |
34
+ | First run, the icon rail (modes, checklist, Settings) and session sidebar (projects, folding), session status marks, the title row, Home, projects, windows and layout, tray menu, updates, What's new, About, zoom, keyboard shortcuts | `references/getting-started.md` |
35
+ | Sessions: new, resume, import, export, the transcript, answering GG's questions, context and compaction, errors in the chat | `references/sessions-and-history.md` |
36
+ | Code windows: composer, `@` files, attachments, queued messages, `!` commands, `/` commands, schedules, Enhance, plan review, tasks, notes, git and commits, CI | `references/code-mode.md` |
37
+ | Ken, Autopilot, sub-agents and critters, trophies, Radio | `references/ken-and-autopilot.md` |
38
+ | Checklist, project health, making an app safe or ready to ship, and how GG Coder keeps the user safe | `references/checklist-and-safety.md` |
39
+ | Providers and sign-in, plans and keys, choosing a model, thinking levels, local models, usage | `references/models-and-sign-in.md` |
40
+ | Every Settings tab: General, AI Providers, Remote (Telegram), MCP, Steroids, About | `references/settings.md` |
41
+ | MCP servers (panel and `!claude mcp …`), skills, blocked skills | `references/mcp-and-skills.md` |
42
+ | Chat (agents, Brain memory), Motion (videos) and Goals | `references/chat-motion-goals.md` |
43
+ | Files on disk, logs, errors, sign-in and update problems, reporting a bug | `references/troubleshooting-and-data.md` |
@@ -0,0 +1,217 @@
1
+ # Chat, Motion and Goals
2
+
3
+ ## Contents
4
+
5
+ - Chat
6
+ - Motion
7
+ - Goals
8
+ - Common questions
9
+
10
+ The icon rail on the left has a button for each mode: **Code**, **Chat**, **Goal** and **Motion**. Each opens its own list (**Choose a project**, **Chats**, **Choose a goal** and **Motion**). Code is for working in a project folder. The other three are covered here. Chat and Motion both need a projects folder: set one in **Settings** first. You can switch modes while this window is working: the session you leave keeps working in the background.
11
+
12
+ ## Chat
13
+
14
+ Chat is for talking things through. You don't need a project.
15
+
16
+ How do I open Chat?
17
+
18
+ - Click **Chat** on the icon rail. The **Chats** list opens and shows your earlier chats, with a preview, when each was last active and how many messages it has.
19
+ - Click **+ New chat** to start a new one, or click an earlier chat to pick it up again.
20
+ - If no projects folder is set, the list says: "Choose a projects folder in Settings before starting a chat."
21
+
22
+ What are the chat agents?
23
+
24
+ - There are three. The title row shows which one is active: General, Therapist or Research.
25
+ - General handles broad, everyday conversation.
26
+ - Therapist handles emotional support, reflection, coping, relationships and wellbeing.
27
+ - Research handles evidence, sources, current information, comparisons and deep analysis.
28
+ - New chats start with General unless they continue from another agent.
29
+
30
+ How do I switch agents?
31
+
32
+ - The agents hand the conversation to each other. When the main need of a chat clearly changes, the active agent passes the whole conversation to a better-suited one, and the title row label changes.
33
+ - A handoff keeps the full conversation history. It lasts until the next handoff and isn't a one-off side task.
34
+ - When you reopen a chat, it opens with the agent that was last active in it.
35
+ - There's no agent picker button. To steer things, ask in the chat, for example "let the research agent handle this".
36
+
37
+ What does Chat remember?
38
+
39
+ - All three agents share one memory. The agents save lasting facts about you on their own, without being asked. These include who you are, stable preferences, ongoing projects or goals, important relationships or dates, recurring constraints, and significant health or work context.
40
+ - They don't save one-off task details, conversation summaries, guesses, passwords or secrets, or passing moods.
41
+ - Jiwa is a second shared store. It holds lasting instructions about how the chat agents should behave: a name or persona you gave them, tone and formatting, interaction style, boundaries and preferred workflow. It also holds requests to stop doing something that annoys you.
42
+ - To add or remove something, say so in the chat. The agents act on "remember…", "forget…" and "stop doing…".
43
+ - Each entry is at most 600 characters. When a store reaches about 60 entries, the agents merge related ones and remove old ones. 90 is the upper limit.
44
+
45
+ How do I view or delete memories?
46
+
47
+ - In a chat, open the **More** panel from the window's bottom bar and click **Brain**.
48
+ - The **Brain** window has two tabs, **Memories** and **Jiwa**. Each tab is a table showing the entry, its **Category**, its **Importance** (1 to 5) and when it was last **Updated**.
49
+ - To delete an entry, click the bin icon on its row. An empty tab says **No durable memories yet.** or **No Jiwa instructions yet.**
50
+ - Memories are stored in `~/.gg/chat-memories.json` and Jiwa in `~/.gg/chat-jiwa.json`.
51
+
52
+ Other chat controls (the **More** panel):
53
+
54
+ - **New chat** starts a new conversation. It's unavailable while the agent is replying.
55
+ - **Export chat** saves the conversation as a Markdown file. It's greyed out until the chat has messages.
56
+ - **Add folder** lets the chat agents read and work with files in another folder you pick, such as a folder of documents.
57
+ - **Remove folder** (shown once a folder is added) lists the added folders. Click **Remove** next to one to drop it.
58
+ - **Notes** opens a notes pad that is saved on this computer.
59
+ - **Radio** plays internet radio: pick a station, then press **Play** or **Pause** and set the volume.
60
+ - **All chats** goes back to the **Chats** list.
61
+
62
+ Where do chat files live?
63
+
64
+ - The chat workspace is a folder called `GG Chat` inside your projects folder. It never shows up in your project list.
65
+
66
+ Chat skills:
67
+
68
+ - Skills for Chat go in `GG Chat/.gg/skills/<name>/SKILL.md`, with `name` and `description` frontmatter.
69
+ - Every chat and all three agents can use them. Code and Motion can't. A new skill loads when you start the next chat.
70
+
71
+ ## Motion
72
+
73
+ Motion makes short videos and animations from a request: product launches, app walkthroughs, website videos, before-and-after videos, developer tool videos, or a video in the style of an example you supply.
74
+
75
+ How do I start a video?
76
+
77
+ - Click **Motion** on the icon rail. The **Motion** list shows earlier video sessions. Click **+ New video** to start a new one, or reopen an earlier session.
78
+ - Starter chips fill in the start of a request, and you finish the sentence before sending:
79
+ - **Make a product launch**
80
+ - **Make an app walkthrough**
81
+ - **Make a website video**
82
+ - **Make a before and after**
83
+ - **Make a developer tool video**
84
+ - **Make one like my example**
85
+ - You can also just type what you want and attach a logo, photos, screenshots, footage or an example video.
86
+
87
+ What will I be asked?
88
+
89
+ - Motion asks only what it can't work out, on a single card of at most four questions. A detailed request gets no questions.
90
+ - Typical questions:
91
+ - Where people will mostly watch it: on a phone (tall video), on a website or YouTube (wide), slides or a big screen, a background loop, or sent to someone.
92
+ - Whether it should have music.
93
+ - What to build the visuals from: your images, photos from your website, illustrations, or a mix.
94
+ - What it should include.
95
+ - What people should get from it.
96
+ - How it should feel.
97
+ - How long it should be: about 10 seconds, about 30 seconds or about a minute.
98
+ - For a new video it may also pitch two or three ideas, plus "Let GG Motion choose". This only gathers your preference. It isn't an approval step.
99
+
100
+ How is it made and rendered?
101
+
102
+ - Motion builds the video in one go, checks a few still frames, then renders the final video once, with sound and motion blur.
103
+ - The render also adjusts the volume and checks the video for harmful flashing. A video that fails the flashing check is fixed and rendered again, never delivered.
104
+ - When it's done, Motion opens the file for you and says what it checked. Stills aren't the same as watching it play, so watch the video yourself.
105
+ - It re-renders only to fix something visibly broken. For an edit, ask in the same session. Only what you asked for changes.
106
+
107
+ Where are videos saved?
108
+
109
+ - **Motion** sessions are listed like chats. The **More** panel has **New session**, **Notes**, **Radio**, **Export chat**, **Arrange** and **Projects** to go back to the list.
110
+
111
+ - Each video gets its own folder inside the `GG Motion` folder in your projects folder.
112
+ - Finished files go in that video's `renders/` folder as versioned `.mp4` files, such as `name-v1.mp4`. Earlier exports are never overwritten.
113
+
114
+ Limits:
115
+
116
+ - Motion uses only real material: your product's real name, words, colours, logo and screens. It won't invent features, facts or prices. If assets are missing, it asks for them.
117
+ - It won't generate images unless you ask. Drawn scenes are built as illustrations instead.
118
+ - It asks before overwriting a finished export, deleting things, installing software or spending money.
119
+ - A new video always starts fresh, even for the same subject. To change an earlier video, reopen its session or say which one you mean.
120
+ - Motion has its own skills, stored in `GG Motion/.gg/skills`. It can't use Chat skills.
121
+
122
+ ## Goals
123
+
124
+ A goal is a long-running objective that's too big for one session, for example "Get checkout loading under one second on mobile". Goals hands it to GG Goals, an agent that coordinates a team of worker agents.
125
+
126
+ How do I create a goal?
127
+
128
+ - Click **Goal** on the icon rail. The **Choose a goal** list opens. You can search by name or goal text. Each row shows when the goal was last active and, when it matters, a status: **Running now**, **Paused** or **Interrupted**. Goals still in briefing or finished show no status.
129
+ - Clicking a goal reopens its conversation. A goal is one ongoing conversation, so there's no session list.
130
+ - Click **+ New goal**. In the **New goal** window, fill in:
131
+ - **Name**: up to 15 characters.
132
+ - **Goal**: the objective, up to 2000 characters.
133
+ - **Context** (optional): click **Add**, then **Add folders** or **Add files**. Up to 20 items, such as repos, specs or mockups. Remove one with its x button.
134
+ - **Instructions** (optional): rules for the whole goal, up to 4000 characters, for example "Ask before adding dependencies". GG Goals and its workers follow them throughout.
135
+ - **Create goal** stays greyed out until Name and Goal are filled in. The goal opens straight away.
136
+
137
+ Briefing, then starting:
138
+
139
+ - A new goal starts in its briefing phase. GG Goals replies on its own: it sums up the goal, asks questions, and does no work.
140
+ - When you're ready, choose the start option on GG Goals' question card, or type "start the goal now". This switches the goal to active, and work begins. A question or a delayed start ("start it tomorrow") doesn't count.
141
+ - If GG Goals needs an answer while it works, its question card appears in the chat. Questions wait safely even if you reload.
142
+
143
+ Following a goal's work:
144
+
145
+ - A goal window is its chat. Each worker GG Goals brings in shows as a critter row in the chat, and walks the lane above the message box while it works.
146
+ - The title row has one readout for the goal. Its mark turns while the goal works, shows a pixel check once its tasks are done, "||" while paused and "×" if a task failed. Next to the mark are the counts that aren't zero: how many workers are working, and how many tasks are done and failed. Before anything has run it reads "Ready", or "Working" while GG Goals starts.
147
+ - The play/pause button at the end of the readout reads **Pause the goal**, **Resume the goal**, or "Not running. Carry the goal on" when the goal has stopped.
148
+ - When a stretch of work finishes, GG Goals writes its summary in the chat.
149
+
150
+ Goal settings:
151
+
152
+ - In the **More** panel, click **Goal settings** to change the goal's standing instructions and its attached folders and files, then click **Save**.
153
+ - You can't change settings while the goal is working. Pause it first. GG Goals picks up the change on its next step.
154
+ - **All goals** in the **More** panel goes back to the goal list. Goals also have **Radio**, but no **Notes**, **New session** or **Export chat**.
155
+
156
+ Critters model:
157
+
158
+ - In a goal, the model picker has a second setting, **Critters**, for the workers. By default it follows GG Goals' model. Pick a different model to run workers on it.
159
+
160
+ Deleting a goal:
161
+
162
+ - In **Choose a goal**, hover a goal and click the bin icon (**Delete goal**), then **Delete**. This removes the goal and its conversation. Attached folders and files are not touched. It can't be undone. There's no archive.
163
+
164
+ Where does goal data live?
165
+
166
+ - Each goal has a folder at `~/.gg/goals/<id>/`, containing `goal.json` with its name, goal text and the attached paths.
167
+ - Goal folders never appear in the project list. A goal isn't a project and isn't a project task.
168
+
169
+ ## Common questions
170
+
171
+ Q: How do I start a new chat?
172
+ A: Click **Chat** on the icon rail, then **+ New chat**. Inside a chat, use **New chat** in the **More** panel.
173
+ Q: How do I go back to an old chat?
174
+ A: Click it in the sidebar, or click **Chat** on the icon rail and pick it from the **Chats** list. It reopens with the agent that was last active.
175
+ Q: How do I switch to the Therapist or Research agent?
176
+ A: There's no picker. Ask in the chat, or just talk about what you need. The agent hands the whole conversation over when the need changes.
177
+ Q: How do I make GG forget something?
178
+ A: Say "forget …" in a chat, or open **Brain** from the **More** panel and click the bin icon on that entry.
179
+ Q: How do I see what GG remembers about me?
180
+ A: Open **Brain** in a chat. The **Memories** tab holds facts about you, and **Jiwa** holds instructions on how the agents should behave.
181
+ Q: How do I make the chat agents stop doing something?
182
+ A: Say "stop doing …" in a chat. It's saved to Jiwa and all three agents follow it.
183
+ Q: How do I save a chat?
184
+ A: Click **Export chat** in the **More** panel to save it as a Markdown file.
185
+ Q: Where are chat skills kept?
186
+ A: In `GG Chat/.gg/skills/<name>/SKILL.md` inside your projects folder. They load from the next new chat.
187
+ Q: Why can't I start a chat or a video?
188
+ A: Chat and Motion need a projects folder. Choose one in **Settings** first.
189
+ Q: How do I make a video?
190
+ A: Click **Motion** on the icon rail, then **+ New video**. Pick a starter chip or type your request, attach any logo, screenshots or footage, and answer the short question card.
191
+ Q: Where is my video saved?
192
+ A: In that video's `renders/` folder, inside the `GG Motion` folder in your projects folder, as a versioned `.mp4`. Motion opens the file when it's done.
193
+ Q: How do I change a video Motion made?
194
+ A: Reopen its session from the **Motion** list and say what to change. Only that part changes, and the new render gets a new version number.
195
+ Q: Can Motion make up images or facts?
196
+ A: No. It uses your real product, words and assets, asks for missing ones, and only generates images if you ask.
197
+ Q: How do I create a goal?
198
+ A: Click **Goal** on the icon rail, then **+ New goal**. Fill in **Name** and **Goal**, optionally add context and instructions, and click **Create goal**.
199
+ Q: Why isn't my goal doing any work?
200
+ A: New goals start in briefing, where GG Goals only asks questions. Choose the start option or type "start the goal now".
201
+ Q: How do I pause a goal?
202
+ A: Click the pause button in the goal's title row (**Pause the goal**). Click it again to resume.
203
+ Q: How do I change a goal's instructions or folders?
204
+ A: Pause the goal, then open **Goal settings** in the **More** panel, edit, and click **Save**.
205
+ Q: How do I watch the workers?
206
+ A: In the goal's chat: each worker has a critter row, and the title row counts how many are working and how many tasks are done or failed.
207
+ Q: What happens when a goal is done?
208
+ A: The title row's mark shows a pixel check, and GG Goals writes its summary in the chat.
209
+ Q: How do I delete a goal?
210
+ A: In **Choose a goal**, click the bin icon on its row, then **Delete**. Your attached files are kept, but this can't be undone.
211
+ Q: Can workers use a cheaper model?
212
+ A: Yes. Set the **Critters** model in the goal's model picker. By default it follows GG Goals.
213
+ Q: Where is goal data stored?
214
+ A: In `~/.gg/goals/<id>/`, with the goal's details in `goal.json`.
215
+
216
+ Q: Can the chat look at files in one of my folders?
217
+ A: Yes. Click **Add folder** in the **More** panel (the ⋯ key on the bottom bar) and pick the folder. The agents are told about it before their next reply.
@@ -0,0 +1,177 @@
1
+ # Checklist, project health and safety
2
+
3
+ ## Contents
4
+
5
+ - The Checklist screen
6
+ - Every group and item
7
+ - Agent setup and `/init`
8
+ - Running a check
9
+ - Don't embarrass me
10
+ - Project health badge and panel
11
+ - How do I make sure my app is safe and ready to ship?
12
+ - Commands you type with `!`
13
+ - MCP servers and trust
14
+ - Blocked skills
15
+ - Package and command protection
16
+ - Files, secrets and the network
17
+ - macOS Full Disk Access
18
+ - What the agent does without asking
19
+ - Common questions
20
+
21
+ This page covers two things: checking the user's own project (the Checklist and project health), and how GG Coder protects the user and their machine.
22
+
23
+ ## The Checklist screen
24
+
25
+ - **Checklist** in a Code-mode window's **More** panel, or **Project checklist** on the icon rail, opens the full-page **Project checklist**: GG Coder's built-in project health checks, grouped and listed in recommended run order.
26
+ - Three views sit at the top: **All checks**, **Needs review** (anything not passed or not applicable) and **Findings** (checks whose recorded result reported issues).
27
+ - Each item shows its title, a short purpose tooltip and its current state, such as **Not reviewed**, **Not applicable**, a "Checked" date, or "Review due". A mark beside it sums this up: a small pixel check when passed, ? findings or a review due, – not applicable, and a turning ring while it checks.
28
+ - Some items also show what GG detected automatically, for example that a CI workflow or a README exists. Detected setup is only a hint. It is never a pass on its own; an item passes only after a recorded review.
29
+ - If part of the setup couldn't be looked at, the screen says **Some setup could not be inspected**.
30
+
31
+ ## Every group and item
32
+
33
+ - Foundations: Agent setup; README & setup docs; Shared vocabulary (one name per concept, a glossary, written-down decisions).
34
+ - Source control: Git & GitHub (repo, GitHub remote, .gitignore, protected main branch, no large binaries); Secrets kept out (no keys, tokens or passwords in tracked files or Git history).
35
+ - Code quality: Lint, format & type checks; Tests; CI; Commit checks (a project `/commit` that runs checks and a review); Code health (duplication, dead code, very large files); Errors & logging; Dependencies (committed lockfile, clean audit, no unused or abandoned packages).
36
+ - Design & UX: Design system; Consistent styling; Consistent animation (including reduced motion); Accessibility; Loading, empty & error states. These are not applicable to projects without a UI.
37
+ - Safety: Security audit; Data safety (reversible migrations, backups, recoverable destructive actions); Compliance (privacy policy, terms, cookies, payments, licences).
38
+ - Performance: Performance audit.
39
+ - Shipping: Build & release (clean build, versions, changelog, release steps); Error reporting (crashes reported somewhere the team sees them, findable logs, health checks).
40
+ - Handover: Don't embarrass me.
41
+
42
+ Several items load a bundled skill first: Secrets kept out, Dependencies and Security audit use `bulletproof`, Data safety uses `durable`, Compliance uses `compliance-guard`, and Performance audit uses `lean`.
43
+
44
+ ## Agent setup and `/init`
45
+
46
+ - 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.
47
+ - Its button runs `/init` (tooltip: "Run /init to create or update project instructions"). This is setup that writes project instructions, not an audit.
48
+ - 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.
49
+
50
+ ## Running a check
51
+
52
+ - Click **Check** on an item. It shows "Checking…" while the agent works, and checks wait if "The agent is busy".
53
+ - Every check apart from Agent setup is report-only ("Check and report, then choose what to fix"). The agent inspects the project and changes no project file. After reading the report, you decide what to fix and ask GG to do it.
54
+ - Each review states its scope and what it excluded.
55
+ - The verdict, date, commit and evidence are recorded in `.gg-checklist.json` at the project root. That file is meant to be committed, so the whole team shares one record.
56
+ - A check you ask for in normal chat ("check my tests", "run a security audit") can be recorded on the checklist too.
57
+ - A recorded result is due again after 30 days and then shows as "Review due". If the code has changed since a check, the result says so, so an old verdict isn't trusted blindly.
58
+
59
+ ## Don't embarrass me
60
+
61
+ - Don't embarrass me (Handover group) is the capstone. It reviews the whole project the way an experienced developer taking it over would, looking for the tells of inexperienced or unreviewed AI-generated work.
62
+ - It looks at what a newcomer sees first (root files, README, package metadata, recent commit messages), AI and prototype leftovers, two libraries doing one job, structure, silenced type or lint checks, defensive noise, framework misuse, hard-coded values, and whether the docs are honest.
63
+ - Findings are ranked by how quickly a reviewer would notice them and how much credibility each costs, with a fix for each. It also names what already looks professional.
64
+ - For secrets, security, tests and failing builds it points you to the dedicated items instead of re-auditing them. It never suggests rewriting published Git history.
65
+
66
+ ## Project health badge and panel
67
+
68
+ - **Project Health** in the **More** panel shows a **Project health** score from 0 to 100. It rescans automatically ("Rescans every 2 min"); while it runs you see shimmering ASCII placeholder rows, and a project it can't score shows **Not scored**.
69
+ - The panel shows the **Health breakdown** for each category.
70
+ - The score combines four categories: File size (files that are very long, weighted more when they change often), Repo hygiene (secret files that are committed or not ignored, large files, a missing .gitignore or lockfile), Safety net (checks such as tests and CI) and Debt markers (TODO-style markers).
71
+ - Some problems hold the score down whatever the rest looks like. A committed secret holds it at 40, and a failed latest CI run holds it at 70. The breakdown says which ("Held at …").
72
+ - The scan reports where a suspected secret is and what kind it is, never its value.
73
+ - In a very large project the scan may stop early and say "Partly scanned (large project)".
74
+ - **Review** next to a category hands it to the agent to look at and fix.
75
+ - Project health is a quick automatic scan. The Checklist is the deeper review, done by the agent.
76
+
77
+ ## How do I make sure my app is safe and ready to ship?
78
+
79
+ - Open **Checklist** and run the Safety group first: Security audit, Data safety and Compliance.
80
+ - Then run Secrets kept out, Dependencies, Git & GitHub and CI. Finish with Tests, Build & release, Error reporting and Don't embarrass me.
81
+ - Use the **Needs review** and **Findings** views to see what is left, then ask GG to fix the findings you choose.
82
+ - You don't need the Checklist to start. Asking in chat works too, for example "do a security review" or "is this ready to launch?".
83
+ - No review can promise that an app is fully secure. The security review reports what it checked, what it fixed and what is still open.
84
+
85
+ ## Commands you type with `!`
86
+
87
+ - In a project you haven't trusted, a command typed with `!` shows **Run this command?**, the command, and the folder it runs in with your normal permissions.
88
+ - Choose **Run once**, **Always allow in this project** or **Cancel**. Enter runs and Esc cancels.
89
+ - Once a project is trusted, the `!` menu says **Commands run here without asking.** Click **Ask first instead** to turn the question back on.
90
+
91
+ ## MCP servers and trust
92
+
93
+ - Servers from a project's `.gg/mcp.json` don't connect until that project is trusted, because a repo's config could otherwise run commands as soon as you open it. Adding a project-scope server for that project trusts it. Servers in `~/.gg/mcp.json` always connect.
94
+ - When a server sends its tool list, GG checks each tool's description. A tool is hidden, without asking you, if its description tells the agent to read secret or config files, hide something from you, steer how other tools are used, or take over another server's tool. A tool is also hidden if its description changes while the server's version stays the same. Hidden tools are listed under the server in the MCP screen.
95
+
96
+ ## Blocked skills
97
+
98
+ - Every user skill is scanned for safety when it loads. A skill matching a malware, data-exfiltration or hiding rule is not loaded, and you are not asked about it.
99
+ - A warning appears once: "Skill "<name>" blocked for safety: <reason>". It appears again only if the skill's content changes.
100
+
101
+ ## Package and command protection
102
+
103
+ - GG checks the packages the agent installs against a daily-updated malware feed and known-vulnerability data. It refuses packages with known malware or lookalike names.
104
+ - When an install pins an old version with a known high or critical vulnerability and a fixed release exists in the same line, GG moves it to that fixed release.
105
+ - Lockfiles already in your project are checked in the background too, so a package flagged after you installed it is still found. You then see a one-time warning such as "Infected package in this project, replacing it", and the agent is told to replace it.
106
+ - The agent refuses Git commands that would wipe uncommitted work, scripts piped from the internet straight into a shell, and catastrophic deletes such as wiping your home folder.
107
+ - When something is stopped, the chat shows one line starting "Blocked for safety:" and repeats fold into one row. The agent then tells you what it did instead.
108
+ - Web pages, files and tool results that try to give the agent orders are flagged, and hidden invisible text in files such as AGENTS.md is removed before the model reads it.
109
+
110
+ ## Files, secrets and the network
111
+
112
+ - By default the agent can't write outside the project (plus temporary files and GG's own folder). Before writing elsewhere it has to ask you. Folder shortcuts in a repo can't redirect its writes outside the project either.
113
+ - Secrets found in your environment are redacted from saved session history.
114
+ - Two optional settings in `~/.gg/settings.json` add more control: `networkMode` set to `allowlist` with `networkAllow` limits the agent's web fetch, web search and recognised network commands to listed hosts, and `sandboxMode` (`auto` or `workspace`) runs shell commands in an OS sandbox where supported. Both are off by default and aren't on the Settings screen. The network allowlist is not an OS sandbox. The sandbox can break piped commands on Linux and Git over SSH on macOS.
115
+
116
+ ## macOS Full Disk Access
117
+
118
+ - On macOS, the **Full Disk Access** row in **Settings** › **General** (under **Files**) shows **Granted** with a ✓, or a **Grant access…** button that opens System Settings. It is optional and only needed if you want GG to reach protected folders.
119
+
120
+ ## What the agent does without asking
121
+
122
+ - It reads, edits and runs commands inside your project to do what you asked, and it runs tests or type checks before saying it's done.
123
+ - It asks before writing outside the project. Destructive Git commands, malware installs and similar actions are blocked outright.
124
+ - Checklist checks never change your files.
125
+
126
+ ## Common questions
127
+
128
+ Q: How do I make sure my app is safe?
129
+ A: Open Checklist and run Security audit, Secrets kept out, Dependencies, Data safety and Compliance, or just ask GG for a security review in chat. You get a report of what was checked, what's wrong and what's still open, and then you choose what to fix.
130
+
131
+ Q: How do I know my app is ready to ship?
132
+ A: Work through the Checklist, especially Tests, CI, Build & release, Error reporting and Don't embarrass me, or ask GG for a launch-readiness check. The Needs review view shows what's left.
133
+
134
+ Q: Is GG Coder safe to run on my machine?
135
+ A: The agent works inside your project, asks before writing outside it, and blocks destructive Git commands, catastrophic deletes, piped install scripts and known-malware packages. No tool can promise perfect safety. For extra isolation, there are an optional network allowlist and shell sandbox.
136
+
137
+ Q: Why did GG block a skill?
138
+ A: Its safety scan matched a malware, data-exfiltration or hiding rule, so the skill wasn't loaded. The warning names the skill and the reason, and it shows again only if the skill changes.
139
+
140
+ Q: Will a checklist check change my code?
141
+ A: No. Every check except Agent setup is report-only. You decide what to fix afterwards.
142
+
143
+ Q: What's the difference between detected and passed?
144
+ A: Detected means GG noticed something exists, such as a CI file. Passed means the agent reviewed it and recorded a pass.
145
+
146
+ Q: Where are checklist results saved?
147
+ A: In `.gg-checklist.json` at the project root, with the verdict, date, commit and evidence. Commit it so your team shares the results.
148
+
149
+ Q: Why is a check I passed showing as due again?
150
+ A: Results come due again after 30 days, and a result also notes when the code has changed since it was checked.
151
+
152
+ Q: What does the Agent setup button do?
153
+ A: It runs `/init` to create or update the project's AGENTS.md-style instructions. It sets things up and is not an audit.
154
+
155
+ Q: Why is my project health score stuck at 40 or 70?
156
+ A: A committed secret holds the score at 40, and a failed latest CI run holds it at 70. Fix that issue and the next rescan lifts it.
157
+
158
+ Q: How often does project health update?
159
+ A: It rescans every 2 minutes. Click the badge for the breakdown, or click Review to have the agent work on a category.
160
+
161
+ Q: Why did GG ask before running my `!` command?
162
+ A: The project isn't trusted yet. Pick Always allow in this project to stop being asked there, or Ask first instead to turn the question back on.
163
+
164
+ Q: Why isn't my project's MCP server connecting?
165
+ A: Servers from a project's `.gg/mcp.json` connect only once that project is trusted. Adding the server for that project in the MCP screen trusts it.
166
+
167
+ Q: Why is an MCP tool missing?
168
+ A: The safety guard hid it because its description tried to steer the agent or changed without a version change. Hidden tools are listed under the server.
169
+
170
+ Q: GG warned me about an infected package. What now?
171
+ A: A package in your lockfile was flagged as malware after it was installed. The agent is told to replace it, and you can ask it to confirm the fix.
172
+
173
+ Q: Can I limit which websites the agent can reach?
174
+ A: Yes. Set `networkMode` to `allowlist` and list hosts in `networkAllow` in `~/.gg/settings.json`. It applies to GG's web tools and recognised network commands, so it is not a full sandbox.
175
+
176
+ Q: Does GG save my API keys in chat history?
177
+ A: Secrets from your environment are redacted from saved sessions, and project health never stores the value of a secret it finds.