@driftless-sh/cli 0.1.29 → 0.1.31
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 +8 -5
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -214437,7 +214437,7 @@ var import_node_path4 = require("node:path");
|
|
|
214437
214437
|
// src/commands/install-skill.ts
|
|
214438
214438
|
var import_node_fs3 = require("node:fs");
|
|
214439
214439
|
var import_node_path3 = require("node:path");
|
|
214440
|
-
var SKILL_URL = "https://raw.githubusercontent.com/driftless-
|
|
214440
|
+
var SKILL_URL = "https://raw.githubusercontent.com/driftless-sh/driftless-skill/main/skills/driftless/SKILL.md";
|
|
214441
214441
|
var AGENTS_BLOCK = `
|
|
214442
214442
|
## Driftless \u2014 Context Integrity
|
|
214443
214443
|
|
|
@@ -214450,7 +214450,7 @@ Before pushing:
|
|
|
214450
214450
|
Save discoveries:
|
|
214451
214451
|
driftless context update <slug> --gotchas "..." --decisions "..."
|
|
214452
214452
|
|
|
214453
|
-
Full skill \u2192 https://github.com/driftless-
|
|
214453
|
+
Full skill \u2192 https://github.com/driftless-sh/driftless-skill
|
|
214454
214454
|
`;
|
|
214455
214455
|
async function downloadSkill(cwd) {
|
|
214456
214456
|
const driftlessDir = (0, import_node_path3.resolve)(cwd, ".driftless");
|
|
@@ -214483,7 +214483,7 @@ async function downloadSkill(cwd) {
|
|
|
214483
214483
|
skillPath,
|
|
214484
214484
|
`# Driftless Skill
|
|
214485
214485
|
|
|
214486
|
-
See https://github.com/driftless-
|
|
214486
|
+
See https://github.com/driftless-sh/driftless-skill for the full skill.
|
|
214487
214487
|
`,
|
|
214488
214488
|
"utf-8"
|
|
214489
214489
|
);
|
|
@@ -214539,7 +214539,7 @@ async function installSkillCommand() {
|
|
|
214539
214539
|
// src/commands/init.ts
|
|
214540
214540
|
function getVersion() {
|
|
214541
214541
|
try {
|
|
214542
|
-
return "0.1.
|
|
214542
|
+
return "0.1.31";
|
|
214543
214543
|
} catch {
|
|
214544
214544
|
return "0.0.0";
|
|
214545
214545
|
}
|
|
@@ -215006,6 +215006,7 @@ async function initCommand(args) {
|
|
|
215006
215006
|
console.log(" next \u2192 driftless context list");
|
|
215007
215007
|
console.log("");
|
|
215008
215008
|
console.log(DIVIDER);
|
|
215009
|
+
process.exit(0);
|
|
215009
215010
|
}
|
|
215010
215011
|
|
|
215011
215012
|
// src/commands/scan.ts
|
|
@@ -216226,6 +216227,7 @@ function saveConfig(apiKey, apiUrl) {
|
|
|
216226
216227
|
console.log(` Config: ${CONFIG_PATH2}`);
|
|
216227
216228
|
console.log();
|
|
216228
216229
|
console.log("Try: driftless scan --diff");
|
|
216230
|
+
process.exit(0);
|
|
216229
216231
|
} catch (err) {
|
|
216230
216232
|
console.error("Failed to save config:", err);
|
|
216231
216233
|
process.exit(1);
|
|
@@ -216371,6 +216373,7 @@ ${okCount} ok, ${warnCount} warnings, ${failCount} failures`);
|
|
|
216371
216373
|
console.log("\nFix failures before running `driftless init` or `driftless scan`.");
|
|
216372
216374
|
process.exit(1);
|
|
216373
216375
|
}
|
|
216376
|
+
process.exit(0);
|
|
216374
216377
|
}
|
|
216375
216378
|
function pad2(s, n) {
|
|
216376
216379
|
if (s.length >= n) return s;
|
|
@@ -216378,7 +216381,7 @@ function pad2(s, n) {
|
|
|
216378
216381
|
}
|
|
216379
216382
|
|
|
216380
216383
|
// src/index.ts
|
|
216381
|
-
var VERSION = "0.1.
|
|
216384
|
+
var VERSION = "0.1.31";
|
|
216382
216385
|
var HELP_TEXT = `Driftless CLI v${VERSION} \u2014 Living repo context for humans and coding agents
|
|
216383
216386
|
|
|
216384
216387
|
Install: npm install -g @driftless-sh/cli
|