@trenchwork/erosolar 1.1.40 → 1.1.41
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/LICENSE +21 -21
- package/README.md +236 -225
- package/agents/erosolar-code.rules.json +199 -199
- package/dist/bin/deepseek.js +18 -198
- package/dist/bin/deepseek.js.map +1 -1
- package/dist/bin/erosolar.js +0 -0
- package/dist/capabilities/enhancedGitCapability.js +63 -63
- package/dist/config.js +12 -12
- package/dist/contracts/agent-profiles.schema.json +5 -23
- package/dist/contracts/agent-schemas.json +31 -343
- package/dist/contracts/models.schema.json +9 -9
- package/dist/contracts/module-schema.json +367 -367
- package/dist/contracts/schemas/agent-profile.schema.json +157 -157
- package/dist/contracts/schemas/agent-rules.schema.json +238 -238
- package/dist/contracts/schemas/agent-schemas.schema.json +528 -528
- package/dist/contracts/schemas/agent.schema.json +90 -90
- package/dist/contracts/schemas/tool-selection.schema.json +174 -174
- package/dist/contracts/tools.schema.json +42 -42
- package/dist/contracts/unified-schema.json +8 -628
- package/dist/core/constants.js +7 -7
- package/dist/core/contextManager.js +16 -16
- package/dist/core/modelDiscovery.d.ts +0 -3
- package/dist/core/modelDiscovery.d.ts.map +1 -1
- package/dist/core/modelDiscovery.js +3 -355
- package/dist/core/modelDiscovery.js.map +1 -1
- package/dist/core/quotaErrors.d.ts +42 -0
- package/dist/core/quotaErrors.d.ts.map +1 -0
- package/dist/core/quotaErrors.js +88 -0
- package/dist/core/quotaErrors.js.map +1 -0
- package/dist/core/secretStore.d.ts.map +1 -1
- package/dist/core/secretStore.js +1 -14
- package/dist/core/secretStore.js.map +1 -1
- package/dist/core/taskCompletionDetector.js +17 -17
- package/dist/headless/interactiveShell.d.ts.map +1 -1
- package/dist/headless/interactiveShell.js +7 -58
- package/dist/headless/interactiveShell.js.map +1 -1
- package/dist/leanAgent.js +38 -38
- package/dist/plugins/providers/deepseek/index.d.ts +1 -0
- package/dist/plugins/providers/deepseek/index.d.ts.map +1 -1
- package/dist/plugins/providers/deepseek/index.js +65 -4
- package/dist/plugins/providers/deepseek/index.js.map +1 -1
- package/dist/plugins/providers/index.d.ts.map +1 -1
- package/dist/plugins/providers/index.js +0 -7
- package/dist/plugins/providers/index.js.map +1 -1
- package/dist/providers/openaiChatCompletionsProvider.js +7 -30
- package/dist/providers/openaiChatCompletionsProvider.js.map +1 -1
- package/dist/providers/resilientProvider.d.ts.map +1 -1
- package/dist/providers/resilientProvider.js +0 -31
- package/dist/providers/resilientProvider.js.map +1 -1
- package/dist/runtime/agentSession.js +4 -4
- package/dist/shell/vimMode.js +29 -29
- package/dist/tools/hitlTools.js +18 -18
- package/dist/tools/webTools.d.ts.map +1 -1
- package/dist/tools/webTools.js +10 -0
- package/dist/tools/webTools.js.map +1 -1
- package/package.json +116 -123
- package/scripts/postinstall.cjs +57 -58
- package/dist/bin/cliMode.d.ts +0 -8
- package/dist/bin/cliMode.d.ts.map +0 -1
- package/dist/bin/cliMode.js +0 -20
- package/dist/bin/cliMode.js.map +0 -1
- package/dist/bin/selfTest.d.ts +0 -14
- package/dist/bin/selfTest.d.ts.map +0 -1
- package/dist/bin/selfTest.js +0 -298
- package/dist/bin/selfTest.js.map +0 -1
- package/dist/headless/printMode.d.ts +0 -17
- package/dist/headless/printMode.d.ts.map +0 -1
- package/dist/headless/printMode.js +0 -40
- package/dist/headless/printMode.js.map +0 -1
- package/dist/plugins/providers/anthropic/index.d.ts +0 -9
- package/dist/plugins/providers/anthropic/index.d.ts.map +0 -1
- package/dist/plugins/providers/anthropic/index.js +0 -48
- package/dist/plugins/providers/anthropic/index.js.map +0 -1
- package/dist/plugins/providers/openai/index.d.ts +0 -10
- package/dist/plugins/providers/openai/index.d.ts.map +0 -1
- package/dist/plugins/providers/openai/index.js +0 -47
- package/dist/plugins/providers/openai/index.js.map +0 -1
- package/dist/plugins/providers/xai/index.d.ts +0 -10
- package/dist/plugins/providers/xai/index.d.ts.map +0 -1
- package/dist/plugins/providers/xai/index.js +0 -47
- package/dist/plugins/providers/xai/index.js.map +0 -1
package/dist/bin/deepseek.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deepseek.js","sourceRoot":"","sources":["../../src/bin/deepseek.ts"],"names":[],"mappings":";AACA
|
|
1
|
+
{"version":3,"file":"deepseek.js","sourceRoot":"","sources":["../../src/bin/deepseek.ts"],"names":[],"mappings":";AACA;;;;;;;;;GASG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAE9C,KAAK,CAAC,aAAa,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,CAAC;AAElF,IAAI,OAAO,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC;IACrD,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,GAAG,CAAC;AACjE,CAAC;AAED,MAAM,EAAE,mBAAmB,EAAE,GAAG,MAAM,MAAM,CAAC,iCAAiC,CAAC,CAAC;AAChF,mBAAmB,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IAChD,iBAAiB,CAAC,KAAK,CAAC,CAAC;IACzB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
package/dist/bin/erosolar.js
CHANGED
|
File without changes
|
|
@@ -13,39 +13,39 @@ export class EnhancedGitCapabilityModule {
|
|
|
13
13
|
tools: [
|
|
14
14
|
{
|
|
15
15
|
name: 'git_smart_commit',
|
|
16
|
-
description: `Create intelligent git commits following best practices.
|
|
17
|
-
|
|
18
|
-
IMPORTANT: Only create commits when requested by the user. If unclear, ask first.
|
|
19
|
-
|
|
20
|
-
Git Safety Protocol:
|
|
21
|
-
- NEVER update the git config
|
|
22
|
-
- NEVER run destructive/irreversible git commands (like push --force, hard reset, etc) unless the user explicitly requests them
|
|
23
|
-
- NEVER skip hooks (--no-verify, --no-gpg-sign, etc) unless the user explicitly requests it
|
|
24
|
-
- NEVER run force push to main/master, warn the user if they request it
|
|
25
|
-
- Avoid git commit --amend. ONLY use --amend when either (1) user explicitly requested amend OR (2) adding edits from pre-commit hook
|
|
26
|
-
- Before amending: ALWAYS check authorship (git log -1 --format='%an %ae')
|
|
27
|
-
- NEVER commit changes unless the user explicitly asks you to
|
|
28
|
-
|
|
29
|
-
When creating commits:
|
|
30
|
-
1. Run git status and git diff to see all changes
|
|
31
|
-
2. Run git log to see recent commit message style
|
|
32
|
-
3. Analyze changes and draft commit message
|
|
33
|
-
4. Add relevant untracked files to staging area
|
|
34
|
-
5. Create commit with proper message format
|
|
35
|
-
|
|
36
|
-
Commit message format:
|
|
37
|
-
<subject line>
|
|
38
|
-
|
|
39
|
-
<body explaining the changes>
|
|
40
|
-
|
|
41
|
-
🤖 Generated with [AGI-CLI](https://github.com/agi-cli)
|
|
42
|
-
|
|
43
|
-
Co-Authored-By: Claude <noreply@anthropic.com>
|
|
44
|
-
|
|
45
|
-
Important notes:
|
|
46
|
-
- DO NOT push to remote unless explicitly requested
|
|
47
|
-
- NEVER use -i flag (interactive mode not supported)
|
|
48
|
-
- If no changes, do not create empty commit
|
|
16
|
+
description: `Create intelligent git commits following best practices.
|
|
17
|
+
|
|
18
|
+
IMPORTANT: Only create commits when requested by the user. If unclear, ask first.
|
|
19
|
+
|
|
20
|
+
Git Safety Protocol:
|
|
21
|
+
- NEVER update the git config
|
|
22
|
+
- NEVER run destructive/irreversible git commands (like push --force, hard reset, etc) unless the user explicitly requests them
|
|
23
|
+
- NEVER skip hooks (--no-verify, --no-gpg-sign, etc) unless the user explicitly requests it
|
|
24
|
+
- NEVER run force push to main/master, warn the user if they request it
|
|
25
|
+
- Avoid git commit --amend. ONLY use --amend when either (1) user explicitly requested amend OR (2) adding edits from pre-commit hook
|
|
26
|
+
- Before amending: ALWAYS check authorship (git log -1 --format='%an %ae')
|
|
27
|
+
- NEVER commit changes unless the user explicitly asks you to
|
|
28
|
+
|
|
29
|
+
When creating commits:
|
|
30
|
+
1. Run git status and git diff to see all changes
|
|
31
|
+
2. Run git log to see recent commit message style
|
|
32
|
+
3. Analyze changes and draft commit message
|
|
33
|
+
4. Add relevant untracked files to staging area
|
|
34
|
+
5. Create commit with proper message format
|
|
35
|
+
|
|
36
|
+
Commit message format:
|
|
37
|
+
<subject line>
|
|
38
|
+
|
|
39
|
+
<body explaining the changes>
|
|
40
|
+
|
|
41
|
+
🤖 Generated with [AGI-CLI](https://github.com/agi-cli)
|
|
42
|
+
|
|
43
|
+
Co-Authored-By: Claude <noreply@anthropic.com>
|
|
44
|
+
|
|
45
|
+
Important notes:
|
|
46
|
+
- DO NOT push to remote unless explicitly requested
|
|
47
|
+
- NEVER use -i flag (interactive mode not supported)
|
|
48
|
+
- If no changes, do not create empty commit
|
|
49
49
|
- Always use HEREDOC for commit messages`,
|
|
50
50
|
parameters: {
|
|
51
51
|
type: 'object',
|
|
@@ -88,9 +88,9 @@ Important notes:
|
|
|
88
88
|
// Build commit message
|
|
89
89
|
const fullMessage = this.buildCommitMessage(message, body);
|
|
90
90
|
// Create commit
|
|
91
|
-
const commitCommand = `git commit -m "$(cat <<'EOF'
|
|
92
|
-
${fullMessage}
|
|
93
|
-
EOF
|
|
91
|
+
const commitCommand = `git commit -m "$(cat <<'EOF'
|
|
92
|
+
${fullMessage}
|
|
93
|
+
EOF
|
|
94
94
|
)"`;
|
|
95
95
|
const { stdout, stderr } = await execAsync(commitCommand, {
|
|
96
96
|
cwd: context.workingDir,
|
|
@@ -105,30 +105,30 @@ EOF
|
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
107
|
name: 'git_create_pr',
|
|
108
|
-
description: `Create a pull request using gh CLI.
|
|
109
|
-
|
|
110
|
-
IMPORTANT: Only create PR when requested by the user.
|
|
111
|
-
|
|
112
|
-
Steps for creating PR:
|
|
113
|
-
1. Run git status, git diff, and git log to understand current branch state
|
|
114
|
-
2. Check if branch tracks remote and is up to date
|
|
115
|
-
3. Analyze all commits that will be included in PR
|
|
116
|
-
4. Draft PR summary (not just latest commit, but ALL commits)
|
|
117
|
-
5. Create branch if needed, push with -u flag if needed
|
|
118
|
-
6. Create PR using gh pr create with proper format
|
|
119
|
-
|
|
120
|
-
PR body format:
|
|
121
|
-
## Summary
|
|
122
|
-
<1-3 bullet points>
|
|
123
|
-
|
|
124
|
-
## Test plan
|
|
125
|
-
[Bulleted markdown checklist of TODOs for testing the pull request...]
|
|
126
|
-
|
|
127
|
-
🤖 Generated with [AGI-CLI](https://github.com/agi-cli)
|
|
128
|
-
|
|
129
|
-
Important:
|
|
130
|
-
- Return the PR URL when done
|
|
131
|
-
- Do not use TodoWrite or Task tools
|
|
108
|
+
description: `Create a pull request using gh CLI.
|
|
109
|
+
|
|
110
|
+
IMPORTANT: Only create PR when requested by the user.
|
|
111
|
+
|
|
112
|
+
Steps for creating PR:
|
|
113
|
+
1. Run git status, git diff, and git log to understand current branch state
|
|
114
|
+
2. Check if branch tracks remote and is up to date
|
|
115
|
+
3. Analyze all commits that will be included in PR
|
|
116
|
+
4. Draft PR summary (not just latest commit, but ALL commits)
|
|
117
|
+
5. Create branch if needed, push with -u flag if needed
|
|
118
|
+
6. Create PR using gh pr create with proper format
|
|
119
|
+
|
|
120
|
+
PR body format:
|
|
121
|
+
## Summary
|
|
122
|
+
<1-3 bullet points>
|
|
123
|
+
|
|
124
|
+
## Test plan
|
|
125
|
+
[Bulleted markdown checklist of TODOs for testing the pull request...]
|
|
126
|
+
|
|
127
|
+
🤖 Generated with [AGI-CLI](https://github.com/agi-cli)
|
|
128
|
+
|
|
129
|
+
Important:
|
|
130
|
+
- Return the PR URL when done
|
|
131
|
+
- Do not use TodoWrite or Task tools
|
|
132
132
|
- Analyze ALL commits, not just the latest one`,
|
|
133
133
|
parameters: {
|
|
134
134
|
type: 'object',
|
|
@@ -187,9 +187,9 @@ Important:
|
|
|
187
187
|
}
|
|
188
188
|
// Create PR using heredoc
|
|
189
189
|
const draftFlag = draft ? '--draft' : '';
|
|
190
|
-
const prCommand = `gh pr create ${draftFlag} --base "${base}" --title "${title}" --body "$(cat <<'EOF'
|
|
191
|
-
${body}
|
|
192
|
-
EOF
|
|
190
|
+
const prCommand = `gh pr create ${draftFlag} --base "${base}" --title "${title}" --body "$(cat <<'EOF'
|
|
191
|
+
${body}
|
|
192
|
+
EOF
|
|
193
193
|
)"`;
|
|
194
194
|
const { stdout } = await execAsync(prCommand, { cwd: context.workingDir });
|
|
195
195
|
return `Pull request created successfully:\n\n${stdout}`;
|
package/dist/config.js
CHANGED
|
@@ -19,18 +19,18 @@ function ultracodeEnabled() {
|
|
|
19
19
|
// build-the-whole-thing working style in as the default; scoped so trivial
|
|
20
20
|
// turns stay direct (no orchestration spree). Gated by the same flag that
|
|
21
21
|
// gates the behavior, per the capability-separation rule.
|
|
22
|
-
const ULTRACODE_DIRECTIVE = `## Operating mode: ultracode
|
|
23
|
-
|
|
24
|
-
For substantial, multi-step work, optimize for the most complete and correct result — not the fastest. Work in explicit phases and don't skip them:
|
|
25
|
-
|
|
26
|
-
1. Research — read the relevant code/files first; answer "does this already exist?" from the source, not memory.
|
|
27
|
-
2. Verify load-bearing facts — before relying on a date, an API contract, a version, or any external claim, confirm it (run a probe, read the doc, test it). Label anything still unverified instead of asserting it.
|
|
28
|
-
3. Design — state the approach and trade-offs before writing significant new code; prefer mature libraries over custom infrastructure.
|
|
29
|
-
4. Build the complete, genuinely useful thing — not a stub, mock, or demo. Match the surrounding code's conventions and avoid unrequested bloat.
|
|
30
|
-
5. Verify the result — run the build and tests against the real artifact, and adversarially try to refute your own output before reporting it done.
|
|
31
|
-
|
|
32
|
-
Use parallel sub-agents to cover breadth (independent searches, multi-file audits, or N independent attempts judged against each other) when the task is wider than a single pass.
|
|
33
|
-
|
|
22
|
+
const ULTRACODE_DIRECTIVE = `## Operating mode: ultracode
|
|
23
|
+
|
|
24
|
+
For substantial, multi-step work, optimize for the most complete and correct result — not the fastest. Work in explicit phases and don't skip them:
|
|
25
|
+
|
|
26
|
+
1. Research — read the relevant code/files first; answer "does this already exist?" from the source, not memory.
|
|
27
|
+
2. Verify load-bearing facts — before relying on a date, an API contract, a version, or any external claim, confirm it (run a probe, read the doc, test it). Label anything still unverified instead of asserting it.
|
|
28
|
+
3. Design — state the approach and trade-offs before writing significant new code; prefer mature libraries over custom infrastructure.
|
|
29
|
+
4. Build the complete, genuinely useful thing — not a stub, mock, or demo. Match the surrounding code's conventions and avoid unrequested bloat.
|
|
30
|
+
5. Verify the result — run the build and tests against the real artifact, and adversarially try to refute your own output before reporting it done.
|
|
31
|
+
|
|
32
|
+
Use parallel sub-agents to cover breadth (independent searches, multi-file audits, or N independent attempts judged against each other) when the task is wider than a single pass.
|
|
33
|
+
|
|
34
34
|
Scope: this applies to substantial tasks. For a greeting, a quick question, or a trivial one-line edit, answer directly — do not orchestrate, spawn agents, or over-engineer trivial turns.`;
|
|
35
35
|
const PACKAGE_ROOT = resolve(dirname(fileURLToPath(import.meta.url)), '..');
|
|
36
36
|
const PROFILE_MANIFEST = getAgentProfileManifest();
|
|
@@ -2,33 +2,15 @@
|
|
|
2
2
|
"$schema": "./schemas/agent-profile.schema.json",
|
|
3
3
|
"contractVersion": "1.0.0",
|
|
4
4
|
"version": "2024-11-24",
|
|
5
|
-
"label": "
|
|
5
|
+
"label": "Erosolar CLI profile manifest",
|
|
6
6
|
"description": "Default profile definitions shipped with the CLI, including provider defaults and rulebook bindings.",
|
|
7
7
|
"profiles": [
|
|
8
|
-
{
|
|
9
|
-
"name": "general",
|
|
10
|
-
"label": "AGI",
|
|
11
|
-
"description": "General-purpose operator with advanced reasoning across research, planning, writing, and coding tasks.",
|
|
12
|
-
"defaultProvider": "anthropic",
|
|
13
|
-
"defaultModel": "claude-sonnet-4-20250514",
|
|
14
|
-
"temperature": 0.2,
|
|
15
|
-
"systemPrompt": {
|
|
16
|
-
"type": "rulebook",
|
|
17
|
-
"template": "{{rulebook}}"
|
|
18
|
-
},
|
|
19
|
-
"rulebook": {
|
|
20
|
-
"file": "agents/general.rules.json",
|
|
21
|
-
"version": "2024-11-24",
|
|
22
|
-
"contractVersion": "1.0.0",
|
|
23
|
-
"description": "Structured rules governing the balanced AGI profile."
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
8
|
{
|
|
27
9
|
"name": "erosolar-code",
|
|
28
|
-
"label": "
|
|
29
|
-
"description": "
|
|
30
|
-
"defaultProvider": "
|
|
31
|
-
"defaultModel": "
|
|
10
|
+
"label": "Erosolar Code",
|
|
11
|
+
"description": "DeepSeek-powered coding specialist with advanced reasoning capabilities on max thought.",
|
|
12
|
+
"defaultProvider": "deepseek",
|
|
13
|
+
"defaultModel": "deepseek-v4-pro",
|
|
32
14
|
"systemPrompt": {
|
|
33
15
|
"type": "rulebook"
|
|
34
16
|
},
|