@bowmark/web 1.25.1 → 1.25.2
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/README.md +30 -19
- package/dist/generated/library.d.ts +1493 -78
- package/dist/generated/validators.js +1705 -31
- package/dist/session.js +34 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -39,27 +39,24 @@ declarations below AND the `.pyi`, `gate:public-types` asserts the two languages
|
|
|
39
39
|
same functions, and all three packages ship at one version — so a caller in either
|
|
40
40
|
language is looking at the same library.
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Using this package — start here
|
|
45
|
+
|
|
46
|
+
This is everything you need to write code that calls Bowmark:
|
|
47
|
+
|
|
48
|
+
- **[The session is the surface](#the-session-is-the-surface)** — How to use `session()` to keep your control flow on your machine
|
|
49
|
+
- **[The three other entry points](#the-three-other-entry-points)** — `bowmark`, `client()`, `openManagedSession()`, `run()` and when to use each
|
|
50
|
+
- **[Signing in](#signing-in--login-connection-and-bmconnections)** — How `login()` and `{ connection }` work
|
|
51
|
+
- **[Error handling](#what-it-throws)** — What exceptions to expect and how to handle them
|
|
52
|
+
- **[Configuration](#configuration)** — How to pass your API key and other options
|
|
53
|
+
|
|
54
|
+
Stop here if you just need to call the library. What exists to call is listed in
|
|
50
55
|
[`CAPABILITIES.md`](https://github.com/bowmark-ai/web/blob/main/CAPABILITIES.md) and
|
|
51
56
|
[`PROVIDERS.md`](https://github.com/bowmark-ai/web/blob/main/PROVIDERS.md) — absolute
|
|
52
|
-
URLs, because this README is read on npm where a relative link resolves to nothing.
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
generated by diffing those same two tables, so it describes the callable surface and
|
|
56
|
-
nothing else.
|
|
57
|
-
|
|
58
|
-
**Zero runtime dependencies, permanently.** Not an aspiration — the argument guard is
|
|
59
|
-
plain JS rather than a validator library, and the envelope shapes are hand-restated
|
|
60
|
-
rather than imported from `@bowmark/schema`, for exactly this reason. A `@bowmark/*`
|
|
61
|
-
import here would compile and typecheck in this repo and fail to install for every
|
|
62
|
-
consumer outside it; `tests/unit/bowmark-web-envelopes.test.ts` refuses one.
|
|
57
|
+
URLs, because this README is read on npm where a relative link resolves to nothing.
|
|
58
|
+
|
|
59
|
+
---
|
|
63
60
|
|
|
64
61
|
## The session is the surface
|
|
65
62
|
|
|
@@ -352,6 +349,20 @@ package's whole deliverable IS a `.d.ts` — with the inherited default, `pnpm t
|
|
|
352
349
|
reported green over a generated file carrying 40 unresolved type names. Do not "tidy" it
|
|
353
350
|
back to the inherited value.
|
|
354
351
|
|
|
352
|
+
**`incremental: false` in the same file is load-bearing too, for the identical class of
|
|
353
|
+
bug reaching a different config.** `tsconfig.build.json` already disables it, with its own
|
|
354
|
+
comment explaining a stale `.tsbuildinfo` silently skipping a publish-time compile;
|
|
355
|
+
`tsconfig.json` — the one CI's `Typecheck` step and `pnpm typecheck` actually use — needs
|
|
356
|
+
the same override because `library.d.ts` regenerates every 20-60 minutes on `main` while
|
|
357
|
+
`index.ts`/`session.ts` rarely change, and CI persists a `.tsbuildinfo` PER RUNNER AGENT
|
|
358
|
+
across unrelated commits (`ci.yml`'s incremental-cache restore/save steps). tsc's weaker
|
|
359
|
+
tracking of a triple-slash ambient reference (vs. a real import) let a stale buildinfo
|
|
360
|
+
report `Cannot find name 'BowmarkLibrary'` on unchanged code, sticky to whichever runner
|
|
361
|
+
happened to cache it — measured 4 times in 4 days on one agent, once costing a full day of
|
|
362
|
+
client releases. `agents/richard/problems/runner-5-bowmarklibrary-typecheck-flake.md`. Do
|
|
363
|
+
not re-enable it to chase the incremental typecheck speedup other packages get; this
|
|
364
|
+
package is two files and the savings do not apply.
|
|
365
|
+
|
|
355
366
|
The file is **committed**, for the reason the tier barrels are: this repo consumes
|
|
356
367
|
TypeScript with no build step, so a generate-at-build artifact leaves `tsc` and vitest
|
|
357
368
|
with nothing to read on a fresh clone. Committed plus a staleness gate is the only shape
|