copilotz 1.0.0-rc.40 → 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,31 @@
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
+
12
+ ## 1.0.0-rc.42 — 2026-11-11
13
+
14
+ (rc.41 was tagged but never published: a test failed on Node. This is it.)
15
+
16
+ - **In a person's own Personal space, what its agents drew on from elsewhere no longer gets in the
17
+ way.** Only that person is there, and they see every space their agents read for them:
18
+ - **Agents' work there is no longer refused.** An agent working for someone from their Personal
19
+ space, having read another space in that turn (a memory that came up by itself, a conversation
20
+ it read, earlier messages that did), could still write it into any space they may, yet not into
21
+ their Personal space itself where labels aren't kept (a board, a document, a file, a computer
22
+ job): `needs_share` ("That would show what came from … to people who can't see it"), and the
23
+ turn failed. Since rc.39 memory reads everywhere there, so this hit most turns. It now goes as
24
+ it is; messages there still keep their marks, for the day the chat moves.
25
+ - **The chat no longer says "Uses …. Not everyone here can see it."** under its messages there.
26
+ They keep their `sources`; once the chat moves to a shared space, the notice and Share show
27
+ where they're true.
28
+
1
29
  ## 1.0.0-rc.40 — 2026-11-11
2
30
 
3
31
  - **MCP checks can return fresh results while declaring their state changes accurately.** Set
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.40"`) so the imports read the same everywhere.
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
 
@@ -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`), or,
148
- * from one that doesn't say, one asking for a page (`Accept` with HTML, or
149
- * anything, or none): the page is for them; a script's `fetch` gets a 404.
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,6 +1,6 @@
1
1
  {
2
2
  "name": "copilotz",
3
- "version": "1.0.0-rc.40",
3
+ "version": "1.0.0-rc.44",
4
4
  "description": "Copilotz: one runtime for Node, Deno, Bun, Cloudflare Workers and the browser.",
5
5
  "keywords": [
6
6
  "agents",
@@ -26,7 +26,8 @@
26
26
  * used what not everyone in its space can see carries those sources (in
27
27
  * a collection with `labels: true`), and only those who reach them all
28
28
  * read it until someone who does `share`s it. An agent writing it
29
- * anywhere else is refused (`needs_share`).
29
+ * anywhere else is refused (`needs_share`), unless it works for someone
30
+ * from their own Personal space: that's theirs to do, as if they'd done it.
30
31
  * - **People by name:** each person's profile (collection `profile`: their
31
32
  * name and picture, as sign-in verified them, kept as it changes), which
32
33
  * anyone in the org reads; wherever an id would show, the name does
@@ -26,7 +26,8 @@
26
26
  * used what not everyone in its space can see carries those sources (in
27
27
  * a collection with `labels: true`), and only those who reach them all
28
28
  * read it until someone who does `share`s it. An agent writing it
29
- * anywhere else is refused (`needs_share`).
29
+ * anywhere else is refused (`needs_share`), unless it works for someone
30
+ * from their own Personal space: that's theirs to do, as if they'd done it.
30
31
  * - **People by name:** each person's profile (collection `profile`: their
31
32
  * name and picture, as sign-in verified them, kept as it changes), which
32
33
  * anyone in the org reads; wherever an id would show, the name does
@@ -10,12 +10,15 @@
10
10
  * to choose to show it there. Documents that are members (agents people
11
11
  * make, contacts) carry nothing: they're meant for whoever they work with.
12
12
  *
13
- * What's written elsewhere for someone from their own Personal space carries
14
- * nothing either: only they see what's said there, and what their agents do
15
- * there for them, anywhere they may, is theirs, as if they'd done it (an
16
- * assistant they asked in private), for whoever sees where it goes. The record
17
- * says who did it, for whom, and from where. What's written in the Personal
18
- * space itself keeps its marks, for the day its conversation moves.
13
+ * What's written for someone from their own Personal space is never refused:
14
+ * only they see what's said there, and what their agents do there for them,
15
+ * anywhere they may, is theirs, as if they'd done it (an assistant they asked
16
+ * in private). Written elsewhere, it carries nothing, for whoever sees where
17
+ * it goes; the record says who did it, for whom, and from where. Written in
18
+ * the Personal space itself, where labels are kept (its chat's messages), it
19
+ * keeps its marks, for the day its conversation moves; anything else there
20
+ * (a board, a document, a file) goes as it is: only they see it, and moving it
21
+ * is theirs to do.
19
22
  *
20
23
  * A document that may be shared on its own (a chat: other collections'
21
24
  * documents are its parts) labels as itself, and so do its parts (a chat's
@@ -92,10 +92,11 @@ export const labels = {
92
92
  const foreign = [...found];
93
93
  if (!foreign.length)
94
94
  return doc;
95
- // Done elsewhere for someone from their own Personal space: theirs, as if they'd written it,
96
- // for whoever sees where it goes (on the record as who did it, for them, from there). What's
97
- // written in Personal itself keeps its marks: the conversation may move.
98
- if (space !== actor.in && await ownPersonal(actor, ctx))
95
+ // Done for someone from their own Personal space: theirs, as if they'd written it (on the
96
+ // record as who did it, for them, from there). Elsewhere, for whoever sees where it goes; in
97
+ // Personal itself, what keeps labels keeps its marks (the conversation may move), and the
98
+ // rest goes as it is: only they see it there.
99
+ if ((space !== actor.in || !shared.labels) && await ownPersonal(actor, ctx))
99
100
  return doc;
100
101
  // Where it works (`in`): an agent writing elsewhere what not everyone there can see is refused.
101
102
  const elsewhere = typeof actor.in === "string" && actor.in !== space;
@@ -10,7 +10,7 @@ import { Transcript } from "./transcript.js";
10
10
  import { waitingOn } from "./waiting.js";
11
11
  import { byAgent, names } from "./who.js";
12
12
  import { say } from "./words.js";
13
- import { nameOf, namesIn, picturesIn } from "../../../../access/spaces/contract.js";
13
+ import { nameOf, namesIn, PERSONAL, picturesIn } from "../../../../access/spaces/contract.js";
14
14
  import { DELEGATED } from "../../shared/types.js";
15
15
  /** Messages this close after the one before, from the same author, go under its name. */
16
16
  const GROUP_MS = 5 * 60_000;
@@ -43,8 +43,11 @@ export const conversationView = (t, ctx) => {
43
43
  // Who answers in its space, and what each is.
44
44
  const team = ctx.db.collection("thread").query("agents", thread.in ? { in: thread.in } : {})
45
45
  .value;
46
- // The spaces messages drew on, by name: read once here, for every message that says so.
47
- const drawn = [...new Set(said.flatMap((m) => m.sources ?? []))];
46
+ // The spaces messages drew on, by name: read once here, for every message that says so. Not in
47
+ // a Personal space (nor until the space is known): only its person is there, who sees all its
48
+ // agents drew on for them (its messages keep their marks unsaid, for the day the chat moves).
49
+ const alone = !space || space.kind === PERSONAL;
50
+ const drawn = alone ? [] : [...new Set(said.flatMap((m) => m.sources ?? []))];
48
51
  const sources = drawn.length
49
52
  ? ctx.db.collection("space").find({ _id: { $in: drawn } }).value ?? []
50
53
  : [];
@@ -114,7 +117,7 @@ export const conversationView = (t, ctx) => {
114
117
  usual: thread.agents ?? [],
115
118
  ...(follows ? { follows: true } : {}),
116
119
  ...(asked.has(m._id) ? { asked: true } : {}),
117
- ...(m.sources?.length ? { sources: named(m.sources) } : {}),
120
+ ...(m.sources?.length ? { sources: alone ? [] : named(m.sources) } : {}),
118
121
  ...(queued.length ? { queued } : {}),
119
122
  });
120
123
  }), live.map((l) => ctx.show("web.live", l, { thread: t._id, who }))] }), over.length
@@ -11,7 +11,8 @@
11
11
  * indented. One of yours that waits for agents at work on an earlier one
12
12
  * says so, with a way to send it now (`hints.queued`: their ids; see
13
13
  * queued.tsx). One that drew on spaces not everyone here sees says so
14
- * (`hints.sources`: their names), and someone who sees them can share it.
14
+ * (`hints.sources`: their names; none in a Personal space, where only its
15
+ * person is), and someone who sees them can share it.
15
16
  * One sent for someone by what they set up (`via`: a routine) says so. One
16
17
  * that says why its agent couldn't start (the org's limit) is a calm notice,
17
18
  * with its link; one where the agent itself failed is an error.
@@ -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.40";
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.40";
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.40" })]
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
  */