@genesislcap/ai-assistant 15.10.6 → 15.11.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/dist/ai-assistant.api.json +91 -0
- package/dist/ai-assistant.d.ts +25 -0
- package/dist/custom-elements.json +1722 -1688
- package/dist/dts/components/settings-modal/settings-modal.styles.d.ts.map +1 -1
- package/dist/dts/components/settings-modal/settings-modal.template.d.ts +1 -1
- package/dist/dts/components/settings-modal/settings-modal.template.d.ts.map +1 -1
- package/dist/dts/main/main.d.ts +25 -0
- package/dist/dts/main/main.d.ts.map +1 -1
- package/dist/dts/react.d.ts +9 -8
- package/dist/esm/components/settings-modal/settings-modal.styles.js +22 -0
- package/dist/esm/components/settings-modal/settings-modal.template.js +25 -4
- package/dist/esm/components/settings-modal/settings-modal.template.test.js +1 -1
- package/dist/esm/main/blocked-state.test.js +1 -0
- package/dist/esm/main/budget-meter.test.js +42 -0
- package/dist/esm/main/main.js +49 -0
- package/dist/react.cjs +11 -6
- package/dist/react.mjs +10 -5
- package/package.json +17 -17
- package/src/components/settings-modal/settings-modal.styles.ts +22 -0
- package/src/components/settings-modal/settings-modal.template.test.ts +1 -1
- package/src/components/settings-modal/settings-modal.template.ts +27 -2
- package/src/main/blocked-state.test.ts +1 -0
- package/src/main/budget-meter.test.ts +50 -0
- package/src/main/main.ts +47 -0
|
@@ -7753,6 +7753,36 @@
|
|
|
7753
7753
|
"isProtected": false,
|
|
7754
7754
|
"isAbstract": false
|
|
7755
7755
|
},
|
|
7756
|
+
{
|
|
7757
|
+
"kind": "Property",
|
|
7758
|
+
"canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#budgetMeterLastFedAt:member",
|
|
7759
|
+
"docComment": "/**\n * When budget figures last arrived — from the host's {@link FoundationAiAssistant.setVendorBudget} or the wall latch's own feed — as epoch ms; `null` until the first feed.\n *\n * ELEMENT state, not slice state, on purpose: the reducer is idempotent by value (an unchanged re-feed must not re-render the meter rows), but \"when was this fetched\" must move on every feed, changed figures or not — a refresh that confirms the same dollars is still a refresh. Only the toolbar label observes this, so a stamp re-renders one span, not the rows.\n */\n",
|
|
7760
|
+
"excerptTokens": [
|
|
7761
|
+
{
|
|
7762
|
+
"kind": "Content",
|
|
7763
|
+
"text": "budgetMeterLastFedAt: "
|
|
7764
|
+
},
|
|
7765
|
+
{
|
|
7766
|
+
"kind": "Content",
|
|
7767
|
+
"text": "number | null"
|
|
7768
|
+
},
|
|
7769
|
+
{
|
|
7770
|
+
"kind": "Content",
|
|
7771
|
+
"text": ";"
|
|
7772
|
+
}
|
|
7773
|
+
],
|
|
7774
|
+
"isReadonly": false,
|
|
7775
|
+
"isOptional": false,
|
|
7776
|
+
"releaseTag": "Beta",
|
|
7777
|
+
"name": "budgetMeterLastFedAt",
|
|
7778
|
+
"propertyTypeTokenRange": {
|
|
7779
|
+
"startIndex": 1,
|
|
7780
|
+
"endIndex": 2
|
|
7781
|
+
},
|
|
7782
|
+
"isStatic": false,
|
|
7783
|
+
"isProtected": false,
|
|
7784
|
+
"isAbstract": false
|
|
7785
|
+
},
|
|
7756
7786
|
{
|
|
7757
7787
|
"kind": "Property",
|
|
7758
7788
|
"canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#busy:member",
|
|
@@ -10485,6 +10515,37 @@
|
|
|
10485
10515
|
"isAbstract": false,
|
|
10486
10516
|
"name": "removeCostSessionFromHistory"
|
|
10487
10517
|
},
|
|
10518
|
+
{
|
|
10519
|
+
"kind": "Method",
|
|
10520
|
+
"canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#requestBudgetRefresh:member(1)",
|
|
10521
|
+
"docComment": "/**\n * Ask the host to re-fetch budget figures now (GENC-1464 refresh affordance).\n *\n * The element cannot fetch — the meter is host-fed by design — so this emits `budget-refresh-requested` and the host answers with the same fetch that already feeds {@link FoundationAiAssistant.setVendorBudget} (Create's handler coalesces in-flight fetches, so a spammed button costs one request). Fired by the meter's refresh button and on settings-modal open, so the figures are fresh exactly when someone is looking at them. Fires unconditionally: a host without a listener simply keeps the per-turn cadence.\n */\n",
|
|
10522
|
+
"excerptTokens": [
|
|
10523
|
+
{
|
|
10524
|
+
"kind": "Content",
|
|
10525
|
+
"text": "requestBudgetRefresh(): "
|
|
10526
|
+
},
|
|
10527
|
+
{
|
|
10528
|
+
"kind": "Content",
|
|
10529
|
+
"text": "void"
|
|
10530
|
+
},
|
|
10531
|
+
{
|
|
10532
|
+
"kind": "Content",
|
|
10533
|
+
"text": ";"
|
|
10534
|
+
}
|
|
10535
|
+
],
|
|
10536
|
+
"isStatic": false,
|
|
10537
|
+
"returnTypeTokenRange": {
|
|
10538
|
+
"startIndex": 1,
|
|
10539
|
+
"endIndex": 2
|
|
10540
|
+
},
|
|
10541
|
+
"releaseTag": "Beta",
|
|
10542
|
+
"isProtected": false,
|
|
10543
|
+
"overloadIndex": 1,
|
|
10544
|
+
"parameters": [],
|
|
10545
|
+
"isOptional": false,
|
|
10546
|
+
"isAbstract": false,
|
|
10547
|
+
"name": "requestBudgetRefresh"
|
|
10548
|
+
},
|
|
10488
10549
|
{
|
|
10489
10550
|
"kind": "Property",
|
|
10490
10551
|
"canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#resolvedCostHistory:member",
|
|
@@ -11207,6 +11268,36 @@
|
|
|
11207
11268
|
"isProtected": false,
|
|
11208
11269
|
"isAbstract": false
|
|
11209
11270
|
},
|
|
11271
|
+
{
|
|
11272
|
+
"kind": "Property",
|
|
11273
|
+
"canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#settingsBudgetUpdatedLabel:member",
|
|
11274
|
+
"docComment": "/**\n * \"Updated HH:MM:SS\" for the meter toolbar, or `undefined` before any feed.\n */\n",
|
|
11275
|
+
"excerptTokens": [
|
|
11276
|
+
{
|
|
11277
|
+
"kind": "Content",
|
|
11278
|
+
"text": "get settingsBudgetUpdatedLabel(): "
|
|
11279
|
+
},
|
|
11280
|
+
{
|
|
11281
|
+
"kind": "Content",
|
|
11282
|
+
"text": "string | undefined"
|
|
11283
|
+
},
|
|
11284
|
+
{
|
|
11285
|
+
"kind": "Content",
|
|
11286
|
+
"text": ";"
|
|
11287
|
+
}
|
|
11288
|
+
],
|
|
11289
|
+
"isReadonly": true,
|
|
11290
|
+
"isOptional": false,
|
|
11291
|
+
"releaseTag": "Beta",
|
|
11292
|
+
"name": "settingsBudgetUpdatedLabel",
|
|
11293
|
+
"propertyTypeTokenRange": {
|
|
11294
|
+
"startIndex": 1,
|
|
11295
|
+
"endIndex": 2
|
|
11296
|
+
},
|
|
11297
|
+
"isStatic": false,
|
|
11298
|
+
"isProtected": false,
|
|
11299
|
+
"isAbstract": false
|
|
11300
|
+
},
|
|
11210
11301
|
{
|
|
11211
11302
|
"kind": "Property",
|
|
11212
11303
|
"canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#settingsCogVisible:member",
|
package/dist/ai-assistant.d.ts
CHANGED
|
@@ -2649,6 +2649,31 @@ export declare class FoundationAiAssistant extends GenesisElement {
|
|
|
2649
2649
|
budgetUsd: number;
|
|
2650
2650
|
spentUsd: number;
|
|
2651
2651
|
} | null): boolean;
|
|
2652
|
+
/**
|
|
2653
|
+
* When budget figures last arrived — from the host's {@link FoundationAiAssistant.setVendorBudget}
|
|
2654
|
+
* or the wall latch's own feed — as epoch ms; `null` until the first feed.
|
|
2655
|
+
*
|
|
2656
|
+
* ELEMENT state, not slice state, on purpose: the reducer is idempotent by
|
|
2657
|
+
* value (an unchanged re-feed must not re-render the meter rows), but "when
|
|
2658
|
+
* was this fetched" must move on every feed, changed figures or not — a
|
|
2659
|
+
* refresh that confirms the same dollars is still a refresh. Only the
|
|
2660
|
+
* toolbar label observes this, so a stamp re-renders one span, not the rows.
|
|
2661
|
+
*/
|
|
2662
|
+
budgetMeterLastFedAt: number | null;
|
|
2663
|
+
/** "Updated HH:MM:SS" for the meter toolbar, or `undefined` before any feed. */
|
|
2664
|
+
get settingsBudgetUpdatedLabel(): string | undefined;
|
|
2665
|
+
/**
|
|
2666
|
+
* Ask the host to re-fetch budget figures now (GENC-1464 refresh affordance).
|
|
2667
|
+
*
|
|
2668
|
+
* The element cannot fetch — the meter is host-fed by design — so this emits
|
|
2669
|
+
* `budget-refresh-requested` and the host answers with the same fetch that
|
|
2670
|
+
* already feeds {@link FoundationAiAssistant.setVendorBudget} (Create's handler coalesces in-flight
|
|
2671
|
+
* fetches, so a spammed button costs one request). Fired by the meter's
|
|
2672
|
+
* refresh button and on settings-modal open, so the figures are fresh exactly
|
|
2673
|
+
* when someone is looking at them. Fires unconditionally: a host without a
|
|
2674
|
+
* listener simply keeps the per-turn cadence.
|
|
2675
|
+
*/
|
|
2676
|
+
requestBudgetRefresh(): void;
|
|
2652
2677
|
/** Whether this vendor's wall came from the sweep alone — see the slice's `sweptVendors`. */
|
|
2653
2678
|
private isVendorSwept;
|
|
2654
2679
|
/**
|