@trenchwork/erosolar 1.1.41 → 1.1.43
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 +16 -21
- package/README.md +236 -236
- package/agents/erosolar-code.rules.json +199 -199
- package/dist/bin/erosolar.js +0 -0
- package/dist/capabilities/enhancedGitCapability.js +63 -63
- package/dist/config.js +12 -12
- 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/core/constants.js +7 -7
- package/dist/core/contextManager.js +16 -16
- package/dist/core/hitl.d.ts.map +1 -1
- package/dist/core/hitl.js +17 -16
- package/dist/core/hitl.js.map +1 -1
- package/dist/core/permissionMode.d.ts +40 -0
- package/dist/core/permissionMode.d.ts.map +1 -0
- package/dist/core/permissionMode.js +86 -0
- package/dist/core/permissionMode.js.map +1 -0
- package/dist/core/secretStore.js +1 -1
- package/dist/core/taskCompletionDetector.js +17 -17
- package/dist/core/toolRuntime.d.ts.map +1 -1
- package/dist/core/toolRuntime.js +21 -2
- package/dist/core/toolRuntime.js.map +1 -1
- package/dist/headless/interactiveShell.d.ts +7 -5
- package/dist/headless/interactiveShell.d.ts.map +1 -1
- package/dist/headless/interactiveShell.js +105 -167
- package/dist/headless/interactiveShell.js.map +1 -1
- package/dist/leanAgent.js +38 -38
- package/dist/runtime/agentSession.js +4 -4
- package/dist/shell/commandRegistry.js +6 -6
- package/dist/shell/commandRegistry.js.map +1 -1
- package/dist/shell/toolPresentation.d.ts +47 -0
- package/dist/shell/toolPresentation.d.ts.map +1 -0
- package/dist/shell/toolPresentation.js +260 -0
- package/dist/shell/toolPresentation.js.map +1 -0
- package/dist/shell/vimMode.js +29 -29
- package/dist/tools/bashTools.js +2 -2
- package/dist/tools/bashTools.js.map +1 -1
- package/dist/tools/hitlTools.js +18 -18
- package/dist/tools/webTools.d.ts.map +1 -1
- package/dist/tools/webTools.js +75 -3
- package/dist/tools/webTools.js.map +1 -1
- package/dist/ui/ink/App.d.ts +2 -0
- package/dist/ui/ink/App.d.ts.map +1 -1
- package/dist/ui/ink/App.js +2 -2
- package/dist/ui/ink/App.js.map +1 -1
- package/dist/ui/ink/ChatStatic.d.ts +6 -5
- package/dist/ui/ink/ChatStatic.d.ts.map +1 -1
- package/dist/ui/ink/ChatStatic.js +35 -10
- package/dist/ui/ink/ChatStatic.js.map +1 -1
- package/dist/ui/ink/InkPromptController.d.ts +11 -0
- package/dist/ui/ink/InkPromptController.d.ts.map +1 -1
- package/dist/ui/ink/InkPromptController.js +50 -11
- package/dist/ui/ink/InkPromptController.js.map +1 -1
- package/dist/ui/ink/Prompt.d.ts +2 -0
- package/dist/ui/ink/Prompt.d.ts.map +1 -1
- package/dist/ui/ink/Prompt.js +31 -2
- package/dist/ui/ink/Prompt.js.map +1 -1
- package/dist/ui/ink/StatusLine.d.ts +16 -8
- package/dist/ui/ink/StatusLine.d.ts.map +1 -1
- package/dist/ui/ink/StatusLine.js +45 -4
- package/dist/ui/ink/StatusLine.js.map +1 -1
- package/dist/ui/theme.d.ts.map +1 -1
- package/dist/ui/theme.js +4 -6
- package/dist/ui/theme.js.map +1 -1
- package/package.json +116 -116
- package/scripts/postinstall.cjs +57 -57
package/scripts/postinstall.cjs
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Postinstall:
|
|
4
|
-
* 1. chmod the bin entrypoints so they're executable on POSIX (no-op on Windows).
|
|
5
|
-
* 2. On Windows, print a friendly one-time notice about PowerShell execution
|
|
6
|
-
* policy and the canonical command forms so users don't get blocked the
|
|
7
|
-
* first time they type `erosolar` in PowerShell.
|
|
8
|
-
*
|
|
9
|
-
* Errors are intentionally swallowed: a postinstall must never fail an
|
|
10
|
-
* `npm install` for a non-essential courtesy step.
|
|
11
|
-
*/
|
|
12
|
-
'use strict';
|
|
13
|
-
|
|
14
|
-
const fs = require('fs');
|
|
15
|
-
const os = require('os');
|
|
16
|
-
const path = require('path');
|
|
17
|
-
|
|
18
|
-
const BINS = [
|
|
19
|
-
'dist/bin/deepseek.js',
|
|
20
|
-
'dist/bin/erosolar.js',
|
|
21
|
-
];
|
|
22
|
-
|
|
23
|
-
for (const rel of BINS) {
|
|
24
|
-
try {
|
|
25
|
-
fs.chmodSync(path.resolve(__dirname, '..', rel), 0o755);
|
|
26
|
-
} catch {
|
|
27
|
-
// Missing files (clean tree pre-build) and Windows chmod no-ops both land here.
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
if (process.platform === 'win32' && !process.env['EROSOLAR_QUIET_POSTINSTALL']) {
|
|
32
|
-
// Single, scannable message — no banners, no marketing. Users see this once
|
|
33
|
-
// per global install and can move on.
|
|
34
|
-
const lines = [
|
|
35
|
-
'',
|
|
36
|
-
'[36mErosolar Coder[0m installed. Two notes for Windows:',
|
|
37
|
-
'',
|
|
38
|
-
' [2m• Commands available on PATH:[0m erosolar · erosolar-coder · deepseek',
|
|
39
|
-
' These work in [1mCommand Prompt[0m and [1mPowerShell[0m via the .cmd shims',
|
|
40
|
-
' npm installs automatically.',
|
|
41
|
-
'',
|
|
42
|
-
' [2m• If PowerShell says "running scripts is disabled on this system",[0m',
|
|
43
|
-
' run this [2m(once, no admin needed)[0m and reopen the shell:',
|
|
44
|
-
'',
|
|
45
|
-
' [33mSet-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser[0m',
|
|
46
|
-
'',
|
|
47
|
-
' Or invoke the .cmd shim directly: [33merosolar.cmd[0m',
|
|
48
|
-
'',
|
|
49
|
-
];
|
|
50
|
-
// Use stderr so the notice is visible even when npm is captured to stdout
|
|
51
|
-
// by automation. The notice is short and bounded.
|
|
52
|
-
try {
|
|
53
|
-
process.stderr.write(lines.join(os.EOL) + os.EOL);
|
|
54
|
-
} catch {
|
|
55
|
-
// Even the notice itself is non-essential.
|
|
56
|
-
}
|
|
57
|
-
}
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Postinstall:
|
|
4
|
+
* 1. chmod the bin entrypoints so they're executable on POSIX (no-op on Windows).
|
|
5
|
+
* 2. On Windows, print a friendly one-time notice about PowerShell execution
|
|
6
|
+
* policy and the canonical command forms so users don't get blocked the
|
|
7
|
+
* first time they type `erosolar` in PowerShell.
|
|
8
|
+
*
|
|
9
|
+
* Errors are intentionally swallowed: a postinstall must never fail an
|
|
10
|
+
* `npm install` for a non-essential courtesy step.
|
|
11
|
+
*/
|
|
12
|
+
'use strict';
|
|
13
|
+
|
|
14
|
+
const fs = require('fs');
|
|
15
|
+
const os = require('os');
|
|
16
|
+
const path = require('path');
|
|
17
|
+
|
|
18
|
+
const BINS = [
|
|
19
|
+
'dist/bin/deepseek.js',
|
|
20
|
+
'dist/bin/erosolar.js',
|
|
21
|
+
];
|
|
22
|
+
|
|
23
|
+
for (const rel of BINS) {
|
|
24
|
+
try {
|
|
25
|
+
fs.chmodSync(path.resolve(__dirname, '..', rel), 0o755);
|
|
26
|
+
} catch {
|
|
27
|
+
// Missing files (clean tree pre-build) and Windows chmod no-ops both land here.
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if (process.platform === 'win32' && !process.env['EROSOLAR_QUIET_POSTINSTALL']) {
|
|
32
|
+
// Single, scannable message — no banners, no marketing. Users see this once
|
|
33
|
+
// per global install and can move on.
|
|
34
|
+
const lines = [
|
|
35
|
+
'',
|
|
36
|
+
'[36mErosolar Coder[0m installed. Two notes for Windows:',
|
|
37
|
+
'',
|
|
38
|
+
' [2m• Commands available on PATH:[0m erosolar · erosolar-coder · deepseek',
|
|
39
|
+
' These work in [1mCommand Prompt[0m and [1mPowerShell[0m via the .cmd shims',
|
|
40
|
+
' npm installs automatically.',
|
|
41
|
+
'',
|
|
42
|
+
' [2m• If PowerShell says "running scripts is disabled on this system",[0m',
|
|
43
|
+
' run this [2m(once, no admin needed)[0m and reopen the shell:',
|
|
44
|
+
'',
|
|
45
|
+
' [33mSet-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser[0m',
|
|
46
|
+
'',
|
|
47
|
+
' Or invoke the .cmd shim directly: [33merosolar.cmd[0m',
|
|
48
|
+
'',
|
|
49
|
+
];
|
|
50
|
+
// Use stderr so the notice is visible even when npm is captured to stdout
|
|
51
|
+
// by automation. The notice is short and bounded.
|
|
52
|
+
try {
|
|
53
|
+
process.stderr.write(lines.join(os.EOL) + os.EOL);
|
|
54
|
+
} catch {
|
|
55
|
+
// Even the notice itself is non-essential.
|
|
56
|
+
}
|
|
57
|
+
}
|