pi-lean-host 0.4.0 → 0.5.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/README.md +194 -557
- package/core/api-guide-types.ts +250 -47
- package/core/api-toggle.ts +244 -39
- package/core/auth.ts +996 -76
- package/core/delete-command.ts +1 -1
- package/core/fs-0600.ts +39 -0
- package/core/guide-catalog.ts +349 -0
- package/core/guide-picker.ts +76 -61
- package/core/guide-store.ts +2 -2
- package/core/helpers.ts +529 -142
- package/core/local-helpers.ts +7 -0
- package/core/oauth-command.ts +911 -0
- package/core/oauth-flow.ts +376 -0
- package/core/oauth-store.ts +306 -0
- package/core/parse-api-guide.ts +1122 -591
- package/core/path-template.ts +101 -0
- package/core/portal-projection.ts +3 -4
- package/core/resolve-op.ts +113 -67
- package/core/response-spill.ts +10 -7
- package/core/secrets-command.ts +18 -13
- package/core/secrets-store.ts +11 -44
- package/core/select-picker.ts +171 -0
- package/core/staging.ts +29 -0
- package/core/transport.ts +321 -34
- package/core/verify-command.ts +93 -65
- package/docs/migration-v1.md +56 -0
- package/index.ts +12 -10
- package/package.json +16 -6
- package/tools/api-fetch.ts +45 -18
- package/tools/api-guide.ts +20 -11
- package/tools/api-learn.ts +131 -57
- package/tools/api-probe.ts +455 -282
- package/tools/api-scaffold.ts +15 -22
- package/tools/api-store.ts +381 -0
- package/tools/oauth-mint.ts +338 -0
- package/tools/utils.ts +1 -1
- package/core/verify-ship-manifest.ts +0 -118
- package/tools/index.ts +0 -8
package/core/local-helpers.ts
CHANGED
|
@@ -23,6 +23,13 @@
|
|
|
23
23
|
* templating / query assembly. It must be synchronous-pure or
|
|
24
24
|
* fully-awaited — no background work (setTimeout/setInterval/process.on
|
|
25
25
|
* callbacks escape as uncaughtException and cannot be caught here).
|
|
26
|
+
*
|
|
27
|
+
* Reserved seam — the return contract. The default export's return stays
|
|
28
|
+
* the params record. Richer pre-call control (request headers, path
|
|
29
|
+
* rewrite) must land as a NEW named export (e.g. `buildRequest`) or a new
|
|
30
|
+
* op field — never by overloading the return shape with reserved wrapper
|
|
31
|
+
* keys ({ params, headers, path }): a legitimate params record whose query
|
|
32
|
+
* params are literally named `params`/`headers`/`path` would be re-meaned.
|
|
26
33
|
*/
|
|
27
34
|
|
|
28
35
|
import { join } from "node:path";
|