gsd-code-first 1.0.0 → 1.0.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.
@@ -913,8 +913,12 @@ async function runCommand(command, args, cwd, raw) {
913
913
 
914
914
  case 'extract-tags': {
915
915
  const allArgs = args.slice(1);
916
- const { phase: phaseFilter, type: typeFilter, format, output: outputFile } = parseNamedArgs(allArgs, ['phase', 'type', 'format', 'output']);
917
- const targetPath = allArgs.find(a => !a.startsWith('--')) || cwd;
916
+ const namedFlags = ['phase', 'type', 'format', 'output'];
917
+ const { phase: phaseFilter, type: typeFilter, format, output: outputFile } = parseNamedArgs(allArgs, namedFlags);
918
+ // Filter out --flag tokens and their values so positional arg detection works
919
+ const consumed = new Set();
920
+ for (const f of namedFlags) { const i = allArgs.indexOf(`--${f}`); if (i !== -1) { consumed.add(i); if (allArgs[i + 1] && !allArgs[i + 1].startsWith('--')) consumed.add(i + 1); } }
921
+ const targetPath = allArgs.filter((_, i) => !consumed.has(i) && !allArgs[i].startsWith('--'))[0] || cwd;
918
922
  arcScanner.cmdExtractTags(cwd, targetPath, {
919
923
  phaseFilter,
920
924
  typeFilter,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gsd-code-first",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Code-First fork of Get Shit Done — AI-native development with code-as-planning",
5
5
  "bin": {
6
6
  "get-shit-done-cc": "bin/install.js"