hammoc 1.4.0 → 1.6.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.
- package/README.md +428 -405
- package/bin/hammoc.js +0 -6
- package/package.json +100 -94
- package/packages/client/dist/assets/agentExampleHighlight-ltj9ce0U.js +1 -0
- package/packages/client/dist/assets/commandTokenHighlight-ji_ViMb4.js +1 -0
- package/packages/client/dist/assets/index-B-DiRGuz.js +2 -0
- package/packages/client/dist/assets/index-B09doO8H.js +139 -0
- package/packages/client/dist/assets/index-BT4RIi0U.js +1523 -0
- package/packages/client/dist/assets/index-DyNJ5jEW.css +32 -0
- package/packages/client/dist/assets/snippetTokenHighlight-CP3v4o2g.js +1 -0
- package/packages/client/dist/index.html +2 -2
- package/packages/client/dist/sw.js +1 -1
- package/packages/server/dist/app.d.ts.map +1 -1
- package/packages/server/dist/app.js +13 -21
- package/packages/server/dist/app.js.map +1 -1
- package/packages/server/dist/controllers/bmadCoreConfigController.d.ts +41 -0
- package/packages/server/dist/controllers/bmadCoreConfigController.d.ts.map +1 -0
- package/packages/server/dist/controllers/bmadCoreConfigController.js +172 -0
- package/packages/server/dist/controllers/bmadCoreConfigController.js.map +1 -0
- package/packages/server/dist/controllers/claudeMdController.d.ts +26 -0
- package/packages/server/dist/controllers/claudeMdController.d.ts.map +1 -0
- package/packages/server/dist/controllers/claudeMdController.js +158 -0
- package/packages/server/dist/controllers/claudeMdController.js.map +1 -0
- package/packages/server/dist/controllers/contextBuilderController.d.ts +43 -0
- package/packages/server/dist/controllers/contextBuilderController.d.ts.map +1 -0
- package/packages/server/dist/controllers/contextBuilderController.js +159 -0
- package/packages/server/dist/controllers/contextBuilderController.js.map +1 -0
- package/packages/server/dist/controllers/harnessAgentController.d.ts +35 -0
- package/packages/server/dist/controllers/harnessAgentController.d.ts.map +1 -0
- package/packages/server/dist/controllers/harnessAgentController.js +372 -0
- package/packages/server/dist/controllers/harnessAgentController.js.map +1 -0
- package/packages/server/dist/controllers/harnessBundleController.d.ts +37 -0
- package/packages/server/dist/controllers/harnessBundleController.d.ts.map +1 -0
- package/packages/server/dist/controllers/harnessBundleController.js +312 -0
- package/packages/server/dist/controllers/harnessBundleController.js.map +1 -0
- package/packages/server/dist/controllers/harnessCommandController.d.ts +35 -0
- package/packages/server/dist/controllers/harnessCommandController.d.ts.map +1 -0
- package/packages/server/dist/controllers/harnessCommandController.js +415 -0
- package/packages/server/dist/controllers/harnessCommandController.js.map +1 -0
- package/packages/server/dist/controllers/harnessController.d.ts +21 -0
- package/packages/server/dist/controllers/harnessController.d.ts.map +1 -0
- package/packages/server/dist/controllers/harnessController.js +176 -0
- package/packages/server/dist/controllers/harnessController.js.map +1 -0
- package/packages/server/dist/controllers/harnessHookController.d.ts +32 -0
- package/packages/server/dist/controllers/harnessHookController.d.ts.map +1 -0
- package/packages/server/dist/controllers/harnessHookController.js +406 -0
- package/packages/server/dist/controllers/harnessHookController.js.map +1 -0
- package/packages/server/dist/controllers/harnessLintController.d.ts +18 -0
- package/packages/server/dist/controllers/harnessLintController.d.ts.map +1 -0
- package/packages/server/dist/controllers/harnessLintController.js +72 -0
- package/packages/server/dist/controllers/harnessLintController.js.map +1 -0
- package/packages/server/dist/controllers/harnessMcpController.d.ts +28 -0
- package/packages/server/dist/controllers/harnessMcpController.d.ts.map +1 -0
- package/packages/server/dist/controllers/harnessMcpController.js +371 -0
- package/packages/server/dist/controllers/harnessMcpController.js.map +1 -0
- package/packages/server/dist/controllers/harnessPluginController.d.ts +17 -0
- package/packages/server/dist/controllers/harnessPluginController.d.ts.map +1 -0
- package/packages/server/dist/controllers/harnessPluginController.js +115 -0
- package/packages/server/dist/controllers/harnessPluginController.js.map +1 -0
- package/packages/server/dist/controllers/harnessShareScopeController.d.ts +24 -0
- package/packages/server/dist/controllers/harnessShareScopeController.d.ts.map +1 -0
- package/packages/server/dist/controllers/harnessShareScopeController.js +120 -0
- package/packages/server/dist/controllers/harnessShareScopeController.js.map +1 -0
- package/packages/server/dist/controllers/harnessSkillController.d.ts +32 -0
- package/packages/server/dist/controllers/harnessSkillController.d.ts.map +1 -0
- package/packages/server/dist/controllers/harnessSkillController.js +453 -0
- package/packages/server/dist/controllers/harnessSkillController.js.map +1 -0
- package/packages/server/dist/controllers/marketplaceController.d.ts +19 -0
- package/packages/server/dist/controllers/marketplaceController.d.ts.map +1 -0
- package/packages/server/dist/controllers/marketplaceController.js +74 -0
- package/packages/server/dist/controllers/marketplaceController.js.map +1 -0
- package/packages/server/dist/controllers/observabilityController.d.ts +32 -0
- package/packages/server/dist/controllers/observabilityController.d.ts.map +1 -0
- package/packages/server/dist/controllers/observabilityController.js +148 -0
- package/packages/server/dist/controllers/observabilityController.js.map +1 -0
- package/packages/server/dist/controllers/projectController.d.ts.map +1 -1
- package/packages/server/dist/controllers/projectController.js +11 -0
- package/packages/server/dist/controllers/projectController.js.map +1 -1
- package/packages/server/dist/controllers/snippetController.d.ts +35 -0
- package/packages/server/dist/controllers/snippetController.d.ts.map +1 -0
- package/packages/server/dist/controllers/snippetController.js +294 -0
- package/packages/server/dist/controllers/snippetController.js.map +1 -0
- package/packages/server/dist/handlers/streamCallbacks.d.ts +8 -0
- package/packages/server/dist/handlers/streamCallbacks.d.ts.map +1 -1
- package/packages/server/dist/handlers/streamCallbacks.js +8 -0
- package/packages/server/dist/handlers/streamCallbacks.js.map +1 -1
- package/packages/server/dist/handlers/websocket.d.ts +15 -0
- package/packages/server/dist/handlers/websocket.d.ts.map +1 -1
- package/packages/server/dist/handlers/websocket.js +103 -2
- package/packages/server/dist/handlers/websocket.js.map +1 -1
- package/packages/server/dist/index.js +5 -0
- package/packages/server/dist/index.js.map +1 -1
- package/packages/server/dist/locales/en/server.json +37 -4
- package/packages/server/dist/locales/es/server.json +0 -4
- package/packages/server/dist/locales/ja/server.json +0 -4
- package/packages/server/dist/locales/ko/server.json +0 -4
- package/packages/server/dist/locales/pt/server.json +0 -4
- package/packages/server/dist/locales/zh-CN/server.json +0 -4
- package/packages/server/dist/routes/harness.d.ts +8 -0
- package/packages/server/dist/routes/harness.d.ts.map +1 -0
- package/packages/server/dist/routes/harness.js +150 -0
- package/packages/server/dist/routes/harness.js.map +1 -0
- package/packages/server/dist/routes/projects.d.ts.map +1 -1
- package/packages/server/dist/routes/projects.js +5 -60
- package/packages/server/dist/routes/projects.js.map +1 -1
- package/packages/server/dist/routes/snippets.d.ts +14 -0
- package/packages/server/dist/routes/snippets.d.ts.map +1 -0
- package/packages/server/dist/routes/snippets.js +27 -0
- package/packages/server/dist/routes/snippets.js.map +1 -0
- package/packages/server/dist/services/bmadCoreConfigService.d.ts +86 -0
- package/packages/server/dist/services/bmadCoreConfigService.d.ts.map +1 -0
- package/packages/server/dist/services/bmadCoreConfigService.js +175 -0
- package/packages/server/dist/services/bmadCoreConfigService.js.map +1 -0
- package/packages/server/dist/services/bmadStatusService.d.ts +15 -2
- package/packages/server/dist/services/bmadStatusService.d.ts.map +1 -1
- package/packages/server/dist/services/bmadStatusService.js +146 -37
- package/packages/server/dist/services/bmadStatusService.js.map +1 -1
- package/packages/server/dist/services/chatService.d.ts +3 -0
- package/packages/server/dist/services/chatService.d.ts.map +1 -1
- package/packages/server/dist/services/chatService.js +28 -7
- package/packages/server/dist/services/chatService.js.map +1 -1
- package/packages/server/dist/services/claudeMdService.d.ts +48 -0
- package/packages/server/dist/services/claudeMdService.d.ts.map +1 -0
- package/packages/server/dist/services/claudeMdService.js +240 -0
- package/packages/server/dist/services/claudeMdService.js.map +1 -0
- package/packages/server/dist/services/commandService.d.ts +10 -0
- package/packages/server/dist/services/commandService.d.ts.map +1 -1
- package/packages/server/dist/services/commandService.js +129 -4
- package/packages/server/dist/services/commandService.js.map +1 -1
- package/packages/server/dist/services/contextBuilderScriptTemplate.d.ts +24 -0
- package/packages/server/dist/services/contextBuilderScriptTemplate.d.ts.map +1 -0
- package/packages/server/dist/services/contextBuilderScriptTemplate.js +181 -0
- package/packages/server/dist/services/contextBuilderScriptTemplate.js.map +1 -0
- package/packages/server/dist/services/contextBuilderService.d.ts +68 -0
- package/packages/server/dist/services/contextBuilderService.d.ts.map +1 -0
- package/packages/server/dist/services/contextBuilderService.js +345 -0
- package/packages/server/dist/services/contextBuilderService.js.map +1 -0
- package/packages/server/dist/services/fileWatcherService.d.ts +24 -0
- package/packages/server/dist/services/fileWatcherService.d.ts.map +1 -1
- package/packages/server/dist/services/fileWatcherService.js +232 -1
- package/packages/server/dist/services/fileWatcherService.js.map +1 -1
- package/packages/server/dist/services/harnessAgentService.d.ts +97 -0
- package/packages/server/dist/services/harnessAgentService.d.ts.map +1 -0
- package/packages/server/dist/services/harnessAgentService.js +988 -0
- package/packages/server/dist/services/harnessAgentService.js.map +1 -0
- package/packages/server/dist/services/harnessBundleService.d.ts +145 -0
- package/packages/server/dist/services/harnessBundleService.d.ts.map +1 -0
- package/packages/server/dist/services/harnessBundleService.js +1318 -0
- package/packages/server/dist/services/harnessBundleService.js.map +1 -0
- package/packages/server/dist/services/harnessCommandService.d.ts +81 -0
- package/packages/server/dist/services/harnessCommandService.d.ts.map +1 -0
- package/packages/server/dist/services/harnessCommandService.js +917 -0
- package/packages/server/dist/services/harnessCommandService.js.map +1 -0
- package/packages/server/dist/services/harnessHookService.d.ts +82 -0
- package/packages/server/dist/services/harnessHookService.d.ts.map +1 -0
- package/packages/server/dist/services/harnessHookService.js +1112 -0
- package/packages/server/dist/services/harnessHookService.js.map +1 -0
- package/packages/server/dist/services/harnessLintService.d.ts +49 -0
- package/packages/server/dist/services/harnessLintService.d.ts.map +1 -0
- package/packages/server/dist/services/harnessLintService.js +628 -0
- package/packages/server/dist/services/harnessLintService.js.map +1 -0
- package/packages/server/dist/services/harnessMcpService.d.ts +100 -0
- package/packages/server/dist/services/harnessMcpService.d.ts.map +1 -0
- package/packages/server/dist/services/harnessMcpService.js +884 -0
- package/packages/server/dist/services/harnessMcpService.js.map +1 -0
- package/packages/server/dist/services/harnessPluginService.d.ts +66 -0
- package/packages/server/dist/services/harnessPluginService.d.ts.map +1 -0
- package/packages/server/dist/services/harnessPluginService.js +559 -0
- package/packages/server/dist/services/harnessPluginService.js.map +1 -0
- package/packages/server/dist/services/harnessService.d.ts +40 -0
- package/packages/server/dist/services/harnessService.d.ts.map +1 -0
- package/packages/server/dist/services/harnessService.js +222 -0
- package/packages/server/dist/services/harnessService.js.map +1 -0
- package/packages/server/dist/services/harnessShareScopeService.d.ts +50 -0
- package/packages/server/dist/services/harnessShareScopeService.d.ts.map +1 -0
- package/packages/server/dist/services/harnessShareScopeService.js +158 -0
- package/packages/server/dist/services/harnessShareScopeService.js.map +1 -0
- package/packages/server/dist/services/harnessSkillService.d.ts +70 -0
- package/packages/server/dist/services/harnessSkillService.d.ts.map +1 -0
- package/packages/server/dist/services/harnessSkillService.js +636 -0
- package/packages/server/dist/services/harnessSkillService.js.map +1 -0
- package/packages/server/dist/services/issueService.d.ts.map +1 -1
- package/packages/server/dist/services/issueService.js +3 -1
- package/packages/server/dist/services/issueService.js.map +1 -1
- package/packages/server/dist/services/manualSyncService.d.ts +19 -0
- package/packages/server/dist/services/manualSyncService.d.ts.map +1 -0
- package/packages/server/dist/services/manualSyncService.js +110 -0
- package/packages/server/dist/services/manualSyncService.js.map +1 -0
- package/packages/server/dist/services/marketplaceService.d.ts +50 -0
- package/packages/server/dist/services/marketplaceService.d.ts.map +1 -0
- package/packages/server/dist/services/marketplaceService.js +326 -0
- package/packages/server/dist/services/marketplaceService.js.map +1 -0
- package/packages/server/dist/services/observabilityService.d.ts +87 -0
- package/packages/server/dist/services/observabilityService.d.ts.map +1 -0
- package/packages/server/dist/services/observabilityService.js +0 -0
- package/packages/server/dist/services/observabilityService.js.map +1 -0
- package/packages/server/dist/services/queueService.d.ts.map +1 -1
- package/packages/server/dist/services/queueService.js +48 -2
- package/packages/server/dist/services/queueService.js.map +1 -1
- package/packages/server/dist/services/sessionService.d.ts +16 -0
- package/packages/server/dist/services/sessionService.d.ts.map +1 -1
- package/packages/server/dist/services/sessionService.js +125 -0
- package/packages/server/dist/services/sessionService.js.map +1 -1
- package/packages/server/dist/services/snippetService.d.ts +54 -0
- package/packages/server/dist/services/snippetService.d.ts.map +1 -0
- package/packages/server/dist/services/snippetService.js +371 -0
- package/packages/server/dist/services/snippetService.js.map +1 -0
- package/packages/server/dist/services/tokenCountService.d.ts +71 -0
- package/packages/server/dist/services/tokenCountService.d.ts.map +1 -0
- package/packages/server/dist/services/tokenCountService.js +313 -0
- package/packages/server/dist/services/tokenCountService.js.map +1 -0
- package/packages/server/dist/services/utils/applyYamlFrontmatterPatch.d.ts +46 -0
- package/packages/server/dist/services/utils/applyYamlFrontmatterPatch.d.ts.map +1 -0
- package/packages/server/dist/services/utils/applyYamlFrontmatterPatch.js +125 -0
- package/packages/server/dist/services/utils/applyYamlFrontmatterPatch.js.map +1 -0
- package/packages/server/dist/snippets/apply-qa-fixes +7 -5
- package/packages/server/dist/snippets/qa-review +5 -1
- package/packages/server/dist/snippets/split-commit +9 -0
- package/packages/server/dist/utils/applySecretsPolicy.d.ts +53 -0
- package/packages/server/dist/utils/applySecretsPolicy.d.ts.map +1 -0
- package/packages/server/dist/utils/applySecretsPolicy.js +204 -0
- package/packages/server/dist/utils/applySecretsPolicy.js.map +1 -0
- package/packages/server/dist/utils/assertNoSecretOnShared.d.ts +40 -0
- package/packages/server/dist/utils/assertNoSecretOnShared.d.ts.map +1 -0
- package/packages/server/dist/utils/assertNoSecretOnShared.js +47 -0
- package/packages/server/dist/utils/assertNoSecretOnShared.js.map +1 -0
- package/packages/server/dist/utils/assertSafeBundlePath.d.ts +29 -0
- package/packages/server/dist/utils/assertSafeBundlePath.d.ts.map +1 -0
- package/packages/server/dist/utils/assertSafeBundlePath.js +53 -0
- package/packages/server/dist/utils/assertSafeBundlePath.js.map +1 -0
- package/packages/server/dist/utils/bundledBinaryModelSupport.d.ts +7 -0
- package/packages/server/dist/utils/bundledBinaryModelSupport.d.ts.map +1 -0
- package/packages/server/dist/utils/bundledBinaryModelSupport.js +107 -0
- package/packages/server/dist/utils/bundledBinaryModelSupport.js.map +1 -0
- package/packages/server/dist/utils/effortUtils.d.ts +2 -2
- package/packages/server/dist/utils/effortUtils.js +5 -5
- package/packages/server/dist/utils/effortUtils.js.map +1 -1
- package/packages/server/dist/utils/errors.d.ts +1 -0
- package/packages/server/dist/utils/errors.d.ts.map +1 -1
- package/packages/server/dist/utils/errors.js +17 -0
- package/packages/server/dist/utils/errors.js.map +1 -1
- package/packages/server/dist/utils/gitignoreFilter.d.ts +23 -0
- package/packages/server/dist/utils/gitignoreFilter.d.ts.map +1 -0
- package/packages/server/dist/utils/gitignoreFilter.js +42 -0
- package/packages/server/dist/utils/gitignoreFilter.js.map +1 -0
- package/packages/server/dist/utils/harnessBundleSchema.d.ts +107 -0
- package/packages/server/dist/utils/harnessBundleSchema.d.ts.map +1 -0
- package/packages/server/dist/utils/harnessBundleSchema.js +89 -0
- package/packages/server/dist/utils/harnessBundleSchema.js.map +1 -0
- package/packages/server/dist/utils/harnessPaths.d.ts +74 -0
- package/packages/server/dist/utils/harnessPaths.d.ts.map +1 -0
- package/packages/server/dist/utils/harnessPaths.js +247 -0
- package/packages/server/dist/utils/harnessPaths.js.map +1 -0
- package/packages/server/dist/utils/secretHeuristic.d.ts +72 -0
- package/packages/server/dist/utils/secretHeuristic.d.ts.map +1 -0
- package/packages/server/dist/utils/secretHeuristic.js +163 -0
- package/packages/server/dist/utils/secretHeuristic.js.map +1 -0
- package/packages/server/dist/utils/secretPlaceholderNamer.d.ts +41 -0
- package/packages/server/dist/utils/secretPlaceholderNamer.d.ts.map +1 -0
- package/packages/server/dist/utils/secretPlaceholderNamer.js +81 -0
- package/packages/server/dist/utils/secretPlaceholderNamer.js.map +1 -0
- package/packages/server/dist/utils/serverPathResolver.d.ts +29 -0
- package/packages/server/dist/utils/serverPathResolver.d.ts.map +1 -0
- package/packages/server/dist/utils/serverPathResolver.js +59 -0
- package/packages/server/dist/utils/serverPathResolver.js.map +1 -0
- package/packages/server/dist/utils/snippetPaths.d.ts +61 -0
- package/packages/server/dist/utils/snippetPaths.d.ts.map +1 -0
- package/packages/server/dist/utils/snippetPaths.js +123 -0
- package/packages/server/dist/utils/snippetPaths.js.map +1 -0
- package/packages/server/dist/utils/structuredEditor.d.ts +34 -0
- package/packages/server/dist/utils/structuredEditor.d.ts.map +1 -0
- package/packages/server/dist/utils/structuredEditor.js +111 -0
- package/packages/server/dist/utils/structuredEditor.js.map +1 -0
- package/packages/server/package.json +6 -2
- package/packages/server/resources/internals/INDEX.md +25 -0
- package/packages/server/resources/internals/bmad-qa-fix-marker.md +32 -0
- package/packages/server/resources/internals/harness-files.md +85 -0
- package/packages/server/resources/internals/image-storage.md +43 -0
- package/packages/server/resources/internals/observability-storage.md +23 -0
- package/packages/server/resources/manual/01-getting-started.md +104 -0
- package/packages/server/resources/manual/02-chat.md +285 -0
- package/packages/server/resources/manual/03-sessions.md +48 -0
- package/packages/server/resources/manual/04-slash-commands-favorites.md +152 -0
- package/packages/server/resources/manual/05-projects.md +76 -0
- package/packages/server/resources/manual/06-file-explorer-editor.md +90 -0
- package/packages/server/resources/manual/07-git.md +94 -0
- package/packages/server/resources/manual/08-terminal.md +59 -0
- package/packages/server/resources/manual/09-queue-runner.md +262 -0
- package/packages/server/resources/manual/10-project-board.md +194 -0
- package/packages/server/resources/manual/11-bmad-method-integration.md +130 -0
- package/packages/server/resources/manual/12-harness-workbench.md +256 -0
- package/packages/server/resources/manual/13-settings.md +241 -0
- package/packages/server/resources/manual/14-keyboard-shortcuts.md +68 -0
- package/packages/server/resources/manual/15-environment-variables.md +28 -0
- package/packages/server/resources/manual/16-troubleshooting.md +110 -0
- package/packages/server/resources/manual/INDEX.md +60 -0
- package/packages/shared/dist/index.d.ts +7 -0
- package/packages/shared/dist/index.d.ts.map +1 -1
- package/packages/shared/dist/index.js +14 -0
- package/packages/shared/dist/index.js.map +1 -1
- package/packages/shared/dist/types/bmadCoreConfig.d.ts +71 -0
- package/packages/shared/dist/types/bmadCoreConfig.d.ts.map +1 -0
- package/packages/shared/dist/types/bmadCoreConfig.js +30 -0
- package/packages/shared/dist/types/bmadCoreConfig.js.map +1 -0
- package/packages/shared/dist/types/bmadStatus.d.ts +10 -0
- package/packages/shared/dist/types/bmadStatus.d.ts.map +1 -1
- package/packages/shared/dist/types/bmadStatus.js.map +1 -1
- package/packages/shared/dist/types/board.d.ts +6 -0
- package/packages/shared/dist/types/board.d.ts.map +1 -1
- package/packages/shared/dist/types/command.d.ts +3 -3
- package/packages/shared/dist/types/command.d.ts.map +1 -1
- package/packages/shared/dist/types/contextBuilder.d.ts +102 -0
- package/packages/shared/dist/types/contextBuilder.d.ts.map +1 -0
- package/packages/shared/dist/types/contextBuilder.js +55 -0
- package/packages/shared/dist/types/contextBuilder.js.map +1 -0
- package/packages/shared/dist/types/harness.d.ts +1211 -0
- package/packages/shared/dist/types/harness.d.ts.map +1 -0
- package/packages/shared/dist/types/harness.js +107 -0
- package/packages/shared/dist/types/harness.js.map +1 -0
- package/packages/shared/dist/types/harnessBundle.d.ts +205 -0
- package/packages/shared/dist/types/harnessBundle.d.ts.map +1 -0
- package/packages/shared/dist/types/harnessBundle.js +18 -0
- package/packages/shared/dist/types/harnessBundle.js.map +1 -0
- package/packages/shared/dist/types/marketplace.d.ts +83 -0
- package/packages/shared/dist/types/marketplace.d.ts.map +1 -0
- package/packages/shared/dist/types/marketplace.js +18 -0
- package/packages/shared/dist/types/marketplace.js.map +1 -0
- package/packages/shared/dist/types/observability.d.ts +148 -0
- package/packages/shared/dist/types/observability.d.ts.map +1 -0
- package/packages/shared/dist/types/observability.js +24 -0
- package/packages/shared/dist/types/observability.js.map +1 -0
- package/packages/shared/dist/types/preferences.d.ts +4 -0
- package/packages/shared/dist/types/preferences.d.ts.map +1 -1
- package/packages/shared/dist/types/preferences.js.map +1 -1
- package/packages/shared/dist/types/queue.d.ts +9 -0
- package/packages/shared/dist/types/queue.d.ts.map +1 -1
- package/packages/shared/dist/types/sdk.d.ts +1 -1
- package/packages/shared/dist/types/sdk.d.ts.map +1 -1
- package/packages/shared/dist/types/sdk.js +1 -1
- package/packages/shared/dist/types/sdk.js.map +1 -1
- package/packages/shared/dist/types/websocket.d.ts +10 -0
- package/packages/shared/dist/types/websocket.d.ts.map +1 -1
- package/packages/shared/dist/utils/markdownSections.d.ts +50 -0
- package/packages/shared/dist/utils/markdownSections.d.ts.map +1 -0
- package/packages/shared/dist/utils/markdownSections.js +111 -0
- package/packages/shared/dist/utils/markdownSections.js.map +1 -0
- package/packages/shared/dist/utils/queueParser.d.ts.map +1 -1
- package/packages/shared/dist/utils/queueParser.js +104 -0
- package/packages/shared/dist/utils/queueParser.js.map +1 -1
- package/scripts/build-manual-shards.mjs +100 -0
- package/packages/client/dist/assets/index-6jREnVYd.js +0 -2
- package/packages/client/dist/assets/index-BFF0iqyW.css +0 -32
- package/packages/client/dist/assets/index-BcI4y-fU.js +0 -1454
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Image Storage
|
|
2
|
+
|
|
3
|
+
When the user attaches an image to a chat message, Hammoc saves it under **Claude Code's per-project session data**, not inside the project being worked on. The user does not see this — they just attach and send. This document is for an agent that needs to read or correlate the file directly.
|
|
4
|
+
|
|
5
|
+
## On-disk location
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
<homeDir>/.claude/projects/<encoded-project-path>/images/<sessionId>/<filename>
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
- `<homeDir>` — User home directory (Read/Edit tools do not expand `~`, so resolve to the absolute path first).
|
|
12
|
+
- `<encoded-project-path>` — Claude Code's project slug. Path separators (`/`, `\`) and colons (`:`) in the original project path are replaced with hyphens. Example: `D:\repo\hammoc` → `D--repo-hammoc`.
|
|
13
|
+
- `<sessionId>` — UUID of the chat session containing the message.
|
|
14
|
+
- `<filename>` — `<sha256-prefix-16chars>.<ext>` for the original. Thumbnails use `<sha256-prefix-16chars>_thumb.<ext>`.
|
|
15
|
+
- `<ext>` — One of `.png`, `.jpg`, `.gif`, `.webp`.
|
|
16
|
+
|
|
17
|
+
## Supported MIME types
|
|
18
|
+
|
|
19
|
+
| MIME | Extension |
|
|
20
|
+
|---|---|
|
|
21
|
+
| image/png | .png |
|
|
22
|
+
| image/jpeg | .jpg |
|
|
23
|
+
| image/gif | .gif |
|
|
24
|
+
| image/webp | .webp |
|
|
25
|
+
|
|
26
|
+
Anything else is rejected at attach time.
|
|
27
|
+
|
|
28
|
+
## How an agent reaches these files
|
|
29
|
+
|
|
30
|
+
- The chat message references each image via the API URL `/api/projects/<projectSlug>/sessions/<sessionId>/images/<filename>`. That URL is for the **browser** to render thumbnails — it is not a file-system path and Read tools cannot use it directly.
|
|
31
|
+
- To open the file from disk, build the absolute path under `<homeDir>/.claude/projects/...` using the rules above, then call Read with that path.
|
|
32
|
+
|
|
33
|
+
## Lifecycle
|
|
34
|
+
|
|
35
|
+
- Images are written the moment the user sends a message with attachments.
|
|
36
|
+
- A session's `images/<sessionId>/` directory is removed when the session itself is deleted.
|
|
37
|
+
- Filenames are content-addressed (sha256 prefix), so attaching the same image bytes twice within a session reuses the same filename — automatic deduplication.
|
|
38
|
+
|
|
39
|
+
## Limits
|
|
40
|
+
|
|
41
|
+
- 5 images per message
|
|
42
|
+
- 10 MB per image
|
|
43
|
+
- Total per-session storage is bounded only by disk; there is no automatic eviction other than session deletion.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Observability Storage
|
|
2
|
+
|
|
3
|
+
Hammoc's Observability panel (user-facing, manual §12.18) persists two kinds of data under the user's home `.hammoc` directory. These are **not** under `.claude/` and are reached with direct file reads, not through the harness file service.
|
|
4
|
+
|
|
5
|
+
`<homeDir>` must be resolved before use — Read does not expand `~`. On Windows that is `C:\Users\<user>\`.
|
|
6
|
+
|
|
7
|
+
## MCP / tool call log
|
|
8
|
+
|
|
9
|
+
- **Path:** `<homeDir>/.hammoc/observability/<projectSlug>.jsonl`
|
|
10
|
+
- **Format:** JSON Lines — one tool-call record per line. Each record holds: tool-use id, project slug, session id, server name (parsed from the `mcp__<server>__<tool>` prefix; `null` for built-in tools like Read/Edit/Bash), tool name, start timestamp (epoch ms), duration in ms (`null` if the call never returned), argument byte size, result byte size (`null` if no response), and a success flag (`null` if no response).
|
|
11
|
+
- **Bodies are never written** — only sizes. The log therefore cannot leak file contents or secrets.
|
|
12
|
+
- **Retention:** records older than 30 days (override with the `OBSERVABILITY_RETENTION_DAYS` env var) are pruned on append (throttled to ~30 min) and at server startup.
|
|
13
|
+
- **Written by:** the chat service hooks the existing SDK message stream and appends one record per tool result. "Orphan" calls (started, never returned) are flushed once at turn end with `null` duration / result / success.
|
|
14
|
+
|
|
15
|
+
## Exact token-count cache
|
|
16
|
+
|
|
17
|
+
- **Path:** `<homeDir>/.hammoc/observability/token-count-cache.json`
|
|
18
|
+
- **Format:** a JSON object mapping a SHA-256 hash of the input text → official token count.
|
|
19
|
+
- The **Exact count** button calls Anthropic's count-tokens API; the result is cached here keyed by content hash, so re-counting an unchanged file is free and the cache is shared across projects (identical files hash the same).
|
|
20
|
+
|
|
21
|
+
## Tokenizer preference
|
|
22
|
+
|
|
23
|
+
- The inline `~` hint is always a byte-size heuristic (size ÷ 4); a tokenizer-grade tier was evaluated but not adopted (it drifted 25–45% from the official count on Claude 4.x). The preference lives in `<homeDir>/.hammoc/preferences.json` under `observabilityTokenizer` and is global (all projects), though its toggle UI sits inside the Observability panel.
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
## 1. Getting Started
|
|
2
|
+
|
|
3
|
+
### 1.1 Installation
|
|
4
|
+
|
|
5
|
+
**Option A: Run with npx (no install)**
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npx hammoc
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
**Option B: Global install**
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install -g hammoc
|
|
15
|
+
hammoc
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
**Option C: From source (development)**
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
git clone https://github.com/starsh2001/hammoc.git
|
|
22
|
+
cd hammoc
|
|
23
|
+
npm install
|
|
24
|
+
npm run dev
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### 1.2 System Requirements
|
|
28
|
+
|
|
29
|
+
- **Node.js** >= 18.0.0 (v22 LTS recommended)
|
|
30
|
+
- **Claude Code CLI** installed and authenticated
|
|
31
|
+
- Modern browser (Chrome, Firefox, Safari, Edge)
|
|
32
|
+
|
|
33
|
+
### 1.3 First Launch
|
|
34
|
+
|
|
35
|
+
1. Open http://localhost:3000 in your browser
|
|
36
|
+
2. **Password Setup**: Set an admin password on first visit. This protects your instance from unauthorized access.
|
|
37
|
+
3. **Login**: Enter your password to sign in. **"Stay signed in"** keeps you logged in for 30 days (checked by default). After too many failed attempts, login is temporarily locked with a countdown timer.
|
|
38
|
+
4. **CLI Verification**: The onboarding wizard checks that Claude Code CLI is installed and authenticated. Follow the prompts if any step fails.
|
|
39
|
+
5. **Project Selection**: Choose an existing Claude Code project or create a new one.
|
|
40
|
+
|
|
41
|
+
### 1.4 Mobile Access
|
|
42
|
+
|
|
43
|
+
Hammoc is fully responsive. From any device on the same network:
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
http://<your-computer-ip>:3000
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
- Desktop: Enter sends message, Shift+Enter for new line
|
|
50
|
+
- Mobile (touch devices): Enter adds new line, tap the send button to send
|
|
51
|
+
- **Pull-to-refresh**: Swipe down on the session list to refresh
|
|
52
|
+
|
|
53
|
+
### 1.5 CLI Options
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
hammoc --port 8080 # Custom port
|
|
57
|
+
hammoc --host localhost # Bind to localhost only
|
|
58
|
+
hammoc --trust-proxy # Enable reverse proxy support
|
|
59
|
+
hammoc --cors-origin <url> # Restrict CORS to specific origin
|
|
60
|
+
hammoc --reset-password # Reset admin password
|
|
61
|
+
hammoc --version # Show version
|
|
62
|
+
hammoc --help # Show help
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
All options are also available as environment variables (see [Environment Variables](#14-environment-variables)).
|
|
66
|
+
|
|
67
|
+
### 1.6 Remote Access (Reverse Proxy)
|
|
68
|
+
|
|
69
|
+
If you need to expose Hammoc through a reverse proxy (Cloudflare Tunnel, nginx, etc.), use `--trust-proxy` and `--cors-origin`:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
npx hammoc --trust-proxy --cors-origin https://hammoc.yourdomain.com
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
**What `--trust-proxy` enables:**
|
|
76
|
+
- Reads real client IP from proxy headers for access control (e.g. localhost-only endpoints)
|
|
77
|
+
- Sets session cookies with `Secure` flag (HTTPS-only)
|
|
78
|
+
|
|
79
|
+
**What `--cors-origin` does:**
|
|
80
|
+
- Restricts cross-origin requests to the specified URL only
|
|
81
|
+
- Without it, any website can make authenticated requests to your Hammoc instance
|
|
82
|
+
|
|
83
|
+
**Security features (always active, no configuration needed):**
|
|
84
|
+
- Security headers (CSP, X-Frame-Options, HSTS, etc.)
|
|
85
|
+
- Server management APIs (restart, update) restricted to localhost only
|
|
86
|
+
- Terminal access restricted to local network IPs
|
|
87
|
+
- Login brute-force protection (5 failed attempts → 30s lockout per IP)
|
|
88
|
+
|
|
89
|
+
> **Note:** Hammoc does not apply request-level rate limiting itself — traffic shaping is an infrastructure concern. Configure it at your reverse proxy / WAF / API gateway (nginx `limit_req`, Cloudflare WAF rules, etc.).
|
|
90
|
+
|
|
91
|
+
### 1.7 HTTPS / TLS
|
|
92
|
+
|
|
93
|
+
Hammoc automatically enables HTTPS when TLS certificates are found:
|
|
94
|
+
|
|
95
|
+
1. Place your certificate files in the `~/.hammoc/` directory:
|
|
96
|
+
- `~/.hammoc/key.pem` — Private key
|
|
97
|
+
- `~/.hammoc/cert.pem` — Certificate (or full chain)
|
|
98
|
+
2. Restart Hammoc — it will detect the files and start an HTTPS server
|
|
99
|
+
3. The startup log will show `TLS: enabled (certs from ~/.hammoc/)`
|
|
100
|
+
|
|
101
|
+
If no certificates are found, the server runs over HTTP as usual.
|
|
102
|
+
|
|
103
|
+
> **Tip:** For local development, you can generate self-signed certificates with `mkcert` or `openssl`. For production, use certificates from Let's Encrypt or your domain provider.
|
|
104
|
+
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
## 2. Chat
|
|
2
|
+
|
|
3
|
+
The chat interface is the core of Hammoc. It provides a rich, real-time conversation experience with Claude.
|
|
4
|
+
|
|
5
|
+
### 2.1 Sending Messages
|
|
6
|
+
|
|
7
|
+
- Type your message in the input area at the bottom
|
|
8
|
+
- **Desktop**: Press `Enter` to send, `Shift+Enter` for a new line
|
|
9
|
+
- **Mobile**: Press `Enter` for a new line, tap the send button to send
|
|
10
|
+
- The input area auto-expands as you type
|
|
11
|
+
|
|
12
|
+
### 2.2 Streaming Responses
|
|
13
|
+
|
|
14
|
+
Claude's responses stream in real-time, character by character. You'll see:
|
|
15
|
+
|
|
16
|
+
- **Text content** — Rendered as markdown as it arrives
|
|
17
|
+
- **Tool calls** — Shown as expandable cards with tool name, inputs, and results
|
|
18
|
+
- **Thinking blocks** — Claude's extended reasoning displayed in collapsible sections
|
|
19
|
+
- **Timestamps** — Each message shows a relative timestamp (e.g., "2 hours ago")
|
|
20
|
+
- **Copy button** — Click the copy icon on any message to copy its content to the clipboard
|
|
21
|
+
- **Scroll to bottom** — When scrolled up, a down-arrow button appears to jump back to the latest message
|
|
22
|
+
|
|
23
|
+
### 2.3 Markdown & Code Blocks
|
|
24
|
+
|
|
25
|
+
Messages support full GitHub-flavored markdown:
|
|
26
|
+
|
|
27
|
+
- Headers, bold, italic, strikethrough
|
|
28
|
+
- Ordered and unordered lists
|
|
29
|
+
- Tables
|
|
30
|
+
- Blockquotes
|
|
31
|
+
- Links (open in new tab)
|
|
32
|
+
- Inline code and fenced code blocks
|
|
33
|
+
|
|
34
|
+
**HTML support:**
|
|
35
|
+
- Inline HTML tags are rendered alongside markdown (e.g., `<div>`, `<span>`, `<table>`)
|
|
36
|
+
- Dangerous elements (`<script>`, `<iframe>`, `<style>`, event handlers) are automatically stripped for XSS protection
|
|
37
|
+
|
|
38
|
+
**Relative path resolution:**
|
|
39
|
+
- File links and image references in markdown resolve relative to the source file's directory
|
|
40
|
+
- Parent traversal (`../`) is supported (e.g., `../../config.json` navigates up two levels)
|
|
41
|
+
- Clicking resolved file links opens them in the text editor; images open in the image viewer
|
|
42
|
+
|
|
43
|
+
**Code blocks** have:
|
|
44
|
+
- Language-specific syntax highlighting
|
|
45
|
+
- Copy button (top-right corner)
|
|
46
|
+
- File reference links that open directly in the editor
|
|
47
|
+
|
|
48
|
+
### 2.4 Image Attachments
|
|
49
|
+
|
|
50
|
+
Attach images to your messages for Claude to analyze:
|
|
51
|
+
|
|
52
|
+
- Click the attachment button (paperclip icon) in the input area
|
|
53
|
+
- Drag and drop images directly onto the input area
|
|
54
|
+
- Paste from clipboard (`Ctrl+V` / `Cmd+V`)
|
|
55
|
+
- Supported formats: PNG, JPEG, GIF, WebP
|
|
56
|
+
- Maximum: 5 images per message, 10MB per image
|
|
57
|
+
- Images preview in the input area before sending
|
|
58
|
+
- Sent images display as clickable thumbnails above the message text. Clicking a thumbnail opens the full image viewer with multi-image navigation (see §6.4)
|
|
59
|
+
|
|
60
|
+
### 2.5 Tool Call Visualization
|
|
61
|
+
|
|
62
|
+
When Claude uses tools (reading files, editing code, running commands), each tool call is shown as a card:
|
|
63
|
+
|
|
64
|
+
- **Tool name** — e.g., Read, Edit, Bash, Grep
|
|
65
|
+
- **Input parameters** — What was passed to the tool
|
|
66
|
+
- **Status indicator** — Running (spinner), completed (checkmark), failed (X), denied (shield icon)
|
|
67
|
+
- **Execution time** — How long the tool took
|
|
68
|
+
- **Result** — Expandable section showing tool output
|
|
69
|
+
- **File paths** — Toggle between short and full path display
|
|
70
|
+
|
|
71
|
+
### 2.6 Task Notifications
|
|
72
|
+
|
|
73
|
+
When Claude runs background tasks (e.g., Agent sub-tasks), a notification card appears in the message stream upon completion:
|
|
74
|
+
|
|
75
|
+
- **Status indicators** — Completed (green checkmark), Failed (red alert), Stopped (bell icon)
|
|
76
|
+
- **Summary text** — Brief description of the task outcome
|
|
77
|
+
- **Clickable** — When linked to a tool call, clicking the card scrolls to the associated Agent tool card and highlights it briefly
|
|
78
|
+
|
|
79
|
+
### 2.7 Diff Viewer
|
|
80
|
+
|
|
81
|
+
When Claude modifies files, a diff viewer shows the changes:
|
|
82
|
+
|
|
83
|
+
- **Side-by-side mode** — Before and after comparison (wide screens)
|
|
84
|
+
- **Inline mode** — Unified diff view (narrow screens or mobile)
|
|
85
|
+
- **Syntax highlighting** — Language-aware coloring
|
|
86
|
+
- **Diff navigation** — `F7` next change, `Shift+F7` previous change
|
|
87
|
+
- **Large file handling** — Very large files are handled with optimized rendering
|
|
88
|
+
- **Responsive layout** — Automatically switches between side-by-side and inline modes based on screen width (768px breakpoint)
|
|
89
|
+
- **Manual layout toggle** — A toggle button in the viewer header (Columns2 / Rows2 icon) lets you force side-by-side or inline. The choice is persisted per user and overrides the responsive default until reset
|
|
90
|
+
|
|
91
|
+
### 2.8 Permission Requests
|
|
92
|
+
|
|
93
|
+
Depending on your permission mode, Claude may ask for approval before modifying files:
|
|
94
|
+
|
|
95
|
+
- **Approve** — Allow the change
|
|
96
|
+
- **Reject** — Block the change
|
|
97
|
+
- View the diff before deciding
|
|
98
|
+
- See the list of requested permissions
|
|
99
|
+
|
|
100
|
+
### 2.9 Prompt Chaining
|
|
101
|
+
|
|
102
|
+
Queue multiple prompts for sequential execution. Chain state is managed server-side, enabling multi-browser sync and background execution.
|
|
103
|
+
|
|
104
|
+
1. Toggle **chain mode** ON via the chain button (link icon next to send) or hold `Ctrl`
|
|
105
|
+
2. Type your first prompt and send it — the send button label changes to **"Add to chain"**
|
|
106
|
+
3. While Claude is responding, type the next prompt and send — it enters the chain
|
|
107
|
+
4. Up to **10** prompts can be queued
|
|
108
|
+
5. A **violet banner** shows the chain status:
|
|
109
|
+
- **Collapsed mode** — First prompt preview + "+N" count indicator
|
|
110
|
+
- **Expanded mode** — Full list with individual **Remove** buttons (click to expand when 2+ items)
|
|
111
|
+
- **Drag-and-drop reorder** — In the expanded list, grab the grip handle (GripVertical icon) on the left of any pending item to drag it up or down. Items that are actively sending show a spinner instead of a grip and cannot be moved
|
|
112
|
+
- **Cancel all** — Clear the entire chain
|
|
113
|
+
6. Each prompt auto-executes when the previous one completes
|
|
114
|
+
|
|
115
|
+
**Server-side features:**
|
|
116
|
+
- **Multi-browser sync** — Chain state is synchronized across all browser tabs/windows
|
|
117
|
+
- **Background execution** — Chain continues running even if all browsers are closed
|
|
118
|
+
- **Auto-retry** — Failed items are automatically retried before being marked as failed
|
|
119
|
+
|
|
120
|
+
### 2.10 Context Usage
|
|
121
|
+
|
|
122
|
+
Monitor token usage in real-time:
|
|
123
|
+
|
|
124
|
+
- **Usage donut** — Visual indicator showing used/limit tokens and percentage
|
|
125
|
+
- **Cost display** — Estimated cost for the session
|
|
126
|
+
- **Cache tokens** — Cache creation and read token counts
|
|
127
|
+
- **Rate limit dots** — 5h/7d utilization indicators in the input area
|
|
128
|
+
- **Color thresholds** — Green (normal), Yellow (moderate), Red (high usage)
|
|
129
|
+
- **Context compaction** — Click the usage donut to trigger compaction, which summarizes the conversation to free up context space. At critical usage levels, clicking instead creates a new session
|
|
130
|
+
- **Auto-compact on overflow** — When message history hits the context window limit, Hammoc automatically compacts the context and retries the message instead of losing the session
|
|
131
|
+
|
|
132
|
+
### 2.11 Aborting Responses
|
|
133
|
+
|
|
134
|
+
Stop Claude mid-response:
|
|
135
|
+
|
|
136
|
+
- Click the **Stop** button (appears during streaming)
|
|
137
|
+
- Press `ESC` key
|
|
138
|
+
- Press `Ctrl+C` (when no text is selected in the input)
|
|
139
|
+
|
|
140
|
+
### 2.12 Prompt History
|
|
141
|
+
|
|
142
|
+
Navigate through your previous inputs:
|
|
143
|
+
|
|
144
|
+
- Press `↑` (Up arrow) to recall the previous prompt
|
|
145
|
+
- Press `↓` (Down arrow) to go forward
|
|
146
|
+
- History is per-session
|
|
147
|
+
|
|
148
|
+
### 2.13 Voice Input (Speech Recognition)
|
|
149
|
+
|
|
150
|
+
Dictate messages using your browser's built-in speech recognition:
|
|
151
|
+
|
|
152
|
+
- **Microphone button** — Located inside the chat input area (right side). Only shown when the browser supports the Web Speech API (Chrome, Edge, Safari)
|
|
153
|
+
- **Toggle** — Click the mic button to start/stop listening
|
|
154
|
+
- **Visual indicator** — Green indicator while actively listening
|
|
155
|
+
- **Language-aware** — Automatically matches the app's language setting (English, Korean, Chinese, Japanese, Spanish, Portuguese)
|
|
156
|
+
- Recognized text is added to the current input without replacing existing text
|
|
157
|
+
- **Auto-stop** — Voice recognition stops automatically when sending a message or when the session becomes locked
|
|
158
|
+
- **Error handling** — Toast notification shown if microphone access is denied or recognition fails
|
|
159
|
+
|
|
160
|
+
### 2.14 Extended Thinking
|
|
161
|
+
|
|
162
|
+
When Claude uses extended thinking, the reasoning is shown in a collapsible block:
|
|
163
|
+
|
|
164
|
+
- Click to expand/collapse
|
|
165
|
+
- Thinking content is visually distinct from the main response
|
|
166
|
+
- Useful for understanding Claude's decision-making process
|
|
167
|
+
|
|
168
|
+
### 2.15 Model Selector
|
|
169
|
+
|
|
170
|
+
The model selector button is located in the chat input toolbar. It displays the current model family name (e.g., "Opus", "Sonnet", "Haiku") directly on the button. When using the default model, it shows "Default". Click to open a dropdown for choosing a different model and adjusting thinking effort.
|
|
171
|
+
|
|
172
|
+
### 2.16 Thinking Effort
|
|
173
|
+
|
|
174
|
+
Control how much Claude "thinks" before responding. The intensity bar appears inside the model selector dropdown. The number of bars depends on the selected model:
|
|
175
|
+
|
|
176
|
+
- **Low / Medium / High** — 3 levels, available for all models
|
|
177
|
+
- **Max** — 4th level, added for Opus 4.6 / Sonnet 4.6
|
|
178
|
+
- **XHigh** — 5th level, added for **Opus 4.7+** (the default effort for these models is XHigh)
|
|
179
|
+
|
|
180
|
+
Behavior:
|
|
181
|
+
|
|
182
|
+
- Click the currently active level again to reset to default
|
|
183
|
+
- Cannot be changed while Claude is responding
|
|
184
|
+
- If you switch to a model that doesn't support the current level (e.g., XHigh → model without XHigh, or Max → model without Max), the effort automatically resets to the highest supported level
|
|
185
|
+
- When the active model is temporarily unknown (e.g., right after switching projects before the resolved model arrives), the dropdown keeps your saved choice instead of resetting it. As soon as the model is known, the effort is reclamped if necessary
|
|
186
|
+
|
|
187
|
+
The default thinking effort for new sessions can be configured in Settings > Global.
|
|
188
|
+
|
|
189
|
+
### 2.17 Message Actions
|
|
190
|
+
|
|
191
|
+
Each message has an action bar that appears at its bottom-right corner. Available actions depend on the message type:
|
|
192
|
+
|
|
193
|
+
**On all messages:**
|
|
194
|
+
- **Copy** — Copy the message text to clipboard
|
|
195
|
+
|
|
196
|
+
**On user messages:**
|
|
197
|
+
- **Edit** — Open an inline editor to modify the message (see §2.18)
|
|
198
|
+
- **Summarize & Continue** — Generate an AI summary of the conversation up to that point (see §2.19)
|
|
199
|
+
- **Rewind Code** — Restore the codebase to the state it was in when this message was sent (see §2.20)
|
|
200
|
+
|
|
201
|
+
**On assistant messages:**
|
|
202
|
+
- **Fork** — Create a new session branching from this response (see §2.21)
|
|
203
|
+
|
|
204
|
+
All action buttons are disabled during streaming, and while another action (edit, rewind, summarize) is in progress. Actions are also disabled when viewing an old branch or in branch viewer mode (see §2.23).
|
|
205
|
+
|
|
206
|
+
### 2.18 Message Edit
|
|
207
|
+
|
|
208
|
+
Edit a previously sent user message to explore a different conversation path:
|
|
209
|
+
|
|
210
|
+
1. Click the **Edit** button (pencil icon) on a user message
|
|
211
|
+
2. The message transforms into an editable textarea with the original text
|
|
212
|
+
3. Modify the text, then:
|
|
213
|
+
- **Accept** (checkmark button or `Ctrl+Enter`) — Send the edited message. Claude responds to the new version, creating a new conversation branch
|
|
214
|
+
- **Cancel** (X button or `Escape`) — Discard changes
|
|
215
|
+
4. Empty messages cannot be submitted
|
|
216
|
+
|
|
217
|
+
After editing, you can navigate between the original and edited branches using branch pagination (see §2.22).
|
|
218
|
+
|
|
219
|
+
### 2.19 Summarize & Continue
|
|
220
|
+
|
|
221
|
+
Compress a long conversation into a summary to free up context space while continuing the session:
|
|
222
|
+
|
|
223
|
+
1. Click the **Summarize & Continue** button (sparkles icon) on a user message
|
|
224
|
+
2. AI generates a summary of the conversation up to that point (spinner shown during generation)
|
|
225
|
+
3. To cancel mid-generation, click the button again (shows X on hover)
|
|
226
|
+
4. When complete, the inline edit form opens with the generated summary pre-filled
|
|
227
|
+
5. Review, edit if needed, then **Accept** to continue with the summary or **Cancel** to discard
|
|
228
|
+
|
|
229
|
+
### 2.20 Code Rewind
|
|
230
|
+
|
|
231
|
+
Revert project files to a previous state in the conversation:
|
|
232
|
+
|
|
233
|
+
1. Click the **Rewind Code** button (undo icon) on a user message
|
|
234
|
+
2. A dry-run preview shows how many files will change (insertions/deletions count)
|
|
235
|
+
3. Review the file list and click **Rewind** to confirm, or **Cancel** to abort
|
|
236
|
+
4. On success, a toast confirms the number of files restored
|
|
237
|
+
|
|
238
|
+
If no checkpoint is available for that message, or the code is already at that state, an error message is shown.
|
|
239
|
+
|
|
240
|
+
### 2.21 Session Fork
|
|
241
|
+
|
|
242
|
+
Branch into a completely new session from any assistant response:
|
|
243
|
+
|
|
244
|
+
1. Click the **Fork** button (git-fork icon) on an assistant message
|
|
245
|
+
2. A dialog appears with an optional message field (defaults to "Continue from here")
|
|
246
|
+
3. Click **Fork** to create the new session
|
|
247
|
+
4. The new session starts with the full conversation history up to that point, plus your fork message
|
|
248
|
+
5. You are automatically navigated to the new session
|
|
249
|
+
|
|
250
|
+
The original session remains unchanged.
|
|
251
|
+
|
|
252
|
+
### 2.22 Conversation Branching
|
|
253
|
+
|
|
254
|
+
When you edit a message, the conversation splits into branches. Branch pagination controls appear at the bottom-left of user messages that have multiple branches:
|
|
255
|
+
|
|
256
|
+
- **← / →** arrows to navigate between branches
|
|
257
|
+
- **"X / Y"** indicator showing current branch number and total count
|
|
258
|
+
- Keyboard: **Left/Right arrow keys** to navigate (when the pagination is focused)
|
|
259
|
+
- Navigation is disabled during streaming
|
|
260
|
+
|
|
261
|
+
Switching branches replaces all messages from that point forward with the selected branch's history.
|
|
262
|
+
|
|
263
|
+
### 2.23 Branch Viewer
|
|
264
|
+
|
|
265
|
+
Browse all conversation branches in a read-only mode:
|
|
266
|
+
|
|
267
|
+
1. Click the **branch history button** (git-branch icon) in the chat header — only visible when the session has branches
|
|
268
|
+
2. The chat enters read-only mode:
|
|
269
|
+
- Branch pagination controls become active at every branch point
|
|
270
|
+
- Navigate freely between branches using ← / → arrows
|
|
271
|
+
- The input area shows "Branch viewer mode (read-only)"
|
|
272
|
+
- All message actions (edit, rewind, summarize, fork) are disabled
|
|
273
|
+
3. Click **"Exit branch viewer"** in the header to return to the active conversation
|
|
274
|
+
|
|
275
|
+
### 2.24 Max Budget Warning Banner
|
|
276
|
+
|
|
277
|
+
When the **Max Budget (USD)** advanced setting (see §13.16) is configured, a sticky banner appears at the top of the chat area once the session cost approaches the limit:
|
|
278
|
+
|
|
279
|
+
- **Yellow warning** (80% threshold) — "Budget warning: $X.XXXX / $Y.YYYY used (ZZ%) — approaching Max Budget limit."
|
|
280
|
+
- **Red critical warning** (95% threshold) — "Budget critical: $X.XXXX / $Y.YYYY used (ZZ%) — stream will auto-stop when limit is exceeded."
|
|
281
|
+
- Cost is shown to 4 decimal places
|
|
282
|
+
- The banner is informational; the SDK auto-stops the stream once the limit is actually crossed
|
|
283
|
+
|
|
284
|
+
The banner disappears automatically once the running cost falls back below the warning threshold (for example, after starting a new session).
|
|
285
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
## 3. Sessions
|
|
2
|
+
|
|
3
|
+
### 3.1 Session List
|
|
4
|
+
|
|
5
|
+
Access the session list via the sidebar or quick panel:
|
|
6
|
+
|
|
7
|
+
- **Preview** — First prompt of each session
|
|
8
|
+
- **Session name badge** — Custom name shown as a blue badge (if renamed)
|
|
9
|
+
- **Agent badge** — Active BMad agent shown as a purple badge (if set)
|
|
10
|
+
- **Session ID** — Truncated identifier
|
|
11
|
+
- **Message count** — Number of messages in the session
|
|
12
|
+
- **Date** — When the session was last active
|
|
13
|
+
- **Streaming indicator** — Green dot with animation when streaming
|
|
14
|
+
- **Waiting indicator** — Amber pulsing dot with "Waiting" badge when a session is connected but not yet streaming
|
|
15
|
+
- **Queue badge** — Shown when queue runner is active on the session
|
|
16
|
+
- Empty sessions are hidden by default (toggle with the eye icon)
|
|
17
|
+
|
|
18
|
+
### 3.2 Creating a New Session
|
|
19
|
+
|
|
20
|
+
- Click the **New Session** button in the header
|
|
21
|
+
- Each session gets a unique ID
|
|
22
|
+
|
|
23
|
+
### 3.3 Session Search
|
|
24
|
+
|
|
25
|
+
Two distinct search modes:
|
|
26
|
+
|
|
27
|
+
- **By name/ID** — Client-side filtering of the session list by name or session ID
|
|
28
|
+
- **By content** — Toggle "Search content" to search through actual conversation messages (server-side, slower but thorough)
|
|
29
|
+
- Matching sessions are filtered and displayed in the list
|
|
30
|
+
- "Load more" pagination for large result sets
|
|
31
|
+
|
|
32
|
+
### 3.4 Session Operations
|
|
33
|
+
|
|
34
|
+
- **Rename** — Click the edit icon next to the session name
|
|
35
|
+
- **Delete** — Remove a session (with confirmation)
|
|
36
|
+
- **Selection mode** — Select multiple sessions for batch delete
|
|
37
|
+
- **Delete empty sessions** — Bulk-delete all empty sessions at once
|
|
38
|
+
|
|
39
|
+
### 3.5 Quick Session Panel
|
|
40
|
+
|
|
41
|
+
Access sessions without leaving the chat:
|
|
42
|
+
|
|
43
|
+
- Open the quick panel (sidebar tab)
|
|
44
|
+
- Switch between sessions instantly
|
|
45
|
+
- See session previews and status
|
|
46
|
+
- **Side toggle** — Move the panel to the left or right side using the button in the panel header
|
|
47
|
+
- **Mobile swipe** — Swipe inward from the screen edge to open, swipe back toward the edge to close
|
|
48
|
+
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
## 4. Slash Commands & Favorites
|
|
2
|
+
|
|
3
|
+
### 4.1 Command Palette
|
|
4
|
+
|
|
5
|
+
Type `/` in the chat input to open the command palette:
|
|
6
|
+
|
|
7
|
+
- Browse available commands grouped by category — **Agents**, **Tasks**, **Skills**, **Slash Commands** (project / global / plugin `.claude/commands/*.md` files), and **Commands** (everything else)
|
|
8
|
+
- Filter by typing: `/test` shows commands containing "test"
|
|
9
|
+
- Commands are project-specific — loaded from the project's configured agents and tasks
|
|
10
|
+
- **Real-time refresh** — The command and skill list is fetched from the server each time the palette opens, reflecting newly added or removed commands
|
|
11
|
+
- Navigate with **ArrowUp/Down**, close with **Escape**
|
|
12
|
+
- Press **Enter** or click to insert the selected command
|
|
13
|
+
|
|
14
|
+
### 4.2 Star Command Palette
|
|
15
|
+
|
|
16
|
+
Type `*` in the chat input to open the star command palette (requires an active agent):
|
|
17
|
+
|
|
18
|
+
- Shows commands specific to the currently active agent
|
|
19
|
+
- Filter by typing: `*create` filters matching commands
|
|
20
|
+
- Navigate with **ArrowUp/Down**, close with **Escape**
|
|
21
|
+
- Press **Enter** or click to insert — placeholders like `{name}` are auto-selected
|
|
22
|
+
- Add to star favorites by clicking the star icon on any command
|
|
23
|
+
|
|
24
|
+
### 4.3 Favorites
|
|
25
|
+
|
|
26
|
+
Pin your most-used slash commands for quick access:
|
|
27
|
+
|
|
28
|
+
- **Favorites bar** — Appears above the chat input (hidden when empty)
|
|
29
|
+
- Hold up to **20 favorites**
|
|
30
|
+
- Click a favorite chip to instantly insert it
|
|
31
|
+
- **Add**: Click the star icon on any command in the slash command palette
|
|
32
|
+
- **Remove**: Open the favorites popup and click the X button
|
|
33
|
+
- **Reorder**: Open the favorites popup and drag to rearrange
|
|
34
|
+
- Disabled during queue runner execution
|
|
35
|
+
|
|
36
|
+
### 4.4 Star Favorites
|
|
37
|
+
|
|
38
|
+
Mark up to **10 star favorites** per agent for even quicker access:
|
|
39
|
+
|
|
40
|
+
- Star favorites appear with a yellow indicator and `*` prefix
|
|
41
|
+
- They are prioritized at the top of the favorites bar, before slash favorites
|
|
42
|
+
- **Add**: Click the star icon on any command in the star command palette (`*`)
|
|
43
|
+
- **Remove**: Open the favorites popup and click the X button
|
|
44
|
+
|
|
45
|
+
### 4.5 Favorite Management
|
|
46
|
+
|
|
47
|
+
Click the star button (★) on the favorites bar to open the management popup:
|
|
48
|
+
|
|
49
|
+
- **Two sections**: "Agent Command" (star favorites) and "Slash Command" (slash favorites), separated by a divider
|
|
50
|
+
- Remove favorites with the X button
|
|
51
|
+
- Drag to reorder within each section
|
|
52
|
+
- Click a command to insert it into the chat input
|
|
53
|
+
|
|
54
|
+
### 4.6 Prompt Snippets
|
|
55
|
+
|
|
56
|
+
Prompt snippets are reusable prompt templates stored as files. Invoke them with the `%` prefix in the chat input.
|
|
57
|
+
|
|
58
|
+
**Snippet storage (3-tier hierarchy, highest priority first):**
|
|
59
|
+
|
|
60
|
+
1. **Project snippets** — `.hammoc/snippets/` in the project directory
|
|
61
|
+
2. **Global snippets** — `~/.hammoc/snippets/`
|
|
62
|
+
3. **Bundled snippets** — Built-in snippets shipped with Hammoc (~22 standard snippets)
|
|
63
|
+
|
|
64
|
+
If the same snippet name exists in multiple tiers, the highest-priority source is used. You can override bundled snippets by placing a file with the same name in your project or global snippets directory.
|
|
65
|
+
|
|
66
|
+
**Snippet files:**
|
|
67
|
+
- Plain text files (optionally with `.md` extension)
|
|
68
|
+
- File name becomes the snippet name (e.g., `commit-and-done` or `commit-and-done.md`)
|
|
69
|
+
- Maximum file size: 100KB
|
|
70
|
+
|
|
71
|
+
**Bundled standard snippets include:**
|
|
72
|
+
- Workflow: `commit-and-done`, `mark-done`, `apply-qa-fixes`, `validate-and-approve`, `validate-and-fix`
|
|
73
|
+
- Issues: `quick-fix-issue`, `promote-issue`, `promote-to-story`, `promote-to-epic`
|
|
74
|
+
- Research: `brainstorm`, `competitor-analysis`, `market-research`, `create-prd`, `create-project-brief`
|
|
75
|
+
- Architecture: `create-backend-arch`, `create-frontend-arch`, `create-fullstack-arch`, `create-frontend-spec`
|
|
76
|
+
- Stories: `develop-story`, `draft-story`, `brownfield-create-story`, `brownfield-create-epic`
|
|
77
|
+
- QA: `qa-review`, `validate-story`
|
|
78
|
+
|
|
79
|
+
### 4.7 Snippet Autocomplete
|
|
80
|
+
|
|
81
|
+
Type `%` in the chat input to open the snippet autocomplete popup:
|
|
82
|
+
|
|
83
|
+
- **Grouped by source** — Sections labeled "Project", "Global", and "Bundled"
|
|
84
|
+
- **Preview** — Shows the first line of each snippet's content (up to 80 characters)
|
|
85
|
+
- **Real-time filtering** — Type after `%` to filter by name or preview text (case-insensitive)
|
|
86
|
+
- **Keyboard navigation** — ArrowUp/Down to navigate, Enter or Tab to select, Escape to close
|
|
87
|
+
- **Click** to select a snippet
|
|
88
|
+
- **Real-time refresh** — The snippet list is fetched from the server each time the popup opens, reflecting any file changes
|
|
89
|
+
|
|
90
|
+
Selecting a snippet inserts `%snippet-name ` (with trailing space) into the input. Deduplication ensures only the highest-priority version of each snippet name appears.
|
|
91
|
+
|
|
92
|
+
### 4.8 Snippet Arguments & Context
|
|
93
|
+
|
|
94
|
+
Snippets support placeholder substitution for dynamic content.
|
|
95
|
+
|
|
96
|
+
**Positional arguments** (`{arg1}`, `{arg2}`, ...):
|
|
97
|
+
|
|
98
|
+
Arguments are space-separated after the snippet name:
|
|
99
|
+
|
|
100
|
+
```
|
|
101
|
+
%commit-and-done BS-2
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
If the snippet file contains `Commit changes for story {arg1}`, this resolves to `Commit changes for story BS-2`.
|
|
105
|
+
|
|
106
|
+
**Quoted arguments** — Use double quotes for multi-word arguments:
|
|
107
|
+
|
|
108
|
+
```
|
|
109
|
+
%promote-issue "Fix login button" critical bug
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
Here `{arg1}` = `Fix login button`, `{arg2}` = `critical`, `{arg3}` = `bug`. Inside quotes, use `\"` for literal quotes and `\\` for literal backslashes.
|
|
113
|
+
|
|
114
|
+
**Context blocks** (`{context}` + `---context`):
|
|
115
|
+
|
|
116
|
+
For injecting longer text into a snippet, add `---context` after the arguments followed by the content:
|
|
117
|
+
|
|
118
|
+
```
|
|
119
|
+
%quick-fix-issue docs/issues/ISSUE-1.md critical bug
|
|
120
|
+
---context
|
|
121
|
+
# Button fails on mobile
|
|
122
|
+
The login button doesn't render on iOS devices.
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
The text after `---context` replaces all `{context}` placeholders in the snippet.
|
|
126
|
+
|
|
127
|
+
**Unreferenced arguments** are ignored. Unreplaced placeholders remain as literal text.
|
|
128
|
+
|
|
129
|
+
### 4.9 Multi-Prompt Snippets
|
|
130
|
+
|
|
131
|
+
Snippets can contain multiple prompts separated by `---` on its own line:
|
|
132
|
+
|
|
133
|
+
```
|
|
134
|
+
*validate-story-draft {arg1}
|
|
135
|
+
---
|
|
136
|
+
Please fix all identified issues.
|
|
137
|
+
---
|
|
138
|
+
Mark as approved.
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
When invoked as `%validate-and-fix BS-2`:
|
|
142
|
+
|
|
143
|
+
1. The first prompt executes immediately as the chat message
|
|
144
|
+
2. Remaining prompts are added to the prompt chain queue (see §2.9) for sequential execution
|
|
145
|
+
|
|
146
|
+
The total number of chain items is subject to the 10-item chain limit.
|
|
147
|
+
|
|
148
|
+
**Usage in different contexts:**
|
|
149
|
+
- **Chat messages** — First prompt sent immediately, remaining prompts queued as chain items
|
|
150
|
+
- **Prompt chain** — All resolved prompts added as chain items
|
|
151
|
+
- **Queue scripts** — Snippet is expanded inline, with additional prompts spliced into the queue
|
|
152
|
+
|