@jskit-ai/agent-docs 0.1.394 → 0.1.396
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 +66 -2
- package/guide/agent/app-extras/assistant.md +19 -2
- package/guide/agent/app-extras/mobile-capacitor.md +40 -7
- package/guide/agent/app-setup/upgrading-jskit.md +187 -8
- package/guide/agent/framework/typed-features.md +12 -2
- package/package.json +1 -1
- package/patterns/feature-package/example/booking-engine/package.json +1 -1
- package/patterns/minimal-foundation/example/config/public.js +1 -1
- package/patterns/minimal-foundation/example/eslint.config.mjs +1 -1
- package/patterns/minimal-foundation/example/package.json +4 -4
- package/patterns/shell-foundation/example/config/public.js +1 -1
- package/patterns/shell-foundation/example/eslint.config.mjs +1 -1
- package/patterns/shell-foundation/example/package.json +5 -5
- package/patterns/shell-foundation/example/packages/main/package.json +1 -1
- package/reference/autogen/PATTERN_INDEX.md +41 -41
- package/reference/autogen/packages/assistant-core.md +26 -3
- package/reference/autogen/packages/assistant-runtime.md +7 -0
- package/reference/autogen/tooling/jskit-catalog.md +41 -3
- package/reference/autogen/tooling/jskit-release.md +12 -4
- package/skills/jskit/references/pattern-index.md +41 -41
- package/skills/jskit/references/patterns/app/minimal-foundation/example/config/public.js +1 -1
- package/skills/jskit/references/patterns/app/minimal-foundation/example/eslint.config.mjs +1 -1
- package/skills/jskit/references/patterns/app/minimal-foundation/example/package.json +4 -4
- package/skills/jskit/references/patterns/app/shell-foundation/example/config/public.js +1 -1
- package/skills/jskit/references/patterns/app/shell-foundation/example/eslint.config.mjs +1 -1
- package/skills/jskit/references/patterns/app/shell-foundation/example/package.json +5 -5
- 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 +5 -5
- 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/mobile/android-application/PATTERN.md +34 -6
- 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
- package/skills/jskit/references/typed-features.md +12 -2
|
@@ -1674,6 +1674,44 @@ configuration to an existing conversation is rejected; change it explicitly with
|
|
|
1674
1674
|
`configure()` while the conversation is idle. Closing the runtime or disposing a
|
|
1675
1675
|
conversation stops its current inference and releases observers, retaining history.
|
|
1676
1676
|
|
|
1677
|
+
A stopped turn says who or what stopped it, and when, the same whichever engine
|
|
1678
|
+
ran it and whichever way the Stop reached it: a turn the runtime runs, an
|
|
1679
|
+
engine's own turn it does not run (a Codex goal turn, a turn an earlier server
|
|
1680
|
+
left), the native representation, a scoped or detached native conversation, and
|
|
1681
|
+
a conversation a host prepares through the engine's own owner; each engine's own
|
|
1682
|
+
record says it too. `cancel()` names the signed-in person of the handle's
|
|
1683
|
+
`context` by their display name (`resolveActor(context).displayName`), never
|
|
1684
|
+
their email or id, which everyone who sees the conversation would read: a person
|
|
1685
|
+
without one is "someone". The name comes from the server's context, never from
|
|
1686
|
+
`cancel()`'s input. The application's time limit stops a turn with its own stop,
|
|
1687
|
+
and a turn a failure ends records that failure, never anyone's stop. Codex's own
|
|
1688
|
+
turn outcome, which a host's checkpoint receives, follows the stop: only a
|
|
1689
|
+
person's Stop is `user_cancelled`; the application's Stop, its time limit and a
|
|
1690
|
+
failure are `interrupted`, and its shutdown is `service_restart`. Who and when are fields, never read back from the
|
|
1691
|
+
sentence: the turn's `metadata.runtime`, the snapshot and the `settled` event
|
|
1692
|
+
carry `stopped: { by, name?, at }`, with the sentence as `error` and its code:
|
|
1693
|
+
|
|
1694
|
+
| `stopped.by` | Sentence | `errorMessageCode` |
|
|
1695
|
+
| --- | --- | --- |
|
|
1696
|
+
| `person` | "Stopped by Ava Moretti." | `assistant.conversation.stoppedBy` (`{ name }`) |
|
|
1697
|
+
| `person`, no display name (no `name`) | "Stopped by someone." | `assistant.conversation.stoppedBySomeone` |
|
|
1698
|
+
| `application` (a context with no signed-in person) | "Stopped by the application." | `assistant.conversation.stoppedByApplication` |
|
|
1699
|
+
| `shutdown` (the runtime's `close()`) | "Stopped when the application shut down." | `assistant.conversation.stoppedOnClose` |
|
|
1700
|
+
| `timeLimit` (`cancel(input, { timeLimit: true })`) | "The conversation request exceeded its time limit." | `assistant.conversation.requestTimedOut` |
|
|
1701
|
+
|
|
1702
|
+
`at` is the stop's UTC instant. The sentence names no time, so a path that shows
|
|
1703
|
+
only the sentence shows no raw instant. `failureText(failure)` from
|
|
1704
|
+
`@jskit-ai/assistant-core/client/conversation-delivery` adds the time from
|
|
1705
|
+
`stopped.at` in its viewer's own time zone ("Stopped by Ava Moretti at Dec 3,
|
|
1706
|
+
2026, 6:41 PM."); assistant-core's and `@jskit-ai/assistant-runtime`'s clients
|
|
1707
|
+
both show failures through it. `conversationStop(context, { timeLimit })`
|
|
1708
|
+
from `@jskit-ai/assistant-core/server/conversation` gives the same
|
|
1709
|
+
`{ message, messageCode, messageParams, stopped }`; a host that calls an engine
|
|
1710
|
+
owner's stop itself, without a JSKIT handle, passes it as `stop`. A host's own
|
|
1711
|
+
logical conversation (`conversation.commands`) records the stop itself:
|
|
1712
|
+
`commands.cancel(input, context, { stop })` hears it, the handle's person or the
|
|
1713
|
+
time limit's.
|
|
1714
|
+
|
|
1677
1715
|
`engine` and `host` on the runtime are defaults. `open({ id, context, engine, host,
|
|
1678
1716
|
configuration })` may choose them per conversation. A saved conversation resumes
|
|
1679
1717
|
its saved engine when `engine` is omitted, even when the runtime default differs.
|
|
@@ -2577,8 +2615,34 @@ engine's own account of where it got to is never sent back as stopping short.
|
|
|
2577
2615
|
The reply a check sends back has already streamed, so its redo takes its place:
|
|
2578
2616
|
the redo's first message, the progress of a step that calls actions or the
|
|
2579
2617
|
answer itself, is published under the sent-back answer's id, and the runtime
|
|
2580
|
-
replaces that text where it is.
|
|
2581
|
-
|
|
2618
|
+
replaces that text where it is. That message, and every later one under the same
|
|
2619
|
+
id, carries `withdrawn: { text, check }`: the words the person saw and the check
|
|
2620
|
+
that sent them back. The runtime keeps it on that message in the live stream,
|
|
2621
|
+
its events and the saved turn (on the answer instead, when the conversation does
|
|
2622
|
+
not keep progress), never as a message of its own, so nothing counts it as an
|
|
2623
|
+
answer, and no later turn's model input reads it. The transcript shows it as a
|
|
2624
|
+
collapsed "Withdrawn draft" line the person can open, above the rewrite, with
|
|
2625
|
+
why it was rewritten in plain words: raw markup, stopping at announcing what the
|
|
2626
|
+
assistant would do next, or saying things the assistant had not looked up. A
|
|
2627
|
+
reply the person never saw, such as one that was only markup, carries none.
|
|
2628
|
+
|
|
2629
|
+
The reply leaves the turn's answer the moment it is sent back: the message shown
|
|
2630
|
+
in its place has no words until the rewrite's arrive, and the transcript says
|
|
2631
|
+
it was rewritten only once they do. A turn that stops, runs out of time or fails
|
|
2632
|
+
before a rewrite takes its place saves that failure and no answer, never the
|
|
2633
|
+
draft; so does one stopped while its claims are being checked. A failed call in
|
|
2634
|
+
the rewrite ends it with the engine's account, as any reply's does, and a rewrite
|
|
2635
|
+
with no words to show fails the reply with "The answer a check sent back was
|
|
2636
|
+
rewritten without any words to show." (`assistant.conversation.rewriteEmpty`).
|
|
2637
|
+
An answer that replaces another later carries only its own draft.
|
|
2638
|
+
|
|
2639
|
+
The checks are on by default. An application's API client turns them off with
|
|
2640
|
+
`answerChecks: false` on the client its `apiClientFactory.resolveClient`
|
|
2641
|
+
returns, beside its `effort` (an assistant surface's
|
|
2642
|
+
`assistantServer.<surface>.answerChecks`): each reply is then shown as the model
|
|
2643
|
+
wrote it, with no check, no extra model call, no redo and no withdrawn draft. A
|
|
2644
|
+
value other than `true` or `false` fails the reply before any model call, with
|
|
2645
|
+
"An API client's answerChecks must be true or false."
|
|
2582
2646
|
|
|
2583
2647
|
A reply counts its application tool calls one by one, since a model may ask for
|
|
2584
2648
|
several in one step (DeepSeek usually asks for two). Its limit is the turn's
|
|
@@ -615,8 +615,25 @@ assistantServer: {
|
|
|
615
615
|
}
|
|
616
616
|
```
|
|
617
617
|
|
|
618
|
-
|
|
619
|
-
|
|
618
|
+
The API engine checks each finished reply, and sends one back to the model once
|
|
619
|
+
when it holds raw markup, stops at announcing its next step, or says it did
|
|
620
|
+
something no action in it did; the rewrite takes its place, and the person can
|
|
621
|
+
open the first version from a "Withdrawn draft" line above it
|
|
622
|
+
([application tools](./assistant-conversation.md#application-tools)). A surface
|
|
623
|
+
turns the checks off, so each reply shows as the model wrote it, with no extra
|
|
624
|
+
model call:
|
|
625
|
+
|
|
626
|
+
```js
|
|
627
|
+
assistantServer: {
|
|
628
|
+
assistant: { aiIntegrationId: "assistant", answerChecks: false }
|
|
629
|
+
}
|
|
630
|
+
```
|
|
631
|
+
|
|
632
|
+
They are on when `answerChecks` is absent or `true`. The assistant's settings
|
|
633
|
+
screen does not show this setting; it is configuration only.
|
|
634
|
+
|
|
635
|
+
A malformed `maxToolArgumentBytes`, `maxToolResultBytes`, `maxToolCalls` or
|
|
636
|
+
`answerChecks` stops the server from starting, with a message naming the key. Calls are counted one by
|
|
620
637
|
one, since a model may ask for several in one step. Near the limit the API engine
|
|
621
638
|
runs one final step without tools, and the model answers from what it has
|
|
622
639
|
gathered and says what it could not check; no call past the limit runs, and only
|
|
@@ -8,25 +8,57 @@ first: no store, push notifications and sharing in, from the same app. This
|
|
|
8
8
|
page is that recipe's other option, a native app in the stores.
|
|
9
9
|
|
|
10
10
|
Use `@jskit-ai/mobile-capacitor` when the web application should run inside a
|
|
11
|
-
Capacitor Android shell.
|
|
11
|
+
Capacitor Android shell. It runs on Capacitor 9 (`@capacitor/core` ^9.0.0), and
|
|
12
|
+
every Capacitor package of the app is on the same major. Install them by range,
|
|
13
|
+
so that a later Capacitor major never joins them unasked.
|
|
12
14
|
|
|
13
15
|
```bash
|
|
14
16
|
npm install @jskit-ai/mobile-capacitor \
|
|
15
|
-
@capacitor/android @capacitor/app @capacitor/
|
|
17
|
+
@capacitor/android@^9.0.0 @capacitor/app@^9.0.2 @capacitor/browser@^9.0.2 \
|
|
18
|
+
@capacitor/cli@^9.0.0
|
|
16
19
|
```
|
|
17
20
|
|
|
18
|
-
|
|
21
|
+
`@capacitor/browser` is a dependency of `@jskit-ai/mobile-capacitor`, which
|
|
22
|
+
opens sign-in with it, but `npx cap sync` builds only the native plugins the
|
|
23
|
+
app's own `package.json` lists, so the app installs it too.
|
|
24
|
+
|
|
25
|
+
Capacitor 9's CLI needs Node.js 24 or newer, and it builds Android with JDK 21
|
|
26
|
+
(as `JAVA_HOME`) and the Android SDK Platform 37 (Android Studio 2026.1.4 or
|
|
27
|
+
newer installs both). Use the
|
|
28
|
+
`mobile/android-application` pattern for the small app-owned Capacitor
|
|
19
29
|
configuration. Then use Capacitor and Android tools directly:
|
|
20
30
|
|
|
21
31
|
```bash
|
|
22
|
-
npx cap add android
|
|
23
32
|
npm run build
|
|
33
|
+
npx cap add android
|
|
24
34
|
npx cap sync android
|
|
35
|
+
npx cap doctor android
|
|
25
36
|
npx cap run android
|
|
26
37
|
```
|
|
27
38
|
|
|
39
|
+
`npx cap add android` writes `android/` from Capacitor 9's template: Gradle
|
|
40
|
+
9.8.2, the Android Gradle Plugin 9.4.1 (which bundles Kotlin),
|
|
41
|
+
`compileSdkVersion` and `targetSdkVersion` 37 and `minSdkVersion` 26 in
|
|
42
|
+
`android/variables.gradle`, a `MainActivity` that enables edge to edge, and R8
|
|
43
|
+
on release builds. Target 37 is above what Google Play requires of new apps and
|
|
44
|
+
updates since 31 August 2026 (36). `config.mobile.android` in
|
|
45
|
+
`config/public.js` defaults to the same `minSdk: 26` and `targetSdk: 37`. A
|
|
46
|
+
debug APK is `cd android && ./gradlew assembleDebug`. System Bars handles the
|
|
47
|
+
insets natively by default in Capacitor 9 (`insetsHandling: 'native'`): it no
|
|
48
|
+
longer sets `--safe-area-inset-*` CSS variables, and JSKIT's screens use CSS
|
|
49
|
+
`env(safe-area-inset-*)`. Live reload is `npx cap run android --url <dev server URL>`.
|
|
50
|
+
|
|
28
51
|
JSKIT does not wrap Capacitor, `adb`, Android Studio, or Gradle in another CLI.
|
|
29
52
|
|
|
53
|
+
## An app made on Capacitor 7 or 8
|
|
54
|
+
|
|
55
|
+
`android/` and `ios/` are app-owned source that `npx cap add` wrote once, so a
|
|
56
|
+
JSKIT update cannot move them. `npm run jskit:check` names every Capacitor
|
|
57
|
+
package, native project setting and config value below Capacitor 9
|
|
58
|
+
(`capacitor/*`), and `npm run jskit:update` refuses such an app before changing
|
|
59
|
+
anything. Move it with Capacitor's own migration first
|
|
60
|
+
([Upgrade JSKIT](/guide/app-setup/upgrading-jskit#capacitor-9)).
|
|
61
|
+
|
|
30
62
|
## Product decisions
|
|
31
63
|
|
|
32
64
|
Choose the stable application id, display name, built web directory, callback
|
|
@@ -45,9 +77,10 @@ ownership before creating the Android project.
|
|
|
45
77
|
|
|
46
78
|
## Verification
|
|
47
79
|
|
|
48
|
-
Build the web application, sync Android,
|
|
49
|
-
device, exercise callbacks and external links, then
|
|
50
|
-
release variant.
|
|
80
|
+
Build the web application, sync Android, run `npx cap doctor android`, launch
|
|
81
|
+
on an explicitly selected device, exercise callbacks and external links, then
|
|
82
|
+
build the intended native release variant. `npm run jskit:check` passes its
|
|
83
|
+
Capacitor part.
|
|
51
84
|
|
|
52
85
|
Do not hide device selection, write signing keys into source, or recreate a
|
|
53
86
|
JSKIT-specific mobile command language or operation receipt.
|
|
@@ -76,6 +76,53 @@ the version JSKIT's packages require ([One json-rest-api](#one-json-rest-api)).
|
|
|
76
76
|
It installs once from the root and checks the new `package-lock.json` before
|
|
77
77
|
succeeding.
|
|
78
78
|
|
|
79
|
+
### One JSKIT version
|
|
80
|
+
|
|
81
|
+
An application's JSKIT version is one value: the exact `@jskit-ai/jskit-catalog`
|
|
82
|
+
version in its root `package.json`. That catalog lists each JSKIT package's
|
|
83
|
+
exact version for its release (`catalog/packages.json`, `release.packages`); a
|
|
84
|
+
release publishes only the packages that changed, so the catalog lists the
|
|
85
|
+
others at their earlier versions. Every other `@jskit-ai/*` entry, in the root
|
|
86
|
+
and in each of the application's modules, stays an exact version in its
|
|
87
|
+
ordinary `dependencies`, `devDependencies` or `optionalDependencies`, and is
|
|
88
|
+
that catalog's version of the package: a copy nobody edits by hand.
|
|
89
|
+
|
|
90
|
+
An application's modules are the folders its root's `workspaces` name, the
|
|
91
|
+
folders its root's `jskitRelease.manifests` names (a module the application
|
|
92
|
+
composes itself, into another application say, rather than installing it as an
|
|
93
|
+
npm workspace) and the folders its `file:` dependencies name inside it,
|
|
94
|
+
followed from module to module. A pattern never matches a folder inside
|
|
95
|
+
`build`, `coverage`, `dist`, `tmp`, `node_modules` or a dot folder, and an
|
|
96
|
+
entry that names the root (`.`) is refused: the root is always read as the
|
|
97
|
+
root. Each entry
|
|
98
|
+
of `jskitRelease.manifests` is a folder or a `*` pattern:
|
|
99
|
+
|
|
100
|
+
```json
|
|
101
|
+
{
|
|
102
|
+
"workspaces": ["packages/shared"],
|
|
103
|
+
"jskitRelease": { "manifests": ["packages/composed-*"] }
|
|
104
|
+
}
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
One writer keeps them so. `npm run jskit:update` sets the root's catalog to the
|
|
108
|
+
catalog's exact version, then every other `@jskit-ai/*` entry in the root and
|
|
109
|
+
in every module to that catalog's version, whatever range it had.
|
|
110
|
+
`jskit-release pin`, which moves a dependent repository to a JSKIT release,
|
|
111
|
+
runs the same writer, the released catalog's own (`planProjectUpdate` below),
|
|
112
|
+
on a repository whose root declares the catalog. `jskit check` checks every
|
|
113
|
+
module ([Enforce the graph in CI](#enforce-the-graph-in-ci)); a module named
|
|
114
|
+
only by `jskitRelease.manifests` has no entry in the root's `package-lock.json`,
|
|
115
|
+
which the check does not expect, as for an additional manifest
|
|
116
|
+
([Separately composed packages](#separately-composed-packages)). Such a module,
|
|
117
|
+
like one only a `file:` dependency names, loads only through the application,
|
|
118
|
+
so the check reads only its JSKIT entries: the check's other rules (its test runs, its packages'
|
|
119
|
+
capabilities) read the root, its workspaces and the files `--manifest` names,
|
|
120
|
+
as the composing application's own check passes them. The update and
|
|
121
|
+
the pin name the `jskitRelease.manifests` entries the root's `workspaces`
|
|
122
|
+
already cover, which are redundant: remove them. They refuse an entry whose
|
|
123
|
+
folder holds no `package.json`, before changing any file, and so does the
|
|
124
|
+
check. `jskitRelease.afterPin` is unchanged.
|
|
125
|
+
|
|
79
126
|
During installation, the updater preserves non-JSKIT lockfile pins, removes the
|
|
80
127
|
old JSKIT installation records from the candidate lock, and keeps the previous
|
|
81
128
|
`node_modules` tree aside until the new graph passes `jskit check`. If writing,
|
|
@@ -131,6 +178,10 @@ The package exports `@jskit-ai/jskit-catalog/project-packages` for hosts:
|
|
|
131
178
|
|
|
132
179
|
- `updateProject({ projectRoot, catalog, additionalManifests, install })` uses the
|
|
133
180
|
same updater as the CLI. Each root update retains its own rollback transaction.
|
|
181
|
+
- `planProjectUpdate({ projectRoot, catalog, additionalManifests })` is that
|
|
182
|
+
updater's writer of the manifests ([One JSKIT version](#one-jskit-version)),
|
|
183
|
+
which `jskit-release pin` runs too. It changes no file: it refuses what the
|
|
184
|
+
update refuses and returns each changed manifest's new contents and changes.
|
|
134
185
|
- `checkProject({ projectRoot, catalog, additionalManifests, checkInstalled: true })`
|
|
135
186
|
also compares lock declarations and installed versions with the root lockfile.
|
|
136
187
|
- `checkInstalledGraph({ catalog, manifestPaths })` follows runtime dependencies
|
|
@@ -182,10 +233,22 @@ For example:
|
|
|
182
233
|
}
|
|
183
234
|
```
|
|
184
235
|
|
|
236
|
+
An application whose `npm run verify` is `jskit verify` has it already:
|
|
237
|
+
`jskit verify` runs the JSKIT check first, before its `jskitVerify.parts`, and
|
|
238
|
+
a failing check fails the run with its findings and their fixes before any
|
|
239
|
+
part runs ([A check runs once per tree](/guide/framework/typed-features#a-check-runs-once-per-tree)).
|
|
240
|
+
It reads the `--manifest` files the application's `jskit:check` script passes.
|
|
241
|
+
A part whose script is `jskit check` (with only `--manifest` files) is not run
|
|
242
|
+
again, so such an application may drop it from its parts.
|
|
243
|
+
|
|
185
244
|
The check fails when:
|
|
186
245
|
|
|
187
|
-
-
|
|
188
|
-
|
|
246
|
+
- the root declares no `@jskit-ai/jskit-catalog`, the application's one JSKIT
|
|
247
|
+
version ([One JSKIT version](#one-jskit-version)), while it or a module
|
|
248
|
+
declares a JSKIT package (a project that declares none has no JSKIT version
|
|
249
|
+
to keep);
|
|
250
|
+
- a root or module JSKIT declaration differs from the installed coordinated
|
|
251
|
+
catalog, or names a JSKIT package the catalog does not list;
|
|
189
252
|
- resolved JSKIT packages use stale, unknown, or multiple release versions;
|
|
190
253
|
- a shared singleton client package has a private nested installation;
|
|
191
254
|
- a JSKIT override tries to force a private graph;
|
|
@@ -200,12 +263,19 @@ The check fails when:
|
|
|
200
263
|
its features provide or require, or provides one none of them does
|
|
201
264
|
(`manifest/capabilities`, see
|
|
202
265
|
[Package manifest](/guide/framework/typed-features#package-manifest)).
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
266
|
+
- an app whose JSKIT packages need Capacitor is not on that Capacitor major in
|
|
267
|
+
its packages, its native projects, its Capacitor config or
|
|
268
|
+
`config.mobile.android` (`capacitor/*`, see [Capacitor 9](#capacitor-9)).
|
|
269
|
+
|
|
270
|
+
Each refusal names its fix. A root without the catalog, a JSKIT pin that is
|
|
271
|
+
not the installed catalog's or names a package it does not list (each with its
|
|
272
|
+
file), a JSKIT entry the lockfile records otherwise (a module's entry changed
|
|
273
|
+
by hand, say), and an installed JSKIT copy newer than the lockfile at the version
|
|
274
|
+
the catalog names (a JSKIT source under development in place of the published
|
|
275
|
+
copy), name `npm run jskit:update`: it moves every JSKIT pin to one catalog
|
|
276
|
+
together. Any other installed copy that disagrees with the lockfile names
|
|
277
|
+
`npm ci`, and any other entry the lockfile records otherwise names
|
|
278
|
+
`npm install`. Never move
|
|
209
279
|
a JSKIT package with `npm install` or `npm update`, and never make the check
|
|
210
280
|
pass with `npm install --no-save`: that puts the published copy back, so the
|
|
211
281
|
check then passes for code the application does not run.
|
|
@@ -229,6 +299,115 @@ others marked deduped. `jskit check` refuses a direct pin at another version
|
|
|
229
299
|
and a second copy in the lockfile, naming the version to pin;
|
|
230
300
|
`npm run jskit:update` moves a direct pin with the catalog.
|
|
231
301
|
|
|
302
|
+
## Capacitor 9
|
|
303
|
+
|
|
304
|
+
`@jskit-ai/mobile-capacitor` runs on Capacitor 9 (`@capacitor/core` ^9.0.0).
|
|
305
|
+
An app that uses it is on Capacitor 9 throughout: its `@capacitor/*` packages,
|
|
306
|
+
one installed `@capacitor/core`, and the native projects Capacitor wrote for it.
|
|
307
|
+
`android/` and `ios/` are app-owned source that `npx cap add` wrote once from
|
|
308
|
+
the Capacitor of that day, so no package install moves them. Plain
|
|
309
|
+
`jskit check` names each part below Capacitor 9, from Capacitor 7 or 8, with its
|
|
310
|
+
file and line, and `npm run jskit:update` refuses such an app before changing
|
|
311
|
+
anything:
|
|
312
|
+
|
|
313
|
+
- a Capacitor package (`@capacitor/core`, `cli`, `android`, `ios` and the
|
|
314
|
+
plugins `npx cap migrate` moves with the major, such as `app` and `browser`)
|
|
315
|
+
declared at another major, a second `@capacitor/core` in
|
|
316
|
+
`package-lock.json`, and, in an app with a native project, no
|
|
317
|
+
`@capacitor/browser` of its own: the package opens sign-in with it, and
|
|
318
|
+
`npx cap sync` builds only the plugins the app's `package.json` lists
|
|
319
|
+
(`capacitor/packages`);
|
|
320
|
+
- in `android/`: `variables.gradle` below Capacitor 9's template
|
|
321
|
+
(`minSdkVersion` 26, `compileSdkVersion` and `targetSdkVersion` 37, its
|
|
322
|
+
AndroidX versions, and the plugin versions where the app has them), the
|
|
323
|
+
Gradle wrapper below 9.8.2, the Android Gradle Plugin below 9.4.1,
|
|
324
|
+
`google-services` below 4.5.0, Kotlin applied by hand (AGP 9 bundles it: the
|
|
325
|
+
Kotlin Gradle Plugin's classpath, the `kotlin-android` plugin,
|
|
326
|
+
`kotlin-stdlib`), `jcenter()`, `capacitor-cordova-android-plugins` named in
|
|
327
|
+
`settings.gradle` or `app/build.gradle`, `proguard-android.txt`, a
|
|
328
|
+
`gradle.properties` flag of the AGP Upgrade Assistant that AGP 9 removed, an
|
|
329
|
+
`android:configChanges` without `density`, and an activity extending
|
|
330
|
+
`BridgeActivity` that does not enable edge to edge (`capacitor/android`);
|
|
331
|
+
- in `ios/`: `IPHONEOS_DEPLOYMENT_TARGET` or the Podfile's `platform :ios`
|
|
332
|
+
below 16.0, an app whose entry point is still `AppDelegate.swift` rather
|
|
333
|
+
than the SwiftUI `App.swift`, and `CAPACITOR_DEBUG` in `Info.plist` or
|
|
334
|
+
`debug.xcconfig` (`capacitor/ios`);
|
|
335
|
+
- `android.adjustMarginsForEdgeToEdge` in the Capacitor config, which Capacitor
|
|
336
|
+
8 removed, and `config.mobile.android`'s `minSdk` below 26 or `targetSdk`
|
|
337
|
+
below 37 in `config/public.js` (`capacitor/config`).
|
|
338
|
+
|
|
339
|
+
`npm run jskit:update` waits only for what Capacitor 9's upgrade guide
|
|
340
|
+
requires: the Capacitor packages' major, `variables.gradle`'s "new minimums",
|
|
341
|
+
Gradle and the Android Gradle Plugin, what it says breaks the build (Kotlin
|
|
342
|
+
applied by hand, `jcenter()`, the hand-named Cordova plugins module,
|
|
343
|
+
`proguard-android.txt`, `android.builtInKotlin=false` and
|
|
344
|
+
`android.sdk.defaultTargetSdkToCompileSdkIfUnset=false`), edge to edge, which
|
|
345
|
+
System Bars' insets rely on, the iOS deployment target and the SwiftUI entry
|
|
346
|
+
point every app needs. `jskit check` names the rest without stopping the
|
|
347
|
+
update: what the guide only updates or calls deprecated or unused
|
|
348
|
+
(`google-services`, the plugins' variables, the other `gradle.properties`
|
|
349
|
+
flags, `CAPACITOR_DEBUG`), `density`, which the 8.0 guide added, and JSKIT's
|
|
350
|
+
own (`@capacitor/browser`, a second `@capacitor/core`, the Capacitor config and
|
|
351
|
+
`config.mobile.android`). A second `@capacitor/core` inside a JSKIT package is
|
|
352
|
+
that package's own dependency, which the update replaces.
|
|
353
|
+
|
|
354
|
+
Target 37 is above Google Play's floor: since 31 August 2026 it takes new apps
|
|
355
|
+
and updates only at `targetSdkVersion` 36 or higher. Move the app with
|
|
356
|
+
Capacitor's own migration
|
|
357
|
+
([Capacitor's 9.0 upgrade guide](https://capacitorjs.com/docs/updating/9-0)),
|
|
358
|
+
with Node.js 24 or newer, JDK 21 as `JAVA_HOME` and the Android SDK Platform 37
|
|
359
|
+
installed, then update JSKIT. From Capacitor 8:
|
|
360
|
+
|
|
361
|
+
```bash
|
|
362
|
+
npm install --save-dev @capacitor/cli@^9.0.0
|
|
363
|
+
npx cap migrate
|
|
364
|
+
npm install @capacitor/browser@^9.0.2
|
|
365
|
+
npx cap sync
|
|
366
|
+
npm run jskit:update
|
|
367
|
+
npm run jskit:check
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
Capacitor 9's `npx cap migrate` takes only a Capacitor 8 app ("Migrate can
|
|
371
|
+
only be used on Capacitor 8"), so a Capacitor 7 app migrates with Capacitor 8's
|
|
372
|
+
CLI first:
|
|
373
|
+
|
|
374
|
+
```bash
|
|
375
|
+
npm install --save-dev @capacitor/cli@^8.0.0
|
|
376
|
+
npx cap migrate
|
|
377
|
+
npm install --save-dev @capacitor/cli@^9.0.0
|
|
378
|
+
npx cap migrate
|
|
379
|
+
npm install @capacitor/browser@^9.0.2
|
|
380
|
+
npx cap sync
|
|
381
|
+
npm run jskit:update
|
|
382
|
+
npm run jskit:check
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
`@capacitor/browser` goes in after the migration: it peers on
|
|
386
|
+
`@capacitor/core` 9, which the app has only then. `jskit check` lists these
|
|
387
|
+
steps itself, starting from the lowest Capacitor major the app declares.
|
|
388
|
+
|
|
389
|
+
Capacitor 9's `npx cap migrate` moves every Capacitor package to ^9.0.0 and installs them,
|
|
390
|
+
raises `variables.gradle`, the Android Gradle Plugin, `google-services` and the
|
|
391
|
+
Gradle wrapper (it runs `./gradlew wrapper`, which needs the JDK), removes the
|
|
392
|
+
hand-named Cordova plugins module, `jcenter()`, `proguard-android.txt` and the
|
|
393
|
+
AGP Upgrade Assistant's `gradle.properties` flags, adds `density` to
|
|
394
|
+
`android:configChanges`, enables edge to edge in `MainActivity`, sets the iOS
|
|
395
|
+
deployment target to 16.0, writes the SwiftUI entry point and removes a Swift
|
|
396
|
+
Package Manager project's `debug.xcconfig`. It prints each step it could not do; do
|
|
397
|
+
those by hand, as the guide lists them. It does not remove Kotlin applied by
|
|
398
|
+
hand, nor touch the Capacitor config: remove `android.adjustMarginsForEdgeToEdge`
|
|
399
|
+
yourself (edge-to-edge layout comes from the System Bars core plugin and CSS
|
|
400
|
+
`env(safe-area-inset-*)`), and set `config.mobile.android` in
|
|
401
|
+
`config/public.js` to `minSdk: 26` and `targetSdk: 37` or higher. Capacitor 9
|
|
402
|
+
also changes System Bars' default to `insetsHandling: 'native'`, which no
|
|
403
|
+
longer sets the `--safe-area-inset-*` CSS variables (JSKIT's screens read
|
|
404
|
+
`env(safe-area-inset-*)`), the Splash Screen's `launchFadeOutDuration` default
|
|
405
|
+
to 0, turns on R8 for release builds (`minifyEnabled true`), replaces
|
|
406
|
+
`npx cap run`'s live-reload flags with `--url`, and needs Xcode 27 and Android
|
|
407
|
+
Studio 2026.1.4 or newer; read the guide for an app that customises its native
|
|
408
|
+
projects. `npm run jskit:check` then passes its Capacitor part, and the app
|
|
409
|
+
builds (`cd android && ./gradlew assembleDebug`).
|
|
410
|
+
|
|
232
411
|
## Run tests within the test budget
|
|
233
412
|
|
|
234
413
|
Plain `jskit check` fails a test run that ignores the machine's test budget
|
|
@@ -1456,6 +1456,16 @@ declares what it runs:
|
|
|
1456
1456
|
}
|
|
1457
1457
|
```
|
|
1458
1458
|
|
|
1459
|
+
- Before any part, `jskit verify` runs the app's JSKIT check, the rules plain
|
|
1460
|
+
`jskit check` runs (`npm run jskit:check`), so no app's Verification leaves
|
|
1461
|
+
its JSKIT drift out. A check that fails ends the run with its findings and
|
|
1462
|
+
their fixes, before any part runs, and records nothing. It reads the
|
|
1463
|
+
modules the app's own check reads: the `--manifest` files of its
|
|
1464
|
+
`jskit:check` script and of each such part. A part whose script is
|
|
1465
|
+
`jskit check` (with only `--manifest` files) is that check, and is not run
|
|
1466
|
+
again; one with its own `env`, or npm `pre`/`post` scripts, is refused, as
|
|
1467
|
+
they would never run. Words for the last part when every part is that check
|
|
1468
|
+
are refused.
|
|
1459
1469
|
- `parts` are the npm scripts of the whole check, run in order as
|
|
1460
1470
|
`npm run <part>`; the first that fails ends the run with its exit status. A
|
|
1461
1471
|
part given as an object gets its `env` settings, and only it does.
|
|
@@ -1474,8 +1484,8 @@ A whole run that passes records exactly what it checked in
|
|
|
1474
1484
|
the installed dependencies of the project and of each checkout (every file's
|
|
1475
1485
|
path, size and modification time under `node_modules`, so an `npm ci` or a
|
|
1476
1486
|
package laid over by hand is another input), the declared settings, Node's
|
|
1477
|
-
version
|
|
1478
|
-
record and runs nothing:
|
|
1487
|
+
version, the JSKIT check (its catalog's version) and the parts. The next
|
|
1488
|
+
`jskit verify` with the same inputs prints the record and runs nothing:
|
|
1479
1489
|
|
|
1480
1490
|
```text
|
|
1481
1491
|
jskit verify: it passed on this exact tree at 2026-12-01T10:00:00.000Z on desktop (the project 36545a948a1b, tree f14b03f42888; public 6ffe6eb08fc3; Node v26.5.0): not run again. Its record is node_modules/.cache/jskit/verify-passes/<key>.json; remove it to run the check again.
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@ const HAND_WRITTEN_SOURCES = ["packages/*/src/**", "src/**", "config/**", "serve
|
|
|
17
17
|
|
|
18
18
|
export default [
|
|
19
19
|
{
|
|
20
|
-
ignores: ["dist/**", "node_modules/**", "coverage/**", "test-results/**", ".jskit/**"]
|
|
20
|
+
ignores: ["dist/**", "node_modules/**", "coverage/**", "test-results/**", ".jskit/**", "android/**", "ios/**"]
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
files: ["src/pages/**/*.vue"],
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@local/main": "0.1.0",
|
|
36
36
|
"@fastify/static": "^10.1.3",
|
|
37
|
-
"@jskit-ai/kernel": "0.2.
|
|
37
|
+
"@jskit-ai/kernel": "0.2.40",
|
|
38
38
|
"@jskit-ai/material-web": "0.1.20",
|
|
39
39
|
"@tanstack/vue-query": "^5.101.0",
|
|
40
40
|
"fastify": "^5.12.7",
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
"vue": "^3.5.44",
|
|
45
45
|
"vue-router": "^5.3.1",
|
|
46
46
|
"vuetify": "^4.3.0",
|
|
47
|
-
"@jskit-ai/http-runtime": "0.2.
|
|
47
|
+
"@jskit-ai/http-runtime": "0.2.41",
|
|
48
48
|
"@fastify/fast-json-stringify-compiler": "^5.1.0",
|
|
49
49
|
"@vue/devtools-api": "^8.2.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@jskit-ai/config-eslint": "0.1.
|
|
53
|
-
"@jskit-ai/jskit-catalog": "0.2.
|
|
52
|
+
"@jskit-ai/config-eslint": "0.1.257",
|
|
53
|
+
"@jskit-ai/jskit-catalog": "0.2.148",
|
|
54
54
|
"@playwright/test": "1.61.1",
|
|
55
55
|
"@vitejs/plugin-vue": "^6.0.7",
|
|
56
56
|
"eslint": "^10.8.0",
|
|
@@ -17,7 +17,7 @@ const HAND_WRITTEN_SOURCES = ["packages/*/src/**", "src/**", "config/**", "serve
|
|
|
17
17
|
|
|
18
18
|
export default [
|
|
19
19
|
{
|
|
20
|
-
ignores: ["dist/**", "node_modules/**", "coverage/**", "test-results/**", ".jskit/**"]
|
|
20
|
+
ignores: ["dist/**", "node_modules/**", "coverage/**", "test-results/**", ".jskit/**", "android/**", "ios/**"]
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
files: ["src/pages/**/*.vue"],
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@local/main": "0.1.0",
|
|
36
36
|
"@fastify/static": "^10.1.3",
|
|
37
|
-
"@jskit-ai/kernel": "0.2.
|
|
37
|
+
"@jskit-ai/kernel": "0.2.40",
|
|
38
38
|
"@jskit-ai/material-web": "0.1.20",
|
|
39
39
|
"@tanstack/vue-query": "^5.101.0",
|
|
40
40
|
"fastify": "^5.12.7",
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
"vue": "^3.5.44",
|
|
45
45
|
"vue-router": "^5.3.1",
|
|
46
46
|
"vuetify": "^4.3.0",
|
|
47
|
-
"@jskit-ai/http-runtime": "0.2.
|
|
48
|
-
"@jskit-ai/shell-web": "0.2.
|
|
47
|
+
"@jskit-ai/http-runtime": "0.2.41",
|
|
48
|
+
"@jskit-ai/shell-web": "0.2.71",
|
|
49
49
|
"@fastify/fast-json-stringify-compiler": "^5.1.0",
|
|
50
50
|
"@vue/devtools-api": "^8.2.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@jskit-ai/config-eslint": "0.1.
|
|
54
|
-
"@jskit-ai/jskit-catalog": "0.2.
|
|
53
|
+
"@jskit-ai/config-eslint": "0.1.257",
|
|
54
|
+
"@jskit-ai/jskit-catalog": "0.2.148",
|
|
55
55
|
"@playwright/test": "1.61.1",
|
|
56
56
|
"@vitejs/plugin-vue": "^6.0.7",
|
|
57
57
|
"eslint": "^10.8.0",
|