@liangjie559567/ultrapower 5.5.39 → 5.5.40

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 (879) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/.claude-plugin/plugin.json +2 -8
  3. package/LICENSE +21 -21
  4. package/bridge/gyoshu_bridge.py +846 -846
  5. package/dist/mcp/adapters/memory-adapter.d.ts +1 -1
  6. package/dist/mcp/adapters/state-adapter.d.ts +5 -5
  7. package/dist/mcp/adapters/trace-adapter.d.ts +3 -3
  8. package/dist/mcp/config/schema.d.ts +3 -3
  9. package/dist/mcp/config-schema.d.ts +3 -3
  10. package/docs/CLAUDE.md +1 -1
  11. package/docs/INSTALL.md +2 -2
  12. package/docs/REFERENCE.md +1 -1
  13. package/docs/RELEASE.md +49 -0
  14. package/docs/api/assets/highlight.css +85 -85
  15. package/docs/api/assets/style.css +1633 -1633
  16. package/docs/api/classes/ContextCollector.html +21 -21
  17. package/docs/api/functions/activateUltrawork.html +2 -2
  18. package/docs/api/functions/addCustomNote.html +5 -5
  19. package/docs/api/functions/addDirective.html +2 -2
  20. package/docs/api/functions/addManualEntry.html +2 -2
  21. package/docs/api/functions/addPattern.html +3 -3
  22. package/docs/api/functions/addWorker.html +2 -2
  23. package/docs/api/functions/addWorkingMemoryEntry.html +2 -2
  24. package/docs/api/functions/analyzeContextUsage.html +2 -2
  25. package/docs/api/functions/appendProgress.html +2 -2
  26. package/docs/api/functions/appendSessionId.html +2 -2
  27. package/docs/api/functions/applyCommentFilters.html +3 -3
  28. package/docs/api/functions/assignFileToWorker.html +2 -2
  29. package/docs/api/functions/backgroundUpdateCheck.html +2 -2
  30. package/docs/api/functions/buildAxiomBootContext.html +1 -1
  31. package/docs/api/functions/buildBoulderContinuation.html +2 -2
  32. package/docs/api/functions/buildDelegationTable.html +2 -2
  33. package/docs/api/functions/buildKeyTriggersSection.html +2 -2
  34. package/docs/api/functions/buildOrchestratorReminder.html +2 -2
  35. package/docs/api/functions/buildUseAvoidSection.html +2 -2
  36. package/docs/api/functions/buildVerificationReminder.html +2 -2
  37. package/docs/api/functions/canResumeAutopilot.html +10 -10
  38. package/docs/api/functions/canStartMode.html +5 -5
  39. package/docs/api/functions/cancelAutopilot.html +3 -3
  40. package/docs/api/functions/cancelUltraQA.html +2 -2
  41. package/docs/api/functions/checkBackgroundNotifications.html +2 -2
  42. package/docs/api/functions/checkBoulderContinuation.html +2 -2
  43. package/docs/api/functions/checkDuplicateTriggers.html +2 -2
  44. package/docs/api/functions/checkExpertGate.html +1 -1
  45. package/docs/api/functions/checkForComments.html +2 -2
  46. package/docs/api/functions/checkForUpdates.html +2 -2
  47. package/docs/api/functions/checkIncompleteTodos.html +13 -13
  48. package/docs/api/functions/checkPersistentModes.html +3 -3
  49. package/docs/api/functions/cleanupOrphanedState.html +2 -2
  50. package/docs/api/functions/cleanupStaleAgents.html +2 -2
  51. package/docs/api/functions/cleanupTransientState.html +2 -2
  52. package/docs/api/functions/clearAgentUsageState.html +1 -1
  53. package/docs/api/functions/clearAllModeStates.html +2 -2
  54. package/docs/api/functions/clearAutopilot.html +2 -2
  55. package/docs/api/functions/clearAutopilotState.html +2 -2
  56. package/docs/api/functions/clearBeadsContext.html +2 -2
  57. package/docs/api/functions/clearBoulderState.html +2 -2
  58. package/docs/api/functions/clearDetectionState.html +2 -2
  59. package/docs/api/functions/clearInjectedPaths.html +2 -2
  60. package/docs/api/functions/clearInjectedRules.html +2 -2
  61. package/docs/api/functions/clearLinkedUltraworkState.html +2 -2
  62. package/docs/api/functions/clearModeState.html +10 -10
  63. package/docs/api/functions/clearProjectMemorySession.html +4 -4
  64. package/docs/api/functions/clearRalphState.html +2 -2
  65. package/docs/api/functions/clearRapidFireDebounce.html +2 -2
  66. package/docs/api/functions/clearSkillSession.html +2 -2
  67. package/docs/api/functions/clearThinkModeState.html +2 -2
  68. package/docs/api/functions/clearTrackingState.html +2 -2
  69. package/docs/api/functions/clearUltraQAState.html +2 -2
  70. package/docs/api/functions/clearVerificationState.html +3 -3
  71. package/docs/api/functions/commandExists.html +2 -2
  72. package/docs/api/functions/compareVersions.html +3 -3
  73. package/docs/api/functions/completeUltraQA.html +2 -2
  74. package/docs/api/functions/completeUltrapilot.html +2 -2
  75. package/docs/api/functions/completeWorker.html +2 -2
  76. package/docs/api/functions/containsTokenLimitError.html +2 -2
  77. package/docs/api/functions/createAgentToolRestrictions.html +3 -3
  78. package/docs/api/functions/createAgentUsageReminderHook.html +1 -1
  79. package/docs/api/functions/createAutoSlashCommandHook.html +7 -7
  80. package/docs/api/functions/createBackgroundNotificationHook.html +7 -7
  81. package/docs/api/functions/createBackgroundTaskManager.html +2 -2
  82. package/docs/api/functions/createBoulderState.html +2 -2
  83. package/docs/api/functions/createCommentCheckerHook.html +6 -6
  84. package/docs/api/functions/createCompactCheckpoint.html +2 -2
  85. package/docs/api/functions/createContentHash.html +2 -2
  86. package/docs/api/functions/createContextInjectorHook.html +7 -7
  87. package/docs/api/functions/createDirectoryReadmeInjectorHook.html +9 -9
  88. package/docs/api/functions/createEmptyMessageSanitizerHook.html +6 -6
  89. package/docs/api/functions/createEnvContext.html +2 -2
  90. package/docs/api/functions/createHookOutput.html +4 -4
  91. package/docs/api/functions/createLearnedSkillsHook.html +6 -6
  92. package/docs/api/functions/createMagicKeywordProcessor.html +2 -2
  93. package/docs/api/functions/createModeMarker.html +6 -6
  94. package/docs/api/functions/createPrd.html +2 -2
  95. package/docs/api/functions/createPreemptiveCompactionHook.html +6 -6
  96. package/docs/api/functions/createRalphLoopHook.html +2 -2
  97. package/docs/api/functions/createRecoveryHook.html +7 -7
  98. package/docs/api/functions/createRulesInjectorHook.html +8 -8
  99. package/docs/api/functions/createSimplePrd.html +2 -2
  100. package/docs/api/functions/createSisyphusOrchestratorHook.html +7 -7
  101. package/docs/api/functions/createSisyphusSession.html +7 -7
  102. package/docs/api/functions/createThinkModeHook.html +7 -7
  103. package/docs/api/functions/createThinkingBlockValidatorHook.html +1 -1
  104. package/docs/api/functions/createTodoContinuationHook.html +2 -2
  105. package/docs/api/functions/createUltraworkStateHook.html +2 -2
  106. package/docs/api/functions/deactivateUltrawork.html +8 -8
  107. package/docs/api/functions/decayHotPaths.html +2 -2
  108. package/docs/api/functions/decomposeTask.html +11 -11
  109. package/docs/api/functions/deepMerge.html +2 -2
  110. package/docs/api/functions/detectArchitectApproval.html +2 -2
  111. package/docs/api/functions/detectArchitectRejection.html +2 -2
  112. package/docs/api/functions/detectContextLimitError.html +2 -2
  113. package/docs/api/functions/detectContextLimitErrorInText.html +2 -2
  114. package/docs/api/functions/detectDirectivesFromMessage.html +2 -2
  115. package/docs/api/functions/detectEditError.html +2 -2
  116. package/docs/api/functions/detectEditErrorInOutput.html +2 -2
  117. package/docs/api/functions/detectEditErrorInText.html +2 -2
  118. package/docs/api/functions/detectExtractableMoment.html +2 -2
  119. package/docs/api/functions/detectKeywordsWithType.html +11 -11
  120. package/docs/api/functions/detectMagicKeywords.html +2 -2
  121. package/docs/api/functions/detectProjectEnvironment.html +2 -2
  122. package/docs/api/functions/detectRecoverableError.html +3 -3
  123. package/docs/api/functions/detectSessionErrorType.html +2 -2
  124. package/docs/api/functions/detectSlashCommand.html +3 -3
  125. package/docs/api/functions/detectThinkKeyword.html +2 -2
  126. package/docs/api/functions/detectUltrathinkKeyword.html +2 -2
  127. package/docs/api/functions/discoverAllCommands.html +2 -2
  128. package/docs/api/functions/enablePrdMode.html +2 -2
  129. package/docs/api/functions/enhancePrompt.html +2 -2
  130. package/docs/api/functions/ensureAutopilotDir.html +2 -2
  131. package/docs/api/functions/ensureDirectoryStructure.html +2 -2
  132. package/docs/api/functions/ensureModeStateDir.html +2 -2
  133. package/docs/api/functions/ensureSkillsDir.html +2 -2
  134. package/docs/api/functions/estimateTokens.html +2 -2
  135. package/docs/api/functions/executeSlashCommand.html +2 -2
  136. package/docs/api/functions/expandCommand.html +8 -8
  137. package/docs/api/functions/expandCommandPrompt.html +6 -6
  138. package/docs/api/functions/expandCommands.html +2 -2
  139. package/docs/api/functions/exportSessionSummary.html +2 -2
  140. package/docs/api/functions/exportWisdomToNotepad.html +2 -2
  141. package/docs/api/functions/extractPromptText.html +11 -11
  142. package/docs/api/functions/extractSlashPromptText.html +2 -2
  143. package/docs/api/functions/extractThinkPromptText.html +2 -2
  144. package/docs/api/functions/failWorker.html +2 -2
  145. package/docs/api/functions/findCommand.html +2 -2
  146. package/docs/api/functions/findMatchingSkills.html +2 -2
  147. package/docs/api/functions/findPlannerPlans.html +3 -3
  148. package/docs/api/functions/findPrdPath.html +2 -2
  149. package/docs/api/functions/findPreviousThinkingContent.html +1 -1
  150. package/docs/api/functions/findProgressPath.html +2 -2
  151. package/docs/api/functions/findProjectRoot.html +3 -3
  152. package/docs/api/functions/findRecoveryEmptyMessages.html +2 -2
  153. package/docs/api/functions/findRecoveryOrphanThinking.html +2 -2
  154. package/docs/api/functions/findRecoveryThinkingBlocks.html +2 -2
  155. package/docs/api/functions/findRuleFiles.html +4 -4
  156. package/docs/api/functions/findSkillFiles.html +3 -3
  157. package/docs/api/functions/formatCancelMessage.html +2 -2
  158. package/docs/api/functions/formatCompactSummary.html +2 -2
  159. package/docs/api/functions/formatContextSummary.html +3 -3
  160. package/docs/api/functions/formatDirectivesForContext.html +2 -2
  161. package/docs/api/functions/formatFailureSummary.html +2 -2
  162. package/docs/api/functions/formatFile.html +2 -2
  163. package/docs/api/functions/formatFileChanges.html +2 -2
  164. package/docs/api/functions/formatFileList.html +2 -2
  165. package/docs/api/functions/formatFullContext.html +2 -2
  166. package/docs/api/functions/formatFullNotepad.html +2 -2
  167. package/docs/api/functions/formatLearningsForContext.html +2 -2
  168. package/docs/api/functions/formatNextStoryPrompt.html +2 -2
  169. package/docs/api/functions/formatNotepadContext.html +2 -2
  170. package/docs/api/functions/formatPatternsForContext.html +2 -2
  171. package/docs/api/functions/formatPrd.html +2 -2
  172. package/docs/api/functions/formatPrdStatus.html +2 -2
  173. package/docs/api/functions/formatPreCompactSummary.html +2 -2
  174. package/docs/api/functions/formatProgressForContext.html +2 -2
  175. package/docs/api/functions/formatProgressMessage.html +2 -2
  176. package/docs/api/functions/formatStory.html +2 -2
  177. package/docs/api/functions/formatSummary.html +2 -2
  178. package/docs/api/functions/formatUpdateNotification.html +2 -2
  179. package/docs/api/functions/formatValidationResults.html +2 -2
  180. package/docs/api/functions/generateExtractionPrompt.html +2 -2
  181. package/docs/api/functions/generateSkillFrontmatter.html +2 -2
  182. package/docs/api/functions/generateSummary.html +2 -2
  183. package/docs/api/functions/getActiveAgentCount.html +2 -2
  184. package/docs/api/functions/getActiveExclusiveMode.html +4 -4
  185. package/docs/api/functions/getActiveModes.html +2 -2
  186. package/docs/api/functions/getActivePlanPath.html +2 -2
  187. package/docs/api/functions/getAgentDefinitions.html +2 -2
  188. package/docs/api/functions/getAgentsByType.html +2 -2
  189. package/docs/api/functions/getAllCommands.html +2 -2
  190. package/docs/api/functions/getAllModeStatuses.html +5 -5
  191. package/docs/api/functions/getAllSkills.html +2 -2
  192. package/docs/api/functions/getArchitectRejectionContinuationPrompt.html +2 -2
  193. package/docs/api/functions/getArchitectVerificationPrompt.html +2 -2
  194. package/docs/api/functions/getAutoFormatMessage.html +2 -2
  195. package/docs/api/functions/getAutopilotStateAge.html +3 -3
  196. package/docs/api/functions/getAvailableAgents.html +2 -2
  197. package/docs/api/functions/getAxiomDir.html +1 -1
  198. package/docs/api/functions/getBackgroundTaskGuidance.html +4 -4
  199. package/docs/api/functions/getBeadsContextConfig.html +2 -2
  200. package/docs/api/functions/getBeadsInstructions.html +2 -2
  201. package/docs/api/functions/getBoulderFilePath.html +2 -2
  202. package/docs/api/functions/getCheckpointPath.html +2 -2
  203. package/docs/api/functions/getClaudeThinkingConfig.html +3 -3
  204. package/docs/api/functions/getCommand.html +2 -2
  205. package/docs/api/functions/getCommandsDir.html +2 -2
  206. package/docs/api/functions/getCompactionQueueDepth.html +3 -3
  207. package/docs/api/functions/getCompletedWorkers.html +2 -2
  208. package/docs/api/functions/getDefaultMcpServers.html +1 -1
  209. package/docs/api/functions/getDefaultModelForCategory.html +2 -2
  210. package/docs/api/functions/getDetectionStats.html +2 -2
  211. package/docs/api/functions/getDirectPlanningPrompt.html +3 -3
  212. package/docs/api/functions/getExecutionPrompt.html +2 -2
  213. package/docs/api/functions/getExpansionPrompt.html +3 -3
  214. package/docs/api/functions/getExpertGateMessage.html +1 -1
  215. package/docs/api/functions/getFailedWorkers.html +2 -2
  216. package/docs/api/functions/getFormatter.html +2 -2
  217. package/docs/api/functions/getGitDiffStats.html +2 -2
  218. package/docs/api/functions/getGlobalStateFilePath.html +4 -4
  219. package/docs/api/functions/getGoalCommand.html +2 -2
  220. package/docs/api/functions/getHighVariant.html +3 -3
  221. package/docs/api/functions/getInstallInfo.html +2 -2
  222. package/docs/api/functions/getInstalledVersion.html +2 -2
  223. package/docs/api/functions/getIssuesToFix.html +2 -2
  224. package/docs/api/functions/getLastDetection.html +2 -2
  225. package/docs/api/functions/getLearnerConfigValue.html +2 -2
  226. package/docs/api/functions/getLinter.html +2 -2
  227. package/docs/api/functions/getManualSection.html +2 -2
  228. package/docs/api/functions/getMemoryFilePaths.html +1 -1
  229. package/docs/api/functions/getModeMarkerFilePath.html +2 -2
  230. package/docs/api/functions/getModeStateFilePath.html +2 -2
  231. package/docs/api/functions/getNextStory.html +2 -2
  232. package/docs/api/functions/getNotepadPath.html +2 -2
  233. package/docs/api/functions/getNotepadStats.html +2 -2
  234. package/docs/api/functions/getOmcPrdPath.html +2 -2
  235. package/docs/api/functions/getOmcProgressPath.html +2 -2
  236. package/docs/api/functions/getOmcSystemPrompt.html +2 -2
  237. package/docs/api/functions/getOmcToolNames.html +3 -3
  238. package/docs/api/functions/getPatterns.html +2 -2
  239. package/docs/api/functions/getPhasePrompt.html +2 -2
  240. package/docs/api/functions/getPlanName.html +2 -2
  241. package/docs/api/functions/getPlanPath.html +2 -2
  242. package/docs/api/functions/getPlanProgress.html +2 -2
  243. package/docs/api/functions/getPlanSummaries.html +2 -2
  244. package/docs/api/functions/getPrdCompletionStatus.html +2 -2
  245. package/docs/api/functions/getPrdPath.html +2 -2
  246. package/docs/api/functions/getPrdStatus.html +2 -2
  247. package/docs/api/functions/getPreCommitReminderMessage.html +2 -2
  248. package/docs/api/functions/getPriorityContext.html +2 -2
  249. package/docs/api/functions/getProgressContext.html +2 -2
  250. package/docs/api/functions/getProgressPath.html +2 -2
  251. package/docs/api/functions/getPromotionCandidates.html +2 -2
  252. package/docs/api/functions/getQAPrompt.html +2 -2
  253. package/docs/api/functions/getRalphContext.html +3 -3
  254. package/docs/api/functions/getReadmesForPath.html +2 -2
  255. package/docs/api/functions/getRecentLearnings.html +2 -2
  256. package/docs/api/functions/getRulesForPath.html +2 -2
  257. package/docs/api/functions/getRunningAgents.html +2 -2
  258. package/docs/api/functions/getRunningWorkers.html +2 -2
  259. package/docs/api/functions/getSessionTokenEstimate.html +2 -2
  260. package/docs/api/functions/getSkillsDir.html +2 -2
  261. package/docs/api/functions/getSpecPath.html +2 -2
  262. package/docs/api/functions/getStaleAgents.html +2 -2
  263. package/docs/api/functions/getStateDir.html +2 -2
  264. package/docs/api/functions/getStory.html +2 -2
  265. package/docs/api/functions/getSubagentStateFilePath.html +2 -2
  266. package/docs/api/functions/getThinkModeState.html +2 -2
  267. package/docs/api/functions/getThinkingConfig.html +3 -3
  268. package/docs/api/functions/getTopHotPaths.html +2 -2
  269. package/docs/api/functions/getTrackingStats.html +2 -2
  270. package/docs/api/functions/getTransitionPrompt.html +2 -2
  271. package/docs/api/functions/getUltraworkPersistenceMessage.html +2 -2
  272. package/docs/api/functions/getValidationPrompt.html +2 -2
  273. package/docs/api/functions/getValidationSpawnPrompt.html +2 -2
  274. package/docs/api/functions/getValidationStats.html +1 -1
  275. package/docs/api/functions/getValidationStatus.html +2 -2
  276. package/docs/api/functions/getWorkingMemory.html +2 -2
  277. package/docs/api/functions/handleBackgroundEvent.html +3 -3
  278. package/docs/api/functions/handleContextWindowRecovery.html +2 -2
  279. package/docs/api/functions/handleEditErrorRecovery.html +2 -2
  280. package/docs/api/functions/handlePermissionRequest.html +2 -2
  281. package/docs/api/functions/handleRecovery.html +10 -10
  282. package/docs/api/functions/handleSessionEnd.html +2 -2
  283. package/docs/api/functions/handleSessionRecovery.html +2 -2
  284. package/docs/api/functions/handleSharedFiles.html +7 -7
  285. package/docs/api/functions/handleSubagentStart.html +2 -2
  286. package/docs/api/functions/handleSubagentStop.html +2 -2
  287. package/docs/api/functions/hasBoulder.html +2 -2
  288. package/docs/api/functions/hasContentParts.html +1 -1
  289. package/docs/api/functions/hasModeState.html +3 -3
  290. package/docs/api/functions/hasPrd.html +2 -2
  291. package/docs/api/functions/hasTextContent.html +2 -2
  292. package/docs/api/functions/hasValidContent.html +3 -3
  293. package/docs/api/functions/incrementAgentCount.html +2 -2
  294. package/docs/api/functions/incrementRalphIteration.html +2 -2
  295. package/docs/api/functions/incrementReinforcement.html +2 -2
  296. package/docs/api/functions/initAutopilot.html +2 -2
  297. package/docs/api/functions/initNotepad.html +2 -2
  298. package/docs/api/functions/initPrd.html +2 -2
  299. package/docs/api/functions/initProgress.html +2 -2
  300. package/docs/api/functions/initUltrapilot.html +2 -2
  301. package/docs/api/functions/injectContextIntoText.html +2 -2
  302. package/docs/api/functions/injectPendingContext.html +3 -3
  303. package/docs/api/functions/injectRecoveryTextPart.html +2 -2
  304. package/docs/api/functions/install.html +2 -2
  305. package/docs/api/functions/integrateResults.html +5 -5
  306. package/docs/api/functions/isActiveModeRunning.html +2 -2
  307. package/docs/api/functions/isAllowedPath.html +2 -2
  308. package/docs/api/functions/isAlreadyHighVariant.html +2 -2
  309. package/docs/api/functions/isAutopilotActive.html +2 -2
  310. package/docs/api/functions/isAxiomEnabled.html +1 -1
  311. package/docs/api/functions/isClaudeInstalled.html +3 -3
  312. package/docs/api/functions/isClaudeModel.html +2 -2
  313. package/docs/api/functions/isCompactionInProgress.html +3 -3
  314. package/docs/api/functions/isDuplicateByContentHash.html +2 -2
  315. package/docs/api/functions/isDuplicateByRealPath.html +2 -2
  316. package/docs/api/functions/isExcludedCommand.html +2 -2
  317. package/docs/api/functions/isExtendedThinkingModel.html +1 -1
  318. package/docs/api/functions/isFileOwnedByWorker.html +2 -2
  319. package/docs/api/functions/isFormatterAvailable.html +2 -2
  320. package/docs/api/functions/isGptModel.html +2 -2
  321. package/docs/api/functions/isInstalled.html +2 -2
  322. package/docs/api/functions/isLearnerEnabled.html +2 -2
  323. package/docs/api/functions/isModeActive.html +6 -6
  324. package/docs/api/functions/isNonInteractive.html +1 -1
  325. package/docs/api/functions/isRecoverableError.html +2 -2
  326. package/docs/api/functions/isSafeCommand.html +2 -2
  327. package/docs/api/functions/isSessionRecoverable.html +2 -2
  328. package/docs/api/functions/isSharedFile.html +2 -2
  329. package/docs/api/functions/isThinkModeActive.html +2 -2
  330. package/docs/api/functions/isToolPart.html +2 -2
  331. package/docs/api/functions/isUltraQAActive.html +1 -1
  332. package/docs/api/functions/isWriteEditTool.html +2 -2
  333. package/docs/api/functions/learnFromToolOutput.html +7 -7
  334. package/docs/api/functions/lintFile.html +2 -2
  335. package/docs/api/functions/listAvailableCommands.html +2 -2
  336. package/docs/api/functions/listCommands.html +2 -2
  337. package/docs/api/functions/listPromotableLearnings.html +2 -2
  338. package/docs/api/functions/loadAgentPrompt.html +7 -7
  339. package/docs/api/functions/loadAgentUsageState.html +1 -1
  340. package/docs/api/functions/loadAllSkills.html +3 -3
  341. package/docs/api/functions/loadConfig.html +2 -2
  342. package/docs/api/functions/loadInjectedPaths.html +2 -2
  343. package/docs/api/functions/loadInjectedRules.html +2 -2
  344. package/docs/api/functions/loadLearnerConfig.html +2 -2
  345. package/docs/api/functions/loadProjectMemory.html +3 -3
  346. package/docs/api/functions/loadSkillById.html +2 -2
  347. package/docs/api/functions/mapDirectoryStructure.html +2 -2
  348. package/docs/api/functions/markStoryComplete.html +2 -2
  349. package/docs/api/functions/markStoryIncomplete.html +2 -2
  350. package/docs/api/functions/mergeAgentConfig.html +2 -2
  351. package/docs/api/functions/parseAxiomState.html +1 -1
  352. package/docs/api/functions/parseContextLimitError.html +2 -2
  353. package/docs/api/functions/parseProgress.html +2 -2
  354. package/docs/api/functions/parseRuleFrontmatter.html +10 -10
  355. package/docs/api/functions/parseSkillFile.html +2 -2
  356. package/docs/api/functions/parseSlashCommand.html +2 -2
  357. package/docs/api/functions/parseTokenLimitError.html +2 -2
  358. package/docs/api/functions/performUpdate.html +2 -2
  359. package/docs/api/functions/prependRecoveryThinkingPart.html +2 -2
  360. package/docs/api/functions/prependThinkingBlock.html +1 -1
  361. package/docs/api/functions/processAxiomBoot.html +1 -1
  362. package/docs/api/functions/processAxiomGuards.html +1 -1
  363. package/docs/api/functions/processBackgroundNotification.html +2 -2
  364. package/docs/api/functions/processBackgroundNotificationHook.html +2 -2
  365. package/docs/api/functions/processEditOutput.html +2 -2
  366. package/docs/api/functions/processHook.html +3 -3
  367. package/docs/api/functions/processMessageForSkills.html +2 -2
  368. package/docs/api/functions/processOrchestratorPostTool.html +3 -3
  369. package/docs/api/functions/processOrchestratorPreTool.html +3 -3
  370. package/docs/api/functions/processPermissionRequest.html +2 -2
  371. package/docs/api/functions/processPreCompact.html +6 -6
  372. package/docs/api/functions/processProjectMemoryPreCompact.html +3 -3
  373. package/docs/api/functions/processResponseForDetection.html +3 -3
  374. package/docs/api/functions/processSessionEnd.html +2 -2
  375. package/docs/api/functions/processSetup.html +2 -2
  376. package/docs/api/functions/processSetupInit.html +2 -2
  377. package/docs/api/functions/processSetupMaintenance.html +2 -2
  378. package/docs/api/functions/processSlashCommand.html +2 -2
  379. package/docs/api/functions/processSubagentStart.html +2 -2
  380. package/docs/api/functions/processSubagentStop.html +2 -2
  381. package/docs/api/functions/processThinkMode.html +3 -3
  382. package/docs/api/functions/promoteLearning.html +2 -2
  383. package/docs/api/functions/pruneOldEntries.html +2 -2
  384. package/docs/api/functions/pruneOldStateFiles.html +2 -2
  385. package/docs/api/functions/readActiveContext.html +1 -1
  386. package/docs/api/functions/readAutopilotState.html +2 -2
  387. package/docs/api/functions/readBoulderState.html +2 -2
  388. package/docs/api/functions/readModeMarker.html +4 -4
  389. package/docs/api/functions/readNotepad.html +2 -2
  390. package/docs/api/functions/readPrd.html +2 -2
  391. package/docs/api/functions/readProgress.html +2 -2
  392. package/docs/api/functions/readProgressRaw.html +2 -2
  393. package/docs/api/functions/readProjectDecisions.html +1 -1
  394. package/docs/api/functions/readRalphState.html +2 -2
  395. package/docs/api/functions/readRecoveryMessages.html +2 -2
  396. package/docs/api/functions/readRecoveryParts.html +2 -2
  397. package/docs/api/functions/readTrackingState.html +3 -3
  398. package/docs/api/functions/readUltraQAState.html +2 -2
  399. package/docs/api/functions/readUltrapilotState.html +2 -2
  400. package/docs/api/functions/readUltraworkState.html +4 -4
  401. package/docs/api/functions/readUserPreferences.html +1 -1
  402. package/docs/api/functions/readVerificationState.html +3 -3
  403. package/docs/api/functions/recordArchitectFeedback.html +2 -2
  404. package/docs/api/functions/recordConflict.html +2 -2
  405. package/docs/api/functions/recordFailure.html +2 -2
  406. package/docs/api/functions/recordHookFire.html +2 -2
  407. package/docs/api/functions/recordHookResult.html +2 -2
  408. package/docs/api/functions/recordKeywordDetected.html +2 -2
  409. package/docs/api/functions/recordModeChange.html +2 -2
  410. package/docs/api/functions/recordPattern.html +2 -2
  411. package/docs/api/functions/recordSessionMetrics.html +2 -2
  412. package/docs/api/functions/recordSkillActivated.html +2 -2
  413. package/docs/api/functions/recordSkillInvoked.html +2 -2
  414. package/docs/api/functions/recordStoryProgress.html +2 -2
  415. package/docs/api/functions/recordValidationVerdict.html +2 -2
  416. package/docs/api/functions/registerBeadsContext.html +3 -3
  417. package/docs/api/functions/registerProjectMemoryContext.html +6 -6
  418. package/docs/api/functions/removeCodeBlocks.html +12 -12
  419. package/docs/api/functions/removeModeMarker.html +5 -5
  420. package/docs/api/functions/removeSlashCodeBlocks.html +2 -2
  421. package/docs/api/functions/removeThinkCodeBlocks.html +2 -2
  422. package/docs/api/functions/replaceRecoveryEmptyTextParts.html +2 -2
  423. package/docs/api/functions/rescanProjectEnvironment.html +4 -4
  424. package/docs/api/functions/resetSessionTokenEstimate.html +2 -2
  425. package/docs/api/functions/resumeAutopilot.html +2 -2
  426. package/docs/api/functions/runPreCommitChecks.html +2 -2
  427. package/docs/api/functions/runTests.html +2 -2
  428. package/docs/api/functions/runTypeCheck.html +2 -2
  429. package/docs/api/functions/sanitizeMessage.html +2 -2
  430. package/docs/api/functions/sanitizeMessages.html +2 -2
  431. package/docs/api/functions/saveAgentUsageState.html +1 -1
  432. package/docs/api/functions/saveInjectedPaths.html +2 -2
  433. package/docs/api/functions/saveInjectedRules.html +2 -2
  434. package/docs/api/functions/saveLearnerConfig.html +2 -2
  435. package/docs/api/functions/saveModeSummary.html +2 -2
  436. package/docs/api/functions/saveProjectMemory.html +3 -3
  437. package/docs/api/functions/saveVersionMetadata.html +2 -2
  438. package/docs/api/functions/setCurrentStory.html +2 -2
  439. package/docs/api/functions/setEnvironmentVariables.html +2 -2
  440. package/docs/api/functions/setLearnerConfigValue.html +2 -2
  441. package/docs/api/functions/setPriorityContext.html +2 -2
  442. package/docs/api/functions/shouldActivateThinkMode.html +3 -3
  443. package/docs/api/functions/shouldActivateUltrathink.html +2 -2
  444. package/docs/api/functions/shouldApplyRule.html +2 -2
  445. package/docs/api/functions/shouldCheckForUpdates.html +2 -2
  446. package/docs/api/functions/shouldCompleteByPrd.html +2 -2
  447. package/docs/api/functions/shouldPromptExtraction.html +2 -2
  448. package/docs/api/functions/shouldReinforceUltrawork.html +2 -2
  449. package/docs/api/functions/shouldRetryValidation.html +2 -2
  450. package/docs/api/functions/shouldRunInBackground.html +8 -8
  451. package/docs/api/functions/spawnWorkers.html +7 -7
  452. package/docs/api/functions/startUltraQA.html +3 -3
  453. package/docs/api/functions/startUltrapilot.html +7 -7
  454. package/docs/api/functions/startValidationRound.html +2 -2
  455. package/docs/api/functions/startVerification.html +2 -2
  456. package/docs/api/functions/startsWithThinkingBlock.html +1 -1
  457. package/docs/api/functions/stopUltraQA.html +2 -2
  458. package/docs/api/functions/stripRecoveryThinkingParts.html +2 -2
  459. package/docs/api/functions/toSdkMcpFormat.html +2 -2
  460. package/docs/api/functions/trackAccess.html +2 -2
  461. package/docs/api/functions/trackProgress.html +5 -5
  462. package/docs/api/functions/transitionPhase.html +2 -2
  463. package/docs/api/functions/transitionRalphToUltraQA.html +9 -9
  464. package/docs/api/functions/transitionToComplete.html +2 -2
  465. package/docs/api/functions/transitionToFailed.html +2 -2
  466. package/docs/api/functions/transitionUltraQAToValidation.html +2 -2
  467. package/docs/api/functions/updateDirectoryAccess.html +2 -2
  468. package/docs/api/functions/updateExecution.html +2 -2
  469. package/docs/api/functions/updateExpansion.html +2 -2
  470. package/docs/api/functions/updatePlanning.html +2 -2
  471. package/docs/api/functions/updateQA.html +2 -2
  472. package/docs/api/functions/updateValidation.html +2 -2
  473. package/docs/api/functions/updateWorkerState.html +2 -2
  474. package/docs/api/functions/validateAgentConfig.html +2 -2
  475. package/docs/api/functions/validateCommitMessage.html +2 -2
  476. package/docs/api/functions/validateConfigFiles.html +2 -2
  477. package/docs/api/functions/validateExtractionRequest.html +2 -2
  478. package/docs/api/functions/validateMessage.html +1 -1
  479. package/docs/api/functions/validateMessages.html +1 -1
  480. package/docs/api/functions/validateSkillMetadata.html +2 -2
  481. package/docs/api/functions/writeAutopilotState.html +2 -2
  482. package/docs/api/functions/writeBoulderState.html +2 -2
  483. package/docs/api/functions/writePrd.html +2 -2
  484. package/docs/api/functions/writeRalphState.html +2 -2
  485. package/docs/api/functions/writeSkill.html +2 -2
  486. package/docs/api/functions/writeTrackingState.html +5 -5
  487. package/docs/api/functions/writeUltraQAState.html +2 -2
  488. package/docs/api/functions/writeUltrapilotState.html +2 -2
  489. package/docs/api/functions/writeUltraworkState.html +2 -2
  490. package/docs/api/functions/writeVerificationState.html +2 -2
  491. package/docs/api/hierarchy.html +1 -1
  492. package/docs/api/index.html +843 -843
  493. package/docs/api/interfaces/AgentConfig.html +18 -18
  494. package/docs/api/interfaces/AgentOverrideConfig.html +10 -10
  495. package/docs/api/interfaces/AgentPromptMetadata.html +19 -19
  496. package/docs/api/interfaces/AgentState.html +5 -5
  497. package/docs/api/interfaces/AgentUsageState.html +8 -8
  498. package/docs/api/interfaces/AutoSlashCommandHookInput.html +5 -5
  499. package/docs/api/interfaces/AutoSlashCommandHookOutput.html +3 -3
  500. package/docs/api/interfaces/AutoSlashCommandResult.html +5 -5
  501. package/docs/api/interfaces/AutopilotConfig.html +26 -26
  502. package/docs/api/interfaces/AutopilotExecution.html +16 -16
  503. package/docs/api/interfaces/AutopilotExpansion.html +12 -12
  504. package/docs/api/interfaces/AutopilotPlanning.html +8 -8
  505. package/docs/api/interfaces/AutopilotQA.html +12 -12
  506. package/docs/api/interfaces/AutopilotResult.html +10 -10
  507. package/docs/api/interfaces/AutopilotState.html +36 -36
  508. package/docs/api/interfaces/AutopilotSummary.html +16 -16
  509. package/docs/api/interfaces/AutopilotValidation.html +10 -10
  510. package/docs/api/interfaces/AutopilotValidationResult.html +8 -8
  511. package/docs/api/interfaces/AvailableAgent.html +5 -5
  512. package/docs/api/interfaces/AxiomBootInput.html +3 -3
  513. package/docs/api/interfaces/AxiomBootOutput.html +4 -4
  514. package/docs/api/interfaces/AxiomGuardsInput.html +4 -4
  515. package/docs/api/interfaces/AxiomGuardsOutput.html +4 -4
  516. package/docs/api/interfaces/AxiomMemoryFiles.html +5 -5
  517. package/docs/api/interfaces/AxiomState.html +8 -8
  518. package/docs/api/interfaces/BackgroundNotificationHookConfig.html +11 -11
  519. package/docs/api/interfaces/BackgroundNotificationHookInput.html +8 -8
  520. package/docs/api/interfaces/BackgroundNotificationHookOutput.html +8 -8
  521. package/docs/api/interfaces/BackgroundTask.html +7 -7
  522. package/docs/api/interfaces/BackgroundTaskManager.html +26 -26
  523. package/docs/api/interfaces/BeadsContextConfig.html +4 -4
  524. package/docs/api/interfaces/BoulderState.html +12 -12
  525. package/docs/api/interfaces/BuildInfo.html +6 -6
  526. package/docs/api/interfaces/CanStartResult.html +4 -4
  527. package/docs/api/interfaces/CancelResult.html +4 -4
  528. package/docs/api/interfaces/ClaudeThinkingConfig.html +4 -4
  529. package/docs/api/interfaces/CodeConventions.html +5 -5
  530. package/docs/api/interfaces/CodebasePattern.html +5 -5
  531. package/docs/api/interfaces/CommandInfo.html +5 -5
  532. package/docs/api/interfaces/CommandMetadata.html +7 -7
  533. package/docs/api/interfaces/CommentCheckResult.html +10 -10
  534. package/docs/api/interfaces/CommentCheckerConfig.html +6 -6
  535. package/docs/api/interfaces/CommentInfo.html +14 -14
  536. package/docs/api/interfaces/CommentPendingCall.html +18 -18
  537. package/docs/api/interfaces/CommitConfig.html +9 -9
  538. package/docs/api/interfaces/CompactCheckpoint.html +7 -7
  539. package/docs/api/interfaces/ContextEntry.html +14 -14
  540. package/docs/api/interfaces/ContextUsageResult.html +12 -12
  541. package/docs/api/interfaces/CustomNote.html +5 -5
  542. package/docs/api/interfaces/DelegationDecision.html +7 -7
  543. package/docs/api/interfaces/DelegationRoute.html +7 -7
  544. package/docs/api/interfaces/DelegationRoutingConfig.html +5 -5
  545. package/docs/api/interfaces/DelegationTrigger.html +6 -6
  546. package/docs/api/interfaces/DetectedKeyword.html +13 -13
  547. package/docs/api/interfaces/DetectionConfig.html +8 -8
  548. package/docs/api/interfaces/DetectionResult.html +13 -13
  549. package/docs/api/interfaces/DirectoryInfo.html +7 -7
  550. package/docs/api/interfaces/EmptyMessageSanitizerConfig.html +6 -6
  551. package/docs/api/interfaces/EmptyMessageSanitizerInput.html +6 -6
  552. package/docs/api/interfaces/EmptyMessageSanitizerOutput.html +8 -8
  553. package/docs/api/interfaces/ExecuteResult.html +5 -5
  554. package/docs/api/interfaces/ExpandedCommand.html +4 -4
  555. package/docs/api/interfaces/ExternalModelPreference.html +4 -4
  556. package/docs/api/interfaces/ExternalModelsConfig.html +6 -6
  557. package/docs/api/interfaces/ExternalModelsDefaults.html +5 -5
  558. package/docs/api/interfaces/ExternalModelsFallbackPolicy.html +5 -5
  559. package/docs/api/interfaces/FileOwnership.html +8 -8
  560. package/docs/api/interfaces/FormatConfig.html +7 -7
  561. package/docs/api/interfaces/FrameworkDetection.html +4 -4
  562. package/docs/api/interfaces/FullAgentConfig.html +26 -26
  563. package/docs/api/interfaces/GateCheckResult.html +5 -5
  564. package/docs/api/interfaces/GitBranchPattern.html +3 -3
  565. package/docs/api/interfaces/HookContext.html +5 -5
  566. package/docs/api/interfaces/HookDefinition.html +5 -5
  567. package/docs/api/interfaces/HookInput.html +18 -18
  568. package/docs/api/interfaces/HookOutput.html +10 -10
  569. package/docs/api/interfaces/HookResult.html +4 -4
  570. package/docs/api/interfaces/HotPath.html +6 -6
  571. package/docs/api/interfaces/InjectedPathsData.html +9 -9
  572. package/docs/api/interfaces/InjectedRulesData.html +10 -10
  573. package/docs/api/interfaces/InjectedSkillsData.html +8 -8
  574. package/docs/api/interfaces/InjectionResult.html +8 -8
  575. package/docs/api/interfaces/InstallOptions.html +9 -9
  576. package/docs/api/interfaces/InstallResult.html +10 -10
  577. package/docs/api/interfaces/IntegrationResult.html +14 -14
  578. package/docs/api/interfaces/LanguageDetection.html +5 -5
  579. package/docs/api/interfaces/LearnedSkill.html +16 -16
  580. package/docs/api/interfaces/LearnerConfig.html +18 -18
  581. package/docs/api/interfaces/LintConfig.html +7 -7
  582. package/docs/api/interfaces/MagicKeyword.html +4 -4
  583. package/docs/api/interfaces/MatchResult.html +6 -6
  584. package/docs/api/interfaces/MessageContext.html +8 -8
  585. package/docs/api/interfaces/MessageInfo.html +9 -9
  586. package/docs/api/interfaces/MessagePart.html +15 -15
  587. package/docs/api/interfaces/MessageWithModel.html +3 -3
  588. package/docs/api/interfaces/MessageWithParts.html +6 -6
  589. package/docs/api/interfaces/MessagesTransformHook.html +3 -3
  590. package/docs/api/interfaces/MessagesTransformInput.html +3 -3
  591. package/docs/api/interfaces/MessagesTransformOutput.html +3 -3
  592. package/docs/api/interfaces/ModeConfig.html +13 -13
  593. package/docs/api/interfaces/ModeStatus.html +4 -4
  594. package/docs/api/interfaces/ModelRef.html +4 -4
  595. package/docs/api/interfaces/NonInteractiveEnvConfig.html +2 -2
  596. package/docs/api/interfaces/NotepadConfig.html +7 -7
  597. package/docs/api/interfaces/NotepadStats.html +11 -11
  598. package/docs/api/interfaces/NotificationCheckResult.html +8 -8
  599. package/docs/api/interfaces/OrchestratorToolInput.html +6 -6
  600. package/docs/api/interfaces/OrchestratorToolOutput.html +6 -6
  601. package/docs/api/interfaces/OutputPart.html +4 -4
  602. package/docs/api/interfaces/PRD.html +9 -9
  603. package/docs/api/interfaces/PRDStatus.html +13 -13
  604. package/docs/api/interfaces/ParsedSlashCommand.html +8 -8
  605. package/docs/api/interfaces/ParsedTokenLimitError.html +16 -16
  606. package/docs/api/interfaces/PendingContext.html +8 -8
  607. package/docs/api/interfaces/PermissionHookOutput.html +4 -4
  608. package/docs/api/interfaces/PermissionRequestInput.html +9 -9
  609. package/docs/api/interfaces/PersistentModeResult.html +9 -9
  610. package/docs/api/interfaces/PlanProgress.html +8 -8
  611. package/docs/api/interfaces/PlanSummary.html +10 -10
  612. package/docs/api/interfaces/PluginConfig.html +17 -17
  613. package/docs/api/interfaces/PreCommitResult.html +3 -3
  614. package/docs/api/interfaces/PreCompactHookOutput.html +4 -4
  615. package/docs/api/interfaces/PreCompactInput.html +8 -8
  616. package/docs/api/interfaces/PreemptiveCompactionConfig.html +14 -14
  617. package/docs/api/interfaces/PriorityContextResult.html +5 -5
  618. package/docs/api/interfaces/ProgressEntry.html +11 -11
  619. package/docs/api/interfaces/ProgressLog.html +7 -7
  620. package/docs/api/interfaces/ProjectMemory.html +14 -14
  621. package/docs/api/interfaces/ProjectStructure.html +5 -5
  622. package/docs/api/interfaces/PromotionCandidate.html +9 -9
  623. package/docs/api/interfaces/PruneResult.html +5 -5
  624. package/docs/api/interfaces/QualityValidation.html +10 -10
  625. package/docs/api/interfaces/RalphLoopHook.html +4 -4
  626. package/docs/api/interfaces/RalphLoopOptions.html +5 -5
  627. package/docs/api/interfaces/RalphLoopState.html +21 -21
  628. package/docs/api/interfaces/RecoveryConfig.html +16 -16
  629. package/docs/api/interfaces/RecoveryMessageData.html +4 -4
  630. package/docs/api/interfaces/RecoveryResult.html +10 -10
  631. package/docs/api/interfaces/RecoveryStoredMessageMeta.html +8 -8
  632. package/docs/api/interfaces/RecoveryStoredReasoningPart.html +7 -7
  633. package/docs/api/interfaces/RecoveryStoredTextPart.html +9 -9
  634. package/docs/api/interfaces/RecoveryStoredToolPart.html +9 -9
  635. package/docs/api/interfaces/RegisterContextOptions.html +12 -12
  636. package/docs/api/interfaces/ReleaseInfo.html +9 -9
  637. package/docs/api/interfaces/ResolveDelegationOptions.html +7 -7
  638. package/docs/api/interfaces/ResolveOptions.html +6 -6
  639. package/docs/api/interfaces/ResolvedModel.html +5 -5
  640. package/docs/api/interfaces/RetryState.html +6 -6
  641. package/docs/api/interfaces/RuleFileCandidate.html +12 -12
  642. package/docs/api/interfaces/RuleFrontmatterResult.html +6 -6
  643. package/docs/api/interfaces/RuleInfo.html +18 -18
  644. package/docs/api/interfaces/RuleMetadata.html +9 -9
  645. package/docs/api/interfaces/RuleToInject.html +10 -10
  646. package/docs/api/interfaces/SessionEndHookOutput.html +2 -2
  647. package/docs/api/interfaces/SessionEndInput.html +9 -9
  648. package/docs/api/interfaces/SessionMetrics.html +9 -9
  649. package/docs/api/interfaces/SessionState.html +5 -5
  650. package/docs/api/interfaces/SetupHookOutput.html +3 -3
  651. package/docs/api/interfaces/SetupInput.html +7 -7
  652. package/docs/api/interfaces/SetupResult.html +5 -5
  653. package/docs/api/interfaces/ShellHook.html +4 -4
  654. package/docs/api/interfaces/SisyphusOptions.html +14 -14
  655. package/docs/api/interfaces/SisyphusSession.html +16 -16
  656. package/docs/api/interfaces/SkillExtractionRequest.html +12 -12
  657. package/docs/api/interfaces/SkillFileCandidate.html +10 -10
  658. package/docs/api/interfaces/SkillHookContext.html +5 -5
  659. package/docs/api/interfaces/SkillMetadata.html +22 -22
  660. package/docs/api/interfaces/SkillParseResult.html +5 -5
  661. package/docs/api/interfaces/SubagentHookOutput.html +3 -3
  662. package/docs/api/interfaces/SubagentInfo.html +14 -14
  663. package/docs/api/interfaces/SubagentStartInput.html +10 -10
  664. package/docs/api/interfaces/SubagentStopInput.html +11 -11
  665. package/docs/api/interfaces/SubagentTrackingState.html +6 -6
  666. package/docs/api/interfaces/TaskExecutionDecision.html +10 -10
  667. package/docs/api/interfaces/TechStack.html +5 -5
  668. package/docs/api/interfaces/ThinkModeInput.html +4 -4
  669. package/docs/api/interfaces/ThinkModeState.html +12 -12
  670. package/docs/api/interfaces/ThinkingValidatorMessageInfo.html +6 -6
  671. package/docs/api/interfaces/ThinkingValidatorMessagePart.html +9 -9
  672. package/docs/api/interfaces/ThinkingValidatorMessageWithParts.html +4 -4
  673. package/docs/api/interfaces/TodoContinuationHook.html +2 -2
  674. package/docs/api/interfaces/TransitionResult.html +4 -4
  675. package/docs/api/interfaces/TruncateState.html +6 -6
  676. package/docs/api/interfaces/UltraQAOptions.html +5 -5
  677. package/docs/api/interfaces/UltraQAResult.html +9 -9
  678. package/docs/api/interfaces/UltraQAState.html +19 -19
  679. package/docs/api/interfaces/UltrapilotConfig.html +14 -14
  680. package/docs/api/interfaces/UltrapilotState.html +26 -26
  681. package/docs/api/interfaces/UltraworkState.html +17 -17
  682. package/docs/api/interfaces/UpdateCheckResult.html +7 -7
  683. package/docs/api/interfaces/UpdateResult.html +7 -7
  684. package/docs/api/interfaces/UserDirective.html +7 -7
  685. package/docs/api/interfaces/UserStory.html +15 -15
  686. package/docs/api/interfaces/ValidationCoordinatorResult.html +6 -6
  687. package/docs/api/interfaces/ValidationResult.html +10 -10
  688. package/docs/api/interfaces/VerificationState.html +17 -17
  689. package/docs/api/interfaces/VersionMetadata.html +12 -12
  690. package/docs/api/interfaces/WorkerState.html +24 -24
  691. package/docs/api/interfaces/WriteSkillResult.html +6 -6
  692. package/docs/api/modules.html +1 -1
  693. package/docs/api/types/AgentCategory.html +2 -2
  694. package/docs/api/types/AgentCost.html +3 -3
  695. package/docs/api/types/AgentFactory.html +2 -2
  696. package/docs/api/types/AgentOverrides.html +2 -2
  697. package/docs/api/types/AutopilotPhase.html +2 -2
  698. package/docs/api/types/AutopilotSignal.html +2 -2
  699. package/docs/api/types/CommandScope.html +2 -2
  700. package/docs/api/types/ContextPriority.html +3 -3
  701. package/docs/api/types/ContextSourceType.html +3 -3
  702. package/docs/api/types/DelegationProvider.html +2 -2
  703. package/docs/api/types/DelegationTool.html +2 -2
  704. package/docs/api/types/ExecutionMode.html +3 -3
  705. package/docs/api/types/ExternalModelProvider.html +2 -2
  706. package/docs/api/types/GateType.html +3 -3
  707. package/docs/api/types/InjectionStrategy.html +2 -2
  708. package/docs/api/types/KeywordType.html +10 -10
  709. package/docs/api/types/ModelType.html +2 -2
  710. package/docs/api/types/QAStatus.html +2 -2
  711. package/docs/api/types/RecoveryErrorType.html +2 -2
  712. package/docs/api/types/RecoveryStoredPart.html +2 -2
  713. package/docs/api/types/TaskTool.html +1 -1
  714. package/docs/api/types/ThinkingConfig.html +2 -2
  715. package/docs/api/types/UltraQAGoalType.html +1 -1
  716. package/docs/api/types/UserStoryInput.html +2 -2
  717. package/docs/api/types/ValidationVerdict.html +2 -2
  718. package/docs/api/types/ValidationVerdictType.html +2 -2
  719. package/docs/api/variables/AGENTS_DIR.html +1 -1
  720. package/docs/api/variables/AGENTS_FILENAME.html +2 -2
  721. package/docs/api/variables/AGENT_TOOLS.html +2 -2
  722. package/docs/api/variables/ALLOWED_PATH_PREFIX.html +2 -2
  723. package/docs/api/variables/ANALYST_PROMPT_METADATA.html +1 -1
  724. package/docs/api/variables/ARCHITECT_PROMPT_METADATA.html +1 -1
  725. package/docs/api/variables/AUTO_SLASH_COMMAND_HOOK_NAME.html +4 -4
  726. package/docs/api/variables/AUTO_SLASH_COMMAND_TAG_CLOSE.html +1 -1
  727. package/docs/api/variables/AUTO_SLASH_COMMAND_TAG_OPEN.html +2 -2
  728. package/docs/api/variables/BACKGROUND_NOTIFICATION_HOOK_NAME.html +2 -2
  729. package/docs/api/variables/BDD_KEYWORDS.html +2 -2
  730. package/docs/api/variables/BEADS_INSTRUCTIONS.html +1 -1
  731. package/docs/api/variables/BEADS_RUST_INSTRUCTIONS.html +1 -1
  732. package/docs/api/variables/BLOCKING_PATTERNS.html +3 -3
  733. package/docs/api/variables/BOULDER_CONTINUATION_PROMPT.html +2 -2
  734. package/docs/api/variables/BOULDER_DIR.html +2 -2
  735. package/docs/api/variables/BOULDER_FILE.html +2 -2
  736. package/docs/api/variables/BOULDER_STATE_PATH.html +2 -2
  737. package/docs/api/variables/CHARS_PER_TOKEN.html +2 -2
  738. package/docs/api/variables/CI_COMMANDS.html +2 -2
  739. package/docs/api/variables/CI_GATE_MESSAGE.html +1 -1
  740. package/docs/api/variables/CLAUDE_CONFIG_DIR.html +2 -2
  741. package/docs/api/variables/CLAUDE_DEFAULT_CONTEXT_LIMIT.html +2 -2
  742. package/docs/api/variables/COMMANDS_DIR.html +1 -1
  743. package/docs/api/variables/COMMENT_CHECKER_MESSAGE_HEADER.html +2 -2
  744. package/docs/api/variables/COMPACTION_COOLDOWN_MS.html +2 -2
  745. package/docs/api/variables/CONTENT_PART_TYPES.html +2 -2
  746. package/docs/api/variables/CONTEXT_CRITICAL_MESSAGE.html +2 -2
  747. package/docs/api/variables/CONTEXT_FILENAMES.html +2 -2
  748. package/docs/api/variables/CONTEXT_LIMIT_RECOVERY_MESSAGE.html +2 -2
  749. package/docs/api/variables/CONTEXT_LIMIT_SHORT_MESSAGE.html +2 -2
  750. package/docs/api/variables/CONTEXT_WARNING_MESSAGE.html +2 -2
  751. package/docs/api/variables/CRITICAL_THRESHOLD.html +2 -2
  752. package/docs/api/variables/CRITIC_PROMPT_METADATA.html +1 -1
  753. package/docs/api/variables/DEFAULT_CONFIG.html +2 -2
  754. package/docs/api/variables/DEFAULT_MAX_BACKGROUND_TASKS.html +2 -2
  755. package/docs/api/variables/DEFAULT_THINKING_CONTENT.html +2 -2
  756. package/docs/api/variables/DIRECT_WORK_REMINDER.html +2 -2
  757. package/docs/api/variables/DOCUMENT_SPECIALIST_PROMPT_METADATA.html +1 -1
  758. package/docs/api/variables/DOCUMENT_WRITER_PROMPT_METADATA.html +1 -1
  759. package/docs/api/variables/EDIT_ERROR_PATTERNS.html +2 -2
  760. package/docs/api/variables/EDIT_ERROR_REMINDER.html +3 -3
  761. package/docs/api/variables/EMPTY_MESSAGE_SANITIZER_DEBUG_PREFIX.html +2 -2
  762. package/docs/api/variables/EMPTY_MESSAGE_SANITIZER_ERROR_PATTERNS.html +2 -2
  763. package/docs/api/variables/EMPTY_MESSAGE_SANITIZER_HOOK_NAME.html +2 -2
  764. package/docs/api/variables/ENTRY_SEPARATOR.html +1 -1
  765. package/docs/api/variables/EXCLUDED_COMMANDS.html +3 -3
  766. package/docs/api/variables/EXPERT_GATE_MESSAGE.html +1 -1
  767. package/docs/api/variables/EXPLORE_PROMPT_METADATA.html +1 -1
  768. package/docs/api/variables/EXTENSION_TO_LANGUAGE.html +2 -2
  769. package/docs/api/variables/FEATURE_FLAG_KEY.html +2 -2
  770. package/docs/api/variables/FRONTEND_ENGINEER_PROMPT_METADATA.html +1 -1
  771. package/docs/api/variables/GITHUB_API_URL.html +1 -1
  772. package/docs/api/variables/INSTALLER_CLAUDE_CONFIG_DIR.html +2 -2
  773. package/docs/api/variables/INSTALLER_VERSION.html +2 -2
  774. package/docs/api/variables/LINE_COMMENT_PATTERNS.html +2 -2
  775. package/docs/api/variables/LONG_RUNNING_PATTERNS.html +3 -3
  776. package/docs/api/variables/MANUAL_HEADER.html +1 -1
  777. package/docs/api/variables/MAX_SKILLS_PER_SESSION.html +2 -2
  778. package/docs/api/variables/MAX_SKILL_CONTENT_LENGTH.html +2 -2
  779. package/docs/api/variables/MAX_WARNINGS.html +2 -2
  780. package/docs/api/variables/MIN_QUALITY_SCORE.html +2 -2
  781. package/docs/api/variables/MODE_CONFIGS.html +4 -4
  782. package/docs/api/variables/MULTIMODAL_LOOKER_PROMPT_METADATA.html +1 -1
  783. package/docs/api/variables/NON_EMPTY_CONTENT_RECOVERY_MESSAGE.html +2 -2
  784. package/docs/api/variables/NON_INTERACTIVE_ENV.html +1 -1
  785. package/docs/api/variables/NON_INTERACTIVE_ENV_HOOK_NAME.html +1 -1
  786. package/docs/api/variables/NOTEPAD_BASE_PATH.html +2 -2
  787. package/docs/api/variables/NOTEPAD_DEFAULT_CONFIG.html +1 -1
  788. package/docs/api/variables/NOTEPAD_DIR.html +2 -2
  789. package/docs/api/variables/NOTEPAD_FILENAME.html +1 -1
  790. package/docs/api/variables/OMC_ORCHESTRATOR_HOOK_NAME.html +4 -4
  791. package/docs/api/variables/ORCHESTRATOR_DELEGATION_REQUIRED.html +2 -2
  792. package/docs/api/variables/PATTERNS_HEADER.html +1 -1
  793. package/docs/api/variables/PLACEHOLDER_TEXT.html +3 -3
  794. package/docs/api/variables/PLANNER_PLANS_DIR.html +2 -2
  795. package/docs/api/variables/PLANNER_PROMPT_METADATA.html +1 -1
  796. package/docs/api/variables/PLAN_EXTENSION.html +2 -2
  797. package/docs/api/variables/PRD_EXAMPLE_FILENAME.html +1 -1
  798. package/docs/api/variables/PRD_FILENAME.html +1 -1
  799. package/docs/api/variables/PREEMPTIVE_DEFAULT_THRESHOLD.html +2 -2
  800. package/docs/api/variables/PREVENTED_ERROR.html +2 -2
  801. package/docs/api/variables/PRIORITY_HEADER.html +1 -1
  802. package/docs/api/variables/PROGRESS_FILENAME.html +1 -1
  803. package/docs/api/variables/PROJECT_MARKERS.html +2 -2
  804. package/docs/api/variables/PROJECT_RULE_FILES.html +2 -2
  805. package/docs/api/variables/PROJECT_RULE_SUBDIRS.html +2 -2
  806. package/docs/api/variables/PROJECT_SKILLS_SUBDIR.html +2 -2
  807. package/docs/api/variables/RAPID_FIRE_DEBOUNCE_MS.html +7 -7
  808. package/docs/api/variables/README_FILENAME.html +2 -2
  809. package/docs/api/variables/README_INJECTOR_STORAGE.html +1 -1
  810. package/docs/api/variables/README_TRACKED_TOOLS.html +2 -2
  811. package/docs/api/variables/RECOVERY_FAILED_MESSAGE.html +2 -2
  812. package/docs/api/variables/RECOVERY_MESSAGES.html +2 -2
  813. package/docs/api/variables/RECOVERY_PLACEHOLDER_TEXT.html +2 -2
  814. package/docs/api/variables/REMINDER_MESSAGE.html +2 -2
  815. package/docs/api/variables/REPO_NAME.html +1 -1
  816. package/docs/api/variables/REPO_OWNER.html +2 -2
  817. package/docs/api/variables/RETRY_CONFIG.html +6 -6
  818. package/docs/api/variables/RULES_INJECTOR_STORAGE.html +1 -1
  819. package/docs/api/variables/RULE_EXTENSIONS.html +2 -2
  820. package/docs/api/variables/SHELL_COMMAND_PATTERNS.html +3 -3
  821. package/docs/api/variables/SINGLE_TASK_DIRECTIVE.html +2 -2
  822. package/docs/api/variables/SISYPHUS_JUNIOR_PROMPT_METADATA.html +1 -1
  823. package/docs/api/variables/SKILL_EXTENSION.html +2 -2
  824. package/docs/api/variables/SLASH_COMMAND_PATTERN.html +2 -2
  825. package/docs/api/variables/STALE_STATE_MAX_AGE_MS.html +2 -2
  826. package/docs/api/variables/SYNTHETIC_THINKING_ID_PREFIX.html +2 -2
  827. package/docs/api/variables/TARGET_TOOLS.html +2 -2
  828. package/docs/api/variables/THINKING_BLOCK_VALIDATOR_HOOK_NAME.html +2 -2
  829. package/docs/api/variables/THINKING_CONFIGS.html +2 -2
  830. package/docs/api/variables/THINKING_MODEL_PATTERNS.html +3 -3
  831. package/docs/api/variables/THINKING_PART_TYPES.html +2 -2
  832. package/docs/api/variables/TOKEN_LIMIT_KEYWORDS.html +2 -2
  833. package/docs/api/variables/TOKEN_LIMIT_PATTERNS.html +2 -2
  834. package/docs/api/variables/TOOL_PART_TYPES.html +2 -2
  835. package/docs/api/variables/TRACKED_TOOLS.html +2 -2
  836. package/docs/api/variables/TRUNCATE_CONFIG.html +6 -6
  837. package/docs/api/variables/TRUNCATION_APPLIED_MESSAGE.html +2 -2
  838. package/docs/api/variables/TYPE_CHECKER_PREFIXES.html +2 -2
  839. package/docs/api/variables/ULTRAPILOT_DEFAULT_CONFIG.html +2 -2
  840. package/docs/api/variables/USER_GATE_MESSAGE.html +1 -1
  841. package/docs/api/variables/USER_RULE_DIR.html +2 -2
  842. package/docs/api/variables/USER_SKILLS_DIR.html +2 -2
  843. package/docs/api/variables/VERIFICATION_REMINDER.html +2 -2
  844. package/docs/api/variables/VERSION_FILE.html +1 -1
  845. package/docs/api/variables/WORKING_MEMORY_HEADER.html +1 -1
  846. package/docs/api/variables/WRITE_EDIT_TOOLS.html +2 -2
  847. package/docs/api/variables/allCustomTools.html +3 -3
  848. package/docs/api/variables/analystAgent.html +1 -1
  849. package/docs/api/variables/architectAgent.html +1 -1
  850. package/docs/api/variables/astTools.html +2 -2
  851. package/docs/api/variables/contextCollector.html +2 -2
  852. package/docs/api/variables/criticAgent.html +1 -1
  853. package/docs/api/variables/designerAgent.html +1 -1
  854. package/docs/api/variables/executorAgent.html +1 -1
  855. package/docs/api/variables/exploreAgent.html +1 -1
  856. package/docs/api/variables/lspTools.html +2 -2
  857. package/docs/api/variables/nonInteractiveEnvHook.html +8 -8
  858. package/docs/api/variables/omcSystemPrompt.html +2 -2
  859. package/docs/api/variables/omcToolNames.html +3 -3
  860. package/docs/api/variables/omcToolsServer.html +4 -4
  861. package/docs/api/variables/plannerAgent.html +1 -1
  862. package/docs/api/variables/researcherAgent.html +1 -1
  863. package/docs/api/variables/visionAgent.html +1 -1
  864. package/docs/api/variables/writerAgent.html +1 -1
  865. package/docs/standards/README.md +1 -1
  866. package/hooks/run-hook.cmd +0 -0
  867. package/hooks/session-start +0 -0
  868. package/package.json +9 -3
  869. package/scripts/persistent-mode.cjs +605 -605
  870. package/scripts/sync-marketplace.mjs +15 -0
  871. package/scripts/validate-plugin-configs.mjs +58 -0
  872. package/skills/systematic-debugging/find-polluter.sh +0 -0
  873. package/skills/writing-skills/graphviz-conventions.dot +171 -171
  874. package/skills/writing-skills/render-graphs.js +0 -0
  875. package/templates/axiom/scripts/Check-Memory.ps1 +68 -68
  876. package/templates/axiom/scripts/Poll-Memory.ps1 +36 -36
  877. package/templates/axiom/scripts/Watch-Memory.ps1 +149 -149
  878. package/templates/axiom/scripts/agent-runner.ps1 +101 -101
  879. package/templates/axiom/scripts/start-reviews.ps1 +19 -19
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env node
2
+ import { readFileSync, writeFileSync } from 'fs';
3
+
4
+ const pkg = JSON.parse(readFileSync('package.json', 'utf8'));
5
+ const marketplace = JSON.parse(readFileSync('.claude-plugin/marketplace.json', 'utf8'));
6
+ const plugin = JSON.parse(readFileSync('.claude-plugin/plugin.json', 'utf8'));
7
+
8
+ // 同步版本号
9
+ marketplace.plugins[0].version = pkg.version;
10
+ plugin.version = pkg.version;
11
+
12
+ writeFileSync('.claude-plugin/marketplace.json', JSON.stringify(marketplace, null, 2) + '\n');
13
+ writeFileSync('.claude-plugin/plugin.json', JSON.stringify(plugin, null, 2) + '\n');
14
+
15
+ console.log(`✅ Marketplace & plugin version synced to ${pkg.version}`);
@@ -0,0 +1,58 @@
1
+ #!/usr/bin/env node
2
+ // Validate plugin.json files for completeness and consistency
3
+ import { readFileSync } from 'fs';
4
+ import { resolve } from 'path';
5
+
6
+ const REQUIRED_FIELDS = ['name', 'version', 'statusline'];
7
+ const PLUGIN_FILES = [
8
+ '.claude-plugin/plugin.json',
9
+ '.cursor-plugin/plugin.json'
10
+ ];
11
+
12
+ let hasErrors = false;
13
+
14
+ // Read package.json version
15
+ const pkg = JSON.parse(readFileSync('package.json', 'utf-8'));
16
+ const expectedVersion = pkg.version;
17
+
18
+ console.log(`Validating plugin configs against version ${expectedVersion}\n`);
19
+
20
+ for (const file of PLUGIN_FILES) {
21
+ try {
22
+ const config = JSON.parse(readFileSync(resolve(file), 'utf-8'));
23
+
24
+ // Check required fields
25
+ for (const field of REQUIRED_FIELDS) {
26
+ if (!config[field]) {
27
+ console.error(`❌ ${file}: Missing required field "${field}"`);
28
+ hasErrors = true;
29
+ }
30
+ }
31
+
32
+ // Check version consistency
33
+ if (config.version !== expectedVersion) {
34
+ console.error(`❌ ${file}: Version mismatch (${config.version} !== ${expectedVersion})`);
35
+ hasErrors = true;
36
+ }
37
+
38
+ // Check statusline config
39
+ if (config.statusline && (!config.statusline.command || !config.statusline.args)) {
40
+ console.error(`❌ ${file}: Invalid statusline config`);
41
+ hasErrors = true;
42
+ }
43
+
44
+ if (!hasErrors) {
45
+ console.log(`✓ ${file}`);
46
+ }
47
+ } catch (err) {
48
+ console.error(`❌ ${file}: ${err.message}`);
49
+ hasErrors = true;
50
+ }
51
+ }
52
+
53
+ if (hasErrors) {
54
+ console.error('\n❌ Plugin config validation failed');
55
+ process.exit(1);
56
+ } else {
57
+ console.log('\n✅ All plugin configs valid');
58
+ }
File without changes
@@ -1,172 +1,172 @@
1
- digraph STYLE_GUIDE {
2
- // The style guide for our process DSL, written in the DSL itself
3
-
4
- // Node type examples with their shapes
5
- subgraph cluster_node_types {
6
- label="NODE TYPES AND SHAPES";
7
-
8
- // Questions are diamonds
9
- "Is this a question?" [shape=diamond];
10
-
11
- // Actions are boxes (default)
12
- "Take an action" [shape=box];
13
-
14
- // Commands are plaintext
15
- "git commit -m 'msg'" [shape=plaintext];
16
-
17
- // States are ellipses
18
- "Current state" [shape=ellipse];
19
-
20
- // Warnings are octagons
21
- "STOP: Critical warning" [shape=octagon, style=filled, fillcolor=red, fontcolor=white];
22
-
23
- // Entry/exit are double circles
24
- "Process starts" [shape=doublecircle];
25
- "Process complete" [shape=doublecircle];
26
-
27
- // Examples of each
28
- "Is test passing?" [shape=diamond];
29
- "Write test first" [shape=box];
30
- "npm test" [shape=plaintext];
31
- "I am stuck" [shape=ellipse];
32
- "NEVER use git add -A" [shape=octagon, style=filled, fillcolor=red, fontcolor=white];
33
- }
34
-
35
- // Edge naming conventions
36
- subgraph cluster_edge_types {
37
- label="EDGE LABELS";
38
-
39
- "Binary decision?" [shape=diamond];
40
- "Yes path" [shape=box];
41
- "No path" [shape=box];
42
-
43
- "Binary decision?" -> "Yes path" [label="yes"];
44
- "Binary decision?" -> "No path" [label="no"];
45
-
46
- "Multiple choice?" [shape=diamond];
47
- "Option A" [shape=box];
48
- "Option B" [shape=box];
49
- "Option C" [shape=box];
50
-
51
- "Multiple choice?" -> "Option A" [label="condition A"];
52
- "Multiple choice?" -> "Option B" [label="condition B"];
53
- "Multiple choice?" -> "Option C" [label="otherwise"];
54
-
55
- "Process A done" [shape=doublecircle];
56
- "Process B starts" [shape=doublecircle];
57
-
58
- "Process A done" -> "Process B starts" [label="triggers", style=dotted];
59
- }
60
-
61
- // Naming patterns
62
- subgraph cluster_naming_patterns {
63
- label="NAMING PATTERNS";
64
-
65
- // Questions end with ?
66
- "Should I do X?";
67
- "Can this be Y?";
68
- "Is Z true?";
69
- "Have I done W?";
70
-
71
- // Actions start with verb
72
- "Write the test";
73
- "Search for patterns";
74
- "Commit changes";
75
- "Ask for help";
76
-
77
- // Commands are literal
78
- "grep -r 'pattern' .";
79
- "git status";
80
- "npm run build";
81
-
82
- // States describe situation
83
- "Test is failing";
84
- "Build complete";
85
- "Stuck on error";
86
- }
87
-
88
- // Process structure template
89
- subgraph cluster_structure {
90
- label="PROCESS STRUCTURE TEMPLATE";
91
-
92
- "Trigger: Something happens" [shape=ellipse];
93
- "Initial check?" [shape=diamond];
94
- "Main action" [shape=box];
95
- "git status" [shape=plaintext];
96
- "Another check?" [shape=diamond];
97
- "Alternative action" [shape=box];
98
- "STOP: Don't do this" [shape=octagon, style=filled, fillcolor=red, fontcolor=white];
99
- "Process complete" [shape=doublecircle];
100
-
101
- "Trigger: Something happens" -> "Initial check?";
102
- "Initial check?" -> "Main action" [label="yes"];
103
- "Initial check?" -> "Alternative action" [label="no"];
104
- "Main action" -> "git status";
105
- "git status" -> "Another check?";
106
- "Another check?" -> "Process complete" [label="ok"];
107
- "Another check?" -> "STOP: Don't do this" [label="problem"];
108
- "Alternative action" -> "Process complete";
109
- }
110
-
111
- // When to use which shape
112
- subgraph cluster_shape_rules {
113
- label="WHEN TO USE EACH SHAPE";
114
-
115
- "Choosing a shape" [shape=ellipse];
116
-
117
- "Is it a decision?" [shape=diamond];
118
- "Use diamond" [shape=diamond, style=filled, fillcolor=lightblue];
119
-
120
- "Is it a command?" [shape=diamond];
121
- "Use plaintext" [shape=plaintext, style=filled, fillcolor=lightgray];
122
-
123
- "Is it a warning?" [shape=diamond];
124
- "Use octagon" [shape=octagon, style=filled, fillcolor=pink];
125
-
126
- "Is it entry/exit?" [shape=diamond];
127
- "Use doublecircle" [shape=doublecircle, style=filled, fillcolor=lightgreen];
128
-
129
- "Is it a state?" [shape=diamond];
130
- "Use ellipse" [shape=ellipse, style=filled, fillcolor=lightyellow];
131
-
132
- "Default: use box" [shape=box, style=filled, fillcolor=lightcyan];
133
-
134
- "Choosing a shape" -> "Is it a decision?";
135
- "Is it a decision?" -> "Use diamond" [label="yes"];
136
- "Is it a decision?" -> "Is it a command?" [label="no"];
137
- "Is it a command?" -> "Use plaintext" [label="yes"];
138
- "Is it a command?" -> "Is it a warning?" [label="no"];
139
- "Is it a warning?" -> "Use octagon" [label="yes"];
140
- "Is it a warning?" -> "Is it entry/exit?" [label="no"];
141
- "Is it entry/exit?" -> "Use doublecircle" [label="yes"];
142
- "Is it entry/exit?" -> "Is it a state?" [label="no"];
143
- "Is it a state?" -> "Use ellipse" [label="yes"];
144
- "Is it a state?" -> "Default: use box" [label="no"];
145
- }
146
-
147
- // Good vs bad examples
148
- subgraph cluster_examples {
149
- label="GOOD VS BAD EXAMPLES";
150
-
151
- // Good: specific and shaped correctly
152
- "Test failed" [shape=ellipse];
153
- "Read error message" [shape=box];
154
- "Can reproduce?" [shape=diamond];
155
- "git diff HEAD~1" [shape=plaintext];
156
- "NEVER ignore errors" [shape=octagon, style=filled, fillcolor=red, fontcolor=white];
157
-
158
- "Test failed" -> "Read error message";
159
- "Read error message" -> "Can reproduce?";
160
- "Can reproduce?" -> "git diff HEAD~1" [label="yes"];
161
-
162
- // Bad: vague and wrong shapes
163
- bad_1 [label="Something wrong", shape=box]; // Should be ellipse (state)
164
- bad_2 [label="Fix it", shape=box]; // Too vague
165
- bad_3 [label="Check", shape=box]; // Should be diamond
166
- bad_4 [label="Run command", shape=box]; // Should be plaintext with actual command
167
-
168
- bad_1 -> bad_2;
169
- bad_2 -> bad_3;
170
- bad_3 -> bad_4;
171
- }
1
+ digraph STYLE_GUIDE {
2
+ // The style guide for our process DSL, written in the DSL itself
3
+
4
+ // Node type examples with their shapes
5
+ subgraph cluster_node_types {
6
+ label="NODE TYPES AND SHAPES";
7
+
8
+ // Questions are diamonds
9
+ "Is this a question?" [shape=diamond];
10
+
11
+ // Actions are boxes (default)
12
+ "Take an action" [shape=box];
13
+
14
+ // Commands are plaintext
15
+ "git commit -m 'msg'" [shape=plaintext];
16
+
17
+ // States are ellipses
18
+ "Current state" [shape=ellipse];
19
+
20
+ // Warnings are octagons
21
+ "STOP: Critical warning" [shape=octagon, style=filled, fillcolor=red, fontcolor=white];
22
+
23
+ // Entry/exit are double circles
24
+ "Process starts" [shape=doublecircle];
25
+ "Process complete" [shape=doublecircle];
26
+
27
+ // Examples of each
28
+ "Is test passing?" [shape=diamond];
29
+ "Write test first" [shape=box];
30
+ "npm test" [shape=plaintext];
31
+ "I am stuck" [shape=ellipse];
32
+ "NEVER use git add -A" [shape=octagon, style=filled, fillcolor=red, fontcolor=white];
33
+ }
34
+
35
+ // Edge naming conventions
36
+ subgraph cluster_edge_types {
37
+ label="EDGE LABELS";
38
+
39
+ "Binary decision?" [shape=diamond];
40
+ "Yes path" [shape=box];
41
+ "No path" [shape=box];
42
+
43
+ "Binary decision?" -> "Yes path" [label="yes"];
44
+ "Binary decision?" -> "No path" [label="no"];
45
+
46
+ "Multiple choice?" [shape=diamond];
47
+ "Option A" [shape=box];
48
+ "Option B" [shape=box];
49
+ "Option C" [shape=box];
50
+
51
+ "Multiple choice?" -> "Option A" [label="condition A"];
52
+ "Multiple choice?" -> "Option B" [label="condition B"];
53
+ "Multiple choice?" -> "Option C" [label="otherwise"];
54
+
55
+ "Process A done" [shape=doublecircle];
56
+ "Process B starts" [shape=doublecircle];
57
+
58
+ "Process A done" -> "Process B starts" [label="triggers", style=dotted];
59
+ }
60
+
61
+ // Naming patterns
62
+ subgraph cluster_naming_patterns {
63
+ label="NAMING PATTERNS";
64
+
65
+ // Questions end with ?
66
+ "Should I do X?";
67
+ "Can this be Y?";
68
+ "Is Z true?";
69
+ "Have I done W?";
70
+
71
+ // Actions start with verb
72
+ "Write the test";
73
+ "Search for patterns";
74
+ "Commit changes";
75
+ "Ask for help";
76
+
77
+ // Commands are literal
78
+ "grep -r 'pattern' .";
79
+ "git status";
80
+ "npm run build";
81
+
82
+ // States describe situation
83
+ "Test is failing";
84
+ "Build complete";
85
+ "Stuck on error";
86
+ }
87
+
88
+ // Process structure template
89
+ subgraph cluster_structure {
90
+ label="PROCESS STRUCTURE TEMPLATE";
91
+
92
+ "Trigger: Something happens" [shape=ellipse];
93
+ "Initial check?" [shape=diamond];
94
+ "Main action" [shape=box];
95
+ "git status" [shape=plaintext];
96
+ "Another check?" [shape=diamond];
97
+ "Alternative action" [shape=box];
98
+ "STOP: Don't do this" [shape=octagon, style=filled, fillcolor=red, fontcolor=white];
99
+ "Process complete" [shape=doublecircle];
100
+
101
+ "Trigger: Something happens" -> "Initial check?";
102
+ "Initial check?" -> "Main action" [label="yes"];
103
+ "Initial check?" -> "Alternative action" [label="no"];
104
+ "Main action" -> "git status";
105
+ "git status" -> "Another check?";
106
+ "Another check?" -> "Process complete" [label="ok"];
107
+ "Another check?" -> "STOP: Don't do this" [label="problem"];
108
+ "Alternative action" -> "Process complete";
109
+ }
110
+
111
+ // When to use which shape
112
+ subgraph cluster_shape_rules {
113
+ label="WHEN TO USE EACH SHAPE";
114
+
115
+ "Choosing a shape" [shape=ellipse];
116
+
117
+ "Is it a decision?" [shape=diamond];
118
+ "Use diamond" [shape=diamond, style=filled, fillcolor=lightblue];
119
+
120
+ "Is it a command?" [shape=diamond];
121
+ "Use plaintext" [shape=plaintext, style=filled, fillcolor=lightgray];
122
+
123
+ "Is it a warning?" [shape=diamond];
124
+ "Use octagon" [shape=octagon, style=filled, fillcolor=pink];
125
+
126
+ "Is it entry/exit?" [shape=diamond];
127
+ "Use doublecircle" [shape=doublecircle, style=filled, fillcolor=lightgreen];
128
+
129
+ "Is it a state?" [shape=diamond];
130
+ "Use ellipse" [shape=ellipse, style=filled, fillcolor=lightyellow];
131
+
132
+ "Default: use box" [shape=box, style=filled, fillcolor=lightcyan];
133
+
134
+ "Choosing a shape" -> "Is it a decision?";
135
+ "Is it a decision?" -> "Use diamond" [label="yes"];
136
+ "Is it a decision?" -> "Is it a command?" [label="no"];
137
+ "Is it a command?" -> "Use plaintext" [label="yes"];
138
+ "Is it a command?" -> "Is it a warning?" [label="no"];
139
+ "Is it a warning?" -> "Use octagon" [label="yes"];
140
+ "Is it a warning?" -> "Is it entry/exit?" [label="no"];
141
+ "Is it entry/exit?" -> "Use doublecircle" [label="yes"];
142
+ "Is it entry/exit?" -> "Is it a state?" [label="no"];
143
+ "Is it a state?" -> "Use ellipse" [label="yes"];
144
+ "Is it a state?" -> "Default: use box" [label="no"];
145
+ }
146
+
147
+ // Good vs bad examples
148
+ subgraph cluster_examples {
149
+ label="GOOD VS BAD EXAMPLES";
150
+
151
+ // Good: specific and shaped correctly
152
+ "Test failed" [shape=ellipse];
153
+ "Read error message" [shape=box];
154
+ "Can reproduce?" [shape=diamond];
155
+ "git diff HEAD~1" [shape=plaintext];
156
+ "NEVER ignore errors" [shape=octagon, style=filled, fillcolor=red, fontcolor=white];
157
+
158
+ "Test failed" -> "Read error message";
159
+ "Read error message" -> "Can reproduce?";
160
+ "Can reproduce?" -> "git diff HEAD~1" [label="yes"];
161
+
162
+ // Bad: vague and wrong shapes
163
+ bad_1 [label="Something wrong", shape=box]; // Should be ellipse (state)
164
+ bad_2 [label="Fix it", shape=box]; // Too vague
165
+ bad_3 [label="Check", shape=box]; // Should be diamond
166
+ bad_4 [label="Run command", shape=box]; // Should be plaintext with actual command
167
+
168
+ bad_1 -> bad_2;
169
+ bad_2 -> bad_3;
170
+ bad_3 -> bad_4;
171
+ }
172
172
  }
File without changes
@@ -1,68 +1,68 @@
1
-
2
- param (
3
- [Parameter(Mandatory=$true)]
4
- [string]$SessionId,
5
-
6
- [int]$Threshold = 2
7
- )
8
-
9
- $ErrorActionPreference = "SilentlyContinue"
10
-
11
- # 1. Define Paths
12
- $AgentRoot = Resolve-Path "$PSScriptRoot\..\.."
13
- $MemoryDir = Join-Path $AgentRoot ".agent\memory"
14
- $TargetFile = Join-Path $MemoryDir "active_context.md"
15
- $StatusFile = Join-Path $MemoryDir "watchdog_status.lock"
16
- $TempFile = Join-Path $MemoryDir "watchdog_status.tmp"
17
-
18
- # 2. Check Context Load (Latest PB File Size)
19
- $Status = "NORMAL"
20
- $SizeMB = 0
21
-
22
- # Path to Axiom Conversations Directory
23
- # Dynamic detection for Windows ($env:USERPROFILE) and macOS/Linux ($env:HOME)
24
- $HomeDir = if ($env:USERPROFILE) { $env:USERPROFILE } else { $env:HOME }
25
- $ConversationsDir = Join-Path $HomeDir ".gemini\axiom\conversations"
26
-
27
- if (Test-Path $ConversationsDir) {
28
- # Get the most recently modified .pb file
29
- $LatestPb = Get-ChildItem -Path $ConversationsDir -Filter "*.pb" | Sort-Object LastWriteTime -Descending | Select-Object -First 1
30
-
31
- if ($LatestPb) {
32
- $SizeBytes = $LatestPb.Length
33
- $SizeMB = [math]::Round($SizeBytes / 1MB, 4)
34
-
35
- Write-Host " [Watchdog] Monitoring: $($LatestPb.Name) ($SizeMB MB)" -ForegroundColor DarkGray
36
-
37
- # Threshold handling
38
- if ($SizeMB -ge $Threshold) {
39
- $Status = "CRITICAL"
40
- } elseif ($SizeMB -ge ($Threshold * 0.8)) {
41
- $Status = "WARNING"
42
- }
43
- } else {
44
- Write-Host " [Watchdog] No .pb files found to monitor." -ForegroundColor Yellow
45
- }
46
- } else {
47
- Write-Host " [Watchdog] Conversations directory not found: $ConversationsDir" -ForegroundColor Red
48
- }
49
-
50
- # 3. Create JSON Payload
51
- $Payload = @{
52
- status = $Status
53
- size_mb = $SizeMB
54
- limit_mb = $Threshold
55
- timestamp = [int64]((Get-Date).ToUniversalTime() - (Get-Date "1970-01-01")).TotalSeconds
56
- session_id = $SessionId
57
- } | ConvertTo-Json -Compress
58
-
59
- # 4. Atomic Write
60
- try {
61
- $Payload | Set-Content -Path $TempFile -Encoding UTF8 -Force
62
- Move-Item -Path $TempFile -Destination $StatusFile -Force
63
- } catch {
64
- # Silent fail, maybe log if verbose
65
- if ($PSBoundParameters['Verbose']) {
66
- Write-Error $_
67
- }
68
- }
1
+
2
+ param (
3
+ [Parameter(Mandatory=$true)]
4
+ [string]$SessionId,
5
+
6
+ [int]$Threshold = 2
7
+ )
8
+
9
+ $ErrorActionPreference = "SilentlyContinue"
10
+
11
+ # 1. Define Paths
12
+ $AgentRoot = Resolve-Path "$PSScriptRoot\..\.."
13
+ $MemoryDir = Join-Path $AgentRoot ".agent\memory"
14
+ $TargetFile = Join-Path $MemoryDir "active_context.md"
15
+ $StatusFile = Join-Path $MemoryDir "watchdog_status.lock"
16
+ $TempFile = Join-Path $MemoryDir "watchdog_status.tmp"
17
+
18
+ # 2. Check Context Load (Latest PB File Size)
19
+ $Status = "NORMAL"
20
+ $SizeMB = 0
21
+
22
+ # Path to Axiom Conversations Directory
23
+ # Dynamic detection for Windows ($env:USERPROFILE) and macOS/Linux ($env:HOME)
24
+ $HomeDir = if ($env:USERPROFILE) { $env:USERPROFILE } else { $env:HOME }
25
+ $ConversationsDir = Join-Path $HomeDir ".gemini\axiom\conversations"
26
+
27
+ if (Test-Path $ConversationsDir) {
28
+ # Get the most recently modified .pb file
29
+ $LatestPb = Get-ChildItem -Path $ConversationsDir -Filter "*.pb" | Sort-Object LastWriteTime -Descending | Select-Object -First 1
30
+
31
+ if ($LatestPb) {
32
+ $SizeBytes = $LatestPb.Length
33
+ $SizeMB = [math]::Round($SizeBytes / 1MB, 4)
34
+
35
+ Write-Host " [Watchdog] Monitoring: $($LatestPb.Name) ($SizeMB MB)" -ForegroundColor DarkGray
36
+
37
+ # Threshold handling
38
+ if ($SizeMB -ge $Threshold) {
39
+ $Status = "CRITICAL"
40
+ } elseif ($SizeMB -ge ($Threshold * 0.8)) {
41
+ $Status = "WARNING"
42
+ }
43
+ } else {
44
+ Write-Host " [Watchdog] No .pb files found to monitor." -ForegroundColor Yellow
45
+ }
46
+ } else {
47
+ Write-Host " [Watchdog] Conversations directory not found: $ConversationsDir" -ForegroundColor Red
48
+ }
49
+
50
+ # 3. Create JSON Payload
51
+ $Payload = @{
52
+ status = $Status
53
+ size_mb = $SizeMB
54
+ limit_mb = $Threshold
55
+ timestamp = [int64]((Get-Date).ToUniversalTime() - (Get-Date "1970-01-01")).TotalSeconds
56
+ session_id = $SessionId
57
+ } | ConvertTo-Json -Compress
58
+
59
+ # 4. Atomic Write
60
+ try {
61
+ $Payload | Set-Content -Path $TempFile -Encoding UTF8 -Force
62
+ Move-Item -Path $TempFile -Destination $StatusFile -Force
63
+ } catch {
64
+ # Silent fail, maybe log if verbose
65
+ if ($PSBoundParameters['Verbose']) {
66
+ Write-Error $_
67
+ }
68
+ }
@@ -1,36 +1,36 @@
1
- param([int]$Interval = 2)
2
-
3
- $HomeDir = if ($env:USERPROFILE) { $env:USERPROFILE } else { $env:HOME }
4
- if (-not $HomeDir) {
5
- Write-Host "Error: Could not determine HOME directory." -ForegroundColor Red
6
- exit 1
7
- }
8
-
9
- $TargetDir = Join-Path $HomeDir ".gemini\axiom\conversations"
10
- Write-Host "Polling $TargetDir every $Interval seconds..." -ForegroundColor Cyan
11
-
12
- $LastTime = $null
13
- $LastSize = 0
14
-
15
- while ($true) {
16
- if (Test-Path $TargetDir) {
17
- $Latest = Get-ChildItem -Path $TargetDir -Filter "*.pb" | Sort-Object LastWriteTime -Descending | Select-Object -First 1
18
-
19
- if ($Latest) {
20
- $CurrentTime = $Latest.LastWriteTime
21
- $CurrentSize = $Latest.Length
22
-
23
- # If time changed or size changed
24
- if ($LastTime -ne $CurrentTime -or $LastSize -ne $CurrentSize) {
25
- $SizeMB = [math]::Round($CurrentSize / 1MB, 4)
26
- Write-Host " [POLL] Change Detected: $($Latest.Name)" -ForegroundColor Yellow
27
- Write-Host " Time: $CurrentTime"
28
- Write-Host " Size: $SizeMB MB"
29
-
30
- $LastTime = $CurrentTime
31
- $LastSize = $CurrentSize
32
- }
33
- }
34
- }
35
- Start-Sleep -Seconds $Interval
36
- }
1
+ param([int]$Interval = 2)
2
+
3
+ $HomeDir = if ($env:USERPROFILE) { $env:USERPROFILE } else { $env:HOME }
4
+ if (-not $HomeDir) {
5
+ Write-Host "Error: Could not determine HOME directory." -ForegroundColor Red
6
+ exit 1
7
+ }
8
+
9
+ $TargetDir = Join-Path $HomeDir ".gemini\axiom\conversations"
10
+ Write-Host "Polling $TargetDir every $Interval seconds..." -ForegroundColor Cyan
11
+
12
+ $LastTime = $null
13
+ $LastSize = 0
14
+
15
+ while ($true) {
16
+ if (Test-Path $TargetDir) {
17
+ $Latest = Get-ChildItem -Path $TargetDir -Filter "*.pb" | Sort-Object LastWriteTime -Descending | Select-Object -First 1
18
+
19
+ if ($Latest) {
20
+ $CurrentTime = $Latest.LastWriteTime
21
+ $CurrentSize = $Latest.Length
22
+
23
+ # If time changed or size changed
24
+ if ($LastTime -ne $CurrentTime -or $LastSize -ne $CurrentSize) {
25
+ $SizeMB = [math]::Round($CurrentSize / 1MB, 4)
26
+ Write-Host " [POLL] Change Detected: $($Latest.Name)" -ForegroundColor Yellow
27
+ Write-Host " Time: $CurrentTime"
28
+ Write-Host " Size: $SizeMB MB"
29
+
30
+ $LastTime = $CurrentTime
31
+ $LastSize = $CurrentSize
32
+ }
33
+ }
34
+ }
35
+ Start-Sleep -Seconds $Interval
36
+ }