@hyperscale0/hsx 2.0.1 → 2.0.3
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/CHANGELOG.md +20 -0
- package/dist/src/cli.d.ts +1 -1
- package/dist/src/std-bundle.js +19 -19
- package/dist/src/std-bundle.js.map +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/docs/guide/01-first-program.md +1 -1
- package/docs/llms-full.txt +43 -38
- package/docs/llms.txt +2 -2
- package/docs/reference/cli.md +2 -2
- package/docs/reference/diagnostics.md +1 -1
- package/docs/reference/grammar.md +1 -1
- package/docs/reference/std/advance.md +1 -1
- package/docs/reference/std/cancellable_booking.md +1 -1
- package/docs/reference/std/captured_payment.md +1 -1
- package/docs/reference/std/conditional_disbursement.md +1 -1
- package/docs/reference/std/credit_facility.md +1 -1
- package/docs/reference/std/held_payment.md +41 -36
- package/docs/reference/std/instant_transfer.md +1 -1
- package/docs/reference/std/metered.md +1 -1
- package/docs/reference/std/pooled_split.md +1 -1
- package/docs/reference/std/premium_forward.md +1 -1
- package/docs/reference/std/reconciled_payout.md +1 -1
- package/docs/reference/std/recurring_collection.md +1 -1
- package/docs/reference/std/rotating_pool.md +1 -1
- package/docs/reference/std/scheduled.md +1 -1
- package/docs/reference/std/security_deposit.md +1 -1
- package/docs/reference/std/settlement_batch.md +1 -1
- package/docs/reference/std/swap.md +1 -1
- package/docs/reference/std/threshold_pool.md +1 -1
- package/docs/reference/std/weighted_distribution.md +1 -1
- package/docs/reference/types.md +1 -1
- package/docs/reference/udl-output.md +1 -1
- package/package.json +3 -3
- package/skills/hsx/SKILL.md +2 -2
- package/src/std-bundle.ts +19 -19
- package/src/version.ts +1 -1
- package/std/money_flows/advance.hsx +45 -0
- package/std/money_flows/cancellable_booking.hsx +45 -0
- package/std/money_flows/captured_payment.hsx +55 -0
- package/std/money_flows/conditional_disbursement.hsx +46 -0
- package/std/money_flows/credit_facility.hsx +57 -0
- package/std/money_flows/held_payment.hsx +150 -3
- package/std/money_flows/instant_transfer.hsx +42 -0
- package/std/money_flows/metered.hsx +41 -0
- package/std/money_flows/pooled_split.hsx +41 -0
- package/std/money_flows/premium_forward.hsx +51 -0
- package/std/money_flows/reconciled_payout.hsx +42 -0
- package/std/money_flows/recurring_collection.hsx +45 -0
- package/std/money_flows/rotating_pool.hsx +51 -0
- package/std/money_flows/scheduled.hsx +53 -0
- package/std/money_flows/security_deposit.hsx +58 -0
- package/std/money_flows/settlement_batch.hsx +51 -0
- package/std/money_flows/swap.hsx +53 -0
- package/std/money_flows/threshold_pool.hsx +51 -0
- package/std/money_flows/weighted_distribution.hsx +54 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"std-bundle.js","sourceRoot":"","sources":["../../src/std-bundle.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAEpE,MAAM,CAAC,MAAM,iBAAiB,GAAgC,IAAI,GAAG,CAGnE;IACA;QACE,cAAc;QACd,s/RAAs/R;KACv/R;IACD;QACE,yBAAyB;QACzB,
|
|
1
|
+
{"version":3,"file":"std-bundle.js","sourceRoot":"","sources":["../../src/std-bundle.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAEpE,MAAM,CAAC,MAAM,iBAAiB,GAAgC,IAAI,GAAG,CAGnE;IACA;QACE,cAAc;QACd,s/RAAs/R;KACv/R;IACD;QACE,yBAAyB;QACzB,muTAAmuT;KACpuT;IACD;QACE,qCAAqC;QACrC,20TAA20T;KAC50T;IACD;QACE,kCAAkC;QAClC,sgeAAsge;KACvge;IACD;QACE,0CAA0C;QAC1C,+tSAA+tS;KAChuS;IACD;QACE,iCAAiC;QACjC,uwRAAuwR;KACxwR;IACD;QACE,8BAA8B;QAC9B,m3xEAAm3xE;KACp3xE;IACD;QACE,uBAAuB;QACvB,oGAAoG;KACrG;IACD;QACE,kCAAkC;QAClC,kvfAAkvf;KACnvf;IACD;QACE,yBAAyB;QACzB,w8IAAw8I;KACz8I;IACD;QACE,8BAA8B;QAC9B,y9NAAy9N;KAC19N;IACD;QACE,iCAAiC;QACjC,2ocAA2oc;KAC5oc;IACD;QACE,mCAAmC;QACnC,m6RAAm6R;KACp6R;IACD;QACE,sCAAsC;QACtC,yrGAAyrG;KAC1rG;IACD;QACE,+BAA+B;QAC/B,6nvBAA6nvB;KAC9nvB;IACD;QACE,2BAA2B;QAC3B,63kCAA63kC;KAC93kC;IACD;QACE,kCAAkC;QAClC,wteAAwte;KACzte;IACD;QACE,kCAAkC;QAClC,modAAmod;KACpod;IACD;QACE,sBAAsB;QACtB,8qtCAA8qtC;KAC/qtC;IACD;QACE,gCAAgC;QAChC,ytjBAAytjB;KAC1tjB;IACD;QACE,uCAAuC;QACvC,y7aAAy7a;KAC17a;CACF,CAAC,CAAC"}
|
package/dist/src/version.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Package version reported by the command line. */
|
|
2
|
-
export declare const HSX_VERSION = "2.0.
|
|
2
|
+
export declare const HSX_VERSION = "2.0.3";
|
|
3
3
|
/** Canonical UDL contract version emitted by this compiler. */
|
|
4
4
|
export declare const HSX_TARGET_UDL_VERSION = 1;
|
|
5
5
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/src/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Package version reported by the command line. */
|
|
2
|
-
export const HSX_VERSION = "2.0.
|
|
2
|
+
export const HSX_VERSION = "2.0.3";
|
|
3
3
|
/** Canonical UDL contract version emitted by this compiler. */
|
|
4
4
|
export const HSX_TARGET_UDL_VERSION = 1;
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
|
@@ -21,4 +21,4 @@ settlement tip = instant_transfer {
|
|
|
21
21
|
|
|
22
22
|
A port declares a decision that an external caller may supply. The port names the parties allowed to answer and may define a typed input shape. Use a port only when the selected instrument accepts a condition parameter.
|
|
23
23
|
|
|
24
|
-
After package installation, run `npx hsx check product.hsx` while editing and `npx hsx build product.hsx --out product.udl.json` when the program passes. In a repository checkout, run `bun install` once, then use `bun run bin/hsx.ts check product.hsx` and `bun run bin/hsx.ts build product.hsx --out product.udl.json`.
|
|
24
|
+
After package installation, run `npx @hyperscale0/hsx check product.hsx` while editing and `npx @hyperscale0/hsx build product.hsx --out product.udl.json` when the program passes. In a repository checkout, run `bun install` once, then use `bun run bin/hsx.ts check product.hsx` and `bun run bin/hsx.ts build product.hsx --out product.udl.json`.
|
package/docs/llms-full.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/docs/build.ts for HSX 2.0.
|
|
1
|
+
<!-- Generated by scripts/docs/build.ts for HSX 2.0.3. Do not edit. -->
|
|
2
2
|
|
|
3
3
|
# HSX full documentation
|
|
4
4
|
|
|
@@ -25,7 +25,7 @@ settlement tip = instant_transfer {
|
|
|
25
25
|
|
|
26
26
|
A port declares a decision that an external caller may supply. The port names the parties allowed to answer and may define a typed input shape. Use a port only when the selected instrument accepts a condition parameter.
|
|
27
27
|
|
|
28
|
-
After package installation, run `npx hsx check product.hsx` while editing and `npx hsx build product.hsx --out product.udl.json` when the program passes. In a repository checkout, run `bun install` once, then use `bun run bin/hsx.ts check product.hsx` and `bun run bin/hsx.ts build product.hsx --out product.udl.json`.
|
|
28
|
+
After package installation, run `npx @hyperscale0/hsx check product.hsx` while editing and `npx @hyperscale0/hsx build product.hsx --out product.udl.json` when the program passes. In a repository checkout, run `bun install` once, then use `bun run bin/hsx.ts check product.hsx` and `bun run bin/hsx.ts build product.hsx --out product.udl.json`.
|
|
29
29
|
|
|
30
30
|
# Money
|
|
31
31
|
|
|
@@ -374,7 +374,7 @@ Exit code `0` means the command accepted the program. Exit code `1` means compil
|
|
|
374
374
|
# CLI
|
|
375
375
|
|
|
376
376
|
```text
|
|
377
|
-
hsx 2.0.
|
|
377
|
+
hsx 2.0.3, the HSX compiler
|
|
378
378
|
|
|
379
379
|
Usage:
|
|
380
380
|
hsx check <file.hsx> [--strict]
|
|
@@ -1467,6 +1467,8 @@ Source: [`std/money_flows/held_payment.hsx`](../../../std/money_flows/held_payme
|
|
|
1467
1467
|
- `reference: optional<text>`
|
|
1468
1468
|
- `upstream: optional<ref>`
|
|
1469
1469
|
- `id_prefix_override: optional<text>`
|
|
1470
|
+
- `cancel_charge_bps: optional<integer>`
|
|
1471
|
+
- `cancel_offer_life: optional<text>`
|
|
1470
1472
|
|
|
1471
1473
|
## Decision ports
|
|
1472
1474
|
|
|
@@ -1474,41 +1476,44 @@ Source: [`std/money_flows/held_payment.hsx`](../../../std/money_flows/held_payme
|
|
|
1474
1476
|
|
|
1475
1477
|
## Actions and clauses
|
|
1476
1478
|
|
|
1477
|
-
| Action
|
|
1478
|
-
|
|
|
1479
|
-
| `fund_piece_2`
|
|
1480
|
-
| `fund_piece_3`
|
|
1481
|
-
| `collect_service_fee`
|
|
1482
|
-
| `release_piece_2`
|
|
1483
|
-
| `release_piece_3`
|
|
1484
|
-
| `refund_piece_2`
|
|
1485
|
-
| `refund_piece_3`
|
|
1486
|
-
| `unfund_piece_1`
|
|
1487
|
-
| `unfund_piece_2`
|
|
1488
|
-
| `unfund_piece_3`
|
|
1489
|
-
| `create`
|
|
1490
|
-
| `fund_piece_1`
|
|
1491
|
-
| `release_name`
|
|
1492
|
-
| `release_on_deadline`
|
|
1493
|
-
| `cancel`
|
|
1494
|
-
| `
|
|
1495
|
-
| `
|
|
1496
|
-
| `
|
|
1497
|
-
| `fund_piece_2`
|
|
1498
|
-
| `release_piece_2`
|
|
1499
|
-
| `
|
|
1500
|
-
| `
|
|
1501
|
-
| `
|
|
1502
|
-
| `
|
|
1503
|
-
| `
|
|
1504
|
-
| `
|
|
1505
|
-
| `
|
|
1506
|
-
| `
|
|
1507
|
-
| `
|
|
1508
|
-
| `
|
|
1509
|
-
| `
|
|
1510
|
-
| `
|
|
1511
|
-
| `
|
|
1479
|
+
| Action | Clauses lowered |
|
|
1480
|
+
| ---------------------------- | ------------------------------------------------------------------------------------------------------ |
|
|
1481
|
+
| `fund_piece_2` | `agent description`, `moves`, `sandbox failure point`, `steps`, `summary` |
|
|
1482
|
+
| `fund_piece_3` | `agent description`, `moves`, `sandbox failure point`, `steps`, `summary` |
|
|
1483
|
+
| `collect_service_fee` | `agent description`, `moves`, `steps`, `summary` |
|
|
1484
|
+
| `release_piece_2` | `agent description`, `moves`, `steps`, `summary` |
|
|
1485
|
+
| `release_piece_3` | `agent description`, `moves`, `steps`, `summary` |
|
|
1486
|
+
| `refund_piece_2` | `agent description`, `moves`, `steps`, `summary` |
|
|
1487
|
+
| `refund_piece_3` | `agent description`, `moves`, `steps`, `summary` |
|
|
1488
|
+
| `unfund_piece_1` | `agent description`, `moves`, `steps`, `summary` |
|
|
1489
|
+
| `unfund_piece_2` | `agent description`, `moves`, `steps`, `summary` |
|
|
1490
|
+
| `unfund_piece_3` | `agent description`, `moves`, `steps`, `summary` |
|
|
1491
|
+
| `create` | `agent description`, `moves`, `steps`, `summary` |
|
|
1492
|
+
| `fund_piece_1` | `agent description`, `moves`, `sandbox failure point`, `steps`, `summary` |
|
|
1493
|
+
| `release_name` | `agent description`, `deadline`, `input`, `moves`, `port`, `sandbox failure point`, `steps`, `summary` |
|
|
1494
|
+
| `release_on_deadline` | `due`, `moves`, `steps`, `summary` |
|
|
1495
|
+
| `cancel` | `agent description`, `deadline`, `moves`, `steps`, `summary` |
|
|
1496
|
+
| `quote_cancellation` | `agent description`, `deadline`, `moves`, `quote`, `steps`, `summary` |
|
|
1497
|
+
| `cancel` | `agent description`, `commit`, `deadline`, `moves`, `steps`, `summary` |
|
|
1498
|
+
| `retain_cancellation_charge` | `agent description`, `moves`, `steps`, `summary` |
|
|
1499
|
+
| `fund_piece_2` | `agent description`, `moves`, `sandbox failure point`, `steps`, `summary` |
|
|
1500
|
+
| `release_piece_2` | `agent description`, `moves`, `steps`, `summary` |
|
|
1501
|
+
| `unfund_piece_1` | `agent description`, `moves`, `steps`, `summary` |
|
|
1502
|
+
| `fund_piece_2` | `agent description`, `moves`, `sandbox failure point`, `steps`, `summary` |
|
|
1503
|
+
| `release_piece_2` | `agent description`, `moves`, `steps`, `summary` |
|
|
1504
|
+
| `refund_piece_2` | `agent description`, `moves`, `steps`, `summary` |
|
|
1505
|
+
| `unfund_piece_1` | `agent description`, `moves`, `steps`, `summary` |
|
|
1506
|
+
| `abandon` | `agent description`, `moves`, `steps`, `summary` |
|
|
1507
|
+
| `dispute` | `agent description`, `deadline`, `description`, `moves`, `steps`, `summary` |
|
|
1508
|
+
| `resume` | `agent description`, `description`, `moves`, `steps`, `summary` |
|
|
1509
|
+
| `create` | `agent description`, `moves`, `steps`, `summary` |
|
|
1510
|
+
| `fund` | `agent description`, `moves`, `sandbox failure point`, `steps`, `summary` |
|
|
1511
|
+
| `release_action` | `agent description`, `deadline`, `moves`, `port`, `sandbox failure point`, `steps`, `summary` |
|
|
1512
|
+
| `release_on_deadline` | `due`, `event name`, `moves`, `steps`, `summary` |
|
|
1513
|
+
| `cancel` | `agent description`, `deadline`, `event name`, `moves`, `steps`, `summary` |
|
|
1514
|
+
| `abandon` | `agent description`, `moves`, `steps`, `summary` |
|
|
1515
|
+
| `dispute` | `agent description`, `deadline`, `description`, `moves`, `steps`, `summary` |
|
|
1516
|
+
| `resume` | `agent description`, `description`, `moves`, `steps`, `summary` |
|
|
1512
1517
|
|
|
1513
1518
|
# instant_transfer
|
|
1514
1519
|
|
package/docs/llms.txt
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
<!-- Generated by scripts/docs/build.ts for HSX 2.0.
|
|
1
|
+
<!-- Generated by scripts/docs/build.ts for HSX 2.0.3. Do not edit. -->
|
|
2
2
|
|
|
3
3
|
# HSX documentation
|
|
4
4
|
|
|
5
|
-
> Repository guide and generated compiler reference for HSX 2.0.
|
|
5
|
+
> Repository guide and generated compiler reference for HSX 2.0.3.
|
|
6
6
|
|
|
7
7
|
## Guide
|
|
8
8
|
|
package/docs/reference/cli.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
<!-- Generated by scripts/docs/build.ts for HSX 2.0.
|
|
1
|
+
<!-- Generated by scripts/docs/build.ts for HSX 2.0.3. Do not edit. -->
|
|
2
2
|
|
|
3
3
|
# CLI
|
|
4
4
|
|
|
5
5
|
```text
|
|
6
|
-
hsx 2.0.
|
|
6
|
+
hsx 2.0.3, the HSX compiler
|
|
7
7
|
|
|
8
8
|
Usage:
|
|
9
9
|
hsx check <file.hsx> [--strict]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/docs/build.ts for HSX 2.0.
|
|
1
|
+
<!-- Generated by scripts/docs/build.ts for HSX 2.0.3. Do not edit. -->
|
|
2
2
|
|
|
3
3
|
# held_payment
|
|
4
4
|
|
|
@@ -24,6 +24,8 @@ Source: [`std/money_flows/held_payment.hsx`](../../../std/money_flows/held_payme
|
|
|
24
24
|
- `reference: optional<text>`
|
|
25
25
|
- `upstream: optional<ref>`
|
|
26
26
|
- `id_prefix_override: optional<text>`
|
|
27
|
+
- `cancel_charge_bps: optional<integer>`
|
|
28
|
+
- `cancel_offer_life: optional<text>`
|
|
27
29
|
|
|
28
30
|
## Decision ports
|
|
29
31
|
|
|
@@ -31,38 +33,41 @@ Source: [`std/money_flows/held_payment.hsx`](../../../std/money_flows/held_payme
|
|
|
31
33
|
|
|
32
34
|
## Actions and clauses
|
|
33
35
|
|
|
34
|
-
| Action
|
|
35
|
-
|
|
|
36
|
-
| `fund_piece_2`
|
|
37
|
-
| `fund_piece_3`
|
|
38
|
-
| `collect_service_fee`
|
|
39
|
-
| `release_piece_2`
|
|
40
|
-
| `release_piece_3`
|
|
41
|
-
| `refund_piece_2`
|
|
42
|
-
| `refund_piece_3`
|
|
43
|
-
| `unfund_piece_1`
|
|
44
|
-
| `unfund_piece_2`
|
|
45
|
-
| `unfund_piece_3`
|
|
46
|
-
| `create`
|
|
47
|
-
| `fund_piece_1`
|
|
48
|
-
| `release_name`
|
|
49
|
-
| `release_on_deadline`
|
|
50
|
-
| `cancel`
|
|
51
|
-
| `
|
|
52
|
-
| `
|
|
53
|
-
| `
|
|
54
|
-
| `fund_piece_2`
|
|
55
|
-
| `release_piece_2`
|
|
56
|
-
| `
|
|
57
|
-
| `
|
|
58
|
-
| `
|
|
59
|
-
| `
|
|
60
|
-
| `
|
|
61
|
-
| `
|
|
62
|
-
| `
|
|
63
|
-
| `
|
|
64
|
-
| `
|
|
65
|
-
| `
|
|
66
|
-
| `
|
|
67
|
-
| `
|
|
68
|
-
| `
|
|
36
|
+
| Action | Clauses lowered |
|
|
37
|
+
| ---------------------------- | ------------------------------------------------------------------------------------------------------ |
|
|
38
|
+
| `fund_piece_2` | `agent description`, `moves`, `sandbox failure point`, `steps`, `summary` |
|
|
39
|
+
| `fund_piece_3` | `agent description`, `moves`, `sandbox failure point`, `steps`, `summary` |
|
|
40
|
+
| `collect_service_fee` | `agent description`, `moves`, `steps`, `summary` |
|
|
41
|
+
| `release_piece_2` | `agent description`, `moves`, `steps`, `summary` |
|
|
42
|
+
| `release_piece_3` | `agent description`, `moves`, `steps`, `summary` |
|
|
43
|
+
| `refund_piece_2` | `agent description`, `moves`, `steps`, `summary` |
|
|
44
|
+
| `refund_piece_3` | `agent description`, `moves`, `steps`, `summary` |
|
|
45
|
+
| `unfund_piece_1` | `agent description`, `moves`, `steps`, `summary` |
|
|
46
|
+
| `unfund_piece_2` | `agent description`, `moves`, `steps`, `summary` |
|
|
47
|
+
| `unfund_piece_3` | `agent description`, `moves`, `steps`, `summary` |
|
|
48
|
+
| `create` | `agent description`, `moves`, `steps`, `summary` |
|
|
49
|
+
| `fund_piece_1` | `agent description`, `moves`, `sandbox failure point`, `steps`, `summary` |
|
|
50
|
+
| `release_name` | `agent description`, `deadline`, `input`, `moves`, `port`, `sandbox failure point`, `steps`, `summary` |
|
|
51
|
+
| `release_on_deadline` | `due`, `moves`, `steps`, `summary` |
|
|
52
|
+
| `cancel` | `agent description`, `deadline`, `moves`, `steps`, `summary` |
|
|
53
|
+
| `quote_cancellation` | `agent description`, `deadline`, `moves`, `quote`, `steps`, `summary` |
|
|
54
|
+
| `cancel` | `agent description`, `commit`, `deadline`, `moves`, `steps`, `summary` |
|
|
55
|
+
| `retain_cancellation_charge` | `agent description`, `moves`, `steps`, `summary` |
|
|
56
|
+
| `fund_piece_2` | `agent description`, `moves`, `sandbox failure point`, `steps`, `summary` |
|
|
57
|
+
| `release_piece_2` | `agent description`, `moves`, `steps`, `summary` |
|
|
58
|
+
| `unfund_piece_1` | `agent description`, `moves`, `steps`, `summary` |
|
|
59
|
+
| `fund_piece_2` | `agent description`, `moves`, `sandbox failure point`, `steps`, `summary` |
|
|
60
|
+
| `release_piece_2` | `agent description`, `moves`, `steps`, `summary` |
|
|
61
|
+
| `refund_piece_2` | `agent description`, `moves`, `steps`, `summary` |
|
|
62
|
+
| `unfund_piece_1` | `agent description`, `moves`, `steps`, `summary` |
|
|
63
|
+
| `abandon` | `agent description`, `moves`, `steps`, `summary` |
|
|
64
|
+
| `dispute` | `agent description`, `deadline`, `description`, `moves`, `steps`, `summary` |
|
|
65
|
+
| `resume` | `agent description`, `description`, `moves`, `steps`, `summary` |
|
|
66
|
+
| `create` | `agent description`, `moves`, `steps`, `summary` |
|
|
67
|
+
| `fund` | `agent description`, `moves`, `sandbox failure point`, `steps`, `summary` |
|
|
68
|
+
| `release_action` | `agent description`, `deadline`, `moves`, `port`, `sandbox failure point`, `steps`, `summary` |
|
|
69
|
+
| `release_on_deadline` | `due`, `event name`, `moves`, `steps`, `summary` |
|
|
70
|
+
| `cancel` | `agent description`, `deadline`, `event name`, `moves`, `steps`, `summary` |
|
|
71
|
+
| `abandon` | `agent description`, `moves`, `steps`, `summary` |
|
|
72
|
+
| `dispute` | `agent description`, `deadline`, `description`, `moves`, `steps`, `summary` |
|
|
73
|
+
| `resume` | `agent description`, `description`, `moves`, `steps`, `summary` |
|
package/docs/reference/types.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperscale0/hsx",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "The strictly typed HSX language: compile total financial programs into canonical UDL.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hsx",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"typecheck": "tsc -p tsconfig.json"
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"@hyperscale0/udl": "2.0.
|
|
88
|
+
"@hyperscale0/udl": "2.0.3"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
91
|
"bun-types": "1.4.2",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"Amir Ayub",
|
|
97
97
|
"Sara AlBakaawi"
|
|
98
98
|
],
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "d9200bc6856f30811e8aa2888c44fdd045424120"
|
|
100
100
|
}
|
package/skills/hsx/SKILL.md
CHANGED
|
@@ -11,7 +11,7 @@ Use this skill when a task creates or changes an `.hsx` program, chooses a money
|
|
|
11
11
|
|
|
12
12
|
One file declares one `program`. Declare parties and assets before using them. Import money flows from `std/money_flows`. Apply each selected instrument as a `settlement`, and declare every decision port it names. A program may also declare general instruments and subjects.
|
|
13
13
|
|
|
14
|
-
Start with [the first-program guide](https://github.com/hyperscale0/hyperscale-hsx/blob/main/docs/guide/01-first-program.md). Read the generated [grammar](https://github.com/hyperscale0/hyperscale-hsx/blob/main/docs/reference/grammar.md), [types](https://github.com/hyperscale0/hyperscale-hsx/blob/main/docs/reference/types.md), and [money flows reference](https://github.com/hyperscale0/hyperscale-hsx/tree/main/docs/reference/std) for the exact surface.
|
|
14
|
+
Start with [the first-program guide](https://github.com/hyperscale0/hyperscale-hsx/blob/main/docs/guide/01-first-program.md). Read the [instruments](https://github.com/hyperscale0/hyperscale-hsx/blob/main/docs/guide/03-instruments.md), [lifecycles](https://github.com/hyperscale0/hyperscale-hsx/blob/main/docs/guide/04-lifecycles.md), [composition](https://github.com/hyperscale0/hyperscale-hsx/blob/main/docs/guide/07-composition.md), and [writing a module](https://github.com/hyperscale0/hyperscale-hsx/blob/main/docs/guide/08-writing-a-module.md) chapters for instrument architecture. Read the generated [grammar](https://github.com/hyperscale0/hyperscale-hsx/blob/main/docs/reference/grammar.md), [types](https://github.com/hyperscale0/hyperscale-hsx/blob/main/docs/reference/types.md), and [money flows reference](https://github.com/hyperscale0/hyperscale-hsx/tree/main/docs/reference/std) for the exact surface.
|
|
15
15
|
|
|
16
16
|
## Choose a money flow
|
|
17
17
|
|
|
@@ -39,7 +39,7 @@ The money flows are demonstrated below. The marker before each program lets the
|
|
|
39
39
|
|
|
40
40
|
## Diagnostic loop
|
|
41
41
|
|
|
42
|
-
Run `hsx check` after each coherent edit. Read the first error code, open the [diagnostics reference](https://github.com/hyperscale0/hyperscale-hsx/blob/main/docs/reference/diagnostics.md), apply the catalog fix, and compile again. Match tools on the stable `HSX####` code, not the message. Never patch emitted UDL to bypass a refusal.
|
|
42
|
+
Run `hsx check` after each coherent edit. Read the first error code, open the [diagnostics guide](https://github.com/hyperscale0/hyperscale-hsx/blob/main/docs/guide/10-diagnostics.md) and [diagnostics reference](https://github.com/hyperscale0/hyperscale-hsx/blob/main/docs/reference/diagnostics.md), apply the catalog fix, and compile again. Match tools on the stable `HSX####` code, not the message. Never patch emitted UDL to bypass a refusal.
|
|
43
43
|
|
|
44
44
|
## Money rules
|
|
45
45
|
|