@trenchwork/erosolar 1.1.41 → 1.1.42

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 (72) hide show
  1. package/LICENSE +16 -21
  2. package/README.md +236 -236
  3. package/agents/erosolar-code.rules.json +199 -199
  4. package/dist/bin/erosolar.js +0 -0
  5. package/dist/capabilities/enhancedGitCapability.js +63 -63
  6. package/dist/config.js +12 -12
  7. package/dist/contracts/models.schema.json +9 -9
  8. package/dist/contracts/module-schema.json +367 -367
  9. package/dist/contracts/schemas/agent-profile.schema.json +157 -157
  10. package/dist/contracts/schemas/agent-rules.schema.json +238 -238
  11. package/dist/contracts/schemas/agent-schemas.schema.json +528 -528
  12. package/dist/contracts/schemas/agent.schema.json +90 -90
  13. package/dist/contracts/schemas/tool-selection.schema.json +174 -174
  14. package/dist/contracts/tools.schema.json +42 -42
  15. package/dist/core/constants.js +7 -7
  16. package/dist/core/contextManager.js +16 -16
  17. package/dist/core/hitl.d.ts.map +1 -1
  18. package/dist/core/hitl.js +17 -16
  19. package/dist/core/hitl.js.map +1 -1
  20. package/dist/core/permissionMode.d.ts +40 -0
  21. package/dist/core/permissionMode.d.ts.map +1 -0
  22. package/dist/core/permissionMode.js +86 -0
  23. package/dist/core/permissionMode.js.map +1 -0
  24. package/dist/core/secretStore.js +1 -1
  25. package/dist/core/taskCompletionDetector.js +17 -17
  26. package/dist/core/toolRuntime.d.ts.map +1 -1
  27. package/dist/core/toolRuntime.js +21 -2
  28. package/dist/core/toolRuntime.js.map +1 -1
  29. package/dist/headless/interactiveShell.d.ts +7 -5
  30. package/dist/headless/interactiveShell.d.ts.map +1 -1
  31. package/dist/headless/interactiveShell.js +92 -159
  32. package/dist/headless/interactiveShell.js.map +1 -1
  33. package/dist/leanAgent.js +38 -38
  34. package/dist/runtime/agentSession.js +4 -4
  35. package/dist/shell/commandRegistry.js +6 -6
  36. package/dist/shell/commandRegistry.js.map +1 -1
  37. package/dist/shell/toolPresentation.d.ts +47 -0
  38. package/dist/shell/toolPresentation.d.ts.map +1 -0
  39. package/dist/shell/toolPresentation.js +260 -0
  40. package/dist/shell/toolPresentation.js.map +1 -0
  41. package/dist/shell/vimMode.js +29 -29
  42. package/dist/tools/bashTools.js +2 -2
  43. package/dist/tools/bashTools.js.map +1 -1
  44. package/dist/tools/hitlTools.js +18 -18
  45. package/dist/tools/webTools.d.ts.map +1 -1
  46. package/dist/tools/webTools.js +75 -3
  47. package/dist/tools/webTools.js.map +1 -1
  48. package/dist/ui/ink/App.d.ts +2 -0
  49. package/dist/ui/ink/App.d.ts.map +1 -1
  50. package/dist/ui/ink/App.js +2 -2
  51. package/dist/ui/ink/App.js.map +1 -1
  52. package/dist/ui/ink/ChatStatic.d.ts +6 -5
  53. package/dist/ui/ink/ChatStatic.d.ts.map +1 -1
  54. package/dist/ui/ink/ChatStatic.js +35 -10
  55. package/dist/ui/ink/ChatStatic.js.map +1 -1
  56. package/dist/ui/ink/InkPromptController.d.ts +11 -0
  57. package/dist/ui/ink/InkPromptController.d.ts.map +1 -1
  58. package/dist/ui/ink/InkPromptController.js +50 -11
  59. package/dist/ui/ink/InkPromptController.js.map +1 -1
  60. package/dist/ui/ink/Prompt.d.ts +2 -0
  61. package/dist/ui/ink/Prompt.d.ts.map +1 -1
  62. package/dist/ui/ink/Prompt.js +8 -2
  63. package/dist/ui/ink/Prompt.js.map +1 -1
  64. package/dist/ui/ink/StatusLine.d.ts +16 -8
  65. package/dist/ui/ink/StatusLine.d.ts.map +1 -1
  66. package/dist/ui/ink/StatusLine.js +45 -4
  67. package/dist/ui/ink/StatusLine.js.map +1 -1
  68. package/dist/ui/theme.d.ts.map +1 -1
  69. package/dist/ui/theme.js +4 -6
  70. package/dist/ui/theme.js.map +1 -1
  71. package/package.json +116 -116
  72. package/scripts/postinstall.cjs +57 -57
@@ -1,157 +1,157 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "Agent Profile Manifest v1.0",
4
- "description": "Schema describing agent profiles, their default providers/models, and how system prompts are constructed.",
5
- "type": "object",
6
- "required": ["contractVersion", "version", "profiles"],
7
- "properties": {
8
- "contractVersion": {
9
- "type": "string",
10
- "description": "Version of the profile manifest contract the payload implements."
11
- },
12
- "version": {
13
- "type": "string",
14
- "description": "Semantic or date-based version identifier for the manifest."
15
- },
16
- "label": {
17
- "type": "string",
18
- "description": "Optional display label for the manifest."
19
- },
20
- "description": {
21
- "type": "string",
22
- "description": "Optional description for operators."
23
- },
24
- "profiles": {
25
- "type": "array",
26
- "minItems": 1,
27
- "items": {
28
- "$ref": "#/definitions/ProfileEntry"
29
- }
30
- },
31
- "metadata": {
32
- "type": "object",
33
- "description": "Implementation specific metadata."
34
- }
35
- },
36
- "definitions": {
37
- "ProfileEntry": {
38
- "type": "object",
39
- "required": ["name", "label", "defaultProvider", "defaultModel", "systemPrompt", "rulebook"],
40
- "properties": {
41
- "name": {
42
- "type": "string",
43
- "description": "Stable identifier for the agent profile."
44
- },
45
- "label": {
46
- "type": "string",
47
- "description": "Human readable profile label."
48
- },
49
- "description": {
50
- "type": "string",
51
- "description": "Optional description rendered in UIs."
52
- },
53
- "defaultProvider": {
54
- "type": "string",
55
- "description": "Provider identifier the profile defaults to."
56
- },
57
- "defaultModel": {
58
- "type": "string",
59
- "description": "Default model identifier for the profile."
60
- },
61
- "temperature": {
62
- "type": "number",
63
- "description": "Optional default temperature."
64
- },
65
- "maxTokens": {
66
- "type": "integer",
67
- "minimum": 1,
68
- "description": "Optional default max token count."
69
- },
70
- "systemPrompt": {
71
- "$ref": "#/definitions/PromptConfig"
72
- },
73
- "rulebook": {
74
- "$ref": "#/definitions/RulebookReference"
75
- },
76
- "metadata": {
77
- "type": "object",
78
- "description": "Implementation specific metadata."
79
- }
80
- },
81
- "additionalProperties": false
82
- },
83
- "PromptConfig": {
84
- "oneOf": [
85
- {
86
- "$ref": "#/definitions/RulebookPromptConfig"
87
- },
88
- {
89
- "$ref": "#/definitions/LiteralPromptConfig"
90
- }
91
- ]
92
- },
93
- "RulebookPromptConfig": {
94
- "type": "object",
95
- "required": ["type"],
96
- "properties": {
97
- "type": {
98
- "const": "rulebook"
99
- },
100
- "template": {
101
- "type": "string",
102
- "description": "Optional template with placeholders like {{rulebook}}."
103
- },
104
- "metadata": {
105
- "type": "object",
106
- "description": "Implementation specific metadata."
107
- }
108
- },
109
- "additionalProperties": false
110
- },
111
- "LiteralPromptConfig": {
112
- "type": "object",
113
- "required": ["type", "content"],
114
- "properties": {
115
- "type": {
116
- "const": "literal"
117
- },
118
- "content": {
119
- "type": "string",
120
- "description": "Static system prompt to use verbatim."
121
- },
122
- "metadata": {
123
- "type": "object",
124
- "description": "Implementation specific metadata."
125
- }
126
- },
127
- "additionalProperties": false
128
- },
129
- "RulebookReference": {
130
- "type": "object",
131
- "required": ["file"],
132
- "properties": {
133
- "file": {
134
- "type": "string",
135
- "description": "Relative path to the rulebook JSON file."
136
- },
137
- "version": {
138
- "type": "string",
139
- "description": "Optional human readable version of the rulebook."
140
- },
141
- "contractVersion": {
142
- "type": "string",
143
- "description": "Optional contract version for the referenced rulebook."
144
- },
145
- "description": {
146
- "type": "string",
147
- "description": "Summary of what the rulebook enforces."
148
- },
149
- "metadata": {
150
- "type": "object",
151
- "description": "Implementation specific metadata."
152
- }
153
- },
154
- "additionalProperties": false
155
- }
156
- }
157
- }
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "Agent Profile Manifest v1.0",
4
+ "description": "Schema describing agent profiles, their default providers/models, and how system prompts are constructed.",
5
+ "type": "object",
6
+ "required": ["contractVersion", "version", "profiles"],
7
+ "properties": {
8
+ "contractVersion": {
9
+ "type": "string",
10
+ "description": "Version of the profile manifest contract the payload implements."
11
+ },
12
+ "version": {
13
+ "type": "string",
14
+ "description": "Semantic or date-based version identifier for the manifest."
15
+ },
16
+ "label": {
17
+ "type": "string",
18
+ "description": "Optional display label for the manifest."
19
+ },
20
+ "description": {
21
+ "type": "string",
22
+ "description": "Optional description for operators."
23
+ },
24
+ "profiles": {
25
+ "type": "array",
26
+ "minItems": 1,
27
+ "items": {
28
+ "$ref": "#/definitions/ProfileEntry"
29
+ }
30
+ },
31
+ "metadata": {
32
+ "type": "object",
33
+ "description": "Implementation specific metadata."
34
+ }
35
+ },
36
+ "definitions": {
37
+ "ProfileEntry": {
38
+ "type": "object",
39
+ "required": ["name", "label", "defaultProvider", "defaultModel", "systemPrompt", "rulebook"],
40
+ "properties": {
41
+ "name": {
42
+ "type": "string",
43
+ "description": "Stable identifier for the agent profile."
44
+ },
45
+ "label": {
46
+ "type": "string",
47
+ "description": "Human readable profile label."
48
+ },
49
+ "description": {
50
+ "type": "string",
51
+ "description": "Optional description rendered in UIs."
52
+ },
53
+ "defaultProvider": {
54
+ "type": "string",
55
+ "description": "Provider identifier the profile defaults to."
56
+ },
57
+ "defaultModel": {
58
+ "type": "string",
59
+ "description": "Default model identifier for the profile."
60
+ },
61
+ "temperature": {
62
+ "type": "number",
63
+ "description": "Optional default temperature."
64
+ },
65
+ "maxTokens": {
66
+ "type": "integer",
67
+ "minimum": 1,
68
+ "description": "Optional default max token count."
69
+ },
70
+ "systemPrompt": {
71
+ "$ref": "#/definitions/PromptConfig"
72
+ },
73
+ "rulebook": {
74
+ "$ref": "#/definitions/RulebookReference"
75
+ },
76
+ "metadata": {
77
+ "type": "object",
78
+ "description": "Implementation specific metadata."
79
+ }
80
+ },
81
+ "additionalProperties": false
82
+ },
83
+ "PromptConfig": {
84
+ "oneOf": [
85
+ {
86
+ "$ref": "#/definitions/RulebookPromptConfig"
87
+ },
88
+ {
89
+ "$ref": "#/definitions/LiteralPromptConfig"
90
+ }
91
+ ]
92
+ },
93
+ "RulebookPromptConfig": {
94
+ "type": "object",
95
+ "required": ["type"],
96
+ "properties": {
97
+ "type": {
98
+ "const": "rulebook"
99
+ },
100
+ "template": {
101
+ "type": "string",
102
+ "description": "Optional template with placeholders like {{rulebook}}."
103
+ },
104
+ "metadata": {
105
+ "type": "object",
106
+ "description": "Implementation specific metadata."
107
+ }
108
+ },
109
+ "additionalProperties": false
110
+ },
111
+ "LiteralPromptConfig": {
112
+ "type": "object",
113
+ "required": ["type", "content"],
114
+ "properties": {
115
+ "type": {
116
+ "const": "literal"
117
+ },
118
+ "content": {
119
+ "type": "string",
120
+ "description": "Static system prompt to use verbatim."
121
+ },
122
+ "metadata": {
123
+ "type": "object",
124
+ "description": "Implementation specific metadata."
125
+ }
126
+ },
127
+ "additionalProperties": false
128
+ },
129
+ "RulebookReference": {
130
+ "type": "object",
131
+ "required": ["file"],
132
+ "properties": {
133
+ "file": {
134
+ "type": "string",
135
+ "description": "Relative path to the rulebook JSON file."
136
+ },
137
+ "version": {
138
+ "type": "string",
139
+ "description": "Optional human readable version of the rulebook."
140
+ },
141
+ "contractVersion": {
142
+ "type": "string",
143
+ "description": "Optional contract version for the referenced rulebook."
144
+ },
145
+ "description": {
146
+ "type": "string",
147
+ "description": "Summary of what the rulebook enforces."
148
+ },
149
+ "metadata": {
150
+ "type": "object",
151
+ "description": "Implementation specific metadata."
152
+ }
153
+ },
154
+ "additionalProperties": false
155
+ }
156
+ }
157
+ }