repoburg 1.3.158 → 1.3.160
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/backend/dist/src/interactive-chat/chat.service.d.ts +2 -2
- package/backend/dist/src/interactive-chat/chat.service.js +2 -2
- package/backend/dist/src/interactive-chat/chat.service.js.map +1 -1
- package/backend/dist/src/llm-orchestration/action-handlers/get-messages.handler.d.ts +11 -3
- package/backend/dist/src/llm-orchestration/action-handlers/get-messages.handler.js +35 -11
- package/backend/dist/src/llm-orchestration/action-handlers/get-messages.handler.js.map +1 -1
- package/backend/dist/src/llm-orchestration/action-handlers/session-status.handler.d.ts +23 -0
- package/backend/dist/src/llm-orchestration/action-handlers/session-status.handler.js +115 -0
- package/backend/dist/src/llm-orchestration/action-handlers/session-status.handler.js.map +1 -0
- package/backend/dist/src/llm-orchestration/llm-orchestration.module.js +5 -1
- package/backend/dist/src/llm-orchestration/llm-orchestration.module.js.map +1 -1
- package/backend/dist/src/llm-orchestration/llm-turn-processor.service.d.ts +7 -1
- package/backend/dist/src/llm-orchestration/llm-turn-processor.service.js +73 -10
- package/backend/dist/src/llm-orchestration/llm-turn-processor.service.js.map +1 -1
- package/backend/dist/src/llm-orchestration/session-status.util.d.ts +5 -0
- package/backend/dist/src/llm-orchestration/session-status.util.js +115 -0
- package/backend/dist/src/llm-orchestration/session-status.util.js.map +1 -0
- package/backend/dist/src/seeding/data/agents/control-repoburg.d.ts +1 -1
- package/backend/dist/src/seeding/data/agents/control-repoburg.js +1 -1
- package/backend/dist/src/seeding/data/agents/control-repoburg.js.map +1 -1
- package/backend/dist/src/seeding/data/sub-agents/control-repoburg.js +1 -0
- package/backend/dist/src/seeding/data/sub-agents/control-repoburg.js.map +1 -1
- package/backend/dist/src/seeding/data/system-prompts/control-repoburg-agent.d.ts +1 -1
- package/backend/dist/src/seeding/data/system-prompts/control-repoburg-agent.js +8 -4
- package/backend/dist/src/seeding/data/system-prompts/control-repoburg-agent.js.map +1 -1
- package/backend/dist/src/seeding/data/tool-hooks/eslint-hook.d.ts +1 -1
- package/backend/dist/src/seeding/data/tool-hooks/eslint-hook.js +47 -8
- package/backend/dist/src/seeding/data/tool-hooks/eslint-hook.js.map +1 -1
- package/backend/dist/src/seeding/data/tool-hooks/example-hook.d.ts +1 -1
- package/backend/dist/src/seeding/data/tool-hooks/example-hook.js +69 -7
- package/backend/dist/src/seeding/data/tool-hooks/example-hook.js.map +1 -1
- package/backend/dist/src/seeding/data/tool-hooks/readme.d.ts +1 -1
- package/backend/dist/src/seeding/data/tool-hooks/readme.js +96 -2
- package/backend/dist/src/seeding/data/tool-hooks/readme.js.map +1 -1
- package/backend/dist/src/system-prompts/system-prompts.service.d.ts +2 -2
- package/backend/dist/src/system-prompts/system-prompts.service.js +7 -5
- package/backend/dist/src/system-prompts/system-prompts.service.js.map +1 -1
- package/backend/dist/src/tool-hooks/hook-context.interface.d.ts +76 -0
- package/backend/dist/src/tool-hooks/hook-context.interface.js +3 -0
- package/backend/dist/src/tool-hooks/hook-context.interface.js.map +1 -0
- package/backend/dist/src/tool-hooks/hook-runtime.d.ts +26 -0
- package/backend/dist/src/tool-hooks/hook-runtime.js +105 -0
- package/backend/dist/src/tool-hooks/hook-runtime.js.map +1 -0
- package/backend/dist/src/tool-hooks/tool-hooks.module.js +3 -2
- package/backend/dist/src/tool-hooks/tool-hooks.module.js.map +1 -1
- package/backend/dist/src/tool-hooks/tool-hooks.service.d.ts +9 -2
- package/backend/dist/src/tool-hooks/tool-hooks.service.js +125 -33
- package/backend/dist/src/tool-hooks/tool-hooks.service.js.map +1 -1
- package/backend/dist/test-hooks/combo-hook.d.ts +1 -0
- package/backend/dist/test-hooks/combo-hook.js +18 -0
- package/backend/dist/test-hooks/combo-hook.js.map +1 -0
- package/backend/dist/test-hooks/context-size-hook.d.ts +1 -0
- package/backend/dist/test-hooks/context-size-hook.js +17 -0
- package/backend/dist/test-hooks/context-size-hook.js.map +1 -0
- package/backend/dist/test-hooks/error-hook.d.ts +1 -0
- package/backend/dist/test-hooks/error-hook.js +19 -0
- package/backend/dist/test-hooks/error-hook.js.map +1 -0
- package/backend/dist/test-hooks/sub-agent-hook.d.ts +1 -0
- package/backend/dist/test-hooks/sub-agent-hook.js +11 -0
- package/backend/dist/test-hooks/sub-agent-hook.js.map +1 -0
- package/backend/dist/tsconfig.build.tsbuildinfo +1 -1
- package/backend/test-hooks/combo-hook.ts +21 -0
- package/backend/test-hooks/context-size-hook.ts +19 -0
- package/backend/test-hooks/error-hook.ts +19 -0
- package/backend/test-hooks/sub-agent-hook.ts +12 -0
- package/package.json +1 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Test hook: uses both context.api.getContextSize() and context.api.invokeSubAgent().
|
|
3
|
+
* If context is too large, invokes a compress-agent and reports back.
|
|
4
|
+
* Used in integration tests to verify both APIs work together.
|
|
5
|
+
*/
|
|
6
|
+
export default async function(context: any): Promise<any> {
|
|
7
|
+
const size = await context.api.getContextSize();
|
|
8
|
+
|
|
9
|
+
if (size > 50000) {
|
|
10
|
+
const result = await context.api.invokeSubAgent('compress-agent', 'Compress conversation history');
|
|
11
|
+
return {
|
|
12
|
+
should_halt_plan: false,
|
|
13
|
+
message: `Context was ${size} tokens. Compress-agent said: ${result.content}`,
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
return {
|
|
18
|
+
should_halt_plan: false,
|
|
19
|
+
message: `Context size OK at ${size} tokens.`,
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Test hook: calls context.api.getContextSize() and halts if size > threshold.
|
|
3
|
+
* Used in integration tests to verify getContextSize works through the hook pipeline.
|
|
4
|
+
*/
|
|
5
|
+
export default async function(context: any): Promise<any> {
|
|
6
|
+
const size = await context.api.getContextSize();
|
|
7
|
+
|
|
8
|
+
if (size > 50000) {
|
|
9
|
+
return {
|
|
10
|
+
should_halt_plan: true,
|
|
11
|
+
message: `Context too large: ${size} tokens. Halting plan.`,
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
return {
|
|
16
|
+
should_halt_plan: false,
|
|
17
|
+
message: `Context size OK: ${size} tokens.`,
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Test hook: calls context.api.invokeSubAgent() and catches errors gracefully.
|
|
3
|
+
* Used in integration tests to verify that hook API errors don't crash the turn.
|
|
4
|
+
*/
|
|
5
|
+
export default async function(context: any): Promise<any> {
|
|
6
|
+
try {
|
|
7
|
+
const result = await context.api.invokeSubAgent('nonexistent-agent', 'This should fail');
|
|
8
|
+
return {
|
|
9
|
+
should_halt_plan: false,
|
|
10
|
+
message: `Unexpected success: ${result.content}`,
|
|
11
|
+
};
|
|
12
|
+
} catch (error) {
|
|
13
|
+
// Hook caught the error itself — should NOT crash the turn
|
|
14
|
+
return {
|
|
15
|
+
should_halt_plan: false,
|
|
16
|
+
message: `Caught error as expected: ${error.message}`,
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Test hook: calls context.api.invokeSubAgent() and returns the result.
|
|
3
|
+
* Used in integration tests to verify invokeSubAgent works through the hook pipeline.
|
|
4
|
+
*/
|
|
5
|
+
export default async function(context: any): Promise<any> {
|
|
6
|
+
const result = await context.api.invokeSubAgent('test-agent', 'Review the file');
|
|
7
|
+
|
|
8
|
+
return {
|
|
9
|
+
should_halt_plan: false,
|
|
10
|
+
message: `Sub-agent result: ${result.content} (success: ${result.success}, childSessionId: ${result.childSessionId}, iterations: ${result.iterations})`,
|
|
11
|
+
};
|
|
12
|
+
}
|