@mapier/imsg-sdk 0.5.0 → 0.7.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.
Potentially problematic release.
This version of @mapier/imsg-sdk might be problematic. Click here for more details.
- package/dist/gateway/extension-card.d.ts +34 -0
- package/dist/gateway/extension-card.js +182 -0
- package/dist/gateway/extension-card.js.map +1 -0
- package/dist/gateway/fake.d.ts +15 -9
- package/dist/gateway/fake.js +166 -17
- package/dist/gateway/fake.js.map +1 -1
- package/dist/gateway/imsg.d.ts +14 -9
- package/dist/gateway/imsg.js +130 -56
- package/dist/gateway/imsg.js.map +1 -1
- package/dist/gateway/message-removal.d.ts +16 -0
- package/dist/gateway/message-removal.js +94 -0
- package/dist/gateway/message-removal.js.map +1 -0
- package/dist/gateway/multipart.d.ts +38 -0
- package/dist/gateway/multipart.js +216 -0
- package/dist/gateway/multipart.js.map +1 -0
- package/dist/gateway/tapback.d.ts +16 -0
- package/dist/gateway/tapback.js +103 -0
- package/dist/gateway/tapback.js.map +1 -0
- package/dist/gateway/types.d.ts +70 -9
- package/dist/gateway/types.js +20 -0
- package/dist/gateway/types.js.map +1 -1
- package/dist/imsg/rpc.d.ts +6 -2
- package/dist/imsg/rpc.js +43 -4
- package/dist/imsg/rpc.js.map +1 -1
- package/dist/imsg/status.js +25 -0
- package/dist/imsg/status.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/interactions/catalog.js +7 -3
- package/dist/interactions/catalog.js.map +1 -1
- package/dist/types.d.ts +2 -0
- package/docs/api.md +1 -1
- package/docs/capability-matrix.md +3 -0
- package/docs/gateway-contract.md +550 -16
- package/docs/interactions.md +21 -19
- package/package.json +1 -1
package/docs/interactions.md
CHANGED
|
@@ -136,17 +136,20 @@ corrections changed which kinds `agentUsable()` returns.
|
|
|
136
136
|
Flagged as the catalog's highest-value unbuilt seam: richer than any `native-balloon` kind,
|
|
137
137
|
with `web-surface`'s zero install cost.
|
|
138
138
|
- **`host-extension-card`** — renamed from an earlier draft's `extension-card`. `tier:
|
|
139
|
-
'extension'`, `requiresRecipientInstall: true`, `
|
|
140
|
-
Spectrum host-extension pattern (cited above) — external product, cited as
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
139
|
+
'extension'`, `requiresRecipientInstall: true`, `outbound: 'agent'`, `status: 'fake-only'`.
|
|
140
|
+
Modeled on Photon's Spectrum host-extension pattern (cited above) — external product, cited as
|
|
141
|
+
provenance. **No longer an unbuilt seam** (M2B-46): `Gateway.sendExtensionCard` sends a card
|
|
142
|
+
for a third-party iMessage app extension and updates it in place, which is exactly the
|
|
143
|
+
injection the 2026-07-14 spike found no precedent for. That spike's verdict is **overturned on
|
|
144
|
+
the mechanism, upheld on the wall**: a Mac-injected card for a non-Apple extension was observed
|
|
145
|
+
on real phones on 2026-09-20 sending, delivering, drawing, and opening the installed app
|
|
146
|
+
in-thread — but Apple's gate is exactly where `MSMessageLiveLayout` said it was. With the app
|
|
147
|
+
installed the extension draws the card itself; with `liveLayout:false` the recipient sees the
|
|
148
|
+
app's icon beside *our* caption; without the app they get a small static card (App Store link
|
|
149
|
+
only when `appStoreId` is supplied). So the host model still amortizes the install across every
|
|
150
|
+
future mini-app rather than removing it. `status` is `fake-only`, not `host-smoked`: the SDK
|
|
151
|
+
verb has only been exercised against `FakeGateway` and its unit tests — the host run is
|
|
152
|
+
pending, which is why this row stays out of `agentUsable()`. `fallback: 'web-url'`.
|
|
150
153
|
|
|
151
154
|
## Adding a kind
|
|
152
155
|
|
|
@@ -163,14 +166,13 @@ Mirrors `docs/gateway-contract.md` §4's contributor discipline:
|
|
|
163
166
|
`InteractionRegistry`/`InteractionHarness`.
|
|
164
167
|
4. **This doc.** Update the row's writeup here with the citation.
|
|
165
168
|
|
|
166
|
-
A row may enter the catalog as `status: 'unbuilt'` only as a documented seam — e.g. `app-clip
|
|
167
|
-
|
|
168
|
-
|
|
169
|
+
A row may enter the catalog as `status: 'unbuilt'` only as a documented seam — e.g. `app-clip` —
|
|
170
|
+
never as a placeholder for something already claimed to work elsewhere (the mistake the original
|
|
171
|
+
`poll` and `effect` drafts made).
|
|
169
172
|
|
|
170
173
|
## Unbuilt seams: priority note
|
|
171
174
|
|
|
172
|
-
`app-clip` (zero-install, native, richer than any balloon) is the
|
|
173
|
-
this catalog. `host-extension-card`
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
is.
|
|
175
|
+
`app-clip` (zero-install, native, richer than any balloon) is now the only unbuilt row left, and
|
|
176
|
+
the highest-value lever in this catalog. `host-extension-card` left this list in M2B-46: the
|
|
177
|
+
mechanism is built (`Gateway.sendExtensionCard`) and climbing the ladder — `fake-only` until the
|
|
178
|
+
host run — rather than deliberately unbuilt.
|
package/package.json
CHANGED