@serene-pub/sdk 0.6.0-pr-2 → 0.6.0-pr-4
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 +1 -1
- package/dist/actions.d.ts +1 -1
- package/dist/actions.js +1 -1
- package/dist/executor.js +7 -1
- package/dist/identity.d.ts +1 -1
- package/dist/identity.js +1 -1
- package/dist/shapes.d.ts +4 -5
- package/dist/shapes.js +4 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -68,7 +68,7 @@ mistake that is supposed to be a compile error stops being one.**
|
|
|
68
68
|
| `sdk/src/connections.ts` | what an import must wire, derived from types rather than stored rows |
|
|
69
69
|
| `sdk/src/registry.ts` | `type_registry` rows, and install-time validation from data alone |
|
|
70
70
|
| `sdk/src/dev.ts` | dev loading: memory-only overlay, and which reloads may apply mid-run |
|
|
71
|
-
| `contracts/src/
|
|
71
|
+
| `contracts/src/{inlets,queries,tasks,oracles,outlets}.ts` | core's node definitions and a few sample plugin ones, one file per node kind (`index.ts` re-exports them) |
|
|
72
72
|
| `cli/src/compiler.ts` | the packager: a source scan plus the built extension, cross-checked |
|
|
73
73
|
| `cli/src/codegen.ts` | `/contracts` generation, and the rule that binding names are **derived** |
|
|
74
74
|
| `cli/src/bin.ts` | `serene-pub build / check / contracts` |
|
package/dist/actions.d.ts
CHANGED
|
@@ -347,7 +347,7 @@ export declare function placeActions<A extends {
|
|
|
347
347
|
venue: ReadonlyArray<Venue>;
|
|
348
348
|
quick?: boolean;
|
|
349
349
|
}>(actions: ReadonlyArray<A>, channel?: string): VenueListings<A>;
|
|
350
|
-
/** The namespace of a spec id — `core:spec/narrate` → `core`, `acme:spec/roll` → `acme`. @experimental */
|
|
350
|
+
/** The namespace of a spec id — `core:spec/chat-narrate` → `core`, `acme:spec/roll` → `acme`. @experimental */
|
|
351
351
|
export declare function specNamespace(specId: string): string;
|
|
352
352
|
/** Is this namespace core's — the one whose actions take bare slash names? @experimental */
|
|
353
353
|
export declare const isCoreNamespace: (ns: string) => boolean;
|
package/dist/actions.js
CHANGED
|
@@ -174,7 +174,7 @@ export function placeActions(actions, channel = DEFAULT_CHANNEL) {
|
|
|
174
174
|
}
|
|
175
175
|
return listings;
|
|
176
176
|
}
|
|
177
|
-
/** The namespace of a spec id — `core:spec/narrate` → `core`, `acme:spec/roll` → `acme`. @experimental */
|
|
177
|
+
/** The namespace of a spec id — `core:spec/chat-narrate` → `core`, `acme:spec/roll` → `acme`. @experimental */
|
|
178
178
|
export function specNamespace(specId) {
|
|
179
179
|
const i = specId.indexOf(':');
|
|
180
180
|
return i === -1 ? '' : specId.slice(0, i);
|
package/dist/executor.js
CHANGED
|
@@ -466,7 +466,13 @@ export async function run(doc, opts) {
|
|
|
466
466
|
const d = getDefinition(`${node.definitionId}@${node.definitionVersion}`);
|
|
467
467
|
const targetNode = doc.nodes.find((n) => n.key === targetKey) ?? node;
|
|
468
468
|
const td = getDefinition(`${targetNode.definitionId}@${targetNode.definitionVersion}`);
|
|
469
|
-
|
|
469
|
+
// The type's shape, then the slot's own: a Task has no shape of its
|
|
470
|
+
// own, and its connection slot states the kind it takes
|
|
471
|
+
// (`SlotDecl.shape`, which `requiredConnections` already reads) —
|
|
472
|
+
// `core:task/query-windows@1`'s embedding slot, since `embed-text`
|
|
473
|
+
// stopped declaring one to reference (2026-10-05). Every oracle
|
|
474
|
+
// declares the same shape on both, so nothing else moves.
|
|
475
|
+
const kind = td?.shape ?? td?.slots?.connection?.shape ?? d?.shape ?? d?.slots?.connection?.shape;
|
|
470
476
|
const stored = config[targetKey]?.['connection']?.[SLOT_VALUE];
|
|
471
477
|
/**
|
|
472
478
|
* The pick, then the instance default — but the default answers only
|
package/dist/identity.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ export declare const qualify: (i: SpecIdentity) => string;
|
|
|
62
62
|
export declare const CORE_ACTION_SPEC_ID = "core";
|
|
63
63
|
/**
|
|
64
64
|
* An action's **identity** on the wire: `<spec slug>#<key>` — a spec slug
|
|
65
|
-
* (`core`, `core:spec/narrate`, `acme:spec/roll`; versionless, so no `@`)
|
|
65
|
+
* (`core`, `core:spec/chat-narrate`, `acme:spec/roll`; versionless, so no `@`)
|
|
66
66
|
* and a key (a lowercase kebab token), joined by `#`. One string names one
|
|
67
67
|
* declaration; everything that keys on an action keys on this — a binding's
|
|
68
68
|
* subject, a preset's included set, a session's enablement row, a genre's
|
package/dist/identity.js
CHANGED
|
@@ -103,7 +103,7 @@ export const qualify = (i) => `${i.owner ? `${i.owner}:` : ''}${i.slug}@${i.vers
|
|
|
103
103
|
export const CORE_ACTION_SPEC_ID = 'core';
|
|
104
104
|
/**
|
|
105
105
|
* An action's **identity** on the wire: `<spec slug>#<key>` — a spec slug
|
|
106
|
-
* (`core`, `core:spec/narrate`, `acme:spec/roll`; versionless, so no `@`)
|
|
106
|
+
* (`core`, `core:spec/chat-narrate`, `acme:spec/roll`; versionless, so no `@`)
|
|
107
107
|
* and a key (a lowercase kebab token), joined by `#`. One string names one
|
|
108
108
|
* declaration; everything that keys on an action keys on this — a binding's
|
|
109
109
|
* subject, a preset's included set, a session's enablement row, a genre's
|
package/dist/shapes.d.ts
CHANGED
|
@@ -254,19 +254,18 @@ export declare const S: {
|
|
|
254
254
|
readonly turnEntries: string;
|
|
255
255
|
/**
|
|
256
256
|
* **Sprite choices** (DESIGN-sprites §5.2): what a line's speaker can show
|
|
257
|
-
* — `{ characterId, set, defaultSet, labels, last,
|
|
257
|
+
* — `{ characterId, set, defaultSet, labels, last, recent, decidedBy }`.
|
|
258
258
|
* `set` is the sprite set in force for the line (a session override, the
|
|
259
259
|
* cast member's amendment, or the card's default — `decidedBy` says
|
|
260
260
|
* which); `labels` are that set's sprite labels with an image; `last` is
|
|
261
261
|
* the speaker's previous shown sprite, for stickiness. What
|
|
262
|
-
* `core:
|
|
262
|
+
* `core:oracle/pick-sprite@1` publishes beside its pick, for the receipt.
|
|
263
263
|
*/
|
|
264
264
|
readonly spriteChoices: string;
|
|
265
265
|
/**
|
|
266
266
|
* **A sprite pick**: `{ set, label, score?, runnerUp?, held? } | null` — the
|
|
267
|
-
* sprite a picker chose for a line, or null for none. What
|
|
268
|
-
* picker publishes on `main
|
|
269
|
-
* it exactly as it keys a turn strategy on `turn-entries@1`.
|
|
267
|
+
* sprite a picker chose for a line, or null for none. What the sprite
|
|
268
|
+
* picker publishes on `main` and `core:outlet/show-sprite@1` records.
|
|
270
269
|
*/
|
|
271
270
|
readonly spritePick: string;
|
|
272
271
|
/**
|
package/dist/shapes.js
CHANGED
|
@@ -278,19 +278,18 @@ export const S = {
|
|
|
278
278
|
turnEntries: defineShape({ id: 'core:shape/turn-entries@1' }),
|
|
279
279
|
/**
|
|
280
280
|
* **Sprite choices** (DESIGN-sprites §5.2): what a line's speaker can show
|
|
281
|
-
* — `{ characterId, set, defaultSet, labels, last,
|
|
281
|
+
* — `{ characterId, set, defaultSet, labels, last, recent, decidedBy }`.
|
|
282
282
|
* `set` is the sprite set in force for the line (a session override, the
|
|
283
283
|
* cast member's amendment, or the card's default — `decidedBy` says
|
|
284
284
|
* which); `labels` are that set's sprite labels with an image; `last` is
|
|
285
285
|
* the speaker's previous shown sprite, for stickiness. What
|
|
286
|
-
* `core:
|
|
286
|
+
* `core:oracle/pick-sprite@1` publishes beside its pick, for the receipt.
|
|
287
287
|
*/
|
|
288
288
|
spriteChoices: defineShape({ id: 'core:shape/sprite-choices@1' }),
|
|
289
289
|
/**
|
|
290
290
|
* **A sprite pick**: `{ set, label, score?, runnerUp?, held? } | null` — the
|
|
291
|
-
* sprite a picker chose for a line, or null for none. What
|
|
292
|
-
* picker publishes on `main
|
|
293
|
-
* it exactly as it keys a turn strategy on `turn-entries@1`.
|
|
291
|
+
* sprite a picker chose for a line, or null for none. What the sprite
|
|
292
|
+
* picker publishes on `main` and `core:outlet/show-sprite@1` records.
|
|
294
293
|
*/
|
|
295
294
|
spritePick: defineShape({ id: 'core:shape/sprite-pick@1' }),
|
|
296
295
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serene-pub/sdk",
|
|
3
|
-
"version": "0.6.0-pr-
|
|
3
|
+
"version": "0.6.0-pr-4",
|
|
4
4
|
"description": "Author Serene Pub pipelines and plugins: nodes, specs, the executor, and the author-side test harness.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/SerenePub/serene-pub-sdk/tree/main/sdk#readme",
|