@kjerneverk/agentic 1.0.5-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/.kodrdriv-test-cache.json +6 -0
  2. package/LICENSE +18 -0
  3. package/README.md +167 -0
  4. package/SECURITY.md +94 -0
  5. package/dist/index.d.ts +770 -0
  6. package/dist/index.js +1822 -0
  7. package/dist/index.js.map +1 -0
  8. package/output/kodrdriv/260110-1207-commit-message.md +1 -0
  9. package/output/kodrdriv/260110-1208-commit-message.md +1 -0
  10. package/output/kodrdriv/260110-1210-release-notes.md +27 -0
  11. package/output/kodrdriv/260110-1232-commit-message.md +1 -0
  12. package/output/kodrdriv/260110-1234-release-notes.md +46 -0
  13. package/output/kodrdriv/260110-1308-release-notes.md +20 -0
  14. package/output/kodrdriv/260112-2155-commit-message.md +1 -0
  15. package/output/kodrdriv/260112-2156-release-notes.md +33 -0
  16. package/output/kodrdriv/260112-2340-commit-message.md +1 -0
  17. package/output/kodrdriv/260113-0017-commit-message.md +1 -0
  18. package/output/kodrdriv/260113-0017-release-notes.md +53 -0
  19. package/output/kodrdriv/260115-0616-commit-message.md +4 -0
  20. package/output/kodrdriv/260115-0739-commit-message.md +1 -0
  21. package/output/kodrdriv/260115-0746-commit-message.md +1 -0
  22. package/output/kodrdriv/260115-0747-release-notes.md +91 -0
  23. package/output/kodrdriv/260126-0851-commit-message.md +1 -0
  24. package/output/kodrdriv/260128-0900-commit-message.md +1 -0
  25. package/output/kodrdriv/260128-0900-release-notes.md +29 -0
  26. package/output/kodrdriv/260128-0905-commit-message.md +1 -0
  27. package/output/kodrdriv/260128-0913-commit-message.md +1 -0
  28. package/output/kodrdriv/260128-0913-release-notes.md +23 -0
  29. package/output/kodrdriv/260128-0919-commit-message.md +1 -0
  30. package/output/kodrdriv/260128-0919-release-notes.md +21 -0
  31. package/output/kodrdriv/260130-1642-commit-message.md +1 -0
  32. package/output/kodrdriv/260130-1642-release-notes.md +29 -0
  33. package/output/kodrdriv/RELEASE_NOTES.md +27 -0
  34. package/output/kodrdriv/RELEASE_TITLE.md +1 -0
  35. package/output/kodrdriv/agentic-reflection-commit-2026-01-10T19-18-11-913Z.md +187 -0
  36. package/output/kodrdriv/agentic-reflection-commit-2026-01-10T20-03-27-409Z.md +121 -0
  37. package/output/kodrdriv/agentic-reflection-commit-2026-01-10T20-07-27-813Z.md +114 -0
  38. package/output/kodrdriv/agentic-reflection-commit-2026-01-10T20-08-06-279Z.md +97 -0
  39. package/output/kodrdriv/agentic-reflection-commit-2026-01-10T20-32-25-791Z.md +114 -0
  40. package/output/kodrdriv/agentic-reflection-commit-2026-01-13T05-55-30-733Z.md +97 -0
  41. package/output/kodrdriv/agentic-reflection-commit-2026-01-13T07-40-28-878Z.md +97 -0
  42. package/output/kodrdriv/agentic-reflection-commit-2026-01-13T08-17-22-230Z.md +114 -0
  43. package/output/kodrdriv/agentic-reflection-commit-2026-01-14T14-55-10-122Z.md +177 -0
  44. package/output/kodrdriv/agentic-reflection-commit-2026-01-15T14-16-05-605Z.md +100 -0
  45. package/output/kodrdriv/agentic-reflection-commit-2026-01-15T15-39-32-200Z.md +97 -0
  46. package/output/kodrdriv/agentic-reflection-commit-2026-01-15T15-46-32-840Z.md +114 -0
  47. package/output/kodrdriv/agentic-reflection-commit-2026-01-26T16-51-00-446Z.md +152 -0
  48. package/output/kodrdriv/agentic-reflection-commit-2026-01-31T00-38-59-868Z.md +236 -0
  49. package/output/kodrdriv/agentic-reflection-commit-2026-01-31T00-42-31-993Z.md +152 -0
  50. package/output/kodrdriv/agentic-reflection-release-2026-01-10T20-10-49-531Z.md +329 -0
  51. package/output/kodrdriv/agentic-reflection-release-2026-01-10T20-34-32-038Z.md +319 -0
  52. package/output/kodrdriv/agentic-reflection-release-2026-01-10T21-08-36-314Z.md +168 -0
  53. package/output/kodrdriv/agentic-reflection-release-2026-01-13T05-56-04-802Z.md +264 -0
  54. package/output/kodrdriv/agentic-reflection-release-2026-01-13T08-17-56-556Z.md +255 -0
  55. package/output/kodrdriv/agentic-reflection-release-2026-01-15T15-47-32-509Z.md +460 -0
  56. package/output/kodrdriv/agentic-reflection-release-2026-01-31T00-42-59-683Z.md +400 -0
  57. package/package.json +59 -0
  58. package/package.json~ +58 -0
@@ -0,0 +1,152 @@
1
+ # Agentic Workflow - Self-Reflection Report
2
+
3
+ Generated: 2026-01-31T00:42:31.993Z
4
+
5
+ ## Execution Summary
6
+
7
+ - **Iterations**: 3
8
+ - **Tool Calls**: 5
9
+ - **Unique Tools**: 5
10
+
11
+ ## Tool Effectiveness Analysis
12
+
13
+ | Tool | Calls | Success | Failures | Success Rate | Avg Duration |
14
+ |------|-------|---------|----------|--------------|--------------|
15
+ | get_file_content | 1 | 1 | 0 | 100.0% | 1ms |
16
+ | get_file_modification_times | 1 | 1 | 0 | 100.0% | 0ms |
17
+ | group_files_by_concern | 1 | 1 | 0 | 100.0% | 0ms |
18
+ | get_recent_commits | 1 | 1 | 0 | 100.0% | 17ms |
19
+ | get_file_history | 1 | 1 | 0 | 100.0% | 11ms |
20
+
21
+ ### Tool Performance Insights
22
+
23
+ **Most Frequently Used:**
24
+ - get_file_content: 1 calls
25
+ - get_file_modification_times: 1 calls
26
+ - group_files_by_concern: 1 calls
27
+
28
+ ## Recommendations for Improvement
29
+
30
+ - **Underutilized Tools**: Many tools were called only once. Consider whether all tools are necessary or if the agent needs better guidance on when to use them.
31
+
32
+ ## Detailed Execution Timeline
33
+
34
+ | Time | Iteration | Tool | Result | Duration |
35
+ |------|-----------|------|--------|----------|
36
+ | 4:42:21 PM | 1 | get_file_content | ✅ Success | 1ms |
37
+ | 4:42:21 PM | 1 | get_file_modification_times | ✅ Success | 0ms |
38
+ | 4:42:21 PM | 1 | group_files_by_concern | ✅ Success | 0ms |
39
+ | 4:42:21 PM | 1 | get_recent_commits | ✅ Success | 17ms |
40
+ | 4:42:23 PM | 2 | get_file_history | ✅ Success | 11ms |
41
+
42
+ ## Conversation History
43
+
44
+ <details>
45
+ <summary>Click to expand full agentic interaction</summary>
46
+
47
+ ```json
48
+ [
49
+ {
50
+ "role": "system",
51
+ "content": "You are a professional software engineer writing commit messages for your team.\n\n## Available Tools\n\nYou have access to tools to investigate the changes:\n- `get_file_content` - Read file contents or diffs for specific files\n- `get_file_modification_times` - See when files were modified relative to each other\n- `group_files_by_concern` - Understand how files relate by type/purpose\n- `get_recent_commits` - Get recent commit history to avoid duplicates\n- `get_file_history` - Understand how code evolved\n- `get_file_dependencies` - Assess impact of changes\n- `get_related_tests` - Find related test files\n- `search_codebase` - Search for usage patterns\n\nUse these tools to investigate the changes rather than asking for information upfront.\n\n## Your Task\n\nAnalyze the staged changes and determine the best way to commit them. Your primary goal is to create **meaningful, atomic commits** that each represent a single logical change.\n\n**CRITICAL**: When there are many changed files, especially after a long work session (multiple hours), you should almost always split them into multiple commits. A single commit with 10+ files usually indicates multiple distinct changes that should be separated.\n\nThink about:\n- What distinct features, fixes, or improvements are represented?\n- Are there natural groupings by functionality, module, or purpose?\n- When were files modified relative to each other?\n- What should reviewers focus on in each commit?\n\n## Investigation Strategy\n\nFor any non-trivial set of changes, gather multiple signals to understand how to group commits:\n\n1. **Check file modification times** using `get_file_modification_times`\n - This reveals *when* files were changed relative to each other\n - Files modified close together *may* be part of the same logical change\n - Large temporal gaps *can* indicate separate work sessions\n - Note: temporal proximity is one signal, not a guarantee of relatedness\n\n2. **Understand logical relationships** using `group_files_by_concern`\n - Groups by module, type (tests, docs, source), and directory structure\n - Reveals which files are functionally related regardless of when they were modified\n\n3. **Cross-reference both signals** to make informed decisions:\n - Files modified together AND logically related → strong candidate for same commit\n - Files modified apart BUT logically related → might still belong together\n - Files modified together BUT logically unrelated → consider splitting\n - Use your judgment - neither signal is definitive on its own\n\n4. **Investigate further** as needed:\n - get_file_content - see full context when diffs are unclear\n - get_file_history - understand how code evolved\n - get_file_dependencies - assess impact of changes\n - get_recent_commits - avoid duplicate messages\n - get_related_tests - understand behavior changes\n - search_codebase - find usage patterns\n\n## When to Split Commits\n\n**Prefer multiple commits when:**\n- Changes span multiple hours of work (check modification times!)\n- Different logical features or fixes are included\n- Test changes could be separated from production code changes\n- Documentation updates are unrelated to code changes\n- Refactoring is mixed with feature work\n- Configuration changes are mixed with implementation changes\n- Files in different modules/packages are changed for different reasons\n\n**Keep as one commit when:**\n- All changes are part of a single, cohesive feature\n- Files were modified together in a focused work session\n- Test changes directly test the production code changes\n- The changes tell a single coherent story\n\n**Default bias**: When in doubt about whether to split, **prefer splitting**. It's better to have too many focused commits than too few bloated ones. A good commit should be understandable and reviewable in isolation.\n\n## Important Context Guidelines\n\nIf additional context is provided (from context files or other sources), use your judgment:\n- If the context is relevant to these specific changes, incorporate it\n- If the context describes unrelated changes or other packages, ignore it\n- Don't force connections between unrelated information\n- Focus on accurately describing what actually changed\n\n## Writing Style\n\nWrite naturally and directly:\n- Use plain language, not corporate speak\n- Be specific and concrete\n- Avoid buzzwords and jargon\n- No emojis or excessive punctuation\n- No phrases like \"this commit\" or \"this PR\"\n- No meta-commentary about the commit itself\n\nFollow conventional commit format when appropriate (feat:, fix:, refactor:, docs:, test:, chore:), but prioritize clarity over formality.\n\n## Output Format\n\nWhen ready, format your response as:\n\nCOMMIT_MESSAGE:\n[Your commit message here - only for the FIRST group of changes if splitting]\n\nIf changes should be split into multiple commits (which is often the case with large changesets):\n\nSUGGESTED_SPLITS:\nSplit 1:\nFiles: [list of files]\nRationale: [why these belong together - mention temporal clustering and/or logical relationship]\nMessage: [commit message for this split]\n\nSplit 2:\nFiles: [list of files]\nRationale: [why these belong together]\nMessage: [commit message for this split]\n\nSplit 3:\n...\n\nOutput only the commit message and splits. No conversational remarks or follow-up offers."
52
+ },
53
+ {
54
+ "role": "user",
55
+ "content": "I have staged changes that need a commit message.\n\nChanged files (1):\n - package.json\n\n## Your Analysis Task\n\nUse your tools to investigate the changes:\n1. Use `get_file_content` to read the actual changes in the files\n2. Use `get_file_modification_times` to see when files were modified relative to each other\n3. Use `group_files_by_concern` to understand how files relate by type/purpose\n4. Use `get_recent_commits` to check recent commit history and avoid duplicates\n5. Cross-reference temporal proximity and logical relatedness to determine the best commit structure\n\nConsider:\n- What distinct features, fixes, or improvements are included?\n- Are files that were modified together also logically related?\n- Would separate commits make the history more understandable?\n\nIf changes represent multiple logical concerns, suggest splits.\n\nStart by reading the file contents to understand what actually changed."
56
+ },
57
+ {
58
+ "role": "assistant",
59
+ "content": null,
60
+ "tool_calls": [
61
+ {
62
+ "id": "call_7dDIqOZQOicQTMKE22gPRMvy",
63
+ "type": "function",
64
+ "function": {
65
+ "name": "get_file_content",
66
+ "arguments": "{\"filePath\": \"package.json\", \"includeLineNumbers\": false}"
67
+ }
68
+ },
69
+ {
70
+ "id": "call_xgrHM9PDb0OWNDaXyTtJeQLl",
71
+ "type": "function",
72
+ "function": {
73
+ "name": "get_file_modification_times",
74
+ "arguments": "{\"filePaths\": [\"package.json\"]}"
75
+ }
76
+ },
77
+ {
78
+ "id": "call_rVjJs6iuTNS9FjzjulojAY3p",
79
+ "type": "function",
80
+ "function": {
81
+ "name": "group_files_by_concern",
82
+ "arguments": "{\"filePaths\": [\"package.json\"]}"
83
+ }
84
+ },
85
+ {
86
+ "id": "call_bOiB1Af1NXEb1AyPSFhtCJRX",
87
+ "type": "function",
88
+ "function": {
89
+ "name": "get_recent_commits",
90
+ "arguments": "{\"filePaths\": [\"package.json\"], \"since\": \"1 week ago\", \"limit\": 5}"
91
+ }
92
+ }
93
+ ]
94
+ },
95
+ {
96
+ "role": "tool",
97
+ "tool_call_id": "call_7dDIqOZQOicQTMKE22gPRMvy",
98
+ "content": "{\n \"name\": \"@riotprompt/agentic\",\n \"version\": \"1.0.4\",\n \"_versionReset\": \"2026-01-15\",\n \"description\": \"Shared agentic framework for multi-turn AI conversations and tool orchestration\",\n \"type\": \"module\",\n \"main\": \"./dist/index.js\",\n \"types\": \"./dist/index.d.ts\",\n \"exports\": {\n \".\": {\n \"types\": \"./dist/index.d.ts\",\n \"import\": \"./dist/index.js\"\n }\n },\n \"engines\": {\n \"node\": \">=24.0.0\"\n },\n \"scripts\": {\n \"clean\": \"rm -rf dist\",\n \"build\": \"vite build\",\n \"test\": \"vitest run --coverage\",\n \"test:coverage\": \"vitest run --coverage\",\n \"lint\": \"eslint src\",\n \"precommit\": \"npm run build && npm run lint && npm run test\",\n \"prepublishOnly\": \"npm run clean && npm run build\"\n },\n \"keywords\": [\n \"agentic\",\n \"ai\",\n \"llm\",\n \"conversation\",\n \"tools\",\n \"multi-turn\",\n \"orchestration\"\n ],\n \"author\": \"Tim O'Brien <tobrien@discursive.com>\",\n \"license\": \"Apache-2.0\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/kjerneverk/agentic\"\n },\n \"dependencies\": {\n \"@fjell/logging\": \"^4.4.68\",\n \"zod\": \"^4.3.6\"\n },\n \"devDependencies\": {\n \"@types/node\": \"^25.0.6\",\n \"@typescript-eslint/eslint-plugin\": \"^8.33.1\",\n \"@typescript-eslint/parser\": \"^8.33.1\",\n \"@vitest/coverage-v8\": \"^4.0.16\",\n \"ajv\": \"^8.17.1\",\n \"eslint\": \"^9.28.0\",\n \"globals\": \"^17.0.0\",\n \"typescript\": \"^5.8.3\",\n \"vite\": \"^7.0.4\",\n \"vite-plugin-dts\": \"^4.5.4\",\n \"vitest\": \"^4.0.16\"\n }\n}\n",
99
+ "name": "get_file_content"
100
+ },
101
+ {
102
+ "role": "tool",
103
+ "tool_call_id": "call_xgrHM9PDb0OWNDaXyTtJeQLl",
104
+ "content": "## File Modification Times (sorted oldest to newest)\n\n2026-01-31 00:42:18 package.json\n\n\n## Temporal Clusters (files modified within 10 minutes of each other)\n\nAll 1 files were modified in a single work session.\n",
105
+ "name": "get_file_modification_times"
106
+ },
107
+ {
108
+ "role": "tool",
109
+ "tool_call_id": "call_rVjJs6iuTNS9FjzjulojAY3p",
110
+ "content": "dependencies (1 files):\n - package.json\n\nSuggestion: All files appear to be related and should be in a single commit.",
111
+ "name": "group_files_by_concern"
112
+ },
113
+ {
114
+ "role": "tool",
115
+ "tool_call_id": "call_bOiB1Af1NXEb1AyPSFhtCJRX",
116
+ "content": "314ab9a - chore(package): update package metadata/dependencies (Tim O'Brien, 3 minutes ago)\n2a297b8 - chore: bump to 1.0.4-dev.0 (Tim O'Brien, 2 days ago)\n2be3cbb - chore: bump to 1.0.3-dev.0 (Tim O'Brien, 2 days ago)\nedddcf9 - fix: add ajv@^8 as explicit devDependency to resolve vite-plugin-dts conflict (#11) (Tim O'Brien, 2 days ago)\n15269f3 - fix: add ajv override to resolve dependency conflict (#10) (Tim O'Brien, 2 days ago)\n",
117
+ "name": "get_recent_commits"
118
+ },
119
+ {
120
+ "role": "assistant",
121
+ "content": null,
122
+ "tool_calls": [
123
+ {
124
+ "id": "call_2qAeaJyTrTQ05zbkRoMfIQ1g",
125
+ "type": "function",
126
+ "function": {
127
+ "name": "get_file_history",
128
+ "arguments": "{\"filePaths\":[\"package.json\"],\"limit\":5,\"format\":\"detailed\"}"
129
+ }
130
+ }
131
+ ]
132
+ },
133
+ {
134
+ "role": "tool",
135
+ "tool_call_id": "call_2qAeaJyTrTQ05zbkRoMfIQ1g",
136
+ "content": "314ab9ac2c2205f7d5abfa8de0c9703724633d78\nTim O'Brien (tobrien@discursive.com)\nFri Jan 30 16:39:00 2026 -0800\nchore(package): update package metadata/dependencies\n\n\n---\n2a297b84f3d2b32cbcff30ba26ef6d5e9c0eb247\nTim O'Brien (tobrien@discursive.com)\nWed Jan 28 09:46:59 2026 -0800\nchore: bump to 1.0.4-dev.0\n\n\n---\n2be3cbb001e381f7e76c93d62edcaccd2a16b283\nTim O'Brien (tobrien@discursive.com)\nWed Jan 28 09:20:27 2026 -0800\nchore: bump to 1.0.3-dev.0\n\n\n---\nedddcf9c207f774aced76a3449b0c9ee61a12dcb\nTim O'Brien (tobrien@discursive.com)\nWed Jan 28 09:14:38 2026 -0800\nfix: add ajv@^8 as explicit devDependency to resolve vite-plugin-dts conflict (#11)\n\n* chore: bump to 1.0.2-dev.0\n\n* fix: add ajv@^8 as explicit devDependency to resolve vite-plugin-dts conflict\n---\n15269f3ba079b97e869a68eb664acf12cdff8bf3\nTim O'Brien (tobrien@discursive.com)\nWed Jan 28 09:05:02 2026 -0800\nfix: add ajv override to resolve dependency conflict (#10)\n\n* chore: bump to 1.0.0-dev.0\n\n* chore(gitignore): ignore output/ and kodrdriv-generated files\n\n* Updating versions\n\n* fix: add ajv override to resolve dependency conflict\n\n* fix: use targeted ajv override for vite-plugin-dts only\n---\n",
137
+ "name": "get_file_history"
138
+ },
139
+ {
140
+ "role": "assistant",
141
+ "content": "COMMIT_MESSAGE:\nchore(package): bump version to 1.0.4"
142
+ }
143
+ ]
144
+ ```
145
+
146
+ </details>
147
+
148
+ ## Generated Commit Message
149
+
150
+ ```
151
+ chore(package): bump version to 1.0.4
152
+ ```