techne-sdk 0.3.1 → 0.3.3

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.
Files changed (28) hide show
  1. package/CHANGELOG.md +40 -3
  2. package/README.md +4 -14
  3. package/dist/auth/placement.gen.d.ts +1 -1
  4. package/dist/auth/placement.gen.js +2 -0
  5. package/dist/catalog/catalog.gen.d.ts +6 -33
  6. package/dist/catalog/catalog.gen.js +570 -34
  7. package/dist/generated/index.d.ts +56 -0
  8. package/dist/generated/index.js +72 -0
  9. package/dist/generated/lexicons.d.ts +372 -42
  10. package/dist/generated/lexicons.js +223 -21
  11. package/dist/generated/nsid.d.ts +7 -0
  12. package/dist/generated/nsid.js +7 -0
  13. package/dist/generated/nsid.json +7 -0
  14. package/dist/generated/records.d.ts +48 -44
  15. package/dist/generated/types/pub/techne/draft/collective.d.ts +2 -0
  16. package/dist/generated/types/pub/techne/draft/identity/listPhoneHolds.d.ts +2 -0
  17. package/dist/generated/types/pub/techne/draft/permissioned/putRecord.d.ts +3 -3
  18. package/dist/generated/types/pub/techne/draft/permissioned/putRecords.d.ts +2 -2
  19. package/dist/generated/types/pub/techne/draft/placeResearch.d.ts +47 -0
  20. package/dist/generated/types/pub/techne/draft/placeResearch.js +26 -0
  21. package/dist/generated/types/pub/techne/draft/query/composeRecords.d.ts +1 -1
  22. package/dist/generated/types/pub/techne/draft/query/listRecords.d.ts +1 -1
  23. package/dist/generated/types/pub/techne/draft/questionSet.d.ts +3 -0
  24. package/dist/generated/types/pub/techne/draft/summary.d.ts +16 -0
  25. package/dist/generated/types/pub/techne/draft/summary.js +12 -0
  26. package/dist/wasm/techne-wasm.gen.js +1 -1
  27. package/dist/wasm/techne-wasm2js.gen.js +17633 -16383
  28. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -3,14 +3,51 @@
3
3
  `techne-sdk` on npm and the `techne-sdk` crate share a version. Each entry names what changes for an app or
4
4
  a crate user.
5
5
 
6
- ## Unreleased
6
+ ## 0.3.3 (2026-11-10)
7
+
8
+ Built on lexicons `v0.1.22-techne.64` (b1407281) and the platform's published API at platform
9
+ `e4cc8b0ef` (`inputs.pin.json`). The crate depends on `techne-lexicon-check` 0.3.3 from crates.io, packaged
10
+ from that lexicons tag. Additive only: no export is removed or renamed.
11
+
12
+ - **New record types `pub.techne.draft.placeResearch` and `pub.techne.draft.summary`.** `placeResearch` is
13
+ what a writer found out about a place (`subject`, `kind`, `about`, `website`, `facts`, `tags`, `sources`,
14
+ `confidence`); `summary` is a short text about any record (`subject`, `text`). Both are public, one per
15
+ subject per writer (`sidecar_rkey` of the subject's AT-URI). They get generated types, `NSID.PLACE_RESEARCH`
16
+ and `NSID.SUMMARY`, catalog and placement entries, and `put` and the WebAssembly validate them. The
17
+ publish scope (`authWrite`) now covers both.
18
+ - **`questionSet` has `howToAnswer`.** Optional answering instructions shared by every question in a set,
19
+ stated once; each question's `prompt` (still required) is then the question's own text.
20
+ - **Bigger question sets.** `questionSet.questions` and `assessment.answers` / `assessment.missing` now
21
+ allow up to 1000 items (was 200).
22
+ - **A collective can have an emoji.** Optional `collective.emoji`: one emoji (one grapheme cluster, checked by
23
+ the WebAssembly too). A client shows the avatar if there is one, else the emoji, else the name's first
24
+ letter.
25
+ - **`METHOD.GET_EVENT_ANNOTATIONS`** (`social.scenius.getEventAnnotations`), and the `social.scenius.ask`
26
+ method lexicon as the platform now publishes it (optional `chips` and `timeChip` on its answer), are in the
27
+ inputs (names only; no new client method).
28
+
29
+ ## 0.3.2 (2026-11-10)
30
+
31
+ Built on lexicons `v0.1.22-techne.63` (693f27ce) and the platform's published API at regenOS main `d3f224e6a`
32
+ (`inputs.pin.json`). The crate depends on `techne-lexicon-check` 0.3.2 from crates.io, packaged from that
33
+ lexicons tag.
7
34
 
8
35
  - **A private record must name its space.** The platform now refuses a `permissioned.putRecord(s)` write
9
36
  with no `space` (400 `InvalidRequest`; lucian 2026-11-09). `put` checks first: a record that is written
10
37
  privately (a type with no public home) and names no `space` throws `PutError` with `InvalidRequest`, and
11
38
  nothing is written. A record only the person reads goes in their own `space.personal`
12
- (`at://{did}/pub.techne.draft.space.personal/self`). Public records are unchanged. The generated types
13
- follow when the lexicons pin moves to the tag that carries the change (v0.1.22-techne.62).
39
+ (`at://{did}/pub.techne.draft.space.personal/self`). Public records are unchanged. The generated types say so too: `space` is now
40
+ required on `pub.techne.draft.permissioned.putRecord`'s input and on each `putRecords` write (a type error
41
+ for code that builds those calls by hand without one).
42
+ - **`put` knows a community draft by the registry's own rule.** A community draft is now a name the
43
+ pinned check's `community::is_community` accepts: `pub.techne.draft.c.<id>.<name>` with an id the
44
+ registry mints (6 to 26 lower-case base32, starting with a letter), in lower case. 0.3.1 matched any
45
+ name under that prefix, without case, so a malformed one (`pub.techne.draft.c.r8fd.toolListing`,
46
+ `Pub.Techne.Draft.C.…`) went to the user's public repo. Such a name is a typo under the platform's
47
+ namespace and now stays private, like any other.
48
+ - **`listPhoneHolds` holds carry `name`.** On a hold the caller asked for, the `name` of the caller's own
49
+ active contact on that number (optional `HoldView.name`). Lexicon description texts are updated
50
+ throughout (the generated doc comments and the WebAssembly's embedded lexicons follow).
14
51
 
15
52
  ## 0.3.1
16
53
 
package/README.md CHANGED
@@ -114,20 +114,10 @@ else {
114
114
 
115
115
  ## Changing it
116
116
 
117
- - **A lexicon changed:** tag the lexicons repo. Set `lexicons.tag` and `lexicons.commit` in `inputs.pin.json` and the `techne-lexicon-check` tag in `Cargo.toml`, then run `cargo update -p techne-lexicon-check` and `node scripts/inputs-sync.mjs --lexicons <lexicons checkout> --platform <platform checkout>`. Then run `npm run codegen` and commit.
118
- - **The platform's API changed:** set `platformApi.rev` (a platform tag for releases), then run the same sync and codegen.
119
- - **The Rust logic changed:** edit `crates/techne-sdk` and run `npm run codegen` (it rebuilds the WebAssembly). The fixtures must still agree.
120
-
121
- `npm run codegen` needs the pinned Rust toolchain (`rust-toolchain.toml`) with the `wasm32-unknown-unknown` target, and `npx` for binaryen. The build is reproducible, so the gate can diff it against the committed one.
122
-
123
- ## The gate
124
-
125
- ```sh
126
- bash scripts/gate.sh # inputs, codegen (no drift), typecheck, test, package, rust
127
- ```
128
-
129
- `package` builds `dist/`, then loads every subpath through `exports` in plain Node and runs the fixtures through the built WebAssembly and wasm2js modules. It also checks the `npm pack` file list with a dry run. `rust` runs the same fixtures through the crate.
117
+ Re-pinning a lexicon or platform API change, rebuilding the generated code and WebAssembly, and the gate
118
+ are in [wiki/development/inputs-and-codegen.md](https://github.com/technefoundation/sdk/blob/main/wiki/development/inputs-and-codegen.md) and
119
+ [wiki/development/gate-and-tests.md](https://github.com/technefoundation/sdk/blob/main/wiki/development/gate-and-tests.md).
130
120
 
131
121
  ## Releasing
132
122
 
133
- See [RELEASING.md](RELEASING.md).
123
+ See [RELEASING.md](https://github.com/technefoundation/sdk/blob/main/RELEASING.md).
@@ -1 +1 @@
1
- export declare const PUBLIC_HOMES: readonly ["pub.techne.draft.appConfig", "pub.techne.draft.approval", "pub.techne.draft.connection", "pub.techne.draft.contactChannel", "pub.techne.draft.channelVerification", "pub.techne.draft.containedIn", "pub.techne.draft.derivation", "pub.techne.draft.distinctFrom", "pub.techne.draft.geo", "pub.techne.draft.heldAt", "pub.techne.draft.operator", "pub.techne.draft.org", "pub.techne.draft.profile", "pub.techne.draft.assessment", "pub.techne.draft.provenance", "pub.techne.draft.questionSet", "pub.techne.draft.receipt", "pub.techne.draft.registry.typeRequest", "pub.techne.draft.verdict", "pub.techne.draft.verification", "pub.techne.draft.retirement", "pub.techne.draft.credential", "pub.techne.draft.credentialRevocation", "pub.techne.draft.publisher", "pub.techne.draft.sameAs", "pub.techne.draft.source", "pub.techne.draft.sourceAttribution", "pub.techne.draft.sourceRef", "pub.techne.draft.evaluation", "pub.techne.draft.event.config", "pub.techne.draft.event.listing", "pub.techne.draft.feed.recipe", "pub.techne.draft.query", "pub.techne.draft.invite", "pub.techne.draft.market.ask", "pub.techne.draft.market.offer", "pub.techne.draft.membership", "pub.techne.draft.place", "pub.techne.draft.presence", "pub.techne.draft.actor.profile", "pub.techne.draft.collective", "community.lexicon.calendar.event", "community.lexicon.calendar.rsvp"];
1
+ export declare const PUBLIC_HOMES: readonly ["pub.techne.draft.appConfig", "pub.techne.draft.approval", "pub.techne.draft.connection", "pub.techne.draft.contactChannel", "pub.techne.draft.channelVerification", "pub.techne.draft.containedIn", "pub.techne.draft.derivation", "pub.techne.draft.distinctFrom", "pub.techne.draft.geo", "pub.techne.draft.heldAt", "pub.techne.draft.operator", "pub.techne.draft.org", "pub.techne.draft.profile", "pub.techne.draft.assessment", "pub.techne.draft.placeResearch", "pub.techne.draft.summary", "pub.techne.draft.provenance", "pub.techne.draft.questionSet", "pub.techne.draft.receipt", "pub.techne.draft.registry.typeRequest", "pub.techne.draft.verdict", "pub.techne.draft.verification", "pub.techne.draft.retirement", "pub.techne.draft.credential", "pub.techne.draft.credentialRevocation", "pub.techne.draft.publisher", "pub.techne.draft.sameAs", "pub.techne.draft.source", "pub.techne.draft.sourceAttribution", "pub.techne.draft.sourceRef", "pub.techne.draft.evaluation", "pub.techne.draft.event.config", "pub.techne.draft.event.listing", "pub.techne.draft.feed.recipe", "pub.techne.draft.query", "pub.techne.draft.invite", "pub.techne.draft.market.ask", "pub.techne.draft.market.offer", "pub.techne.draft.membership", "pub.techne.draft.place", "pub.techne.draft.presence", "pub.techne.draft.actor.profile", "pub.techne.draft.collective", "community.lexicon.calendar.event", "community.lexicon.calendar.rsvp"];
@@ -18,6 +18,8 @@ export const PUBLIC_HOMES = [
18
18
  NSID.ORG,
19
19
  NSID.PROFILE,
20
20
  NSID.ASSESSMENT,
21
+ NSID.PLACE_RESEARCH,
22
+ NSID.SUMMARY,
21
23
  NSID.PROVENANCE,
22
24
  NSID.QUESTION_SET,
23
25
  NSID.RECEIPT,
@@ -546,6 +546,12 @@ export declare const catalog: {
546
546
  required: boolean;
547
547
  description: string;
548
548
  knownValues?: undefined;
549
+ } | {
550
+ name: string;
551
+ type: string;
552
+ required: boolean;
553
+ description: string;
554
+ knownValues: string[];
549
555
  })[];
550
556
  doc: unknown;
551
557
  params?: undefined;
@@ -798,39 +804,6 @@ export declare const catalog: {
798
804
  }[];
799
805
  doc: unknown;
800
806
  params?: undefined;
801
- } | {
802
- nsid: string;
803
- name: string;
804
- group: string;
805
- kind: string;
806
- class: string;
807
- description: string;
808
- input: ({
809
- name: string;
810
- type: string;
811
- required: boolean;
812
- description?: undefined;
813
- } | {
814
- name: string;
815
- type: string;
816
- required: boolean;
817
- description: string;
818
- })[];
819
- output: ({
820
- name: string;
821
- type: string;
822
- required: boolean;
823
- description: string;
824
- knownValues?: undefined;
825
- } | {
826
- name: string;
827
- type: string;
828
- required: boolean;
829
- description: string;
830
- knownValues: string[];
831
- })[];
832
- doc: unknown;
833
- params?: undefined;
834
807
  })[];
835
808
  counts: {
836
809
  records: number;