copilotz 1.0.0-rc.42 → 1.0.0-rc.44
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
## 1.0.0-rc.44 — 2026-11-12
|
|
2
|
+
|
|
3
|
+
(rc.43 was tagged but never published: a file wasn't formatted. This is it.)
|
|
4
|
+
|
|
5
|
+
- **The app opens in Firefox again.** Once its service worker was installed, every page load
|
|
6
|
+
answered `{"error":"Not found"}`: the worker passes a page's own request on, and Firefox sends
|
|
7
|
+
that as `Sec-Fetch-Mode: same-origin` rather than `navigate`, which the page took for a script's
|
|
8
|
+
`fetch`. A request whose destination is a document (`Sec-Fetch-Dest: document`, or `iframe`) is
|
|
9
|
+
now a page too, so browsers that already have the worker are fixed by the server alone; a script's
|
|
10
|
+
`fetch` still gets a 404.
|
|
11
|
+
|
|
1
12
|
## 1.0.0-rc.42 — 2026-11-11
|
|
2
13
|
|
|
3
14
|
(rc.41 was tagged but never published: a test failed on Node. This is it.)
|
package/README.md
CHANGED
|
@@ -162,7 +162,7 @@ OPENAI_API_KEY=sk-… node salon.ts # or bun salon.ts, or deno run -A salon.t
|
|
|
162
162
|
```
|
|
163
163
|
|
|
164
164
|
On Deno, map the name `copilotz` in `deno.json`
|
|
165
|
-
(`"copilotz": "jsr:@copilotz/copilotz@^1.0.0-rc.
|
|
165
|
+
(`"copilotz": "jsr:@copilotz/copilotz@^1.0.0-rc.44"`) so the imports read the same everywhere.
|
|
166
166
|
Copilotz runs on Node, Deno and Bun, and it's built on web standards for Cloudflare Workers and the
|
|
167
167
|
browser.
|
|
168
168
|
|
package/hosts/web/server.js
CHANGED
|
@@ -144,14 +144,17 @@ ${look(theme)}${installable(title)}<title>${title}</title>
|
|
|
144
144
|
</html>`;
|
|
145
145
|
};
|
|
146
146
|
/**
|
|
147
|
-
* Whether a GET is a browser navigating (`Sec-Fetch-Mode: navigate
|
|
148
|
-
*
|
|
149
|
-
*
|
|
147
|
+
* Whether a GET is a browser navigating (`Sec-Fetch-Mode: navigate`, or a
|
|
148
|
+
* page's own request passed on by the service worker, which some browsers
|
|
149
|
+
* send as `same-origin`: its destination is still a document), or, from one
|
|
150
|
+
* that doesn't say, one asking for a page (`Accept` with HTML, or anything,
|
|
151
|
+
* or none): the page is for them; a script's `fetch` gets a 404.
|
|
150
152
|
*/
|
|
151
153
|
const navigating = (request) => {
|
|
152
154
|
const mode = request.headers.get("sec-fetch-mode");
|
|
155
|
+
const dest = request.headers.get("sec-fetch-dest");
|
|
153
156
|
if (mode !== null)
|
|
154
|
-
return mode === "navigate";
|
|
157
|
+
return mode === "navigate" || dest === "document" || dest === "iframe";
|
|
155
158
|
const accept = request.headers.get("accept");
|
|
156
159
|
return accept === null || accept.includes("text/html") || accept.includes("*/*");
|
|
157
160
|
};
|
package/package.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** The computer program's version, as `computer.info` and `--version` say it, and its builds are named. */
|
|
2
|
-
export declare const VERSION = "1.0.0-rc.
|
|
2
|
+
export declare const VERSION = "1.0.0-rc.44";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** The computer program's version, as `computer.info` and `--version` say it, and its builds are named. */
|
|
2
|
-
export const VERSION = "1.0.0-rc.
|
|
2
|
+
export const VERSION = "1.0.0-rc.44";
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* ```ts
|
|
16
16
|
* plugins: [...plugins, await computerDownloads()]
|
|
17
|
-
* plugins: [...plugins, await computerDownloads({ dir: "dist/computer/1.0.0-rc.
|
|
17
|
+
* plugins: [...plugins, await computerDownloads({ dir: "dist/computer/1.0.0-rc.44" })]
|
|
18
18
|
* plugins: [...plugins, await computerDownloads({ url: "https://downloads.example.com/computer/" })]
|
|
19
19
|
* ```
|
|
20
20
|
*/
|