@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/canonical-operators.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "2.0.0",
|
|
3
3
|
"description": "Canonical operator registry for Almadar. Generated from @almadar/std/modules. Consumed by orbital-compiler via include_str!.",
|
|
4
|
-
"generated": "2026-06-
|
|
4
|
+
"generated": "2026-06-18T04:47:14.251Z",
|
|
5
5
|
"categories": {
|
|
6
6
|
"arithmetic": {
|
|
7
7
|
"description": "Numeric operations",
|
|
@@ -980,6 +980,33 @@
|
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
982
|
},
|
|
983
|
+
"fetch-stream": {
|
|
984
|
+
"category": "effect",
|
|
985
|
+
"minArity": 1,
|
|
986
|
+
"maxArity": 2,
|
|
987
|
+
"returnType": "void",
|
|
988
|
+
"description": "Stream an LLM or HTTP response, emitting on_message per chunk, success on completion, failure on error",
|
|
989
|
+
"module": "core",
|
|
990
|
+
"hasSideEffects": true,
|
|
991
|
+
"effect": {
|
|
992
|
+
"kind": "fetch-stream",
|
|
993
|
+
"produces": {
|
|
994
|
+
"kind": "entity"
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
},
|
|
998
|
+
"send-server": {
|
|
999
|
+
"category": "effect",
|
|
1000
|
+
"minArity": 1,
|
|
1001
|
+
"maxArity": 2,
|
|
1002
|
+
"returnType": "void",
|
|
1003
|
+
"description": "Send an orbital event to the server over WebSocket (client-side; chat/real-time trigger)",
|
|
1004
|
+
"module": "core",
|
|
1005
|
+
"hasSideEffects": true,
|
|
1006
|
+
"effect": {
|
|
1007
|
+
"kind": "send-server"
|
|
1008
|
+
}
|
|
1009
|
+
},
|
|
983
1010
|
"fn": {
|
|
984
1011
|
"category": "control",
|
|
985
1012
|
"minArity": 2,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as StdModule, S as StdOperatorMeta } from './types-
|
|
2
|
-
export { B as BasicReturnType, b as OPERATOR_CATEGORIES, c as OperatorCategory, d as OperatorEffectMeta, O as OperatorMeta, e as OperatorTypeRef, f as STD_MODULES, g as STD_OPERATOR_CATEGORIES, h as StdOperatorCategory, i as getFunctionFromOperator, j as getModuleFromOperator, k as isStdCategory, l as isStdOperator, m as makeStdOperator } from './types-
|
|
1
|
+
import { a as StdModule, S as StdOperatorMeta } from './types-CW-UCfPF.js';
|
|
2
|
+
export { B as BasicReturnType, b as OPERATOR_CATEGORIES, c as OperatorCategory, d as OperatorEffectMeta, O as OperatorMeta, e as OperatorTypeRef, f as STD_MODULES, g as STD_OPERATOR_CATEGORIES, h as StdOperatorCategory, i as getFunctionFromOperator, j as getModuleFromOperator, k as isStdCategory, l as isStdOperator, m as makeStdOperator } from './types-CW-UCfPF.js';
|
|
3
3
|
export { STD_OPERATORS as OPERATORS, OPERATOR_NAMES, STD_OPERATORS, STD_OPERATORS_BY_MODULE, getAllStdOperators as getAllOperatorNames, getAllStdOperators, getLambdaOperators, getModuleOperators, getOperatorMetaExtended, getStdEffectOperators, getStdLibStats, getStdOperatorMeta, getStdOperatorsByModule, getStdPureOperators, isEffectOperatorExtended, isKnownStdOperator as isKnownOperator, isKnownOperatorExtended, isKnownStdOperator, isStdEffectOperator, isStdGuardOperator, validateStdOperatorArity as validateOperatorArity, validateOperatorArityExtended, validateStdOperatorArity } from './registry.js';
|
|
4
4
|
export { CORE_OPERATORS, getCoreOperators } from './modules/core.js';
|
|
5
5
|
export { MATH_OPERATORS } from './modules/math.js';
|
package/dist/index.js
CHANGED
|
@@ -641,6 +641,57 @@ var CORE_OPERATORS = {
|
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
643
|
},
|
|
644
|
+
"fetch-stream": {
|
|
645
|
+
module: "core",
|
|
646
|
+
category: "effect",
|
|
647
|
+
minArity: 1,
|
|
648
|
+
maxArity: 2,
|
|
649
|
+
description: "Stream an LLM or HTTP response, emitting on_message per chunk, success on completion, failure on error",
|
|
650
|
+
hasSideEffects: true,
|
|
651
|
+
returnType: "void",
|
|
652
|
+
params: [
|
|
653
|
+
{ name: "entity", type: { kind: "entity" }, description: "Target entity name" },
|
|
654
|
+
{
|
|
655
|
+
name: "options",
|
|
656
|
+
type: {
|
|
657
|
+
kind: "object",
|
|
658
|
+
fields: {
|
|
659
|
+
id: STRING,
|
|
660
|
+
filter: ANY,
|
|
661
|
+
emit: { kind: "object", fields: {}, open: true }
|
|
662
|
+
},
|
|
663
|
+
open: true
|
|
664
|
+
},
|
|
665
|
+
description: "Stream options: id | filter | emit",
|
|
666
|
+
optional: true
|
|
667
|
+
}
|
|
668
|
+
],
|
|
669
|
+
example: '["fetch-stream", "Message", { "emit": { "on_message": "CHUNK_RECEIVED", "success": "STREAM_DONE", "failure": "STREAM_FAILED" } }]',
|
|
670
|
+
effect: {
|
|
671
|
+
kind: "fetch-stream",
|
|
672
|
+
produces: { kind: "entity" }
|
|
673
|
+
}
|
|
674
|
+
},
|
|
675
|
+
"send-server": {
|
|
676
|
+
module: "core",
|
|
677
|
+
category: "effect",
|
|
678
|
+
minArity: 1,
|
|
679
|
+
maxArity: 2,
|
|
680
|
+
description: "Send an orbital event to the server over WebSocket (client-side; chat/real-time trigger)",
|
|
681
|
+
hasSideEffects: true,
|
|
682
|
+
returnType: "void",
|
|
683
|
+
params: [
|
|
684
|
+
{ name: "event", type: EVENT_KEY, description: "Target orbital event name on the server" },
|
|
685
|
+
{
|
|
686
|
+
name: "payload",
|
|
687
|
+
type: { kind: "object", fields: {}, open: true },
|
|
688
|
+
description: "Event payload to forward to the server",
|
|
689
|
+
optional: true
|
|
690
|
+
}
|
|
691
|
+
],
|
|
692
|
+
example: '["send-server", "CHAT_MESSAGE", { "text": "@input.text" }]',
|
|
693
|
+
effect: { kind: "send-server" }
|
|
694
|
+
},
|
|
644
695
|
ref: {
|
|
645
696
|
module: "core",
|
|
646
697
|
category: "effect",
|