@excitedjs/dreamux-types 0.9.0-beta.182 → 0.9.0-beta.183

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@excitedjs/dreamux-types",
3
- "version": "0.9.0-beta.182",
3
+ "version": "0.9.0-beta.183",
4
4
  "description": "Declaration-only provider-authoring contracts for Dreamux: Agent Runtime and Channel provider types external providers compile against without depending on @excitedjs/dreamux (issue excitedjs/dreamux#209).",
5
5
  "license": "MIT",
6
6
  "repository": {
package/dist/turn.d.ts DELETED
@@ -1,45 +0,0 @@
1
- /**
2
- * Channel-owned inbound-turn shapes.
3
- *
4
- * These no longer cross the Agent Runtime seam and are not part of the package
5
- * root export: a Provider receives only already-rendered text. A Channel owns
6
- * turning an external message into model-facing body text and display
7
- * attributes; Core assembles the provenance envelope around them.
8
- */
9
- /**
10
- * A channel-supplied attachment, in a neutral shape (no channel-typed field
11
- * names). Passed through to the runtime so a runtime can render attachments its
12
- * own way.
13
- */
14
- export interface InboundAttachment {
15
- /** Opaque media kind the channel assigns, e.g. `image` | `file`. */
16
- kind: string;
17
- /** Display name when the channel knows one. */
18
- name?: string;
19
- /** Local filesystem path when the channel downloaded the resource; absent otherwise. */
20
- localPath?: string;
21
- }
22
- export interface InboundTurnInput {
23
- /** The turn text to deliver to the agent (used when no channel body is set). */
24
- text: string;
25
- /**
26
- * Runtime-local dedupe / correlation hint for this inbound. An empty string
27
- * disables dedupe. This carries no cross-restart delivery guarantee.
28
- */
29
- sourceId: string;
30
- /**
31
- * Opaque channel-source label (e.g. `feishu`), rendered as the
32
- * `<channel source="…">` attribute. Data, not a typed concept.
33
- */
34
- source?: string;
35
- /**
36
- * Opaque display attributes rendered verbatim into the runtime's channel
37
- * block. The runtime MUST NOT interpret or route on them.
38
- */
39
- attrs?: Array<[string, string]>;
40
- /** Pre-rendered, already-escaped message body the runtime wraps into its channel block. */
41
- body?: string;
42
- /** Structured attachments for future per-runtime rendering. */
43
- attachments?: readonly InboundAttachment[];
44
- }
45
- //# sourceMappingURL=turn.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"turn.d.ts","sourceRoot":"","sources":["../src/turn.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,oEAAoE;IACpE,IAAI,EAAE,MAAM,CAAC;IACb,+CAA+C;IAC/C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wFAAwF;IACxF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC/B,gFAAgF;IAChF,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAChC,2FAA2F;IAC3F,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,+DAA+D;IAC/D,WAAW,CAAC,EAAE,SAAS,iBAAiB,EAAE,CAAC;CAC5C"}