copilotz 1.0.0-rc.15 → 1.0.0-rc.16
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 +6 -0
- package/README.md +2 -2
- package/hosts/orgs/mod.js +8 -2
- package/package.json +1 -1
- package/plugins/access/directory/actions/org.js +3 -3
- package/plugins/compute/computers/program/version.d.ts +1 -1
- package/plugins/compute/computers/program/version.js +1 -1
- package/plugins/compute/computers/resources/downloads.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## 1.0.0-rc.16 — 2026-11-02
|
|
2
|
+
|
|
3
|
+
- **Fixed:** staff by email weren't staff anywhere but going into an org. `org.mine` asked without
|
|
4
|
+
their email, so anyone signed in with Google, whose id isn't their email, had no console and no
|
|
5
|
+
"Enter as staff". It takes `email` now, and the orgs host passes the one they verified.
|
|
6
|
+
|
|
1
7
|
## 1.0.0-rc.15 — 2026-11-02
|
|
2
8
|
|
|
3
9
|
- **Enter as staff, in your own org too.** Staff who belong to an org go in as one of its people, as
|
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ bun add copilotz # Bun
|
|
|
22
22
|
deno add jsr:@copilotz/copilotz # Deno (or `deno add npm:copilotz`)
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
On Deno, name it `copilotz` in `deno.json` (`"copilotz": "jsr:@copilotz/copilotz@^1.0.0-rc.
|
|
25
|
+
On Deno, name it `copilotz` in `deno.json` (`"copilotz": "jsr:@copilotz/copilotz@^1.0.0-rc.16"`),
|
|
26
26
|
and the imports below are the same everywhere. Some pieces need a package of their own, installed
|
|
27
27
|
beside it: `esbuild` to bundle the web host on Node, `@electric-sql/pglite` for PostgreSQL in the
|
|
28
28
|
process, and `@types/react` for the front ends' types.
|
|
@@ -204,7 +204,7 @@ and an app serves it from there by default:
|
|
|
204
204
|
import { computerDownloads } from "copilotz/plugins/compute/downloads";
|
|
205
205
|
|
|
206
206
|
plugins: [...plugins, await computerDownloads()], // this Copilotz's release
|
|
207
|
-
plugins: [...plugins, await computerDownloads({ dir: "dist/computer/1.0.0-rc.
|
|
207
|
+
plugins: [...plugins, await computerDownloads({ dir: "dist/computer/1.0.0-rc.16" })], // its own: /computer/download/
|
|
208
208
|
plugins: [...plugins, await computerDownloads({ url: "https://downloads.example.com/computer/" })], // or elsewhere
|
|
209
209
|
```
|
|
210
210
|
|
package/hosts/orgs/mod.js
CHANGED
|
@@ -290,7 +290,10 @@ export function orgsHost(options) {
|
|
|
290
290
|
const who = await signedIn(request);
|
|
291
291
|
if (!who)
|
|
292
292
|
return null;
|
|
293
|
-
const { staff } = await directory.call("org.mine", {
|
|
293
|
+
const { staff } = await directory.call("org.mine", {
|
|
294
|
+
person: who.person,
|
|
295
|
+
...(who.email ? { email: who.email } : {}),
|
|
296
|
+
});
|
|
294
297
|
return staff ? who : null;
|
|
295
298
|
};
|
|
296
299
|
/** Stops an org's runtime, so nothing writes while its rows move or go. */
|
|
@@ -437,7 +440,10 @@ export function orgsHost(options) {
|
|
|
437
440
|
if (!who)
|
|
438
441
|
return json({ error: "Not signed in" }, { status: 401 });
|
|
439
442
|
const [{ orgs, staff }, { invites }] = await Promise.all([
|
|
440
|
-
directory.call("org.mine", {
|
|
443
|
+
directory.call("org.mine", {
|
|
444
|
+
person: who.person,
|
|
445
|
+
...(who.email ? { email: who.email } : {}),
|
|
446
|
+
}),
|
|
441
447
|
who.email
|
|
442
448
|
? directory.call("invite.mine", { email: who.email })
|
|
443
449
|
: Promise.resolve({ invites: [] }),
|
package/package.json
CHANGED
|
@@ -57,10 +57,10 @@ export const createOrgAction = defineAction({
|
|
|
57
57
|
},
|
|
58
58
|
});
|
|
59
59
|
export const myOrgsAction = defineAction({
|
|
60
|
-
description: "The orgs someone belongs to, the one they were in last first",
|
|
60
|
+
description: "The orgs someone belongs to, the one they were in last first, and if they're staff",
|
|
61
61
|
input: {
|
|
62
62
|
type: "object",
|
|
63
|
-
properties: { person },
|
|
63
|
+
properties: { person, email: { type: "string" } },
|
|
64
64
|
required: ["person"],
|
|
65
65
|
additionalProperties: false,
|
|
66
66
|
},
|
|
@@ -85,7 +85,7 @@ export const myOrgsAction = defineAction({
|
|
|
85
85
|
// The last entered first, then personal before teams, then by name.
|
|
86
86
|
.sort((a, b) => (entered.get(b.id) ?? "").localeCompare(entered.get(a.id) ?? "") ||
|
|
87
87
|
(a.kind === b.kind ? a.name.localeCompare(b.name) : a.kind === "personal" ? -1 : 1)),
|
|
88
|
-
staff: await isStaff(ctx, input.person),
|
|
88
|
+
staff: await isStaff(ctx, input.person, input.email),
|
|
89
89
|
};
|
|
90
90
|
},
|
|
91
91
|
});
|
|
@@ -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.16";
|
|
@@ -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.16";
|
|
@@ -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.16" })]
|
|
18
18
|
* plugins: [...plugins, await computerDownloads({ url: "https://downloads.example.com/computer/" })]
|
|
19
19
|
* ```
|
|
20
20
|
*/
|