@llman-sdd/cli 0.10.0 → 0.10.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/package.json +2 -2
- package/src/commands/archive.ts +13 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@llman-sdd/cli",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"description": "Spec-driven development workflow CLI (the `llman-sdd` command)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"build": "bun run ./scripts/build-binary.ts"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@llman-sdd/core": "0.10.
|
|
30
|
+
"@llman-sdd/core": "0.10.1",
|
|
31
31
|
"commander": "^15.0.0"
|
|
32
32
|
},
|
|
33
33
|
"engines": {
|
package/src/commands/archive.ts
CHANGED
|
@@ -53,7 +53,16 @@ export function registerArchive(program: Command, ctx: CliContext): void {
|
|
|
53
53
|
.option('--before <date>', 'freeze entries older than this date (YYYY-MM-DD)')
|
|
54
54
|
.option('--keep-recent <n>', 'keep N most recent candidates unfrozen', '0')
|
|
55
55
|
.option('--dry-run', 'list candidates without freezing')
|
|
56
|
-
.option('--list', 'list entries already in the cold-backup archive')
|
|
56
|
+
.option('--list', 'list entries already in the cold-backup archive')
|
|
57
|
+
.option(
|
|
58
|
+
'--ignore-file <path>',
|
|
59
|
+
'extra gitignore-format file excluding archive entries (repeatable)',
|
|
60
|
+
(v: string, prev: string[]) => {
|
|
61
|
+
prev.push(v);
|
|
62
|
+
return prev;
|
|
63
|
+
},
|
|
64
|
+
[] as string[],
|
|
65
|
+
);
|
|
57
66
|
addSpecDirOption(freeze);
|
|
58
67
|
freeze.action(
|
|
59
68
|
async (options: {
|
|
@@ -61,6 +70,7 @@ export function registerArchive(program: Command, ctx: CliContext): void {
|
|
|
61
70
|
keepRecent: string;
|
|
62
71
|
dryRun?: boolean;
|
|
63
72
|
list?: boolean;
|
|
73
|
+
ignoreFile: string[];
|
|
64
74
|
directory?: string;
|
|
65
75
|
}) => {
|
|
66
76
|
// r118: the cold-backup reads and writes stay inside the resolved
|
|
@@ -80,6 +90,8 @@ export function registerArchive(program: Command, ctx: CliContext): void {
|
|
|
80
90
|
before: options.before,
|
|
81
91
|
keepRecent: Number(options.keepRecent),
|
|
82
92
|
dryRun: options.dryRun,
|
|
93
|
+
// r116 exemption: user-supplied paths keep their cwd-literal meaning.
|
|
94
|
+
ignoreFiles: options.ignoreFile.map((p) => resolve(p)),
|
|
83
95
|
});
|
|
84
96
|
for (const line of result.lines) console.log(line);
|
|
85
97
|
},
|