mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-09 08:59:40 +02:00
style: drop em-dashes from new comments
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -59,7 +59,7 @@ export function buildEffortCliArgs(effort?: EffortLevel): string[] {
|
|||||||
* and the flag's presence at exactly this version was verified against the installed
|
* and the flag's presence at exactly this version was verified against the installed
|
||||||
* binary (`2.1.224 --help` lists `-n, --name`). The gate MUST stay fail-closed: an
|
* binary (`2.1.224 --help` lists `-n, --name`). The gate MUST stay fail-closed: an
|
||||||
* older or unknown CLI aborts startup on an unknown flag ("error: unknown option"),
|
* older or unknown CLI aborts startup on an unknown flag ("error: unknown option"),
|
||||||
* which would kill every session spawn — so no version means no flag, and the
|
* which would kill every session spawn: so no version means no flag, and the
|
||||||
* command line stays byte-identical to the pre-`--name` one.
|
* command line stays byte-identical to the pre-`--name` one.
|
||||||
*/
|
*/
|
||||||
export const CLAUDE_NAME_FLAG_MIN_VERSION = '2.1.224';
|
export const CLAUDE_NAME_FLAG_MIN_VERSION = '2.1.224';
|
||||||
@@ -71,7 +71,7 @@ export const CLAUDE_NAME_FLAG_MIN_VERSION = '2.1.224';
|
|||||||
* special inside the double-quoted shell interpolation buildSpawnCommand uses
|
* special inside the double-quoted shell interpolation buildSpawnCommand uses
|
||||||
* (`"`, `$`, backslash, backtick) as well as newlines. Leading dashes/punctuation
|
* (`"`, `$`, backslash, backtick) as well as newlines. Leading dashes/punctuation
|
||||||
* are stripped so the value can never be parsed as another CLI option, and the
|
* are stripped so the value can never be parsed as another CLI option, and the
|
||||||
* result is capped at 64 chars. Returns undefined when nothing safe remains —
|
* result is capped at 64 chars. Returns undefined when nothing safe remains;
|
||||||
* callers must then omit the flag entirely (never send `--name ""`).
|
* callers must then omit the flag entirely (never send `--name ""`).
|
||||||
*/
|
*/
|
||||||
export function sanitizeCliSessionName(name?: string): string | undefined {
|
export function sanitizeCliSessionName(name?: string): string | undefined {
|
||||||
|
|||||||
+1
-1
@@ -785,7 +785,7 @@ export function buildSpawnCommand(options: {
|
|||||||
* Claude CLI version for the `--name` gate. Omitted = probe the local CLI
|
* Claude CLI version for the `--name` gate. Omitted = probe the local CLI
|
||||||
* (getClaudeCliVersion; null under vitest). Tests inject a value here; the
|
* (getClaudeCliVersion; null under vitest). Tests inject a value here; the
|
||||||
* docker/remote paths never see this builder's output, which is what keeps the
|
* docker/remote paths never see this builder's output, which is what keeps the
|
||||||
* gate measuring the RIGHT binary — the local one.
|
* gate measuring the RIGHT binary, the local one.
|
||||||
*/
|
*/
|
||||||
claudeCliVersion?: string | null;
|
claudeCliVersion?: string | null;
|
||||||
}): string {
|
}): string {
|
||||||
|
|||||||
Reference in New Issue
Block a user