@almadar/std 16.185.0 → 16.186.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/dist/behaviors/exports-reader.js +309 -0
- package/dist/behaviors/functions/index.d.ts +137 -1
- package/dist/behaviors/functions/index.js +306 -1
- package/dist/behaviors/index.d.ts +1 -1
- package/dist/behaviors/index.js +310 -1
- package/dist/behaviors/query.js +309 -0
- package/dist/behaviors-embeddings.hash.json +3 -3
- package/dist/behaviors-embeddings.json +329 -325
- package/dist/behaviors-registry.json +546 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +310 -1
- package/dist/knob-embeddings.hash.json +3 -3
- package/dist/knob-embeddings.json +1 -1
- package/dist/registry/factory-signatures.json +1 -1
- package/package.json +3 -3
package/dist/behaviors/query.js
CHANGED
|
@@ -101,6 +101,7 @@ __export(functions_exports, {
|
|
|
101
101
|
StdTacticsBoard3dTacticsBoard3DOrbitalManifest: () => StdTacticsBoard3dTacticsBoard3DOrbitalManifest,
|
|
102
102
|
StdTagTaxonomyTagTaxonomyOrbitalManifest: () => StdTagTaxonomyTagTaxonomyOrbitalManifest,
|
|
103
103
|
StdThreadThreadPostOrbitalManifest: () => StdThreadThreadPostOrbitalManifest,
|
|
104
|
+
StdTodoListAppTodoListAppOrbitalManifest: () => StdTodoListAppTodoListAppOrbitalManifest,
|
|
104
105
|
StdTokenizerMlTokenizerOrbitalManifest: () => StdTokenizerMlTokenizerOrbitalManifest,
|
|
105
106
|
StdTreeTreeNodeOrbitalManifest: () => StdTreeTreeNodeOrbitalManifest,
|
|
106
107
|
StdUiBookChapterViewBookChapterViewOrbitalManifest: () => StdUiBookChapterViewBookChapterViewOrbitalManifest,
|
|
@@ -243,6 +244,7 @@ __export(functions_exports, {
|
|
|
243
244
|
isStdTacticsBoard3dTacticsBoard3DOrbitalParams: () => isStdTacticsBoard3dTacticsBoard3DOrbitalParams,
|
|
244
245
|
isStdTagTaxonomyTagTaxonomyOrbitalParams: () => isStdTagTaxonomyTagTaxonomyOrbitalParams,
|
|
245
246
|
isStdThreadThreadPostOrbitalParams: () => isStdThreadThreadPostOrbitalParams,
|
|
247
|
+
isStdTodoListAppTodoListAppOrbitalParams: () => isStdTodoListAppTodoListAppOrbitalParams,
|
|
246
248
|
isStdTokenizerMlTokenizerOrbitalParams: () => isStdTokenizerMlTokenizerOrbitalParams,
|
|
247
249
|
isStdTreeTreeNodeOrbitalParams: () => isStdTreeTreeNodeOrbitalParams,
|
|
248
250
|
isStdUiBookChapterViewBookChapterViewOrbitalParams: () => isStdUiBookChapterViewBookChapterViewOrbitalParams,
|
|
@@ -975,6 +977,8 @@ __export(functions_exports, {
|
|
|
975
977
|
stdThreadPage: () => stdThreadPage,
|
|
976
978
|
stdThreadThreadPostOrbital: () => stdThreadThreadPostOrbital,
|
|
977
979
|
stdThreadTrait: () => stdThreadTrait,
|
|
980
|
+
stdTodoListApp: () => stdTodoListApp,
|
|
981
|
+
stdTodoListAppTodoListAppOrbital: () => stdTodoListAppTodoListAppOrbital,
|
|
978
982
|
stdTokenizer: () => stdTokenizer,
|
|
979
983
|
stdTokenizerMlTokenizerOrbital: () => stdTokenizerMlTokenizerOrbital,
|
|
980
984
|
stdTokenizerPage: () => stdTokenizerPage,
|
|
@@ -135782,6 +135786,302 @@ function stdWorldmapBoard2d(params = {}) {
|
|
|
135782
135786
|
stdWorldmapBoard2dWorldMapBoard2DOrbital(params.WorldMapBoard2D ?? {})
|
|
135783
135787
|
];
|
|
135784
135788
|
}
|
|
135789
|
+
function stdTodoListAppTodoListAppOrbital(params = {}) {
|
|
135790
|
+
const built = makeOrbitalWithUses({
|
|
135791
|
+
name: "TodoListAppOrbital",
|
|
135792
|
+
uses: [],
|
|
135793
|
+
entity: {
|
|
135794
|
+
name: "Todo",
|
|
135795
|
+
persistence: "runtime",
|
|
135796
|
+
fields: (() => {
|
|
135797
|
+
const canonical = [
|
|
135798
|
+
{
|
|
135799
|
+
"name": "id",
|
|
135800
|
+
"required": true,
|
|
135801
|
+
"type": "string"
|
|
135802
|
+
},
|
|
135803
|
+
{
|
|
135804
|
+
"name": "text",
|
|
135805
|
+
"required": true,
|
|
135806
|
+
"type": "string"
|
|
135807
|
+
},
|
|
135808
|
+
{
|
|
135809
|
+
"name": "completed",
|
|
135810
|
+
"type": "boolean"
|
|
135811
|
+
}
|
|
135812
|
+
];
|
|
135813
|
+
const extras = params.fields ?? [];
|
|
135814
|
+
if (extras.length === 0) return canonical;
|
|
135815
|
+
const extraNames = new Set(extras.map((f) => f.name));
|
|
135816
|
+
return [...canonical.filter((f) => !extraNames.has(f.name)), ...extras];
|
|
135817
|
+
})()
|
|
135818
|
+
},
|
|
135819
|
+
traits: [
|
|
135820
|
+
{
|
|
135821
|
+
"category": "interaction",
|
|
135822
|
+
"config": {
|
|
135823
|
+
"className": {
|
|
135824
|
+
"description": "Additional CSS classes",
|
|
135825
|
+
"label": "Class Name",
|
|
135826
|
+
"tier": "presentation",
|
|
135827
|
+
"type": "string"
|
|
135828
|
+
},
|
|
135829
|
+
"filterMode": {
|
|
135830
|
+
"default": "ALL",
|
|
135831
|
+
"description": "Current filter: ALL, ACTIVE, or COMPLETED",
|
|
135832
|
+
"label": "Filter Mode",
|
|
135833
|
+
"tier": "domain",
|
|
135834
|
+
"type": "string"
|
|
135835
|
+
},
|
|
135836
|
+
"onAddTodo": {
|
|
135837
|
+
"default": "ADD_TODO",
|
|
135838
|
+
"description": "Handler for adding new todos",
|
|
135839
|
+
"label": "On Add Todo",
|
|
135840
|
+
"tier": "presentation",
|
|
135841
|
+
"type": "string"
|
|
135842
|
+
},
|
|
135843
|
+
"onCompleteTodo": {
|
|
135844
|
+
"default": "COMPLETE_TODO",
|
|
135845
|
+
"description": "Handler for toggling todo completion",
|
|
135846
|
+
"label": "On Complete Todo",
|
|
135847
|
+
"tier": "presentation",
|
|
135848
|
+
"type": "string"
|
|
135849
|
+
},
|
|
135850
|
+
"onDeleteTodo": {
|
|
135851
|
+
"default": "DELETE_TODO",
|
|
135852
|
+
"description": "Handler for deleting todos",
|
|
135853
|
+
"label": "On Delete Todo",
|
|
135854
|
+
"tier": "presentation",
|
|
135855
|
+
"type": "string"
|
|
135856
|
+
},
|
|
135857
|
+
"todos": {
|
|
135858
|
+
"default": [],
|
|
135859
|
+
"description": "List of todo items",
|
|
135860
|
+
"label": "Todos",
|
|
135861
|
+
"tier": "domain",
|
|
135862
|
+
"type": "[Todo]"
|
|
135863
|
+
}
|
|
135864
|
+
},
|
|
135865
|
+
"emits": [
|
|
135866
|
+
{
|
|
135867
|
+
"description": "Callback when a new todo is added",
|
|
135868
|
+
"event": "@config.onAddTodo",
|
|
135869
|
+
"payloadSchema": [
|
|
135870
|
+
{
|
|
135871
|
+
"name": "text",
|
|
135872
|
+
"required": true,
|
|
135873
|
+
"type": "string"
|
|
135874
|
+
}
|
|
135875
|
+
],
|
|
135876
|
+
"scope": "external",
|
|
135877
|
+
"tier": "domain"
|
|
135878
|
+
},
|
|
135879
|
+
{
|
|
135880
|
+
"description": "Callback when a todo completion status changes",
|
|
135881
|
+
"event": "@config.onCompleteTodo",
|
|
135882
|
+
"payloadSchema": [
|
|
135883
|
+
{
|
|
135884
|
+
"name": "todoId",
|
|
135885
|
+
"required": true,
|
|
135886
|
+
"type": "string"
|
|
135887
|
+
},
|
|
135888
|
+
{
|
|
135889
|
+
"name": "completed",
|
|
135890
|
+
"required": true,
|
|
135891
|
+
"type": "boolean"
|
|
135892
|
+
}
|
|
135893
|
+
],
|
|
135894
|
+
"scope": "external",
|
|
135895
|
+
"tier": "domain"
|
|
135896
|
+
},
|
|
135897
|
+
{
|
|
135898
|
+
"description": "Callback when a todo is deleted",
|
|
135899
|
+
"event": "@config.onDeleteTodo",
|
|
135900
|
+
"payloadSchema": [
|
|
135901
|
+
{
|
|
135902
|
+
"name": "todoId",
|
|
135903
|
+
"required": true,
|
|
135904
|
+
"type": "string"
|
|
135905
|
+
}
|
|
135906
|
+
],
|
|
135907
|
+
"scope": "external",
|
|
135908
|
+
"tier": "domain"
|
|
135909
|
+
}
|
|
135910
|
+
],
|
|
135911
|
+
"entityContract": {
|
|
135912
|
+
"provides": [],
|
|
135913
|
+
"requires": []
|
|
135914
|
+
},
|
|
135915
|
+
"entityRebindable": true,
|
|
135916
|
+
"linkedEntity": "Todo",
|
|
135917
|
+
"name": "TodoListRender",
|
|
135918
|
+
"scope": "instance",
|
|
135919
|
+
"stateMachine": {
|
|
135920
|
+
"events": [
|
|
135921
|
+
{
|
|
135922
|
+
"key": "INIT",
|
|
135923
|
+
"name": "Initialize"
|
|
135924
|
+
},
|
|
135925
|
+
{
|
|
135926
|
+
"description": "Callback when a new todo is added",
|
|
135927
|
+
"key": "@config.onAddTodo",
|
|
135928
|
+
"name": "@config.on add todo",
|
|
135929
|
+
"payloadSchema": [
|
|
135930
|
+
{
|
|
135931
|
+
"name": "text",
|
|
135932
|
+
"required": true,
|
|
135933
|
+
"type": "string"
|
|
135934
|
+
}
|
|
135935
|
+
],
|
|
135936
|
+
"tier": "domain"
|
|
135937
|
+
},
|
|
135938
|
+
{
|
|
135939
|
+
"description": "Callback when a todo completion status changes",
|
|
135940
|
+
"key": "@config.onCompleteTodo",
|
|
135941
|
+
"name": "@config.on complete todo",
|
|
135942
|
+
"payloadSchema": [
|
|
135943
|
+
{
|
|
135944
|
+
"name": "todoId",
|
|
135945
|
+
"required": true,
|
|
135946
|
+
"type": "string"
|
|
135947
|
+
},
|
|
135948
|
+
{
|
|
135949
|
+
"name": "completed",
|
|
135950
|
+
"required": true,
|
|
135951
|
+
"type": "boolean"
|
|
135952
|
+
}
|
|
135953
|
+
],
|
|
135954
|
+
"tier": "domain"
|
|
135955
|
+
},
|
|
135956
|
+
{
|
|
135957
|
+
"description": "Callback when a todo is deleted",
|
|
135958
|
+
"key": "@config.onDeleteTodo",
|
|
135959
|
+
"name": "@config.on delete todo",
|
|
135960
|
+
"payloadSchema": [
|
|
135961
|
+
{
|
|
135962
|
+
"name": "todoId",
|
|
135963
|
+
"required": true,
|
|
135964
|
+
"type": "string"
|
|
135965
|
+
}
|
|
135966
|
+
],
|
|
135967
|
+
"tier": "domain"
|
|
135968
|
+
}
|
|
135969
|
+
],
|
|
135970
|
+
"states": [
|
|
135971
|
+
{
|
|
135972
|
+
"isInitial": true,
|
|
135973
|
+
"name": "idle"
|
|
135974
|
+
}
|
|
135975
|
+
],
|
|
135976
|
+
"transitions": [
|
|
135977
|
+
{
|
|
135978
|
+
"effects": [
|
|
135979
|
+
[
|
|
135980
|
+
"render-ui",
|
|
135981
|
+
"main",
|
|
135982
|
+
{
|
|
135983
|
+
"align": "stretch",
|
|
135984
|
+
"children": [
|
|
135985
|
+
{
|
|
135986
|
+
"content": "My Todos",
|
|
135987
|
+
"type": "typography",
|
|
135988
|
+
"variant": "h1"
|
|
135989
|
+
},
|
|
135990
|
+
{
|
|
135991
|
+
"content": "Manage your tasks",
|
|
135992
|
+
"type": "typography",
|
|
135993
|
+
"variant": "caption"
|
|
135994
|
+
}
|
|
135995
|
+
],
|
|
135996
|
+
"direction": "vertical",
|
|
135997
|
+
"gap": "md",
|
|
135998
|
+
"type": "stack"
|
|
135999
|
+
}
|
|
136000
|
+
]
|
|
136001
|
+
],
|
|
136002
|
+
"event": "INIT",
|
|
136003
|
+
"from": "idle",
|
|
136004
|
+
"to": "idle"
|
|
136005
|
+
}
|
|
136006
|
+
]
|
|
136007
|
+
}
|
|
136008
|
+
}
|
|
136009
|
+
],
|
|
136010
|
+
pages: [
|
|
136011
|
+
{
|
|
136012
|
+
"name": "TodoListPage",
|
|
136013
|
+
"path": "/",
|
|
136014
|
+
"traits": [
|
|
136015
|
+
{
|
|
136016
|
+
"ref": "TodoListRender"
|
|
136017
|
+
}
|
|
136018
|
+
]
|
|
136019
|
+
}
|
|
136020
|
+
]
|
|
136021
|
+
});
|
|
136022
|
+
if (built.traits && params.traitOverrides !== void 0) {
|
|
136023
|
+
built.traits = built.traits.map((t) => {
|
|
136024
|
+
if (!t || typeof t !== "object") return t;
|
|
136025
|
+
const tr = t;
|
|
136026
|
+
if (typeof tr.name !== "string") return t;
|
|
136027
|
+
const overrides = params.traitOverrides;
|
|
136028
|
+
const override = overrides?.[tr.name];
|
|
136029
|
+
if (!override) return t;
|
|
136030
|
+
const merged = { ...tr };
|
|
136031
|
+
if (override.config !== void 0) {
|
|
136032
|
+
merged.config = mergeCallSiteConfigOverrides(tr.config ?? {}, override.config);
|
|
136033
|
+
}
|
|
136034
|
+
if (override.linkedEntity !== void 0) merged.linkedEntity = override.linkedEntity;
|
|
136035
|
+
if (override.events !== void 0) merged.events = { ...tr.events ?? {}, ...override.events };
|
|
136036
|
+
if (override.emitsScope !== void 0) merged.emitsScope = override.emitsScope;
|
|
136037
|
+
if (override.listens !== void 0) merged.listens = override.listens;
|
|
136038
|
+
return merged;
|
|
136039
|
+
});
|
|
136040
|
+
}
|
|
136041
|
+
if (built.pages && params.pagePath !== void 0) {
|
|
136042
|
+
built.pages = built.pages.map((p, idx) => {
|
|
136043
|
+
if (!p || typeof p !== "object") return p;
|
|
136044
|
+
if (idx !== 0) return p;
|
|
136045
|
+
const out = { ...p };
|
|
136046
|
+
out.path = params.pagePath;
|
|
136047
|
+
return out;
|
|
136048
|
+
});
|
|
136049
|
+
}
|
|
136050
|
+
return built;
|
|
136051
|
+
}
|
|
136052
|
+
var StdTodoListAppTodoListAppOrbitalManifest = {
|
|
136053
|
+
organism: "todo-list-app",
|
|
136054
|
+
orbitalName: "TodoListAppOrbital",
|
|
136055
|
+
paramFields: [
|
|
136056
|
+
{ name: "fields", type: "EntityField[]", description: "Extra fields appended to the canonical entity." },
|
|
136057
|
+
{ name: "pagePath", type: "string", description: "URL override for the orbital first page." },
|
|
136058
|
+
{ name: "entityName", type: "string", description: "Rename the canonical entity. PascalCase singular, \u226432 chars. Threads through every trait's linkedEntity binding; compiler rewrites @Entity.x refs." },
|
|
136059
|
+
{ name: "traitOverrides", type: "Partial<Record<TraitName, { config?, linkedEntity?, events?, name?, emitsScope?, listens? }>>", description: "Per-imported-trait overrides \u2014 mirrors .lolo's native trait-composition surface 1:1. effects is excluded (atom-owned; use listens via a sibling trait)." }
|
|
136060
|
+
],
|
|
136061
|
+
traitNames: [],
|
|
136062
|
+
inlineTraitNames: [
|
|
136063
|
+
"TodoListRender"
|
|
136064
|
+
]
|
|
136065
|
+
};
|
|
136066
|
+
function isStdTodoListAppTodoListAppOrbitalParams(p) {
|
|
136067
|
+
const obj = p;
|
|
136068
|
+
if (obj.traitOverrides !== void 0) {
|
|
136069
|
+
if (typeof obj.traitOverrides !== "object" || obj.traitOverrides === null) return false;
|
|
136070
|
+
const allowed = [
|
|
136071
|
+
...StdTodoListAppTodoListAppOrbitalManifest.traitNames,
|
|
136072
|
+
...StdTodoListAppTodoListAppOrbitalManifest.inlineTraitNames
|
|
136073
|
+
];
|
|
136074
|
+
for (const k of Object.keys(obj.traitOverrides)) {
|
|
136075
|
+
if (!allowed.includes(k)) return false;
|
|
136076
|
+
}
|
|
136077
|
+
}
|
|
136078
|
+
return true;
|
|
136079
|
+
}
|
|
136080
|
+
function stdTodoListApp(params = {}) {
|
|
136081
|
+
return [
|
|
136082
|
+
stdTodoListAppTodoListAppOrbital(params.TodoListApp ?? {})
|
|
136083
|
+
];
|
|
136084
|
+
}
|
|
135785
136085
|
function stdUiBookChapterViewBookChapterViewOrbital(params = {}) {
|
|
135786
136086
|
const built = makeOrbitalWithUses({
|
|
135787
136087
|
name: "BookChapterViewOrbital",
|
|
@@ -150864,6 +151164,15 @@ REGISTRY_MUT.set("std-worldmap-board-2d::WorldMapBoard2DOrbital", {
|
|
|
150864
151164
|
},
|
|
150865
151165
|
manifest: StdWorldmapBoard2dWorldMapBoard2DOrbitalManifest
|
|
150866
151166
|
});
|
|
151167
|
+
REGISTRY_MUT.set("todo-list-app::TodoListAppOrbital", {
|
|
151168
|
+
factory: (p) => {
|
|
151169
|
+
if (!isStdTodoListAppTodoListAppOrbitalParams(p)) {
|
|
151170
|
+
throw new TypeError("Invalid params for todo-list-app::TodoListAppOrbital");
|
|
151171
|
+
}
|
|
151172
|
+
return stdTodoListAppTodoListAppOrbital(p);
|
|
151173
|
+
},
|
|
151174
|
+
manifest: StdTodoListAppTodoListAppOrbitalManifest
|
|
151175
|
+
});
|
|
150867
151176
|
REGISTRY_MUT.set("ui-book-chapter-view::BookChapterViewOrbital", {
|
|
150868
151177
|
factory: (p) => {
|
|
150869
151178
|
if (!isStdUiBookChapterViewBookChapterViewOrbitalParams(p)) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "16.
|
|
2
|
+
"version": "16.186.0",
|
|
3
3
|
"model": "baai/bge-base-en-v1.5",
|
|
4
4
|
"dimensions": 768,
|
|
5
|
-
"registryHash": "
|
|
6
|
-
"signaturesHash": "
|
|
5
|
+
"registryHash": "62c6149b755cd9699b1e98565963b98b0b04cfe3191d9eb9772647a3a62dbbe2",
|
|
6
|
+
"signaturesHash": "54623836876fb49b8f16c19e92b84a3507f43b0aea248709d7c8a834770796b5"
|
|
7
7
|
}
|