@bilig/workbook 0.94.0 → 0.96.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.
@@ -0,0 +1,118 @@
1
+ {
2
+ "status": "done",
3
+ "apply": {
4
+ "matched": true,
5
+ "planId": "bilig-plan-v1:1d10ebcfda99753e809362618290ef8d",
6
+ "baseRevision": 0,
7
+ "revision": 1,
8
+ "previewOps": [
9
+ {
10
+ "kind": "setCellFormula",
11
+ "sheetName": "Resolved",
12
+ "address": "C1",
13
+ "formula": "input*factor"
14
+ }
15
+ ],
16
+ "appliedOps": [
17
+ {
18
+ "kind": "setCellFormula",
19
+ "sheetName": "Resolved",
20
+ "address": "C1",
21
+ "formula": "input*factor"
22
+ }
23
+ ],
24
+ "commandReceipts": [
25
+ {
26
+ "commandIndex": 0,
27
+ "commandKind": "writeFormula",
28
+ "commandDigest": "bilig-command-v1:65870d1526258bc9da2e9e6489ddc3ba",
29
+ "previewOps": [
30
+ {
31
+ "kind": "setCellFormula",
32
+ "sheetName": "Resolved",
33
+ "address": "C1",
34
+ "formula": "input*factor"
35
+ }
36
+ ],
37
+ "appliedOps": [
38
+ {
39
+ "kind": "setCellFormula",
40
+ "sheetName": "Resolved",
41
+ "address": "C1",
42
+ "formula": "input*factor"
43
+ }
44
+ ],
45
+ "resolvedRefs": {
46
+ "target": {
47
+ "kind": "name",
48
+ "id": "name_result",
49
+ "label": "result",
50
+ "name": "result"
51
+ },
52
+ "inputs": [
53
+ {
54
+ "kind": "name",
55
+ "id": "name_input",
56
+ "label": "input",
57
+ "name": "input"
58
+ },
59
+ {
60
+ "kind": "name",
61
+ "id": "name_factor",
62
+ "label": "factor",
63
+ "name": "factor"
64
+ }
65
+ ]
66
+ }
67
+ }
68
+ ],
69
+ "proof": {
70
+ "source": "fixture"
71
+ }
72
+ },
73
+ "changed": [
74
+ {
75
+ "kind": "writeFormula",
76
+ "target": {
77
+ "kind": "name",
78
+ "id": "name_result",
79
+ "label": "result",
80
+ "name": "result"
81
+ },
82
+ "message": "Write formula to result"
83
+ }
84
+ ],
85
+ "checks": [
86
+ {
87
+ "status": "passed",
88
+ "kind": "exists",
89
+ "target": {
90
+ "kind": "name",
91
+ "id": "name_result",
92
+ "label": "result",
93
+ "name": "result"
94
+ },
95
+ "message": "result exists",
96
+ "proof": {
97
+ "source": "fixture"
98
+ }
99
+ },
100
+ {
101
+ "status": "passed",
102
+ "kind": "formulaEquals",
103
+ "target": {
104
+ "kind": "name",
105
+ "id": "name_result",
106
+ "label": "result",
107
+ "name": "result"
108
+ },
109
+ "message": "result formula equals input*factor",
110
+ "proof": {
111
+ "source": "readback",
112
+ "formula": "input*factor",
113
+ "expectedFormula": "input*factor",
114
+ "materializedFormula": "input*factor"
115
+ }
116
+ }
117
+ ]
118
+ }
@@ -0,0 +1,145 @@
1
+ {
2
+ "modelName": "named-range-formula",
3
+ "actionName": "calculate",
4
+ "refsUsed": [
5
+ {
6
+ "kind": "name",
7
+ "id": "name_input",
8
+ "label": "input",
9
+ "name": "input"
10
+ },
11
+ {
12
+ "kind": "name",
13
+ "id": "name_factor",
14
+ "label": "factor",
15
+ "name": "factor"
16
+ },
17
+ {
18
+ "kind": "name",
19
+ "id": "name_result",
20
+ "label": "result",
21
+ "name": "result"
22
+ }
23
+ ],
24
+ "commands": [
25
+ {
26
+ "kind": "writeFormula",
27
+ "target": {
28
+ "kind": "name",
29
+ "id": "name_result",
30
+ "label": "result",
31
+ "name": "result"
32
+ },
33
+ "formula": "(input)*(factor)",
34
+ "inputs": [
35
+ {
36
+ "kind": "name",
37
+ "id": "name_input",
38
+ "label": "input",
39
+ "name": "input"
40
+ },
41
+ {
42
+ "kind": "name",
43
+ "id": "name_factor",
44
+ "label": "factor",
45
+ "name": "factor"
46
+ }
47
+ ],
48
+ "labels": [
49
+ {
50
+ "name": "input",
51
+ "ref": {
52
+ "kind": "name",
53
+ "id": "name_input",
54
+ "label": "input",
55
+ "name": "input"
56
+ }
57
+ },
58
+ {
59
+ "name": "factor",
60
+ "ref": {
61
+ "kind": "name",
62
+ "id": "name_factor",
63
+ "label": "factor",
64
+ "name": "factor"
65
+ }
66
+ }
67
+ ]
68
+ }
69
+ ],
70
+ "ops": [],
71
+ "changed": [
72
+ {
73
+ "kind": "writeFormula",
74
+ "target": {
75
+ "kind": "name",
76
+ "id": "name_result",
77
+ "label": "result",
78
+ "name": "result"
79
+ },
80
+ "message": "Write formula to result"
81
+ }
82
+ ],
83
+ "checks": [
84
+ {
85
+ "status": "planned",
86
+ "kind": "exists",
87
+ "target": {
88
+ "kind": "name",
89
+ "id": "name_result",
90
+ "label": "result",
91
+ "name": "result"
92
+ },
93
+ "message": "result exists"
94
+ },
95
+ {
96
+ "status": "planned",
97
+ "kind": "formulaEquals",
98
+ "target": {
99
+ "kind": "name",
100
+ "id": "name_result",
101
+ "label": "result",
102
+ "name": "result"
103
+ },
104
+ "message": "result formula equals (input)*(factor)",
105
+ "expectation": {
106
+ "kind": "formulaEquals",
107
+ "formula": "(input)*(factor)",
108
+ "inputs": [
109
+ {
110
+ "kind": "name",
111
+ "id": "name_input",
112
+ "label": "input",
113
+ "name": "input"
114
+ },
115
+ {
116
+ "kind": "name",
117
+ "id": "name_factor",
118
+ "label": "factor",
119
+ "name": "factor"
120
+ }
121
+ ],
122
+ "labels": [
123
+ {
124
+ "name": "input",
125
+ "ref": {
126
+ "kind": "name",
127
+ "id": "name_input",
128
+ "label": "input",
129
+ "name": "input"
130
+ }
131
+ },
132
+ {
133
+ "name": "factor",
134
+ "ref": {
135
+ "kind": "name",
136
+ "id": "name_factor",
137
+ "label": "factor",
138
+ "name": "factor"
139
+ }
140
+ }
141
+ ]
142
+ }
143
+ }
144
+ ]
145
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bilig/workbook",
3
- "version": "0.94.0",
3
+ "version": "0.96.0",
4
4
  "description": "Agent-first workbook model API and transport-neutral workbook operation language for bilig.",
5
5
  "keywords": [
6
6
  "agent-first",
@@ -21,6 +21,7 @@
21
21
  },
22
22
  "files": [
23
23
  "dist",
24
+ "fixtures",
24
25
  "README.md",
25
26
  "LICENSE"
26
27
  ],
@@ -33,6 +34,46 @@
33
34
  "types": "./dist/index.d.ts",
34
35
  "import": "./dist/index.js",
35
36
  "default": "./dist/index.js"
37
+ },
38
+ "./model": {
39
+ "types": "./dist/model.d.ts",
40
+ "import": "./dist/model.js",
41
+ "default": "./dist/model.js"
42
+ },
43
+ "./find": {
44
+ "types": "./dist/find.d.ts",
45
+ "import": "./dist/find.js",
46
+ "default": "./dist/find.js"
47
+ },
48
+ "./check": {
49
+ "types": "./dist/check.d.ts",
50
+ "import": "./dist/check.js",
51
+ "default": "./dist/check.js"
52
+ },
53
+ "./formula": {
54
+ "types": "./dist/formula.d.ts",
55
+ "import": "./dist/formula.js",
56
+ "default": "./dist/formula.js"
57
+ },
58
+ "./verify": {
59
+ "types": "./dist/verify.d.ts",
60
+ "import": "./dist/verify.js",
61
+ "default": "./dist/verify.js"
62
+ },
63
+ "./runtime": {
64
+ "types": "./dist/runtime.d.ts",
65
+ "import": "./dist/runtime.js",
66
+ "default": "./dist/runtime.js"
67
+ },
68
+ "./command": {
69
+ "types": "./dist/command.d.ts",
70
+ "import": "./dist/command.js",
71
+ "default": "./dist/command.js"
72
+ },
73
+ "./schema": {
74
+ "types": "./dist/schema.d.ts",
75
+ "import": "./dist/schema.js",
76
+ "default": "./dist/schema.js"
36
77
  }
37
78
  },
38
79
  "publishConfig": {
@@ -40,11 +81,11 @@
40
81
  },
41
82
  "scripts": {
42
83
  "build": "tsc -b tsconfig.json",
43
- "test": "cd ../.. && tsx scripts/run-vitest.ts --run packages/workbook/src/__tests__/guards.test.ts packages/workbook/src/__tests__/model-api.test.ts packages/workbook/src/__tests__/model-verification-api.test.ts packages/workbook/src/__tests__/transport-api.test.ts packages/workbook/src/__tests__/ref-data-boundary.test.ts packages/workbook/src/__tests__/low-level-op-api.test.ts packages/workbook/src/__tests__/check-api.test.ts packages/workbook/src/__tests__/format-api.test.ts packages/workbook/src/__tests__/formula-api.test.ts packages/workbook/src/__tests__/action-input-api.test.ts packages/workbook/src/__tests__/action-metadata-api.test.ts packages/workbook/src/__tests__/features-api.test.ts packages/workbook/src/__tests__/feature-plugin-boundary.test.ts packages/workbook/src/__tests__/command-bundle-api.test.ts packages/workbook/src/__tests__/run-api.test.ts packages/workbook/src/__tests__/run-proof-boundary.test.ts packages/workbook/src/__tests__/run-strict-proof-api.test.ts packages/workbook/src/__tests__/requirements-api.test.ts packages/workbook/src/__tests__/plan-refs-api.test.ts"
84
+ "test": "cd ../.. && tsx scripts/run-vitest.ts --run packages/workbook/src/__tests__/guards.test.ts packages/workbook/src/__tests__/model-api.test.ts packages/workbook/src/__tests__/model-verification-api.test.ts packages/workbook/src/__tests__/transport-api.test.ts packages/workbook/src/__tests__/ref-data-boundary.test.ts packages/workbook/src/__tests__/low-level-op-api.test.ts packages/workbook/src/__tests__/check-api.test.ts packages/workbook/src/__tests__/format-api.test.ts packages/workbook/src/__tests__/formula-api.test.ts packages/workbook/src/__tests__/action-input-api.test.ts packages/workbook/src/__tests__/action-metadata-api.test.ts packages/workbook/src/__tests__/features-api.test.ts packages/workbook/src/__tests__/feature-plugin-boundary.test.ts packages/workbook/src/__tests__/command-bundle-api.test.ts packages/workbook/src/__tests__/run-api.test.ts packages/workbook/src/__tests__/run-proof-boundary.test.ts packages/workbook/src/__tests__/readback-proof-api.test.ts packages/workbook/src/__tests__/run-strict-proof-api.test.ts packages/workbook/src/__tests__/requirements-api.test.ts packages/workbook/src/__tests__/plan-refs-api.test.ts packages/workbook/src/__tests__/schema-api.test.ts packages/workbook/src/__tests__/package-boundary.test.ts"
44
85
  },
45
86
  "dependencies": {
46
- "@bilig/formula": "0.94.0",
47
- "@bilig/protocol": "0.94.0"
87
+ "@bilig/formula": "0.96.0",
88
+ "@bilig/protocol": "0.96.0"
48
89
  },
49
90
  "engines": {
50
91
  "node": ">=22.0.0"