@genesislcap/ai-assistant 15.103.2 → 15.104.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 +55 -1
- package/dist/ai-assistant.d.ts +10 -0
- package/dist/chat-driver.cjs +12 -2
- package/dist/chat-driver.cjs.map +2 -2
- package/dist/chat-driver.mjs +12 -2
- package/dist/chat-driver.mjs.map +2 -2
- package/dist/dts/autopilot/decision-message.d.ts.map +1 -1
- package/dist/dts/headless/describe-interaction.d.ts.map +1 -1
- package/dist/dts/headless/headless.types.d.ts +2 -0
- package/dist/dts/headless/headless.types.d.ts.map +1 -1
- package/dist/dts/headless-server/types.d.ts +1 -0
- package/dist/dts/headless-server/types.d.ts.map +1 -1
- package/dist/dts/state/decision-surface.d.ts.map +1 -1
- package/dist/dts/types/interaction-surface.d.ts +8 -0
- package/dist/dts/types/interaction-surface.d.ts.map +1 -1
- package/dist/esm/autopilot/decision-message.js +3 -2
- package/dist/esm/headless/describe-interaction.js +1 -1
- package/dist/esm/headless-server/compact.js +1 -1
- package/dist/esm/state/decision-surface.js +7 -2
- package/dist/headless-server.cjs +1 -1
- package/dist/headless-server.cjs.map +2 -2
- package/dist/headless-server.mjs +1 -1
- package/dist/headless-server.mjs.map +2 -2
- package/package.json +17 -17
package/dist/chat-driver.mjs
CHANGED
|
@@ -6550,7 +6550,12 @@ var IdleClock = class {
|
|
|
6550
6550
|
// src/state/decision-surface.ts
|
|
6551
6551
|
var SELECT_ACTION = "select";
|
|
6552
6552
|
var REPLY_ACTION = "reply";
|
|
6553
|
-
var normalise = (option) => typeof option === "string" ? { id: option, label: option } : {
|
|
6553
|
+
var normalise = (option) => typeof option === "string" ? { id: option, label: option } : {
|
|
6554
|
+
id: option.id ?? option.label,
|
|
6555
|
+
label: option.label,
|
|
6556
|
+
hint: option.hint,
|
|
6557
|
+
unavailable: option.unavailable
|
|
6558
|
+
};
|
|
6554
6559
|
var GENERIC_UNAVAILABLE = "not available in this state";
|
|
6555
6560
|
function unavailableReason(guard, ...args) {
|
|
6556
6561
|
if (!guard) return void 0;
|
|
@@ -6592,6 +6597,7 @@ function buildDecisionSurface(spec) {
|
|
|
6592
6597
|
return {
|
|
6593
6598
|
name: o.id,
|
|
6594
6599
|
label: o.label,
|
|
6600
|
+
...o.hint !== void 0 ? { hint: o.hint } : {},
|
|
6595
6601
|
finishes: true,
|
|
6596
6602
|
enabled: unavailable === void 0,
|
|
6597
6603
|
...unavailable !== void 0 ? { unavailable } : {}
|
|
@@ -12787,7 +12793,10 @@ function renderActions(actions, options = {}) {
|
|
|
12787
12793
|
lines.push(` reply({text}) \u2014 answer in your own words${unavailable}`);
|
|
12788
12794
|
} else {
|
|
12789
12795
|
numbering.push(action.name);
|
|
12790
|
-
|
|
12796
|
+
const hint = action.hint?.trim();
|
|
12797
|
+
lines.push(
|
|
12798
|
+
` [${numbering.length}] "${action.label ?? action.name}"${hint ? ` \u2014 ${hint}` : ""}${unavailable}`
|
|
12799
|
+
);
|
|
12791
12800
|
}
|
|
12792
12801
|
}
|
|
12793
12802
|
const allSettle = actions.every((a) => a.description === void 0);
|
|
@@ -12922,6 +12931,7 @@ var describeAction = (action, n) => ({
|
|
|
12922
12931
|
...n !== void 0 ? { n } : {},
|
|
12923
12932
|
name: action.name,
|
|
12924
12933
|
...action.label !== void 0 ? { label: action.label } : {},
|
|
12934
|
+
...action.hint !== void 0 ? { hint: action.hint } : {},
|
|
12925
12935
|
...action.description !== void 0 ? { description: action.description } : {},
|
|
12926
12936
|
enabled: action.enabled,
|
|
12927
12937
|
...action.unavailable !== void 0 ? { unavailable: action.unavailable } : {},
|