@launch11/srgical 0.0.4 → 0.0.6
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/CHANGELOG.md +11 -0
- package/README.md +28 -7
- package/dist/commands/about.js +32 -0
- package/dist/commands/changelog.js +29 -0
- package/dist/commands/doctor.js +60 -13
- package/dist/commands/init.js +10 -6
- package/dist/commands/run-next.js +41 -8
- package/dist/commands/studio.js +2 -2
- package/dist/commands/version.js +25 -0
- package/dist/core/agent.js +19 -19
- package/dist/core/augment.js +7 -7
- package/dist/core/auto-run-state.js +89 -0
- package/dist/core/auto-run.js +270 -0
- package/dist/core/claude.js +7 -7
- package/dist/core/codex.js +7 -7
- package/dist/core/execution-state.js +5 -5
- package/dist/core/local-pack.js +9 -6
- package/dist/core/package-info.js +61 -0
- package/dist/core/planning-epochs.js +10 -3
- package/dist/core/planning-pack-state.js +121 -9
- package/dist/core/planning-state.js +61 -0
- package/dist/core/prompts.js +4 -4
- package/dist/core/studio-session.js +14 -14
- package/dist/core/templates.js +13 -10
- package/dist/core/workspace.js +127 -8
- package/dist/index.js +48 -17
- package/dist/postinstall.js +37 -0
- package/dist/ui/studio.js +329 -193
- package/package.json +4 -1
- package/postinstall.js +14 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.runPostinstall = runPostinstall;
|
|
7
|
+
exports.renderPostinstallMessage = renderPostinstallMessage;
|
|
8
|
+
exports.shouldRenderPostinstallMessage = shouldRenderPostinstallMessage;
|
|
9
|
+
const node_process_1 = __importDefault(require("node:process"));
|
|
10
|
+
const package_info_1 = require("./core/package-info");
|
|
11
|
+
if (require.main === module) {
|
|
12
|
+
runPostinstall();
|
|
13
|
+
}
|
|
14
|
+
function runPostinstall() {
|
|
15
|
+
if (shouldRenderPostinstallMessage(node_process_1.default.env, node_process_1.default.stdout.isTTY === true)) {
|
|
16
|
+
node_process_1.default.stdout.write(`${renderPostinstallMessage()}\n`);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
function renderPostinstallMessage() {
|
|
20
|
+
const info = (0, package_info_1.readInstalledPackageInfo)();
|
|
21
|
+
return [
|
|
22
|
+
"",
|
|
23
|
+
`srgical ${info.version} is ready.`,
|
|
24
|
+
info.releaseNotesUrl ? `Release notes: ${info.releaseNotesUrl}` : null,
|
|
25
|
+
"Start here: srgical doctor",
|
|
26
|
+
"More: srgical about",
|
|
27
|
+
""
|
|
28
|
+
]
|
|
29
|
+
.filter(Boolean)
|
|
30
|
+
.join("\n");
|
|
31
|
+
}
|
|
32
|
+
function shouldRenderPostinstallMessage(env, isTTY) {
|
|
33
|
+
const globalInstall = env.npm_config_global === "true" || env.npm_config_location === "global";
|
|
34
|
+
const logLevel = (env.npm_config_loglevel ?? "").toLowerCase();
|
|
35
|
+
const quietLogLevel = logLevel === "silent" || logLevel === "error";
|
|
36
|
+
return globalInstall && isTTY && env.CI !== "true" && !quietLogLevel;
|
|
37
|
+
}
|