@pugi/cli 0.1.0-beta.95 → 0.1.0-beta.97
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/dist/core/engine/tool-bridge.js +60 -0
- package/dist/core/permissions/tool-class.js +14 -0
- package/dist/core/repl/engine-bridge.js +104 -0
- package/dist/core/repl/session.js +65 -7
- package/dist/runtime/cli.js +27 -42
- package/dist/runtime/engine-exit-code.js +50 -0
- package/dist/runtime/version.js +1 -1
- package/dist/tools/http-request.js +336 -0
- package/dist/tools/registry.js +21 -1
- package/dist/tools/server-tools.js +892 -0
- package/dist/tui/repl-render.js +10 -0
- package/package.json +2 -2
package/dist/tui/repl-render.js
CHANGED
|
@@ -28,6 +28,7 @@ import { resolveTheme } from '../core/theme/state.js';
|
|
|
28
28
|
import { ReplSession, } from '../core/repl/session.js';
|
|
29
29
|
import { resolveWorkspaceContext } from '../core/repl/workspace-context.js';
|
|
30
30
|
import { createEngineBridge } from '../core/repl/engine-bridge.js';
|
|
31
|
+
import { profileFor, resolveIntensity } from '../core/engine/intensity.js';
|
|
31
32
|
import { SqliteSessionStore } from '../core/repl/store/index.js';
|
|
32
33
|
import { slugForCwd } from '../core/repl/history.js';
|
|
33
34
|
import { loadSettings } from '../core/settings.js';
|
|
@@ -162,12 +163,21 @@ export async function renderRepl(options) {
|
|
|
162
163
|
// the same UX as a pre-PUGI-538c CLI build.
|
|
163
164
|
let engineBridge;
|
|
164
165
|
try {
|
|
166
|
+
// PR A (2026-06-05): resolve intensity profile once at bridge
|
|
167
|
+
// construction time. The bridge stays pure and re-uses the resolved
|
|
168
|
+
// profile across every routed brief. `resolveIntensity` reads env
|
|
169
|
+
// (`PUGI_INTENSITY`) и settings.json; the REPL launch lifecycle is
|
|
170
|
+
// the natural binding point. A future `/intensity` REPL command
|
|
171
|
+
// will rebuild the bridge to swap the profile mid-session.
|
|
172
|
+
const intensityLevel = resolveIntensity({});
|
|
173
|
+
const intensityProfile = profileFor(intensityLevel);
|
|
165
174
|
engineBridge = createEngineBridge({
|
|
166
175
|
config: buildRuntimeConfig({
|
|
167
176
|
apiUrl: options.apiUrl,
|
|
168
177
|
apiKey: options.apiKey,
|
|
169
178
|
}),
|
|
170
179
|
cwd: () => process.cwd(),
|
|
180
|
+
intensityProfile,
|
|
171
181
|
});
|
|
172
182
|
}
|
|
173
183
|
catch (err) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pugi/cli",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.97",
|
|
4
4
|
"description": "Pugi CLI - terminal-native software execution system",
|
|
5
5
|
"homepage": "https://pugi.io",
|
|
6
6
|
"repository": {
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"which": "^6.0.0",
|
|
64
64
|
"zod": "^3.23.0",
|
|
65
65
|
"@pugi/personas": "0.1.2",
|
|
66
|
-
"@pugi/sdk": "0.1.0-beta.
|
|
66
|
+
"@pugi/sdk": "0.1.0-beta.97"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@types/node": "^22.0.0",
|