yaml-flow 6.0.0 → 7.0.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/board-live-cards-cli.js +4 -4
- package/browser/asset-integrity.json +3 -3
- package/browser/board-livecards-client.js +2 -0
- package/browser/board-livecards-client.js.map +1 -0
- package/browser/board-livecards-localstorage.js +10 -0
- package/browser/board-livecards-localstorage.js.map +1 -0
- package/browser/board-livegraph-engine.js +2 -2
- package/browser/board-livegraph-engine.js.map +1 -1
- package/browser/card-compute.js +28 -28
- package/browser/compute-jsonata.js +5 -0
- package/browser/compute-jsonata.js.map +1 -0
- package/browser/live-cards.js +261 -150
- package/card-store.js +4 -4
- package/dist/{board-live-cards-public-CltXYgaY.d.cts → board-live-cards-public-CW5074xr.d.cts} +9 -5
- package/dist/{board-live-cards-public-f-E-FAyp.d.ts → board-live-cards-public-hnZo0mAf.d.ts} +9 -5
- package/dist/board-livegraph-runtime/index.cjs +2 -2
- package/dist/board-livegraph-runtime/index.cjs.map +1 -1
- package/dist/board-livegraph-runtime/index.d.cts +11 -9
- package/dist/board-livegraph-runtime/index.d.ts +11 -9
- package/dist/board-livegraph-runtime/index.js +2 -2
- package/dist/board-livegraph-runtime/index.js.map +1 -1
- package/dist/board-livegraph-runtime/jsonata-sync.cjs +37 -1
- package/dist/card-compute/index.cjs +4 -4
- package/dist/card-compute/index.cjs.map +1 -1
- package/dist/card-compute/index.d.cts +5 -1
- package/dist/card-compute/index.d.ts +5 -1
- package/dist/card-compute/index.js +4 -4
- package/dist/card-compute/index.js.map +1 -1
- package/dist/card-compute/jsonata-sync.cjs +37 -1
- package/dist/cli/browser-api/board-live-cards-browser-adapter.cjs +2 -1
- package/dist/cli/browser-api/board-live-cards-browser-adapter.cjs.map +1 -1
- package/dist/cli/browser-api/board-live-cards-browser-adapter.d.cts +27 -14
- package/dist/cli/browser-api/board-live-cards-browser-adapter.d.ts +27 -14
- package/dist/cli/browser-api/board-live-cards-browser-adapter.js +2 -1
- package/dist/cli/browser-api/board-live-cards-browser-adapter.js.map +1 -1
- package/dist/cli/browser-api/card-store-browser-api.cjs +1 -1
- package/dist/cli/browser-api/card-store-browser-api.cjs.map +1 -1
- package/dist/cli/browser-api/card-store-browser-api.js +1 -1
- package/dist/cli/browser-api/card-store-browser-api.js.map +1 -1
- package/dist/cli/browser-api/jsonata-sync.cjs +37 -1
- package/dist/cli/node/artifacts-store-cli.cjs +8 -8
- package/dist/cli/node/artifacts-store-cli.cjs.map +1 -1
- package/dist/cli/node/artifacts-store-cli.js +8 -8
- package/dist/cli/node/artifacts-store-cli.js.map +1 -1
- package/dist/cli/node/board-live-cards-cli.cjs +7 -7
- package/dist/cli/node/board-live-cards-cli.cjs.map +1 -1
- package/dist/cli/node/board-live-cards-cli.js +7 -7
- package/dist/cli/node/board-live-cards-cli.js.map +1 -1
- package/dist/cli/node/card-store-cli.cjs +5 -5
- package/dist/cli/node/card-store-cli.cjs.map +1 -1
- package/dist/cli/node/card-store-cli.js +5 -5
- package/dist/cli/node/card-store-cli.js.map +1 -1
- package/dist/cli/node/execution-adapter.cjs +3 -0
- package/dist/cli/node/execution-adapter.cjs.map +1 -0
- package/dist/cli/node/execution-adapter.d.cts +174 -0
- package/dist/cli/node/execution-adapter.d.ts +174 -0
- package/dist/cli/node/execution-adapter.js +3 -0
- package/dist/cli/node/execution-adapter.js.map +1 -0
- package/dist/cli/node/fs-board-adapter.cjs +7 -7
- package/dist/cli/node/fs-board-adapter.cjs.map +1 -1
- package/dist/cli/node/fs-board-adapter.d.cts +2 -2
- package/dist/cli/node/fs-board-adapter.d.ts +2 -2
- package/dist/cli/node/fs-board-adapter.js +7 -7
- package/dist/cli/node/fs-board-adapter.js.map +1 -1
- package/dist/cli/node/jsonata-sync.cjs +37 -1
- package/dist/cli/node/source-cli-task-executor.cjs +4 -4
- package/dist/cli/node/source-cli-task-executor.cjs.map +1 -1
- package/dist/cli/node/source-cli-task-executor.js +4 -4
- package/dist/cli/node/source-cli-task-executor.js.map +1 -1
- package/dist/continuous-event-graph/index.cjs +2 -2
- package/dist/continuous-event-graph/index.cjs.map +1 -1
- package/dist/continuous-event-graph/index.js +2 -2
- package/dist/continuous-event-graph/index.js.map +1 -1
- package/dist/continuous-event-graph/jsonata-sync.cjs +37 -1
- package/dist/execution-refs.cjs +2 -1
- package/dist/execution-refs.cjs.map +1 -1
- package/dist/execution-refs.d.cts +49 -11
- package/dist/execution-refs.d.ts +49 -11
- package/dist/execution-refs.js +2 -1
- package/dist/execution-refs.js.map +1 -1
- package/dist/index.cjs +10 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/dist/jsonata-sync.cjs +37 -1
- package/dist/server-runtime/index.cjs +9 -0
- package/dist/server-runtime/index.cjs.map +1 -0
- package/dist/server-runtime/index.d.cts +31 -0
- package/dist/server-runtime/index.d.ts +31 -0
- package/dist/server-runtime/index.js +9 -0
- package/dist/server-runtime/index.js.map +1 -0
- package/dist/server-runtime/jsonata-sync.cjs +7623 -0
- package/dist/step-machine-public/index.cjs +2 -0
- package/dist/step-machine-public/index.cjs.map +1 -0
- package/dist/step-machine-public/index.d.cts +159 -0
- package/dist/step-machine-public/index.d.ts +159 -0
- package/dist/step-machine-public/index.js +2 -0
- package/dist/step-machine-public/index.js.map +1 -0
- package/dist/step-machine-public/jsonata-sync.cjs +7623 -0
- package/dist/storage-refs.cjs +2 -2
- package/dist/storage-refs.cjs.map +1 -1
- package/dist/storage-refs.d.cts +7 -6
- package/dist/storage-refs.d.ts +7 -6
- package/dist/storage-refs.js +2 -2
- package/dist/storage-refs.js.map +1 -1
- package/dist/types-B1ZRa4aI.d.ts +147 -0
- package/dist/types-BxEFcVK9.d.cts +147 -0
- package/examples/browser/boards/portfolio-tracker/portfolio-t4.js +9 -10
- package/examples/browser/boards/portfolio-tracker/portfolio-tracker-http-test.js +357 -0
- package/examples/browser/boards/portfolio-tracker/portfolio-tracker-public.js +9 -10
- package/examples/browser/boards/portfolio-tracker/portfolio-tracker-server.js +300 -0
- package/examples/browser/boards/portfolio-tracker/portfolio-tracker-server.py +617 -0
- package/examples/browser/boards/portfolio-tracker/portfolio-tracker-sse-worker.js +48 -0
- package/examples/browser/boards/portfolio-tracker/portfolio-tracker.py +11 -10
- package/examples/cli/step-machine-cli/portfolio-tracker/handlers/_board-cli.js +19 -4
- package/examples/cli/step-machine-cli/portfolio-tracker/handlers/add-cards-cli.js +4 -8
- package/examples/cli/step-machine-cli/portfolio-tracker/handlers/init-board-cli.js +6 -10
- package/examples/cli/step-machine-cli/portfolio-tracker/handlers/poll-status-cli.js +8 -16
- package/examples/cli/step-machine-cli/portfolio-tracker/handlers/reset-board-dir-cli.js +2 -6
- package/examples/cli/step-machine-cli/portfolio-tracker/handlers/retrigger-cli.js +4 -8
- package/examples/cli/step-machine-cli/portfolio-tracker/handlers/status-cli.js +3 -7
- package/examples/cli/step-machine-cli/portfolio-tracker/handlers/update-holdings-cli.js +4 -8
- package/examples/cli/step-machine-cli/portfolio-tracker/handlers/wait-completed-cli.js +7 -16
- package/examples/cli/step-machine-cli/portfolio-tracker/handlers/write-prices-cli.js +2 -6
- package/examples/cli/step-machine-cli/portfolio-tracker/handlers-py/_board_pycli.py +13 -3
- package/examples/cli/step-machine-cli/portfolio-tracker/handlers-py/add-cards.py +2 -1
- package/examples/cli/step-machine-cli/portfolio-tracker/handlers-py/init-board.py +2 -1
- package/examples/cli/step-machine-cli/portfolio-tracker/handlers-py/poll-status.py +2 -1
- package/examples/cli/step-machine-cli/portfolio-tracker/portfolio-tracker.flow.yaml +20 -24
- package/examples/cli/step-machine-cli/portfolio-tracker/run-inline-python-demo-pycli.py +0 -3
- package/examples/cli/step-machine-demo/jsonata-init-board-cli.js +8 -13
- package/examples/cli/step-machine-demo/jsonata-init-board.flow.yaml +33 -9
- package/examples/cli/step-machine-demo/one-step-cli-only.flow.yaml +3 -1
- package/examples/cli/step-machine-demo/step2-double-cli.js +6 -12
- package/examples/cli/step-machine-demo/two-step-math.flow.yaml +66 -4
- package/examples/cli/step-machine-demo/two-step-mixed.flow.yaml +13 -5
- package/examples/example-board/cards/_index.json +47 -0
- package/examples/example-board/cards/card-market-prices.json +33 -9
- package/examples/example-board/cards/card-my-identity.json +30 -6
- package/examples/example-board/cards/card-portfolio-action.json +24 -6
- package/examples/example-board/cards/card-portfolio-intelligence.json +97 -0
- package/examples/example-board/cards/card-portfolio-risks.json +24 -6
- package/examples/example-board/cards/card-portfolio-value.json +38 -10
- package/examples/example-board/cards/card-portfolio.json +57 -13
- package/examples/example-board/cards/card-rebalance-impact.json +22 -6
- package/examples/example-board/cards/card-rebalance-sim.json +66 -15
- package/examples/example-board/demo-server.js +360 -69
- package/examples/example-board/demo-shell-localstorage.html +774 -0
- package/examples/example-board/demo-shell-with-server.html +18 -36
- package/examples/example-board/demo-shell.html +5 -4
- package/examples/example-board/demo-task-executor.js +217 -265
- package/package.json +15 -13
- package/step-machine-cli.js +43 -310
- package/board-livecards-server-runtime.js +0 -1513
- package/browser/board-livecards-runtime-client.js +0 -263
- package/dist/pycli/quickjs-board-runtime.global.js +0 -9
- package/dist/pycli/quickjs-board-runtime.global.js.map +0 -1
- package/dist/pycli/quickjs-step-machine-runtime.global.js +0 -5
- package/dist/pycli/quickjs-step-machine-runtime.global.js.map +0 -1
- package/examples/cli/step-machine-demo/two-step-math-handlers.js +0 -32
- package/examples/cli/step-machine-demo/two-step-mixed-handlers.js +0 -24
- package/examples/example-board/demo-shell-browser.html +0 -675
|
@@ -2,11 +2,16 @@
|
|
|
2
2
|
"id": "card-portfolio",
|
|
3
3
|
"meta": {
|
|
4
4
|
"title": "My Portfolio",
|
|
5
|
-
"tags": [
|
|
5
|
+
"tags": [
|
|
6
|
+
"portfolio"
|
|
7
|
+
],
|
|
6
8
|
"desc": "Manage your stock holdings — edit tickers and quantities inline, add or delete rows. Changes propagate downstream immediately."
|
|
7
9
|
},
|
|
8
10
|
"provides": [
|
|
9
|
-
{
|
|
11
|
+
{
|
|
12
|
+
"bindTo": "holdings",
|
|
13
|
+
"ref": "card_data.holdings"
|
|
14
|
+
}
|
|
10
15
|
],
|
|
11
16
|
"compute": [],
|
|
12
17
|
"view": {
|
|
@@ -17,28 +22,67 @@
|
|
|
17
22
|
"data": {
|
|
18
23
|
"bind": "card_data.holdings",
|
|
19
24
|
"writeTo": "card_data.holdings",
|
|
20
|
-
"columns": [
|
|
25
|
+
"columns": [
|
|
26
|
+
"ticker",
|
|
27
|
+
"quantity",
|
|
28
|
+
"cost_basis"
|
|
29
|
+
],
|
|
21
30
|
"schema": {
|
|
22
31
|
"properties": {
|
|
23
|
-
"quantity":
|
|
24
|
-
|
|
32
|
+
"quantity": {
|
|
33
|
+
"type": "number"
|
|
34
|
+
},
|
|
35
|
+
"cost_basis": {
|
|
36
|
+
"type": "number"
|
|
37
|
+
}
|
|
25
38
|
}
|
|
26
39
|
}
|
|
27
40
|
}
|
|
28
41
|
}
|
|
29
42
|
],
|
|
30
43
|
"layout": {
|
|
31
|
-
"board": {
|
|
32
|
-
|
|
44
|
+
"board": {
|
|
45
|
+
"col": 4,
|
|
46
|
+
"order": 1
|
|
47
|
+
},
|
|
48
|
+
"canvas": {
|
|
49
|
+
"x": 50,
|
|
50
|
+
"y": 50,
|
|
51
|
+
"w": 320,
|
|
52
|
+
"h": 340
|
|
53
|
+
}
|
|
33
54
|
},
|
|
34
|
-
"features": {
|
|
55
|
+
"features": {
|
|
56
|
+
"chat": true
|
|
57
|
+
}
|
|
35
58
|
},
|
|
36
59
|
"card_data": {
|
|
37
60
|
"holdings": [
|
|
38
|
-
{
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
61
|
+
{
|
|
62
|
+
"ticker": "AAPL",
|
|
63
|
+
"quantity": 10,
|
|
64
|
+
"cost_basis": 150
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"ticker": "MSFT",
|
|
68
|
+
"quantity": 5,
|
|
69
|
+
"cost_basis": 310
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"ticker": "GOOGL",
|
|
73
|
+
"quantity": 2,
|
|
74
|
+
"cost_basis": 280
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"ticker": "TSLA",
|
|
78
|
+
"quantity": 3,
|
|
79
|
+
"cost_basis": 200
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"ticker": "NVDA",
|
|
83
|
+
"quantity": 5,
|
|
84
|
+
"cost_basis": 310
|
|
85
|
+
}
|
|
42
86
|
]
|
|
43
87
|
}
|
|
44
|
-
}
|
|
88
|
+
}
|
|
@@ -2,11 +2,17 @@
|
|
|
2
2
|
"id": "card-rebalance-impact",
|
|
3
3
|
"meta": {
|
|
4
4
|
"title": "Rebalance Impact",
|
|
5
|
-
"tags": [
|
|
5
|
+
"tags": [
|
|
6
|
+
"portfolio",
|
|
7
|
+
"simulation"
|
|
8
|
+
],
|
|
6
9
|
"simulation": true,
|
|
7
10
|
"desc": "Before/after impact summary of the proposed rebalance scenario."
|
|
8
11
|
},
|
|
9
|
-
"requires": [
|
|
12
|
+
"requires": [
|
|
13
|
+
"positions",
|
|
14
|
+
"proposed_trades"
|
|
15
|
+
],
|
|
10
16
|
"compute": [
|
|
11
17
|
{
|
|
12
18
|
"bindTo": "total_current_value",
|
|
@@ -53,13 +59,23 @@
|
|
|
53
59
|
"elements": [
|
|
54
60
|
{
|
|
55
61
|
"kind": "markdown",
|
|
56
|
-
"data": {
|
|
62
|
+
"data": {
|
|
63
|
+
"bind": "computed_values.summary_md"
|
|
64
|
+
}
|
|
57
65
|
}
|
|
58
66
|
],
|
|
59
67
|
"layout": {
|
|
60
|
-
"board": {
|
|
61
|
-
|
|
68
|
+
"board": {
|
|
69
|
+
"col": 6,
|
|
70
|
+
"order": 8
|
|
71
|
+
},
|
|
72
|
+
"canvas": {
|
|
73
|
+
"x": 1360,
|
|
74
|
+
"y": 480,
|
|
75
|
+
"w": 400,
|
|
76
|
+
"h": 280
|
|
77
|
+
}
|
|
62
78
|
}
|
|
63
79
|
},
|
|
64
80
|
"card_data": {}
|
|
65
|
-
}
|
|
81
|
+
}
|
|
@@ -2,11 +2,20 @@
|
|
|
2
2
|
"id": "card-rebalance-sim",
|
|
3
3
|
"meta": {
|
|
4
4
|
"title": "Rebalance Proposal",
|
|
5
|
-
"tags": [
|
|
5
|
+
"tags": [
|
|
6
|
+
"portfolio",
|
|
7
|
+
"simulation"
|
|
8
|
+
],
|
|
6
9
|
"simulation": true,
|
|
7
10
|
"desc": "AI-proposed rebalance trades based on portfolio intelligence. Edit quantities before pinning."
|
|
8
11
|
},
|
|
9
|
-
"requires": [
|
|
12
|
+
"requires": [
|
|
13
|
+
"holdings",
|
|
14
|
+
"portfolio_mix",
|
|
15
|
+
"portfolio_risks",
|
|
16
|
+
"portfolio_action",
|
|
17
|
+
"positions"
|
|
18
|
+
],
|
|
10
19
|
"source_defs": [
|
|
11
20
|
{
|
|
12
21
|
"bindTo": "rebalance",
|
|
@@ -24,7 +33,20 @@
|
|
|
24
33
|
}
|
|
25
34
|
],
|
|
26
35
|
"provides": [
|
|
27
|
-
{
|
|
36
|
+
{
|
|
37
|
+
"bindTo": "proposed_trades",
|
|
38
|
+
"ref": "fetched_sources.rebalance.proposed_trades"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"compute": [
|
|
42
|
+
{
|
|
43
|
+
"bindTo": "proposed_trades",
|
|
44
|
+
"expr": "fetched_sources.rebalance.proposed_trades"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"bindTo": "_view",
|
|
48
|
+
"expr": "fetched_sources.rebalance._view"
|
|
49
|
+
}
|
|
28
50
|
],
|
|
29
51
|
"view": {
|
|
30
52
|
"elements": [
|
|
@@ -32,18 +54,37 @@
|
|
|
32
54
|
"kind": "ref",
|
|
33
55
|
"label": "Proposed Trades",
|
|
34
56
|
"data": {
|
|
35
|
-
"bind": "
|
|
36
|
-
"viewBind": "
|
|
57
|
+
"bind": "computed_values.proposed_trades",
|
|
58
|
+
"viewBind": "computed_values._view",
|
|
37
59
|
"fallbackKind": "editable-table",
|
|
38
60
|
"writeTo": "card_data.proposed_trades",
|
|
39
|
-
"columns": [
|
|
61
|
+
"columns": [
|
|
62
|
+
"ticker",
|
|
63
|
+
"direction",
|
|
64
|
+
"current_qty",
|
|
65
|
+
"change",
|
|
66
|
+
"proposed_qty",
|
|
67
|
+
"price",
|
|
68
|
+
"trade_value",
|
|
69
|
+
"reason"
|
|
70
|
+
],
|
|
40
71
|
"schema": {
|
|
41
72
|
"properties": {
|
|
42
|
-
"current_qty": {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
|
|
73
|
+
"current_qty": {
|
|
74
|
+
"type": "number"
|
|
75
|
+
},
|
|
76
|
+
"change": {
|
|
77
|
+
"type": "number"
|
|
78
|
+
},
|
|
79
|
+
"proposed_qty": {
|
|
80
|
+
"type": "number"
|
|
81
|
+
},
|
|
82
|
+
"price": {
|
|
83
|
+
"type": "number"
|
|
84
|
+
},
|
|
85
|
+
"trade_value": {
|
|
86
|
+
"type": "number"
|
|
87
|
+
}
|
|
47
88
|
}
|
|
48
89
|
}
|
|
49
90
|
}
|
|
@@ -58,10 +99,20 @@
|
|
|
58
99
|
}
|
|
59
100
|
],
|
|
60
101
|
"layout": {
|
|
61
|
-
"board": {
|
|
62
|
-
|
|
102
|
+
"board": {
|
|
103
|
+
"col": 6,
|
|
104
|
+
"order": 7
|
|
105
|
+
},
|
|
106
|
+
"canvas": {
|
|
107
|
+
"x": 840,
|
|
108
|
+
"y": 480,
|
|
109
|
+
"w": 500,
|
|
110
|
+
"h": 280
|
|
111
|
+
}
|
|
63
112
|
},
|
|
64
|
-
"features": {
|
|
113
|
+
"features": {
|
|
114
|
+
"refresh": true
|
|
115
|
+
}
|
|
65
116
|
},
|
|
66
117
|
"card_data": {}
|
|
67
|
-
}
|
|
118
|
+
}
|