@ai-agent-forge/plugin-sdk 0.88.13 → 0.88.15
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/agent-task-scheduler.d.ts +154 -0
- package/dist/agent-task-scheduler.d.ts.map +1 -0
- package/dist/agent-task-scheduler.js +186 -0
- package/dist/agent-task-scheduler.js.map +1 -0
- package/dist/browser-fetch.d.ts +58 -0
- package/dist/browser-fetch.d.ts.map +1 -0
- package/dist/browser-fetch.js +135 -0
- package/dist/browser-fetch.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-client.d.ts +45 -0
- package/dist/mcp-client.d.ts.map +1 -0
- package/dist/mcp-client.js +14 -0
- package/dist/mcp-client.js.map +1 -0
- package/dist/network-route.d.ts +55 -0
- package/dist/network-route.d.ts.map +1 -0
- package/dist/network-route.js +187 -0
- package/dist/network-route.js.map +1 -0
- package/dist/observability.d.ts +21 -0
- package/dist/observability.d.ts.map +1 -1
- package/dist/observability.js.map +1 -1
- package/dist/operation.d.ts +33 -0
- package/dist/operation.d.ts.map +1 -1
- package/dist/operation.js +50 -1
- package/dist/operation.js.map +1 -1
- package/dist/public-api.d.ts +198 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +43 -0
- package/dist/public-api.js.map +1 -1
- package/package.json +1 -1
package/dist/public-api.js
CHANGED
|
@@ -71,11 +71,15 @@ const CHILD_PROFILE_KEYS = [
|
|
|
71
71
|
"model",
|
|
72
72
|
"thinkingLevel",
|
|
73
73
|
"tools",
|
|
74
|
+
"writeScope",
|
|
74
75
|
"mode",
|
|
76
|
+
"webSearch",
|
|
75
77
|
"systemPromptAppend",
|
|
76
78
|
"roleId",
|
|
77
79
|
];
|
|
78
80
|
const CHILD_PROFILE_TOOL_LIMIT = 64;
|
|
81
|
+
const CHILD_PROFILE_WRITE_SCOPE_LIMIT = 32;
|
|
82
|
+
const CHILD_PROFILE_WRITE_SCOPE_PATTERN_BYTES = 256;
|
|
79
83
|
const CHILD_PROFILE_APPEND_CHARS = 8000;
|
|
80
84
|
const CHILD_PROFILE_THINKING_LEVELS = ["minimal", "low", "medium", "high", "xhigh", "max"];
|
|
81
85
|
/**
|
|
@@ -133,6 +137,36 @@ export function parseAgentTaskChildProfileV1(value) {
|
|
|
133
137
|
}
|
|
134
138
|
tools = Object.freeze([...names]);
|
|
135
139
|
}
|
|
140
|
+
let writeScope;
|
|
141
|
+
if (record.writeScope !== undefined) {
|
|
142
|
+
if (!Array.isArray(record.writeScope) || record.writeScope.length > CHILD_PROFILE_WRITE_SCOPE_LIMIT) {
|
|
143
|
+
return {
|
|
144
|
+
ok: false,
|
|
145
|
+
message: `child task profile writeScope must be an array of at most ${CHILD_PROFILE_WRITE_SCOPE_LIMIT} patterns`,
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
const patterns = new Set();
|
|
149
|
+
for (const entry of record.writeScope) {
|
|
150
|
+
if (typeof entry !== "string" || entry.trim() === "") {
|
|
151
|
+
return { ok: false, message: "child task profile writeScope entries must be non-empty strings" };
|
|
152
|
+
}
|
|
153
|
+
const normalized = entry.trim().replace(/\\/g, "/");
|
|
154
|
+
if (normalized.startsWith("/") || /^[A-Za-z]:/.test(normalized) || normalized.split("/").includes("..")) {
|
|
155
|
+
return {
|
|
156
|
+
ok: false,
|
|
157
|
+
message: 'child task profile writeScope patterns must be relative and must not contain ".." segments',
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
if (new TextEncoder().encode(normalized).length > CHILD_PROFILE_WRITE_SCOPE_PATTERN_BYTES) {
|
|
161
|
+
return {
|
|
162
|
+
ok: false,
|
|
163
|
+
message: `child task profile writeScope patterns must be at most ${CHILD_PROFILE_WRITE_SCOPE_PATTERN_BYTES} bytes`,
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
patterns.add(normalized);
|
|
167
|
+
}
|
|
168
|
+
writeScope = Object.freeze([...patterns]);
|
|
169
|
+
}
|
|
136
170
|
let mode;
|
|
137
171
|
if (record.mode !== undefined) {
|
|
138
172
|
if (record.mode !== "readonly" && record.mode !== "full-control") {
|
|
@@ -140,6 +174,13 @@ export function parseAgentTaskChildProfileV1(value) {
|
|
|
140
174
|
}
|
|
141
175
|
mode = record.mode;
|
|
142
176
|
}
|
|
177
|
+
let webSearch;
|
|
178
|
+
if (record.webSearch !== undefined) {
|
|
179
|
+
if (record.webSearch !== "off" && record.webSearch !== "auto") {
|
|
180
|
+
return { ok: false, message: 'child task profile webSearch must be "off" or "auto"' };
|
|
181
|
+
}
|
|
182
|
+
webSearch = record.webSearch;
|
|
183
|
+
}
|
|
143
184
|
let roleId;
|
|
144
185
|
if (record.roleId !== undefined) {
|
|
145
186
|
if (typeof record.roleId !== "string" || record.roleId.trim() === "") {
|
|
@@ -167,7 +208,9 @@ export function parseAgentTaskChildProfileV1(value) {
|
|
|
167
208
|
...(model === undefined ? {} : { model }),
|
|
168
209
|
...(thinkingLevel === undefined ? {} : { thinkingLevel }),
|
|
169
210
|
...(tools === undefined ? {} : { tools }),
|
|
211
|
+
...(writeScope === undefined ? {} : { writeScope }),
|
|
170
212
|
...(mode === undefined ? {} : { mode }),
|
|
213
|
+
...(webSearch === undefined ? {} : { webSearch }),
|
|
171
214
|
...(systemPromptAppend === undefined ? {} : { systemPromptAppend }),
|
|
172
215
|
...(roleId === undefined ? {} : { roleId }),
|
|
173
216
|
}),
|