@gluecharm-lab/easyspecs-cli 0.0.25 → 0.0.26
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/README.md +1 -1
- package/commands.md +1 -1
- package/dist/main.cjs +6 -3
- package/dist/main.cjs.map +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -247,7 +247,7 @@ Every command the CLI accepts, with command-specific tokens. Global flags above
|
|
|
247
247
|
| ------- | ------------------------------- | ------------------ |
|
|
248
248
|
| `help` or first token `--help` | — | Prints usage (same as **`--help`** before the command). |
|
|
249
249
|
| `version` | — | Prints the CLI package version string. |
|
|
250
|
-
| `doctor` | **`--readiness`**, **`--inspect-config`** (optional; default if none → readiness-style check) | Does **not** create **`config.json`**. **`--readiness`**: repo root, API URL, OpenCode, agents dir. **`--inspect-config`**: redacted merged settings + config JSON. Both flags together runs both. |
|
|
250
|
+
| `doctor` | **`--readiness`**, **`--inspect-config`** (optional; default if none → readiness-style check) | Does **not** create **`config.json`**. **`--readiness`**: **`cliVersion=`** (same as **`version`**), repo root, API URL, OpenCode, agents dir; **`--json`** adds **`cliVersion`** on the envelope. **`--inspect-config`**: redacted merged settings + config JSON. Both flags together runs both. |
|
|
251
251
|
| `config init` | **`--overwrite`** (optional) | Writes **`.easyspecs/config.json`** with defaults; may import legacy **`.easyspecs/cli.json`** once if present. Existing file unchanged unless **`--overwrite`**. |
|
|
252
252
|
| `config set-project-id <easyspecsProjectId>` | — | Sets **`easyspecs.easyspecsProjectId`** (creates config with defaults if missing). |
|
|
253
253
|
| `config set-git-remote <url>` | — | Sets **`easyspecs.defaultGitRemoteUrl`** (same bootstrap-if-missing behaviour). |
|
package/commands.md
CHANGED
|
@@ -158,7 +158,7 @@ Each row lists **command-specific CLI tokens**, then **what configuration applie
|
|
|
158
158
|
| ---------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
159
159
|
| `help`, `--help` | — | Global options only; prints usage. |
|
|
160
160
|
| `version` | — | Prints `[PKG_VERSION](../../src/cli/main.ts)` from the bundle. |
|
|
161
|
-
| `doctor` | Optional `**--readiness`**, `**--inspect-config**` | **Does not** create `config.json`. Default (no flags) = `**--readiness`**: repo root, resolved API URL, OpenCode installed/credentials, agents dir. `**--inspect-config**` alone: redacted `**merged**` + `**easyspecsConfig
|
|
161
|
+
| `doctor` | Optional `**--readiness`**, `**--inspect-config**` | **Does not** create `config.json`. Default (no flags) = `**--readiness`**: first line `**cliVersion=**` (same as **`version`** / **`--version`**), then repo root, resolved API URL, OpenCode installed/credentials, agents dir. With **`--json`**, readiness adds top-level **`cliVersion`** (string) plus **`lines`**. `**--inspect-config**` alone: redacted `**merged**` + `**easyspecsConfig**` (no **`cliVersion`** line). `**--readiness --inspect-config**`: both. Global flags apply (`**--cwd**`, `**--ci**`, `**--api-base-url**`, `**--session-path**`, `**--environment**`, `**--promote**` / `**--no-promote**`). |
|
|
162
162
|
| `config init` | Optional `**--overwrite**` | Creates `**<repo>/.easyspecs/config.json**` with full defaults if missing; imports legacy `**cli.json**` / `**settings.json**` (ACE) when present, same as first-time bootstrap. If the file already exists, does nothing unless `**--overwrite**` (replaces with that bootstrap content). Does not run other commands. |
|
|
163
163
|
| `config set-project-id <id>` | — | Writes `**easyspecs.easyspecsProjectId**` to `**config.json**`, replacing any previous value. Creates `**config.json**` (defaults + legacy import) if missing. |
|
|
164
164
|
| `config set-git-remote <url>` | — | Writes `**easyspecs.defaultGitRemoteUrl**` to `**config.json**`, replacing any previous value. Same bootstrap-if-missing behaviour as `**set-project-id**`. |
|
package/dist/main.cjs
CHANGED
|
@@ -20320,8 +20320,9 @@ function nextAdaptiveMaxAfterCpuSample(p) {
|
|
|
20320
20320
|
if (p.activeRunningCount < 1 || !Number.isFinite(p.ratio) || p.ratio <= threshold) {
|
|
20321
20321
|
return { adaptiveMax: p.priorAdaptiveMax, changed: false };
|
|
20322
20322
|
}
|
|
20323
|
-
const
|
|
20324
|
-
const
|
|
20323
|
+
const stepDown = Math.max(1, p.priorAdaptiveMax - 1);
|
|
20324
|
+
const backpressure = p.activeRunningCount <= 1 ? stepDown : Math.max(1, p.activeRunningCount - 1);
|
|
20325
|
+
const next = Math.min(p.priorAdaptiveMax, stepDown, backpressure);
|
|
20325
20326
|
if (next < p.priorAdaptiveMax) {
|
|
20326
20327
|
return { adaptiveMax: next, changed: true };
|
|
20327
20328
|
}
|
|
@@ -28090,7 +28091,7 @@ function formatCliStderrLine(line, useAnsi) {
|
|
|
28090
28091
|
}
|
|
28091
28092
|
|
|
28092
28093
|
// src/cli/main.ts
|
|
28093
|
-
var PKG_VERSION = "0.0.
|
|
28094
|
+
var PKG_VERSION = "0.0.26";
|
|
28094
28095
|
function isNonEmptyFactoryFailureArray(x) {
|
|
28095
28096
|
if (!Array.isArray(x) || x.length === 0) {
|
|
28096
28097
|
return false;
|
|
@@ -28568,6 +28569,7 @@ async function main() {
|
|
|
28568
28569
|
providerEnvFromConfig: merged.openCodeChildEnv
|
|
28569
28570
|
});
|
|
28570
28571
|
const lines = [
|
|
28572
|
+
`cliVersion=${PKG_VERSION}`,
|
|
28571
28573
|
`repoRoot=${repoRoot}`,
|
|
28572
28574
|
`apiBaseUrl=${apiResolved || "(empty \u2014 stub auth only)"}`,
|
|
28573
28575
|
`opencode installed=${String(oc.installed)} credentialsReady=${String(oc.credentialsReady)}`,
|
|
@@ -28587,6 +28589,7 @@ async function main() {
|
|
|
28587
28589
|
const envelope = { ok: true };
|
|
28588
28590
|
if (modes.readiness) {
|
|
28589
28591
|
envelope.lines = lines;
|
|
28592
|
+
envelope.cliVersion = PKG_VERSION;
|
|
28590
28593
|
}
|
|
28591
28594
|
if (modes.inspectConfig) {
|
|
28592
28595
|
envelope.config = inspectPayload;
|