You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3874862
Browse filesBrowse the repository at this point in the historyBrowse files
fix(flag): apply the documented-name rule on every read path, not only Flag.*
The first cut aliased only the opencode `Flag` namespace. Skill discovery does
not read that: `skill/index.ts` takes `RuntimeFlags.disableExternalSkills`, an
Effect `Config` resolved through the ambient ConfigProvider, and `config.ts`
reads `packages/core`'s `Flag` object — so `ALTIMATE_CLI_DISABLE_EXTERNAL_SKILLS`
still scanned external skills and `ALTIMATE_CLI_CONFIG` still did nothing.
(cubic on #1341)
- One definition of the rule, in core `flag/flag.ts`: `documentedAlias`, `env`
(documented name first, empty counts as unset), `truthy`/`numberEnv` and every
direct `process.env["OPENCODE_*"]` read go through it; the two Effect `Config`
flags it carries resolve the documented name via `Config.orElse`
- `effect/config-service.ts` wraps whatever ConfigProvider is active so
`RuntimeFlags` and `ServerAuthConfig` try the documented spelling first —
built with `ConfigProvider.make`, since `orElse`'s fallback bypasses `mapInput`
- opencode `flag.ts` imports the rule instead of its own copy; `altTruthy` /
`altEnv` let a set documented value win outright, so a documented `false` is
not overridden by a fallback `true`
- `config.ts` (`OPENCODE_CONFIG_CONTENT`) and `run --attach`
(`OPENCODE_SERVER_PASSWORD` / `_USERNAME`) read through `env` instead of
`process.env` directly
- Tests: RuntimeFlags and ServerAuthConfig through a `fromEnv` provider
(documented alone, documented `false` vs fallback `true`, empty documented,
numeric); the core `Flag` object in a subprocess (config paths, `altTruthy`
precedence, the Effect `Config` flag)
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012Q51zFUmPg1WwtS5CrGJE6
// oxlint-disable-next-line typescript-eslint/no-unsafe-type-assertion -- Config.all preserves the field shape, but its conditional return type also supports iterable inputs.
57
72
returntag.of(configasShape<Fields>)
58
73
}),
@@ -65,3 +80,18 @@ export const Service =
65
80
}
66
81
67
82
export*asConfigServicefrom"./config-service"
83
+
84
+
// altimate_change start — see `defaultLayer`
85
+
/** A provider that tries the documented `ALTIMATE_CLI_*` spelling of an `OPENCODE_*` path
86
+
* first and falls back to the path as written. An empty documented value counts as unset. */
0 commit comments