@cloud-cli/on 1.63.4 → 1.65.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/on.js CHANGED
@@ -104,7 +104,7 @@ async function m() {
104
104
  let [{ QueueManager: r }, { SecretStore: i }, { WebhookServer: a }, { startWorkers: o }, { WorkflowRepository: s }, { WorkflowScheduler: c }, { OidcUserRepository: l }] = await Promise.all([
105
105
  import("./queue-DhXXzxm3.js"),
106
106
  import("./secrets-DhkqmawU.js"),
107
- import("./server-D-hcsRbi.js"),
107
+ import("./server-DWHXyNZq.js"),
108
108
  import("./worker-BwNyfSpp.js"),
109
109
  import("./workflows-DQQIVH7c.js"),
110
110
  import("./scheduler-2d1UPcxM.js"),
package/dist/pwa.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export declare const webManifest: string;
2
- export declare const appIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\">\n <rect width=\"512\" height=\"512\" rx=\"112\" fill=\"#030712\"/>\n <path d=\"M128 144h256v224H128z\" fill=\"#111827\" stroke=\"#6366f1\" stroke-width=\"24\"/>\n <path d=\"m174 218 62 38-62 38M260 300h78\" fill=\"none\" stroke=\"#f9fafb\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"24\"/>\n <circle cx=\"365\" cy=\"147\" r=\"47\" fill=\"#10b981\" stroke=\"#030712\" stroke-width=\"18\"/>\n</svg>";
3
- export declare const serviceWorker = "self.addEventListener('install', () => self.skipWaiting());\nself.addEventListener('activate', (event) => event.waitUntil(self.clients.claim()));\nself.addEventListener('push', (event) => {\n const data = event.data?.json() || {};\n event.waitUntil(self.registration.showNotification(data.title || 'Runner Engine', {\n body: data.body || 'A job status changed.',\n icon: '/app-icon.svg',\n badge: '/app-icon.svg',\n data: { url: data.url || '/runs' },\n }));\n});\nself.addEventListener('notificationclick', (event) => {\n event.notification.close();\n const target = event.notification.data?.url || '/runs';\n event.waitUntil((async () => {\n const windows = await self.clients.matchAll({ type: 'window', includeUncontrolled: true });\n const existing = windows.find((client) => new URL(client.url).pathname === target);\n if (existing) return existing.focus();\n return self.clients.openWindow(target);\n })());\n});";
2
+ export declare const appIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\">\n <rect width=\"512\" height=\"512\" fill=\"#263d32\"/>\n <g fill=\"#c8e6a8\">\n <path d=\"M112 185 400 118v44l-288 67z\"/>\n <path d=\"M112 253 324 204v44l-212 49z\"/>\n <path d=\"M112 321 250 289v44l-138 32z\"/>\n </g>\n</svg>";
3
+ export declare const serviceWorker = "self.addEventListener('install', () => self.skipWaiting());\nself.addEventListener('activate', (event) => event.waitUntil(self.clients.claim()));\nself.addEventListener('push', (event) => {\n const data = event.data?.json() || {};\n event.waitUntil(self.registration.showNotification(data.title || 'Flow', {\n body: data.body || 'A workflow run changed.',\n icon: '/app-icon.svg',\n badge: '/app-icon.svg',\n data: { url: data.url || '/runs' },\n }));\n});\nself.addEventListener('notificationclick', (event) => {\n event.notification.close();\n const target = event.notification.data?.url || '/runs';\n event.waitUntil((async () => {\n const windows = await self.clients.matchAll({ type: 'window', includeUncontrolled: true });\n const existing = windows.find((client) => new URL(client.url).pathname === target);\n if (existing) return existing.focus();\n return self.clients.openWindow(target);\n })());\n});";
4
4
  //# sourceMappingURL=pwa.d.ts.map
package/dist/pwa.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"pwa.d.ts","sourceRoot":"","sources":["../src/pwa.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,QAkBtB,CAAC;AAEH,eAAO,MAAM,OAAO,+eAKb,CAAC;AAER,eAAO,MAAM,aAAa,07BAoBtB,CAAC"}
1
+ {"version":3,"file":"pwa.d.ts","sourceRoot":"","sources":["../src/pwa.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,QAkBtB,CAAC;AAEH,eAAO,MAAM,OAAO,wTAOb,CAAC;AAER,eAAO,MAAM,aAAa,m7BAoBtB,CAAC"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Safely normalize a return URL for use in OIDC authentication flows.
3
+ *
4
+ * Preserves path + query string, rejects protocol-relative URLs, schemes,
5
+ * backslashes, and control characters. The result should be passed through
6
+ * encodeURIComponent when used as a query parameter value (e.g. ?url=<returnTo>).
7
+ *
8
+ * @param requestedReturnTo - The raw return URL string (pathname [?query] [#fragment])
9
+ * @returns A safe path [?query] suitable for OIDC returnTo or as a login
10
+ * redirect URL. Callers should apply encodeURIComponent when interpolating
11
+ * the result into a URL query parameter.
12
+ */
13
+ export declare function safeReturnUrl(requestedReturnTo: string): string;
14
+ /**
15
+ * Checks if an OIDC authentication attempt should be allowed for a given
16
+ * request path and HTTP method. This is used to determine whether the global
17
+ * OIDC session check applies.
18
+ *
19
+ * Browser document GET/HEAD requests to UI routes require a valid OIDC session.
20
+ * API endpoints, static assets, OIDC auth routes, and route-specific controls
21
+ * are exempt from this global check.
22
+ *
23
+ * @param pathname - The URL pathname to check
24
+ * @param method - The HTTP method (e.g. 'GET', 'POST', 'HEAD')
25
+ * @returns true if the route is exempt from the global OIDC auth check
26
+ */
27
+ export declare function isExemptFromGlobalOidcAuth(pathname: string, method: string): boolean;
28
+ /** True only for known browser-document routes that should require an OIDC session. */
29
+ export declare function isProtectedUiRoute(pathname: string, method: string): boolean;
30
+ //# sourceMappingURL=safe-return-url.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"safe-return-url.d.ts","sourceRoot":"","sources":["../src/safe-return-url.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,iBAAiB,EAAE,MAAM,GAAG,MAAM,CA8C/D;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAkDpF;AAED,uFAAuF;AACvF,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAmB5E"}