@promptscript/cli 1.17.1 → 1.18.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 (48) hide show
  1. package/README.md +20 -4
  2. package/index.js +10002 -1959
  3. package/package.json +4 -3
  4. package/skills/promptscript/SKILL.md +33 -4
  5. package/src/cli.d.ts.map +1 -1
  6. package/src/commands/check.d.ts +1 -1
  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 +1 -1
  10. package/src/commands/diff.d.ts.map +1 -1
  11. package/src/commands/explain.d.ts +6 -0
  12. package/src/commands/explain.d.ts.map +1 -0
  13. package/src/commands/index.d.ts +1 -0
  14. package/src/commands/index.d.ts.map +1 -1
  15. package/src/commands/lock.d.ts +5 -1
  16. package/src/commands/lock.d.ts.map +1 -1
  17. package/src/commands/migrate.d.ts.map +1 -1
  18. package/src/commands/skills.d.ts.map +1 -1
  19. package/src/index.d.ts +2 -0
  20. package/src/index.d.ts.map +1 -1
  21. package/src/prettier/post-format.d.ts +2 -1
  22. package/src/prettier/post-format.d.ts.map +1 -1
  23. package/src/types.d.ts +19 -0
  24. package/src/types.d.ts.map +1 -1
  25. package/src/utils/build-profile.d.ts +5 -0
  26. package/src/utils/build-profile.d.ts.map +1 -0
  27. package/src/utils/bundled-skill.d.ts +6 -0
  28. package/src/utils/bundled-skill.d.ts.map +1 -0
  29. package/src/utils/conflict-detector.d.ts +6 -2
  30. package/src/utils/conflict-detector.d.ts.map +1 -1
  31. package/src/utils/diff-report.d.ts +76 -0
  32. package/src/utils/diff-report.d.ts.map +1 -0
  33. package/src/utils/legacy-factory-hooks.d.ts +2 -0
  34. package/src/utils/legacy-factory-hooks.d.ts.map +1 -1
  35. package/src/utils/managed-output-cleanup.d.ts +3 -1
  36. package/src/utils/managed-output-cleanup.d.ts.map +1 -1
  37. package/src/utils/migration-prompt.d.ts +1 -1
  38. package/src/utils/migration-prompt.d.ts.map +1 -1
  39. package/src/utils/output-ownership.d.ts +8 -0
  40. package/src/utils/output-ownership.d.ts.map +1 -0
  41. package/src/utils/output-plan.d.ts +21 -0
  42. package/src/utils/output-plan.d.ts.map +1 -0
  43. package/src/utils/registry-resolver.d.ts +3 -1
  44. package/src/utils/registry-resolver.d.ts.map +1 -1
  45. package/src/utils/skill-lock-integrity.d.ts +20 -0
  46. package/src/utils/skill-lock-integrity.d.ts.map +1 -0
  47. package/src/utils/target-config.d.ts +8 -0
  48. package/src/utils/target-config.d.ts.map +1 -0
@@ -0,0 +1,20 @@
1
+ import type { LockfileDependency } from '@promptscript/core';
2
+ /** Integrity marker used when a dependency cannot claim a complete hash. */
3
+ export declare const PENDING_INTEGRITY = "sha256-pending";
4
+ /**
5
+ * Return whether an integrity value is a complete SHA-256 SRI hash.
6
+ */
7
+ export declare function isConcreteIntegrity(integrity: string): boolean;
8
+ /**
9
+ * Hash the canonical representation of managed child entries.
10
+ *
11
+ * Entries are represented as JSON objects containing only their source key and
12
+ * integrity, sorted by source key. Missing or incomplete children keep the
13
+ * owner in its pending state.
14
+ */
15
+ export declare function calculateManagedSkillIntegrity(dependencies: Readonly<Record<string, LockfileDependency>>, childSources: readonly string[]): string;
16
+ /**
17
+ * Refresh aggregate integrity for managed Markdown repository owners.
18
+ */
19
+ export declare function refreshManagedSkillOwnerIntegrity(dependencies: Record<string, LockfileDependency>): void;
20
+ //# sourceMappingURL=skill-lock-integrity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skill-lock-integrity.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/utils/skill-lock-integrity.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAE7D,4EAA4E;AAC5E,eAAO,MAAM,iBAAiB,mBAAmB,CAAC;AASlD;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAE9D;AAED;;;;;;GAMG;AACH,wBAAgB,8BAA8B,CAC5C,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC,EAC1D,YAAY,EAAE,SAAS,MAAM,EAAE,GAC9B,MAAM,CAuBR;AAED;;GAEG;AACH,wBAAgB,iCAAiC,CAC/C,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,GAC/C,IAAI,CAON"}
@@ -0,0 +1,8 @@
1
+ import type { TargetConfig } from '@promptscript/core';
2
+ export interface ParsedTarget {
3
+ name: string;
4
+ config?: TargetConfig;
5
+ }
6
+ export declare function isTargetConfig(value: unknown): value is TargetConfig;
7
+ export declare function parseTargetEntries(targets: unknown): ParsedTarget[];
8
+ //# sourceMappingURL=target-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"target-config.d.ts","sourceRoot":"","sources":["../../../../../packages/cli/src/utils/target-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,YAAY,CAEpE;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,YAAY,EAAE,CA8BnE"}