rhachet-roles-bhrain 0.3.0 → 0.5.2
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/dist/access/sdk/sdkOpenAi.d.ts +25 -0
- package/dist/access/sdk/sdkOpenAi.js +122 -0
- package/dist/access/sdk/sdkOpenAi.js.map +1 -1
- package/dist/access/sdks/anthropic/sdkAnthropic.d.ts +31 -0
- package/dist/access/sdks/anthropic/sdkAnthropic.js +151 -0
- package/dist/access/sdks/anthropic/sdkAnthropic.js.map +1 -0
- package/dist/access/sdks/qwen/sdkQwen.d.ts +31 -0
- package/dist/access/sdks/qwen/sdkQwen.js +134 -0
- package/dist/access/sdks/qwen/sdkQwen.js.map +1 -0
- package/dist/domain.objects/BrainArch1/BrainArch1Actor.d.ts +67 -0
- package/dist/domain.objects/BrainArch1/BrainArch1Actor.js +12 -0
- package/dist/domain.objects/BrainArch1/BrainArch1Actor.js.map +1 -0
- package/dist/domain.objects/BrainArch1/BrainArch1Atom.d.ts +40 -0
- package/dist/domain.objects/BrainArch1/BrainArch1Atom.js +3 -0
- package/dist/domain.objects/BrainArch1/BrainArch1Atom.js.map +1 -0
- package/dist/domain.objects/BrainArch1/BrainArch1Context.d.ts +30 -0
- package/dist/domain.objects/BrainArch1/BrainArch1Context.js +3 -0
- package/dist/domain.objects/BrainArch1/BrainArch1Context.js.map +1 -0
- package/dist/domain.objects/BrainArch1/BrainArch1LoopIteration.d.ts +34 -0
- package/dist/domain.objects/BrainArch1/BrainArch1LoopIteration.js +8 -0
- package/dist/domain.objects/BrainArch1/BrainArch1LoopIteration.js.map +1 -0
- package/dist/domain.objects/BrainArch1/BrainArch1LoopIterationCompletedEvent.d.ts +23 -0
- package/dist/domain.objects/BrainArch1/BrainArch1LoopIterationCompletedEvent.js +9 -0
- package/dist/domain.objects/BrainArch1/BrainArch1LoopIterationCompletedEvent.js.map +1 -0
- package/dist/domain.objects/BrainArch1/BrainArch1LoopResult.d.ts +49 -0
- package/dist/domain.objects/BrainArch1/BrainArch1LoopResult.js +8 -0
- package/dist/domain.objects/BrainArch1/BrainArch1LoopResult.js.map +1 -0
- package/dist/domain.objects/BrainArch1/BrainArch1MemoryCompactedEvent.d.ts +31 -0
- package/dist/domain.objects/BrainArch1/BrainArch1MemoryCompactedEvent.js +9 -0
- package/dist/domain.objects/BrainArch1/BrainArch1MemoryCompactedEvent.js.map +1 -0
- package/dist/domain.objects/BrainArch1/BrainArch1MemoryCompactionResult.d.ts +27 -0
- package/dist/domain.objects/BrainArch1/BrainArch1MemoryCompactionResult.js +8 -0
- package/dist/domain.objects/BrainArch1/BrainArch1MemoryCompactionResult.js.map +1 -0
- package/dist/domain.objects/BrainArch1/BrainArch1MemoryManager.d.ts +45 -0
- package/dist/domain.objects/BrainArch1/BrainArch1MemoryManager.js +3 -0
- package/dist/domain.objects/BrainArch1/BrainArch1MemoryManager.js.map +1 -0
- package/dist/domain.objects/BrainArch1/BrainArch1MemoryTokenUsage.d.ts +29 -0
- package/dist/domain.objects/BrainArch1/BrainArch1MemoryTokenUsage.js +8 -0
- package/dist/domain.objects/BrainArch1/BrainArch1MemoryTokenUsage.js.map +1 -0
- package/dist/domain.objects/BrainArch1/BrainArch1PermissionDecision.d.ts +22 -0
- package/dist/domain.objects/BrainArch1/BrainArch1PermissionDecision.js +8 -0
- package/dist/domain.objects/BrainArch1/BrainArch1PermissionDecision.js.map +1 -0
- package/dist/domain.objects/BrainArch1/BrainArch1PermissionGuard.d.ts +30 -0
- package/dist/domain.objects/BrainArch1/BrainArch1PermissionGuard.js +3 -0
- package/dist/domain.objects/BrainArch1/BrainArch1PermissionGuard.js.map +1 -0
- package/dist/domain.objects/BrainArch1/BrainArch1Session.d.ts +47 -0
- package/dist/domain.objects/BrainArch1/BrainArch1Session.js +17 -0
- package/dist/domain.objects/BrainArch1/BrainArch1Session.js.map +1 -0
- package/dist/domain.objects/BrainArch1/BrainArch1SessionMessage.d.ts +34 -0
- package/dist/domain.objects/BrainArch1/BrainArch1SessionMessage.js +12 -0
- package/dist/domain.objects/BrainArch1/BrainArch1SessionMessage.js.map +1 -0
- package/dist/domain.objects/BrainArch1/BrainArch1ToolCall.d.ts +21 -0
- package/dist/domain.objects/BrainArch1/BrainArch1ToolCall.js +8 -0
- package/dist/domain.objects/BrainArch1/BrainArch1ToolCall.js.map +1 -0
- package/dist/domain.objects/BrainArch1/BrainArch1ToolDefinition.d.ts +54 -0
- package/dist/domain.objects/BrainArch1/BrainArch1ToolDefinition.js +20 -0
- package/dist/domain.objects/BrainArch1/BrainArch1ToolDefinition.js.map +1 -0
- package/dist/domain.objects/BrainArch1/BrainArch1ToolExecutionCompletedEvent.d.ts +36 -0
- package/dist/domain.objects/BrainArch1/BrainArch1ToolExecutionCompletedEvent.js +9 -0
- package/dist/domain.objects/BrainArch1/BrainArch1ToolExecutionCompletedEvent.js.map +1 -0
- package/dist/domain.objects/BrainArch1/BrainArch1ToolResult.d.ts +25 -0
- package/dist/domain.objects/BrainArch1/BrainArch1ToolResult.js +8 -0
- package/dist/domain.objects/BrainArch1/BrainArch1ToolResult.js.map +1 -0
- package/dist/domain.objects/BrainArch1/BrainArch1Toolbox.d.ts +31 -0
- package/dist/domain.objects/BrainArch1/BrainArch1Toolbox.js +3 -0
- package/dist/domain.objects/BrainArch1/BrainArch1Toolbox.js.map +1 -0
- package/dist/domain.objects/Reviewer/ReviewerReflectManifest.d.ts +44 -0
- package/dist/domain.objects/Reviewer/ReviewerReflectManifest.js +8 -0
- package/dist/domain.objects/Reviewer/ReviewerReflectManifest.js.map +1 -0
- package/dist/domain.objects/Reviewer/ReviewerReflectManifestOperation.d.ts +30 -0
- package/dist/domain.objects/Reviewer/ReviewerReflectManifestOperation.js +35 -0
- package/dist/domain.objects/Reviewer/ReviewerReflectManifestOperation.js.map +1 -0
- package/dist/domain.objects/Reviewer/ReviewerReflectMetrics.d.ts +89 -0
- package/dist/domain.objects/Reviewer/ReviewerReflectMetrics.js +8 -0
- package/dist/domain.objects/Reviewer/ReviewerReflectMetrics.js.map +1 -0
- package/dist/domain.objects/Reviewer/ReviewerReflectRuleProposal.d.ts +43 -0
- package/dist/domain.objects/Reviewer/ReviewerReflectRuleProposal.js +8 -0
- package/dist/domain.objects/Reviewer/ReviewerReflectRuleProposal.js.map +1 -0
- package/dist/domain.operations/artifact/genLoopFeedback.js +1 -1
- package/dist/domain.operations/artifact/genLoopFeedback.js.map +1 -1
- package/dist/domain.operations/artifact/genStepGrabCallerFeedbackToArtifact.d.ts +1 -1
- package/dist/domain.operations/brain.replic.arch1/core/invokeBrainArch1.d.ts +13 -0
- package/dist/domain.operations/brain.replic.arch1/core/invokeBrainArch1.js +106 -0
- package/dist/domain.operations/brain.replic.arch1/core/invokeBrainArch1.js.map +1 -0
- package/dist/domain.operations/brain.replic.arch1/llm/generateBrainArch1LlmResponse.d.ts +18 -0
- package/dist/domain.operations/brain.replic.arch1/llm/generateBrainArch1LlmResponse.js +16 -0
- package/dist/domain.operations/brain.replic.arch1/llm/generateBrainArch1LlmResponse.js.map +1 -0
- package/dist/domain.operations/brain.replic.arch1/loop/iterateBrainArch1Loop.d.ts +30 -0
- package/dist/domain.operations/brain.replic.arch1/loop/iterateBrainArch1Loop.js +71 -0
- package/dist/domain.operations/brain.replic.arch1/loop/iterateBrainArch1Loop.js.map +1 -0
- package/dist/domain.operations/brain.replic.arch1/loop/runBrainArch1Loop.d.ts +20 -0
- package/dist/domain.operations/brain.replic.arch1/loop/runBrainArch1Loop.js +90 -0
- package/dist/domain.operations/brain.replic.arch1/loop/runBrainArch1Loop.js.map +1 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/atoms/anthropic.d.ts +8 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/atoms/anthropic.js +31 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/atoms/anthropic.js.map +1 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/atoms/index.d.ts +3 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/atoms/index.js +10 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/atoms/index.js.map +1 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/atoms/openai.d.ts +8 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/atoms/openai.js +31 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/atoms/openai.js.map +1 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/atoms/qwen.d.ts +8 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/atoms/qwen.js +32 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/atoms/qwen.js.map +1 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/memoryManagers/slidingWindow.d.ts +6 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/memoryManagers/slidingWindow.js +80 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/memoryManagers/slidingWindow.js.map +1 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/permissionGuards/allowAll.d.ts +6 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/permissionGuards/allowAll.js +14 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/permissionGuards/allowAll.js.map +1 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/permissionGuards/promptUser.d.ts +8 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/permissionGuards/promptUser.js +52 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/permissionGuards/promptUser.js.map +1 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/permissionGuards/readOnly.d.ts +8 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/permissionGuards/readOnly.js +38 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/permissionGuards/readOnly.js.map +1 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/toolboxes/bash/exec.d.ts +33 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/toolboxes/bash/exec.js +100 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/toolboxes/bash/exec.js.map +1 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/toolboxes/bash/index.d.ts +6 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/toolboxes/bash/index.js +26 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/toolboxes/bash/index.js.map +1 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/toolboxes/files/edit.d.ts +41 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/toolboxes/files/edit.js +107 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/toolboxes/files/edit.js.map +1 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/toolboxes/files/glob.d.ts +33 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/toolboxes/files/glob.js +68 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/toolboxes/files/glob.js.map +1 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/toolboxes/files/grep.d.ts +41 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/toolboxes/files/grep.js +97 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/toolboxes/files/grep.js.map +1 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/toolboxes/files/index.d.ts +6 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/toolboxes/files/index.js +65 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/toolboxes/files/index.js.map +1 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/toolboxes/files/read.d.ts +37 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/toolboxes/files/read.js +96 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/toolboxes/files/read.js.map +1 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/toolboxes/files/write.d.ts +33 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/toolboxes/files/write.js +81 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/toolboxes/files/write.js.map +1 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/toolboxes/web/fetch.d.ts +33 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/toolboxes/web/fetch.js +113 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/toolboxes/web/fetch.js.map +1 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/toolboxes/web/index.d.ts +6 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/toolboxes/web/index.js +36 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/toolboxes/web/index.js.map +1 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/toolboxes/web/search.d.ts +36 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/toolboxes/web/search.js +101 -0
- package/dist/domain.operations/brain.replic.arch1/plugins/toolboxes/web/search.js.map +1 -0
- package/dist/domain.operations/brain.replic.arch1/tool/executeBrainArch1ToolCall.d.ts +14 -0
- package/dist/domain.operations/brain.replic.arch1/tool/executeBrainArch1ToolCall.js +45 -0
- package/dist/domain.operations/brain.replic.arch1/tool/executeBrainArch1ToolCall.js.map +1 -0
- package/dist/domain.operations/brain.replic.arch1/tool/mergeBrainArch1Toolboxes.d.ts +19 -0
- package/dist/domain.operations/brain.replic.arch1/tool/mergeBrainArch1Toolboxes.js +35 -0
- package/dist/domain.operations/brain.replic.arch1/tool/mergeBrainArch1Toolboxes.js.map +1 -0
- package/dist/domain.operations/git/genGitHubFileUrl.d.ts +9 -0
- package/dist/domain.operations/git/genGitHubFileUrl.js +55 -0
- package/dist/domain.operations/git/genGitHubFileUrl.js.map +1 -0
- package/dist/domain.operations/git/getGitRemoteUrl.d.ts +7 -0
- package/dist/domain.operations/git/getGitRemoteUrl.js +40 -0
- package/dist/domain.operations/git/getGitRemoteUrl.js.map +1 -0
- package/dist/domain.operations/hooks/getInvokeHooks.js +1 -1
- package/dist/domain.operations/hooks/getInvokeHooks.js.map +1 -1
- package/dist/domain.operations/reflect/createDraftDirectory.d.ts +11 -0
- package/dist/domain.operations/reflect/createDraftDirectory.js +46 -0
- package/dist/domain.operations/reflect/createDraftDirectory.js.map +1 -0
- package/dist/domain.operations/reflect/enumFeedbackFiles.d.ts +7 -0
- package/dist/domain.operations/reflect/enumFeedbackFiles.js +69 -0
- package/dist/domain.operations/reflect/enumFeedbackFiles.js.map +1 -0
- package/dist/domain.operations/reflect/extractJsonFromResultText.d.ts +7 -0
- package/dist/domain.operations/reflect/extractJsonFromResultText.js +19 -0
- package/dist/domain.operations/reflect/extractJsonFromResultText.js.map +1 -0
- package/dist/domain.operations/reflect/invokeClaudeCodeForReflect.d.ts +46 -0
- package/dist/domain.operations/reflect/invokeClaudeCodeForReflect.js +120 -0
- package/dist/domain.operations/reflect/invokeClaudeCodeForReflect.js.map +1 -0
- package/dist/domain.operations/reflect/metrics/computeMetricsExpected.d.ts +12 -0
- package/dist/domain.operations/reflect/metrics/computeMetricsExpected.js +28 -0
- package/dist/domain.operations/reflect/metrics/computeMetricsExpected.js.map +1 -0
- package/dist/domain.operations/reflect/metrics/computeMetricsRealized.d.ts +26 -0
- package/dist/domain.operations/reflect/metrics/computeMetricsRealized.js +66 -0
- package/dist/domain.operations/reflect/metrics/computeMetricsRealized.js.map +1 -0
- package/dist/domain.operations/reflect/metrics/writeLogArtifact.d.ts +17 -0
- package/dist/domain.operations/reflect/metrics/writeLogArtifact.js +93 -0
- package/dist/domain.operations/reflect/metrics/writeLogArtifact.js.map +1 -0
- package/dist/domain.operations/reflect/step1/compileCitationsMarkdown.d.ts +8 -0
- package/dist/domain.operations/reflect/step1/compileCitationsMarkdown.js +28 -0
- package/dist/domain.operations/reflect/step1/compileCitationsMarkdown.js.map +1 -0
- package/dist/domain.operations/reflect/step1/compileReflectStep1Prompt.d.ts +14 -0
- package/dist/domain.operations/reflect/step1/compileReflectStep1Prompt.js +93 -0
- package/dist/domain.operations/reflect/step1/compileReflectStep1Prompt.js.map +1 -0
- package/dist/domain.operations/reflect/step2/compileReflectStep2Prompt.d.ts +18 -0
- package/dist/domain.operations/reflect/step2/compileReflectStep2Prompt.js +208 -0
- package/dist/domain.operations/reflect/step2/compileReflectStep2Prompt.js.map +1 -0
- package/dist/domain.operations/reflect/step2/executeManifestOperations.d.ts +17 -0
- package/dist/domain.operations/reflect/step2/executeManifestOperations.js +189 -0
- package/dist/domain.operations/reflect/step2/executeManifestOperations.js.map +1 -0
- package/dist/domain.operations/reflect/step2/parseManifestOperations.d.ts +8 -0
- package/dist/domain.operations/reflect/step2/parseManifestOperations.js +73 -0
- package/dist/domain.operations/reflect/step2/parseManifestOperations.js.map +1 -0
- package/dist/domain.operations/reflect/validateSourceDirectory.d.ts +9 -0
- package/dist/domain.operations/reflect/validateSourceDirectory.js +63 -0
- package/dist/domain.operations/reflect/validateSourceDirectory.js.map +1 -0
- package/dist/domain.operations/reflect/validateTargetDirectory.d.ts +10 -0
- package/dist/domain.operations/reflect/validateTargetDirectory.js +59 -0
- package/dist/domain.operations/reflect/validateTargetDirectory.js.map +1 -0
- package/dist/domain.operations/review/compileReviewPrompt.js +16 -5
- package/dist/domain.operations/review/compileReviewPrompt.js.map +1 -1
- package/dist/domain.operations/review/formatReviewOutput.d.ts +15 -6
- package/dist/domain.operations/review/formatReviewOutput.js +15 -17
- package/dist/domain.operations/review/formatReviewOutput.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/roles/architect/getArchitectRole.d.ts +6 -0
- package/dist/roles/architect/getArchitectRole.js +31 -0
- package/dist/roles/architect/getArchitectRole.js.map +1 -0
- package/dist/roles/brain/getBrainRole.d.ts +6 -0
- package/dist/roles/brain/getBrainRole.js +28 -0
- package/dist/roles/brain/getBrainRole.js.map +1 -0
- package/dist/roles/brain/skills/act/skillAct.d.ts +5 -0
- package/dist/roles/brain/skills/act/skillAct.js +147 -0
- package/dist/roles/brain/skills/act/skillAct.js.map +1 -0
- package/dist/roles/brain/skills/act/skillAct.ts +186 -0
- package/dist/roles/brain/skills/act/stepAct.d.ts +27 -0
- package/dist/roles/brain/skills/act/stepAct.js +95 -0
- package/dist/roles/brain/skills/act/stepAct.js.map +1 -0
- package/dist/roles/brain/skills/act/stepAct.ts +123 -0
- package/dist/roles/getRoleRegistry.js +5 -4
- package/dist/roles/getRoleRegistry.js.map +1 -1
- package/dist/roles/reviewer/briefs/on.rules/rules101.[article].md +41 -0
- package/dist/roles/reviewer/briefs/on.rules/rules101.citations.[article].md +88 -0
- package/dist/roles/reviewer/briefs/on.rules/rules101.collocated.[article].md +97 -0
- package/dist/roles/reviewer/briefs/on.rules/rules101.content.[article].md +228 -0
- package/dist/roles/reviewer/briefs/on.rules/rules101.content.[demo].forbid.failhide.md +87 -0
- package/dist/roles/reviewer/briefs/on.rules/rules101.content.[demo].forbid.gerunds.md +85 -0
- package/dist/roles/reviewer/briefs/on.rules/rules101.content.[demo].require.failfast.md +73 -0
- package/dist/roles/reviewer/briefs/on.rules/rules101.structure.[article].md +70 -0
- package/dist/roles/reviewer/skills/reflect/reflect.d.ts +30 -0
- package/dist/roles/reviewer/skills/reflect/reflect.js +305 -0
- package/dist/roles/reviewer/skills/reflect/reflect.js.map +1 -0
- package/dist/roles/reviewer/skills/reflect/reflect.sh +38 -0
- package/dist/roles/reviewer/skills/reflect/reflect.ts +356 -0
- package/dist/roles/reviewer/skills/review/review.js.map +1 -1
- package/dist/roles/reviewer/skills/review/review.ts +12 -3
- package/dist/roles/thinker/getThinkerBrief.d.ts +1 -1
- package/dist/roles/thinker/getThinkerRole.js +8 -8
- package/dist/roles/thinker/getThinkerRole.js.map +1 -1
- package/package.json +6 -4
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BrainArch1ToolCall = void 0;
|
|
4
|
+
const domain_objects_1 = require("domain-objects");
|
|
5
|
+
class BrainArch1ToolCall extends domain_objects_1.DomainLiteral {
|
|
6
|
+
}
|
|
7
|
+
exports.BrainArch1ToolCall = BrainArch1ToolCall;
|
|
8
|
+
//# sourceMappingURL=BrainArch1ToolCall.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrainArch1ToolCall.js","sourceRoot":"","sources":["../../../src/domain.objects/BrainArch1/BrainArch1ToolCall.ts"],"names":[],"mappings":";;;AAAA,mDAA+C;AAuB/C,MAAa,kBACX,SAAQ,8BAAiC;CACT;AAFlC,gDAEkC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { DomainLiteral } from 'domain-objects';
|
|
2
|
+
import type { z } from 'zod';
|
|
3
|
+
import { type JsonSchema7ObjectType } from 'zod-to-json-schema';
|
|
4
|
+
/**
|
|
5
|
+
* .what = json schema definition for tool parameters
|
|
6
|
+
* .why = enables llm to understand tool interface and generate valid calls
|
|
7
|
+
*/
|
|
8
|
+
export type BrainArch1ToolJsonSchema = JsonSchema7ObjectType;
|
|
9
|
+
/**
|
|
10
|
+
* .what = schema container for tool input and output definitions
|
|
11
|
+
* .why = centralizes schema definitions and supports both zod and json schema
|
|
12
|
+
*/
|
|
13
|
+
export interface BrainArch1ToolSchema {
|
|
14
|
+
input: BrainArch1ToolJsonSchema;
|
|
15
|
+
output?: BrainArch1ToolJsonSchema;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* .what = captures the schema definition of an available tool
|
|
19
|
+
* .why = enables llm to understand available tools and generate valid calls
|
|
20
|
+
*/
|
|
21
|
+
export interface BrainArch1ToolDefinition {
|
|
22
|
+
/**
|
|
23
|
+
* unique name of the tool
|
|
24
|
+
*/
|
|
25
|
+
name: string;
|
|
26
|
+
/**
|
|
27
|
+
* human-readable description of what the tool does
|
|
28
|
+
*/
|
|
29
|
+
description: string;
|
|
30
|
+
/**
|
|
31
|
+
* json schemas defining the tool's input and output parameters
|
|
32
|
+
*/
|
|
33
|
+
schema: BrainArch1ToolSchema;
|
|
34
|
+
/**
|
|
35
|
+
* whether to enforce strict schema validation
|
|
36
|
+
*/
|
|
37
|
+
strict: boolean;
|
|
38
|
+
}
|
|
39
|
+
export declare class BrainArch1ToolDefinition extends DomainLiteral<BrainArch1ToolDefinition> implements BrainArch1ToolDefinition {
|
|
40
|
+
static nested: {
|
|
41
|
+
schema: typeof DomainLiteral;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* .what = extracts json schema from a zod object schema
|
|
46
|
+
* .why = enables defining tool schemas using zod for type safety and validation
|
|
47
|
+
*
|
|
48
|
+
* .note = only object schemas are supported. tool parameters must be objects.
|
|
49
|
+
*/
|
|
50
|
+
export declare const toJsonSchema: <T extends z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
51
|
+
[x: string]: any;
|
|
52
|
+
}, {
|
|
53
|
+
[x: string]: any;
|
|
54
|
+
}>>(zodSchema: T) => BrainArch1ToolJsonSchema;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toJsonSchema = exports.BrainArch1ToolDefinition = void 0;
|
|
4
|
+
const domain_objects_1 = require("domain-objects");
|
|
5
|
+
const zod_to_json_schema_1 = require("zod-to-json-schema");
|
|
6
|
+
class BrainArch1ToolDefinition extends domain_objects_1.DomainLiteral {
|
|
7
|
+
}
|
|
8
|
+
exports.BrainArch1ToolDefinition = BrainArch1ToolDefinition;
|
|
9
|
+
BrainArch1ToolDefinition.nested = {
|
|
10
|
+
schema: domain_objects_1.DomainLiteral,
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* .what = extracts json schema from a zod object schema
|
|
14
|
+
* .why = enables defining tool schemas using zod for type safety and validation
|
|
15
|
+
*
|
|
16
|
+
* .note = only object schemas are supported. tool parameters must be objects.
|
|
17
|
+
*/
|
|
18
|
+
const toJsonSchema = (zodSchema) => (0, zod_to_json_schema_1.zodToJsonSchema)(zodSchema);
|
|
19
|
+
exports.toJsonSchema = toJsonSchema;
|
|
20
|
+
//# sourceMappingURL=BrainArch1ToolDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrainArch1ToolDefinition.js","sourceRoot":"","sources":["../../../src/domain.objects/BrainArch1/BrainArch1ToolDefinition.ts"],"names":[],"mappings":";;;AAAA,mDAA+C;AAE/C,2DAG4B;AA2C5B,MAAa,wBACX,SAAQ,8BAAuC;;AADjD,4DAOC;AAHe,+BAAM,GAAG;IACrB,MAAM,EAAE,8BAAa;CACtB,CAAC;AAGJ;;;;;GAKG;AACI,MAAM,YAAY,GAAG,CAC1B,SAAY,EACc,EAAE,CAC5B,IAAA,oCAAe,EAAC,SAAS,CAA0B,CAAC;AAHzC,QAAA,YAAY,gBAG6B"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { DomainEvent } from 'domain-objects';
|
|
2
|
+
import type { BrainArch1ToolCall } from './BrainArch1ToolCall';
|
|
3
|
+
import type { BrainArch1ToolResult } from './BrainArch1ToolResult';
|
|
4
|
+
/**
|
|
5
|
+
* .what = event emitted when a tool execution completes
|
|
6
|
+
* .why = enables observability and logging of tool usage
|
|
7
|
+
*/
|
|
8
|
+
export interface BrainArch1ToolExecutionCompletedEvent {
|
|
9
|
+
/**
|
|
10
|
+
* session uuid this event belongs to
|
|
11
|
+
*/
|
|
12
|
+
sessionUuid: string;
|
|
13
|
+
/**
|
|
14
|
+
* iteration number when this tool was called
|
|
15
|
+
*/
|
|
16
|
+
iterationNumber: number;
|
|
17
|
+
/**
|
|
18
|
+
* timestamp when this event occurred
|
|
19
|
+
*/
|
|
20
|
+
occurredAt: string;
|
|
21
|
+
/**
|
|
22
|
+
* the tool call that was executed
|
|
23
|
+
*/
|
|
24
|
+
call: BrainArch1ToolCall;
|
|
25
|
+
/**
|
|
26
|
+
* the result of the tool execution
|
|
27
|
+
*/
|
|
28
|
+
result: BrainArch1ToolResult;
|
|
29
|
+
/**
|
|
30
|
+
* duration of execution in milliseconds
|
|
31
|
+
*/
|
|
32
|
+
durationMs: number;
|
|
33
|
+
}
|
|
34
|
+
export declare class BrainArch1ToolExecutionCompletedEvent extends DomainEvent<BrainArch1ToolExecutionCompletedEvent> implements BrainArch1ToolExecutionCompletedEvent {
|
|
35
|
+
static unique: readonly ["sessionUuid", "call.id"];
|
|
36
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BrainArch1ToolExecutionCompletedEvent = void 0;
|
|
4
|
+
const domain_objects_1 = require("domain-objects");
|
|
5
|
+
class BrainArch1ToolExecutionCompletedEvent extends domain_objects_1.DomainEvent {
|
|
6
|
+
}
|
|
7
|
+
exports.BrainArch1ToolExecutionCompletedEvent = BrainArch1ToolExecutionCompletedEvent;
|
|
8
|
+
BrainArch1ToolExecutionCompletedEvent.unique = ['sessionUuid', 'call.id'];
|
|
9
|
+
//# sourceMappingURL=BrainArch1ToolExecutionCompletedEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrainArch1ToolExecutionCompletedEvent.js","sourceRoot":"","sources":["../../../src/domain.objects/BrainArch1/BrainArch1ToolExecutionCompletedEvent.ts"],"names":[],"mappings":";;;AAAA,mDAA6C;AAyC7C,MAAa,qCACX,SAAQ,4BAAkD;;AAD5D,sFAKC;AADe,4CAAM,GAAG,CAAC,aAAa,EAAE,SAAS,CAAU,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DomainLiteral } from 'domain-objects';
|
|
2
|
+
/**
|
|
3
|
+
* .what = captures the result of a tool execution
|
|
4
|
+
* .why = enables appending tool output to conversation context
|
|
5
|
+
*/
|
|
6
|
+
export interface BrainArch1ToolResult {
|
|
7
|
+
/**
|
|
8
|
+
* id of the tool call this result responds to
|
|
9
|
+
*/
|
|
10
|
+
callId: string;
|
|
11
|
+
/**
|
|
12
|
+
* whether the tool execution succeeded
|
|
13
|
+
*/
|
|
14
|
+
success: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* output content from the tool (string for llm consumption)
|
|
17
|
+
*/
|
|
18
|
+
output: string;
|
|
19
|
+
/**
|
|
20
|
+
* error message if execution failed
|
|
21
|
+
*/
|
|
22
|
+
error: string | null;
|
|
23
|
+
}
|
|
24
|
+
export declare class BrainArch1ToolResult extends DomainLiteral<BrainArch1ToolResult> implements BrainArch1ToolResult {
|
|
25
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BrainArch1ToolResult = void 0;
|
|
4
|
+
const domain_objects_1 = require("domain-objects");
|
|
5
|
+
class BrainArch1ToolResult extends domain_objects_1.DomainLiteral {
|
|
6
|
+
}
|
|
7
|
+
exports.BrainArch1ToolResult = BrainArch1ToolResult;
|
|
8
|
+
//# sourceMappingURL=BrainArch1ToolResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrainArch1ToolResult.js","sourceRoot":"","sources":["../../../src/domain.objects/BrainArch1/BrainArch1ToolResult.ts"],"names":[],"mappings":";;;AAAA,mDAA+C;AA4B/C,MAAa,oBACX,SAAQ,8BAAmC;CACT;AAFpC,oDAEoC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { BrainArch1Context } from './BrainArch1Context';
|
|
2
|
+
import type { BrainArch1ToolCall } from './BrainArch1ToolCall';
|
|
3
|
+
import type { BrainArch1ToolDefinition } from './BrainArch1ToolDefinition';
|
|
4
|
+
import type { BrainArch1ToolResult } from './BrainArch1ToolResult';
|
|
5
|
+
/**
|
|
6
|
+
* .what = function signature for executing a tool call
|
|
7
|
+
* .why = enables toolboxes to define custom execution logic
|
|
8
|
+
*/
|
|
9
|
+
export type BrainArch1ToolExecuteFn = (input: {
|
|
10
|
+
call: BrainArch1ToolCall;
|
|
11
|
+
}, context: BrainArch1Context) => Promise<BrainArch1ToolResult>;
|
|
12
|
+
/**
|
|
13
|
+
* .what = interface for a toolbox plugin containing related tools
|
|
14
|
+
* .why = enables pluggable tool sets (files, bash, websearch) with unified interface
|
|
15
|
+
*
|
|
16
|
+
* .note = this is an interface, not a DomainLiteral, because it contains functions
|
|
17
|
+
*/
|
|
18
|
+
export interface BrainArch1Toolbox {
|
|
19
|
+
/**
|
|
20
|
+
* name of this toolbox (e.g., 'files', 'bash', 'websearch')
|
|
21
|
+
*/
|
|
22
|
+
name: string;
|
|
23
|
+
/**
|
|
24
|
+
* tool definitions for all tools in this box
|
|
25
|
+
*/
|
|
26
|
+
definitions: BrainArch1ToolDefinition[];
|
|
27
|
+
/**
|
|
28
|
+
* execute a tool call (routes to appropriate tool handler)
|
|
29
|
+
*/
|
|
30
|
+
execute: BrainArch1ToolExecuteFn;
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrainArch1Toolbox.js","sourceRoot":"","sources":["../../../src/domain.objects/BrainArch1/BrainArch1Toolbox.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { DomainLiteral } from 'domain-objects';
|
|
2
|
+
import type { ReviewerReflectManifestOperation } from '../../domain.objects/Reviewer/ReviewerReflectManifestOperation';
|
|
3
|
+
/**
|
|
4
|
+
* .what = manifest entry for a single pure rule proposal
|
|
5
|
+
* .why = captures the planned operation and paths for blend
|
|
6
|
+
*/
|
|
7
|
+
export interface ReviewerReflectManifestEntry {
|
|
8
|
+
/**
|
|
9
|
+
* path to the rule in pure/ directory
|
|
10
|
+
*/
|
|
11
|
+
path: string;
|
|
12
|
+
/**
|
|
13
|
+
* operation to perform on this rule
|
|
14
|
+
*/
|
|
15
|
+
operation: ReviewerReflectManifestOperation;
|
|
16
|
+
/**
|
|
17
|
+
* path in sync/ directory (if not OMIT)
|
|
18
|
+
*/
|
|
19
|
+
syncPath?: string;
|
|
20
|
+
/**
|
|
21
|
+
* path to rule in target to merge from (if UPDATE/APPEND)
|
|
22
|
+
*/
|
|
23
|
+
targetPath?: string;
|
|
24
|
+
/**
|
|
25
|
+
* justification for OMIT operations
|
|
26
|
+
*/
|
|
27
|
+
reason?: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* .what = manifest of planned operations for reviewer reflect blend
|
|
31
|
+
* .why = enables harness to execute blend plan from brain
|
|
32
|
+
*/
|
|
33
|
+
export interface ReviewerReflectManifest {
|
|
34
|
+
/**
|
|
35
|
+
* timestamp of when manifest was created
|
|
36
|
+
*/
|
|
37
|
+
timestamp: string;
|
|
38
|
+
/**
|
|
39
|
+
* list of pure rules with their planned operations
|
|
40
|
+
*/
|
|
41
|
+
pureRules: ReviewerReflectManifestEntry[];
|
|
42
|
+
}
|
|
43
|
+
export declare class ReviewerReflectManifest extends DomainLiteral<ReviewerReflectManifest> implements ReviewerReflectManifest {
|
|
44
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReviewerReflectManifest = void 0;
|
|
4
|
+
const domain_objects_1 = require("domain-objects");
|
|
5
|
+
class ReviewerReflectManifest extends domain_objects_1.DomainLiteral {
|
|
6
|
+
}
|
|
7
|
+
exports.ReviewerReflectManifest = ReviewerReflectManifest;
|
|
8
|
+
//# sourceMappingURL=ReviewerReflectManifest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReviewerReflectManifest.js","sourceRoot":"","sources":["../../../src/domain.objects/Reviewer/ReviewerReflectManifest.ts"],"names":[],"mappings":";;;AAAA,mDAA+C;AAmD/C,MAAa,uBACX,SAAQ,8BAAsC;CACT;AAFvC,0DAEuC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* .what = enum of manifest operation types for reviewer reflect blend
|
|
3
|
+
* .why = defines how pure proposals map to sync directory
|
|
4
|
+
*/
|
|
5
|
+
export declare enum ReviewerReflectManifestOperation {
|
|
6
|
+
/**
|
|
7
|
+
* skip rule, not copied to sync
|
|
8
|
+
* - duplicate of existing rule
|
|
9
|
+
* - not relevant to target domain
|
|
10
|
+
*/
|
|
11
|
+
OMIT = "OMIT",
|
|
12
|
+
/**
|
|
13
|
+
* new rule, create in sync
|
|
14
|
+
* - no existing rule matches
|
|
15
|
+
* - path adapted to match target structure
|
|
16
|
+
*/
|
|
17
|
+
SET_CREATE = "SET_CREATE",
|
|
18
|
+
/**
|
|
19
|
+
* merge with existing rule
|
|
20
|
+
* - existing rule covers same topic
|
|
21
|
+
* - content merged, not replaced
|
|
22
|
+
*/
|
|
23
|
+
SET_UPDATE = "SET_UPDATE",
|
|
24
|
+
/**
|
|
25
|
+
* add as support document
|
|
26
|
+
* - extends existing rule with example/ref/lesson
|
|
27
|
+
* - suffix added: [demo], [ref], [lesson]
|
|
28
|
+
*/
|
|
29
|
+
SET_APPEND = "SET_APPEND"
|
|
30
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReviewerReflectManifestOperation = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* .what = enum of manifest operation types for reviewer reflect blend
|
|
6
|
+
* .why = defines how pure proposals map to sync directory
|
|
7
|
+
*/
|
|
8
|
+
var ReviewerReflectManifestOperation;
|
|
9
|
+
(function (ReviewerReflectManifestOperation) {
|
|
10
|
+
/**
|
|
11
|
+
* skip rule, not copied to sync
|
|
12
|
+
* - duplicate of existing rule
|
|
13
|
+
* - not relevant to target domain
|
|
14
|
+
*/
|
|
15
|
+
ReviewerReflectManifestOperation["OMIT"] = "OMIT";
|
|
16
|
+
/**
|
|
17
|
+
* new rule, create in sync
|
|
18
|
+
* - no existing rule matches
|
|
19
|
+
* - path adapted to match target structure
|
|
20
|
+
*/
|
|
21
|
+
ReviewerReflectManifestOperation["SET_CREATE"] = "SET_CREATE";
|
|
22
|
+
/**
|
|
23
|
+
* merge with existing rule
|
|
24
|
+
* - existing rule covers same topic
|
|
25
|
+
* - content merged, not replaced
|
|
26
|
+
*/
|
|
27
|
+
ReviewerReflectManifestOperation["SET_UPDATE"] = "SET_UPDATE";
|
|
28
|
+
/**
|
|
29
|
+
* add as support document
|
|
30
|
+
* - extends existing rule with example/ref/lesson
|
|
31
|
+
* - suffix added: [demo], [ref], [lesson]
|
|
32
|
+
*/
|
|
33
|
+
ReviewerReflectManifestOperation["SET_APPEND"] = "SET_APPEND";
|
|
34
|
+
})(ReviewerReflectManifestOperation || (exports.ReviewerReflectManifestOperation = ReviewerReflectManifestOperation = {}));
|
|
35
|
+
//# sourceMappingURL=ReviewerReflectManifestOperation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReviewerReflectManifestOperation.js","sourceRoot":"","sources":["../../../src/domain.objects/Reviewer/ReviewerReflectManifestOperation.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,IAAY,gCA4BX;AA5BD,WAAY,gCAAgC;IAC1C;;;;OAIG;IACH,iDAAa,CAAA;IAEb;;;;OAIG;IACH,6DAAyB,CAAA;IAEzB;;;;OAIG;IACH,6DAAyB,CAAA;IAEzB;;;;OAIG;IACH,6DAAyB,CAAA;AAC3B,CAAC,EA5BW,gCAAgC,gDAAhC,gCAAgC,QA4B3C"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { DomainLiteral } from 'domain-objects';
|
|
2
|
+
/**
|
|
3
|
+
* .what = token usage and cost metrics for a reviewer reflect step
|
|
4
|
+
* .why = enables cost track and context window management
|
|
5
|
+
*/
|
|
6
|
+
export interface ReviewerReflectTokenMetrics {
|
|
7
|
+
/**
|
|
8
|
+
* input tokens sent to model
|
|
9
|
+
*/
|
|
10
|
+
input: number;
|
|
11
|
+
/**
|
|
12
|
+
* tokens written to cache
|
|
13
|
+
*/
|
|
14
|
+
cacheWrite: number;
|
|
15
|
+
/**
|
|
16
|
+
* tokens read from cache
|
|
17
|
+
*/
|
|
18
|
+
cacheRead: number;
|
|
19
|
+
/**
|
|
20
|
+
* output tokens from model
|
|
21
|
+
*/
|
|
22
|
+
output: number;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* .what = cost breakdown by token type for reviewer reflect
|
|
26
|
+
* .why = enables cost analysis and optimization
|
|
27
|
+
*/
|
|
28
|
+
export interface ReviewerReflectCostMetrics {
|
|
29
|
+
/**
|
|
30
|
+
* cost for input tokens
|
|
31
|
+
*/
|
|
32
|
+
input: number;
|
|
33
|
+
/**
|
|
34
|
+
* cost for cache write
|
|
35
|
+
*/
|
|
36
|
+
cacheWrite: number;
|
|
37
|
+
/**
|
|
38
|
+
* cost for cache read
|
|
39
|
+
*/
|
|
40
|
+
cacheRead: number;
|
|
41
|
+
/**
|
|
42
|
+
* cost for output tokens
|
|
43
|
+
*/
|
|
44
|
+
output: number;
|
|
45
|
+
/**
|
|
46
|
+
* total cost
|
|
47
|
+
*/
|
|
48
|
+
total: number;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* .what = complete metrics for reviewer reflect skill execution
|
|
52
|
+
* .why = enables resource usage track across both steps
|
|
53
|
+
*/
|
|
54
|
+
export interface ReviewerReflectMetrics {
|
|
55
|
+
/**
|
|
56
|
+
* file counts
|
|
57
|
+
*/
|
|
58
|
+
files: {
|
|
59
|
+
feedbackCount: number;
|
|
60
|
+
rulesCount: number;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* pre-invocation estimates
|
|
64
|
+
*/
|
|
65
|
+
expected: {
|
|
66
|
+
tokens: number;
|
|
67
|
+
contextWindowPercent: number;
|
|
68
|
+
cost: number;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* actual usage after completion
|
|
72
|
+
*/
|
|
73
|
+
realized: {
|
|
74
|
+
step1: {
|
|
75
|
+
tokens: ReviewerReflectTokenMetrics;
|
|
76
|
+
cost: ReviewerReflectCostMetrics;
|
|
77
|
+
};
|
|
78
|
+
step2: {
|
|
79
|
+
tokens: ReviewerReflectTokenMetrics;
|
|
80
|
+
cost: ReviewerReflectCostMetrics;
|
|
81
|
+
};
|
|
82
|
+
total: {
|
|
83
|
+
tokens: ReviewerReflectTokenMetrics;
|
|
84
|
+
cost: ReviewerReflectCostMetrics;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
export declare class ReviewerReflectMetrics extends DomainLiteral<ReviewerReflectMetrics> implements ReviewerReflectMetrics {
|
|
89
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReviewerReflectMetrics = void 0;
|
|
4
|
+
const domain_objects_1 = require("domain-objects");
|
|
5
|
+
class ReviewerReflectMetrics extends domain_objects_1.DomainLiteral {
|
|
6
|
+
}
|
|
7
|
+
exports.ReviewerReflectMetrics = ReviewerReflectMetrics;
|
|
8
|
+
//# sourceMappingURL=ReviewerReflectMetrics.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReviewerReflectMetrics.js","sourceRoot":"","sources":["../../../src/domain.objects/Reviewer/ReviewerReflectMetrics.ts"],"names":[],"mappings":";;;AAAA,mDAA+C;AAoG/C,MAAa,sBACX,SAAQ,8BAAqC;CACT;AAFtC,wDAEsC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { DomainLiteral } from 'domain-objects';
|
|
2
|
+
/**
|
|
3
|
+
* .what = citation linking rule to origin feedback
|
|
4
|
+
* .why = enables provenance track for each rule
|
|
5
|
+
*/
|
|
6
|
+
export interface ReviewerReflectRuleCitation {
|
|
7
|
+
/**
|
|
8
|
+
* exact quote from feedback
|
|
9
|
+
*/
|
|
10
|
+
quote: string;
|
|
11
|
+
/**
|
|
12
|
+
* github url to feedback file
|
|
13
|
+
*/
|
|
14
|
+
url: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* .what = proposed rule extracted from feedback
|
|
18
|
+
* .why = represents a generalized insight before blend
|
|
19
|
+
*/
|
|
20
|
+
export interface ReviewerReflectRuleProposal {
|
|
21
|
+
/**
|
|
22
|
+
* file path in pure/ directory
|
|
23
|
+
*/
|
|
24
|
+
path: string;
|
|
25
|
+
/**
|
|
26
|
+
* directive: forbid, avoid, prefer, require
|
|
27
|
+
*/
|
|
28
|
+
directive: 'forbid' | 'avoid' | 'prefer' | 'require';
|
|
29
|
+
/**
|
|
30
|
+
* topic in kebab-case
|
|
31
|
+
*/
|
|
32
|
+
topic: string;
|
|
33
|
+
/**
|
|
34
|
+
* full markdown content of the rule
|
|
35
|
+
*/
|
|
36
|
+
content: string;
|
|
37
|
+
/**
|
|
38
|
+
* citations to origin feedback
|
|
39
|
+
*/
|
|
40
|
+
citations: ReviewerReflectRuleCitation[];
|
|
41
|
+
}
|
|
42
|
+
export declare class ReviewerReflectRuleProposal extends DomainLiteral<ReviewerReflectRuleProposal> implements ReviewerReflectRuleProposal {
|
|
43
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReviewerReflectRuleProposal = void 0;
|
|
4
|
+
const domain_objects_1 = require("domain-objects");
|
|
5
|
+
class ReviewerReflectRuleProposal extends domain_objects_1.DomainLiteral {
|
|
6
|
+
}
|
|
7
|
+
exports.ReviewerReflectRuleProposal = ReviewerReflectRuleProposal;
|
|
8
|
+
//# sourceMappingURL=ReviewerReflectRuleProposal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReviewerReflectRuleProposal.js","sourceRoot":"","sources":["../../../src/domain.objects/Reviewer/ReviewerReflectRuleProposal.ts"],"names":[],"mappings":";;;AAAA,mDAA+C;AAiD/C,MAAa,2BACX,SAAQ,8BAA0C;CACT;AAF3C,kEAE2C"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.genLoopFeedback = void 0;
|
|
4
4
|
const rhachet_1 = require("rhachet");
|
|
5
|
-
const genStepGrabCallerFeedbackToArtifact_1 = require("
|
|
5
|
+
const genStepGrabCallerFeedbackToArtifact_1 = require("../../domain.operations/artifact/genStepGrabCallerFeedbackToArtifact");
|
|
6
6
|
const genLoopFeedback = ({ stitchee, artee, repeatee, halter, }) => {
|
|
7
7
|
const stepGetFeedback = (0, genStepGrabCallerFeedbackToArtifact_1.genStepGrabCallerFeedbackToArtifact)({
|
|
8
8
|
stitchee,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"genLoopFeedback.js","sourceRoot":"","sources":["../../../src/domain.operations/artifact/genLoopFeedback.ts"],"names":[],"mappings":";;;AAAA,qCAaiB;AAIjB
|
|
1
|
+
{"version":3,"file":"genLoopFeedback.js","sourceRoot":"","sources":["../../../src/domain.operations/artifact/genLoopFeedback.ts"],"names":[],"mappings":";;;AAAA,qCAaiB;AAIjB,6HAA0H;AAEnH,MAAM,eAAe,GAAG,CAM7B,EACA,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,MAAM,GAMP,EAuBC,EAAE;IACF,MAAM,eAAe,GAAG,IAAA,yEAAmC,EAIzD;QACA,QAAQ;QACR,KAAK;KACN,CAAC,CAAC;IAEH,MAAM,KAAK,GAAG,IAAA,wBAAc,EAC1B,IAAA,wBAAc,EAAC;QACb,IAAI,EAAE,IAAI,QAAQ,2CAA2C;QAC7D,MAAM,EAAE,KAAK,QAAQ,mDAAmD;QACxE,QAAQ,EAAE,CAAC,QAAe,EAAE,IAAA,oBAAU,EAAC,eAAe,CAAC,CAAC;KACzD,CAAQ,CACV,CAAC;IAEF,MAAM,UAAU,GAAG,IAAI,2BAAiB,CAMtC;QACA,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,+BAA+B;QACrC,QAAQ,EAAE,QAAiB;QAC3B,MAAM,EAAE,+BAA+B;QACvC,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;YAC5B,MAAM,MAAM,GAAG,OAAO,CAAC,MAEtB,CAAC;YACF,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC;YAC/D,OAAO;gBACL,KAAK,EAAE,EAAE,QAAQ,EAAE;gBACnB,MAAM,EAAE,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,EAAE;aACpD,CAAC;QACJ,CAAC;KACF,CAAC,CAAC;IAEH,MAAM,KAAK,GAAG,IAAA,oBAAU,EACtB,IAAA,wBAAc,EAAC;QACb,IAAI,EAAE,GAAG,QAAQ,CAAC,IAAI,mBAAmB;QACzC,MAAM,EAAE,IAAI,QAAQ,CAAC,IAAI,gEAAgE;QACzF,QAAQ,EAAE,IAAA,oBAAU,EAAC,KAAK,CAAC;QAC3B,OAAO,EAAE,IAAA,oBAAU,EAAC,UAAU,CAAC;QAC/B,MAAM;KACP,CAAC,CACH,CAAC;IAEF,OAAO,KAAY,CAAC;AACtB,CAAC,CAAC;AA3FW,QAAA,eAAe,mBA2F1B"}
|
|
@@ -5,7 +5,7 @@ import type { GitFile } from 'rhachet-artifact-git';
|
|
|
5
5
|
* .what = creates a compute step where the static 'caller' gives feedback on another role's artifact
|
|
6
6
|
* .why = enables human review or annotation flow to be dynamically targeted, but statically sourced
|
|
7
7
|
*/
|
|
8
|
-
export declare const genStepGrabCallerFeedbackToArtifact: <TStitchee extends string, TArtee extends string, TThreads extends Threads<{ [K in
|
|
8
|
+
export declare const genStepGrabCallerFeedbackToArtifact: <TStitchee extends string, TArtee extends string, TThreads extends Threads<{ [K in "caller" | TStitchee]: RoleContext<K, K extends "caller" ? {
|
|
9
9
|
art: {
|
|
10
10
|
feedback: Artifact<typeof GitFile>;
|
|
11
11
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { BrainArch1Actor } from '../../../domain.objects/BrainArch1/BrainArch1Actor';
|
|
2
|
+
import type { BrainArch1Context } from '../../../domain.objects/BrainArch1/BrainArch1Context';
|
|
3
|
+
import { BrainArch1LoopResult } from '../../../domain.objects/BrainArch1/BrainArch1LoopResult';
|
|
4
|
+
import { BrainArch1SessionMessage } from '../../../domain.objects/BrainArch1/BrainArch1SessionMessage';
|
|
5
|
+
/**
|
|
6
|
+
* .what = invokes the brain with a user input and returns the response
|
|
7
|
+
* .why = provides simple entry point for using the agentic loop
|
|
8
|
+
*/
|
|
9
|
+
export declare const invokeBrainArch1: (input: {
|
|
10
|
+
actor: BrainArch1Actor;
|
|
11
|
+
userInput: string;
|
|
12
|
+
conversationHistory?: BrainArch1SessionMessage[];
|
|
13
|
+
}, context: BrainArch1Context) => Promise<BrainArch1LoopResult>;
|