@serene-pub/contracts 0.6.0-pr-6 โ 0.6.0-pr-7
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/dist/oracles.d.ts +185 -4
- package/dist/oracles.js +99 -9
- package/dist/outlets.d.ts +229 -2
- package/dist/outlets.js +256 -5
- package/dist/queries.d.ts +208 -0
- package/dist/queries.js +219 -2
- package/dist/tasks.d.ts +227 -0
- package/dist/tasks.js +142 -0
- package/package.json +3 -3
package/dist/outlets.js
CHANGED
|
@@ -500,6 +500,11 @@ export const setTurnOrder = pin(describeOutletDefinition({
|
|
|
500
500
|
* ruling, reversing the original "no causesEvent"): a package's state is the annex, and a
|
|
501
501
|
* genre that wants its turn order to answer that state binds the event in
|
|
502
502
|
* the open, where the event map draws it โ not through a back door.
|
|
503
|
+
*
|
|
504
|
+
* ๐ง Every write that moves the document moves the owner's **annex document
|
|
505
|
+
* version** (a count, 0 before the first): `base` makes the write a
|
|
506
|
+
* compare-and-set on it, so a run that read the document before another run
|
|
507
|
+
* wrote it is refused rather than overwriting that run's write.
|
|
503
508
|
* @experimental
|
|
504
509
|
*/
|
|
505
510
|
export const setSessionAnnex = pin(describeOutletDefinition({
|
|
@@ -555,8 +560,26 @@ export const setSessionAnnex = pin(describeOutletDefinition({
|
|
|
555
560
|
},
|
|
556
561
|
},
|
|
557
562
|
ports: {
|
|
558
|
-
in: {
|
|
559
|
-
|
|
563
|
+
in: {
|
|
564
|
+
value: S.json,
|
|
565
|
+
/**
|
|
566
|
+
* ๐ง Compare-and-set (M2a a8): the owner's **annex document
|
|
567
|
+
* version** this run read โ `session-annex`'s `version`. When the
|
|
568
|
+
* stored version is another, nothing is written: the write result
|
|
569
|
+
* says `stale: true` (`written: false`, with a receipt note), and
|
|
570
|
+
* `annex` and `version` carry the document as it stands now, to
|
|
571
|
+
* build on again. Absent, the write lands as it always did (the
|
|
572
|
+
* last writer's value wins).
|
|
573
|
+
*/
|
|
574
|
+
base: S.json,
|
|
575
|
+
},
|
|
576
|
+
out: {
|
|
577
|
+
main: S.writeResult,
|
|
578
|
+
/** The owner's document as written โ or, when `base` was stale, as it stands now. Never core's runtime keys. */
|
|
579
|
+
annex: S.json,
|
|
580
|
+
/** ๐ง The owner's annex document version after this write (unchanged when nothing was written). */
|
|
581
|
+
version: S.json,
|
|
582
|
+
},
|
|
560
583
|
},
|
|
561
584
|
}));
|
|
562
585
|
/**
|
|
@@ -809,6 +832,88 @@ export const setAnnexField = pin(describeOutletDefinition({
|
|
|
809
832
|
out: { main: S.writeResult, annex: S.json },
|
|
810
833
|
},
|
|
811
834
|
}));
|
|
835
|
+
/**
|
|
836
|
+
* ๐ง Write one owner's document into the **lorebook annex** (M0,
|
|
837
|
+
* SHAPES L9): the `set-session-annex` write at book scope. A write from a
|
|
838
|
+
* session is a change โ anchored to the turn, filed as a `lore_imprints` row
|
|
839
|
+
* (subject `annex`), retractable, settled with the stretch โ routed like
|
|
840
|
+
* every lore write; a write from a book-level run is lasting at once.
|
|
841
|
+
* @experimental
|
|
842
|
+
*/
|
|
843
|
+
export const setLorebookAnnex = pin(describeOutletDefinition({
|
|
844
|
+
id: 'core:outlet/set-lorebook-annex@1',
|
|
845
|
+
i18n: { name: { en: 'Set lorebook annex' } },
|
|
846
|
+
effects: 'write',
|
|
847
|
+
/** The lorebook twin of `annex-changed`, as `set-session-annex` causes that one. */
|
|
848
|
+
causesEvent: 'core:event/lorebook-annex-changed@1',
|
|
849
|
+
reviewDefault: 'off',
|
|
850
|
+
review: { fields: ['value'] },
|
|
851
|
+
timeoutMs: 2000,
|
|
852
|
+
ports: {
|
|
853
|
+
in: {
|
|
854
|
+
value: S.json,
|
|
855
|
+
/**
|
|
856
|
+
* ๐ง Compare-and-set (M2b), as `set-session-annex`'s `base`: the
|
|
857
|
+
* owner's annex document version this run read โ `lorebook-annex`'s
|
|
858
|
+
* `version`. Another stored version writes nothing (`written: false`,
|
|
859
|
+
* `stale: true`, a receipt note), and `annex` and `version` carry the
|
|
860
|
+
* document as it stands now. Absent, the last write wins.
|
|
861
|
+
*/
|
|
862
|
+
base: S.json,
|
|
863
|
+
},
|
|
864
|
+
out: {
|
|
865
|
+
main: S.writeResult,
|
|
866
|
+
/** The owner's document as written โ or, when `base` was stale, as it stands now. */
|
|
867
|
+
annex: S.json,
|
|
868
|
+
/** ๐ง (M2b) The owner's annex document version on the book after this write (unchanged when nothing was written). */
|
|
869
|
+
version: S.json,
|
|
870
|
+
},
|
|
871
|
+
},
|
|
872
|
+
}));
|
|
873
|
+
/**
|
|
874
|
+
* ๐ง Set one annex field declared `annexField({ scope: 'lorebook' })`
|
|
875
|
+
* (M0, SHAPES L9): the `set-annex-field` write at book scope, under the
|
|
876
|
+
* same rules as {@link setLorebookAnnex}.
|
|
877
|
+
* @experimental
|
|
878
|
+
*/
|
|
879
|
+
export const setLorebookAnnexField = pin(describeOutletDefinition({
|
|
880
|
+
id: 'core:outlet/set-lorebook-annex-field@1',
|
|
881
|
+
i18n: { name: { en: 'Set lorebook annex field' } },
|
|
882
|
+
effects: 'write',
|
|
883
|
+
causesEvent: 'core:event/lorebook-annex-changed@1',
|
|
884
|
+
reviewDefault: 'off',
|
|
885
|
+
/** The payload was judged at the door and is judged again here โ approve or refuse, never rewrite. */
|
|
886
|
+
review: { fields: [] },
|
|
887
|
+
timeoutMs: 2000,
|
|
888
|
+
ports: {
|
|
889
|
+
in: { payload: S.json },
|
|
890
|
+
out: { main: S.writeResult },
|
|
891
|
+
},
|
|
892
|
+
}));
|
|
893
|
+
/**
|
|
894
|
+
* ๐ง Move the session's rules to another version of their ruleset (M0,
|
|
895
|
+
* SHAPES L4 Conversion): built-in and owner-only, also the socket
|
|
896
|
+
* `sessions:convertRuleset`. Per session it re-keys renamed slots, retracts
|
|
897
|
+
* removed ones and inserts defaults for added ones โ each an anchored change,
|
|
898
|
+
* retractable โ then sets the session's ruleset version to `to`.
|
|
899
|
+
* @experimental
|
|
900
|
+
*/
|
|
901
|
+
export const convertRuleset = pin(describeOutletDefinition({
|
|
902
|
+
id: 'core:outlet/convert-ruleset@1',
|
|
903
|
+
i18n: { name: { en: 'Convert ruleset' } },
|
|
904
|
+
effects: 'write',
|
|
905
|
+
causesEvent: 'core:event/ruleset-converted@1',
|
|
906
|
+
/** The version is the ruleset's own, and the slots its upgrades name: approve or refuse, never rewrite. */
|
|
907
|
+
review: { fields: [] },
|
|
908
|
+
timeoutMs: 5000,
|
|
909
|
+
ports: {
|
|
910
|
+
in: {
|
|
911
|
+
/** The ruleset version to move to (semver). */
|
|
912
|
+
to: S.text,
|
|
913
|
+
},
|
|
914
|
+
out: { main: S.writeResult },
|
|
915
|
+
},
|
|
916
|
+
}));
|
|
812
917
|
/**
|
|
813
918
|
* Record an event your package declared: something happened, and
|
|
814
919
|
* pipelines bound to it โ plugin listeners, and widgets when the event is
|
|
@@ -1119,7 +1224,6 @@ export const offerMedia = pin(describeOutletDefinition({
|
|
|
1119
1224
|
},
|
|
1120
1225
|
},
|
|
1121
1226
|
}));
|
|
1122
|
-
// โโ The story clock (DESIGN-story-time P3, 2026-09-28) โโโโโโโโโโโโโโโโโโโโโโ
|
|
1123
1227
|
/**
|
|
1124
1228
|
* Move a session's **story clock** โ the session's own story now โ by `by` of
|
|
1125
1229
|
* `unit`, through its lorebook's calendar (`advanceStoryTime`): carried by a
|
|
@@ -1190,6 +1294,16 @@ export const advanceStoryClock = pin(describeOutletDefinition({
|
|
|
1190
1294
|
by: S.json,
|
|
1191
1295
|
/** One of the units; wins over the `unit` parameter when wired. */
|
|
1192
1296
|
unit: S.text,
|
|
1297
|
+
/**
|
|
1298
|
+
* ๐ง **Where the clock moves to** (M0, SHAPES L3), a
|
|
1299
|
+
* `ClockTargetV1` โ the second input shape: an absolute moment
|
|
1300
|
+
* within the day ("sleep until 07:00") instead of a relative
|
|
1301
|
+
* `by`. Exactly one of the `by` and `to` in-ports may be wired;
|
|
1302
|
+
* both is refused with a sentence naming both. Wired, the `by`
|
|
1303
|
+
* and `unit` parameters are not read. One ledger move either
|
|
1304
|
+
* way, retractable as every move is.
|
|
1305
|
+
*/
|
|
1306
|
+
to: S.clockTarget,
|
|
1193
1307
|
/**
|
|
1194
1308
|
* ๐ง **Why the clock moves** (live scenes ยง15 G4, 2026-10-13),
|
|
1195
1309
|
* a literal: `'action'` โ a person's press (*Time passesโฆ*);
|
|
@@ -1235,6 +1349,12 @@ export const advanceStoryClock = pin(describeOutletDefinition({
|
|
|
1235
1349
|
skipped: S.text,
|
|
1236
1350
|
/** It spelled through the book's calendar. */
|
|
1237
1351
|
label: S.text,
|
|
1352
|
+
/**
|
|
1353
|
+
* ๐ง The minutes a `to` move moved the clock (M0, T1) โ 0
|
|
1354
|
+
* when it stood where it was or was refused under `skip`, with
|
|
1355
|
+
* no ledger row. Absent on a `by` move.
|
|
1356
|
+
*/
|
|
1357
|
+
moved: S.json,
|
|
1238
1358
|
},
|
|
1239
1359
|
},
|
|
1240
1360
|
}));
|
|
@@ -1301,7 +1421,15 @@ export const answerForm = pin(describeOutletDefinition({
|
|
|
1301
1421
|
},
|
|
1302
1422
|
},
|
|
1303
1423
|
}));
|
|
1304
|
-
/**
|
|
1424
|
+
/**
|
|
1425
|
+
* The audio twin of `attach-image` โ same `target`, same commit, bound the same day.
|
|
1426
|
+
*
|
|
1427
|
+
* ๐ง Speech (seam S3, 2026-10-28): `meta` is the `SpokenMeta` record
|
|
1428
|
+
* `core:oracle/speak@1` publishes, kept in the line's metadata for the swipe
|
|
1429
|
+
* (`spoken`) beside the audio part; `replace` swaps the line's earlier spoken
|
|
1430
|
+
* audio rather than adding a second part โ what re-speaking a line does.
|
|
1431
|
+
* @experimental
|
|
1432
|
+
*/
|
|
1305
1433
|
export const attachAudio = pin(describeOutletDefinition({
|
|
1306
1434
|
id: 'core:outlet/attach-audio@1',
|
|
1307
1435
|
effects: 'write',
|
|
@@ -1309,7 +1437,31 @@ export const attachAudio = pin(describeOutletDefinition({
|
|
|
1309
1437
|
review: { fields: [] },
|
|
1310
1438
|
timeoutMs: 5000,
|
|
1311
1439
|
causesEvent: 'core:event/message-updated@1',
|
|
1312
|
-
|
|
1440
|
+
slots: {
|
|
1441
|
+
params: {
|
|
1442
|
+
kind: 'parameters',
|
|
1443
|
+
facet: 'behavior',
|
|
1444
|
+
schema: {
|
|
1445
|
+
replace: {
|
|
1446
|
+
type: 'boolean',
|
|
1447
|
+
default: false,
|
|
1448
|
+
label: { en: 'Replace earlier speech' },
|
|
1449
|
+
description: {
|
|
1450
|
+
en: "Swap the line's spoken audio for this one instead of adding a second part.",
|
|
1451
|
+
},
|
|
1452
|
+
},
|
|
1453
|
+
},
|
|
1454
|
+
},
|
|
1455
|
+
},
|
|
1456
|
+
ports: {
|
|
1457
|
+
in: {
|
|
1458
|
+
target: S.rowIds,
|
|
1459
|
+
audio: S.audio,
|
|
1460
|
+
/** ๐ง `SpokenMeta` โ absent writes the audio part alone. */
|
|
1461
|
+
meta: S.spokenMeta,
|
|
1462
|
+
},
|
|
1463
|
+
out: { main: S.writeResult },
|
|
1464
|
+
},
|
|
1313
1465
|
}));
|
|
1314
1466
|
// โโ Summarization โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
1315
1467
|
/**
|
|
@@ -1663,4 +1815,103 @@ export const graphProposal = pin(describeOutletDefinition({
|
|
|
1663
1815
|
out: { main: S.writeResult, proposalId: S.writeResult },
|
|
1664
1816
|
},
|
|
1665
1817
|
}));
|
|
1818
|
+
/**
|
|
1819
|
+
* Make a character: write one character card into the acting person's library.
|
|
1820
|
+
*
|
|
1821
|
+
* Takes `card` โ a V3 card `{ spec: 'chara_card_v3', data }`, its `data`, or a
|
|
1822
|
+
* plain `{ name, description, personality?, scenario?, first_mes?,
|
|
1823
|
+
* mes_example?, creator_notes?, tags? }`, exactly what the app's card reader
|
|
1824
|
+
* takes. Writes one character row (or, under the person's library write mode,
|
|
1825
|
+
* a proposal for it); `characterId` is the new row's id, or absent while the
|
|
1826
|
+
* write waits.
|
|
1827
|
+
*
|
|
1828
|
+
* โ The app, not the pipeline, judges the write: it finds the person acting
|
|
1829
|
+
* for the run, and their **library write mode** decides whether the card lands
|
|
1830
|
+
* now (Full), waits for them to accept it in the session (Review, the
|
|
1831
|
+
* default), or is refused (Off). A genre must also declare
|
|
1832
|
+
* `writes.library.characters`, or the host refuses the write.
|
|
1833
|
+
* @internal
|
|
1834
|
+
*/
|
|
1835
|
+
export const createCharacter = pin(describeOutletDefinition({
|
|
1836
|
+
id: 'core:outlet/create-character@1',
|
|
1837
|
+
i18n: { name: { en: 'Make a character' } },
|
|
1838
|
+
effects: 'write',
|
|
1839
|
+
/** R-15: the card a person may retype before it lands. */
|
|
1840
|
+
review: { fields: ['card'] },
|
|
1841
|
+
timeoutMs: 10000,
|
|
1842
|
+
ports: {
|
|
1843
|
+
in: { card: S.json },
|
|
1844
|
+
out: { main: S.writeResult, characterId: S.writeResult },
|
|
1845
|
+
},
|
|
1846
|
+
}));
|
|
1847
|
+
/**
|
|
1848
|
+
* Change a character: edit the text fields of a character the acting person
|
|
1849
|
+
* may write to.
|
|
1850
|
+
*
|
|
1851
|
+
* Takes `characterId` and `changes` โ an object of the card's text fields
|
|
1852
|
+
* (name, description, personality, scenario, first_mes, mes_example). Writes
|
|
1853
|
+
* those fields on that character, and nothing else; the fields it replaced are
|
|
1854
|
+
* kept so Back can restore them. The app judges the person (write rights on
|
|
1855
|
+
* the character) and their library write mode (Full, Review or Off); a genre
|
|
1856
|
+
* must declare `writes.library.characters`.
|
|
1857
|
+
* @internal
|
|
1858
|
+
*/
|
|
1859
|
+
export const updateCharacter = pin(describeOutletDefinition({
|
|
1860
|
+
id: 'core:outlet/update-character@1',
|
|
1861
|
+
i18n: { name: { en: 'Change a character' } },
|
|
1862
|
+
effects: 'write',
|
|
1863
|
+
/** R-15: the change a person may retype before it lands. */
|
|
1864
|
+
review: { fields: ['changes'] },
|
|
1865
|
+
timeoutMs: 10000,
|
|
1866
|
+
ports: {
|
|
1867
|
+
in: { characterId: S.json, changes: S.json },
|
|
1868
|
+
out: { main: S.writeResult, characterId: S.writeResult },
|
|
1869
|
+
},
|
|
1870
|
+
}));
|
|
1871
|
+
/**
|
|
1872
|
+
* Make a lorebook: write one lorebook into the acting person's library.
|
|
1873
|
+
*
|
|
1874
|
+
* Takes `lorebook` โ a lorebook document as Lorebooks โบ Import reads it (a
|
|
1875
|
+
* SillyTavern world-info JSON is the safe shape: `{ name, description?,
|
|
1876
|
+
* entries }`). Writes a lorebook and its entries (or, under the person's
|
|
1877
|
+
* library write mode, a proposal for them); `lorebookId` is the new book's id.
|
|
1878
|
+
* The app judges the person and their library write mode (Full, Review or
|
|
1879
|
+
* Off); a genre must declare `writes.library.lorebooks`.
|
|
1880
|
+
* @internal
|
|
1881
|
+
*/
|
|
1882
|
+
export const createLorebook = pin(describeOutletDefinition({
|
|
1883
|
+
id: 'core:outlet/create-lorebook@1',
|
|
1884
|
+
i18n: { name: { en: 'Make a lorebook' } },
|
|
1885
|
+
effects: 'write',
|
|
1886
|
+
/** R-15: the book a person may retype before it lands. */
|
|
1887
|
+
review: { fields: ['lorebook'] },
|
|
1888
|
+
timeoutMs: 10000,
|
|
1889
|
+
ports: {
|
|
1890
|
+
in: { lorebook: S.json },
|
|
1891
|
+
out: { main: S.writeResult, lorebookId: S.writeResult },
|
|
1892
|
+
},
|
|
1893
|
+
}));
|
|
1894
|
+
/**
|
|
1895
|
+
* Read a lorebook into a session: attach an existing lorebook to a session.
|
|
1896
|
+
*
|
|
1897
|
+
* Takes `lorebookId` and, optionally, `sessionId` (absent: the run's own
|
|
1898
|
+
* session). Writes the session's lorebook; what it replaced is kept so Back
|
|
1899
|
+
* can restore it. The app judges the person (read rights on the book and write
|
|
1900
|
+
* rights on the session) and their library write mode (Full, Review or Off).
|
|
1901
|
+
* A genre must declare `writes.library.lorebooks`, and
|
|
1902
|
+
* `writes.library.sessions` to name a session other than the run's.
|
|
1903
|
+
* @internal
|
|
1904
|
+
*/
|
|
1905
|
+
export const attachLorebook = pin(describeOutletDefinition({
|
|
1906
|
+
id: 'core:outlet/attach-lorebook@1',
|
|
1907
|
+
i18n: { name: { en: 'Read a lorebook into a session' } },
|
|
1908
|
+
effects: 'write',
|
|
1909
|
+
/** R-15: a reference, not a value to retype: a reviewer who disagrees refuses the write. */
|
|
1910
|
+
review: { fields: [] },
|
|
1911
|
+
timeoutMs: 10000,
|
|
1912
|
+
ports: {
|
|
1913
|
+
in: { lorebookId: S.json, sessionId: S.json },
|
|
1914
|
+
out: { main: S.writeResult },
|
|
1915
|
+
},
|
|
1916
|
+
}));
|
|
1666
1917
|
//# sourceMappingURL=outlets.js.map
|
package/dist/queries.d.ts
CHANGED
|
@@ -1352,8 +1352,18 @@ export declare const castPresences: import("@serene-pub/sdk").Pinned<import("@se
|
|
|
1352
1352
|
main: string;
|
|
1353
1353
|
/** The story date the session reads at, or null for the head. */
|
|
1354
1354
|
at: string;
|
|
1355
|
+
/**
|
|
1356
|
+
* ๐ง `{ bindingId: number; where: string }[]` โ where each cast member is at `atHour`, read
|
|
1357
|
+
* from the first `schedule` field on an entry they hold; a member with none is left out.
|
|
1358
|
+
*/
|
|
1359
|
+
placements: string;
|
|
1355
1360
|
}, {
|
|
1356
1361
|
scope: string;
|
|
1362
|
+
/**
|
|
1363
|
+
* ๐ง The hour to place the cast at (M0, SHAPES L3): a clock target. Unwired,
|
|
1364
|
+
* the clock's present hour, today.
|
|
1365
|
+
*/
|
|
1366
|
+
atHour: string;
|
|
1357
1367
|
}, "core:query/cast-presences@1"> & {
|
|
1358
1368
|
kind: 'query';
|
|
1359
1369
|
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
@@ -2516,6 +2526,14 @@ export declare const turnPlan: import("@serene-pub/sdk").Pinned<import("@serene-
|
|
|
2516
2526
|
*/
|
|
2517
2527
|
export declare const sessionAnnex: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
2518
2528
|
main: string;
|
|
2529
|
+
/**
|
|
2530
|
+
* ๐ง The owner's **annex document version** (M2a a8): a count the
|
|
2531
|
+
* host moves with every write of that document, 0 before the
|
|
2532
|
+
* first. Wire it into `set-session-annex`'s `base` to make the
|
|
2533
|
+
* write a compare-and-set. Absent for `view: 'template'` (many
|
|
2534
|
+
* owners, no one version).
|
|
2535
|
+
*/
|
|
2536
|
+
version: string;
|
|
2519
2537
|
}, {
|
|
2520
2538
|
scope: string;
|
|
2521
2539
|
/**
|
|
@@ -2565,6 +2583,59 @@ export declare const sessionAnnex: import("@serene-pub/sdk").Pinned<import("@ser
|
|
|
2565
2583
|
};
|
|
2566
2584
|
} | undefined;
|
|
2567
2585
|
}>;
|
|
2586
|
+
/**
|
|
2587
|
+
* ๐ง The **lorebook annex** (M0, SHAPES L9): read one owner's document
|
|
2588
|
+
* out of the annex of the book the session reads โ the session annex's model
|
|
2589
|
+
* at book scope, for world-level engine state that is neither an attribute nor
|
|
2590
|
+
* prose. Like `session-annex@1`, the owner defaults to the running spec's own
|
|
2591
|
+
* namespace, and reading another's takes `sharedAnnex`.
|
|
2592
|
+
*
|
|
2593
|
+
* โ Not an entry, and not a save: typed world facts stay attributes, and a
|
|
2594
|
+
* session is the save.
|
|
2595
|
+
* @experimental
|
|
2596
|
+
*/
|
|
2597
|
+
export declare const lorebookAnnex: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
2598
|
+
main: string;
|
|
2599
|
+
/**
|
|
2600
|
+
* ๐ง (M2b) The owner's annex document version on the book a
|
|
2601
|
+
* `set-lorebook-annex` from this run would write (0 before the first
|
|
2602
|
+
* write) โ wire it into that step's `base` for a compare-and-set.
|
|
2603
|
+
* Absent when the run has no book to write.
|
|
2604
|
+
*/
|
|
2605
|
+
version: string;
|
|
2606
|
+
}, {
|
|
2607
|
+
scope: string;
|
|
2608
|
+
}, "core:query/lorebook-annex@1"> & {
|
|
2609
|
+
kind: 'query';
|
|
2610
|
+
slots?: {
|
|
2611
|
+
readonly params: {
|
|
2612
|
+
readonly kind: "parameters";
|
|
2613
|
+
readonly facet: "behavior";
|
|
2614
|
+
readonly schema: {
|
|
2615
|
+
readonly owner: {
|
|
2616
|
+
readonly type: "string";
|
|
2617
|
+
readonly default: "";
|
|
2618
|
+
readonly label: {
|
|
2619
|
+
readonly en: "Owner";
|
|
2620
|
+
};
|
|
2621
|
+
readonly description: {
|
|
2622
|
+
readonly en: "Whose document to read. Blank means this pipeline's own.";
|
|
2623
|
+
};
|
|
2624
|
+
};
|
|
2625
|
+
readonly sharedAnnex: {
|
|
2626
|
+
readonly type: "boolean";
|
|
2627
|
+
readonly default: false;
|
|
2628
|
+
readonly label: {
|
|
2629
|
+
readonly en: "Read another owner";
|
|
2630
|
+
};
|
|
2631
|
+
readonly description: {
|
|
2632
|
+
readonly en: "Allow reading a document this pipeline does not own. Off refuses, with a note on the receipt.";
|
|
2633
|
+
};
|
|
2634
|
+
};
|
|
2635
|
+
};
|
|
2636
|
+
};
|
|
2637
|
+
} | undefined;
|
|
2638
|
+
}>;
|
|
2568
2639
|
/**
|
|
2569
2640
|
* The messages a summary is drawn from โ both pins on one export, the way a
|
|
2570
2641
|
* pinned constructor carries its version at the call site (04 ยง4b):
|
|
@@ -3558,4 +3629,141 @@ export declare const likenessImages: import("@serene-pub/sdk").Pinned<import("@s
|
|
|
3558
3629
|
kind: 'query';
|
|
3559
3630
|
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
3560
3631
|
}>;
|
|
3632
|
+
/**
|
|
3633
|
+
* ๐ง **One message as a line to speak**: its words, whose line it is and the
|
|
3634
|
+
* inflection it was recorded with โ what `core:task/cue-lines@1` takes, read
|
|
3635
|
+
* off ONE stored row by id. The manual *Read aloud* / *Say it asโฆ* verbs'
|
|
3636
|
+
* read (`core:spec/speak-message`): the history read's rows are opaque
|
|
3637
|
+
* (`messages@1`), so nothing else can hand cue-lines a stored line's speaker
|
|
3638
|
+
* or inflection.
|
|
3639
|
+
*
|
|
3640
|
+
* - `text` โ the row's words; **empty** when the row is not this session's,
|
|
3641
|
+
* is hidden, or is still being written (the history read's rule), so a
|
|
3642
|
+
* spec junctions on it and nothing is spoken.
|
|
3643
|
+
* - `speaker` โ the participant reference the row was voiced by: an envoy's
|
|
3644
|
+
* `envoy:<slug>`, a persona's or character's `character:<id>`; absent for
|
|
3645
|
+
* narration and for a person's own line with no persona.
|
|
3646
|
+
* - `inflection` โ the line's recorded inflection: the label of the sprite
|
|
3647
|
+
* shown on its active swipe (a sprite pick is an inflection). Absent when
|
|
3648
|
+
* no sprite was shown.
|
|
3649
|
+
*
|
|
3650
|
+
* `say` overrides the recorded inflection with what a person asked for (the
|
|
3651
|
+
* *Say it asโฆ* press's collected text): a word the host's marker table knows
|
|
3652
|
+
* (`sighs`, `angrily`, `joy`) becomes that label; any other words are kept as
|
|
3653
|
+
* the label as written, which a prose-taking model reads as direction and a
|
|
3654
|
+
* tag-taking model drops. Blank `say` keeps the recorded one.
|
|
3655
|
+
*
|
|
3656
|
+
* No writes, no model: a read.
|
|
3657
|
+
* @experimental
|
|
3658
|
+
*/
|
|
3659
|
+
export declare const messageLine: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
3660
|
+
main: string;
|
|
3661
|
+
/** The row's words; empty when the row is hidden, still written, or not this session's. */
|
|
3662
|
+
text: string;
|
|
3663
|
+
/** Whose line it is; absent for narration. */
|
|
3664
|
+
speaker: string;
|
|
3665
|
+
/** How it is spoken: `say` when given, else the recorded sprite label; absent when neither. */
|
|
3666
|
+
inflection: string;
|
|
3667
|
+
}, {
|
|
3668
|
+
scope: string;
|
|
3669
|
+
/** The row โ the inlet's `messageId`, the message a press on a message's โฎ was made on. */
|
|
3670
|
+
messageId: string;
|
|
3671
|
+
/** How it should sound, in a person's words; blank keeps the recorded inflection. */
|
|
3672
|
+
say: string;
|
|
3673
|
+
}, "core:query/message-line@1"> & {
|
|
3674
|
+
kind: 'query';
|
|
3675
|
+
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
3676
|
+
}>;
|
|
3677
|
+
/**
|
|
3678
|
+
* The largest file `core:query/plugin-storage@1` will read: 4 MiB. A bigger
|
|
3679
|
+
* file is refused with a sentence naming both sizes. (M2a)
|
|
3680
|
+
* @experimental
|
|
3681
|
+
*/
|
|
3682
|
+
export declare const PLUGIN_STORAGE_QUERY_MAX_BYTES: number;
|
|
3683
|
+
/**
|
|
3684
|
+
* ๐ง (M2a) **A file from the running plugin's own storage** โ read-only, size
|
|
3685
|
+
* capped, one file per read. Say a plugin's genre has a create pipeline that
|
|
3686
|
+
* loads a custom world the person imported: the world sits in the plugin's
|
|
3687
|
+
* storage, and this reads it into the run.
|
|
3688
|
+
*
|
|
3689
|
+
* Why a query and not a task: tasks are pure (F11) โ the same inputs give the
|
|
3690
|
+
* same output โ and a file on disk is state outside the graph, so it enters
|
|
3691
|
+
* the way every other outside state does, through a query.
|
|
3692
|
+
*
|
|
3693
|
+
* Whose storage: only the plugin that owns the running pipeline. A core or
|
|
3694
|
+
* person-authored pipeline is refused ("plugin-storage reads only a plugin's
|
|
3695
|
+
* own pipeline's storage"). `scope: 'pub'` reads the plugin's shared files and
|
|
3696
|
+
* needs its `storage` grant in force; `scope: 'me'` reads the acting person's
|
|
3697
|
+
* own folder and needs `storage-per-user` in force and a person on the run.
|
|
3698
|
+
* The path is relative, with no `..`, and stays inside the folder. No write,
|
|
3699
|
+
* no listing. A missing file answers `found: false`, not a halt.
|
|
3700
|
+
* @experimental
|
|
3701
|
+
*/
|
|
3702
|
+
export declare const pluginStorage: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
3703
|
+
/** The parsed JSON, or the text; null when the file is missing. */
|
|
3704
|
+
main: string;
|
|
3705
|
+
/** Whether the file was there. */
|
|
3706
|
+
found: string;
|
|
3707
|
+
}, {
|
|
3708
|
+
/** The file, relative to the folder: `worlds/atlas.json`. */
|
|
3709
|
+
path: string;
|
|
3710
|
+
}, "core:query/plugin-storage@1"> & {
|
|
3711
|
+
kind: 'query';
|
|
3712
|
+
slots?: {
|
|
3713
|
+
readonly params: {
|
|
3714
|
+
readonly kind: "parameters";
|
|
3715
|
+
readonly facet: "behavior";
|
|
3716
|
+
readonly schema: {
|
|
3717
|
+
readonly scope: {
|
|
3718
|
+
readonly type: "enum";
|
|
3719
|
+
readonly default: "pub";
|
|
3720
|
+
readonly label: {
|
|
3721
|
+
readonly en: "Whose files";
|
|
3722
|
+
};
|
|
3723
|
+
readonly members: readonly [{
|
|
3724
|
+
readonly key: "pub";
|
|
3725
|
+
readonly label: {
|
|
3726
|
+
readonly en: "The plugin";
|
|
3727
|
+
};
|
|
3728
|
+
readonly description: {
|
|
3729
|
+
readonly en: "The plugin's shared files.";
|
|
3730
|
+
};
|
|
3731
|
+
}, {
|
|
3732
|
+
readonly key: "me";
|
|
3733
|
+
readonly label: {
|
|
3734
|
+
readonly en: "The person";
|
|
3735
|
+
};
|
|
3736
|
+
readonly description: {
|
|
3737
|
+
readonly en: "The acting person's own files for this plugin.";
|
|
3738
|
+
};
|
|
3739
|
+
}];
|
|
3740
|
+
};
|
|
3741
|
+
readonly as: {
|
|
3742
|
+
readonly type: "enum";
|
|
3743
|
+
readonly default: "json";
|
|
3744
|
+
readonly label: {
|
|
3745
|
+
readonly en: "Read as";
|
|
3746
|
+
};
|
|
3747
|
+
readonly members: readonly [{
|
|
3748
|
+
readonly key: "json";
|
|
3749
|
+
readonly label: {
|
|
3750
|
+
readonly en: "JSON";
|
|
3751
|
+
};
|
|
3752
|
+
readonly description: {
|
|
3753
|
+
readonly en: "Parse the file and give the value.";
|
|
3754
|
+
};
|
|
3755
|
+
}, {
|
|
3756
|
+
readonly key: "text";
|
|
3757
|
+
readonly label: {
|
|
3758
|
+
readonly en: "Text";
|
|
3759
|
+
};
|
|
3760
|
+
readonly description: {
|
|
3761
|
+
readonly en: "Give the file as text.";
|
|
3762
|
+
};
|
|
3763
|
+
}];
|
|
3764
|
+
};
|
|
3765
|
+
};
|
|
3766
|
+
};
|
|
3767
|
+
} | undefined;
|
|
3768
|
+
}>;
|
|
3561
3769
|
//# sourceMappingURL=queries.d.ts.map
|