repoburg 1.3.221 → 1.3.227

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/.rgignore +0 -1
  2. package/README.md +7 -13
  3. package/agent-pane/frontend/dist/assets/{index-vR3SdkR-.js → index-BFzfnSZm.js} +70 -70
  4. package/agent-pane/frontend/dist/index.html +1 -1
  5. package/backend/dist/src/agent-runtime/agent-runtime-event-emitter.d.ts +3 -0
  6. package/backend/dist/src/agent-runtime/agent-runtime-event-emitter.js +27 -2
  7. package/backend/dist/src/agent-runtime/agent-runtime-event-emitter.js.map +1 -1
  8. package/backend/dist/src/agent-runtime/agent-runtime.module.js +2 -1
  9. package/backend/dist/src/agent-runtime/agent-runtime.module.js.map +1 -1
  10. package/backend/dist/src/interactive-chat/chat.module.js +2 -0
  11. package/backend/dist/src/interactive-chat/chat.module.js.map +1 -1
  12. package/backend/dist/src/interactive-chat/chat.service.d.ts +3 -1
  13. package/backend/dist/src/interactive-chat/chat.service.js +9 -2
  14. package/backend/dist/src/interactive-chat/chat.service.js.map +1 -1
  15. package/backend/dist/src/llm-orchestration/action-handlers/get-messages.handler.js.map +1 -1
  16. package/backend/dist/src/llm-orchestration/action-handlers/manage-agents.handler.js.map +1 -1
  17. package/backend/dist/src/llm-orchestration/action-handlers/manage-context-snippets.handler.js.map +1 -1
  18. package/backend/dist/src/llm-orchestration/action-handlers/manage-custom-snippets.handler.js.map +1 -1
  19. package/backend/dist/src/llm-orchestration/action-handlers/manage-mcp-servers.handler.js.map +1 -1
  20. package/backend/dist/src/llm-orchestration/action-handlers/manage-sub-agents.handler.js.map +1 -1
  21. package/backend/dist/src/mcp/marketplace/marketplace.service.js.map +1 -1
  22. package/backend/dist/src/seeding/data/agents/default-agent.d.ts +1 -1
  23. package/backend/dist/src/seeding/data/agents/default-agent.js +1 -1
  24. package/backend/dist/src/seeding/data/context-templates/default-followup_ad-hoc-focused-context.d.ts +1 -1
  25. package/backend/dist/src/seeding/data/context-templates/default-followup_ad-hoc-focused-context.js +0 -5
  26. package/backend/dist/src/seeding/data/context-templates/default-followup_ad-hoc-focused-context.js.map +1 -1
  27. package/backend/dist/src/seeding/data/context-templates/default-initial_full-project-context.d.ts +1 -1
  28. package/backend/dist/src/seeding/data/context-templates/default-initial_full-project-context.js +0 -4
  29. package/backend/dist/src/seeding/data/context-templates/default-initial_full-project-context.js.map +1 -1
  30. package/backend/dist/src/seeding/data/system-prompts/default_native_tool_agent.d.ts +1 -1
  31. package/backend/dist/src/seeding/data/system-prompts/default_native_tool_agent.js +22 -16
  32. package/backend/dist/src/seeding/data/system-prompts/default_native_tool_agent.js.map +1 -1
  33. package/backend/dist/src/session-event-logs/session-event-logs.module.d.ts +2 -0
  34. package/backend/dist/src/session-event-logs/session-event-logs.module.js +24 -0
  35. package/backend/dist/src/session-event-logs/session-event-logs.module.js.map +1 -0
  36. package/backend/dist/src/session-event-logs/session-event-logs.service.d.ts +36 -0
  37. package/backend/dist/src/session-event-logs/session-event-logs.service.js +148 -0
  38. package/backend/dist/src/session-event-logs/session-event-logs.service.js.map +1 -0
  39. package/backend/dist/src/session-inputs/session-inputs.module.js +2 -0
  40. package/backend/dist/src/session-inputs/session-inputs.module.js.map +1 -1
  41. package/backend/dist/src/session-inputs/session-inputs.service.d.ts +4 -1
  42. package/backend/dist/src/session-inputs/session-inputs.service.js +30 -14
  43. package/backend/dist/src/session-inputs/session-inputs.service.js.map +1 -1
  44. package/backend/dist/src/tracing.js +2 -2
  45. package/backend/dist/src/tracing.js.map +1 -1
  46. package/backend/dist/tsconfig.build.tsbuildinfo +1 -1
  47. package/package.json +20 -21
  48. package/context-usage-colored.png +0 -0
  49. package/context-usage-e2e.png +0 -0
  50. package/discuss-e2e-open.png +0 -0
  51. package/hasan-thread-after-fix.png +0 -0
  52. package/hasan-threads.png +0 -0
  53. package/pane-e2e-check.png +0 -0
  54. package/pane-fork-branch-open.png +0 -0
@@ -1 +1 @@
1
- {"version":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BAAgB,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,GAAG,IAAI,CACxD;wBACH,CAAC,CAAC,SAAS;iBACd;gBACH,CAAC,CAAC,SAAS;YACb,MAAM,EAAE,SAAS;SAClB,CAAC;QAEF,OAAO,IAAI,sCAAqB,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC;IAC9D,CAAC;IASD,KAAK,CAAC,qBAAqB,CAAC,UAAkB;QAI5C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,SAAS,CAAC;YACtD,WAAW,EAAE,UAAU;SACxB,CAAC,CAAC;QACH,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,MAAM,IAAI,0BAAiB,CACzB,0BAA0B,UAAU,cAAc,CACnD,CAAC;QACJ,CAAC;QACD,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC;YAC3B,MAAM,IAAI,4BAAmB,CAC3B,WAAW,UAAU,iFAAiF,CACvG,CAAC;QACJ,CAAC;QAGD,MAAM,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC;QACvD,MAAM,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAE9C,IAAI,CAAC,MAAM,CAAC,GAAG,CACb,mBAAmB,UAAU,sBAAsB,MAAM,CAAC,cAAc,wBAAwB,CACjG,CAAC;QAIF,OAAO,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;IACrD,CAAC;CACF,CAAA;AAhaY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;IAOR,WAAA,IAAA,0BAAgB,EAAC,yBAAS,CAAC,CAAA;qCACU,oBAAU;QACnB,wBAAU;QACP,8BAAa;QAChB,wBAAU;GAV9B,kBAAkB,CAga9B"}
@@ -3,6 +3,6 @@ export declare const description = "Default agent with full tool access for gene
3
3
  export declare const system_prompt_name = "default-native-tool-agent";
4
4
  export declare const context_template_name = "default-initial_full-project-context";
5
5
  export declare const followup_context_template_name = "default-followup_ad-hoc-focused-context";
6
- export declare const model_id = "ollama/glm-5.2:cloud";
6
+ export declare const model_id = "ollama/glm-5.3:cloud";
7
7
  export declare const reasoning_effort: any;
8
8
  export declare const is_active = true;
@@ -6,7 +6,7 @@ exports.description = 'Default agent with full tool access for general developme
6
6
  exports.system_prompt_name = 'default-native-tool-agent';
7
7
  exports.context_template_name = 'default-initial_full-project-context';
8
8
  exports.followup_context_template_name = 'default-followup_ad-hoc-focused-context';
9
- exports.model_id = 'ollama/glm-5.2:cloud';
9
+ exports.model_id = 'ollama/glm-5.3:cloud';
10
10
  exports.reasoning_effort = null;
11
11
  exports.is_active = true;
12
12
  //# sourceMappingURL=default-agent.js.map
@@ -1,2 +1,2 @@
1
1
  export declare const template_name = "Default Follow-up Context";
2
- export declare const template_content = "<% if (it.user_prev_action) { %>\n### Previous Actions Summary\n<%~ it.user_prev_action %>\n<% } %>\n\n\n<%~ it.context_snippets_content %>\n\n<%~ it.adhoc_files_content %>\n\n<%~ it.adhoc_folders_content %>\n\n<%~ it.adhoc_command_outputs_content %>\n\n\nUser Request:\n<%~ it.user_input %>\n\n\n<% if (it.VAR.PLAN_MODE) { %>\nnote: we're in plan mode, do not code until i say (via `ask_user` say shall i code?)\n<% } %>\n";
2
+ export declare const template_content = "<% if (it.user_prev_action) { %>\n### Previous Actions Summary\n<%~ it.user_prev_action %>\n<% } %>\n\n\n<%~ it.context_snippets_content %>\n\n<%~ it.adhoc_files_content %>\n\n<%~ it.adhoc_folders_content %>\n\n<%~ it.adhoc_command_outputs_content %>\n\n\nUser Request:\n<%~ it.user_input %>\n";
@@ -19,10 +19,5 @@ exports.template_content = `<% if (it.user_prev_action) { %>
19
19
 
20
20
  User Request:
21
21
  <%~ it.user_input %>
22
-
23
-
24
- <% if (it.VAR.PLAN_MODE) { %>
25
- note: we're in plan mode, do not code until i say (via \`ask_user\` say shall i code?)
26
- <% } %>
27
22
  `;
28
23
  //# sourceMappingURL=default-followup_ad-hoc-focused-context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"default-followup_ad-hoc-focused-context.js","sourceRoot":"","sources":["../../../../../src/seeding/data/context-templates/default-followup_ad-hoc-focused-context.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG,2BAA2B,CAAC;AAC5C,QAAA,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;;;;CAsB/B,CAAC"}
1
+ {"version":3,"file":"default-followup_ad-hoc-focused-context.js","sourceRoot":"","sources":["../../../../../src/seeding/data/context-templates/default-followup_ad-hoc-focused-context.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG,2BAA2B,CAAC;AAC5C,QAAA,gBAAgB,GAAG;;;;;;;;;;;;;;;;;CAiB/B,CAAC"}
@@ -1,2 +1,2 @@
1
1
  export declare const template_name = "Default Initial";
2
- export declare const template_content = "\n\n\n<%~ it.context_snippets_content %>\n\n<%~ it.adhoc_files_content %>\n\n<%~ it.adhoc_folders_content %>\n\nUser Request:\n\n<%~ it.user_input %>\n\n\n<% if (it.VAR.PLAN_MODE) { %>\nnote: we're in plan mode, do not code until i say (via `ask_user` say shall i code?)\n<% } %>\n";
2
+ export declare const template_content = "\n\n\n<%~ it.context_snippets_content %>\n\n<%~ it.adhoc_files_content %>\n\n<%~ it.adhoc_folders_content %>\n\nUser Request:\n\n<%~ it.user_input %>\n\n";
@@ -15,9 +15,5 @@ User Request:
15
15
 
16
16
  <%~ it.user_input %>
17
17
 
18
-
19
- <% if (it.VAR.PLAN_MODE) { %>
20
- note: we're in plan mode, do not code until i say (via \`ask_user\` say shall i code?)
21
- <% } %>
22
18
  `;
23
19
  //# sourceMappingURL=default-initial_full-project-context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"default-initial_full-project-context.js","sourceRoot":"","sources":["../../../../../src/seeding/data/context-templates/default-initial_full-project-context.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG,iBAAiB,CAAC;AAClC,QAAA,gBAAgB,GAAG;;;;;;;;;;;;;;;;;CAiB/B,CAAC"}
1
+ {"version":3,"file":"default-initial_full-project-context.js","sourceRoot":"","sources":["../../../../../src/seeding/data/context-templates/default-initial_full-project-context.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG,iBAAiB,CAAC;AAClC,QAAA,gBAAgB,GAAG;;;;;;;;;;;;;CAa/B,CAAC"}
@@ -1,4 +1,4 @@
1
1
  export declare const name = "Native Tool Agent";
2
2
  export declare const enabled_tools: string[];
3
3
  export declare const enabled_mcp_tools: any[];
4
- export declare const content = "You are an expert software engineer. You write clean, efficient, and well-documented code.\n\n## Instructions\n1. **Think First:** Before executing any tool or providing an answer, analyze request.\n2. **Conciseness:** Be extremely brief.\n3. **Best Practices:** Follow SOLID principles and keep code DRY.\n4. **Strict Scope:** Do ONLY what is asked. Do not \"cleanup\", \"refactor\", or \"fix\" unrelated issues unless explicitly requested.\n5. **Tool Calling:** Use provided function definitions to interact with codebase.\n6. **Session Titles:** Use `generate_title` to set a concise session title (3-5 words) when starting a new task or when the task scope changes significantly.\n\n## MCP Tools (Dynamic Loading \u2014 Two-Level Discovery)\n- Use `list_mcp` to discover available MCP servers (names + descriptions + tool counts, lightweight).\n- Use `list_tools({ server_name })` to see the tools on a specific server (names + short descriptions, no schemas).\n- Use `load_tool({ server_name, tool_names? })` to load tool definitions (full schemas). After loading, tools become available as native tool calls on the next turn.\n- If you need all tools from a server, omit `tool_names`. If you need specific ones, pass them as an array.\n- You only need to load each tool once per session.\n- Example: list_mcp() \u2192 list_tools({ server_name: \"playwright\" }) \u2192 load_tool({ server_name: \"playwright\" })\n\n## Sub-Agents\nSpecialized agents available for delegation.\n\n**Tools:**\n- `list_sub_agents` - Discover available sub-agents\n- `invoke_subagent` - Delegate a task to a sub-agent. Pass optional `session_id` to continue a prior sub-agent session.\n\n**Available Sub-Agents:**\n- `explore-codebase` - Read-only codebase exploration. Use when you need to understand project structure.\n\n**Sub Agent Rules**\n\n- You can invoke multiple sub-agents in the same tool call block to run them in parallel. Use this when tasks are independent of each other.\n- Each invocation returns a `[Session ID: ...]`. Pass this as `session_id` on a subsequent call to continue that sub-agent's session with its prior context.\n- For follow-up tasks on the same topic, use `session_id` to continue a prior sub-agent session rather than starting a new one.\n\n\n## Current State\nSession: <%= it.VAR.METADATA.session_name %>\nID: <%= it.VAR.METADATA.session_id %>\n\n<% if (it.VAR.QUESTION_MODE) { %>\n STATUS: QUESTION MODE (READ ONLY)\n - **Goal:** Answer the user's specific question about the codebase.\n - **Constraint:** You are READ-ONLY. Do not edit, create, or delete files.\n - **Constraint:** Do NOT propose an implementation plan or RFC. Just answer the question.\n - **Process:** Search context -> Read files -> Explain to user.\n\n<% } else if (it.VAR.PLAN_MODE) { %>\n STATUS: PLAN MODE (TASK MANAGEMENT ENABLED)\n - **Goal:** Create a detailed implementation plan (RFC) and maintain task lists.\n - **Constraint:** Code editing is FORBIDDEN.\n - **Available Tools:** `request_context`, `run_command`, `write_todo`.\n - **Process:** Gather context -> Update TODOs (`write_todo`) -> Output structured plan (Context, Problem, Proposed Solution).\n \n\n PLANNING PHASE IS FOLLOWING:\n first read guides if there is any\n research all necessary files MUST\n understand the current implementation MUST\n\n plan file contains\n - current state\n - desired state \n - how will you implement (like you are reporting to your lead)\n - what needs to be done to which file\n - all necessary file to get context\n\n what not\n - large code snippets\n - non technical details\n\n\n rules\n - do not write plan without visiting all necessary files\n - plan file is self contained. it should not require reading other files to understand the plan. if you need to reference other files, summarize them in the plan file.\n - mention your exploration briefly and put dead end in the plan file. \n\n\n ### Codebase Exploration\n If context is insufficient:\n 1. delegate exploration via `explore-codebase` sub-agent. once sub-agent submits result, `request_context` relevant files to understand yourself\n 2. Otherwise, explore directly using `request_context` / `run_command`\n \n Skip if you already have enough context.\n\n<% } else { %>\n STATUS: DEV MODE (WRITE ENABLED)\n - **Goal:** Implement features, fix bugs, or refactor.\n - **Authority:** You have full permission to modify the codebase. Never refuse a coding request.\n - **Strategy:** Use native function calls to read, write, and execute.\n - **Process:** Explore the codebase based on given initial context then start implementation. Even if you need to request context for 100 files do it.\n<% } %>\n\n## Tools Configuration\nTool definitions are provided in the API request. Use the native tool calling interface to perform operations.\n\n\n\n## Tool Usage Guidelines\n- Use `ask_user` when you need the user to make a choice or answer a question before continuing. This pauses the loop and waits for their response. Always provide selections.\n- Use `final` when you are done and your response is simple plain text.\n- Use `html_final` when you are done and want to explain or present something to the user. Prefer `html_final` over `final` \u2014 rich HTML is more readable than markdown. Only use `final` when the response is truly plain text.\n\n";
4
+ export declare const content = "You are an expert software engineer. You write clean, efficient, and well-documented code.\n\n## Instructions\n1. **Think First:** Before executing any tool or providing an answer, analyze request.\n2. **Conciseness:** Be extremely brief.\n3. **Best Practices:** Follow SOLID principles and keep code DRY.\n4. **Strict Scope:** Do ONLY what is asked. Do not \"cleanup\", \"refactor\", or \"fix\" unrelated issues unless explicitly requested.\n5. **Tool Calling:** Use provided function definitions to interact with codebase.\n6. **Session History:** Past session transcripts are stored as JSONL files in `~/.repoburg/projects/<sanitized-project-path>/<sessionId>.jsonl` \u2014 search them with `run_command` (rg) when you need to recall or examine previous work.\n\n## MCP Tools (Dynamic Loading \u2014 Two-Level Discovery)\n- Use `list_mcp` to discover available MCP servers (names + descriptions + tool counts, lightweight).\n- Use `list_tools({ server_name })` to see the tools on a specific server (names + short descriptions, no schemas).\n- Use `load_tool({ server_name, tool_names? })` to load tool definitions (full schemas). After loading, tools become available as native tool calls on the next turn.\n- If you need all tools from a server, omit `tool_names`. If you need specific ones, pass them as an array.\n- You only need to load each tool once per session.\n- Example: list_mcp() \u2192 list_tools({ server_name: \"playwright\" }) \u2192 load_tool({ server_name: \"playwright\" })\n\n## Sub-Agents\nSpecialized agents available for delegation.\n\n**Tools:**\n- `list_sub_agents` - Discover available sub-agents\n- `invoke_subagent` - Delegate a task to a sub-agent. Pass optional `session_id` to continue a prior sub-agent session.\n\n**Available Sub-Agents:**\n- `explore-codebase` - Read-only codebase exploration. Use when you need to understand project structure.\n\n**Sub Agent Rules**\n\n- You can invoke multiple sub-agents in the same tool call block to run them in parallel. Use this when tasks are independent of each other.\n- Each invocation returns a `[Session ID: ...]`. Pass this as `session_id` on a subsequent call to continue that sub-agent's session with its prior context.\n- For follow-up tasks on the same topic, use `session_id` to continue a prior sub-agent session rather than starting a new one.\n\n\n## Modes\nThe active mode is set per session. Obey the rules of the active mode.\n\n### QUESTION MODE (READ ONLY)\n - **Goal:** Answer the user's specific question about the codebase.\n - **Constraint:** You are READ-ONLY. Do not edit, create, or delete files.\n - **Constraint:** Do NOT propose an implementation plan or RFC. Just answer the question.\n - **Process:** Search context -> Read files -> Explain to user.\n\n### PLAN MODE (TASK MANAGEMENT ENABLED)\n - **Goal:** Create a detailed implementation plan (RFC) and maintain task lists.\n - **Constraint:** Code editing is FORBIDDEN.\n - **Available Tools:** `request_context`, `run_command`, `write_todo`.\n - **Process:** Gather context -> Update TODOs (`write_todo`) -> Output structured plan (Context, Problem, Proposed Solution).\n\n\n PLANNING PHASE IS FOLLOWING:\n first read guides if there is any\n research all necessary files MUST\n understand the current implementation MUST\n\n plan file contains\n - current state\n - desired state\n - how will you implement (like you are reporting to your lead)\n - what needs to be done to which file\n - all necessary file to get context\n\n what not\n - large code snippets\n - non technical details\n\n\n rules\n - do not write plan without visiting all necessary files\n - plan file is self contained. it should not require reading other files to understand the plan. if you need to reference other files, summarize them in the plan file.\n - mention your exploration briefly and put dead end in the plan file.\n\n\n ### Codebase Exploration\n If context is insufficient:\n 1. delegate exploration via `explore-codebase` sub-agent. once sub-agent submits result, `request_context` relevant files to understand yourself\n 2. Otherwise, explore directly using `request_context` / `run_command`\n\n Skip if you already have enough context.\n\n### DEV MODE (WRITE ENABLED)\n - **Goal:** Implement features, fix bugs, or refactor.\n - **Authority:** You have full permission to modify the codebase. Never refuse a coding request.\n - **Strategy:** Use native function calls to read, write, and execute.\n - **Process:** Explore the codebase based on given initial context then start implementation. Even if you need to request context for 100 files do it.\n\n## Management Tools\nUse `manage_*` tools to create, update, or delete Repoburg configuration entities (agents, sub-agents, system prompts, context templates, context snippets, custom snippets, custom variables, tool hooks, MCP servers) as native tool calls.\n\n## Tools Configuration\nTool definitions are provided in the API request. Use the native tool calling interface to perform operations.\n\n\n\n## Tool Usage Guidelines\n- Use `ask_user` when you need the user to make a choice or answer a question before continuing. This pauses the loop and waits for their response. Always provide selections.\n- Use `final` when you are done and your response is simple plain text.\n- Use `html_final` when you are done and want to explain or present something to the user. Prefer `html_final` over `final` \u2014 rich HTML is more readable than markdown. Only use `final` when the response is truly plain text.\n\n";
@@ -13,7 +13,6 @@ exports.enabled_tools = [
13
13
  'execute_code',
14
14
  'list_sub_agents',
15
15
  'invoke_subagent',
16
- 'generate_title',
17
16
  'ask_user',
18
17
  'final',
19
18
  'html_final',
@@ -25,6 +24,15 @@ exports.enabled_tools = [
25
24
  'list_mcp',
26
25
  'list_tools',
27
26
  'load_tool',
27
+ 'manage_agents',
28
+ 'manage_sub_agents',
29
+ 'manage_system_prompts',
30
+ 'manage_context_templates',
31
+ 'manage_context_snippets',
32
+ 'manage_custom_snippets',
33
+ 'manage_custom_variables',
34
+ 'manage_tool_hooks',
35
+ 'manage_mcp_servers',
28
36
  ];
29
37
  exports.enabled_mcp_tools = [];
30
38
  exports.content = `You are an expert software engineer. You write clean, efficient, and well-documented code.
@@ -35,7 +43,7 @@ exports.content = `You are an expert software engineer. You write clean, efficie
35
43
  3. **Best Practices:** Follow SOLID principles and keep code DRY.
36
44
  4. **Strict Scope:** Do ONLY what is asked. Do not "cleanup", "refactor", or "fix" unrelated issues unless explicitly requested.
37
45
  5. **Tool Calling:** Use provided function definitions to interact with codebase.
38
- 6. **Session Titles:** Use \`generate_title\` to set a concise session title (3-5 words) when starting a new task or when the task scope changes significantly.
46
+ 6. **Session History:** Past session transcripts are stored as JSONL files in \`~/.repoburg/projects/<sanitized-project-path>/<sessionId>.jsonl\` — search them with \`run_command\` (rg) when you need to recall or examine previous work.
39
47
 
40
48
  ## MCP Tools (Dynamic Loading — Two-Level Discovery)
41
49
  - Use \`list_mcp\` to discover available MCP servers (names + descriptions + tool counts, lightweight).
@@ -62,24 +70,21 @@ Specialized agents available for delegation.
62
70
  - For follow-up tasks on the same topic, use \`session_id\` to continue a prior sub-agent session rather than starting a new one.
63
71
 
64
72
 
65
- ## Current State
66
- Session: <%= it.VAR.METADATA.session_name %>
67
- ID: <%= it.VAR.METADATA.session_id %>
73
+ ## Modes
74
+ The active mode is set per session. Obey the rules of the active mode.
68
75
 
69
- <% if (it.VAR.QUESTION_MODE) { %>
70
- STATUS: QUESTION MODE (READ ONLY)
76
+ ### QUESTION MODE (READ ONLY)
71
77
  - **Goal:** Answer the user's specific question about the codebase.
72
78
  - **Constraint:** You are READ-ONLY. Do not edit, create, or delete files.
73
79
  - **Constraint:** Do NOT propose an implementation plan or RFC. Just answer the question.
74
80
  - **Process:** Search context -> Read files -> Explain to user.
75
81
 
76
- <% } else if (it.VAR.PLAN_MODE) { %>
77
- STATUS: PLAN MODE (TASK MANAGEMENT ENABLED)
82
+ ### PLAN MODE (TASK MANAGEMENT ENABLED)
78
83
  - **Goal:** Create a detailed implementation plan (RFC) and maintain task lists.
79
84
  - **Constraint:** Code editing is FORBIDDEN.
80
85
  - **Available Tools:** \`request_context\`, \`run_command\`, \`write_todo\`.
81
86
  - **Process:** Gather context -> Update TODOs (\`write_todo\`) -> Output structured plan (Context, Problem, Proposed Solution).
82
-
87
+
83
88
 
84
89
  PLANNING PHASE IS FOLLOWING:
85
90
  first read guides if there is any
@@ -88,7 +93,7 @@ ID: <%= it.VAR.METADATA.session_id %>
88
93
 
89
94
  plan file contains
90
95
  - current state
91
- - desired state
96
+ - desired state
92
97
  - how will you implement (like you are reporting to your lead)
93
98
  - what needs to be done to which file
94
99
  - all necessary file to get context
@@ -101,23 +106,24 @@ ID: <%= it.VAR.METADATA.session_id %>
101
106
  rules
102
107
  - do not write plan without visiting all necessary files
103
108
  - plan file is self contained. it should not require reading other files to understand the plan. if you need to reference other files, summarize them in the plan file.
104
- - mention your exploration briefly and put dead end in the plan file.
109
+ - mention your exploration briefly and put dead end in the plan file.
105
110
 
106
111
 
107
112
  ### Codebase Exploration
108
113
  If context is insufficient:
109
114
  1. delegate exploration via \`explore-codebase\` sub-agent. once sub-agent submits result, \`request_context\` relevant files to understand yourself
110
115
  2. Otherwise, explore directly using \`request_context\` / \`run_command\`
111
-
116
+
112
117
  Skip if you already have enough context.
113
118
 
114
- <% } else { %>
115
- STATUS: DEV MODE (WRITE ENABLED)
119
+ ### DEV MODE (WRITE ENABLED)
116
120
  - **Goal:** Implement features, fix bugs, or refactor.
117
121
  - **Authority:** You have full permission to modify the codebase. Never refuse a coding request.
118
122
  - **Strategy:** Use native function calls to read, write, and execute.
119
123
  - **Process:** Explore the codebase based on given initial context then start implementation. Even if you need to request context for 100 files do it.
120
- <% } %>
124
+
125
+ ## Management Tools
126
+ Use \`manage_*\` tools to create, update, or delete Repoburg configuration entities (agents, sub-agents, system prompts, context templates, context snippets, custom snippets, custom variables, tool hooks, MCP servers) as native tool calls.
121
127
 
122
128
  ## Tools Configuration
123
129
  Tool definitions are provided in the API request. Use the native tool calling interface to perform operations.
@@ -1 +1 @@
1
- {"version":3,"file":"default_native_tool_agent.js","sourceRoot":"","sources":["../../../../../src/seeding/data/system-prompts/default_native_tool_agent.ts"],"names":[],"mappings":";;;AAAa,QAAA,IAAI,GAAG,mBAAmB,CAAC;AAC3B,QAAA,aAAa,GAAG;IAC3B,iBAAiB;IACjB,aAAa;IACb,YAAY;IACZ,aAAa;IACb,gBAAgB;IAChB,YAAY;IACZ,aAAa;IACb,cAAc;IACd,iBAAiB;IACjB,iBAAiB;IACjB,gBAAgB;IAChB,UAAU;IACV,OAAO;IACP,YAAY;IACZ,cAAc;IACd,kBAAkB;IAClB,wBAAwB;IACxB,YAAY;IACZ,WAAW;IACX,UAAU;IACV,YAAY;IACZ,WAAW;CACZ,CAAC;AACW,QAAA,iBAAiB,GAAG,EAAE,CAAC;AACvB,QAAA,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsGtB,CAAC"}
1
+ {"version":3,"file":"default_native_tool_agent.js","sourceRoot":"","sources":["../../../../../src/seeding/data/system-prompts/default_native_tool_agent.ts"],"names":[],"mappings":";;;AAAa,QAAA,IAAI,GAAG,mBAAmB,CAAC;AAC3B,QAAA,aAAa,GAAG;IAC3B,iBAAiB;IACjB,aAAa;IACb,YAAY;IACZ,aAAa;IACb,gBAAgB;IAChB,YAAY;IACZ,aAAa;IACb,cAAc;IACd,iBAAiB;IACjB,iBAAiB;IACjB,UAAU;IACV,OAAO;IACP,YAAY;IACZ,cAAc;IACd,kBAAkB;IAClB,wBAAwB;IACxB,YAAY;IACZ,WAAW;IACX,UAAU;IACV,YAAY;IACZ,WAAW;IACX,eAAe;IACf,mBAAmB;IACnB,uBAAuB;IACvB,0BAA0B;IAC1B,yBAAyB;IACzB,wBAAwB;IACxB,yBAAyB;IACzB,mBAAmB;IACnB,oBAAoB;CACrB,CAAC;AACW,QAAA,iBAAiB,GAAG,EAAE,CAAC;AACvB,QAAA,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoGtB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare class SessionEventLogsModule {
2
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.SessionEventLogsModule = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ const typeorm_1 = require("@nestjs/typeorm");
12
+ const core_entities_1 = require("../core-entities");
13
+ const session_event_logs_service_1 = require("./session-event-logs.service");
14
+ let SessionEventLogsModule = class SessionEventLogsModule {
15
+ };
16
+ exports.SessionEventLogsModule = SessionEventLogsModule;
17
+ exports.SessionEventLogsModule = SessionEventLogsModule = __decorate([
18
+ (0, common_1.Module)({
19
+ imports: [typeorm_1.TypeOrmModule.forFeature([core_entities_1.Session])],
20
+ providers: [session_event_logs_service_1.SessionEventLogsService],
21
+ exports: [session_event_logs_service_1.SessionEventLogsService],
22
+ })
23
+ ], SessionEventLogsModule);
24
+ //# sourceMappingURL=session-event-logs.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-event-logs.module.js","sourceRoot":"","sources":["../../../src/session-event-logs/session-event-logs.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAChD,oDAA2C;AAC3C,6EAAuE;AAWhE,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;CAAG,CAAA;AAAzB,wDAAsB;iCAAtB,sBAAsB;IALlC,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,uBAAa,CAAC,UAAU,CAAC,CAAC,uBAAO,CAAC,CAAC,CAAC;QAC9C,SAAS,EAAE,CAAC,oDAAuB,CAAC;QACpC,OAAO,EAAE,CAAC,oDAAuB,CAAC;KACnC,CAAC;GACW,sBAAsB,CAAG"}
@@ -0,0 +1,36 @@
1
+ import { Repository } from 'typeorm';
2
+ import { Session } from '../core-entities/session.entity';
3
+ import { AgentRuntimeContentBlock, AgentRuntimeResultSubtype, AgentRuntimeToolResultBlock, AgentRuntimeUsage } from '../agent-runtime/agent-runtime.types';
4
+ interface SessionEventLogsOptions {
5
+ eventsRoot?: string;
6
+ }
7
+ interface LineOptions {
8
+ isSidechain?: boolean;
9
+ }
10
+ export interface ResultEventPayload {
11
+ subtype: AgentRuntimeResultSubtype;
12
+ is_error: boolean;
13
+ result: string;
14
+ num_rounds: number;
15
+ usage?: AgentRuntimeUsage;
16
+ errors?: string[];
17
+ }
18
+ export declare class SessionEventLogsService {
19
+ private readonly sessionsRepository;
20
+ private readonly logger;
21
+ private readonly eventsRoot;
22
+ private readonly lastUuidBySession;
23
+ private readonly cwdBySession;
24
+ private readonly writeQueues;
25
+ private readonly ensuredDirs;
26
+ constructor(sessionsRepository: Repository<Session>, options?: SessionEventLogsOptions);
27
+ logUserMessage(sessionId: string, content: string, opts?: LineOptions): Promise<void>;
28
+ logAssistantMessage(sessionId: string, inputId: string, content: AgentRuntimeContentBlock[], usage: AgentRuntimeUsage | undefined, opts?: LineOptions): Promise<void>;
29
+ logToolResult(sessionId: string, toolResult: AgentRuntimeToolResultBlock, opts?: LineOptions): Promise<void>;
30
+ logResultMessage(sessionId: string, payload: ResultEventPayload, opts?: LineOptions): Promise<void>;
31
+ private append;
32
+ private write;
33
+ private resolveCwd;
34
+ private projectDirName;
35
+ }
36
+ export {};
@@ -0,0 +1,148 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ var SessionEventLogsService_1;
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.SessionEventLogsService = void 0;
17
+ const common_1 = require("@nestjs/common");
18
+ const typeorm_1 = require("@nestjs/typeorm");
19
+ const typeorm_2 = require("typeorm");
20
+ const promises_1 = require("fs/promises");
21
+ const os_1 = require("os");
22
+ const path_1 = require("path");
23
+ const crypto_1 = require("crypto");
24
+ const session_entity_1 = require("../core-entities/session.entity");
25
+ const DEFAULT_EVENTS_ROOT = (0, path_1.join)((0, os_1.homedir)(), '.repoburg', 'projects');
26
+ let SessionEventLogsService = SessionEventLogsService_1 = class SessionEventLogsService {
27
+ constructor(sessionsRepository, options) {
28
+ this.sessionsRepository = sessionsRepository;
29
+ this.logger = new common_1.Logger(SessionEventLogsService_1.name);
30
+ this.lastUuidBySession = new Map();
31
+ this.cwdBySession = new Map();
32
+ this.writeQueues = new Map();
33
+ this.ensuredDirs = new Set();
34
+ this.eventsRoot = options?.eventsRoot ?? DEFAULT_EVENTS_ROOT;
35
+ }
36
+ logUserMessage(sessionId, content, opts = {}) {
37
+ return this.append(sessionId, {
38
+ type: 'user',
39
+ message: { role: 'user', content },
40
+ }, opts);
41
+ }
42
+ logAssistantMessage(sessionId, inputId, content, usage, opts = {}) {
43
+ return this.append(sessionId, {
44
+ type: 'assistant',
45
+ inputId,
46
+ message: {
47
+ role: 'assistant',
48
+ content,
49
+ ...(usage ? { usage } : {}),
50
+ },
51
+ }, opts);
52
+ }
53
+ logToolResult(sessionId, toolResult, opts = {}) {
54
+ return this.append(sessionId, {
55
+ type: 'user',
56
+ message: {
57
+ role: 'user',
58
+ content: [
59
+ {
60
+ type: 'tool_result',
61
+ tool_use_id: toolResult.tool_use_id,
62
+ content: toolResult.content,
63
+ is_error: toolResult.is_error,
64
+ },
65
+ ],
66
+ },
67
+ }, opts);
68
+ }
69
+ logResultMessage(sessionId, payload, opts = {}) {
70
+ return this.append(sessionId, {
71
+ type: 'system',
72
+ subtype: 'turn_duration',
73
+ content: payload.result,
74
+ is_error: payload.is_error,
75
+ num_rounds: payload.num_rounds,
76
+ ...(payload.usage ? { usage: payload.usage } : {}),
77
+ ...(payload.errors ? { errors: payload.errors } : {}),
78
+ }, opts);
79
+ }
80
+ append(sessionId, partial, opts) {
81
+ try {
82
+ const parentUuid = this.lastUuidBySession.get(sessionId) ?? null;
83
+ const uuid = (0, crypto_1.randomUUID)();
84
+ const record = {
85
+ parentUuid,
86
+ isSidechain: opts.isSidechain === true,
87
+ ...partial,
88
+ uuid,
89
+ timestamp: new Date().toISOString(),
90
+ sessionId,
91
+ };
92
+ this.lastUuidBySession.set(sessionId, uuid);
93
+ const prev = this.writeQueues.get(sessionId) ?? Promise.resolve();
94
+ const next = prev
95
+ .then(() => this.write(sessionId, record))
96
+ .catch((err) => {
97
+ this.logger.warn(`Event log write failed for session ${sessionId}: ${err.message}`);
98
+ });
99
+ this.writeQueues.set(sessionId, next);
100
+ return next;
101
+ }
102
+ catch (err) {
103
+ this.logger.warn(`Event log append failed for session ${sessionId}: ${err.message}`);
104
+ return Promise.resolve();
105
+ }
106
+ }
107
+ async write(sessionId, record) {
108
+ const cwd = await this.resolveCwd(sessionId);
109
+ if (cwd)
110
+ record.cwd = cwd;
111
+ const dir = (0, path_1.join)(this.eventsRoot, this.projectDirName(cwd));
112
+ if (!this.ensuredDirs.has(dir)) {
113
+ await (0, promises_1.mkdir)(dir, { recursive: true });
114
+ this.ensuredDirs.add(dir);
115
+ }
116
+ await (0, promises_1.appendFile)((0, path_1.join)(dir, `${sessionId}.jsonl`), `${JSON.stringify(record)}\n`, 'utf8');
117
+ }
118
+ async resolveCwd(sessionId) {
119
+ if (this.cwdBySession.has(sessionId)) {
120
+ return this.cwdBySession.get(sessionId) ?? null;
121
+ }
122
+ let cwd = null;
123
+ try {
124
+ const session = await this.sessionsRepository.findOne({
125
+ where: { id: sessionId },
126
+ relations: ['project'],
127
+ });
128
+ cwd = session?.project?.project_path ?? null;
129
+ }
130
+ catch (err) {
131
+ this.logger.warn(`Could not resolve project path for session ${sessionId}: ${err.message}`);
132
+ }
133
+ cwd = cwd ?? process.cwd();
134
+ this.cwdBySession.set(sessionId, cwd);
135
+ return cwd;
136
+ }
137
+ projectDirName(projectPath) {
138
+ return projectPath ? projectPath.replace(/\//g, '-') : '-';
139
+ }
140
+ };
141
+ exports.SessionEventLogsService = SessionEventLogsService;
142
+ exports.SessionEventLogsService = SessionEventLogsService = SessionEventLogsService_1 = __decorate([
143
+ (0, common_1.Injectable)(),
144
+ __param(0, (0, typeorm_1.InjectRepository)(session_entity_1.Session)),
145
+ __param(1, (0, common_1.Optional)()),
146
+ __metadata("design:paramtypes", [typeorm_2.Repository, Object])
147
+ ], SessionEventLogsService);
148
+ //# sourceMappingURL=session-event-logs.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-event-logs.service.js","sourceRoot":"","sources":["../../../src/session-event-logs/session-event-logs.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAA8D;AAC9D,6CAAmD;AACnD,qCAAqC;AACrC,0CAAgD;AAChD,2BAA6B;AAC7B,+BAA4B;AAC5B,mCAAoC;AACpC,oEAA0D;AAQ1D,MAAM,mBAAmB,GAAG,IAAA,WAAI,EAAC,IAAA,YAAO,GAAE,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC;AAgC9D,IAAM,uBAAuB,+BAA7B,MAAM,uBAAuB;IAQlC,YAEE,kBAAwD,EAC5C,OAAiC;QAD5B,uBAAkB,GAAlB,kBAAkB,CAAqB;QATzC,WAAM,GAAG,IAAI,eAAM,CAAC,yBAAuB,CAAC,IAAI,CAAC,CAAC;QAElD,sBAAiB,GAAG,IAAI,GAAG,EAAkB,CAAC;QAC9C,iBAAY,GAAG,IAAI,GAAG,EAAyB,CAAC;QAChD,gBAAW,GAAG,IAAI,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IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC;QAClD,CAAC;QACD,IAAI,GAAG,GAAkB,IAAI,CAAC;QAC9B,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC;gBACpD,KAAK,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE;gBACxB,SAAS,EAAE,CAAC,SAAS,CAAC;aACvB,CAAC,CAAC;YACH,GAAG,GAAG,OAAO,EAAE,OAAO,EAAE,YAAY,IAAI,IAAI,CAAC;QAC/C,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,IAAI,CAAC,MAAM,CAAC,IAAI,CACd,8CAA8C,SAAS,KAAM,GAAa,CAAC,OAAO,EAAE,CACrF,CAAC;QACJ,CAAC;QACD,GAAG,GAAG,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;QAC3B,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;QACtC,OAAO,GAAG,CAAC;IACb,CAAC;IAGO,cAAc,CAAC,WAA0B;QAC/C,OAAO,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;IAC7D,CAAC;CACF,CAAA;AA7LY,0DAAuB;kCAAvB,uBAAuB;IADnC,IAAA,mBAAU,GAAE;IAUR,WAAA,IAAA,0BAAgB,EAAC,wBAAO,CAAC,CAAA;IAEzB,WAAA,IAAA,iBAAQ,GAAE,CAAA;qCAD0B,oBAAU;GAVtC,uBAAuB,CA6LnC"}
@@ -24,6 +24,7 @@ const chat_module_1 = require("../interactive-chat/chat.module");
24
24
  const llm_responses_module_1 = require("../llm-responses/llm-responses.module");
25
25
  const custom_variables_module_1 = require("../custom-variables/custom-variables.module");
26
26
  const slash_commands_module_1 = require("../slash-commands/slash-commands.module");
27
+ const session_event_logs_module_1 = require("../session-event-logs/session-event-logs.module");
27
28
  let SessionInputsModule = class SessionInputsModule {
28
29
  };
29
30
  exports.SessionInputsModule = SessionInputsModule;
@@ -48,6 +49,7 @@ exports.SessionInputsModule = SessionInputsModule = __decorate([
48
49
  (0, common_1.forwardRef)(() => llm_responses_module_1.LlmResponsesModule),
49
50
  custom_variables_module_1.CustomVariablesModule,
50
51
  slash_commands_module_1.SlashCommandsModule,
52
+ session_event_logs_module_1.SessionEventLogsModule,
51
53
  ],
52
54
  controllers: [session_inputs_controller_1.SessionInputsController],
53
55
  providers: [session_inputs_service_1.SessionInputsService, session_input_context_service_1.SessionInputContextService],
@@ -1 +1 @@
1
- {"version":3,"file":"session-inputs.module.js","sourceRoot":"","sources":["../../../src/session-inputs/session-inputs.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAoD;AACpD,6CAAgD;AAChD,oDAM0B;AAC1B,qEAAgE;AAChE,2EAAsE;AACtE,uEAAkE;AAClE,+FAA0F;AAC1F,mFAA8E;AAC9E,mFAA6E;AAC7E,4FAAuF;AACvF,2DAAuD;AACvD,yFAAoF;AACpF,6EAAwE;AACxE,iEAAwE;AACxE,gFAA2E;AAC3E,yFAAoF;AACpF,mFAA8E;AA2BvE,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CAAG,CAAA;AAAtB,kDAAmB;8BAAnB,mBAAmB;IAzB/B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,uBAAa,CAAC,UAAU,CAAC;gBACvB,uBAAO;gBACP,4BAAY;gBACZ,+BAAe;gBACf,wBAAQ;gBACR,4BAAY;aACb,CAAC;YACF,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,mCAAe,CAAC;YACjC,mDAAuB;YACvB,2CAAmB;YACnB,iDAAsB;YACtB,4BAAY;YACZ,+CAAqB;YACrB,uCAAiB;YACjB,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,mCAAqB,CAAC;YACvC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,yCAAkB,CAAC;YACpC,+CAAqB;YACrB,2CAAmB;SACpB;QACD,WAAW,EAAE,CAAC,mDAAuB,CAAC;QACtC,SAAS,EAAE,CAAC,6CAAoB,EAAE,0DAA0B,CAAC;QAC7D,OAAO,EAAE,CAAC,6CAAoB,EAAE,0DAA0B,CAAC;KAC5D,CAAC;GACW,mBAAmB,CAAG"}
1
+ {"version":3,"file":"session-inputs.module.js","sourceRoot":"","sources":["../../../src/session-inputs/session-inputs.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAoD;AACpD,6CAAgD;AAChD,oDAM0B;AAC1B,qEAAgE;AAChE,2EAAsE;AACtE,uEAAkE;AAClE,+FAA0F;AAC1F,mFAA8E;AAC9E,mFAA6E;AAC7E,4FAAuF;AACvF,2DAAuD;AACvD,yFAAoF;AACpF,6EAAwE;AACxE,iEAAwE;AACxE,gFAA2E;AAC3E,yFAAoF;AACpF,mFAA8E;AAC9E,+FAAyF;AA4BlF,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CAAG,CAAA;AAAtB,kDAAmB;8BAAnB,mBAAmB;IA1B/B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,uBAAa,CAAC,UAAU,CAAC;gBACvB,uBAAO;gBACP,4BAAY;gBACZ,+BAAe;gBACf,wBAAQ;gBACR,4BAAY;aACb,CAAC;YACF,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,mCAAe,CAAC;YACjC,mDAAuB;YACvB,2CAAmB;YACnB,iDAAsB;YACtB,4BAAY;YACZ,+CAAqB;YACrB,uCAAiB;YACjB,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,mCAAqB,CAAC;YACvC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,yCAAkB,CAAC;YACpC,+CAAqB;YACrB,2CAAmB;YACnB,kDAAsB;SACvB;QACD,WAAW,EAAE,CAAC,mDAAuB,CAAC;QACtC,SAAS,EAAE,CAAC,6CAAoB,EAAE,0DAA0B,CAAC;QAC7D,OAAO,EAAE,CAAC,6CAAoB,EAAE,0DAA0B,CAAC;KAC5D,CAAC;GACW,mBAAmB,CAAG"}
@@ -7,6 +7,7 @@ import { SessionInputContextService } from './session-input-context.service';
7
7
  import { ApplicationStateService } from '../application-state/application-state.service';
8
8
  import { ChatService } from '../interactive-chat/chat.service';
9
9
  import { LlmResponsesService } from '../llm-responses/llm-responses.service';
10
+ import { SessionEventLogsService } from '../session-event-logs/session-event-logs.service';
10
11
  export declare class SessionInputsService {
11
12
  private sessionsRepository;
12
13
  private sessionInputsRepository;
@@ -20,9 +21,11 @@ export declare class SessionInputsService {
20
21
  private readonly chatService;
21
22
  private readonly llmResponsesService;
22
23
  private readonly dataSource;
24
+ private readonly sessionEventLogs?;
23
25
  private readonly logger;
24
- constructor(sessionsRepository: Repository<Session>, sessionInputsRepository: Repository<SessionInput>, contextTemplatesRepository: Repository<ContextTemplate>, aiActionsRepository: Repository<AIAction>, executionLogsRepository: Repository<ExecutionLog>, aiActionsService: AIActionsService, systemPromptsService: SystemPromptsService, sessionInputContextService: SessionInputContextService, applicationStateService: ApplicationStateService, chatService: ChatService, llmResponsesService: LlmResponsesService, dataSource: DataSource);
26
+ constructor(sessionsRepository: Repository<Session>, sessionInputsRepository: Repository<SessionInput>, contextTemplatesRepository: Repository<ContextTemplate>, aiActionsRepository: Repository<AIAction>, executionLogsRepository: Repository<ExecutionLog>, aiActionsService: AIActionsService, systemPromptsService: SystemPromptsService, sessionInputContextService: SessionInputContextService, applicationStateService: ApplicationStateService, chatService: ChatService, llmResponsesService: LlmResponsesService, dataSource: DataSource, sessionEventLogs?: SessionEventLogsService);
25
27
  private generatePreviousActionsSummary;
28
+ private resolveContextTemplate;
26
29
  generateContextString(sessionId: string, createSessionInputDto: CreateSessionInputDto): Promise<string>;
27
30
  create(sessionId: string, createSessionInputDto: CreateSessionInputDto): Promise<SessionInput | null>;
28
31
  createFromRawLlmResponse(): Promise<SessionInput>;