@promptscript/cli 1.13.2 → 1.14.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.
Files changed (67) hide show
  1. package/README.md +324 -164
  2. package/index.js +9737 -1922
  3. package/package.json +3 -2
  4. package/skills/promptscript/SKILL.md +68 -26
  5. package/src/cli.d.ts.map +1 -1
  6. package/src/commands/check.d.ts +2 -2
  7. package/src/commands/check.d.ts.map +1 -1
  8. package/src/commands/compile.d.ts.map +1 -1
  9. package/src/commands/diff.d.ts +7 -0
  10. package/src/commands/diff.d.ts.map +1 -1
  11. package/src/commands/hook.d.ts.map +1 -1
  12. package/src/commands/hooks.d.ts.map +1 -1
  13. package/src/commands/import.d.ts +1 -0
  14. package/src/commands/import.d.ts.map +1 -1
  15. package/src/commands/init.d.ts +3 -0
  16. package/src/commands/init.d.ts.map +1 -1
  17. package/src/commands/inspect.d.ts.map +1 -1
  18. package/src/commands/lock-reference-scanner.d.ts +8 -8
  19. package/src/commands/lock-reference-scanner.d.ts.map +1 -1
  20. package/src/commands/lock-references.d.ts +4 -0
  21. package/src/commands/lock-references.d.ts.map +1 -0
  22. package/src/commands/lock-scanner.d.ts +14 -0
  23. package/src/commands/lock-scanner.d.ts.map +1 -1
  24. package/src/commands/lock.d.ts +4 -3
  25. package/src/commands/lock.d.ts.map +1 -1
  26. package/src/commands/migrate.d.ts +0 -7
  27. package/src/commands/migrate.d.ts.map +1 -1
  28. package/src/commands/pull.d.ts.map +1 -1
  29. package/src/commands/registry/index.d.ts.map +1 -1
  30. package/src/commands/registry/init.d.ts.map +1 -1
  31. package/src/commands/registry/list.d.ts +2 -1
  32. package/src/commands/registry/list.d.ts.map +1 -1
  33. package/src/commands/registry/publish.d.ts.map +1 -1
  34. package/src/commands/registry/validate.d.ts.map +1 -1
  35. package/src/commands/resolve-cmd.d.ts +1 -1
  36. package/src/commands/resolve-cmd.d.ts.map +1 -1
  37. package/src/commands/serve.d.ts.map +1 -1
  38. package/src/commands/skills.d.ts.map +1 -1
  39. package/src/commands/update.d.ts +0 -3
  40. package/src/commands/update.d.ts.map +1 -1
  41. package/src/commands/upgrade.d.ts.map +1 -1
  42. package/src/commands/validate.d.ts +2 -2
  43. package/src/commands/validate.d.ts.map +1 -1
  44. package/src/commands/vendor.d.ts +3 -4
  45. package/src/commands/vendor.d.ts.map +1 -1
  46. package/src/config/loader.d.ts +6 -0
  47. package/src/config/loader.d.ts.map +1 -1
  48. package/src/output/console.d.ts +2 -0
  49. package/src/output/console.d.ts.map +1 -1
  50. package/src/services.d.ts +5 -0
  51. package/src/services.d.ts.map +1 -1
  52. package/src/types.d.ts +27 -2
  53. package/src/types.d.ts.map +1 -1
  54. package/src/utils/ai-tools-detector.d.ts +1 -1
  55. package/src/utils/ai-tools-detector.d.ts.map +1 -1
  56. package/src/utils/backup.d.ts.map +1 -1
  57. package/src/utils/conflict-detector.d.ts +15 -0
  58. package/src/utils/conflict-detector.d.ts.map +1 -1
  59. package/src/utils/managed-output-cleanup.d.ts +30 -0
  60. package/src/utils/managed-output-cleanup.d.ts.map +1 -0
  61. package/src/utils/migration-prompt.d.ts +5 -1
  62. package/src/utils/migration-prompt.d.ts.map +1 -1
  63. package/src/utils/registry-resolver.d.ts +10 -2
  64. package/src/utils/registry-resolver.d.ts.map +1 -1
  65. package/src/utils/version-check.d.ts.map +1 -1
  66. package/src/utils/write-plan.d.ts +18 -0
  67. package/src/utils/write-plan.d.ts.map +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptscript/cli",
3
- "version": "1.13.2",
3
+ "version": "1.14.1",
4
4
  "description": "CLI for PromptScript - standardize AI instructions across GitHub Copilot, Claude, Cursor and other AI tools",
5
5
  "keywords": [
6
6
  "cli",
@@ -37,13 +37,14 @@
37
37
  "promptscript": "./bin/prs.js"
38
38
  },
39
39
  "engines": {
40
- "node": ">=18"
40
+ "node": ">=20"
41
41
  },
42
42
  "dependencies": {
43
43
  "@inquirer/prompts": "^8.5.2",
44
44
  "chalk": "^5.6.2",
45
45
  "chokidar": "^5.0.0",
46
46
  "commander": "^15.0.0",
47
+ "minimatch": "^10.2.5",
47
48
  "ora": "^9.4.0",
48
49
  "prettier": "^3.8.4",
49
50
  "yaml": "^2.9.0",
@@ -7,9 +7,9 @@ description: >-
7
7
  @restrictions, @shortcuts, @skills, or @agents, configuring
8
8
  promptscript.yaml, resolving compilation errors, understanding inheritance
9
9
  (@inherit) and composition (@use, @extend), or migrating AI instructions
10
- to PromptScript. Also use when asked about compilation targets (GitHub
11
- Copilot, Claude Code, Cursor, Antigravity, Factory AI, and 30+ other
12
- AI coding agents).
10
+ to PromptScript. Also use when asked about the 48 built-in compilation
11
+ targets, including GitHub Copilot, Claude Code, Cursor, Antigravity,
12
+ Factory AI, and AGENTS.md-based platforms.
13
13
  license: MIT
14
14
  metadata:
15
15
  author: PromptScript
@@ -525,9 +525,17 @@ prs skills list
525
525
  prs skills update
526
526
  ```
527
527
 
528
- ### @extend (modify imported blocks)
528
+ ### @extend (modify existing or imported blocks)
529
529
 
530
- Requires an aliased @use:
530
+ Use a direct path for inherited or local blocks:
531
+
532
+ ```
533
+ @extend standards.testing {
534
+ coverage: 95
535
+ }
536
+ ```
537
+
538
+ Use an alias when targeting a specific imported block:
531
539
 
532
540
  ```
533
541
  @use @core/typescript as ts
@@ -537,6 +545,26 @@ Requires an aliased @use:
537
545
  }
538
546
  ```
539
547
 
548
+ #### Replacing regular block fields
549
+
550
+ Syntax `1.3.0` supports explicit replacement of complete regular block field values:
551
+
552
+ ```
553
+ @meta { id: "project" syntax: "1.3.0" }
554
+
555
+ @inherit ./company-base
556
+
557
+ @extend standards {
558
+ testing!: ["Use Vitest"]
559
+ linting: ["Use ESLint"]
560
+ }
561
+ ```
562
+
563
+ `testing!` replaces the inherited value. Fields without `!` keep normal merge behavior.
564
+ Replacement works after `@inherit` and `@use`, including aliases and nested target paths.
565
+ A missing field is set. The modifier is rejected for `@skills`, which retain their dedicated
566
+ merge and sealing semantics.
567
+
540
568
  #### Skill-aware @extend semantics
541
569
 
542
570
  When extending a skill definition via `@extend`, individual skill properties follow specific merge
@@ -720,7 +748,7 @@ targets:
720
748
  version: frontmatter
721
749
  factory:
722
750
  version: full
723
- windsurf: # 31 additional agents supported
751
+ windsurf: # 41 additional targets supported
724
752
  version: simple
725
753
  cline:
726
754
  version: simple
@@ -792,21 +820,28 @@ The `syntax` field in `@meta` declares the PromptScript language version (semver
792
820
  | Version | What it adds |
793
821
  | ------- | ----------------------------------------------------------------------------------------------------------------------- |
794
822
  | `1.0.0` | Core blocks (identity, context, standards, restrictions, knowledge, shortcuts, commands, guards, params, skills, local) |
795
- | `1.1.0` | Adds `@agents` (plus internal `@workflows`, `@prompts` - not user-facing) |
823
+ | `1.1.0` | Adds `@agents` and `@workflows`; reserves internal `@prompts` |
796
824
  | `1.2.0` | Adds `@examples` (few-shot input/output pairs) |
825
+ | `1.3.0` | Adds explicit regular block field replacement in `@extend` |
826
+ | `1.4.0` | Adds `@hooks`, `@mcpServers`, and `@plugins` |
797
827
 
798
828
  ### Block Version Requirements
799
829
 
800
- | Block | Minimum Syntax Version |
801
- | ----------- | ---------------------- |
802
- | `@agents` | `1.1.0` |
803
- | `@examples` | `1.2.0` |
830
+ | Block | Minimum Syntax Version |
831
+ | ------------- | ---------------------- |
832
+ | `@agents` | `1.1.0` |
833
+ | `@workflows` | `1.1.0` |
834
+ | `@examples` | `1.2.0` |
835
+ | `@hooks` | `1.4.0` |
836
+ | `@mcpServers` | `1.4.0` |
837
+ | `@plugins` | `1.4.0` |
804
838
 
805
839
  All other built-in blocks are available from `1.0.0`.
840
+ Regular block field replacement with `field!: value` requires syntax `1.3.0`.
806
841
 
807
842
  ### Validation Rules
808
843
 
809
- - **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`.
844
+ - **PS018 (`syntax-version-compat`)**: warns when resolved blocks or syntax features require a higher version than declared. Requirements from inheritance, imports, and skill composition are included. Suggestion: run `prs validate --fix`.
810
845
  - **PS019 (`unknown-block-name`)**: warns when a block name is not a known PromptScript type, with fuzzy-match suggestions for typos.
811
846
  - **PS021 (`use-block-filter`)**: errors when `only` and `exclude` are both specified in `@use` parameters.
812
847
  - **PS025 (`valid-skill-references`)**: errors when a `references` entry points to a file with a disallowed extension or a path that cannot be resolved.
@@ -823,7 +858,7 @@ prs validate --fix # Auto-fix syntax versions in .prs files
823
858
  prs upgrade # Upgrade all .prs files to the latest version
824
859
  ```
825
860
 
826
- `--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.
861
+ `--fix` rewrites the `syntax: "..."` line in each file's `@meta` block to match the minimum version required by resolved blocks and syntax features. It follows inheritance, imports, and skill composition. It only upgrades, never downgrades.
827
862
 
828
863
  `prs upgrade` upgrades all files to the latest known syntax version regardless of what blocks they use.
829
864
 
@@ -831,10 +866,13 @@ prs upgrade # Upgrade all .prs files to the latest version
831
866
 
832
867
  ```
833
868
  prs init # Initialize project (auto-detects existing files)
869
+ prs init --yes --targets claude factory
870
+ prs init --dry-run # Preview initialization
834
871
  prs init --auto-import # Initialize + static import of existing files
835
872
  prs migrate # Interactive migration flow
836
873
  prs migrate --static # Non-interactive static import
837
874
  prs migrate --llm # Generate AI-assisted migration prompt
875
+ prs migrate --static --dry-run
838
876
  prs compile # Compile to all targets
839
877
  prs compile --watch # Watch mode
840
878
  prs compile --ignore-hashes # Skip integrity hash verification
@@ -844,7 +882,7 @@ prs validate --fix # Auto-fix syntax version declarations
844
882
  prs validate --skip-policies # Skip policy engine evaluation
845
883
  prs upgrade # Upgrade all .prs files to latest syntax version
846
884
  prs import CLAUDE.md # Import existing AI instructions
847
- prs import --dry-run # Preview import conversion
885
+ prs import CLAUDE.md --dry-run # Preview import conversion
848
886
  prs inspect <skill> # Show skill composition provenance
849
887
  prs inspect <skill> --layers # Show layer-level breakdown
850
888
  prs hooks install # Install auto-compilation hooks for AI tools
@@ -868,34 +906,39 @@ prs registry list # Show configured registries and aliases
868
906
  prs registry add <alias> <url> # Add a registry alias
869
907
  ```
870
908
 
909
+ `prs init --yes` requires explicit, detected, or user-configured targets. It does not invent
910
+ default tools. For existing projects, `prs migrate` preserves `promptscript.yaml`, isolates static
911
+ output under `.promptscript/migrated/`, leaves source instructions untouched, and performs no
912
+ writes when no candidates are detected.
913
+
871
914
  ## Output Targets
872
915
 
873
- 38+ supported targets. Key examples:
916
+ 48 supported targets. Key examples:
874
917
 
875
918
  | Target | Main File | Skills |
876
919
  | ----------- | ------------------------------- | -------------------------------------------------- |
877
920
  | GitHub | .github/copilot-instructions.md | .github/skills/\*/SKILL.md |
878
921
  | Claude | CLAUDE.md | .claude/skills/\*/SKILL.md |
879
- | Cursor | .cursor/rules/project.mdc | .cursor/commands/\*.md |
880
- | Antigravity | .agent/rules/project.md | .agent/rules/\*.md |
922
+ | Cursor | .cursor/rules/project.mdc | .agents/skills/\*/SKILL.md |
923
+ | Antigravity | .agent/rules/project.md | - |
881
924
  | Factory | AGENTS.md | .factory/skills/\*/SKILL.md, .factory/droids/\*.md |
882
925
  | OpenCode | OPENCODE.md | .opencode/skills/\*/SKILL.md |
883
- | Gemini | GEMINI.md | .gemini/skills/\*/skill.md |
926
+ | Gemini | GEMINI.md | .agents/skills/\*/skill.md |
884
927
  | Windsurf | .windsurf/rules/project.md | .windsurf/skills/\*/SKILL.md |
885
- | Cline | .clinerules | .agents/skills/\*/SKILL.md |
886
- | Roo Code | .roorules | .roo/skills/\*/SKILL.md |
928
+ | Cline | .clinerules | - |
929
+ | Roo Code | .roorules | - |
887
930
  | Codex | AGENTS.md | .agents/skills/\*/SKILL.md |
888
- | Continue | .continue/rules/project.md | .continue/skills/\*/SKILL.md |
889
- | + 26 more | | See full list in documentation |
931
+ | Continue | .continue/rules/project.md | - |
932
+ | + 36 more | | See full list in documentation |
890
933
 
891
934
  ### Formatter Documentation
892
935
 
893
936
  For detailed information about each formatter's output paths, supported features, quirks, and example outputs:
894
937
 
895
- - **Full formatter reference:** `docs/reference/formatters/` (7 dedicated pages + index of all 37)
938
+ - **Full formatter reference:** `docs/reference/formatters/` (7 dedicated pages + index of all 48)
896
939
  - **llms-full.txt:** Available at the docs site root - contains all documentation in a single file for LLM consumption
897
940
  - **Dedicated pages exist for:** Claude Code, GitHub Copilot, Cursor, Antigravity, Factory AI, Gemini CLI, OpenCode
898
- - **All 37 formatters indexed at:** `docs/reference/formatters/index.md` with output paths, tier, and feature flags
941
+ - **All 48 formatters indexed at:** `docs/reference/formatters/index.md` with output paths, tier, and feature flags
899
942
 
900
943
  ### Auto-Compilation Hooks
901
944
 
@@ -905,7 +948,6 @@ triggers compilation automatically when you edit `.prs` files:
905
948
  ```
906
949
  prs hooks install # Auto-detect and install for all detected tools
907
950
  prs hooks install claude # Install for a specific tool
908
- prs hooks install --all # Install for all supported tools
909
951
  ```
910
952
 
911
953
  Hooks also protect generated files from direct edits — when an AI agent tries
@@ -932,7 +974,7 @@ The entry file uses `@use ./context`, `@use ./standards`, etc. to compose them.
932
974
 
933
975
  1. Missing @meta block - every .prs file needs `@meta` with `id` and `syntax`
934
976
  2. Multiple @inherit - only one per file; use `@use` for additional imports
935
- 3. @extend without alias - requires prior `@use ... as alias`
977
+ 3. Extending an unknown path - target an inherited or local block, or use an imported alias
936
978
  4. Unquoted strings with special chars - quote strings containing `:`, `#`, `{`, `}`
937
979
  5. Forgetting to compile - `.prs` changes need `prs compile` to take effect
938
980
  6. Triple quotes inside triple quotes - not supported; describe content textually instead
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":";AA0SA;;;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":";AAkTA;;;GAGG;AACH,wBAAgB,GAAG,CAAC,IAAI,GAAE,MAAM,EAAiB,GAAG,IAAI,CAEvD"}
@@ -4,8 +4,8 @@ import type { CheckOptions } from '../types.js';
4
4
  * Verifies:
5
5
  * - Config file exists and is valid
6
6
  * - Entry file exists
7
- * - Registry path exists (if configured)
8
- * - Inherit paths are resolvable (if configured)
7
+ * - Registry and lockfile are usable
8
+ * - PromptScript syntax, imports, and inheritance resolve
9
9
  */
10
10
  export declare function checkCommand(_options: CheckOptions): Promise<void>;
11
11
  //# sourceMappingURL=check.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/check.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAahD;;;;;;;GAOG;AACH,wBAAsB,YAAY,CAAC,QAAQ,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAqKxE"}
1
+ {"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/check.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAchD;;;;;;;GAOG;AACH,wBAAsB,YAAY,CAAC,QAAQ,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CA6RxE"}
@@ -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;AAkBlD,OAAO,EAAE,KAAK,WAAW,EAAyB,MAAM,gBAAgB,CAAC;AAkazE;;GAEG;AACH,wBAAsB,cAAc,CAClC,OAAO,EAAE,cAAc,EACvB,QAAQ,GAAE,WAAqC,GAC9C,OAAO,CAAC,IAAI,CAAC,CAqLf"}
1
+ {"version":3,"file":"compile.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/compile.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAkBlD,OAAO,EAAE,KAAK,WAAW,EAAyB,MAAM,gBAAgB,CAAC;AAijBzE;;GAEG;AACH,wBAAsB,cAAc,CAClC,OAAO,EAAE,cAAc,EACvB,QAAQ,GAAE,WAAqC,GAC9C,OAAO,CAAC,IAAI,CAAC,CAEf"}
@@ -1,4 +1,11 @@
1
1
  import type { DiffOptions } from '../types.js';
2
+ import { type Logger } from '@promptscript/core';
3
+ /**
4
+ * Logger that surfaces post-format diagnostics only when --verbose/--debug is set.
5
+ * Mirrors createCliLogger in compile.ts so diff and compile report Prettier
6
+ * post-format warnings consistently.
7
+ */
8
+ export declare function createDiffLogger(): Logger;
2
9
  /**
3
10
  * Show diff between current output files and what would be generated.
4
11
  */
@@ -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;AAsG/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;AAC/C,OAAO,EAGL,KAAK,MAAM,EAIZ,MAAM,oBAAoB,CAAC;AAyB5B;;;;GAIG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,CAgBzC;AA4FD;;GAEG;AACH,wBAAsB,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAgGrE"}
@@ -1 +1 @@
1
- {"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/hook.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AA4ED;;;;;GAKG;AACH,wBAAsB,WAAW,CAC/B,MAAM,EAAE,MAAM,EACd,YAAY,CAAC,EAAE,mBAAmB,GACjC,OAAO,CAAC,IAAI,CAAC,CAyBf"}
1
+ {"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/hook.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAiFD;;;;;GAKG;AACH,wBAAsB,WAAW,CAC/B,MAAM,EAAE,MAAM,EACd,YAAY,CAAC,EAAE,mBAAmB,GACjC,OAAO,CAAC,IAAI,CAAC,CAkCf"}
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/hooks.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,+CAA+C;IAC/C,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAsBD;;;;GAIG;AACH,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAmBrF;AAmJD;;GAEG;AACH,wBAAsB,YAAY,CAChC,MAAM,EAAE,MAAM,EACd,IAAI,CAAC,EAAE,MAAM,EACb,OAAO,GAAE,YAAiB,GACzB,OAAO,CAAC,IAAI,CAAC,CAmBf"}
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/hooks.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,+CAA+C;IAC/C,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAsBD;;;;GAIG;AACH,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAuBrF;AAuLD;;GAEG;AACH,wBAAsB,YAAY,CAChC,MAAM,EAAE,MAAM,EACd,IAAI,CAAC,EAAE,MAAM,EACb,OAAO,GAAE,YAAiB,GACzB,OAAO,CAAC,IAAI,CAAC,CA0Bf"}
@@ -4,6 +4,7 @@ export interface ImportCommandOptions {
4
4
  output?: string;
5
5
  dryRun?: boolean;
6
6
  validate?: boolean;
7
+ force?: boolean;
7
8
  }
8
9
  export declare function importCommand(file: string, options: ImportCommandOptions): Promise<void>;
9
10
  //# sourceMappingURL=import.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"import.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/import.ts"],"names":[],"mappings":"AAoCA,wBAAsB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAsCtE;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAsB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAwE9F"}
1
+ {"version":3,"file":"import.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/import.ts"],"names":[],"mappings":"AAoCA,wBAAsB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAsCtE;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,wBAAsB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAyF9F"}
@@ -1,11 +1,14 @@
1
1
  import { type CliServices } from '../services.js';
2
2
  import type { InitOptions } from '../types.js';
3
3
  import { type AIToolTarget } from '../utils/ai-tools-detector.js';
4
+ import { type PlannedWrite } from '../utils/write-plan.js';
4
5
  /**
5
6
  * Initialize PromptScript in the current directory.
6
7
  * Creates configuration file and initial project structure.
7
8
  */
8
9
  export declare function initCommand(options: InitOptions, services?: CliServices): Promise<void>;
10
+ export declare function selectMigrationStrategy(services: CliServices): Promise<'static' | 'llm'>;
11
+ export declare function getSkillWrites(targets: AIToolTarget[]): PlannedWrite[];
9
12
  /**
10
13
  * Format target name for display using the formatter's description.
11
14
  */
@@ -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;AAoBzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C,OAAO,EAOL,KAAK,YAAY,EAElB,MAAM,+BAA+B,CAAC;AA8DvC;;;GAGG;AACH,wBAAsB,WAAW,CAC/B,OAAO,EAAE,WAAW,EACpB,QAAQ,GAAE,WAAqC,GAC9C,OAAO,CAAC,IAAI,CAAC,CAkOf;AAyfD;;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":"AASA,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;AAIvC,OAAO,EAGL,KAAK,YAAY,EAElB,MAAM,wBAAwB,CAAC;AA4DhC;;;GAGG;AACH,wBAAsB,WAAW,CAC/B,OAAO,EAAE,WAAW,EACpB,QAAQ,GAAE,WAAqC,GAC9C,OAAO,CAAC,IAAI,CAAC,CAQf;AAsUD,wBAAsB,uBAAuB,CAAC,QAAQ,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,GAAG,KAAK,CAAC,CAU9F;AAoGD,wBAAgB,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,GAAG,YAAY,EAAE,CAkCtE;AAiYD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAM7D"}
@@ -1 +1 @@
1
- {"version":3,"file":"inspect.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/inspect.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAYlD;;GAEG;AACH,wBAAsB,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAwF9F"}
1
+ {"version":3,"file":"inspect.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/inspect.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAYlD;;GAEG;AACH,wBAAsB,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAoG9F"}
@@ -1,11 +1,11 @@
1
- import type { Program } from '@promptscript/core';
1
+ import type { LockfileReference, Program } from '@promptscript/core';
2
+ export interface RegistryReferenceRoot {
3
+ repoUrl: string;
4
+ version: string;
5
+ cachePath: string;
6
+ }
2
7
  /**
3
- * Walk resolved ASTs and collect all skill reference paths that come from
4
- * a registry cache directory.
5
- *
6
- * @param ast - Resolved program AST
7
- * @param cacheBasePath - Base path of the registry cache
8
- * @returns Deduplicated list of absolute paths to registry-sourced reference files
8
+ * Collect and hash registry-sourced skill references from a resolved AST.
9
9
  */
10
- export declare function collectRegistryReferences(ast: Program, cacheBasePath: string): string[];
10
+ export declare function collectRegistryReferences(ast: Program, roots: RegistryReferenceRoot[], existing?: Record<string, LockfileReference>, lockedAt?: string): Promise<Record<string, LockfileReference>>;
11
11
  //# sourceMappingURL=lock-reference-scanner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"lock-reference-scanner.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/lock-reference-scanner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAGlD;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,GAAG,MAAM,EAAE,CA+BvF"}
1
+ {"version":3,"file":"lock-reference-scanner.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/lock-reference-scanner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAUrE,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAsB,yBAAyB,CAC7C,GAAG,EAAE,OAAO,EACZ,KAAK,EAAE,qBAAqB,EAAE,EAC9B,QAAQ,GAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAM,EAChD,QAAQ,GAAE,MAAiC,GAC1C,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC,CA8C5C"}
@@ -0,0 +1,4 @@
1
+ import type { Lockfile, PromptScriptConfig } from '@promptscript/core';
2
+ import type { RemoteImport } from './lock-scanner.js';
3
+ export declare function generateLockfileReferences(config: PromptScriptConfig, entryPath: string, localPath: string, lockfile: Lockfile, imports: RemoteImport[]): Promise<NonNullable<Lockfile['references']>>;
4
+ //# sourceMappingURL=lock-references.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lock-references.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/lock-references.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAGvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAUtD,wBAAsB,0BAA0B,CAC9C,MAAM,EAAE,kBAAkB,EAC1B,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,YAAY,EAAE,GACtB,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,CAoE9C"}
@@ -9,6 +9,12 @@ export interface RemoteImport {
9
9
  path: string;
10
10
  /** Pinned version tag, or empty string for latest */
11
11
  version: string;
12
+ /** Source file containing this import when location collection is enabled */
13
+ sourceFile?: string;
14
+ /** Source line containing this import when location collection is enabled */
15
+ sourceLine?: number;
16
+ /** Original @use source text when location collection is enabled */
17
+ rawSource?: string;
12
18
  }
13
19
  /**
14
20
  * Options for the lock scanner.
@@ -16,8 +22,16 @@ export interface RemoteImport {
16
22
  export interface ScanOptions {
17
23
  /** Base path for local/relative file resolution */
18
24
  localPath: string;
25
+ /** Base path for unaliased registry references */
26
+ registryPath?: string;
19
27
  /** Registry alias configuration (from promptscript.yaml) */
20
28
  registries?: RegistriesConfig;
29
+ /** Throw when imports cannot be read, parsed, or resolved */
30
+ strict?: boolean;
31
+ /** Return repeated remote imports instead of deduplicating them */
32
+ deduplicate?: boolean;
33
+ /** Include source file and line metadata in results */
34
+ includeLocations?: boolean;
21
35
  }
22
36
  /**
23
37
  * Scan `.prs` files starting from an entry point, recursively follow local
@@ -1 +1 @@
1
- {"version":3,"file":"lock-scanner.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/lock-scanner.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,+DAA+D;IAC/D,OAAO,EAAE,MAAM,CAAC;IAChB,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,qDAAqD;IACrD,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,mDAAmD;IACnD,SAAS,EAAE,MAAM,CAAC;IAClB,4DAA4D;IAC5D,UAAU,CAAC,EAAE,gBAAgB,CAAC;CAC/B;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,oBAAoB,CACxC,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,WAAW,GACnB,OAAO,CAAC,YAAY,EAAE,CAAC,CAwDzB"}
1
+ {"version":3,"file":"lock-scanner.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/lock-scanner.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,+DAA+D;IAC/D,OAAO,EAAE,MAAM,CAAC;IAChB,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,qDAAqD;IACrD,OAAO,EAAE,MAAM,CAAC;IAChB,6EAA6E;IAC7E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,6EAA6E;IAC7E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oEAAoE;IACpE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,mDAAmD;IACnD,SAAS,EAAE,MAAM,CAAC;IAClB,kDAAkD;IAClD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4DAA4D;IAC5D,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,6DAA6D;IAC7D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,mEAAmE;IACnE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,uDAAuD;IACvD,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,oBAAoB,CACxC,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,WAAW,GACnB,OAAO,CAAC,YAAY,EAAE,CAAC,CAmGzB"}
@@ -1,4 +1,6 @@
1
1
  import type { LockOptions } from '../types.js';
2
+ import type { LockfileDependency } from '@promptscript/core';
3
+ import { type GitAuthOptions } from '@promptscript/resolver';
2
4
  /** Path to the lockfile relative to cwd. */
3
5
  export declare const LOCKFILE_PATH = "promptscript.lock";
4
6
  /**
@@ -8,9 +10,8 @@ export declare const LOCKFILE_PATH = "promptscript.lock";
8
10
  * global config, then writes a lockfile that pins each dependency to a
9
11
  * resolved version and commit hash for reproducible builds.
10
12
  *
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.
13
+ * Existing pins are preserved unless --update is used.
14
14
  */
15
15
  export declare function lockCommand(options: LockOptions): Promise<void>;
16
+ export declare function resolveRemoteDependency(repoUrl: string, requestedVersions: string[], existing: LockfileDependency | undefined, forceUpdate: boolean, fallbackUrl?: string, auth?: GitAuthOptions): Promise<LockfileDependency>;
16
17
  //# sourceMappingURL=lock.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"lock.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/lock.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAO/C,4CAA4C;AAC5C,eAAO,MAAM,aAAa,sBAAsB,CAAC;AAEjD;;;;;;;;;;GAUG;AACH,wBAAsB,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAwHrE"}
1
+ {"version":3,"file":"lock.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/lock.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C,OAAO,KAAK,EAAY,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAGvE,OAAO,EAML,KAAK,cAAc,EACpB,MAAM,wBAAwB,CAAC;AAIhC,4CAA4C;AAC5C,eAAO,MAAM,aAAa,sBAAsB,CAAC;AAUjD;;;;;;;;GAQG;AACH,wBAAsB,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAiLrE;AAkBD,wBAAsB,uBAAuB,CAC3C,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EAAE,EAC3B,QAAQ,EAAE,kBAAkB,GAAG,SAAS,EACxC,WAAW,EAAE,OAAO,EACpB,WAAW,CAAC,EAAE,MAAM,EACpB,IAAI,CAAC,EAAE,cAAc,GACpB,OAAO,CAAC,kBAAkB,CAAC,CA4D7B"}
@@ -1,11 +1,4 @@
1
1
  import type { MigrateOptions } from '../types.js';
2
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
3
  export declare function migrateCommand(options: MigrateOptions, services?: CliServices): Promise<void>;
11
4
  //# sourceMappingURL=migrate.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"migrate.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/migrate.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,KAAK,WAAW,EAAyB,MAAM,gBAAgB,CAAC;AAmBzE,wBAAsB,cAAc,CAClC,OAAO,EAAE,cAAc,EACvB,QAAQ,GAAE,WAAqC,GAC9C,OAAO,CAAC,IAAI,CAAC,CAQf"}
@@ -1 +1 @@
1
- {"version":3,"file":"pull.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/pull.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAa/C;;;GAGG;AACH,wBAAsB,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAqErE"}
1
+ {"version":3,"file":"pull.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/pull.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAa/C;;;GAGG;AACH,wBAAsB,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAmFrE"}
@@ -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;AAOzC;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CAuChE"}
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,CAyChE"}
@@ -1 +1 @@
1
- {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../../../packages/cli/src/commands/registry/init.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,KAAK,WAAW,EAAyB,MAAM,mBAAmB,CAAC;AAO5E;;GAEG;AACH,wBAAsB,mBAAmB,CACvC,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,OAAO,EAAE,mBAAmB,EAC5B,QAAQ,GAAE,WAAqC,GAC9C,OAAO,CAAC,IAAI,CAAC,CAiGf"}
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../../../packages/cli/src/commands/registry/init.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,KAAK,WAAW,EAAyB,MAAM,mBAAmB,CAAC;AAO5E;;GAEG;AACH,wBAAsB,mBAAmB,CACvC,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,OAAO,EAAE,mBAAmB,EAC5B,QAAQ,GAAE,WAAqC,GAC9C,OAAO,CAAC,IAAI,CAAC,CA8Gf"}
@@ -1,6 +1,7 @@
1
+ import type { RegistryListOptions } from '../../types.js';
1
2
  /**
2
3
  * Show merged registry alias mappings from all config levels.
3
4
  * Project config overrides user (global) config — last write wins.
4
5
  */
5
- export declare function registryListCommand(): Promise<void>;
6
+ export declare function registryListCommand(options?: RegistryListOptions): Promise<void>;
6
7
  //# sourceMappingURL=list.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../../packages/cli/src/commands/registry/list.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAE1D;;;GAGG;AACH,wBAAsB,mBAAmB,CAAC,OAAO,GAAE,mBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CAkG1F"}
@@ -1 +1 @@
1
- {"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../../../../../../packages/cli/src/commands/registry/publish.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,KAAK,WAAW,EAAyB,MAAM,mBAAmB,CAAC;AAI5E;;GAEG;AACH,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,OAAO,EAAE,sBAAsB,EAC/B,QAAQ,GAAE,WAAqC,GAC9C,OAAO,CAAC,IAAI,CAAC,CA4Gf"}
1
+ {"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../../../../../../packages/cli/src/commands/registry/publish.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,KAAK,WAAW,EAAyB,MAAM,mBAAmB,CAAC;AAI5E;;GAEG;AACH,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,OAAO,EAAE,sBAAsB,EAC/B,QAAQ,GAAE,WAAqC,GAC9C,OAAO,CAAC,IAAI,CAAC,CAkKf"}
@@ -1 +1 @@
1
- {"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../../../../packages/cli/src/commands/registry/validate.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAE,KAAK,WAAW,EAAyB,MAAM,mBAAmB,CAAC;AAI5E;;GAEG;AACH,wBAAsB,uBAAuB,CAC3C,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,OAAO,EAAE,uBAAuB,EAChC,QAAQ,GAAE,WAAqC,GAC9C,OAAO,CAAC,IAAI,CAAC,CA6Df"}
1
+ {"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../../../../packages/cli/src/commands/registry/validate.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAE,KAAK,WAAW,EAAyB,MAAM,mBAAmB,CAAC;AAI5E;;GAEG;AACH,wBAAsB,uBAAuB,CAC3C,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,OAAO,EAAE,uBAAuB,EAChC,QAAQ,GAAE,WAAqC,GAC9C,OAAO,CAAC,IAAI,CAAC,CAmEf"}
@@ -5,5 +5,5 @@ import type { ResolveCommandOptions } from '../types.js';
5
5
  * Prints alias expansion, repo URL, version from lockfile, cache location,
6
6
  * and resolved file type without performing any network operations.
7
7
  */
8
- export declare function resolveCommand(importPath: string, _options: ResolveCommandOptions): Promise<void>;
8
+ export declare function resolveCommand(importPath: string, options: ResolveCommandOptions): Promise<void>;
9
9
  //# sourceMappingURL=resolve-cmd.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"resolve-cmd.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/resolve-cmd.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAoIzD;;;;;GAKG;AACH,wBAAsB,cAAc,CAClC,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,IAAI,CAAC,CAiKf"}
@@ -1 +1 @@
1
- {"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/serve.ts"],"names":[],"mappings":"AAAA,UAAU,YAAY;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAsB,YAAY,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CASvE"}
1
+ {"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/serve.ts"],"names":[],"mappings":"AAEA,UAAU,YAAY;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAsB,YAAY,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAuBvE"}
@@ -1 +1 @@
1
- {"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/skills.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAsB9F;;;;;;;;;;;;GAYG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAiB1D;AA+TD;;;;;;;GAOG;AACH,wBAAsB,gBAAgB,CACpC,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,IAAI,CAAC,CAkJf;AAED;;;;;GAKG;AACH,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,IAAI,CAAC,CAwDf;AAED;;;;GAIG;AACH,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,CAgCvD;AAED;;;;;GAKG;AACH,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,IAAI,CAAC,CA+Hf"}
1
+ {"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/skills.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AA4J9F;;;;;;;;;;;;GAYG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAiB1D;AAsbD;;;;;;;GAOG;AACH,wBAAsB,gBAAgB,CACpC,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,IAAI,CAAC,CA0Lf;AAED;;;;;GAKG;AACH,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,IAAI,CAAC,CA4If;AAED;;;;GAIG;AACH,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,CAgCvD;AAED;;;;;GAKG;AACH,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,IAAI,CAAC,CA2Jf"}
@@ -5,9 +5,6 @@ import type { UpdateOptions } from '../types.js';
5
5
  * When a package argument is provided, only that dependency is updated.
6
6
  * Otherwise all dependencies are re-resolved.
7
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
8
  */
12
9
  export declare function updateCommand(packageArg: string | undefined, options: UpdateOptions): Promise<void>;
13
10
  //# sourceMappingURL=update.d.ts.map
@@ -1 +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;AAQjD;;;;;;;;;GASG;AACH,wBAAsB,aAAa,CACjC,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,IAAI,CAAC,CA4Gf"}
1
+ {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/update.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAGjD;;;;;;GAMG;AACH,wBAAsB,aAAa,CACjC,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,IAAI,CAAC,CAOf"}
@@ -1 +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
+ {"version":3,"file":"upgrade.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/upgrade.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,cAAc;IAC7B,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAyBD;;GAEG;AACH,wBAAsB,cAAc,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAqI3E"}
@@ -3,11 +3,11 @@ import type { ValidateOptions } from '../types.js';
3
3
  * Replace syntax version within the @meta block only.
4
4
  * Returns the modified content, or null if no change needed.
5
5
  */
6
- export declare function fixSyntaxVersion(content: string, currentVersion: string, targetVersion: string): string | null;
6
+ export declare function fixSyntaxVersion(content: string, currentVersion: string, targetVersion: string, metaOffset?: number): string | null;
7
7
  /**
8
8
  * Recursively discover all .prs files in a directory.
9
9
  */
10
- export declare function discoverPrsFiles(dir: string): string[];
10
+ export declare function discoverPrsFiles(dir: string, strict?: boolean, includeSymbolicLinks?: boolean): string[];
11
11
  /**
12
12
  * Validate PromptScript files without generating output.
13
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;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,CAoE7E"}
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;AAiLnD;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,aAAa,EAAE,MAAM,EACrB,UAAU,CAAC,EAAE,MAAM,GAClB,MAAM,GAAG,IAAI,CAgFf;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,MAAM,EACX,MAAM,GAAE,OAAe,EACvB,oBAAoB,GAAE,OAAe,GACpC,MAAM,EAAE,CAoBV;AAcD;;GAEG;AACH,wBAAsB,eAAe,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAyF7E"}
@@ -1,10 +1,9 @@
1
1
  import type { VendorSyncOptions, VendorCheckOptions } from '../types.js';
2
2
  /**
3
- * Copy all cached dependencies to .promptscript/vendor/.
3
+ * Clone all locked dependencies into .promptscript/vendor/.
4
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.
5
+ * Reads promptscript.lock to determine which repositories and commits are
6
+ * pinned, then creates a self-contained tree for offline and CI builds.
8
7
  */
9
8
  export declare function vendorSyncCommand(options: VendorSyncOptions): Promise<void>;
10
9
  /**
@@ -1 +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"}
1
+ {"version":3,"file":"vendor.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/commands/vendor.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAsBzE;;;;;GAKG;AACH,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAmGjF;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,QAAQ,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAoFpF"}
@@ -3,6 +3,12 @@ import type { PromptScriptConfig } from '@promptscript/core';
3
3
  * List of config file names to search for.
4
4
  */
5
5
  export declare const CONFIG_FILES: string[];
6
+ /**
7
+ * Interpolate environment variables in a string.
8
+ * Supports ${VAR} and ${VAR:-default} syntax.
9
+ * For missing variables without default: warns and returns empty string.
10
+ */
11
+ export declare function interpolateEnvVars(text: string): string;
6
12
  /**
7
13
  * Find the config file in the current directory.
8
14
  * @param customPath - Optional custom config file path.