@node9/policy-engine 2.33.2 → 2.34.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.
package/dist/index.d.mts CHANGED
@@ -404,6 +404,8 @@ interface FileAccess {
404
404
  operation: 'read' | 'write' | 'remove' | 'create';
405
405
  path: string;
406
406
  cwd?: string;
407
+ /** A read whose content leaves the machine as a request body or an upload. */
408
+ upload?: true;
407
409
  /** Unquoted shell pattern. Quoted metacharacters are escaped in this value. */
408
410
  glob?: string;
409
411
  /** The pattern is find's, not the shell's: `*` also selects dotfiles. */
@@ -999,12 +1001,18 @@ declare function redactText(text: string): {
999
1001
  found: string[];
1000
1002
  };
1001
1003
 
1002
- type PackageEcosystem = 'npm' | 'PyPI';
1004
+ /**
1005
+ * The OSV ecosystem name, verbatim: it is the index directory, the bucket path
1006
+ * of the OSV archive and the `ecosystem` of the online query at once. `VSCode`
1007
+ * covers both marketplaces (OSV files Open VSX records as
1008
+ * `VSCode:https://open-vsx.org` inside the same archive).
1009
+ */
1010
+ type PackageEcosystem = 'npm' | 'PyPI' | 'RubyGems' | 'crates.io' | 'Go' | 'NuGet' | 'Maven' | 'Packagist' | 'VSCode';
1003
1011
  interface PackageInstallRequest {
1004
1012
  ecosystem: PackageEcosystem;
1005
1013
  /** The front-end that would install it: npm, pnpm, yarn, bun, npx, pip, uv, poetry … */
1006
1014
  manager: string;
1007
- /** Registry name, normalised: npm as written (scope kept); PyPI per PEP 503. */
1015
+ /** Registry name: npm as written (scope kept); PyPI per PEP 503; the others as written. */
1008
1016
  name: string;
1009
1017
  /** Exact pinned version when the spec names one; otherwise undefined. */
1010
1018
  version?: string;
@@ -2013,7 +2021,7 @@ declare const LONG_OUTPUT_THRESHOLD_BYTES: number;
2013
2021
  * and fails CI when the hash drifts without a version bump — forgetting
2014
2022
  * is loud, not silent.
2015
2023
  */
2016
- declare const CANONICAL_EXTRACTOR_VERSION = "canonical-v27";
2024
+ declare const CANONICAL_EXTRACTOR_VERSION = "canonical-v28";
2017
2025
  /**
2018
2026
  * SHA-256 prefix of the detector-source files
2019
2027
  * (canonical.ts + pii.ts + destructive-regex.ts).
@@ -2024,7 +2032,7 @@ declare const CANONICAL_EXTRACTOR_VERSION = "canonical-v27";
2024
2032
  * files changed, this hash must change too, and you must consciously
2025
2033
  * decide whether to bump CANONICAL_EXTRACTOR_VERSION."
2026
2034
  */
2027
- declare const CANONICAL_EXTRACTOR_HASH = "60cee75c7e2a5c7c";
2035
+ declare const CANONICAL_EXTRACTOR_HASH = "11df698796585cbe";
2028
2036
  declare function extractCanonicalFindings(call: ToolCallEntry, ctx: ExtractContext): CanonicalFinding[];
2029
2037
  declare function extractSessionLevelFindings(calls: ReadonlyArray<SessionToolCall>, ctx: SessionExtractContext): CanonicalFinding[];
2030
2038
  /**
package/dist/index.d.ts CHANGED
@@ -404,6 +404,8 @@ interface FileAccess {
404
404
  operation: 'read' | 'write' | 'remove' | 'create';
405
405
  path: string;
406
406
  cwd?: string;
407
+ /** A read whose content leaves the machine as a request body or an upload. */
408
+ upload?: true;
407
409
  /** Unquoted shell pattern. Quoted metacharacters are escaped in this value. */
408
410
  glob?: string;
409
411
  /** The pattern is find's, not the shell's: `*` also selects dotfiles. */
@@ -999,12 +1001,18 @@ declare function redactText(text: string): {
999
1001
  found: string[];
1000
1002
  };
1001
1003
 
1002
- type PackageEcosystem = 'npm' | 'PyPI';
1004
+ /**
1005
+ * The OSV ecosystem name, verbatim: it is the index directory, the bucket path
1006
+ * of the OSV archive and the `ecosystem` of the online query at once. `VSCode`
1007
+ * covers both marketplaces (OSV files Open VSX records as
1008
+ * `VSCode:https://open-vsx.org` inside the same archive).
1009
+ */
1010
+ type PackageEcosystem = 'npm' | 'PyPI' | 'RubyGems' | 'crates.io' | 'Go' | 'NuGet' | 'Maven' | 'Packagist' | 'VSCode';
1003
1011
  interface PackageInstallRequest {
1004
1012
  ecosystem: PackageEcosystem;
1005
1013
  /** The front-end that would install it: npm, pnpm, yarn, bun, npx, pip, uv, poetry … */
1006
1014
  manager: string;
1007
- /** Registry name, normalised: npm as written (scope kept); PyPI per PEP 503. */
1015
+ /** Registry name: npm as written (scope kept); PyPI per PEP 503; the others as written. */
1008
1016
  name: string;
1009
1017
  /** Exact pinned version when the spec names one; otherwise undefined. */
1010
1018
  version?: string;
@@ -2013,7 +2021,7 @@ declare const LONG_OUTPUT_THRESHOLD_BYTES: number;
2013
2021
  * and fails CI when the hash drifts without a version bump — forgetting
2014
2022
  * is loud, not silent.
2015
2023
  */
2016
- declare const CANONICAL_EXTRACTOR_VERSION = "canonical-v27";
2024
+ declare const CANONICAL_EXTRACTOR_VERSION = "canonical-v28";
2017
2025
  /**
2018
2026
  * SHA-256 prefix of the detector-source files
2019
2027
  * (canonical.ts + pii.ts + destructive-regex.ts).
@@ -2024,7 +2032,7 @@ declare const CANONICAL_EXTRACTOR_VERSION = "canonical-v27";
2024
2032
  * files changed, this hash must change too, and you must consciously
2025
2033
  * decide whether to bump CANONICAL_EXTRACTOR_VERSION."
2026
2034
  */
2027
- declare const CANONICAL_EXTRACTOR_HASH = "60cee75c7e2a5c7c";
2035
+ declare const CANONICAL_EXTRACTOR_HASH = "11df698796585cbe";
2028
2036
  declare function extractCanonicalFindings(call: ToolCallEntry, ctx: ExtractContext): CanonicalFinding[];
2029
2037
  declare function extractSessionLevelFindings(calls: ReadonlyArray<SessionToolCall>, ctx: SessionExtractContext): CanonicalFinding[];
2030
2038
  /**