@serene-pub/contracts 0.6.0-pr-4 → 0.6.0-pr-6
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/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/inlets.d.ts +295 -50
- package/dist/inlets.js +468 -55
- package/dist/oracles.d.ts +440 -19
- package/dist/oracles.js +425 -42
- package/dist/outlets.d.ts +583 -44
- package/dist/outlets.js +641 -60
- package/dist/queries.d.ts +323 -80
- package/dist/queries.js +330 -90
- package/dist/tasks.d.ts +1425 -179
- package/dist/tasks.js +1169 -148
- package/package.json +3 -3
package/dist/oracles.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type { FieldDecl } from '@serene-pub/sdk';
|
|
9
9
|
/**
|
|
10
|
-
* **The model decides who speaks
|
|
10
|
+
* **The model decides who speaks**: the oracle on
|
|
11
11
|
* the turn-order spec's optional model path (`decide.model.advise`). Same
|
|
12
12
|
* ports as a strategy — candidates and the visible history in, prepared turn
|
|
13
13
|
* entries out on `main` and `order` — so the junction's result port reads
|
|
@@ -29,6 +29,10 @@ export declare const turnAdvise: import("@serene-pub/sdk").Pinned<import("@seren
|
|
|
29
29
|
}, "core:oracle/turn-advise@1"> & {
|
|
30
30
|
kind: 'oracle';
|
|
31
31
|
slots?: {
|
|
32
|
+
readonly loadout: {
|
|
33
|
+
readonly kind: 'loadout';
|
|
34
|
+
readonly quick: true;
|
|
35
|
+
};
|
|
32
36
|
readonly connection: {
|
|
33
37
|
readonly kind: "connection";
|
|
34
38
|
readonly quick: true;
|
|
@@ -62,7 +66,7 @@ export declare const turnAdvise: import("@serene-pub/sdk").Pinned<import("@seren
|
|
|
62
66
|
}>;
|
|
63
67
|
/**
|
|
64
68
|
* Run the tool the model asked for, and hand the answer back as text it can
|
|
65
|
-
* read on the next pass
|
|
69
|
+
* read on the next pass.
|
|
66
70
|
*
|
|
67
71
|
* ## Why this is a Provider and not a Task
|
|
68
72
|
*
|
|
@@ -120,8 +124,8 @@ export declare const embedText: import("@serene-pub/sdk").Pinned<import("@serene
|
|
|
120
124
|
readonly kind: "parameters";
|
|
121
125
|
readonly schema: {
|
|
122
126
|
/**
|
|
123
|
-
* `shared`: one switch for every embed step of a
|
|
124
|
-
*
|
|
127
|
+
* `shared`: one switch for every embed step of a
|
|
128
|
+
* spec. `respond` puts it on the semantic mechanism's embed
|
|
125
129
|
* and the entity-vector mechanism's embed reads it through
|
|
126
130
|
* `slot.params({ node })` — an install with no embedding
|
|
127
131
|
* model switches both off in one place, which is the only
|
|
@@ -163,19 +167,19 @@ export declare const embedText: import("@serene-pub/sdk").Pinned<import("@serene
|
|
|
163
167
|
} | undefined;
|
|
164
168
|
}>;
|
|
165
169
|
/**
|
|
166
|
-
* An MCP tool call
|
|
167
|
-
* connection. The snapshot path
|
|
170
|
+
* An MCP tool call — the generic Provider for a tool on any MCP
|
|
171
|
+
* connection. The snapshot path projects each advertised tool as its
|
|
168
172
|
* own registry row under the connection's namespace, typed off the tool's
|
|
169
173
|
* declared input schema; this generic type is the escape hatch beneath them —
|
|
170
174
|
* pin it, choose the connection, name the tool in params.
|
|
171
175
|
*
|
|
172
176
|
* `effects: 'external'` unconditionally: MCP annotations (`readOnlyHint` and
|
|
173
177
|
* friends) are advisory by specification and are never trusted for gating
|
|
174
|
-
*
|
|
178
|
+
* The admin's per-tool classification lives on the snapshot rows;
|
|
175
179
|
* this generic type gates always, because through it any tool is reachable.
|
|
176
180
|
*
|
|
177
181
|
* The result carries the request and response verbatim in its output — which
|
|
178
|
-
* is the receipt, which is the pitch
|
|
182
|
+
* is the receipt, which is the pitch: no other MCP client can answer
|
|
179
183
|
* "what did this tool actually do, and did I approve it" from a row.
|
|
180
184
|
* @experimental
|
|
181
185
|
*/
|
|
@@ -227,10 +231,10 @@ export declare const mcpTool: import("@serene-pub/sdk").Pinned<import("@serene-p
|
|
|
227
231
|
} | undefined;
|
|
228
232
|
}>;
|
|
229
233
|
/**
|
|
230
|
-
* An MCP resource read
|
|
231
|
-
* Query may not reach the network
|
|
232
|
-
* process boundary must be recorded verbatim so replay never re-infers
|
|
233
|
-
*
|
|
234
|
+
* An MCP resource read — a Provider, deliberately not a Query. A
|
|
235
|
+
* Query may not reach the network, and everything crossing the
|
|
236
|
+
* process boundary must be recorded verbatim so replay never re-infers;
|
|
237
|
+
* a resource is external state that can change between runs, and
|
|
234
238
|
* modelling it as a Query would quietly break both rules.
|
|
235
239
|
* @experimental
|
|
236
240
|
*/
|
|
@@ -276,12 +280,12 @@ export declare const generateText: import("@serene-pub/sdk").Pinned<import("@ser
|
|
|
276
280
|
}, {
|
|
277
281
|
context: string;
|
|
278
282
|
/**
|
|
279
|
-
* Whose reply is being generated — the stop-string exclusion
|
|
280
|
-
*
|
|
283
|
+
* Whose reply is being generated — the stop-string exclusion:
|
|
284
|
+
* the speaking character's own name must not stop
|
|
281
285
|
* their own reply. The host already preferred a payload value
|
|
282
286
|
* over the run scope's; this port is what lets a spec supply
|
|
283
287
|
* one, so the exclusion follows the next-speaker node's output
|
|
284
|
-
*
|
|
288
|
+
* instead of the pre-run guess.
|
|
285
289
|
*/
|
|
286
290
|
currentCharacterId: string;
|
|
287
291
|
/**
|
|
@@ -302,6 +306,10 @@ export declare const generateText: import("@serene-pub/sdk").Pinned<import("@ser
|
|
|
302
306
|
}, "core:oracle/generate-text@1"> & {
|
|
303
307
|
kind: 'oracle';
|
|
304
308
|
slots?: {
|
|
309
|
+
readonly loadout: {
|
|
310
|
+
readonly kind: 'loadout';
|
|
311
|
+
readonly quick: true;
|
|
312
|
+
};
|
|
305
313
|
readonly connection: {
|
|
306
314
|
readonly kind: "connection";
|
|
307
315
|
readonly quick: true;
|
|
@@ -332,10 +340,25 @@ export declare const generateText: import("@serene-pub/sdk").Pinned<import("@ser
|
|
|
332
340
|
readonly shape: string;
|
|
333
341
|
readonly description: "The sampling settings — temperature and friends — used for this request.";
|
|
334
342
|
};
|
|
343
|
+
/**
|
|
344
|
+
* 🚧 **Speech sampling** (O7, evolved in place 2026-10-21): the
|
|
345
|
+
* second sampling slot a call takes when its `outputs` ask for
|
|
346
|
+
* audio — the TTS vocabulary (voice, speed, …) beside the text one
|
|
347
|
+
* above, one sampling per kind written. Read only when audio is
|
|
348
|
+
* asked for; unset, it is the Narration loadout's (`text->audio`
|
|
349
|
+
* default) sampling. ⚠ Not `sampling`: that one says how the reply
|
|
350
|
+
* is WRITTEN, this one how it is SPOKEN.
|
|
351
|
+
* @ruling O7
|
|
352
|
+
*/
|
|
353
|
+
readonly speechSampling: {
|
|
354
|
+
readonly kind: "sampling";
|
|
355
|
+
readonly shape: string;
|
|
356
|
+
readonly description: "How a spoken reply sounds — the voice and its speed. Read only when this step asks for audio.";
|
|
357
|
+
};
|
|
335
358
|
/**
|
|
336
359
|
* ⚠ No `prompts` slot, and there was one — `system` and
|
|
337
360
|
* `postHistory`, "the written instructions sent with every request
|
|
338
|
-
* from this step" (culled 2026-09-16
|
|
361
|
+
* from this step" (culled 2026-09-16). No handler read it:
|
|
339
362
|
* the instructions reach the model INSIDE the assembled context,
|
|
340
363
|
* through `core:task/assemble@2`'s own `prompts` slot, and this
|
|
341
364
|
* node sends what it is handed on `context`. Every shipped spec
|
|
@@ -363,12 +386,33 @@ export declare const generateText: import("@serene-pub/sdk").Pinned<import("@ser
|
|
|
363
386
|
readonly description: "Sequences that end the reply the moment the model writes one. One per line.";
|
|
364
387
|
};
|
|
365
388
|
readonly streaming: FieldDecl<import("@serene-pub/sdk").FieldType, readonly string[]>;
|
|
389
|
+
/**
|
|
390
|
+
* 🚧 The **requested outputs** (O6, evolved in place
|
|
391
|
+
* 2026-10-20 — no @2 before 0.7): the kinds this call asks
|
|
392
|
+
* the model to write, in order. `['text']` — today's reply
|
|
393
|
+
* — unless stated. Asking for `audio` beside text makes the
|
|
394
|
+
* connection's requirement `text->text+audio`
|
|
395
|
+
* (`requirementForOutputs`): the bind check and fit derive
|
|
396
|
+
* it from here, and refuse in words where no reachable model
|
|
397
|
+
* writes audio. Open by kind (O1).
|
|
398
|
+
* @ruling O6
|
|
399
|
+
*/
|
|
400
|
+
readonly outputs: {
|
|
401
|
+
readonly type: "string[]";
|
|
402
|
+
readonly label: {
|
|
403
|
+
readonly en: "Outputs";
|
|
404
|
+
};
|
|
405
|
+
readonly description: {
|
|
406
|
+
readonly en: "What the model is asked to write, in order — text, and audio for a spoken reply. Text unless set.";
|
|
407
|
+
};
|
|
408
|
+
readonly default: readonly ["text"];
|
|
409
|
+
};
|
|
366
410
|
};
|
|
367
411
|
};
|
|
368
412
|
} | undefined;
|
|
369
413
|
}>;
|
|
370
414
|
/**
|
|
371
|
-
* Generate, with the tools on the wire
|
|
415
|
+
* Generate, with the tools on the wire — the native door.
|
|
372
416
|
*
|
|
373
417
|
* ## Why this is a second type rather than two ports on `generate-text`
|
|
374
418
|
*
|
|
@@ -418,6 +462,10 @@ export declare const generateWithTools: import("@serene-pub/sdk").Pinned<import(
|
|
|
418
462
|
}, "core:oracle/generate-with-tools@1"> & {
|
|
419
463
|
kind: 'oracle';
|
|
420
464
|
slots?: {
|
|
465
|
+
readonly loadout: {
|
|
466
|
+
readonly kind: 'loadout';
|
|
467
|
+
readonly quick: true;
|
|
468
|
+
};
|
|
421
469
|
readonly connection: {
|
|
422
470
|
readonly kind: "connection";
|
|
423
471
|
readonly quick: true;
|
|
@@ -525,6 +573,10 @@ export declare const generateJson: import("@serene-pub/sdk").Pinned<import("@ser
|
|
|
525
573
|
}, "core:oracle/generate-json@1"> & {
|
|
526
574
|
kind: 'oracle';
|
|
527
575
|
slots?: {
|
|
576
|
+
readonly loadout: {
|
|
577
|
+
readonly kind: 'loadout';
|
|
578
|
+
readonly quick: true;
|
|
579
|
+
};
|
|
528
580
|
readonly connection: {
|
|
529
581
|
readonly kind: "connection";
|
|
530
582
|
readonly quick: true;
|
|
@@ -577,6 +629,24 @@ export declare const generateJson: import("@serene-pub/sdk").Pinned<import("@ser
|
|
|
577
629
|
readonly description: "Sequences that end the reply the moment the model writes one. One per line.";
|
|
578
630
|
};
|
|
579
631
|
readonly streaming: FieldDecl<import("@serene-pub/sdk").FieldType, readonly string[]>;
|
|
632
|
+
/**
|
|
633
|
+
* 🚧 An empty answer read as an unreadable one (the Dungeon
|
|
634
|
+
* Crawler 100-turn walk, B7): `json` null and `parseError`
|
|
635
|
+
* saying the model returned nothing, and the step goes on —
|
|
636
|
+
* so a check placed after it can ask once more and then go on
|
|
637
|
+
* without the answer. Off (the default), an empty answer halts
|
|
638
|
+
* the run, as it always has. `@1` evolves in place.
|
|
639
|
+
*/
|
|
640
|
+
readonly emptyIsUnreadable: {
|
|
641
|
+
readonly type: "boolean";
|
|
642
|
+
readonly default: false;
|
|
643
|
+
readonly label: {
|
|
644
|
+
readonly en: "Go on after an empty answer";
|
|
645
|
+
};
|
|
646
|
+
readonly description: {
|
|
647
|
+
readonly en: "Read an empty answer as one that could not be read, and carry on, instead of stopping the run.";
|
|
648
|
+
};
|
|
649
|
+
};
|
|
580
650
|
};
|
|
581
651
|
};
|
|
582
652
|
} | undefined;
|
|
@@ -590,6 +660,10 @@ export declare const speak: import("@serene-pub/sdk").Pinned<import("@serene-pub
|
|
|
590
660
|
}, "core:oracle/speak@1"> & {
|
|
591
661
|
kind: 'oracle';
|
|
592
662
|
slots?: {
|
|
663
|
+
readonly loadout: {
|
|
664
|
+
readonly kind: 'loadout';
|
|
665
|
+
readonly quick: true;
|
|
666
|
+
};
|
|
593
667
|
readonly connection: {
|
|
594
668
|
readonly kind: "connection";
|
|
595
669
|
readonly quick: true;
|
|
@@ -618,6 +692,84 @@ export declare const speak: import("@serene-pub/sdk").Pinned<import("@serene-pub
|
|
|
618
692
|
};
|
|
619
693
|
} | undefined;
|
|
620
694
|
}>;
|
|
695
|
+
/**
|
|
696
|
+
* 🚧 **Transcribe audio** (O9, 2026-10-21) — the explicit step that turns a
|
|
697
|
+
* sound the reply cannot hear into the words it says, BEFORE placement.
|
|
698
|
+
*
|
|
699
|
+
* Reads the transcript's files by message (`core:query/history-attachments@1`)
|
|
700
|
+
* and what the reply's call HEARS — `hears`, the `reads` the context budget
|
|
701
|
+
* publishes off the same pair (`ConnectionReadsV1`). Each audio file within
|
|
702
|
+
* `mediaLookback` messages of the end that the call cannot hear and that has
|
|
703
|
+
* no transcript yet is sent to this step's own model (`audio->text`, the
|
|
704
|
+
* Transcription loadout); the words are cached on the file, so a file is
|
|
705
|
+
* heard once, and handed on as `transcript` (and `text`, when the person gave
|
|
706
|
+
* no description). Placement then names the file with its words:
|
|
707
|
+
* `[audio: note.mp3 — "…"]`.
|
|
708
|
+
*
|
|
709
|
+
* Never silent, never a refusal of the reply: a call that hears audio itself,
|
|
710
|
+
* a transcript with no audio, and a cached transcript send nothing; with no
|
|
711
|
+
* model set up to transcribe, the files pass through untouched and `notes`
|
|
712
|
+
* says so on the receipt. `attachments` is the same record, transcripts
|
|
713
|
+
* filled in — wire it into `place-attachments@1` in place of the query's.
|
|
714
|
+
* ⚠ Not `speak@1` — that one SPEAKS; this one HEARS.
|
|
715
|
+
* @experimental
|
|
716
|
+
* @ruling O9
|
|
717
|
+
*/
|
|
718
|
+
export declare const transcribeAudio: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
719
|
+
main: string;
|
|
720
|
+
/** The same files, transcripts filled in. */
|
|
721
|
+
attachments: string;
|
|
722
|
+
/** Sentences for the receipt: what was transcribed, and what was not and why. */
|
|
723
|
+
notes: string;
|
|
724
|
+
}, {
|
|
725
|
+
/** The processed lines, for which messages are within the lookback. */
|
|
726
|
+
messages: string;
|
|
727
|
+
/** The files by message, from `core:query/history-attachments@1`. */
|
|
728
|
+
attachments: string;
|
|
729
|
+
/** What the reply's call reads — `context-budget@1`'s `reads`. */
|
|
730
|
+
hears: string;
|
|
731
|
+
}, "core:oracle/transcribe-audio@1"> & {
|
|
732
|
+
kind: 'oracle';
|
|
733
|
+
slots?: {
|
|
734
|
+
readonly loadout: {
|
|
735
|
+
readonly kind: 'loadout';
|
|
736
|
+
readonly quick: true;
|
|
737
|
+
};
|
|
738
|
+
readonly connection: {
|
|
739
|
+
readonly kind: "connection";
|
|
740
|
+
readonly quick: true;
|
|
741
|
+
readonly shape: string;
|
|
742
|
+
readonly requires: readonly ["audio->text"];
|
|
743
|
+
readonly description: "Which model hears the audio the reply cannot.";
|
|
744
|
+
};
|
|
745
|
+
readonly params: {
|
|
746
|
+
readonly kind: "parameters";
|
|
747
|
+
readonly facet: "weights";
|
|
748
|
+
readonly schema: {
|
|
749
|
+
readonly mediaLookback: {
|
|
750
|
+
readonly type: "integer";
|
|
751
|
+
readonly min: 0;
|
|
752
|
+
readonly default: 10;
|
|
753
|
+
readonly label: {
|
|
754
|
+
readonly en: "Media lookback (messages)";
|
|
755
|
+
};
|
|
756
|
+
readonly description: {
|
|
757
|
+
readonly en: "Audio in the last this-many messages is transcribed when the reply cannot hear it; older audio is sent as its name. Match the placement step.";
|
|
758
|
+
};
|
|
759
|
+
};
|
|
760
|
+
readonly language: {
|
|
761
|
+
readonly type: "string";
|
|
762
|
+
readonly label: {
|
|
763
|
+
readonly en: "Language";
|
|
764
|
+
};
|
|
765
|
+
readonly description: {
|
|
766
|
+
readonly en: "The language spoken, as a code such as \"en\" or \"fr\". Empty lets the model detect it.";
|
|
767
|
+
};
|
|
768
|
+
};
|
|
769
|
+
};
|
|
770
|
+
};
|
|
771
|
+
} | undefined;
|
|
772
|
+
}>;
|
|
621
773
|
/**
|
|
622
774
|
* Render an image.
|
|
623
775
|
*
|
|
@@ -652,9 +804,38 @@ export declare const speak: import("@serene-pub/sdk").Pinned<import("@serene-pub
|
|
|
652
804
|
* `init` is declared now rather than added later: img2img changes nothing else
|
|
653
805
|
* about this contract, and retrofitting a port onto a published type costs a
|
|
654
806
|
* version bump for every spec pinning it.
|
|
807
|
+
*
|
|
808
|
+
* ## Widened in place (2026-10-12)
|
|
809
|
+
*
|
|
810
|
+
* Additive, so still `@1` — every new port is optional and every new param
|
|
811
|
+
* has a default that reproduces the old behaviour; the descriptor hash moves.
|
|
812
|
+
*
|
|
813
|
+
* - `references` — images the output should RESEMBLE (a likeness). Not
|
|
814
|
+
* `init` (the starting canvas) and not `mask` (where to paint): three
|
|
815
|
+
* different wire fields on every backend that has them.
|
|
816
|
+
* - `series` — the pictures wanted, each `{ key, vars }`. The prompt rows
|
|
817
|
+
* render once per item with `vars` in scope; every media item out carries
|
|
818
|
+
* its `key`. How many CALLS that is, is the host's packing (loop, batch,
|
|
819
|
+
* keyed graph) from the pair's drawing sheet — never the spec's.
|
|
820
|
+
* - `orientation` swaps the longer edge of the sampling's size; `free`
|
|
821
|
+
* takes it as-is.
|
|
822
|
+
* - `cutOut` asks for a transparent background: native where the pair
|
|
823
|
+
* draws one, else the media is flagged for the cut-out task
|
|
824
|
+
* (`native-or-task`), or the bind refuses (`native-only`).
|
|
825
|
+
* - `references: required` refuses a pair that takes no reference image;
|
|
826
|
+
* `preferred` (default) runs anyway, reports `references` as ignored, and
|
|
827
|
+
* says so on the action's form before the run.
|
|
828
|
+
*
|
|
829
|
+
* `requires` stays `[text->image]`: `requires` is a static list, so the gate
|
|
830
|
+
* for reference images is the drawing sheet, read at bind, not a transform.
|
|
655
831
|
* @experimental
|
|
656
832
|
*/
|
|
657
833
|
export declare const generateImage: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
834
|
+
/**
|
|
835
|
+
* Each item is a `MediaRef` plus `key` — the series item it was
|
|
836
|
+
* drawn for (`"1"` without a series). Several items may share a
|
|
837
|
+
* key (variants); an item with no key is surplus the host kept.
|
|
838
|
+
*/
|
|
658
839
|
main: string;
|
|
659
840
|
media: string;
|
|
660
841
|
image: string;
|
|
@@ -662,11 +843,21 @@ export declare const generateImage: import("@serene-pub/sdk").Pinned<import("@se
|
|
|
662
843
|
}, {
|
|
663
844
|
prompt: string;
|
|
664
845
|
negative: string;
|
|
665
|
-
/**
|
|
846
|
+
/** The starting canvas, for an edit (img2img). Not a reference. */
|
|
666
847
|
init: string;
|
|
848
|
+
/** Where to paint, for inpainting. Absent edits the whole frame. */
|
|
849
|
+
mask: string;
|
|
850
|
+
/** Images the output should resemble — a likeness. Not `init`. */
|
|
851
|
+
references: string;
|
|
852
|
+
/** The pictures wanted, each `{ key, vars }` (`ImageSeriesItemV1`). */
|
|
853
|
+
series: string;
|
|
667
854
|
}, "core:oracle/generate-image@1"> & {
|
|
668
855
|
kind: 'oracle';
|
|
669
856
|
slots?: {
|
|
857
|
+
readonly loadout: {
|
|
858
|
+
readonly kind: 'loadout';
|
|
859
|
+
readonly quick: true;
|
|
860
|
+
};
|
|
670
861
|
readonly connection: {
|
|
671
862
|
readonly kind: "connection";
|
|
672
863
|
readonly quick: true;
|
|
@@ -685,6 +876,16 @@ export declare const generateImage: import("@serene-pub/sdk").Pinned<import("@se
|
|
|
685
876
|
readonly shape: string;
|
|
686
877
|
readonly description: "Steps, CFG, size, seed — the settings every image backend shares.";
|
|
687
878
|
};
|
|
879
|
+
/**
|
|
880
|
+
* 🚧 The graph a template-payload pair draws with (a ComfyUI
|
|
881
|
+
* workflow). Optional: flat dialects
|
|
882
|
+
* ignore it, and the host's bind guard requires it only when the
|
|
883
|
+
* resolved pair's drawing sheet says `payload: 'template'`.
|
|
884
|
+
*/
|
|
885
|
+
readonly workflow: {
|
|
886
|
+
readonly kind: "workflow";
|
|
887
|
+
readonly description: "Which ComfyUI workflow this step draws with, when its image server runs workflows.";
|
|
888
|
+
};
|
|
688
889
|
readonly prompts: {
|
|
689
890
|
readonly kind: "prompts";
|
|
690
891
|
readonly quick: true;
|
|
@@ -711,7 +912,131 @@ export declare const generateImage: import("@serene-pub/sdk").Pinned<import("@se
|
|
|
711
912
|
readonly params: {
|
|
712
913
|
readonly kind: "parameters";
|
|
713
914
|
readonly schema: {
|
|
714
|
-
streaming: FieldDecl<import("@serene-pub/sdk").FieldType, readonly string[]>;
|
|
915
|
+
readonly streaming: FieldDecl<import("@serene-pub/sdk").FieldType, readonly string[]>;
|
|
916
|
+
readonly orientation: {
|
|
917
|
+
readonly type: "enum";
|
|
918
|
+
readonly of: readonly ["free", "square", "portrait", "landscape"];
|
|
919
|
+
readonly members: readonly [{
|
|
920
|
+
readonly key: "free";
|
|
921
|
+
readonly label: {
|
|
922
|
+
readonly en: "As set";
|
|
923
|
+
};
|
|
924
|
+
readonly description: {
|
|
925
|
+
readonly en: "Takes the sampling's width and height as they are.";
|
|
926
|
+
};
|
|
927
|
+
}, {
|
|
928
|
+
readonly key: "square";
|
|
929
|
+
readonly label: {
|
|
930
|
+
readonly en: "Square";
|
|
931
|
+
};
|
|
932
|
+
readonly description: {
|
|
933
|
+
readonly en: "Both edges become the shorter of the two.";
|
|
934
|
+
};
|
|
935
|
+
}, {
|
|
936
|
+
readonly key: "portrait";
|
|
937
|
+
readonly label: {
|
|
938
|
+
readonly en: "Portrait";
|
|
939
|
+
};
|
|
940
|
+
readonly description: {
|
|
941
|
+
readonly en: "Taller than wide: the longer edge is the height.";
|
|
942
|
+
};
|
|
943
|
+
}, {
|
|
944
|
+
readonly key: "landscape";
|
|
945
|
+
readonly label: {
|
|
946
|
+
readonly en: "Landscape";
|
|
947
|
+
};
|
|
948
|
+
readonly description: {
|
|
949
|
+
readonly en: "Wider than tall: the longer edge is the width.";
|
|
950
|
+
};
|
|
951
|
+
}];
|
|
952
|
+
readonly default: "free";
|
|
953
|
+
readonly description: "Which way up the picture is drawn. As set takes the sampling's size unchanged.";
|
|
954
|
+
};
|
|
955
|
+
readonly cutOut: {
|
|
956
|
+
readonly type: "enum";
|
|
957
|
+
readonly of: readonly ["off", "native-or-task", "native-only"];
|
|
958
|
+
readonly members: readonly [{
|
|
959
|
+
readonly key: "off";
|
|
960
|
+
readonly label: {
|
|
961
|
+
readonly en: "Off";
|
|
962
|
+
};
|
|
963
|
+
readonly description: {
|
|
964
|
+
readonly en: "Keeps the background the model draws.";
|
|
965
|
+
};
|
|
966
|
+
}, {
|
|
967
|
+
readonly key: "native-or-task";
|
|
968
|
+
readonly label: {
|
|
969
|
+
readonly en: "Transparent when possible";
|
|
970
|
+
};
|
|
971
|
+
readonly description: {
|
|
972
|
+
readonly en: "Asks the model for a transparent background, or cuts one out afterwards when it cannot.";
|
|
973
|
+
};
|
|
974
|
+
}, {
|
|
975
|
+
readonly key: "native-only";
|
|
976
|
+
readonly label: {
|
|
977
|
+
readonly en: "Transparent from the model";
|
|
978
|
+
};
|
|
979
|
+
readonly description: {
|
|
980
|
+
readonly en: "Only runs on a model that draws a transparent background itself.";
|
|
981
|
+
};
|
|
982
|
+
}];
|
|
983
|
+
readonly default: "off";
|
|
984
|
+
readonly description: "Whether the picture needs a transparent background, and where it may come from.";
|
|
985
|
+
};
|
|
986
|
+
readonly references: {
|
|
987
|
+
readonly type: "enum";
|
|
988
|
+
readonly of: readonly ["preferred", "required"];
|
|
989
|
+
readonly members: readonly [{
|
|
990
|
+
readonly key: "preferred";
|
|
991
|
+
readonly label: {
|
|
992
|
+
readonly en: "Preferred";
|
|
993
|
+
};
|
|
994
|
+
readonly description: {
|
|
995
|
+
readonly en: "Runs on a model that can't take a reference image, from the prompt alone, and says so first.";
|
|
996
|
+
};
|
|
997
|
+
}, {
|
|
998
|
+
readonly key: "required";
|
|
999
|
+
readonly label: {
|
|
1000
|
+
readonly en: "Required";
|
|
1001
|
+
};
|
|
1002
|
+
readonly description: {
|
|
1003
|
+
readonly en: "Only runs on a model that takes reference images.";
|
|
1004
|
+
};
|
|
1005
|
+
}];
|
|
1006
|
+
readonly default: "preferred";
|
|
1007
|
+
readonly description: "What happens when the model cannot take the reference images wired to this step.";
|
|
1008
|
+
};
|
|
1009
|
+
/**
|
|
1010
|
+
* 🚧 One seed for the whole step:
|
|
1011
|
+
* `per-run` draws a seed once when the sampling's
|
|
1012
|
+
* seed is random and sends it with every call, so a
|
|
1013
|
+
* series drawn on an SD-class model coheres. A sampling
|
|
1014
|
+
* that fixes its own seed keeps it. Models that ignore
|
|
1015
|
+
* seeds ignore this too.
|
|
1016
|
+
*/
|
|
1017
|
+
readonly seed: {
|
|
1018
|
+
readonly type: "enum";
|
|
1019
|
+
readonly of: readonly ["as-set", "per-run"];
|
|
1020
|
+
readonly members: readonly [{
|
|
1021
|
+
readonly key: "as-set";
|
|
1022
|
+
readonly label: {
|
|
1023
|
+
readonly en: "As set";
|
|
1024
|
+
};
|
|
1025
|
+
readonly description: {
|
|
1026
|
+
readonly en: "Uses the sampling's seed: random stays random for every picture.";
|
|
1027
|
+
};
|
|
1028
|
+
}, {
|
|
1029
|
+
readonly key: "per-run";
|
|
1030
|
+
readonly label: {
|
|
1031
|
+
readonly en: "Same for every picture";
|
|
1032
|
+
};
|
|
1033
|
+
readonly description: {
|
|
1034
|
+
readonly en: "Picks one seed per run and draws every picture with it, so a set looks alike.";
|
|
1035
|
+
};
|
|
1036
|
+
}];
|
|
1037
|
+
readonly default: "as-set";
|
|
1038
|
+
readonly description: "Whether every picture this step draws shares one seed.";
|
|
1039
|
+
};
|
|
715
1040
|
};
|
|
716
1041
|
};
|
|
717
1042
|
} | undefined;
|
|
@@ -930,6 +1255,10 @@ export declare const summarizeBatch: import("@serene-pub/sdk").Pinned<import("@s
|
|
|
930
1255
|
}, "core:oracle/summarize-batch@1"> & {
|
|
931
1256
|
kind: 'oracle';
|
|
932
1257
|
slots?: {
|
|
1258
|
+
readonly loadout: {
|
|
1259
|
+
readonly kind: 'loadout';
|
|
1260
|
+
readonly quick: true;
|
|
1261
|
+
};
|
|
933
1262
|
readonly connection: {
|
|
934
1263
|
readonly kind: "connection";
|
|
935
1264
|
readonly quick: true;
|
|
@@ -965,6 +1294,10 @@ export declare const summarizeSynth: import("@serene-pub/sdk").Pinned<import("@s
|
|
|
965
1294
|
}, "core:oracle/summarize-synth@1"> & {
|
|
966
1295
|
kind: 'oracle';
|
|
967
1296
|
slots?: {
|
|
1297
|
+
readonly loadout: {
|
|
1298
|
+
readonly kind: 'loadout';
|
|
1299
|
+
readonly quick: true;
|
|
1300
|
+
};
|
|
968
1301
|
readonly connection: {
|
|
969
1302
|
readonly kind: "connection";
|
|
970
1303
|
readonly quick: true;
|
|
@@ -999,6 +1332,10 @@ export declare const nameEntry: import("@serene-pub/sdk").Pinned<import("@serene
|
|
|
999
1332
|
}, "core:oracle/name-entry@1"> & {
|
|
1000
1333
|
kind: 'oracle';
|
|
1001
1334
|
slots?: {
|
|
1335
|
+
readonly loadout: {
|
|
1336
|
+
readonly kind: 'loadout';
|
|
1337
|
+
readonly quick: true;
|
|
1338
|
+
};
|
|
1002
1339
|
readonly connection: {
|
|
1003
1340
|
readonly kind: "connection";
|
|
1004
1341
|
readonly quick: true;
|
|
@@ -1039,6 +1376,10 @@ export declare const extractCast: import("@serene-pub/sdk").Pinned<import("@sere
|
|
|
1039
1376
|
}, "core:oracle/extract-cast@1"> & {
|
|
1040
1377
|
kind: 'oracle';
|
|
1041
1378
|
slots?: {
|
|
1379
|
+
readonly loadout: {
|
|
1380
|
+
readonly kind: 'loadout';
|
|
1381
|
+
readonly quick: true;
|
|
1382
|
+
};
|
|
1042
1383
|
readonly connection: {
|
|
1043
1384
|
readonly kind: "connection";
|
|
1044
1385
|
readonly quick: true;
|
|
@@ -1092,6 +1433,10 @@ export declare const graphNodeResolution: import("@serene-pub/sdk").Pinned<impor
|
|
|
1092
1433
|
}, string> & {
|
|
1093
1434
|
kind: 'oracle';
|
|
1094
1435
|
slots?: {
|
|
1436
|
+
readonly loadout: {
|
|
1437
|
+
readonly kind: 'loadout';
|
|
1438
|
+
readonly quick: true;
|
|
1439
|
+
};
|
|
1095
1440
|
readonly connection: {
|
|
1096
1441
|
readonly kind: "connection";
|
|
1097
1442
|
readonly quick: true;
|
|
@@ -1124,6 +1469,10 @@ export declare const graphPreFilter: import("@serene-pub/sdk").Pinned<import("@s
|
|
|
1124
1469
|
}, string> & {
|
|
1125
1470
|
kind: 'oracle';
|
|
1126
1471
|
slots?: {
|
|
1472
|
+
readonly loadout: {
|
|
1473
|
+
readonly kind: 'loadout';
|
|
1474
|
+
readonly quick: true;
|
|
1475
|
+
};
|
|
1127
1476
|
readonly connection: {
|
|
1128
1477
|
readonly kind: "connection";
|
|
1129
1478
|
readonly quick: true;
|
|
@@ -1156,6 +1505,10 @@ export declare const graphPerspective: import("@serene-pub/sdk").Pinned<import("
|
|
|
1156
1505
|
}, string> & {
|
|
1157
1506
|
kind: 'oracle';
|
|
1158
1507
|
slots?: {
|
|
1508
|
+
readonly loadout: {
|
|
1509
|
+
readonly kind: 'loadout';
|
|
1510
|
+
readonly quick: true;
|
|
1511
|
+
};
|
|
1159
1512
|
readonly connection: {
|
|
1160
1513
|
readonly kind: "connection";
|
|
1161
1514
|
readonly quick: true;
|
|
@@ -1188,6 +1541,10 @@ export declare const graphNodeDescription: import("@serene-pub/sdk").Pinned<impo
|
|
|
1188
1541
|
}, string> & {
|
|
1189
1542
|
kind: 'oracle';
|
|
1190
1543
|
slots?: {
|
|
1544
|
+
readonly loadout: {
|
|
1545
|
+
readonly kind: 'loadout';
|
|
1546
|
+
readonly quick: true;
|
|
1547
|
+
};
|
|
1191
1548
|
readonly connection: {
|
|
1192
1549
|
readonly kind: "connection";
|
|
1193
1550
|
readonly quick: true;
|
|
@@ -1220,6 +1577,10 @@ export declare const graphStateDetection: import("@serene-pub/sdk").Pinned<impor
|
|
|
1220
1577
|
}, string> & {
|
|
1221
1578
|
kind: 'oracle';
|
|
1222
1579
|
slots?: {
|
|
1580
|
+
readonly loadout: {
|
|
1581
|
+
readonly kind: 'loadout';
|
|
1582
|
+
readonly quick: true;
|
|
1583
|
+
};
|
|
1223
1584
|
readonly connection: {
|
|
1224
1585
|
readonly kind: "connection";
|
|
1225
1586
|
readonly quick: true;
|
|
@@ -1243,4 +1604,64 @@ export declare const graphStateDetection: import("@serene-pub/sdk").Pinned<impor
|
|
|
1243
1604
|
};
|
|
1244
1605
|
} | undefined;
|
|
1245
1606
|
}>;
|
|
1607
|
+
/**
|
|
1608
|
+
* 🚧 **Describe image** — a model that reads pictures is shown one or more
|
|
1609
|
+
* images and asked one written question about them; its answer is the text
|
|
1610
|
+
* out (*Describe from image*, 2026-10-12).
|
|
1611
|
+
*
|
|
1612
|
+
* Not `generate-text`: that node sends an assembled TURN (a transcript, a
|
|
1613
|
+
* speaker, a reply being continued) and its connection requires only
|
|
1614
|
+
* `text->text`, so it resolves to the instance's chat default. This node
|
|
1615
|
+
* sends no transcript — one instruction plus the images — and its connection
|
|
1616
|
+
* REQUIRES `text+image->text`, so an unset slot resolves to the default of
|
|
1617
|
+
* that job (the model that reads pictures), never to the chat model.
|
|
1618
|
+
*
|
|
1619
|
+
* Not a caption either: `caption` is `generate-image`'s out-port (the text a
|
|
1620
|
+
* picture is posted with). This node's answer is whatever the instruction
|
|
1621
|
+
* asks for — a tag list of a person's look, for the likeness helper.
|
|
1622
|
+
*
|
|
1623
|
+
* The instruction is the `prompts` slot's `instruction` field (a prompt
|
|
1624
|
+
* row), so an admin rewrites the question in Admin › Pipelines.
|
|
1625
|
+
* @experimental
|
|
1626
|
+
*/
|
|
1627
|
+
export declare const describeImage: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
1628
|
+
main: string;
|
|
1629
|
+
text: string;
|
|
1630
|
+
}, {
|
|
1631
|
+
/** The pictures to read, in order. Empty refuses: there is nothing to describe. */
|
|
1632
|
+
images: string;
|
|
1633
|
+
}, "core:oracle/describe-image@1"> & {
|
|
1634
|
+
kind: 'oracle';
|
|
1635
|
+
slots?: {
|
|
1636
|
+
readonly loadout: {
|
|
1637
|
+
readonly kind: 'loadout';
|
|
1638
|
+
readonly quick: true;
|
|
1639
|
+
};
|
|
1640
|
+
readonly connection: {
|
|
1641
|
+
readonly kind: "connection";
|
|
1642
|
+
readonly quick: true;
|
|
1643
|
+
readonly shape: string;
|
|
1644
|
+
/** A model that reads images — the job default this resolves to when unset. */
|
|
1645
|
+
readonly requires: readonly ["text+image->text"];
|
|
1646
|
+
readonly description: "Which model reads the picture. It must be one that can see images.";
|
|
1647
|
+
};
|
|
1648
|
+
readonly sampling: {
|
|
1649
|
+
readonly kind: "sampling";
|
|
1650
|
+
readonly quick: true;
|
|
1651
|
+
readonly shape: string;
|
|
1652
|
+
readonly description: "The sampling settings used for this request.";
|
|
1653
|
+
};
|
|
1654
|
+
readonly prompts: {
|
|
1655
|
+
readonly kind: "prompts";
|
|
1656
|
+
readonly quick: true;
|
|
1657
|
+
readonly facet: "prompts";
|
|
1658
|
+
readonly description: "The question the model is asked about the picture.";
|
|
1659
|
+
readonly fields: {
|
|
1660
|
+
readonly instruction: {
|
|
1661
|
+
readonly type: "text";
|
|
1662
|
+
};
|
|
1663
|
+
};
|
|
1664
|
+
};
|
|
1665
|
+
} | undefined;
|
|
1666
|
+
}>;
|
|
1246
1667
|
//# sourceMappingURL=oracles.d.ts.map
|