@volter/supercode-teams 0.2.31 → 0.2.33
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/package.json +1 -1
- package/server/store-core.mjs +3 -1
- package/worker/wrangler.toml +13 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volter/supercode-teams",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.33",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A machine daemon serving this machine's doors, and a local or remote Teams server for shared session discovery, OpenTelemetry ingestion and access to enrolled machines.",
|
|
6
6
|
"license": "MIT",
|
package/server/store-core.mjs
CHANGED
|
@@ -84,7 +84,9 @@ export function createStoreHandlers({ all, get, run, tx }) {
|
|
|
84
84
|
ordinals=all('SELECT ordinal FROM messages WHERE team_id=? AND session_id=? AND revision=? ORDER BY ordinal',[teamId,session.id,revision]).map(row=>row.ordinal);
|
|
85
85
|
}
|
|
86
86
|
const pageOrdinals=ordinals.slice(-tail),remaining=ordinals.slice(0,-tail);
|
|
87
|
-
|
|
87
|
+
// A page is a run of one revision's ordinals, read as a range: a hosted SQLite binds at most 100 variables, and a
|
|
88
|
+
// page of more messages than that, as an IN list, failed ("too many SQL variables").
|
|
89
|
+
const rows=pageOrdinals.length?all('SELECT * FROM messages WHERE team_id=? AND session_id=? AND revision=? AND ordinal>=? AND ordinal<=? ORDER BY ordinal',[teamId,session.id,revision,pageOrdinals[0],pageOrdinals[pageOrdinals.length-1]]).filter(row=>pageOrdinals.includes(row.ordinal)):[];
|
|
88
90
|
const version=get('SELECT descriptor_json FROM session_versions WHERE team_id=? AND session_id=? AND revision=?',[teamId,session.id,revision]);
|
|
89
91
|
if(!version)domainError(404,'not_found','session revision not found');
|
|
90
92
|
let descriptorJson=version.descriptor_json;
|
package/worker/wrangler.toml
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
# A hosted Teams server on Cloudflare: one Worker, one Durable Object (SQLite).
|
|
2
2
|
# supercode teams server token | npx wrangler secret put SUPERCODE_TEAMS_BOOTSTRAP_TOKEN
|
|
3
|
-
# npx wrangler deploy --config sdk/teams/worker/wrangler.toml
|
|
4
|
-
#
|
|
5
|
-
# owner's first credential (`supercode teams login <origin> --token-stdin`).
|
|
3
|
+
# npx wrangler deploy --config sdk/teams/worker/wrangler.toml --name <worker> \
|
|
4
|
+
# --var PUBLIC_ORIGIN:https://<worker>.<account>.workers.dev --var INIT_TEAM:<first team>
|
|
5
|
+
# The token printed above is the owner's first credential (`supercode teams login <origin> --token-stdin`).
|
|
6
|
+
#
|
|
7
|
+
# A deployment's variables live with the deployment (the first deploy's --var, or the dashboard), not here:
|
|
8
|
+
# keep_vars leaves them in place, so a later deploy of new code never resets its origin or issuers.
|
|
9
|
+
# PUBLIC_ORIGIN the https origin the Worker is served at (required)
|
|
10
|
+
# INIT_TEAM the first team's name, used once at bootstrap
|
|
11
|
+
# VOLTER_ISSUER optional: members sign in with Volter (supercode teams login --volter); the issuer
|
|
12
|
+
# must have this origin registered as a resource
|
|
13
|
+
# DELEGATED_ISSUER optional: a workplace (RH2) whose delegated tokens open published panes and folders and
|
|
14
|
+
# bound sessions; its keys are at <issuer>/.well-known/jwks.json
|
|
6
15
|
name = "supercode-teams"
|
|
7
16
|
main = "index.mjs"
|
|
8
17
|
compatibility_date = "2026-09-01"
|
|
9
18
|
compatibility_flags = ["nodejs_compat"]
|
|
10
|
-
|
|
11
|
-
[vars]
|
|
12
|
-
PUBLIC_ORIGIN = "https://supercode-teams.example.workers.dev"
|
|
13
|
-
INIT_TEAM = "Team"
|
|
14
|
-
# Optional: members sign in with Volter (supercode teams login --volter); the
|
|
15
|
-
# issuer must have this origin registered as a resource.
|
|
16
|
-
# VOLTER_ISSUER = "https://id.volter.ai"
|
|
17
|
-
# Optional: a workplace (RH2) whose delegated tokens open one pane or folder in the
|
|
18
|
-
# hosted viewer (/view); its keys are at <issuer>/.well-known/jwks.json.
|
|
19
|
-
# DELEGATED_ISSUER = "https://pilot.runhuman.com"
|
|
19
|
+
keep_vars = true
|
|
20
20
|
|
|
21
21
|
[[durable_objects.bindings]]
|
|
22
22
|
name = "TEAMS_SERVER"
|