@agoric/portfolio-api 0.1.1-dev-68817f5.0.68817f5 → 0.1.1-dev-96faaf4.0.96faaf4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/portfolio-api",
3
- "version": "0.1.1-dev-68817f5.0.68817f5",
3
+ "version": "0.1.1-dev-96faaf4.0.96faaf4",
4
4
  "description": "API for Portfolio management",
5
5
  "type": "module",
6
6
  "files": [
@@ -20,16 +20,20 @@
20
20
  "lint": "yarn run -T run-s --continue-on-error 'lint:*'",
21
21
  "lint:eslint": "yarn run -T eslint .",
22
22
  "lint:types": "yarn run -T tsc",
23
- "lint:mermaid": "scripts/gen-mermaid.mts --check",
24
- "lint:ymax-diagram": "scripts/lint-ymax-state-diagram.mts"
23
+ "lint:mermaid": "npx tsx scripts/gen-mermaid.mts --check",
24
+ "lint:ymax-diagram": "npx tsx scripts/lint-ymax-state-diagram.mts",
25
+ "lint:ymax-machine": "npx tsx scripts/gen-ymax-machine.mts --check",
26
+ "lint:visualizer-data": "npx tsx scripts/gen-visualizer-data.mts --check",
27
+ "generate:ymax-machine": "npx tsx scripts/gen-ymax-machine.mts"
25
28
  },
26
29
  "dependencies": {
27
- "@agoric/orchestration": "0.1.1-dev-68817f5.0.68817f5",
30
+ "@agoric/orchestration": "0.1.1-dev-96faaf4.0.96faaf4",
28
31
  "@endo/common": "^1.2.13"
29
32
  },
30
33
  "devDependencies": {
31
- "@agoric/internal": "0.3.3-dev-68817f5.0.68817f5",
34
+ "@agoric/internal": "0.3.3-dev-96faaf4.0.96faaf4",
32
35
  "@types/js-yaml": "^4",
36
+ "ajv": "^6.12.6",
33
37
  "ava": "^5.3.0",
34
38
  "c8": "^10.1.3",
35
39
  "js-yaml": "^4.1.1",
@@ -60,5 +64,5 @@
60
64
  "engines": {
61
65
  "node": "^20.9 || ^22.11"
62
66
  },
63
- "gitHead": "68817f5dee5a74c1a68552af7787b5ee91f0e647"
67
+ "gitHead": "96faaf4d3eb748e19c47c32eeaf647ae9a394d4e"
64
68
  }
@@ -0,0 +1,71 @@
1
+ /**
2
+ * GENERATED FILE - DO NOT EDIT.
3
+ * Source: ../ymax-machine.yaml
4
+ * To regenerate: yarn run -T tsx scripts/gen-ymax-machine.mts
5
+ */
6
+ /**
7
+ * @typedef {object} TransitionTarget
8
+ * @property {string} target
9
+ * @property {string} [description]
10
+ */
11
+ /**
12
+ * @typedef {object} StateNode
13
+ * @property {string} description
14
+ * @property {string} [type]
15
+ * @property {string} [initial]
16
+ * @property {Record<string, StateNode>} [states]
17
+ * @property {Record<string, TransitionTarget | TransitionTarget[]>} [on]
18
+ * @property {TransitionTarget} [onDone]
19
+ * @property {TransitionTarget} [onError]
20
+ * @property {Record<string, TransitionTarget>} [after]
21
+ * @property {string[]} [entry]
22
+ * @property {string[]} [exit]
23
+ * @property {string[]} [tags]
24
+ * @property {{ wayMachines?: string[] } & Record<string, unknown>} [meta]
25
+ */
26
+ /**
27
+ * @typedef {object} MachineDefinition
28
+ * @property {string} description
29
+ * @property {string} [category]
30
+ * @property {string} initial
31
+ * @property {Record<string, StateNode>} states
32
+ */
33
+ /**
34
+ * @typedef {object} YmaxSpec
35
+ * @property {string} [version]
36
+ * @property {Record<string, MachineDefinition>} machines
37
+ */
38
+ /** @type {YmaxSpec} */
39
+ export const ymaxMachine: YmaxSpec;
40
+ export default ymaxMachine;
41
+ export type TransitionTarget = {
42
+ target: string;
43
+ description?: string | undefined;
44
+ };
45
+ export type StateNode = {
46
+ description: string;
47
+ type?: string | undefined;
48
+ initial?: string | undefined;
49
+ states?: Record<string, StateNode> | undefined;
50
+ on?: Record<string, TransitionTarget | TransitionTarget[]> | undefined;
51
+ onDone?: TransitionTarget | undefined;
52
+ onError?: TransitionTarget | undefined;
53
+ after?: Record<string, TransitionTarget> | undefined;
54
+ entry?: string[] | undefined;
55
+ exit?: string[] | undefined;
56
+ tags?: string[] | undefined;
57
+ meta?: ({
58
+ wayMachines?: string[];
59
+ } & Record<string, unknown>) | undefined;
60
+ };
61
+ export type MachineDefinition = {
62
+ description: string;
63
+ category?: string | undefined;
64
+ initial: string;
65
+ states: Record<string, StateNode>;
66
+ };
67
+ export type YmaxSpec = {
68
+ version?: string | undefined;
69
+ machines: Record<string, MachineDefinition>;
70
+ };
71
+ //# sourceMappingURL=ymax-machine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ymax-machine.d.ts","sourceRoot":"","sources":["ymax-machine.js"],"names":[],"mappings":"AACA;;;;GAIG;AAEH;;;;GAIG;AAEH;;;;;;;;;;;;;;GAcG;AAEH;;;;;;GAMG;AAEH;;;;GAIG;AAEH,uBAAuB;AACvB,0BADW,QAAQ,CA8tCjB;;;YAhwCY,MAAM;;;;iBAMN,MAAM;;;;;;;;;;;;sBAWU,MAAM,EAAE;;;;iBAKxB,MAAM;;aAEN,MAAM;YACN,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC;;;;cAMzB,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC"}