@standardagents/builder 0.41.12 → 0.41.13
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/built-in-routes.js +1 -1
- package/dist/index.js +12 -4
- package/dist/index.js.map +1 -1
- package/dist/runtime.js +12 -4
- package/dist/runtime.js.map +1 -1
- package/package.json +5 -5
package/dist/built-in-routes.js
CHANGED
|
@@ -79652,7 +79652,7 @@ var config_get_default = defineController2(async ({ config, env: env2, req }) =>
|
|
|
79652
79652
|
});
|
|
79653
79653
|
|
|
79654
79654
|
// src/version.ts
|
|
79655
|
-
var BUILDER_VERSION = "0.41.
|
|
79655
|
+
var BUILDER_VERSION = "0.41.13".length > 0 ? "0.41.13" : "dev";
|
|
79656
79656
|
|
|
79657
79657
|
// src/api/diagnostics.get.ts
|
|
79658
79658
|
init_LLMRequest();
|
package/dist/index.js
CHANGED
|
@@ -39447,11 +39447,19 @@ var UserStateImpl = class {
|
|
|
39447
39447
|
const { entries, total } = await this.host.listUserValues(this.userId, options);
|
|
39448
39448
|
return { entries, total };
|
|
39449
39449
|
}
|
|
39450
|
+
/** User-account value first, then the instance's (Users §2.3). */
|
|
39450
39451
|
async env(name) {
|
|
39451
|
-
const
|
|
39452
|
-
const
|
|
39453
|
-
if (
|
|
39454
|
-
|
|
39452
|
+
const singleton = this.singleton();
|
|
39453
|
+
const userValues = await singleton.getUserEnv(this.userId);
|
|
39454
|
+
if (userValues[name] !== void 0) return userValues[name];
|
|
39455
|
+
const instanceValues = await singleton.getInstanceEnv();
|
|
39456
|
+
if (instanceValues[name] !== void 0) return instanceValues[name];
|
|
39457
|
+
throw new Error(`Environment variable not found: ${name}`);
|
|
39458
|
+
}
|
|
39459
|
+
/** The instance's value only, for trust anchors (Users §2.3). */
|
|
39460
|
+
async instanceEnv(name) {
|
|
39461
|
+
const values = await this.singleton().getInstanceEnv();
|
|
39462
|
+
return values[name];
|
|
39455
39463
|
}
|
|
39456
39464
|
emit(event, data) {
|
|
39457
39465
|
this.host.broadcastUserEvent(this.userId, event, data);
|