ignotum 0.0.11 → 0.0.13
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 +8 -3
- package/dist/cli/bin.mjs +1372 -492
- package/dist/cli/bin.mjs.map +1 -1
- package/dist/runtime/{api-DzcR7spt.js → api-CAgKDij7.js} +38 -2
- package/dist/runtime/api-CAgKDij7.js.map +1 -0
- package/dist/runtime/{api-DR_8vfKg.d.ts → api-Cv3hMbzo.d.ts} +4 -3
- package/dist/runtime/client.d.ts +39 -8
- package/dist/runtime/client.js +505 -131
- package/dist/runtime/client.js.map +1 -1
- package/dist/runtime/descriptor-Cyo9FP9n-C0SRVXNW.js +154 -0
- package/dist/runtime/descriptor-Cyo9FP9n-C0SRVXNW.js.map +1 -0
- package/dist/runtime/id-Bt9XWRGL.js +423 -0
- package/dist/runtime/id-Bt9XWRGL.js.map +1 -0
- package/dist/runtime/{id-Cs82tq9Q-hmYFyqTa.d.ts → id-BzFHf3Wo-DGPCjgrf.d.ts} +13 -13
- package/dist/runtime/id-Dz0apuB3.d.ts +1 -0
- package/dist/runtime/{index-2q9FwJud.d.ts → index-D54flWtH.d.ts} +136 -76
- package/dist/runtime/internal/api.d.ts +1 -1
- package/dist/runtime/internal/api.js +1 -1
- package/dist/runtime/internal/host.d.ts +21 -17
- package/dist/runtime/internal/host.js +22 -8
- package/dist/runtime/internal/host.js.map +1 -1
- package/dist/runtime/internal/server.d.ts +1 -1
- package/dist/runtime/internal/server.js +1 -1
- package/dist/runtime/internal/types.d.ts +1 -1
- package/dist/runtime/internal/types.js +1 -1
- package/dist/runtime/{pagination-Bt3l7QaC-BYEGmLBE.d.ts → pagination-DnKg3dkI-r5ZUxBBx.d.ts} +34 -6
- package/dist/runtime/pagination-Dz0apuB3.d.ts +1 -0
- package/dist/runtime/result-DKAA4gpS.d.ts +1 -0
- package/dist/runtime/{schema-ERFjT8-m.js → schema-1Zs03-iS.js} +135 -17
- package/dist/runtime/schema-1Zs03-iS.js.map +1 -0
- package/dist/runtime/server.d.ts +9 -3
- package/dist/runtime/server.js +5 -3
- package/dist/runtime/server.js.map +1 -1
- package/dist/runtime/{sync-a2EdGSdY.d.ts → sync-Bs8J3fIr.d.ts} +2 -2
- package/package.json +4 -4
- package/src/cli/agent-files.ts +8 -0
- package/src/cli/auth-client.ts +1 -1
- package/src/cli/bin.ts +13 -3
- package/src/cli/build/server.ts +102 -13
- package/src/cli/codegen.ts +7 -4
- package/src/cli/control-client.ts +30 -8
- package/src/cli/deploy.ts +7 -2
- package/src/cli/environment.ts +133 -0
- package/src/client/files.ts +43 -27
- package/src/client/hooks.ts +94 -17
- package/src/client/id.ts +259 -0
- package/src/client/index.ts +5 -2
- package/src/client/page-observers.ts +77 -0
- package/src/client/sync.ts +214 -69
- package/src/dev-runtime/functions.ts +232 -86
- package/src/dev-runtime/id.ts +174 -2
- package/src/dev-runtime/query-cache.ts +105 -0
- package/src/dev-runtime/sync.ts +187 -26
- package/src/server/index.ts +13 -1
- package/dist/runtime/api-DzcR7spt.js.map +0 -1
- package/dist/runtime/descriptor-C5VA9qRl-DuQsowaQ.js +0 -311
- package/dist/runtime/descriptor-C5VA9qRl-DuQsowaQ.js.map +0 -1
- package/dist/runtime/file-C1abuMgd.js +0 -173
- package/dist/runtime/file-C1abuMgd.js.map +0 -1
- package/dist/runtime/pagination-CFJ3xlAt.d.ts +0 -1
- package/dist/runtime/schema-ERFjT8-m.js.map +0 -1
package/README.md
CHANGED
|
@@ -80,6 +80,10 @@ result. Queries can read. Mutations can read and write, and their writes commit
|
|
|
80
80
|
the function succeeds. Arguments, returned values, and declared application errors are checked at
|
|
81
81
|
runtime as well as in TypeScript.
|
|
82
82
|
|
|
83
|
+
Typed server-only configuration can be declared in `server/env.ts` with `defineEnv`, supplied from
|
|
84
|
+
the project-root `.env.ignotum`, and read through `ctx.env`. Use `values.secret()` for redacted
|
|
85
|
+
values and `Secret.value(...)` when a function deliberately needs the underlying value.
|
|
86
|
+
|
|
83
87
|
## Build the client
|
|
84
88
|
|
|
85
89
|
`client/index.tsx` default-exports one `app` definition. Use generated references with the query and
|
|
@@ -150,7 +154,8 @@ deployments do not need `--app`.
|
|
|
150
154
|
|
|
151
155
|
Application code uses two entry points:
|
|
152
156
|
|
|
153
|
-
- `ignotum/server` exports `defineSchema`, the server form of `Result`, and
|
|
157
|
+
- `ignotum/server` exports `defineSchema`, `defineEnv`, `Secret`, the server form of `Result`, and
|
|
158
|
+
server authoring types.
|
|
154
159
|
- `ignotum/client` exports `app`, query and mutation hooks, `Query.skip`, client-side result
|
|
155
160
|
matching, application file URLs, and the supported UI APIs and types.
|
|
156
161
|
|
|
@@ -161,8 +166,8 @@ code. Shared modules may be imported through `@/shared`.
|
|
|
161
166
|
## Current scope
|
|
162
167
|
|
|
163
168
|
Ignotum currently supports schema-defined data, queries, mutations, live query results, application
|
|
164
|
-
image files, local development, and hosted deployment. It does not provide
|
|
165
|
-
HTTP endpoints, actions, scheduled jobs, or workflows.
|
|
169
|
+
image files, typed environments, local development, and hosted deployment. It does not provide
|
|
170
|
+
authentication, custom HTTP endpoints, actions, scheduled jobs, or workflows.
|
|
166
171
|
|
|
167
172
|
See the [Ignotum documentation](https://docs.ignotum.cloud) for validators, indexes, pagination,
|
|
168
173
|
errors, consistency guarantees, hosted limits, and deployment behavior.
|