@almadar/std 16.36.0 → 16.38.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.
- package/canonical-operators.json +28 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +51 -0
- package/dist/index.js.map +1 -1
- package/dist/modules/agent.d.ts +1 -1
- package/dist/modules/array.d.ts +1 -1
- package/dist/modules/async.d.ts +1 -1
- package/dist/modules/composition.d.ts +1 -1
- package/dist/modules/contract.d.ts +1 -1
- package/dist/modules/core.d.ts +1 -1
- package/dist/modules/core.js +51 -0
- package/dist/modules/core.js.map +1 -1
- package/dist/modules/data.d.ts +1 -1
- package/dist/modules/format.d.ts +1 -1
- package/dist/modules/graph.d.ts +1 -1
- package/dist/modules/index.d.ts +1 -1
- package/dist/modules/index.js +51 -0
- package/dist/modules/index.js.map +1 -1
- package/dist/modules/math.d.ts +1 -1
- package/dist/modules/nn.d.ts +1 -1
- package/dist/modules/object.d.ts +1 -1
- package/dist/modules/os.d.ts +1 -1
- package/dist/modules/prob.d.ts +1 -1
- package/dist/modules/str.d.ts +1 -1
- package/dist/modules/tensor.d.ts +1 -1
- package/dist/modules/time.d.ts +1 -1
- package/dist/modules/train.d.ts +1 -1
- package/dist/modules/validate.d.ts +1 -1
- package/dist/registry.d.ts +1 -1
- package/dist/registry.js +51 -0
- package/dist/registry.js.map +1 -1
- package/dist/{types-CdSN5hnD.d.ts → types-CW-UCfPF.d.ts} +1 -1
- package/package.json +1 -1
package/dist/modules/math.d.ts
CHANGED
package/dist/modules/nn.d.ts
CHANGED
package/dist/modules/object.d.ts
CHANGED
package/dist/modules/os.d.ts
CHANGED
package/dist/modules/prob.d.ts
CHANGED
package/dist/modules/str.d.ts
CHANGED
package/dist/modules/tensor.d.ts
CHANGED
package/dist/modules/time.d.ts
CHANGED
package/dist/modules/train.d.ts
CHANGED
package/dist/registry.d.ts
CHANGED
package/dist/registry.js
CHANGED
|
@@ -569,6 +569,57 @@ var CORE_OPERATORS = {
|
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
571
|
},
|
|
572
|
+
"fetch-stream": {
|
|
573
|
+
module: "core",
|
|
574
|
+
category: "effect",
|
|
575
|
+
minArity: 1,
|
|
576
|
+
maxArity: 2,
|
|
577
|
+
description: "Stream an LLM or HTTP response, emitting on_message per chunk, success on completion, failure on error",
|
|
578
|
+
hasSideEffects: true,
|
|
579
|
+
returnType: "void",
|
|
580
|
+
params: [
|
|
581
|
+
{ name: "entity", type: { kind: "entity" }, description: "Target entity name" },
|
|
582
|
+
{
|
|
583
|
+
name: "options",
|
|
584
|
+
type: {
|
|
585
|
+
kind: "object",
|
|
586
|
+
fields: {
|
|
587
|
+
id: STRING,
|
|
588
|
+
filter: ANY,
|
|
589
|
+
emit: { kind: "object", fields: {}, open: true }
|
|
590
|
+
},
|
|
591
|
+
open: true
|
|
592
|
+
},
|
|
593
|
+
description: "Stream options: id | filter | emit",
|
|
594
|
+
optional: true
|
|
595
|
+
}
|
|
596
|
+
],
|
|
597
|
+
example: '["fetch-stream", "Message", { "emit": { "on_message": "CHUNK_RECEIVED", "success": "STREAM_DONE", "failure": "STREAM_FAILED" } }]',
|
|
598
|
+
effect: {
|
|
599
|
+
kind: "fetch-stream",
|
|
600
|
+
produces: { kind: "entity" }
|
|
601
|
+
}
|
|
602
|
+
},
|
|
603
|
+
"send-server": {
|
|
604
|
+
module: "core",
|
|
605
|
+
category: "effect",
|
|
606
|
+
minArity: 1,
|
|
607
|
+
maxArity: 2,
|
|
608
|
+
description: "Send an orbital event to the server over WebSocket (client-side; chat/real-time trigger)",
|
|
609
|
+
hasSideEffects: true,
|
|
610
|
+
returnType: "void",
|
|
611
|
+
params: [
|
|
612
|
+
{ name: "event", type: EVENT_KEY, description: "Target orbital event name on the server" },
|
|
613
|
+
{
|
|
614
|
+
name: "payload",
|
|
615
|
+
type: { kind: "object", fields: {}, open: true },
|
|
616
|
+
description: "Event payload to forward to the server",
|
|
617
|
+
optional: true
|
|
618
|
+
}
|
|
619
|
+
],
|
|
620
|
+
example: '["send-server", "CHAT_MESSAGE", { "text": "@input.text" }]',
|
|
621
|
+
effect: { kind: "send-server" }
|
|
622
|
+
},
|
|
572
623
|
ref: {
|
|
573
624
|
module: "core",
|
|
574
625
|
category: "effect",
|