@promptscript/cli 1.4.7 → 1.5.0

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.
Files changed (41) hide show
  1. package/README.md +69 -19
  2. package/index.js +26798 -21185
  3. package/package.json +1 -1
  4. package/skills/promptscript/SKILL.md +93 -6
  5. package/src/cli.d.ts.map +1 -1
  6. package/src/commands/compile.d.ts.map +1 -1
  7. package/src/commands/diff.d.ts.map +1 -1
  8. package/src/commands/init.d.ts.map +1 -1
  9. package/src/commands/lock.d.ts +16 -0
  10. package/src/commands/lock.d.ts.map +1 -0
  11. package/src/commands/migrate.d.ts +11 -0
  12. package/src/commands/migrate.d.ts.map +1 -0
  13. package/src/commands/registry/add.d.ts +6 -0
  14. package/src/commands/registry/add.d.ts.map +1 -0
  15. package/src/commands/registry/index.d.ts.map +1 -1
  16. package/src/commands/registry/list.d.ts +6 -0
  17. package/src/commands/registry/list.d.ts.map +1 -0
  18. package/src/commands/resolve-cmd.d.ts +9 -0
  19. package/src/commands/resolve-cmd.d.ts.map +1 -0
  20. package/src/commands/update.d.ts +13 -0
  21. package/src/commands/update.d.ts.map +1 -0
  22. package/src/commands/upgrade.d.ts +8 -0
  23. package/src/commands/upgrade.d.ts.map +1 -0
  24. package/src/commands/validate.d.ts +9 -0
  25. package/src/commands/validate.d.ts.map +1 -1
  26. package/src/commands/vendor.d.ts +14 -0
  27. package/src/commands/vendor.d.ts.map +1 -0
  28. package/src/types.d.ts +60 -0
  29. package/src/types.d.ts.map +1 -1
  30. package/src/utils/ai-tools-detector.d.ts +12 -1
  31. package/src/utils/ai-tools-detector.d.ts.map +1 -1
  32. package/src/utils/backup.d.ts +8 -0
  33. package/src/utils/backup.d.ts.map +1 -0
  34. package/src/utils/clipboard.d.ts +2 -0
  35. package/src/utils/clipboard.d.ts.map +1 -0
  36. package/src/utils/conflict-detector.d.ts +10 -0
  37. package/src/utils/conflict-detector.d.ts.map +1 -0
  38. package/src/utils/markers.d.ts +16 -0
  39. package/src/utils/markers.d.ts.map +1 -0
  40. package/src/utils/migration-prompt.d.ts +7 -0
  41. package/src/utils/migration-prompt.d.ts.map +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptscript/cli",
3
- "version": "1.4.7",
3
+ "version": "1.5.0",
4
4
  "description": "CLI for PromptScript - standardize AI instructions across GitHub Copilot, Claude, Cursor and other AI tools",
5
5
  "keywords": [
6
6
  "cli",
@@ -380,6 +380,40 @@ Import and merge fragments:
380
380
  @use @core/typescript as ts # alias enables @extend access
381
381
  ```
382
382
 
383
+ #### URL imports (Go-module style)
384
+
385
+ Import directly from any Git repository by host path - no alias required:
386
+
387
+ ```
388
+ @use github.com/acme/shared-standards/@fragments/security
389
+ @use gitlab.com/myorg/prompts/@stacks/python
390
+ ```
391
+
392
+ Version pinning with `@`:
393
+
394
+ ```
395
+ @use github.com/acme/shared-standards/@org/base@1.2.0 # exact version
396
+ @use github.com/acme/shared-standards/@org/base@^1.0.0 # semver range
397
+ @use github.com/acme/shared-standards/@org/base@main # branch
398
+ ```
399
+
400
+ #### Registry aliases
401
+
402
+ Short names for Git repository URLs, configured in `promptscript.yaml`:
403
+
404
+ ```yaml
405
+ registries:
406
+ company:
407
+ url: github.com/acme/promptscript-registry
408
+ ```
409
+
410
+ Then use the alias as scope prefix:
411
+
412
+ ```
413
+ @use @company/security
414
+ @inherit @company/base-config
415
+ ```
416
+
383
417
  Merge rules:
384
418
 
385
419
  - Text: concatenated with deduplication
@@ -409,7 +443,7 @@ passed from one `.prs` file to another through `@inherit` or `@use`.
409
443
  **Step 1: Create the template** (parent file with `params` in `@meta`):
410
444
 
411
445
  ```
412
- # base.prs reusable template
446
+ # base.prs - reusable template
413
447
  @meta {
414
448
  id: "service-template"
415
449
  syntax: "1.0.0"
@@ -429,7 +463,7 @@ passed from one `.prs` file to another through `@inherit` or `@use`.
429
463
  **Step 2: Inherit with values** (child file passes params):
430
464
 
431
465
  ```
432
- # project.prs concrete project
466
+ # project.prs - concrete project
433
467
  @meta { id: "user-api" syntax: "1.0.0" }
434
468
 
435
469
  @inherit ./base(serviceName: "user-api", port: 8080)
@@ -447,7 +481,7 @@ The same works with `@use`:
447
481
  Optional params use `?` suffix. Defaults use `= value`.
448
482
  Missing required params produce a compile error.
449
483
 
450
- **Multi-service pattern** reuse one template across many projects:
484
+ **Multi-service pattern** - reuse one template across many projects:
451
485
 
452
486
  ```
453
487
  services/
@@ -492,20 +526,73 @@ targets:
492
526
  registry:
493
527
  git: https://github.com/org/registry.git
494
528
  ref: main
529
+ registries:
530
+ company:
531
+ url: github.com/acme/promptscript-registry
532
+ oss:
533
+ url: github.com/prscrpt/community-registry
534
+ ref: v2
535
+ ```
536
+
537
+ ### Lockfile: `promptscript.lock`
538
+
539
+ When remote imports are used, `prs compile` automatically generates a lockfile
540
+ recording the exact resolved commit for each dependency. This enables reproducible
541
+ builds across machines and CI. Commit `promptscript.lock` to version control.
542
+
543
+ ## Syntax Version Validation
544
+
545
+ The `syntax` field in `@meta` declares the PromptScript language version (semver).
546
+
547
+ ### Known Versions
548
+
549
+ | Version | What it adds |
550
+ | ------- | ----------------------------------------------------------------------------------------------------------------------- |
551
+ | `1.0.0` | Core blocks (identity, context, standards, restrictions, knowledge, shortcuts, commands, guards, params, skills, local) |
552
+ | `1.1.0` | Adds `@agents` (plus internal `@workflows`, `@prompts` - not user-facing) |
553
+
554
+ ### Validation Rules
555
+
556
+ - **PS018 (`syntax-version-compat`)**: warns when blocks used in a file require a higher syntax version than declared. For example, `@agents` with `syntax: "1.0.0"` triggers PS018. Suggestion: run `prs validate --fix`.
557
+ - **PS019 (`unknown-block-name`)**: warns when a block name is not a known PromptScript type, with fuzzy-match suggestions for typos.
558
+
559
+ ### Fixing Syntax Versions
560
+
561
+ ```
562
+ prs validate --fix # Auto-fix syntax versions in .prs files
563
+ prs upgrade # Upgrade all .prs files to the latest version
495
564
  ```
496
565
 
566
+ `--fix` rewrites the `syntax: "..."` line in each file's `@meta` block to match the minimum version required by the blocks used. It only upgrades, never downgrades.
567
+
568
+ `prs upgrade` upgrades all files to the latest known syntax version regardless of what blocks they use.
569
+
497
570
  ## CLI Commands
498
571
 
499
572
  ```
500
- prs init # Initialize project
501
- prs init --migrate # Initialize + migration skills
573
+ prs init # Initialize project (auto-detects existing files)
574
+ prs init --auto-import # Initialize + static import of existing files
575
+ prs migrate # Interactive migration flow
576
+ prs migrate --static # Non-interactive static import
577
+ prs migrate --llm # Generate AI-assisted migration prompt
502
578
  prs compile # Compile to all targets
503
579
  prs compile --watch # Watch mode
504
580
  prs validate --strict # Validate syntax
581
+ prs validate --fix # Auto-fix syntax version declarations
582
+ prs upgrade # Upgrade all .prs files to latest syntax version
505
583
  prs import CLAUDE.md # Import existing AI instructions
506
584
  prs import --dry-run # Preview import conversion
507
585
  prs pull # Update registry
508
586
  prs diff --target claude # Show compilation diff
587
+ prs lock # Generate/update promptscript.lock
588
+ prs lock --dry-run # Preview lockfile changes
589
+ prs update # Re-resolve all remote imports to latest
590
+ prs update <url> # Update a specific registry
591
+ prs vendor sync # Copy cached deps to .promptscript/vendor/
592
+ prs vendor check # Verify vendor matches lockfile
593
+ prs resolve @alias/path # Debug: show how an import resolves
594
+ prs registry list # Show configured registries and aliases
595
+ prs registry add <alias> <url> # Add a registry alias
509
596
  ```
510
597
 
511
598
  ## Output Targets
@@ -533,7 +620,7 @@ prs diff --target claude # Show compilation diff
533
620
  For detailed information about each formatter's output paths, supported features, quirks, and example outputs:
534
621
 
535
622
  - **Full formatter reference:** `docs/reference/formatters/` (7 dedicated pages + index of all 37)
536
- - **llms-full.txt:** Available at the docs site root contains all documentation in a single file for LLM consumption
623
+ - **llms-full.txt:** Available at the docs site root - contains all documentation in a single file for LLM consumption
537
624
  - **Dedicated pages exist for:** Claude Code, GitHub Copilot, Cursor, Antigravity, Factory AI, Gemini CLI, OpenCode
538
625
  - **All 37 formatters indexed at:** `docs/reference/formatters/index.md` with output paths, tier, and feature flags
539
626
 
package/src/cli.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../../packages/cli/src/cli.ts"],"names":[],"mappings":";AAyJA;;;GAGG;AACH,wBAAgB,GAAG,CAAC,IAAI,GAAE,MAAM,EAAiB,GAAG,IAAI,CAEvD"}
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../../packages/cli/src/cli.ts"],"names":[],"mappings":";AAsNA;;;GAGG;AACH,wBAAgB,GAAG,CAAC,IAAI,GAAE,MAAM,EAAiB,GAAG,IAAI,CAEvD"}
@@ -1 +1 @@
1
- {"version":3,"file":"compile.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/compile.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AASlD,OAAO,EAAE,KAAK,WAAW,EAAyB,MAAM,gBAAgB,CAAC;AAsXzE;;GAEG;AACH,wBAAsB,cAAc,CAClC,OAAO,EAAE,cAAc,EACvB,QAAQ,GAAE,WAAqC,GAC9C,OAAO,CAAC,IAAI,CAAC,CA0Hf"}
1
+ {"version":3,"file":"compile.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/compile.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAgBlD,OAAO,EAAE,KAAK,WAAW,EAAyB,MAAM,gBAAgB,CAAC;AAyYzE;;GAEG;AACH,wBAAsB,cAAc,CAClC,OAAO,EAAE,cAAc,EACvB,QAAQ,GAAE,WAAqC,GAC9C,OAAO,CAAC,IAAI,CAAC,CAoKf"}
@@ -1 +1 @@
1
- {"version":3,"file":"diff.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/diff.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAmG/C;;GAEG;AACH,wBAAsB,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAgFrE"}
1
+ {"version":3,"file":"diff.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/diff.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAsG/C;;GAEG;AACH,wBAAsB,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAgFrE"}
@@ -1 +1 @@
1
- {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/init.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,WAAW,EAAyB,MAAM,gBAAgB,CAAC;AAmBzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C,OAAO,EAOL,KAAK,YAAY,EAClB,MAAM,+BAA+B,CAAC;AA+CvC;;;GAGG;AACH,wBAAsB,WAAW,CAC/B,OAAO,EAAE,WAAW,EACpB,QAAQ,GAAE,WAAqC,GAC9C,OAAO,CAAC,IAAI,CAAC,CAmLf;AA8SD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAM7D"}
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/init.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,WAAW,EAAyB,MAAM,gBAAgB,CAAC;AAoBzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C,OAAO,EAOL,KAAK,YAAY,EAElB,MAAM,+BAA+B,CAAC;AAkDvC;;;GAGG;AACH,wBAAsB,WAAW,CAC/B,OAAO,EAAE,WAAW,EACpB,QAAQ,GAAE,WAAqC,GAC9C,OAAO,CAAC,IAAI,CAAC,CAyLf;AAifD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAM7D"}
@@ -0,0 +1,16 @@
1
+ import type { LockOptions } from '../types.js';
2
+ /** Path to the lockfile relative to cwd. */
3
+ export declare const LOCKFILE_PATH = "promptscript.lock";
4
+ /**
5
+ * Generate or update promptscript.lock by resolving all remote imports.
6
+ *
7
+ * This command collects all registry aliases configured in the project and
8
+ * global config, then writes a lockfile that pins each dependency to a
9
+ * resolved version and commit hash for reproducible builds.
10
+ *
11
+ * NOTE: Full remote resolution (actual git fetching) requires the registry
12
+ * resolver pipeline. This implementation records the configured aliases as
13
+ * pending dependencies and preserves any previously-resolved entries.
14
+ */
15
+ export declare function lockCommand(options: LockOptions): Promise<void>;
16
+ //# sourceMappingURL=lock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lock.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/lock.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAM/C,4CAA4C;AAC5C,eAAO,MAAM,aAAa,sBAAsB,CAAC;AAEjD;;;;;;;;;;GAUG;AACH,wBAAsB,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CA8ErE"}
@@ -0,0 +1,11 @@
1
+ import type { MigrateOptions } from '../types.js';
2
+ import { type CliServices } from '../services.js';
3
+ /**
4
+ * prs migrate -- alias/shortcut to init migration path.
5
+ * Delegates to initCommand with appropriate flags.
6
+ *
7
+ * When promptscript.yaml already exists, force: true allows
8
+ * initCommand to re-enter and run migration-only flow.
9
+ */
10
+ export declare function migrateCommand(options: MigrateOptions, services?: CliServices): Promise<void>;
11
+ //# sourceMappingURL=migrate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migrate.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/migrate.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,KAAK,WAAW,EAAyB,MAAM,gBAAgB,CAAC;AAEzE;;;;;;GAMG;AACH,wBAAsB,cAAc,CAClC,OAAO,EAAE,cAAc,EACvB,QAAQ,GAAE,WAAqC,GAC9C,OAAO,CAAC,IAAI,CAAC,CAWf"}
@@ -0,0 +1,6 @@
1
+ import type { RegistryAddOptions } from '../../types.js';
2
+ /**
3
+ * Add a registry alias to the project or global config.
4
+ */
5
+ export declare function registryAddCommand(alias: string, url: string, options: RegistryAddOptions): Promise<void>;
6
+ //# sourceMappingURL=add.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add.d.ts","sourceRoot":"","sources":["../../../../../../packages/cli/src/commands/registry/add.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAMzD;;GAEG;AACH,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,IAAI,CAAC,CA4Bf"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/cli/src/commands/registry/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKzC;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CA2BhE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/cli/src/commands/registry/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAOzC;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CAsChE"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Show merged registry alias mappings from all config levels.
3
+ * Project config overrides user (global) config — last write wins.
4
+ */
5
+ export declare function registryListCommand(): Promise<void>;
6
+ //# sourceMappingURL=list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../../packages/cli/src/commands/registry/list.ts"],"names":[],"mappings":"AAOA;;;GAGG;AACH,wBAAsB,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC,CAiEzD"}
@@ -0,0 +1,9 @@
1
+ import type { ResolveCommandOptions } from '../types.js';
2
+ /**
3
+ * Debug command: show the full resolution chain for an import path.
4
+ *
5
+ * Prints alias expansion, repo URL, version from lockfile, cache location,
6
+ * and resolved file type without performing any network operations.
7
+ */
8
+ export declare function resolveCommand(importPath: string, _options: ResolveCommandOptions): Promise<void>;
9
+ //# sourceMappingURL=resolve-cmd.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-cmd.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/resolve-cmd.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AASzD;;;;;GAKG;AACH,wBAAsB,cAAc,CAClC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,qBAAqB,GAC9B,OAAO,CAAC,IAAI,CAAC,CAgGf"}
@@ -0,0 +1,13 @@
1
+ import type { UpdateOptions } from '../types.js';
2
+ /**
3
+ * Re-resolve versions (ignoring current lockfile pins) and update promptscript.lock.
4
+ *
5
+ * When a package argument is provided, only that dependency is updated.
6
+ * Otherwise all dependencies are re-resolved.
7
+ *
8
+ * NOTE: Full remote resolution requires the registry resolver pipeline.
9
+ * This implementation updates the lockfile structure and shows before/after
10
+ * version info from the existing lockfile.
11
+ */
12
+ export declare function updateCommand(packageArg: string | undefined, options: UpdateOptions): Promise<void>;
13
+ //# sourceMappingURL=update.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/update.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAOjD;;;;;;;;;GASG;AACH,wBAAsB,aAAa,CACjC,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,IAAI,CAAC,CAqGf"}
@@ -0,0 +1,8 @@
1
+ export interface UpgradeOptions {
2
+ dryRun?: boolean;
3
+ }
4
+ /**
5
+ * Upgrade all .prs files to the latest syntax version.
6
+ */
7
+ export declare function upgradeCommand(options: UpgradeOptions): Promise<void>;
8
+ //# sourceMappingURL=upgrade.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upgrade.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/upgrade.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,cAAc;IAC7B,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,wBAAsB,cAAc,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAwC3E"}
@@ -1,4 +1,13 @@
1
1
  import type { ValidateOptions } from '../types.js';
2
+ /**
3
+ * Replace syntax version within the @meta block only.
4
+ * Returns the modified content, or null if no change needed.
5
+ */
6
+ export declare function fixSyntaxVersion(content: string, currentVersion: string, targetVersion: string): string | null;
7
+ /**
8
+ * Recursively discover all .prs files in a directory.
9
+ */
10
+ export declare function discoverPrsFiles(dir: string): string[];
2
11
  /**
3
12
  * Validate PromptScript files without generating output.
4
13
  */
@@ -1 +1 @@
1
- {"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/validate.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AA2InD;;GAEG;AACH,wBAAsB,eAAe,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAsD7E"}
1
+ {"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/validate.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AA6InD;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,aAAa,EAAE,MAAM,GACpB,MAAM,GAAG,IAAI,CA+Bf;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAgBtD;AAED;;GAEG;AACH,wBAAsB,eAAe,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CA+D7E"}
@@ -0,0 +1,14 @@
1
+ import type { VendorSyncOptions, VendorCheckOptions } from '../types.js';
2
+ /**
3
+ * Copy all cached dependencies to .promptscript/vendor/.
4
+ *
5
+ * Reads promptscript.lock to determine which repos are pinned, then copies
6
+ * the cached content (from ~/.promptscript/cache/) to the vendor directory
7
+ * for offline / CI builds.
8
+ */
9
+ export declare function vendorSyncCommand(options: VendorSyncOptions): Promise<void>;
10
+ /**
11
+ * Verify that the vendor directory matches the lockfile.
12
+ */
13
+ export declare function vendorCheckCommand(_options: VendorCheckOptions): Promise<void>;
14
+ //# sourceMappingURL=vendor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vendor.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/vendor.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAYzE;;;;;;GAMG;AACH,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAoEjF;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,QAAQ,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAmDpF"}
package/src/types.d.ts CHANGED
@@ -20,6 +20,24 @@ export interface InitOptions {
20
20
  force?: boolean;
21
21
  /** Install migration skill for AI-assisted migration */
22
22
  migrate?: boolean;
23
+ /** Non-interactive static import of detected files (--auto-import) */
24
+ autoImport?: boolean;
25
+ /** Create backup before migration */
26
+ backup?: boolean;
27
+ /** Internal: force migrate flow (used by prs migrate) */
28
+ _forceMigrate?: boolean;
29
+ /** Internal: force LLM flow (used by prs migrate --llm) */
30
+ _forceLlm?: boolean;
31
+ /** Internal: specific files to migrate (used by prs migrate --files) */
32
+ _migrateFiles?: string[];
33
+ }
34
+ /**
35
+ * Options for the migrate command.
36
+ */
37
+ export interface MigrateOptions {
38
+ static?: boolean;
39
+ llm?: boolean;
40
+ files?: string[];
23
41
  }
24
42
  /**
25
43
  * Options for the compile command.
@@ -43,6 +61,8 @@ export interface CompileOptions {
43
61
  config?: string;
44
62
  /** Force overwrite existing files without prompts */
45
63
  force?: boolean;
64
+ /** Treat output path conflicts as errors */
65
+ strict?: boolean;
46
66
  /** Working directory (project root) */
47
67
  cwd?: string;
48
68
  }
@@ -54,6 +74,8 @@ export interface ValidateOptions {
54
74
  strict?: boolean;
55
75
  /** Output format (text, json) */
56
76
  format?: 'text' | 'json';
77
+ /** Auto-fix syntax version issues */
78
+ fix?: boolean;
57
79
  }
58
80
  /**
59
81
  * Options for the pull command.
@@ -131,4 +153,42 @@ export interface RegistryPublishOptions {
131
153
  /** Git tag for release */
132
154
  tag?: string;
133
155
  }
156
+ /**
157
+ * Options for the registry add command.
158
+ */
159
+ export interface RegistryAddOptions {
160
+ /** Add to global user config instead of project config */
161
+ global?: boolean;
162
+ }
163
+ /**
164
+ * Options for the lock command.
165
+ */
166
+ export interface LockOptions {
167
+ /** Preview without writing lockfile */
168
+ dryRun?: boolean;
169
+ }
170
+ /**
171
+ * Options for the update command.
172
+ */
173
+ export interface UpdateOptions {
174
+ /** Preview without writing lockfile */
175
+ dryRun?: boolean;
176
+ }
177
+ /**
178
+ * Options for the vendor sync command.
179
+ */
180
+ export interface VendorSyncOptions {
181
+ /** Preview without copying files */
182
+ dryRun?: boolean;
183
+ }
184
+ /**
185
+ * Options for the vendor check command.
186
+ */
187
+ export interface VendorCheckOptions {
188
+ }
189
+ /**
190
+ * Options for the resolve command.
191
+ */
192
+ export interface ResolveCommandOptions {
193
+ }
134
194
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../packages/cli/src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,qBAAqB;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8CAA8C;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6CAA6C;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+CAA+C;IAC/C,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,iDAAiD;IACjD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iCAAiC;IACjC,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,qDAAqD;IACrD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,wDAAwD;IACxD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,0DAA0D;IAC1D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gEAAgE;IAChE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qCAAqC;IACrC,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,4CAA4C;IAC5C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,uBAAuB;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,4CAA4C;IAC5C,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iCAAiC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qDAAqD;IACrD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,uCAAuC;IACvC,GAAG,C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AA0D;IAC1D,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,uCAAuC;IACvC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,uCAAuC;IACvC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,oCAAoC;IACpC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AAEH,MAAM,WAAW,kBAAkB;CAAG;AAEtC;;GAEG;AAEH,MAAM,WAAW,qBAAqB;CAAG"}
@@ -1,8 +1,19 @@
1
+ import { type DetectedFormat } from '@promptscript/importer';
1
2
  import { type CliServices } from '../services.js';
2
3
  /**
3
4
  * AI tool target identifier — corresponds to a registered formatter name.
4
5
  */
5
6
  export type AIToolTarget = string;
7
+ /**
8
+ * Enriched migration candidate with metadata about the instruction file.
9
+ */
10
+ export interface MigrationCandidate {
11
+ path: string;
12
+ format: DetectedFormat;
13
+ sizeBytes: number;
14
+ sizeHuman: string;
15
+ toolName: string;
16
+ }
6
17
  /**
7
18
  * AI tool detection result.
8
19
  */
@@ -12,7 +23,7 @@ export interface AIToolsDetection {
12
23
  /** Details about detected files */
13
24
  details: Record<string, string[]>;
14
25
  /** Files that exist but were NOT generated by PromptScript (candidates for migration) */
15
- migrationCandidates: string[];
26
+ migrationCandidates: MigrationCandidate[];
16
27
  }
17
28
  /**
18
29
  * Detect existing AI tool configurations.
@@ -1 +1 @@
1
- {"version":3,"file":"ai-tools-detector.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/utils/ai-tools-detector.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAyB,MAAM,gBAAgB,CAAC;AAEzE;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAElC;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,oDAAoD;IACpD,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,mCAAmC;IACnC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAClC,yFAAyF;IACzF,mBAAmB,EAAE,MAAM,EAAE,CAAC;CAC/B;AAkKD;;GAEG;AACH,wBAAsB,aAAa,CACjC,QAAQ,GAAE,WAAqC,GAC9C,OAAO,CAAC,gBAAgB,CAAC,CAuC3B;AAED;;GAEG;AACH,wBAAgB,aAAa,IAAI,YAAY,EAAE,CAE9C;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,gBAAgB,GAAG,YAAY,EAAE,CAQ/E;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,gBAAgB,GAAG,MAAM,EAAE,CAkB5E;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,gBAAgB,GAAG,OAAO,CAE3E;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,gBAAgB,GAAG,MAAM,EAAE,CAiBzE"}
1
+ {"version":3,"file":"ai-tools-detector.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/utils/ai-tools-detector.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,KAAK,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC3E,OAAO,EAAE,KAAK,WAAW,EAAyB,MAAM,gBAAgB,CAAC;AAEzE;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAElC;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,cAAc,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,oDAAoD;IACpD,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,mCAAmC;IACnC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAClC,yFAAyF;IACzF,mBAAmB,EAAE,kBAAkB,EAAE,CAAC;CAC3C;AAiMD;;GAEG;AACH,wBAAsB,aAAa,CACjC,QAAQ,GAAE,WAAqC,GAC9C,OAAO,CAAC,gBAAgB,CAAC,CAoD3B;AAED;;GAEG;AACH,wBAAgB,aAAa,IAAI,YAAY,EAAE,CAE9C;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,gBAAgB,GAAG,YAAY,EAAE,CAQ/E;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,gBAAgB,GAAG,MAAM,EAAE,CAkB5E;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,gBAAgB,GAAG,OAAO,CAE3E;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,gBAAgB,GAAG,MAAM,EAAE,CAiBzE"}
@@ -0,0 +1,8 @@
1
+ import type { CliServices } from '../services.js';
2
+ export interface BackupResult {
3
+ dir: string;
4
+ files: string[];
5
+ }
6
+ export declare function isGitRepo(services: CliServices): boolean;
7
+ export declare function createBackup(filePaths: string[], services: CliServices): Promise<BackupResult>;
8
+ //# sourceMappingURL=backup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"backup.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/utils/backup.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,wBAAgB,SAAS,CAAC,QAAQ,EAAE,WAAW,GAAG,OAAO,CAExD;AAED,wBAAsB,YAAY,CAChC,SAAS,EAAE,MAAM,EAAE,EACnB,QAAQ,EAAE,WAAW,GACpB,OAAO,CAAC,YAAY,CAAC,CAiBvB"}
@@ -0,0 +1,2 @@
1
+ export declare function copyToClipboard(text: string): boolean;
2
+ //# sourceMappingURL=clipboard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/utils/clipboard.ts"],"names":[],"mappings":"AAWA,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAarD"}
@@ -0,0 +1,10 @@
1
+ import type { TargetConfig } from '@promptscript/core';
2
+ /**
3
+ * Detect output path conflicts: multiple targets writing to the same file.
4
+ * Returns a map of conflicting paths to the list of target names that write to them.
5
+ */
6
+ export declare function detectOutputConflicts(targets: {
7
+ name: string;
8
+ config?: TargetConfig;
9
+ }[]): Map<string, string[]>;
10
+ //# sourceMappingURL=conflict-detector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conflict-detector.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/utils/conflict-detector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGvD;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,YAAY,CAAA;CAAE,EAAE,GACjD,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAiBvB"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * PromptScript generation marker utilities.
3
+ *
4
+ * Markers are added to compiled output files so the compiler can identify
5
+ * files it previously generated. These utilities strip markers before
6
+ * content comparison to avoid false diffs from timestamp-only changes.
7
+ */
8
+ /**
9
+ * Strip PromptScript generation markers from content for comparison purposes.
10
+ * This allows comparing actual content changes while ignoring timestamp updates.
11
+ *
12
+ * Regex literals are inlined to avoid stateful module-level RegExp objects
13
+ * with the `g` flag (which maintain a `lastIndex` cursor between calls).
14
+ */
15
+ export declare function stripMarkers(content: string): string;
16
+ //# sourceMappingURL=markers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markers.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/utils/markers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAIpD"}
@@ -0,0 +1,7 @@
1
+ export interface MigrationPromptInput {
2
+ path: string;
3
+ sizeHuman: string;
4
+ toolName: string;
5
+ }
6
+ export declare function generateMigrationPrompt(candidates: MigrationPromptInput[]): string;
7
+ //# sourceMappingURL=migration-prompt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migration-prompt.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/utils/migration-prompt.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,oBAAoB,EAAE,GAAG,MAAM,CAyBlF"}