@osfactory/har 0.13.0 → 0.13.1
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/index.js +21 -33
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -23367,7 +23367,7 @@ async function handleAgentSkills(options) {
|
|
|
23367
23367
|
const { repoPath, mode } = options;
|
|
23368
23368
|
if (options.enabled === false) return false;
|
|
23369
23369
|
let targets;
|
|
23370
|
-
if (options.agents
|
|
23370
|
+
if (typeof options.agents === "string") {
|
|
23371
23371
|
targets = parseAgentTargets(options.agents);
|
|
23372
23372
|
} else {
|
|
23373
23373
|
targets = detectAgentTargets(repoPath);
|
|
@@ -31109,19 +31109,14 @@ var envCommand = {
|
|
|
31109
31109
|
describe: "Auto-apply AGENT.md proposal without prompting (--auto only)"
|
|
31110
31110
|
}).option("cursor-rule", {
|
|
31111
31111
|
type: "boolean",
|
|
31112
|
-
default: false
|
|
31113
|
-
|
|
31114
|
-
|
|
31115
|
-
type: "boolean",
|
|
31116
|
-
default: false,
|
|
31117
|
-
describe: "Skip Cursor rule scaffolding"
|
|
31112
|
+
// No default: unset → prompt/auto-detect; --cursor-rule → true; --no-cursor-rule → false
|
|
31113
|
+
// (do not declare a separate --no-cursor-rule option — yargs negation owns that.)
|
|
31114
|
+
describe: "Create .cursor/rules/har-workflow.mdc without prompting (use --no-cursor-rule to skip)"
|
|
31118
31115
|
}).option("agents", {
|
|
31119
31116
|
type: "string",
|
|
31120
|
-
|
|
31121
|
-
|
|
31122
|
-
|
|
31123
|
-
default: false,
|
|
31124
|
-
describe: "Skip agent skills scaffolding"
|
|
31117
|
+
// --no-agents is yargs negation of this string option (sets agents=false). Do not
|
|
31118
|
+
// declare a separate --no-agents boolean — it collides and crashes parseAgentTargets.
|
|
31119
|
+
describe: "Scaffold agent skills for these targets (comma-separated: claude,cursor,codex); auto-detected when omitted; --no-agents to skip"
|
|
31125
31120
|
}),
|
|
31126
31121
|
handleInit
|
|
31127
31122
|
).command(
|
|
@@ -31140,19 +31135,11 @@ var envCommand = {
|
|
|
31140
31135
|
describe: "Adaptation summary to store in the manifest (--finalize only)"
|
|
31141
31136
|
}).option("cursor-rule", {
|
|
31142
31137
|
type: "boolean",
|
|
31143
|
-
default: false
|
|
31144
|
-
describe: "Create .cursor/rules/har-workflow.mdc without prompting"
|
|
31145
|
-
}).option("no-cursor-rule", {
|
|
31146
|
-
type: "boolean",
|
|
31147
|
-
default: false,
|
|
31148
|
-
describe: "Skip Cursor rule scaffolding"
|
|
31138
|
+
// No default: unset → prompt/auto-detect; --cursor-rule → true; --no-cursor-rule → false
|
|
31139
|
+
describe: "Create .cursor/rules/har-workflow.mdc without prompting (use --no-cursor-rule to skip)"
|
|
31149
31140
|
}).option("agents", {
|
|
31150
31141
|
type: "string",
|
|
31151
|
-
describe: "Scaffold agent skills for these targets (comma-separated: claude,cursor,codex); auto-detected when omitted"
|
|
31152
|
-
}).option("no-agents", {
|
|
31153
|
-
type: "boolean",
|
|
31154
|
-
default: false,
|
|
31155
|
-
describe: "Skip agent skills scaffolding"
|
|
31142
|
+
describe: "Scaffold agent skills for these targets (comma-separated: claude,cursor,codex); auto-detected when omitted; --no-agents to skip"
|
|
31156
31143
|
}),
|
|
31157
31144
|
handleMaintain
|
|
31158
31145
|
).command(
|
|
@@ -31328,14 +31315,13 @@ async function handleInit(argv) {
|
|
|
31328
31315
|
recordRepoForControlSync(repoPath);
|
|
31329
31316
|
await handleCursorRule({
|
|
31330
31317
|
repoPath,
|
|
31331
|
-
cursorRule: resolveCursorRuleFlag(argv.cursorRule
|
|
31318
|
+
cursorRule: resolveCursorRuleFlag(argv.cursorRule),
|
|
31332
31319
|
autoYes: argv.yes,
|
|
31333
31320
|
mode: "init"
|
|
31334
31321
|
});
|
|
31335
31322
|
await handleAgentSkills({
|
|
31336
31323
|
repoPath,
|
|
31337
|
-
|
|
31338
|
-
enabled: argv.noAgents ? false : void 0,
|
|
31324
|
+
...resolveAgentsScaffoldOptions(argv.agents),
|
|
31339
31325
|
autoYes: argv.yes,
|
|
31340
31326
|
force: argv.force,
|
|
31341
31327
|
mode: "init"
|
|
@@ -31401,14 +31387,13 @@ async function handleMaintain(argv) {
|
|
|
31401
31387
|
}
|
|
31402
31388
|
await handleCursorRule({
|
|
31403
31389
|
repoPath,
|
|
31404
|
-
cursorRule: resolveCursorRuleFlag(argv.cursorRule
|
|
31390
|
+
cursorRule: resolveCursorRuleFlag(argv.cursorRule),
|
|
31405
31391
|
autoYes: argv.yes,
|
|
31406
31392
|
mode: "maintain"
|
|
31407
31393
|
});
|
|
31408
31394
|
await handleAgentSkills({
|
|
31409
31395
|
repoPath,
|
|
31410
|
-
|
|
31411
|
-
enabled: argv.noAgents ? false : void 0,
|
|
31396
|
+
...resolveAgentsScaffoldOptions(argv.agents),
|
|
31412
31397
|
autoYes: argv.yes,
|
|
31413
31398
|
mode: "maintain"
|
|
31414
31399
|
});
|
|
@@ -31417,10 +31402,13 @@ async function handleMaintain(argv) {
|
|
|
31417
31402
|
process.exit(1);
|
|
31418
31403
|
}
|
|
31419
31404
|
}
|
|
31420
|
-
function resolveCursorRuleFlag(cursorRule
|
|
31421
|
-
|
|
31422
|
-
|
|
31423
|
-
|
|
31405
|
+
function resolveCursorRuleFlag(cursorRule) {
|
|
31406
|
+
return cursorRule;
|
|
31407
|
+
}
|
|
31408
|
+
function resolveAgentsScaffoldOptions(agents) {
|
|
31409
|
+
if (agents === false) return { enabled: false };
|
|
31410
|
+
if (typeof agents === "string") return { agents };
|
|
31411
|
+
return {};
|
|
31424
31412
|
}
|
|
31425
31413
|
function emitManualAdaptationPrompt(repoPath, mode, profile = "default", bundleReport) {
|
|
31426
31414
|
const prompt = mode === "init" ? buildInitAdaptationPrompt(repoPath, profile) : buildMaintainAdaptationPrompt(repoPath, bundleReport);
|