@condorinst/mobile-bridge 0.20.0 → 0.22.0
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/AGENTS.md +109 -42
- package/CHANGELOG.md +99 -0
- package/README.md +80 -14
- package/contract/bridge-contract.json +59 -14
- package/dist/cli.cjs +933 -3
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +932 -3
- package/dist/cli.js.map +1 -1
- package/dist/dev-harness.global.js +2110 -0
- package/dist/dev.cjs +1662 -0
- package/dist/dev.cjs.map +1 -0
- package/dist/dev.d.cts +683 -0
- package/dist/dev.d.ts +683 -0
- package/dist/dev.js +1611 -0
- package/dist/dev.js.map +1 -0
- package/dist/index.cjs +96 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +236 -14
- package/dist/index.d.ts +236 -14
- package/dist/index.js +94 -3
- package/dist/index.js.map +1 -1
- package/docs/agent-guide.md +75 -24
- package/docs/bridge-contract.md +121 -20
- package/docs/client-guide.md +42 -29
- package/docs/device-testing.md +114 -0
- package/docs/pilot-onboarding.md +31 -13
- package/docs/troubleshooting.md +79 -18
- package/examples/minimal-home/AGENTS.md +9 -6
- package/examples/minimal-home/README.md +10 -5
- package/examples/minimal-home/build.mjs +2 -1
- package/examples/minimal-home/index.html +2 -0
- package/examples/minimal-home/package.json +3 -2
- package/examples/minimal-home/src/main.ts +151 -73
- package/llms-full.txt +2086 -0
- package/llms.txt +15 -13
- package/package.json +9 -3
package/llms.txt
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
> pagination, permissions, system status and language.
|
|
8
8
|
|
|
9
9
|
Every URL below is plain text over HTTPS, pinned to a released version, and
|
|
10
|
-
needs no authentication. Replace `0.
|
|
10
|
+
needs no authentication. Replace `0.22.0` with the version you depend on; the
|
|
11
11
|
contract changes between minors while the package is below 1.0.0.
|
|
12
12
|
|
|
13
13
|
The same files ship inside the npm tarball, so if you have run
|
|
@@ -16,27 +16,29 @@ The same files ship inside the npm tarball, so if you have run
|
|
|
16
16
|
|
|
17
17
|
## Start here
|
|
18
18
|
|
|
19
|
-
- [AGENTS.md](https://cdn.jsdelivr.net/npm/@condorinst/mobile-bridge@0.
|
|
20
|
-
- [
|
|
19
|
+
- [AGENTS.md](https://cdn.jsdelivr.net/npm/@condorinst/mobile-bridge@0.22.0/AGENTS.md): The contract in one screen — hard rules, the golden-path boot sequence, the browser harness and the validation loop. Read before writing code.
|
|
20
|
+
- [llms-full.txt](https://cdn.jsdelivr.net/npm/@condorinst/mobile-bridge@0.22.0/llms-full.txt): AGENTS.md and every document under docs/ concatenated into one file, for a single fetch.
|
|
21
|
+
- [Agent guide](https://cdn.jsdelivr.net/npm/@condorinst/mobile-bridge@0.22.0/docs/agent-guide.md): Step-by-step construction of a client Home, with the checks to run at each stage.
|
|
21
22
|
|
|
22
23
|
## Reference
|
|
23
24
|
|
|
24
|
-
- [Bridge contract](https://cdn.jsdelivr.net/npm/@condorinst/mobile-bridge@0.
|
|
25
|
-
- [Machine-readable contract](https://cdn.jsdelivr.net/npm/@condorinst/mobile-bridge@0.
|
|
26
|
-
- [Limits](https://cdn.jsdelivr.net/npm/@condorinst/mobile-bridge@0.
|
|
27
|
-
- [Troubleshooting](https://cdn.jsdelivr.net/npm/@condorinst/mobile-bridge@0.
|
|
28
|
-
- [
|
|
25
|
+
- [Bridge contract](https://cdn.jsdelivr.net/npm/@condorinst/mobile-bridge@0.22.0/docs/bridge-contract.md): Every observable key, every command, the three error shapes, and the capability matrix by native version.
|
|
26
|
+
- [Machine-readable contract](https://cdn.jsdelivr.net/npm/@condorinst/mobile-bridge@0.22.0/contract/bridge-contract.json): The same contract as JSON. Also importable as `@condorinst/mobile-bridge/contract`.
|
|
27
|
+
- [Limits](https://cdn.jsdelivr.net/npm/@condorinst/mobile-bridge@0.22.0/docs/limits.md): Every hard limit — payload size, rate limits, bundle size, timeouts — with what happens when you cross it.
|
|
28
|
+
- [Troubleshooting](https://cdn.jsdelivr.net/npm/@condorinst/mobile-bridge@0.22.0/docs/troubleshooting.md): Why a command did nothing, and why the device list never came. Silence is the platform's dominant failure mode.
|
|
29
|
+
- [Testing on a device](https://cdn.jsdelivr.net/npm/@condorinst/mobile-bridge@0.22.0/docs/device-testing.md): How a bundle reaches the phone, development vs production, inspecting the WebView, and where errors go.
|
|
30
|
+
- [TypeScript declarations](https://cdn.jsdelivr.net/npm/@condorinst/mobile-bridge@0.22.0/dist/index.d.ts): Authoritative payload shapes, with documentation on every member.
|
|
29
31
|
|
|
30
32
|
## Guides
|
|
31
33
|
|
|
32
|
-
- [Client guide](https://cdn.jsdelivr.net/npm/@condorinst/mobile-bridge@0.
|
|
33
|
-
- [Pilot onboarding](https://cdn.jsdelivr.net/npm/@condorinst/mobile-bridge@0.
|
|
34
|
-
- [README](https://cdn.jsdelivr.net/npm/@condorinst/mobile-bridge@0.
|
|
35
|
-
- [CHANGELOG](https://cdn.jsdelivr.net/npm/@condorinst/mobile-bridge@0.
|
|
34
|
+
- [Client guide](https://cdn.jsdelivr.net/npm/@condorinst/mobile-bridge@0.22.0/docs/client-guide.md): Narrative walkthrough for a developer building the Home by hand.
|
|
35
|
+
- [Pilot onboarding](https://cdn.jsdelivr.net/npm/@condorinst/mobile-bridge@0.22.0/docs/pilot-onboarding.md): Checklist from zero to a bundle delivered to Condor.
|
|
36
|
+
- [README](https://cdn.jsdelivr.net/npm/@condorinst/mobile-bridge@0.22.0/README.md): Package overview, install, quickstart.
|
|
37
|
+
- [CHANGELOG](https://cdn.jsdelivr.net/npm/@condorinst/mobile-bridge@0.22.0/CHANGELOG.md): When each capability was introduced. The most precise record of what a given native version supports.
|
|
36
38
|
|
|
37
39
|
## Examples
|
|
38
40
|
|
|
39
|
-
- [Minimal home](https://cdn.jsdelivr.net/npm/@condorinst/mobile-bridge@0.
|
|
41
|
+
- [Minimal home](https://cdn.jsdelivr.net/npm/@condorinst/mobile-bridge@0.22.0/examples/minimal-home/src/main.ts): A complete, working client with the reference boot sequence. Copy this as your starting point, and run it with `npx condor-mobile-bridge dev`.
|
|
40
42
|
|
|
41
43
|
## Optional
|
|
42
44
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@condorinst/mobile-bridge",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "TypeScript SDK for the JS↔Native bridge of the Condor white-label mobile app.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"private": false,
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
"import": "./dist/index.js",
|
|
18
18
|
"require": "./dist/index.cjs"
|
|
19
19
|
},
|
|
20
|
+
"./dev": {
|
|
21
|
+
"types": "./dist/dev.d.ts",
|
|
22
|
+
"import": "./dist/dev.js",
|
|
23
|
+
"require": "./dist/dev.cjs"
|
|
24
|
+
},
|
|
20
25
|
"./contract": "./contract/bridge-contract.json",
|
|
21
26
|
"./package.json": "./package.json"
|
|
22
27
|
},
|
|
@@ -36,13 +41,14 @@
|
|
|
36
41
|
"examples/minimal-home/AGENTS.md",
|
|
37
42
|
"AGENTS.md",
|
|
38
43
|
"llms.txt",
|
|
44
|
+
"llms-full.txt",
|
|
39
45
|
"README.md",
|
|
40
46
|
"CHANGELOG.md",
|
|
41
47
|
"LICENSE"
|
|
42
48
|
],
|
|
43
49
|
"scripts": {
|
|
44
|
-
"build": "tsup",
|
|
45
|
-
"typecheck": "tsc --noEmit",
|
|
50
|
+
"build": "tsup && node scripts/gen-llms-full.mjs",
|
|
51
|
+
"typecheck": "tsc --noEmit && tsc --noEmit -p examples/minimal-home/tsconfig.check.json && tsc --noEmit -p examples/client_demo",
|
|
46
52
|
"test": "vitest run",
|
|
47
53
|
"test:watch": "vitest",
|
|
48
54
|
"lint": "biome check .",
|