@jskit-ai/agent-docs 0.1.320 → 0.1.322
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/guide/agent/app-extras/assistant-conversation.md +33 -0
- package/guide/agent/app-extras/assistant.md +37 -0
- package/guide/agent/app-setup/database-layer.md +3 -0
- package/guide/agent/framework/data-access.md +147 -9
- package/package.json +1 -1
- package/patterns/feature-package/example/booking-engine/package.json +1 -1
- package/patterns/minimal-foundation/example/package.json +3 -3
- package/patterns/shell-foundation/example/package.json +4 -4
- package/patterns/shell-foundation/example/packages/main/package.json +1 -1
- package/reference/autogen/PATTERN_INDEX.md +38 -38
- package/reference/autogen/packages/assistant-core.md +3 -1
- package/reference/autogen/packages/http-runtime.md +6 -0
- package/reference/autogen/packages/kernel.md +4 -0
- package/reference/autogen/packages/resource-runtime.md +1 -1
- package/reference/autogen/packages/workspaces-core.md +7 -2
- package/skills/jskit/references/data-access.md +147 -9
- package/skills/jskit/references/database-layer.md +3 -0
- package/skills/jskit/references/heuristics/INDEX.md +1 -1
- package/skills/jskit/references/heuristics/client-requests.md +1 -0
- package/skills/jskit/references/heuristics/data-access.md +4 -1
- package/skills/jskit/references/heuristics/row-policies.md +3 -1
- package/skills/jskit/references/pattern-index.md +38 -38
- package/skills/jskit/references/patterns/app/minimal-foundation/example/package.json +3 -3
- package/skills/jskit/references/patterns/app/shell-foundation/example/package.json +4 -4
- package/skills/jskit/references/patterns/app/shell-foundation/example/packages/main/package.json +1 -1
- package/skills/jskit/references/patterns/auth/accounts-hub/example/package.json +3 -3
- package/skills/jskit/references/patterns/auth/oidc-sign-in/example/package.json +2 -2
- package/skills/jskit/references/patterns/auth/supabase-auth/example/package.json +1 -1
- package/skills/jskit/references/patterns/connectors/calendar-cli/example/package.json +4 -4
- package/skills/jskit/references/patterns/crud/crud-feature-package/example/packages/books/package.json +3 -3
- package/skills/jskit/references/patterns/database/mysql-application/example/package.json +2 -2
- package/skills/jskit/references/patterns/database/postgres-application/example/package.json +2 -2
- package/skills/jskit/references/patterns/realtime/realtime-application/example/package.json +2 -2
- package/skills/jskit/references/patterns/server/feature-package/example/booking-engine/package.json +1 -1
- package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users/package.json +3 -3
- package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users-workspace/package.json +6 -6
|
@@ -39,6 +39,7 @@ through its handle's calls, and every call takes the call's `options` last:
|
|
|
39
39
|
| `patchMany(rows, options)` | many records, each with its own changes |
|
|
40
40
|
| `patchWhere(filters, changes, options)`, `deleteWhere(filters, options)` | every matching row |
|
|
41
41
|
| `lock(id, txOptions)`, `lockMany(ids, txOptions)`, `lockWhere(filters, txOptions)` | rows locked until the transaction ends |
|
|
42
|
+
| `lockPages(filters, txOptions)` | every matching row locked, handed over a page at a time ([Layer 4](#layer-4-locks)) |
|
|
42
43
|
| `lockOrCreate({ id, ...initial }, options, work)` | a keyed record locked, created first when missing, for `work` |
|
|
43
44
|
| `claim({ filters, sort, take }, txOptions)` | the next rows no other worker holds |
|
|
44
45
|
| `withTransaction(options, work)` | one transaction; `work` gets its `txOptions` |
|
|
@@ -83,6 +84,7 @@ the filters match.
|
|
|
83
84
|
| scoped query | The read-only Knex builder `scopedQuery()` returns, with ownership and the row policy already applied. |
|
|
84
85
|
| system scope | Why a feature works across every workspace and user, declared with `systemScope`. |
|
|
85
86
|
| system context | The context of that work, from `systemContext(reason)`; `forWorkspace`, `forUser` and `forWorkspaceUser` narrow it. |
|
|
87
|
+
| member context | The context of work done as one member of one workspace, from `workspaces.memberContext({ workspaceId, userId }, { context: systemContext(reason) })`: resolved as the member's request is, and signed in as them. |
|
|
86
88
|
| `txOptions` | What `withTransaction(options, work)` hands `work`: only the call's context and its transaction, `{ context, trx }`, passed to every call inside. |
|
|
87
89
|
| record | What a handle answers: `{ id, ...fields }`, relationships as ids, included records nested. |
|
|
88
90
|
|
|
@@ -328,6 +330,43 @@ code reads by the key with a filter and writes by it with an upsert,
|
|
|
328
330
|
guide](existing-application-migration.md#moving-hand-written-sql-behind-resources)
|
|
329
331
|
has the migration for a table that exists already.
|
|
330
332
|
|
|
333
|
+
A table its feature counts but must never read back row by row (who took part
|
|
334
|
+
in an anonymous survey whose answers are stored without names) takes a `uuid`
|
|
335
|
+
primary key the code makes with `crypto.randomUUID()`, never a sequence, and a
|
|
336
|
+
unique index on the columns that identify a row, the ownership column among
|
|
337
|
+
them. A random v4 id carries no time and no order, and MySQL and MariaDB store
|
|
338
|
+
rows in primary key order, so the stored order is random too; a sequence or a
|
|
339
|
+
time-ordered id (UUIDv7, or the v1 that MySQL's and MariaDB's `UUID()` makes)
|
|
340
|
+
would let whoever reads the rows match them to the order of the answers.
|
|
341
|
+
PostgreSQL's heap keeps the order rows were inserted in, which a direct read
|
|
342
|
+
of the table shows whatever the key, so the protection that holds everywhere is
|
|
343
|
+
that no code reads the rows: the owning feature offers only an insert and a
|
|
344
|
+
count, functions of its own over its handle, and ownership keeps every other
|
|
345
|
+
feature from reading the table.
|
|
346
|
+
|
|
347
|
+
```js
|
|
348
|
+
import { randomUUID } from "node:crypto";
|
|
349
|
+
|
|
350
|
+
// the owning feature's whole API over the table: record that a member took part, and count who did
|
|
351
|
+
const recordParticipation = ({ recordId, userId }, options) =>
|
|
352
|
+
participations.createMany([{ id: randomUUID(), recordId, userId }], {
|
|
353
|
+
...options,
|
|
354
|
+
onConflict: { keys: ["workspaceId", "recordId", "userId"], action: "ignore" }
|
|
355
|
+
});
|
|
356
|
+
const countParticipants = async (recordId, options) => {
|
|
357
|
+
const [{ participants }] = await participations.aggregate({ measures: { participants: { count: "*" } }, filters: { recordId } }, options);
|
|
358
|
+
return participants;
|
|
359
|
+
};
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
`onConflict` ignore makes a second participation a no-op that keeps the stored
|
|
363
|
+
row and its id, and a new row takes the id it brings. Only a clash on the keys'
|
|
364
|
+
unique index is ignored, so an id that is already another row's still fails.
|
|
365
|
+
Plain `create({ id: randomUUID(), recordId, userId }, options)` refuses the
|
|
366
|
+
second participation instead, with the unique key's error; inside a
|
|
367
|
+
transaction the failed insert fails the whole transaction (PostgreSQL aborts it
|
|
368
|
+
at once), so work that must go on uses the ignore.
|
|
369
|
+
|
|
331
370
|
A route that reads or writes without an action (a provider's callback, a
|
|
332
371
|
download it streams) takes its options from `await request.callOptions()`: the
|
|
333
372
|
context the same request's action would get, its user, workspace and route
|
|
@@ -731,11 +770,14 @@ could update or hide another workspace's row. `merge` is refused under a row
|
|
|
731
770
|
policy; use `ignore`, then `patchMany`. A table with no owners and no row
|
|
732
771
|
policy, keyed by a natural id such as an email, may key the upsert on the id
|
|
733
772
|
alone: `onConflict: { keys: ["id"], action: "merge" }`, with an id on every
|
|
734
|
-
row, creates the record or replaces the fields given in one statement.
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
773
|
+
row, creates the record or replaces the fields given in one statement. A merge's
|
|
774
|
+
rows carry no other id; an `ignore`'s may, for ids the code makes (a random
|
|
775
|
+
`uuid`): a new row takes its own, and a row the keys match keeps the stored one
|
|
776
|
+
(see the count-only table above). Of two upserts at once the later stays, so a
|
|
777
|
+
counter that must count both is created plainly and its duplicate retried
|
|
778
|
+
instead. Inserting and catching the duplicate works only outside a transaction:
|
|
779
|
+
inside one, the failed insert fails the whole transaction, so use an upsert
|
|
780
|
+
there.
|
|
739
781
|
|
|
740
782
|
A transaction whose insert loses a race for a unique key (another request with
|
|
741
783
|
the same idempotency key committed first) runs once more:
|
|
@@ -823,6 +865,43 @@ const [booked] = await bookings.queryAll({ filters: { seatIds: [seatId] }, take:
|
|
|
823
865
|
await seats.lock(seatId, txOptions);
|
|
824
866
|
```
|
|
825
867
|
|
|
868
|
+
A whole set of rows the work decides on (a register's entries, an account's
|
|
869
|
+
movements) is read the same way: every writer of the set first locks the one
|
|
870
|
+
row that governs it (the register, the account), and the work locks that row
|
|
871
|
+
before its first plain read. The plain reads after it (`queryAll`,
|
|
872
|
+
`queryPages`, `aggregate`) are then current and stay so until commit, at any
|
|
873
|
+
size, for one statement more. Work that joins its caller's transaction cannot
|
|
874
|
+
know whether the caller already read plainly, and on MySQL and MariaDB a lock
|
|
875
|
+
taken after that no longer moves the snapshot, so it reads the set with
|
|
876
|
+
locking reads, which see the latest rows whatever the snapshot:
|
|
877
|
+
`lockPages(filters, txOptions)` locks every row the filters select, a page of
|
|
878
|
+
up to 1,000 (`pageSize`) at a time, in id order, each page one locking read
|
|
879
|
+
after the last id of the page before. It still locks the governing row first,
|
|
880
|
+
since PostgreSQL keeps no new row out of a page already locked. In a request it
|
|
881
|
+
throws past the request row limit, as `queryPages` does. Isolation is not the
|
|
882
|
+
tool: MySQL and MariaDB fix it when a transaction starts, and READ COMMITTED
|
|
883
|
+
alone reads each page at a different moment. `patchWhere` and `deleteWhere`
|
|
884
|
+
select their rows with a locking read on MySQL and MariaDB, so they too see
|
|
885
|
+
what committed after the transaction's first plain read. With MariaDB's
|
|
886
|
+
`innodb_snapshot_isolation` on, a locking read that meets a row changed since
|
|
887
|
+
the snapshot fails (errno 1020) instead, and `withTransaction` runs the work
|
|
888
|
+
again when it opened the transaction.
|
|
889
|
+
|
|
890
|
+
```js
|
|
891
|
+
// good: inside the caller's transaction, the register locked, then every entry locked and read as it is now
|
|
892
|
+
const closeRegister = (registerId, options) => registers.withTransaction({ ...options, joinOnly: true }, async (txOptions) => {
|
|
893
|
+
await registers.lock(registerId, { ...txOptions, lockMode: "share", fields: ["id"] });
|
|
894
|
+
let total = 0;
|
|
895
|
+
for await (const page of entries.lockPages({ registerId }, { ...txOptions, lockMode: "share", fields: ["amount"] })) {
|
|
896
|
+
total += page.reduce((sum, entry) => sum + entry.amount, 0);
|
|
897
|
+
}
|
|
898
|
+
return total;
|
|
899
|
+
});
|
|
900
|
+
|
|
901
|
+
// bad: a plain read inside a joined transaction reads the caller's snapshot, which can miss entries
|
|
902
|
+
const all = await entries.queryAll({ filters: { registerId } }, txOptions);
|
|
903
|
+
```
|
|
904
|
+
|
|
826
905
|
On MySQL and MariaDB a locking read locks every row it examines, so two rules
|
|
827
906
|
apply there. Lock ids taken from your own scoped reads, never a list straight
|
|
828
907
|
from a request: every id listed is locked, a hidden one too, before it is left
|
|
@@ -835,6 +914,8 @@ the ownership columns and the columns the filters fix to one value, it holds
|
|
|
835
914
|
the sort's columns, ascending, and then nothing but the id, and the sort's
|
|
836
915
|
fields go one way (all ascending or all descending). A unique key the filters
|
|
837
916
|
fix whole, as a membership's workspace and user are, needs nothing more.
|
|
917
|
+
`lockPages` locks in id order, so its index holds nothing after the ownership
|
|
918
|
+
columns and the columns the filters fix but the id.
|
|
838
919
|
|
|
839
920
|
A worker taking the next job uses `claim({ filters, sort, take }, txOptions)`,
|
|
840
921
|
which skips rows another worker holds. A record that serializes work on a key
|
|
@@ -1291,6 +1372,38 @@ const SettlementFeature = defineFeature({
|
|
|
1291
1372
|
request's `caller.userId`, so a job for a person sees what that person may
|
|
1292
1373
|
see, and a job for no one its whole scope. Work on one person's rows only
|
|
1293
1374
|
takes their scope (`forUser`, `forWorkspaceUser`) or filters its reads.
|
|
1375
|
+
- Work done as one member of a workspace, running what their own request would
|
|
1376
|
+
(an action that checks their permissions, code that reads `context.actor`):
|
|
1377
|
+
a record started for the person it is assigned to, a notification for one
|
|
1378
|
+
recipient, a submission synced for the person who made it. It asks
|
|
1379
|
+
workspaces-core for the member's context, never builds one by hand, since a
|
|
1380
|
+
hand-built context drifts from what a request resolves:
|
|
1381
|
+
|
|
1382
|
+
```js
|
|
1383
|
+
// requires: { workspaces: "workspaces.core", actions: "runtime.actions" }; the feature declares systemScope
|
|
1384
|
+
const member = await workspaces.memberContext(
|
|
1385
|
+
{ workspaceId: record.workspaceId, userId: record.assigneeId },
|
|
1386
|
+
{ context: systemContext("start each scheduled record for the person it is assigned to") }
|
|
1387
|
+
);
|
|
1388
|
+
await actions.execute({ actionId: "crud.visits.create", input, context: { ...member, surface: "app" } });
|
|
1389
|
+
```
|
|
1390
|
+
|
|
1391
|
+
`memberContext` resolves the member as their request on a `workspace_user`
|
|
1392
|
+
route does, by the same reads: the workspace, their active membership (the
|
|
1393
|
+
owner's ensured), their role's permissions and the settings. It refuses as
|
|
1394
|
+
that request does: a missing or deleted workspace is 404
|
|
1395
|
+
`workspaces.workspace.notFound`, and a user who is no active member of it
|
|
1396
|
+
(removed, inactive, never one, or no user) 403
|
|
1397
|
+
`workspaces.workspace.accessDenied`. The context signs the member in, unlike
|
|
1398
|
+
`{ actorId }`: `resolveActorId` answers them, an action checks their
|
|
1399
|
+
permissions, a row policy is told `caller.kind` "user", request row limits
|
|
1400
|
+
apply and other owners' hidden fields stay hidden. Its scope is the workspace
|
|
1401
|
+
and the member, so an event reaches that member there. Only a system context
|
|
1402
|
+
makes one, and an action it runs names the surface the member's request would
|
|
1403
|
+
use. It reads no sign-in state: JSKIT keeps no disabled flag on users, so an
|
|
1404
|
+
account its auth provider refuses at sign-in (a local account marked
|
|
1405
|
+
disabled) is still resolved; a job that must skip such people asks the
|
|
1406
|
+
provider first.
|
|
1294
1407
|
- A job finds its units with an `aggregate` grouped by the ownership field,
|
|
1295
1408
|
which a system context may group by (and count distinct) even when the table
|
|
1296
1409
|
hides it, then runs each unit scoped to it. It reads the units in pages, all
|
|
@@ -1311,6 +1424,27 @@ const SettlementFeature = defineFeature({
|
|
|
1311
1424
|
}
|
|
1312
1425
|
}
|
|
1313
1426
|
```
|
|
1427
|
+
- A job whose units are the workspaces themselves (each workspace's daily
|
|
1428
|
+
digest, whether or not it has rows yet) pages through them with the
|
|
1429
|
+
`workspaces` owner API, never the table by name:
|
|
1430
|
+
`workspaces.listForSystem({ afterId, limit }, { context: systemContext(reason) })`
|
|
1431
|
+
answers the `{ id, slug }` of the workspaces that are not deleted, in id
|
|
1432
|
+
order, after `afterId` (from the first when it is null), at most `limit` (1 to
|
|
1433
|
+
`pageLimits().request`, 100 by default). Each page is one statement however
|
|
1434
|
+
many workspaces there are: pass a page's last id as the next `afterId`, and a
|
|
1435
|
+
page shorter than `limit` is the last. Any other context, a `forWorkspace`
|
|
1436
|
+
job's too, is refused, as are an `afterId` that is no workspace id and a
|
|
1437
|
+
`limit` out of range:
|
|
1438
|
+
|
|
1439
|
+
```js
|
|
1440
|
+
// requires: { workspaceRecords: "workspaces" }; the feature declares systemScope
|
|
1441
|
+
for (let afterId = null; ;) {
|
|
1442
|
+
const page = await workspaceRecords.listForSystem({ afterId, limit: 100 }, { context: systemContext("send every workspace's daily digest") });
|
|
1443
|
+
for (const { id } of page) await sendDigest({ context: systemContext("send every workspace's daily digest").forWorkspace(id) });
|
|
1444
|
+
if (page.length < 100) break;
|
|
1445
|
+
afterId = page.at(-1).id;
|
|
1446
|
+
}
|
|
1447
|
+
```
|
|
1314
1448
|
- A job that must learn each row's owner across workspaces names the hidden
|
|
1315
1449
|
ownership field in its read's `fields`, `queryAll({ filters, fields:
|
|
1316
1450
|
["workspaceId", "email"] }, { context })`, as a system context may do through
|
|
@@ -1326,9 +1460,10 @@ const SettlementFeature = defineFeature({
|
|
|
1326
1460
|
its reason, read from the string literal at the call: a reason kept in a
|
|
1327
1461
|
constant reads as none.
|
|
1328
1462
|
- A system context comes only from `systemScope`, and a context's scope only
|
|
1329
|
-
from the request
|
|
1330
|
-
lint refuses `createSystemContext` and
|
|
1331
|
-
context naming two workspaces or two users
|
|
1463
|
+
from the request, from `forWorkspace`, `forUser` and `forWorkspaceUser`, or
|
|
1464
|
+
from `workspaces.memberContext`: lint refuses `createSystemContext` and
|
|
1465
|
+
hand-written `scopeValues`, and a context naming two workspaces or two users
|
|
1466
|
+
throws.
|
|
1332
1467
|
- A table only the feature's own background work reads and writes, whose rows
|
|
1333
1468
|
belong to no workspace or user (an agent's runs, a server's leases, a queue
|
|
1334
1469
|
keyed by something other than an owner), takes ownership `system`. Every call
|
|
@@ -1370,7 +1505,7 @@ never open one of its own, passes `{ ...options, joinOnly: true }`: called
|
|
|
1370
1505
|
outside a transaction it throws a TypeError before the work runs. Code never
|
|
1371
1506
|
asks whether it runs in a transaction: `withTransaction` joins the caller's,
|
|
1372
1507
|
`outermost` refuses one, `joinOnly` requires one, and `lock`, `lockMany`,
|
|
1373
|
-
`lockWhere` and `claim` refuse to run outside one; `lockOrCreate` opens its own
|
|
1508
|
+
`lockWhere`, `lockPages` and `claim` refuse to run outside one; `lockOrCreate` opens its own
|
|
1374
1509
|
(and retries a lost insert race only then).
|
|
1375
1510
|
|
|
1376
1511
|
```js
|
|
@@ -1441,6 +1576,9 @@ workspaces. A report that reads people, their settings, workspaces or
|
|
|
1441
1576
|
memberships beside its own rows joins `joinSource({ alias, filters },
|
|
1442
1577
|
options)` of `users.profiles`, `users.settings`, `workspaces` or
|
|
1443
1578
|
`workspaces.memberships` ([Layer 5](#layer-5-reports-the-resource-cannot-express)).
|
|
1579
|
+
A background job that visits every workspace pages them with
|
|
1580
|
+
`workspaces.listForSystem({ afterId, limit }, options)`, in its system context
|
|
1581
|
+
([Background work](#background-work)).
|
|
1444
1582
|
|
|
1445
1583
|
An app that had a table resource of its own over a JSKIT table (such as
|
|
1446
1584
|
`users`) deletes it: its CRUD contract is built on the package's table resource
|
|
@@ -330,6 +330,9 @@ the application's `knexfile.js`:
|
|
|
330
330
|
prepare), the files run one at a time on the connected database. A copy
|
|
331
331
|
named like the application's database or `PROD_DB_NAME`, or a server that
|
|
332
332
|
cannot be reached, fails the run instead.
|
|
333
|
+
Every file starts from the snapshot, rows included: a copy an earlier file of
|
|
334
|
+
the run used is restored before the next file takes it, so no file sees what
|
|
335
|
+
another wrote.
|
|
333
336
|
- The snapshot holds the schema as the engine reports it and the rows the
|
|
334
337
|
migrations wrote, including the migration ledger. On MySQL and MariaDB it is
|
|
335
338
|
each table's `SHOW CREATE TABLE` and rows, in
|
|
@@ -42,7 +42,7 @@ How to use it:
|
|
|
42
42
|
- [server-search.md](./server-search.md)
|
|
43
43
|
- `actualField`, `storage.column`, `storage.writeSerializer`, `storage.virtual`, `queryFields`, computed field, virtual field, projection, `defaultTo`, datetime write serialization, temporalPrecision, json-rest-schema dates
|
|
44
44
|
- [table-resource-fields.md](./table-resource-fields.md)
|
|
45
|
-
- data access, database table, knex, raw, SQL, repository, bulk, batch, many rows, set write, upsert, lock, claim, totals, report, aggregate, newest per group, transaction, `trx`, background job, system scope, `systemContext`, owner, owns, owner API, another feature's table, scope test, `expectFlatQueries`, `requireTestDatabase`, `jskit/no-direct-knex`, `jskit/no-transaction-reader`, `jskit/no-hand-scope`, `jskit/sql-literal`, `jskit/knex-reason`, `infrastructure:`
|
|
45
|
+
- data access, database table, knex, raw, SQL, repository, bulk, batch, many rows, set write, upsert, lock, claim, totals, report, aggregate, newest per group, transaction, `trx`, background job, system scope, `systemContext`, every workspace, `listForSystem`, work done as a member, member context, `memberContext`, owner, owns, owner API, another feature's table, scope test, `expectFlatQueries`, `requireTestDatabase`, `jskit/no-direct-knex`, `jskit/no-transaction-reader`, `jskit/no-hand-scope`, `jskit/sql-literal`, `jskit/knex-reason`, `infrastructure:`
|
|
46
46
|
- [data-access.md](./data-access.md)
|
|
47
47
|
- row policy, permission filtering, visibility before pagination, recursive CTE, descendants, package cycle, capability cycle a row policy closes, `late`, `RowPolicyPlugin`, row policy cost, slow writes through a policy, access check per history item
|
|
48
48
|
- [row-policies.md](./row-policies.md)
|
|
@@ -78,6 +78,7 @@ Why this is the standard JSKIT shape:
|
|
|
78
78
|
- Ordinary `GET`/`HEAD` requests have a 30-second deadline through JSON body reading even without a caller signal. Client `readTimeoutMs` and request `timeoutMs` accept positive finite integer milliseconds. CSRF session reads use `readTimeoutMs`. The transient HTTP client does not retry cancellations or deadline expiry; deadlines apply per HTTP attempt, not to an entire query lifecycle.
|
|
79
79
|
- One layer retries a failed request. The transient HTTP client retries a `GET`/`HEAD` that failed for a transient reason (no response, 502, 503, 504) twice, one and two seconds apart, and marks the error; `shouldRetryTransientQueryFailure` then does not retry that query, so an unreachable read is three requests and reaches request recovery in about three seconds. Query reads the client did not retry (other methods, custom fetches) keep the query's two transient retries. Do not add retries around either layer.
|
|
80
80
|
- Writes and `requestStream()` have no default overall deadline; pass `timeoutMs` explicitly when appropriate and cancel long-lived streams when their owner stops. Read deadlines do not impose a concurrency limit or protect raw `fetch` calls.
|
|
81
|
+
- A download goes through the same client: `request(url, { response: "file" })` answers `{ blob, fileName, contentType }`, `fileName` from `Content-Disposition` (`filename*` before `filename`; null when it names none). A refusal throws the usual error, so step-up and field-error handling work unchanged. Do not use a raw `fetch` for a file: it loses the credentials, CSRF token and refusal handling.
|
|
81
82
|
- `useEndpointResource()` is the shared endpoint primitive for loading, saving, and standard load/save error handling. Higher-level runtimes add UI feedback and field-error handling on top.
|
|
82
83
|
- Use `requestQueryParams` for endpoint query strings on list, view, and add/edit runtimes.
|
|
83
84
|
- Standard CRUD and lookup reads use all resource-defined output fields by default. Hydrated relationships use the target resource's output contract. Pages and lookup controls do not repeat those definitions as request fieldsets.
|
|
@@ -11,10 +11,13 @@ Pick the layer ([Data access](../data-access.md)):
|
|
|
11
11
|
- Screens over HTTP: a CRUD contract on the same table resource.
|
|
12
12
|
- Many rows from one action: `createMany`, `patchMany`, `patchWhere`, `deleteWhere`; never a loop of single writes.
|
|
13
13
|
- Two requests could change the same rows: `lockMany` inside `withTransaction`, rows in id order.
|
|
14
|
+
- A whole set the work decides on (a register's entries): the row that governs it locked first by every writer, and by the work before its first plain read; inside a transaction it joined, which may have read plainly already (MySQL and MariaDB then keep that snapshot), `lockPages` after that lock, never a plain `queryAll`.
|
|
15
|
+
- A table counted but never read back (anonymous participation): a `crypto.randomUUID()` id, a unique index on the identifying columns, and an owner API of insert (`createMany` with `onConflict` ignore) and count only.
|
|
14
16
|
- Work inside `withTransaction`: `txOptions` is only `{ context, trx }`, so a key the work needs, the app's own included, comes from the method's `options`, and a write on the method's own table gets `{ ...options, ...txOptions }` so the caller's `returning`, `missing` or `format` reaches it.
|
|
15
17
|
- A change only while a row still holds a value (open to booked, once): `patch` with `onlyIf`, or `patchWhere` with that value in its filters (a compare-and-set on every database, so of two concurrent writers one wins); a filter on a related table is refused on MySQL and MariaDB (`selection_cross_table`), so filter on the row's own columns, after locking the related rows with `lockMany`, or use `claim`.
|
|
16
18
|
- Only some of the rows, one row, whether one exists: in the read (a searchSchema filter, `take: 1` or a page of size 1), never `.filter()`, `.find()`, `.some()`, `.slice()` or `.length` over the rows it answered ([Narrow in the query](../data-access.md#narrow-in-the-query)).
|
|
17
19
|
- Counts, sums, buckets: `aggregate`; newest per group: a window include; anything else: one `scopedQuery()` method under `// Knex: <kind> - <reason>`.
|
|
18
|
-
- Every workspace or user at once: a job with `systemScope`, finding its units with an `aggregate` grouped by the ownership field and looping over them, never rows.
|
|
20
|
+
- Every workspace or user at once: a job with `systemScope`, finding its units with an `aggregate` grouped by the ownership field and looping over them, never rows; every workspace itself, a page at a time: `workspaces.listForSystem({ afterId, limit }, { context: systemContext(reason) })`, never the workspaces table.
|
|
21
|
+
- Work done as one member (an action with their permissions, code that reads `context.actor`): `workspaces.memberContext({ workspaceId, userId }, { context: systemContext(reason) })` (`workspaces.core`), which resolves and refuses as their request does; never a hand-built `{ actor, workspace, membership, permissions }`.
|
|
19
22
|
- A table another feature owns: its service or owner API, never its table. A report that joins it joins the `{ query, column }` its owner API answers from `scopedQuery({ alias })`, as a subquery: one statement, both scopes kept.
|
|
20
23
|
- Every path: a scope test and `expectFlatQueries`; a data test fails without `TEST_DB_NAME`.
|
|
@@ -60,7 +60,9 @@ owns: [{
|
|
|
60
60
|
|
|
61
61
|
A policy is told who the call runs for as `caller`: `user`, `anonymous`,
|
|
62
62
|
`system` or `job`. Background work is `system` or `job`, never a missing user,
|
|
63
|
-
and a job names its person only as `caller.actorId
|
|
63
|
+
and a job names its person only as `caller.actorId`; work done as one member
|
|
64
|
+
(`workspaces.memberContext`) is that member's `user`, as at their request. A
|
|
65
|
+
policy hides a row from
|
|
64
66
|
every read, including other tables' links to it, so narrowing what one screen
|
|
65
67
|
lists is a filter on that screen's read.
|
|
66
68
|
|
|
@@ -15,7 +15,7 @@ A concrete Fastify, Vue, and JSKIT application foundation for products that do n
|
|
|
15
15
|
|
|
16
16
|
- Id: `app/minimal-foundation`
|
|
17
17
|
- Keywords: `app`, `fastify`, `foundation`, `minimal`, `server`, `vite`, `vue`
|
|
18
|
-
- Owner: `@jskit-ai/agent-docs@0.1.
|
|
18
|
+
- Owner: `@jskit-ai/agent-docs@0.1.322`
|
|
19
19
|
- Read: [PATTERN.md](patterns/app/minimal-foundation/PATTERN.md)
|
|
20
20
|
- Examples: [example/](patterns/app/minimal-foundation/example/)
|
|
21
21
|
- Requires: `@jskit-ai/http-runtime`, `@jskit-ai/kernel`
|
|
@@ -26,7 +26,7 @@ A concrete JSKIT web application foundation with responsive shell navigation, se
|
|
|
26
26
|
|
|
27
27
|
- Id: `app/shell-foundation`
|
|
28
28
|
- Keywords: `app`, `foundation`, `material`, `navigation`, `placements`, `shell`, `vite`, `vue`
|
|
29
|
-
- Owner: `@jskit-ai/agent-docs@0.1.
|
|
29
|
+
- Owner: `@jskit-ai/agent-docs@0.1.322`
|
|
30
30
|
- Read: [PATTERN.md](patterns/app/shell-foundation/PATTERN.md)
|
|
31
31
|
- Examples: [example/](patterns/app/shell-foundation/example/)
|
|
32
32
|
- Requires: `@jskit-ai/http-runtime`, `@jskit-ai/kernel`, `@jskit-ai/shell-web`
|
|
@@ -37,7 +37,7 @@ Configure an assistant runtime for one application surface and expose its chat a
|
|
|
37
37
|
|
|
38
38
|
- Id: `assistant/assistant-surface`
|
|
39
39
|
- Keywords: `ai`, `assistant`, `chat`, `config`, `environment`, `page`, `placement`, `settings`, `surface`
|
|
40
|
-
- Owner: `@jskit-ai/assistant-runtime@0.2.
|
|
40
|
+
- Owner: `@jskit-ai/assistant-runtime@0.2.62`
|
|
41
41
|
- Read: [PATTERN.md](patterns/assistant/assistant-surface/PATTERN.md)
|
|
42
42
|
- Examples: [example/](patterns/assistant/assistant-surface/example/)
|
|
43
43
|
- Requires: `@jskit-ai/assistant-runtime`, `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`, `@jskit-ai/shell-web`
|
|
@@ -48,7 +48,7 @@ Run one OpenID Connect sign-in for all of an owner's apps as its own JSKIT proje
|
|
|
48
48
|
|
|
49
49
|
- Id: `auth/accounts-hub`
|
|
50
50
|
- Keywords: `accounts hub`, `auth`, `authentication`, `issuer`, `master login`, `oidc`, `openid connect`, `single sign-on`, `sso`
|
|
51
|
-
- Owner: `@jskit-ai/oidc-issuer-core@0.1.
|
|
51
|
+
- Owner: `@jskit-ai/oidc-issuer-core@0.1.37`
|
|
52
52
|
- Read: [PATTERN.md](patterns/auth/accounts-hub/PATTERN.md)
|
|
53
53
|
- Examples: [example/](patterns/auth/accounts-hub/example/)
|
|
54
54
|
- Requires: `@jskit-ai/oidc-issuer-core`
|
|
@@ -59,7 +59,7 @@ Compose JSKIT authentication routes, views, profile controls, and public surface
|
|
|
59
59
|
|
|
60
60
|
- Id: `auth/auth-surface`
|
|
61
61
|
- Keywords: `account`, `auth`, `login`, `logout`, `password`, `placement`, `profile`, `reset`, `surface`
|
|
62
|
-
- Owner: `@jskit-ai/auth-web@0.2.
|
|
62
|
+
- Owner: `@jskit-ai/auth-web@0.2.38`
|
|
63
63
|
- Read: [PATTERN.md](patterns/auth/auth-surface/PATTERN.md)
|
|
64
64
|
- Examples: [example/](patterns/auth/auth-surface/example/)
|
|
65
65
|
- Requires: `@jskit-ai/auth-core`, `@jskit-ai/auth-web`, `@jskit-ai/shell-web`
|
|
@@ -70,7 +70,7 @@ Let people sign in with the accounts they already have in an accounts hub or ano
|
|
|
70
70
|
|
|
71
71
|
- Id: `auth/oidc-sign-in`
|
|
72
72
|
- Keywords: `accounts hub`, `auth`, `authentication`, `back-channel logout`, `dynamic client registration`, `issuer`, `master login`, `oidc`, `openid connect`, `single sign-on`, `sso`
|
|
73
|
-
- Owner: `@jskit-ai/auth-provider-oidc-core@0.2.
|
|
73
|
+
- Owner: `@jskit-ai/auth-provider-oidc-core@0.2.42`
|
|
74
74
|
- Read: [PATTERN.md](patterns/auth/oidc-sign-in/PATTERN.md)
|
|
75
75
|
- Examples: [example/](patterns/auth/oidc-sign-in/example/)
|
|
76
76
|
- Requires: `@jskit-ai/auth-provider-oidc-core`, `@jskit-ai/auth-web`
|
|
@@ -81,7 +81,7 @@ Add Supabase authentication through normal npm composition, explicit environment
|
|
|
81
81
|
|
|
82
82
|
- Id: `auth/supabase-auth`
|
|
83
83
|
- Keywords: `auth`, `authentication`, `oauth`, `sessions`, `supabase`
|
|
84
|
-
- Owner: `@jskit-ai/auth-provider-supabase-core@0.2.
|
|
84
|
+
- Owner: `@jskit-ai/auth-provider-supabase-core@0.2.29`
|
|
85
85
|
- Read: [PATTERN.md](patterns/auth/supabase-auth/PATTERN.md)
|
|
86
86
|
- Examples: [example/](patterns/auth/supabase-auth/example/)
|
|
87
87
|
- Requires: `@jskit-ai/auth-provider-supabase-core`
|
|
@@ -92,7 +92,7 @@ Resolve an administrator environment key or an individual user's grant, then use
|
|
|
92
92
|
|
|
93
93
|
- Id: `connectors/ai-connections`
|
|
94
94
|
- Keywords: `ai`, `api-key`, `cli`, `environment`, `free`, `models`, `ownership`, `zai`, `zen`
|
|
95
|
-
- Owner: `@jskit-ai/connectors-catalog@0.2.
|
|
95
|
+
- Owner: `@jskit-ai/connectors-catalog@0.2.35`
|
|
96
96
|
- Read: [PATTERN.md](patterns/connectors/ai-connections/PATTERN.md)
|
|
97
97
|
- Examples: [example/](patterns/connectors/ai-connections/example/)
|
|
98
98
|
- Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
|
|
@@ -103,7 +103,7 @@ Compose provider operations, authorization and encrypted file storage from a CLI
|
|
|
103
103
|
|
|
104
104
|
- Id: `connectors/api-key-connection`
|
|
105
105
|
- Keywords: `api-key`, `clay`, `cli`, `clickhouse`, `connectors`, `dbt`, `files`, `firecrawl`, `granola`, `integrations`, `metrics`, `prestashop`, `resend`, `semantic-layer`, `semrush`, `x-twitter`
|
|
106
|
-
- Owner: `@jskit-ai/connectors-catalog@0.2.
|
|
106
|
+
- Owner: `@jskit-ai/connectors-catalog@0.2.35`
|
|
107
107
|
- Read: [PATTERN.md](patterns/connectors/api-key-connection/PATTERN.md)
|
|
108
108
|
- Examples: [example/](patterns/connectors/api-key-connection/example/)
|
|
109
109
|
- Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
|
|
@@ -114,7 +114,7 @@ Compose token-based MCP discovery and explicitly authorized tool calls using the
|
|
|
114
114
|
|
|
115
115
|
- Id: `connectors/assistant-mcp`
|
|
116
116
|
- Keywords: `assistant`, `cli`, `connectors`, `files`, `integrations`, `mcp`, `n8n`, `sanity`
|
|
117
|
-
- Owner: `@jskit-ai/connectors-catalog@0.2.
|
|
117
|
+
- Owner: `@jskit-ai/connectors-catalog@0.2.35`
|
|
118
118
|
- Read: [PATTERN.md](patterns/connectors/assistant-mcp/PATTERN.md)
|
|
119
119
|
- Examples: [example/](patterns/connectors/assistant-mcp/example/)
|
|
120
120
|
- Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
|
|
@@ -125,7 +125,7 @@ Configure assistant OAuth clients, then compose existing state, encrypted file g
|
|
|
125
125
|
|
|
126
126
|
- Id: `connectors/assistant-mcp-oauth`
|
|
127
127
|
- Keywords: `amplitude`, `assistant`, `atlassian`, `canva`, `cli`, `client metadata`, `confidence`, `connectors`, `figma`, `files`, `granola`, `hex`, `mcp`, `miro`, `oauth`
|
|
128
|
-
- Owner: `@jskit-ai/connectors-catalog@0.2.
|
|
128
|
+
- Owner: `@jskit-ai/connectors-catalog@0.2.35`
|
|
129
129
|
- Read: [PATTERN.md](patterns/connectors/assistant-mcp-oauth/PATTERN.md)
|
|
130
130
|
- Examples: [example/](patterns/connectors/assistant-mcp-oauth/example/)
|
|
131
131
|
- Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
|
|
@@ -136,7 +136,7 @@ Compose signed AWS operations, file configuration and application authorization
|
|
|
136
136
|
|
|
137
137
|
- Id: `connectors/aws-storage-queries`
|
|
138
138
|
- Keywords: `athena`, `aws`, `cli`, `connectors`, `files`, `iam`, `queries`, `s3`, `storage`, `sts`
|
|
139
|
-
- Owner: `@jskit-ai/connectors-catalog@0.2.
|
|
139
|
+
- Owner: `@jskit-ai/connectors-catalog@0.2.35`
|
|
140
140
|
- Read: [PATTERN.md](patterns/connectors/aws-storage-queries/PATTERN.md)
|
|
141
141
|
- Examples: [example/](patterns/connectors/aws-storage-queries/example/)
|
|
142
142
|
- Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
|
|
@@ -147,7 +147,7 @@ Compose reusable connection libraries with portable configuration, application o
|
|
|
147
147
|
|
|
148
148
|
- Id: `connectors/calendar-cli`
|
|
149
149
|
- Keywords: `calendar`, `cli`, `connectors`, `google`, `integrations`, `oauth`, `permissions`
|
|
150
|
-
- Owner: `@jskit-ai/connector-google-calendar@0.2.
|
|
150
|
+
- Owner: `@jskit-ai/connector-google-calendar@0.2.35`
|
|
151
151
|
- Read: [PATTERN.md](patterns/connectors/calendar-cli/PATTERN.md)
|
|
152
152
|
- Examples: [example/](patterns/connectors/calendar-cli/example/)
|
|
153
153
|
- Requires: `@jskit-ai/connector-google-calendar`, `@jskit-ai/connectors-core`, `@jskit-ai/database-runtime-mysql`
|
|
@@ -158,7 +158,7 @@ Compose the shared connector runtime for event delivery while leaving workflow c
|
|
|
158
158
|
|
|
159
159
|
- Id: `connectors/event-delivery`
|
|
160
160
|
- Keywords: `cli`, `connectors`, `events`, `files`, `inngest`, `integrations`, `workflows`
|
|
161
|
-
- Owner: `@jskit-ai/connectors-catalog@0.2.
|
|
161
|
+
- Owner: `@jskit-ai/connectors-catalog@0.2.35`
|
|
162
162
|
- Read: [PATTERN.md](patterns/connectors/event-delivery/PATTERN.md)
|
|
163
163
|
- Examples: [example/](patterns/connectors/event-delivery/example/)
|
|
164
164
|
- Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
|
|
@@ -169,7 +169,7 @@ Wire service-account grants, file storage, explicit message actions and public b
|
|
|
169
169
|
|
|
170
170
|
- Id: `connectors/firebase-messaging`
|
|
171
171
|
- Keywords: `cli`, `connectors`, `fcm`, `files`, `firebase`, `integrations`, `jwt`, `notifications`, `push`, `service-account`, `vapid`
|
|
172
|
-
- Owner: `@jskit-ai/connectors-catalog@0.2.
|
|
172
|
+
- Owner: `@jskit-ai/connectors-catalog@0.2.35`
|
|
173
173
|
- Read: [PATTERN.md](patterns/connectors/firebase-messaging/PATTERN.md)
|
|
174
174
|
- Examples: [example/](patterns/connectors/firebase-messaging/example/)
|
|
175
175
|
- Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
|
|
@@ -180,7 +180,7 @@ Compose reviewed Search campaigns with project-owned Google OAuth and portable s
|
|
|
180
180
|
|
|
181
181
|
- Id: `connectors/google-ads-search`
|
|
182
182
|
- Keywords: `ads`, `campaigns`, `cli`, `connectors`, `conversion`, `google`, `search`
|
|
183
|
-
- Owner: `@jskit-ai/connectors-catalog@0.2.
|
|
183
|
+
- Owner: `@jskit-ai/connectors-catalog@0.2.35`
|
|
184
184
|
- Read: [PATTERN.md](patterns/connectors/google-ads-search/PATTERN.md)
|
|
185
185
|
- Examples: [example/](patterns/connectors/google-ads-search/example/)
|
|
186
186
|
- Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
|
|
@@ -191,7 +191,7 @@ Compose provider consent, verification and encrypted file persistence from an ap
|
|
|
191
191
|
|
|
192
192
|
- Id: `connectors/oauth-connection`
|
|
193
193
|
- Keywords: `accounting`, `assistant permissions`, `books`, `cli`, `client credentials`, `connectors`, `consent`, `crm`, `databricks`, `developer token`, `fabric`, `files`, `gaql`, `google ads`, `graphql`, `integrations`, `linkedin`, `microsoft`, `oauth`, `powerpoint`, `salesforce`, `service principal`, `shopify`, `soql`, `staffing`, `tiktok`, `twitch`, `wave`, `word`, `wordpress`, `workday`, `xero`, `zoho`
|
|
194
|
-
- Owner: `@jskit-ai/connectors-catalog@0.2.
|
|
194
|
+
- Owner: `@jskit-ai/connectors-catalog@0.2.35`
|
|
195
195
|
- Read: [PATTERN.md](patterns/connectors/oauth-connection/PATTERN.md)
|
|
196
196
|
- Examples: [example/](patterns/connectors/oauth-connection/example/)
|
|
197
197
|
- Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
|
|
@@ -202,7 +202,7 @@ Compose a sequential catalogue batch and preserve partial success for applicatio
|
|
|
202
202
|
|
|
203
203
|
- Id: `connectors/paddle-catalogue`
|
|
204
204
|
- Keywords: `batch`, `paddle`, `payments`, `prices`, `products`
|
|
205
|
-
- Owner: `@jskit-ai/connectors-catalog@0.2.
|
|
205
|
+
- Owner: `@jskit-ai/connectors-catalog@0.2.35`
|
|
206
206
|
- Read: [PATTERN.md](patterns/connectors/paddle-catalogue/PATTERN.md)
|
|
207
207
|
- Examples: [example/](patterns/connectors/paddle-catalogue/example/)
|
|
208
208
|
- Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
|
|
@@ -213,7 +213,7 @@ Resolve a publishable image key deliberately and use the shared URL library in a
|
|
|
213
213
|
|
|
214
214
|
- Id: `connectors/public-image`
|
|
215
215
|
- Keywords: `cli`, `connectors`, `files`, `images`, `integrations`, `logo-dev`, `public-key`
|
|
216
|
-
- Owner: `@jskit-ai/connectors-catalog@0.2.
|
|
216
|
+
- Owner: `@jskit-ai/connectors-catalog@0.2.35`
|
|
217
217
|
- Read: [PATTERN.md](patterns/connectors/public-image/PATTERN.md)
|
|
218
218
|
- Examples: [example/](patterns/connectors/public-image/example/)
|
|
219
219
|
- Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
|
|
@@ -224,7 +224,7 @@ Compose file configuration, Redshift Data API operations and application query o
|
|
|
224
224
|
|
|
225
225
|
- Id: `connectors/redshift-queries`
|
|
226
226
|
- Keywords: `aws`, `cli`, `connectors`, `files`, `iam`, `provisioned`, `redshift`, `serverless`, `sql`, `warehouse`
|
|
227
|
-
- Owner: `@jskit-ai/connectors-catalog@0.2.
|
|
227
|
+
- Owner: `@jskit-ai/connectors-catalog@0.2.35`
|
|
228
228
|
- Read: [PATTERN.md](patterns/connectors/redshift-queries/PATTERN.md)
|
|
229
229
|
- Examples: [example/](patterns/connectors/redshift-queries/example/)
|
|
230
230
|
- Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
|
|
@@ -235,7 +235,7 @@ Use the shared scanner runtime from a CLI or a host worker with portable configu
|
|
|
235
235
|
|
|
236
236
|
- Id: `connectors/source-scanning`
|
|
237
237
|
- Keywords: `cancellation`, `cli`, `connectors`, `integrations`, `scanning`, `security`, `source`, `wiz`, `worker`
|
|
238
|
-
- Owner: `@jskit-ai/connectors-catalog@0.2.
|
|
238
|
+
- Owner: `@jskit-ai/connectors-catalog@0.2.35`
|
|
239
239
|
- Read: [PATTERN.md](patterns/connectors/source-scanning/PATTERN.md)
|
|
240
240
|
- Examples: [example/](patterns/connectors/source-scanning/example/)
|
|
241
241
|
- Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
|
|
@@ -246,7 +246,7 @@ Add a protected administration surface, settings shell, and semantic navigation
|
|
|
246
246
|
|
|
247
247
|
- Id: `console/console-surface`
|
|
248
248
|
- Keywords: `admin`, `console`, `navigation`, `owner`, `placement`, `settings`, `surface`
|
|
249
|
-
- Owner: `@jskit-ai/console-web@0.1.
|
|
249
|
+
- Owner: `@jskit-ai/console-web@0.1.270`
|
|
250
250
|
- Read: [PATTERN.md](patterns/console/console-surface/PATTERN.md)
|
|
251
251
|
- Examples: [example/](patterns/console/console-surface/example/)
|
|
252
252
|
- Requires: `@jskit-ai/console-core`, `@jskit-ai/console-web`, `@jskit-ai/shell-web`
|
|
@@ -257,7 +257,7 @@ Define an application table resource whose records belong to the current user, a
|
|
|
257
257
|
|
|
258
258
|
- Id: `crud/crud-contract`
|
|
259
259
|
- Keywords: `authenticated`, `crud`, `database`, `owner-scoped`, `resource`, `table`, `user`
|
|
260
|
-
- Owner: `@jskit-ai/resource-crud-core@0.1.
|
|
260
|
+
- Owner: `@jskit-ai/resource-crud-core@0.1.218`
|
|
261
261
|
- Read: [PATTERN.md](patterns/crud/crud-contract/PATTERN.md)
|
|
262
262
|
- Examples: [example/](patterns/crud/crud-contract/example/)
|
|
263
263
|
- Requires: `@jskit-ai/resource-core`, `@jskit-ai/resource-crud-core`
|
|
@@ -268,7 +268,7 @@ Build a complete application-owned CRUD server package from a migration, a table
|
|
|
268
268
|
|
|
269
269
|
- Id: `crud/crud-feature-package`
|
|
270
270
|
- Keywords: `actions`, `crud`, `database`, `defineCrudFeature`, `json-api`, `migration`, `owns`, `permissions`, `repository`, `routes`, `service`, `table resource`
|
|
271
|
-
- Owner: `@jskit-ai/crud-core@0.2.
|
|
271
|
+
- Owner: `@jskit-ai/crud-core@0.2.36`
|
|
272
272
|
- Read: [PATTERN.md](patterns/crud/crud-feature-package/PATTERN.md)
|
|
273
273
|
- Examples: [example/](patterns/crud/crud-feature-package/example/)
|
|
274
274
|
- Requires: `@jskit-ai/crud-core`, `@jskit-ai/resource-core`, `@jskit-ai/resource-crud-core`
|
|
@@ -279,7 +279,7 @@ Build a routed CRUD user interface as thin application pages over JSKIT's shared
|
|
|
279
279
|
|
|
280
280
|
- Id: `crud/crud-screen-set`
|
|
281
281
|
- Keywords: `actions`, `add`, `crud`, `delete`, `edit`, `filters`, `list`, `material`, `routes`, `view`, `vue`
|
|
282
|
-
- Owner: `@jskit-ai/http-web@0.2.
|
|
282
|
+
- Owner: `@jskit-ai/http-web@0.2.41`
|
|
283
283
|
- Read: [PATTERN.md](patterns/crud/crud-screen-set/PATTERN.md)
|
|
284
284
|
- Examples: [example/](patterns/crud/crud-screen-set/example/)
|
|
285
285
|
- Requires: `@jskit-ai/http-web`, `@jskit-ai/resource-core`, `@jskit-ai/resource-crud-core`
|
|
@@ -290,7 +290,7 @@ Configure a JSKIT application for MySQL with a fixed driver, ordinary environmen
|
|
|
290
290
|
|
|
291
291
|
- Id: `database/mysql-application`
|
|
292
292
|
- Keywords: `database`, `knex`, `mariadb`, `migrations`, `mysql`, `mysql2`
|
|
293
|
-
- Owner: `@jskit-ai/database-runtime-mysql@0.1.
|
|
293
|
+
- Owner: `@jskit-ai/database-runtime-mysql@0.1.272`
|
|
294
294
|
- Read: [PATTERN.md](patterns/database/mysql-application/PATTERN.md)
|
|
295
295
|
- Examples: [example/](patterns/database/mysql-application/example/)
|
|
296
296
|
- Requires: `@jskit-ai/database-runtime-mysql`
|
|
@@ -301,7 +301,7 @@ Configure a JSKIT application for PostgreSQL with a fixed driver, ordinary envir
|
|
|
301
301
|
|
|
302
302
|
- Id: `database/postgres-application`
|
|
303
303
|
- Keywords: `database`, `knex`, `migrations`, `pg`, `postgres`, `postgresql`
|
|
304
|
-
- Owner: `@jskit-ai/database-runtime-postgres@0.1.
|
|
304
|
+
- Owner: `@jskit-ai/database-runtime-postgres@0.1.271`
|
|
305
305
|
- Read: [PATTERN.md](patterns/database/postgres-application/PATTERN.md)
|
|
306
306
|
- Examples: [example/](patterns/database/postgres-application/example/)
|
|
307
307
|
- Requires: `@jskit-ai/database-runtime-postgres`
|
|
@@ -312,7 +312,7 @@ Describe one database table once (its fields, columns, ownership, search and sor
|
|
|
312
312
|
|
|
313
313
|
- Id: `database/table-resource`
|
|
314
314
|
- Keywords: `database`, `defaultTo`, `defineTableResource`, `lockVersionField`, `lookup`, `ownership`, `owns`, `resource`, `system`, `table`, `workspace_or_shared`
|
|
315
|
-
- Owner: `@jskit-ai/resource-core@0.1.
|
|
315
|
+
- Owner: `@jskit-ai/resource-core@0.1.216`
|
|
316
316
|
- Read: [PATTERN.md](patterns/database/table-resource/PATTERN.md)
|
|
317
317
|
- Examples: [example/](patterns/database/table-resource/example/)
|
|
318
318
|
- Requires: `@jskit-ai/resource-core`
|
|
@@ -323,7 +323,7 @@ Wrap a JSKIT web application in a Capacitor Android shell using native Capacitor
|
|
|
323
323
|
|
|
324
324
|
- Id: `mobile/android-application`
|
|
325
325
|
- Keywords: `android`, `capacitor`, `device`, `mobile`, `native`, `shell`, `webview`
|
|
326
|
-
- Owner: `@jskit-ai/mobile-capacitor@0.2.
|
|
326
|
+
- Owner: `@jskit-ai/mobile-capacitor@0.2.34`
|
|
327
327
|
- Read: [PATTERN.md](patterns/mobile/android-application/PATTERN.md)
|
|
328
328
|
- Examples: [example/](patterns/mobile/android-application/example/)
|
|
329
329
|
- Requires: `@capacitor/android`, `@capacitor/app`, `@capacitor/cli`, `@jskit-ai/mobile-capacitor`
|
|
@@ -334,7 +334,7 @@ Add JSKIT realtime events with an optional Redis backplane and an explicit shell
|
|
|
334
334
|
|
|
335
335
|
- Id: `realtime/realtime-application`
|
|
336
336
|
- Keywords: `realtime`, `redis`, `socket.io`, `sockets`, `status`, `websocket`
|
|
337
|
-
- Owner: `@jskit-ai/realtime@0.2.
|
|
337
|
+
- Owner: `@jskit-ai/realtime@0.2.37`
|
|
338
338
|
- Read: [PATTERN.md](patterns/realtime/realtime-application/PATTERN.md)
|
|
339
339
|
- Examples: [example/](patterns/realtime/realtime-application/example/)
|
|
340
340
|
- Requires: `@jskit-ai/realtime`, `@jskit-ai/shell-web`
|
|
@@ -345,7 +345,7 @@ Compose application-owned Google Publisher Tag delivery with the generic rewarde
|
|
|
345
345
|
|
|
346
346
|
- Id: `rewards/google-rewarded`
|
|
347
347
|
- Keywords: `ads`, `google`, `publisher tag`, `rewarded`, `unlock`
|
|
348
|
-
- Owner: `@jskit-ai/rewarded-web@0.2.
|
|
348
|
+
- Owner: `@jskit-ai/rewarded-web@0.2.47`
|
|
349
349
|
- Read: [PATTERN.md](patterns/rewards/google-rewarded/PATTERN.md)
|
|
350
350
|
- Examples: [example/](patterns/rewards/google-rewarded/example/)
|
|
351
351
|
- Requires: `@jskit-ai/rewarded-web`
|
|
@@ -356,7 +356,7 @@ Define a server feature through explicit capabilities and first-class actions, a
|
|
|
356
356
|
|
|
357
357
|
- Id: `server/feature-package`
|
|
358
358
|
- Keywords: `actions`, `aggregate`, `feature`, `handle`, `orchestration`, `owns`, `package`, `provider`, `repository`, `routes`, `server`, `table resource`
|
|
359
|
-
- Owner: `@jskit-ai/agent-docs@0.1.
|
|
359
|
+
- Owner: `@jskit-ai/agent-docs@0.1.322`
|
|
360
360
|
- Read: [PATTERN.md](patterns/server/feature-package/PATTERN.md)
|
|
361
361
|
- Examples: [example/](patterns/server/feature-package/example/)
|
|
362
362
|
- Requires: `@jskit-ai/kernel`
|
|
@@ -367,7 +367,7 @@ Compose the JSKIT responsive shell, semantic placements, settings navigation, an
|
|
|
367
367
|
|
|
368
368
|
- Id: `shell/application-shell`
|
|
369
369
|
- Keywords: `adaptive`, `app`, `layout`, `navigation`, `placement`, `responsive`, `settings`, `shell`
|
|
370
|
-
- Owner: `@jskit-ai/shell-web@0.2.
|
|
370
|
+
- Owner: `@jskit-ai/shell-web@0.2.34`
|
|
371
371
|
- Read: [PATTERN.md](patterns/shell/application-shell/PATTERN.md)
|
|
372
372
|
- Examples: [example/](patterns/shell/application-shell/example/)
|
|
373
373
|
- Requires: `@jskit-ai/kernel`, `@jskit-ai/shell-web`
|
|
@@ -378,7 +378,7 @@ Add product routes and shell extensions through file routing, semantic placement
|
|
|
378
378
|
|
|
379
379
|
- Id: `ui/page-and-placement`
|
|
380
380
|
- Keywords: `component`, `navigation`, `outlet`, `page`, `placement`, `routes`, `section`, `shell`, `subpages`, `vue`
|
|
381
|
-
- Owner: `@jskit-ai/shell-web@0.2.
|
|
381
|
+
- Owner: `@jskit-ai/shell-web@0.2.34`
|
|
382
382
|
- Read: [PATTERN.md](patterns/ui/page-and-placement/PATTERN.md)
|
|
383
383
|
- Examples: [example/](patterns/ui/page-and-placement/example/)
|
|
384
384
|
- Requires: `@jskit-ai/kernel`, `@jskit-ai/shell-web`
|
|
@@ -389,7 +389,7 @@ Compose an account settings route and profile, preference, notification, and sig
|
|
|
389
389
|
|
|
390
390
|
- Id: `users/account-settings`
|
|
391
391
|
- Keywords: `account`, `link provider`, `notifications`, `oauth`, `preferences`, `profile`, `settings`, `sign-in methods`, `user`, `vue`
|
|
392
|
-
- Owner: `@jskit-ai/users-web@0.2.
|
|
392
|
+
- Owner: `@jskit-ai/users-web@0.2.53`
|
|
393
393
|
- Read: [PATTERN.md](patterns/users/account-settings/PATTERN.md)
|
|
394
394
|
- Examples: [example/](patterns/users/account-settings/example/)
|
|
395
395
|
- Requires: `@jskit-ai/shell-web`, `@jskit-ai/users-core`, `@jskit-ai/users-web`
|
|
@@ -400,7 +400,7 @@ Expose user administration and workspace-scoped member operations through app-ow
|
|
|
400
400
|
|
|
401
401
|
- Id: `users/user-administration-server`
|
|
402
402
|
- Keywords: `account`, `admin`, `member`, `repository`, `resource`, `routes`, `service`, `user`, `workspace`
|
|
403
|
-
- Owner: `@jskit-ai/users-core@0.2.
|
|
403
|
+
- Owner: `@jskit-ai/users-core@0.2.41`
|
|
404
404
|
- Read: [PATTERN.md](patterns/users/user-administration-server/PATTERN.md)
|
|
405
405
|
- Examples: [example/](patterns/users/user-administration-server/example/)
|
|
406
406
|
- Requires: `@jskit-ai/crud-core`, `@jskit-ai/users-core`
|
|
@@ -411,7 +411,7 @@ Configure roles, workspace access policy, invitations, and app-owned invitation
|
|
|
411
411
|
|
|
412
412
|
- Id: `workspaces/workspace-server`
|
|
413
413
|
- Keywords: `access`, `invite`, `membership`, `multitenancy`, `policy`, `role`, `tenancy`, `workspace`
|
|
414
|
-
- Owner: `@jskit-ai/workspaces-core@0.2.
|
|
414
|
+
- Owner: `@jskit-ai/workspaces-core@0.2.41`
|
|
415
415
|
- Read: [PATTERN.md](patterns/workspaces/workspace-server/PATTERN.md)
|
|
416
416
|
- Examples: [example/](patterns/workspaces/workspace-server/example/)
|
|
417
417
|
- Requires: `@jskit-ai/users-core`, `@jskit-ai/workspaces-core`
|
|
@@ -422,7 +422,7 @@ Compose workspace selection, invitation, member administration, settings, and re
|
|
|
422
422
|
|
|
423
423
|
- Id: `workspaces/workspace-surfaces`
|
|
424
424
|
- Keywords: `admin`, `invite`, `member`, `navigation`, `settings`, `surface`, `switcher`, `workspace`
|
|
425
|
-
- Owner: `@jskit-ai/workspaces-web@0.2.
|
|
425
|
+
- Owner: `@jskit-ai/workspaces-web@0.2.53`
|
|
426
426
|
- Read: [PATTERN.md](patterns/workspaces/workspace-surfaces/PATTERN.md)
|
|
427
427
|
- Examples: [example/](patterns/workspaces/workspace-surfaces/example/)
|
|
428
428
|
- Requires: `@jskit-ai/shell-web`, `@jskit-ai/workspaces-core`, `@jskit-ai/workspaces-web`
|