agent-valley 1.0.0 → 1.1.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/README.md +5 -1
- package/dist/assets/plugin.json +1 -1
- package/dist/assets/skills/av/SKILL.md +12 -2
- package/dist/index.js +6605 -4854
- package/dist/supervisor.js +20 -0
- package/package.json +1 -1
package/dist/supervisor.js
CHANGED
|
@@ -7098,6 +7098,24 @@ var init_metric_source_policy = __esm(() => {
|
|
|
7098
7098
|
};
|
|
7099
7099
|
});
|
|
7100
7100
|
|
|
7101
|
+
// ../../packages/core/src/chief/tool-environment.ts
|
|
7102
|
+
function resolveToolEnvironment(keys = [], source = process.env) {
|
|
7103
|
+
const result = {};
|
|
7104
|
+
for (const key of toolEnvKeysSchema.parse(keys)) {
|
|
7105
|
+
const value = source[key];
|
|
7106
|
+
if (!value)
|
|
7107
|
+
throw new Error(`Configured tool credential ${key} is missing. Export it before resuming, or remove its name from chief.tool_env_keys in av.yaml or settings.yaml.`);
|
|
7108
|
+
result[key] = value;
|
|
7109
|
+
}
|
|
7110
|
+
return result;
|
|
7111
|
+
}
|
|
7112
|
+
var reserved, toolEnvKeysSchema;
|
|
7113
|
+
var init_tool_environment = __esm(() => {
|
|
7114
|
+
init_zod();
|
|
7115
|
+
reserved = /^(?:PATH|HOME|USER|SHELL|NODE_OPTIONS|NODE_PATH|BUN_OPTIONS|LD_.+|DYLD_.+|GIT_.+|AGENT_VALLEY_.+)$/;
|
|
7116
|
+
toolEnvKeysSchema = array(string2().regex(/^[A-Z][A-Z0-9_]{0,127}$/).refine((key) => !reserved.test(key), "Tool credentials must not override runtime, Git or managed-run settings.")).max(40).refine((keys) => new Set(keys).size === keys.length, "Tool environment names must be unique.");
|
|
7117
|
+
});
|
|
7118
|
+
|
|
7101
7119
|
// ../../packages/core/src/config/chief-schema.ts
|
|
7102
7120
|
function mergeChiefConfig(global, project) {
|
|
7103
7121
|
return chiefConfigSchema.parse({ ...global, ...project });
|
|
@@ -7155,8 +7173,10 @@ var init_chief_schema = __esm(() => {
|
|
|
7155
7173
|
init_operations();
|
|
7156
7174
|
init_organization_types();
|
|
7157
7175
|
init_report_delivery_contract();
|
|
7176
|
+
init_tool_environment();
|
|
7158
7177
|
price = number2().finite().nonnegative().optional();
|
|
7159
7178
|
chiefConfigSchema = strictObject({
|
|
7179
|
+
tool_env_keys: toolEnvKeysSchema.optional(),
|
|
7160
7180
|
execution: strictObject({
|
|
7161
7181
|
max_parallel: number2().int().min(1).max(8).default(3),
|
|
7162
7182
|
max_duration_sec: number2().int().min(1).max(604800).default(86400),
|