@hyperscale0/hsx 5.7.0 → 6.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.
@@ -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,CAAiB;IACpF,CAAC,WAAW,EAAE,2oKAA2oK,CAAC;IAC1pK,CAAC,iBAAiB,EAAE,2sNAA2sN,CAAC;IAChuN,CAAC,YAAY,EAAE,+qHAA+qH,CAAC;IAC/rH,CAAC,eAAe,EAAE,qu9DAAqu9D,CAAC;IACxv9D,CAAC,eAAe,EAAE,01KAA01K,CAAC;IAC72K,CAAC,aAAa,EAAE,qwTAAqwT,CAAC;IACtxT,CAAC,iBAAiB,EAAE,s+TAAs+T,CAAC;IAC3/T,CAAC,WAAW,EAAE,u1VAAu1V,CAAC;IACt2V,CAAC,eAAe,EAAE,649CAA649C,CAAC;IACh69C,CAAC,aAAa,EAAE,85JAA85J,CAAC;IAC/6J,CAAC,YAAY,EAAE,o7SAAo7S,CAAC;IACp8S,CAAC,YAAY,EAAE,2jGAA2jG,CAAC;CAC5kG,CAAC,CAAC"}
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,CAAiB;IACpF,CAAC,WAAW,EAAE,2oKAA2oK,CAAC;IAC1pK,CAAC,iBAAiB,EAAE,2sNAA2sN,CAAC;IAChuN,CAAC,YAAY,EAAE,+qHAA+qH,CAAC;IAC/rH,CAAC,eAAe,EAAE,6m+DAA6m+D,CAAC;IACho+D,CAAC,eAAe,EAAE,01KAA01K,CAAC;IAC72K,CAAC,aAAa,EAAE,qwTAAqwT,CAAC;IACtxT,CAAC,iBAAiB,EAAE,woTAAwoT,CAAC;IAC7pT,CAAC,WAAW,EAAE,u1VAAu1V,CAAC;IACt2V,CAAC,eAAe,EAAE,+q2BAA+q2B,CAAC;IACls2B,CAAC,aAAa,EAAE,85JAA85J,CAAC;IAC/6J,CAAC,YAAY,EAAE,2jGAA2jG,CAAC;CAC5kG,CAAC,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const HSX_VERSION = "5.7.0";
1
+ export declare const HSX_VERSION = "6.0.0";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1,2 +1,2 @@
1
- export const HSX_VERSION = "5.7.0";
1
+ export const HSX_VERSION = "6.0.0";
2
2
  //# sourceMappingURL=version.js.map
package/docs/README.md CHANGED
@@ -157,8 +157,7 @@ and basis points. Fee and tax calculations round down. Split percentages sum to
157
157
  100%; the last declared recipient receives the rounding remainder. Finite
158
158
  schedules use positions 1 through n and put the division remainder in position 1.
159
159
  Tax binds `programTax`. Fees default to `programOperator`. Fine, recovery and
160
- residual destinations are party tunables. Unused `programFines` and `programCosts`
161
- bindings are omitted.
160
+ residual destinations are party tunables.
162
161
 
163
162
  Attached actions are private unless the attachment exposes them with
164
163
  `expose fund as sell`. Exposure grants no authority. Clock and parent actions
@@ -179,8 +178,7 @@ A missing binding refuses before money moves. Reference paths such as
179
178
 
180
179
  `account(buyer, claim, contra, "debt")` declares the borrower's claim contra account.
181
180
  Provider confirmation belongs on a reserved move with `boundary adapter`,
182
- followed by instruction-bound evidence and a post or void. External account
183
- mode is not supported.
181
+ followed by instruction-bound evidence and a post or void.
184
182
  Outstanding debt is an account balance. The library pairs cash repayment with
185
183
  claim reduction and represents receipts as immutable child records. Cash and loss
186
184
  shares round down; the declared residual account receives leftover minor units.
@@ -364,7 +362,7 @@ The compiler API is `compile(source)`. On success, `result.verdict` is `valid`
364
362
  and `result.artifacts` contains `document`, `costManifest` and `originMap`.
365
363
  On refusal, inspect `result.diagnostics`; no artifact is returned.
366
364
 
367
- The [header inventory](headers.md) is generated from the declarations. The
365
+ `hsx headers` prints the instrument inventory from the declarations. The
368
366
  [object example](../examples/library.hsx) shows authenticated role bindings.
369
367
  The [playground](../playground/index.html) compiles locally in the browser.
370
368
 
@@ -374,19 +372,18 @@ Read the instrument's states, time gates and moves before promising a money
374
372
  outcome. A compiler pass does not prove that required actions are exposed,
375
373
  adapters are bound, participants have funds, or the flow can finish.
376
374
 
377
- | Instrument | Behavior |
378
- | ------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
379
- | `financing.installments` | `share` allocates collected profit to a cash payable owned by `capital`. It does not itself pay operator income. |
380
- | `financing.limits` | `per_borrower` caps outstanding principal. Both borrower and portfolio limits must be approved before disbursement; attaching them does not approve them. |
381
- | `lending.round` | The target is the linked plan's principal. Closing requires commitments and held funds to equal that amount. |
382
- | `lending.distribution` | Cash distribution needs an eligible recorded settlement, `prepare_cash`, one share record per funded commitment, then `distribute_cash`. Attaching it moves nothing. |
383
- | `insurance.cover.slice` | `collect` credits premium net of commission to the insurer account. The tenant retains commission. `refund` returns both portions; claims reserve insurer funds. External settlement uses the boundary protocol. |
384
- | `travel.booking` | From `deposit_paid` or `paid`, early cancellation returns the full held balance, middle returns held balance minus deposit, and late has no buyer refund transfer. State, time and balance requirements still apply. A deposit-only early cancellation refunds the deposit; a deposit-only middle cancellation refunds zero. |
385
- | `financing.installments`, `savings.circle` | Supply explicit date lists when creating agreements. A term count does not generate a monthly calendar. Savings supports at most 60 distinct member seats. |
386
- | `escrow.hold` | `fund` takes the whole price. Financing into pending escrow collects the remaining down payment and adds capital principal at disbursement; `fund` is not a down-payment checkout. |
387
- | `escrow.hold` | Acceptance timeout enters `disputed` without paying the seller. Delivery and return verification belong to `payee`; rebinding it also changes who receives accepted funds. |
388
- | `financing.late_charge` | `fine` is a fixed money amount, not a percentage of overdue principal. |
389
- | `cards.card` | `spend_limit` is a per-authorization ceiling, not a monthly aggregate. |
375
+ | Instrument | Behavior |
376
+ | ------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
377
+ | `financing.installments` | `share` allocates collected profit to a cash payable owned by `capital`. It does not itself pay operator income. |
378
+ | `financing.limits` | `per_borrower` caps outstanding principal. Both borrower and portfolio limits must be approved before disbursement; attaching them does not approve them. |
379
+ | `lending.round` | The target is the linked plan's principal. Closing requires commitments and held funds to equal that amount. |
380
+ | `lending.distribution` | Cash distribution needs an eligible recorded settlement, `prepare_cash`, one share record per funded commitment, then `distribute_cash`. Attaching it moves nothing. |
381
+ | `insurance.cover.slice` | `collect` credits premium net of commission to the insurer account. The tenant retains commission. `refund` returns both portions; claims reserve insurer funds. External settlement uses the boundary protocol. |
382
+ | `financing.installments`, `savings.circle` | Supply explicit date lists when creating agreements. A term count does not generate a monthly calendar. Savings supports at most 60 distinct member seats. |
383
+ | `escrow.hold` | `fund` takes the whole price. Financing into pending escrow collects the remaining down payment and adds capital principal at disbursement; `fund` is not a down-payment checkout. |
384
+ | `escrow.hold` | Acceptance timeout enters `disputed` without paying the seller. Delivery and return verification belong to `payee`; rebinding it also changes who receives accepted funds. |
385
+ | `financing.late_charge` | `fine` is a fixed money amount, not a percentage of overdue principal. |
386
+ | `cards.card` | `spend_limit` is a per-authorization ceiling, not a monthly aggregate. |
390
387
 
391
388
  A seller-owned marketplace object can declare `entryActions: [create_order]`
392
389
  when `create_order` exposes an attachment's create action with its buyer bound
@@ -431,7 +428,7 @@ still need dates, agreement inputs, funded wallets and eligible settlements.
431
428
  References without an explicit creation input require one matching agreement on
432
429
  the object. In particular, lending distributions with multiple settlements or
433
430
  commitments need authored selectors before callers can choose among them.
434
- Insurance and travel need premium-slice records and actions. Savings needs dated
431
+ Insurance needs premium-slice records and actions. Savings needs dated
435
432
  contribution records. Read each header's creation and lifecycle requirements.
436
433
 
437
434
  ## Checkout and reversals
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperscale0/hsx",
3
- "version": "5.7.0",
3
+ "version": "6.0.0",
4
4
  "description": "The strictly typed HSX language: compile total financial programs into canonical UDL.",
5
5
  "keywords": [
6
6
  "hsx",
@@ -75,18 +75,17 @@
75
75
  "build": "bun run generate && tsc -p tsconfig.build.json && tsc -p playground/tsconfig.json && bun scripts/build-playground.ts",
76
76
  "typecheck": "tsc -p tsconfig.json",
77
77
  "test": "bun test test",
78
- "docs:build": "bun scripts/docs.ts",
79
78
  "postpack": "bun scripts/pack-exports.ts restore",
80
79
  "prepack": "bun run build && bun scripts/pack-exports.ts apply",
81
80
  "std:bundle": "bun scripts/bundle-std.ts",
82
- "generate": "bun run std:bundle && bun run examples:bundle && bun run docs:build",
81
+ "generate": "bun run std:bundle && bun run examples:bundle",
83
82
  "prepare": "bun run std:bundle && bun run examples:bundle",
84
83
  "check": "bun run typecheck && tsc -p playground/tsconfig.json && bun test test",
85
84
  "examples:bundle": "bun scripts/bundle-examples.ts"
86
85
  },
87
86
  "dependencies": {
88
- "@hyperscale0/adl": "1.0.0-beta.10",
89
- "@hyperscale0/udl": "4.9.0",
87
+ "@hyperscale0/adl": "1.0.0-beta.11",
88
+ "@hyperscale0/udl": "5.0.0",
90
89
  "fast-sha256": "1.3.0"
91
90
  },
92
91
  "devDependencies": {
@@ -98,5 +97,5 @@
98
97
  "Amir Ayub",
99
98
  "Sara AlBakaawi"
100
99
  ],
101
- "gitHead": "e1e36df7b7182c7e22264414c622076a044e974a"
100
+ "gitHead": "08d727b912abcec6b6dcf3ed2ec54ec7643e5aa4"
102
101
  }