@adhdev/daemon-standalone 0.9.82-rc.312 → 0.9.82-rc.313
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/index.js +45 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30029,10 +30029,10 @@ var require_dist3 = __commonJS({
|
|
|
30029
30029
|
}
|
|
30030
30030
|
function getDaemonBuildInfo() {
|
|
30031
30031
|
if (cached2) return cached2;
|
|
30032
|
-
const commit = readInjected(true ? "
|
|
30033
|
-
const commitShort = readInjected(true ? "
|
|
30034
|
-
const version2 = readInjected(true ? "0.9.82-rc.
|
|
30035
|
-
const builtAt = readInjected(true ? "2026-06-
|
|
30032
|
+
const commit = readInjected(true ? "ed3b7279be8ea9fa191f854f7e9b6ce969159e67" : void 0) ?? "unknown";
|
|
30033
|
+
const commitShort = readInjected(true ? "ed3b7279" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
30034
|
+
const version2 = readInjected(true ? "0.9.82-rc.313" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
30035
|
+
const builtAt = readInjected(true ? "2026-06-18T00:15:22.605Z" : void 0);
|
|
30036
30036
|
cached2 = builtAt ? { commit, commitShort, version: version2, builtAt } : { commit, commitShort, version: version2 };
|
|
30037
30037
|
return cached2;
|
|
30038
30038
|
}
|
|
@@ -62017,7 +62017,7 @@ ${formatManifestValidationIssues2(validation.issues)}`,
|
|
|
62017
62017
|
}
|
|
62018
62018
|
if (action.type === "open_picker") {
|
|
62019
62019
|
const choiceIndex = typeof flat.choiceIndex === "number" ? flat.choiceIndex : typeof flat.choiceIndex === "string" && flat.choiceIndex.trim() ? Number(flat.choiceIndex) : void 0;
|
|
62020
|
-
const choiceLabel = typeof flat.choiceLabel === "string" ? flat.choiceLabel : typeof flat.choice === "string" ? flat.choice : void 0;
|
|
62020
|
+
const choiceLabel = typeof flat.choiceLabel === "string" ? flat.choiceLabel : typeof flat.choice === "string" ? flat.choice : typeof flat.value === "string" ? flat.value : void 0;
|
|
62021
62021
|
if (typeof choiceIndex === "number" && Number.isFinite(choiceIndex) || choiceLabel && choiceLabel.trim()) {
|
|
62022
62022
|
return this.selectPickerChoice(ctl, action, choiceIndex, choiceLabel);
|
|
62023
62023
|
}
|
|
@@ -68145,6 +68145,39 @@ Run 'adhdev doctor' for detailed diagnostics.`
|
|
|
68145
68145
|
} catch {
|
|
68146
68146
|
}
|
|
68147
68147
|
}
|
|
68148
|
+
function synthesizeControlsFromControlBar(specControls) {
|
|
68149
|
+
const out = [];
|
|
68150
|
+
specControls.forEach((ctl, index) => {
|
|
68151
|
+
const id = typeof ctl?.id === "string" ? ctl.id.trim() : "";
|
|
68152
|
+
const actionType = ctl?.action?.type;
|
|
68153
|
+
if (!id || !actionType) return;
|
|
68154
|
+
const label = typeof ctl?.label === "string" && ctl.label.trim() ? ctl.label : id;
|
|
68155
|
+
if (actionType === "open_picker") {
|
|
68156
|
+
out.push({
|
|
68157
|
+
id,
|
|
68158
|
+
type: "select",
|
|
68159
|
+
label,
|
|
68160
|
+
placement: "bar",
|
|
68161
|
+
dynamic: true,
|
|
68162
|
+
listScript: id,
|
|
68163
|
+
setScript: id,
|
|
68164
|
+
readFrom: id,
|
|
68165
|
+
order: index
|
|
68166
|
+
});
|
|
68167
|
+
} else if (actionType === "send_keys") {
|
|
68168
|
+
out.push({
|
|
68169
|
+
id,
|
|
68170
|
+
type: "action",
|
|
68171
|
+
label,
|
|
68172
|
+
placement: "bar",
|
|
68173
|
+
invokeScript: id,
|
|
68174
|
+
resultDisplay: "none",
|
|
68175
|
+
order: index
|
|
68176
|
+
});
|
|
68177
|
+
}
|
|
68178
|
+
});
|
|
68179
|
+
return out;
|
|
68180
|
+
}
|
|
68148
68181
|
var ProviderLoader = class _ProviderLoader {
|
|
68149
68182
|
providers = /* @__PURE__ */ new Map();
|
|
68150
68183
|
providerAvailability = /* @__PURE__ */ new Map();
|
|
@@ -69083,6 +69116,13 @@ Run 'adhdev doctor' for detailed diagnostics.`
|
|
|
69083
69116
|
});
|
|
69084
69117
|
}
|
|
69085
69118
|
}
|
|
69119
|
+
const hasDeclaredControls = Array.isArray(resolved.controls) && resolved.controls.length > 0;
|
|
69120
|
+
if (!hasDeclaredControls) {
|
|
69121
|
+
const synthesized = synthesizeControlsFromControlBar(specControls);
|
|
69122
|
+
if (synthesized.length > 0) {
|
|
69123
|
+
resolved.controls = synthesized;
|
|
69124
|
+
}
|
|
69125
|
+
}
|
|
69086
69126
|
}
|
|
69087
69127
|
if (nh) {
|
|
69088
69128
|
let reader = null;
|