@skrr-ai/cli 0.1.124 → 0.1.126

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.
@@ -34,7 +34,7 @@ const TOKEN_CHAR = "(?:[A-Za-z0-9._-]|%(?:25)*(?:2[DdEe]|3[0-9]|4[1-9A-Fa-f]|5[0
34
34
  const PREVIEW_TOKEN = new RegExp(`pvw(?:_|%(?:25)*5[Ff])${TOKEN_CHAR}+`, "g");
35
35
  const UNDERSCORE = "(?:_|%(?:25)*5[Ff])";
36
36
  const DOT = "(?:\\.|%(?:25)*2[Ee])";
37
- const SIGNED_CREDENTIAL = new RegExp(`(wsi|pinv|usr|adm2)${UNDERSCORE}(?=[0-9a-f]{32}${DOT})${TOKEN_CHAR}+`, "g");
37
+ const SIGNED_CREDENTIAL = new RegExp(`(wsi|pinv|iinv|usr|adm2)${UNDERSCORE}(?=[0-9a-f]{32}${DOT})${TOKEN_CHAR}+`, "g");
38
38
  const LEGACY_OPERATOR_CODE = new RegExp(`(adm)${UNDERSCORE}(?=[A-Za-z0-9_-]{43}(?![A-Za-z0-9_-]))[A-Za-z0-9_-]{43}`, "g");
39
39
  const QR_SIGN_IN_REDACTION = "[redacted]";
40
40
  const escapedLiteral = (value) => [...value].map((char) => {
@@ -72,7 +72,7 @@ function redactQrSignInText(value) {
72
72
  const standaloneQuery = /(?:^|[?&])direction=(?:mobile_approves_web|web_approves_mobile)(?:&|$)/.test(value) ? value.replace(QR_REQUEST_QUERY, `$1$2${QR_SIGN_IN_REDACTION}`) : value;
73
73
  return standaloneQuery.replace(QR_REQUEST_PATH, `$1${QR_SIGN_IN_REDACTION}`).replace(QR_LINK_QUERY, (_match, prefix, query) => prefix + query.replace(QR_REQUEST_QUERY, `$1$2${QR_SIGN_IN_REDACTION}`)).replace(QR_SECRET_ASSIGNMENT, `$1${QR_SIGN_IN_REDACTION}`);
74
74
  }
75
- const CREDENTIAL_HINTS = ["pvw", "wsi", "pinv", "usr", "adm"];
75
+ const CREDENTIAL_HINTS = ["pvw", "wsi", "pinv", "iinv", "usr", "adm"];
76
76
  const credentialMarker = (_match, prefix) => `${prefix}_[redacted]`;
77
77
  function redactPreviewTokens(value) {
78
78
  if (typeof value !== "string")
@@ -82,7 +82,7 @@ const DOT = '(?:\\.|%(?:25)*2[Ee])';
82
82
  * prefix is captured so the marker can say which kind it was. `usr_<40 hex>`, `usr_00000001` and `/usr_profile` have no
83
83
  * dot after exactly 32 hex characters, so they match nothing.
84
84
  */
85
- const SIGNED_CREDENTIAL = new RegExp(`(wsi|pinv|usr|adm2)${UNDERSCORE}(?=[0-9a-f]{32}${DOT})${TOKEN_CHAR}+`, 'g');
85
+ const SIGNED_CREDENTIAL = new RegExp(`(wsi|pinv|iinv|usr|adm2)${UNDERSCORE}(?=[0-9a-f]{32}${DOT})${TOKEN_CHAR}+`, 'g');
86
86
  /**
87
87
  * The older operator code: `adm_` and exactly 43 base64url characters (32 random bytes), not followed by another one.
88
88
  * A shorter or longer run of letters is a name, not this credential. The characters are the plain alphabet and not
@@ -134,7 +134,7 @@ function redactQrSignInText(value) {
134
134
  .replace(QR_SECRET_ASSIGNMENT, `$1${QR_SIGN_IN_REDACTION}`);
135
135
  }
136
136
  /** Cheap test before the older prefix-based credential expressions. */
137
- const CREDENTIAL_HINTS = ['pvw', 'wsi', 'pinv', 'usr', 'adm'];
137
+ const CREDENTIAL_HINTS = ['pvw', 'wsi', 'pinv', 'iinv', 'usr', 'adm'];
138
138
  const credentialMarker = (_match, prefix) => `${prefix}_[redacted]`;
139
139
  export function redactPreviewTokens(value) {
140
140
  if (typeof value !== 'string')
@@ -4,6 +4,10 @@
4
4
  "main": "dist/cjs/index.js",
5
5
  "types": "dist/esm/index.d.ts",
6
6
  "exports": {
7
+ "./scheduled-stream-wire": {
8
+ "types": "./dist/cjs/scheduled-stream-wire.d.cts",
9
+ "default": "./dist/cjs/scheduled-stream-wire.cjs"
10
+ },
7
11
  "./desktop-daemon-proof": {
8
12
  "import": {
9
13
  "types": "./dist/esm/desktopDaemonProof.d.ts",