@almadar/std 16.37.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 +12 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +20 -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 +20 -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 +20 -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 +20 -0
- package/dist/registry.js.map +1 -1
- package/dist/{types-BCP1PEYx.d.ts → types-CW-UCfPF.d.ts} +1 -1
- package/package.json +1 -1
package/canonical-operators.json
CHANGED
|
@@ -995,6 +995,18 @@
|
|
|
995
995
|
}
|
|
996
996
|
}
|
|
997
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
|
+
},
|
|
998
1010
|
"fn": {
|
|
999
1011
|
"category": "control",
|
|
1000
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
|
@@ -672,6 +672,26 @@ var CORE_OPERATORS = {
|
|
|
672
672
|
produces: { kind: "entity" }
|
|
673
673
|
}
|
|
674
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
|
+
},
|
|
675
695
|
ref: {
|
|
676
696
|
module: "core",
|
|
677
697
|
category: "effect",
|