hoomanjs 1.23.3 → 1.23.5
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 +2 -4
- package/dist/acp/approvals.js +15 -1
- package/dist/acp/approvals.js.map +1 -1
- package/dist/acp/sessions/config-options.js +2 -2
- package/dist/acp/sessions/config-options.js.map +1 -1
- package/dist/chat/app.js +8 -8
- package/dist/chat/app.js.map +1 -1
- package/dist/chat/approvals.js +6 -1
- package/dist/chat/approvals.js.map +1 -1
- package/dist/chat/components/SlashCommands.js +3 -3
- package/dist/chat/components/SlashCommands.js.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/configure/app.js +0 -1
- package/dist/configure/app.js.map +1 -1
- package/dist/core/agent/index.js +3 -2
- package/dist/core/agent/index.js.map +1 -1
- package/dist/core/agent/mode-aware-tool-registry.js +15 -5
- package/dist/core/agent/mode-aware-tool-registry.js.map +1 -1
- package/dist/core/config.d.ts +0 -3
- package/dist/core/config.js +0 -3
- package/dist/core/config.js.map +1 -1
- package/dist/core/mcp/manager.js +15 -4
- package/dist/core/mcp/manager.js.map +1 -1
- package/dist/core/mcp/prefixed-mcp-tool.d.ts +3 -1
- package/dist/core/mcp/prefixed-mcp-tool.js +4 -1
- package/dist/core/mcp/prefixed-mcp-tool.js.map +1 -1
- package/dist/core/prompts/modes/ask.md +1 -3
- package/dist/core/prompts/modes/plan.md +24 -23
- package/dist/core/prompts/session-mode-appendix.d.ts +13 -2
- package/dist/core/prompts/session-mode-appendix.js +57 -12
- package/dist/core/prompts/session-mode-appendix.js.map +1 -1
- package/dist/core/prompts/skills.js +1 -0
- package/dist/core/prompts/skills.js.map +1 -1
- package/dist/core/prompts/static/skills.md +1 -0
- package/dist/core/prompts/system.js +0 -1
- package/dist/core/prompts/system.js.map +1 -1
- package/dist/core/skills/built-in/hooman-coding/SKILL.md +69 -0
- package/dist/core/skills/built-in/hooman-config/SKILL.md +137 -62
- package/dist/core/state/tool-approvals.d.ts +9 -1
- package/dist/core/state/tool-approvals.js +34 -1
- package/dist/core/state/tool-approvals.js.map +1 -1
- package/dist/core/tools/plan.js +4 -0
- package/dist/core/tools/plan.js.map +1 -1
- package/dist/daemon/approvals.js +6 -1
- package/dist/daemon/approvals.js.map +1 -1
- package/dist/exec/approvals.js +6 -1
- package/dist/exec/approvals.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/core/prompts/harness/engineering.md +0 -40
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export { attachmentDiagnosticBlock, attachmentPathsToPromptBlocks, normalizeAtta
|
|
|
7
7
|
export type { AttachmentBinaryFallback, AttachmentMediaBlocks, AttachmentReadResult, } from "./core/utils/attachments.js";
|
|
8
8
|
export { detectDocumentFormat, detectImageFormat, detectVideoFormat, } from "./core/utils/file-formats.js";
|
|
9
9
|
export { getCwd, runWithCwd } from "./core/utils/cwd-context.js";
|
|
10
|
+
export { isResolvedPathInsideDir, normalizeUserPath, } from "./core/utils/normalize-user-path.js";
|
|
10
11
|
export { create as createAgent } from "./core/agent/index.js";
|
|
11
12
|
export { applySessionMode } from "./core/agent/sync-tool-registry-mode.js";
|
|
12
13
|
export { HOOMAN_CHANNEL, HOOMAN_CHANNEL_PERMISSION, Manager as McpManager, createMcpConfig, createMcpManager, } from "./core/mcp/index.js";
|
|
@@ -47,7 +48,7 @@ export type { ChromaMemoryMetadata } from "./core/memory/ltm/utils.js";
|
|
|
47
48
|
export { BUILTIN_AGENT_CONFIGS, BUILTIN_AGENT_KINDS, RUN_AGENTS_TOOL_NAME, createRunAgentsTools, loadBuiltInAgentDefinitions, runAgentJobs, } from "./core/agents/index.js";
|
|
48
49
|
export type { AgentConfig, AgentDefinition, AgentJob, AgentJobResult, AgentKind, RunAgentJobsResult, } from "./core/agents/index.js";
|
|
49
50
|
export { EXIT_REQUESTED_CODE, EXIT_REQUESTED_STATE_KEY, consumeExitRequest, isExitRequested, requestExit, } from "./core/state/exit-request.js";
|
|
50
|
-
export { INTERNAL_ALWAYS_ALLOWED as TOOL_APPROVAL_INTERNAL_ALWAYS_ALLOWED, allowToolForSession, getSessionAllowedTools, isToolSessionAllowed, } from "./core/state/tool-approvals.js";
|
|
51
|
+
export { INTERNAL_ALWAYS_ALLOWED as TOOL_APPROVAL_INTERNAL_ALWAYS_ALLOWED, allowToolForSession, getSessionAllowedTools, isToolSessionAllowed, planModeWriteEditRejectionMessage, } from "./core/state/tool-approvals.js";
|
|
51
52
|
export { YOLO_STATE_KEY, isYoloEnabled, setYoloEnabled, } from "./core/state/yolo.js";
|
|
52
53
|
export { MODE_STATE_KEY, getModeState, normalizeSessionMode, setSessionMode, type SessionMode, } from "./core/state/session-mode.js";
|
|
53
54
|
export { TODO_ITEMS_STATE_KEY, TODO_VISIBLE_STATE_KEY, TodoItemSchema, TodoStatusSchema, clearTodoState, getTodoViewState, setTodoState, summarizeTodos, } from "./core/state/todos.js";
|
package/dist/index.js
CHANGED
|
@@ -6,6 +6,7 @@ export { attachmentsPath, basePath, configJsonPath, instructionsMdPath, mcpJsonP
|
|
|
6
6
|
export { attachmentDiagnosticBlock, attachmentPathsToPromptBlocks, normalizeAttachmentPaths, readAttachmentAsBlocksOrBase64, } from "./core/utils/attachments.js";
|
|
7
7
|
export { detectDocumentFormat, detectImageFormat, detectVideoFormat, } from "./core/utils/file-formats.js";
|
|
8
8
|
export { getCwd, runWithCwd } from "./core/utils/cwd-context.js";
|
|
9
|
+
export { isResolvedPathInsideDir, normalizeUserPath, } from "./core/utils/normalize-user-path.js";
|
|
9
10
|
export { create as createAgent } from "./core/agent/index.js";
|
|
10
11
|
export { applySessionMode } from "./core/agent/sync-tool-registry-mode.js";
|
|
11
12
|
export { HOOMAN_CHANNEL, HOOMAN_CHANNEL_PERMISSION, Manager as McpManager, createMcpConfig, createMcpManager, } from "./core/mcp/index.js";
|
|
@@ -34,7 +35,7 @@ export { HFEmbedding } from "./core/memory/ltm/embed.js";
|
|
|
34
35
|
export { DEFAULT_DEDUPE_THRESHOLD, DEFAULT_HALF_LIFE_MS, DEFAULT_REINFORCEMENT_STEP, buildWhere, chromaClientArgsFromUrl, clampSearchLimit, clampUnitInterval, getEffectiveStrength, similarity, toChromaMetadata, toMemory, } from "./core/memory/ltm/utils.js";
|
|
35
36
|
export { BUILTIN_AGENT_CONFIGS, BUILTIN_AGENT_KINDS, RUN_AGENTS_TOOL_NAME, createRunAgentsTools, loadBuiltInAgentDefinitions, runAgentJobs, } from "./core/agents/index.js";
|
|
36
37
|
export { EXIT_REQUESTED_CODE, EXIT_REQUESTED_STATE_KEY, consumeExitRequest, isExitRequested, requestExit, } from "./core/state/exit-request.js";
|
|
37
|
-
export { INTERNAL_ALWAYS_ALLOWED as TOOL_APPROVAL_INTERNAL_ALWAYS_ALLOWED, allowToolForSession, getSessionAllowedTools, isToolSessionAllowed, } from "./core/state/tool-approvals.js";
|
|
38
|
+
export { INTERNAL_ALWAYS_ALLOWED as TOOL_APPROVAL_INTERNAL_ALWAYS_ALLOWED, allowToolForSession, getSessionAllowedTools, isToolSessionAllowed, planModeWriteEditRejectionMessage, } from "./core/state/tool-approvals.js";
|
|
38
39
|
export { YOLO_STATE_KEY, isYoloEnabled, setYoloEnabled, } from "./core/state/yolo.js";
|
|
39
40
|
export { MODE_STATE_KEY, getModeState, normalizeSessionMode, setSessionMode, } from "./core/state/session-mode.js";
|
|
40
41
|
export { TODO_ITEMS_STATE_KEY, TODO_VISIBLE_STATE_KEY, TodoItemSchema, TodoStatusSchema, clearTodoState, getTodoViewState, setTodoState, summarizeTodos, } from "./core/state/todos.js";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,mDAAmD;AAEnD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,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gBAAgB,EAChB,YAAY,EACZ,cAAc,GACf,MAAM,uBAAuB,CAAC;AAM/B,OAAO,EACL,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,iCAAiC,CAAC;AAKzC,OAAO,EACL,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,mCAAmC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
## Coding / Software Engineering
|
|
2
|
-
|
|
3
|
-
Handle coding tasks like a senior software engineer, but let the project guide the solution. Prefer local patterns over invented architecture.
|
|
4
|
-
|
|
5
|
-
### Code Changes
|
|
6
|
-
|
|
7
|
-
- Treat generic or underspecified requests as software engineering tasks in the current repo context. Prefer making the real code change over replying with a superficial text transformation.
|
|
8
|
-
- Defer to the user's judgment on scope. Do not reject work only because it is large or ambitious.
|
|
9
|
-
- Understand the surrounding module before changing it.
|
|
10
|
-
- Read a file before proposing edits to that file.
|
|
11
|
-
- Preserve public behavior unless the user asked to change it or the existing behavior is clearly a bug.
|
|
12
|
-
- Keep edits narrow, coherent, and easy to review.
|
|
13
|
-
- Choose simple code that fully solves the problem over clever or over-generalized code.
|
|
14
|
-
- Add abstractions only when they remove real duplication, clarify a real concept, or match an established local pattern.
|
|
15
|
-
- Avoid compatibility shims for unshipped branch work. Replace in-progress code cleanly when that is the right fix.
|
|
16
|
-
- Avoid backwards-compatibility hacks (placeholder re-exports, "removed" comments, legacy aliases) when old code is truly no longer needed.
|
|
17
|
-
- Do not add comments by default. Add a comment only when it explains a non-obvious constraint, invariant, workaround, or surprising behavior.
|
|
18
|
-
- Do not add docstrings, types, formatting churn, or refactors to unrelated code.
|
|
19
|
-
- Do not create files unless they are necessary to complete the requested task. Prefer editing existing files.
|
|
20
|
-
- Do not add features, configurability, refactors, or cleanup beyond the user's request.
|
|
21
|
-
- Do not add speculative validation, fallbacks, feature flags, or defensive branches for scenarios that cannot happen.
|
|
22
|
-
- Do not introduce one-off helpers or abstractions for hypothetical future requirements.
|
|
23
|
-
|
|
24
|
-
### Safety And Correctness
|
|
25
|
-
|
|
26
|
-
- Be alert for command injection, cross-site scripting, SQL injection, path traversal, unsafe deserialization, credential exposure, and permission mistakes.
|
|
27
|
-
- Prefer structured parsers and APIs for structured data instead of ad hoc string manipulation.
|
|
28
|
-
- Treat generated files, lockfiles, migrations, and configuration as shared contracts. Update them only when the task requires it.
|
|
29
|
-
- Do not hide failures with broad catches, silent fallbacks, skipped hooks, or weakened checks.
|
|
30
|
-
- When touching shared behavior, add or update focused tests when the project has a test pattern for it.
|
|
31
|
-
- Avoid time estimates. Focus on what needs to happen and what is done.
|
|
32
|
-
- If an approach fails, diagnose the failure before switching tactics. Do not blindly retry the same step.
|
|
33
|
-
- Escalate with a focused user question only after investigation when safe progress is blocked.
|
|
34
|
-
|
|
35
|
-
### Project Hygiene
|
|
36
|
-
|
|
37
|
-
- Work with the current working tree. Do not revert user changes unless explicitly asked.
|
|
38
|
-
- If unexpected changes affect the task, inspect them and adapt. Ask only when they make safe progress impossible.
|
|
39
|
-
- Do not create commits, push, amend, force-push, or change remotes unless the user explicitly asks.
|
|
40
|
-
- Never include secrets in commits or user-facing summaries. If you notice exposed credentials, warn the user without repeating the secret.
|