@nyte-ai/plugin 0.0.27 → 0.0.28-nightly.20261104.54
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/src/acp/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import"../../chunks/bash-description-99k8z2r7.js";
|
|
9
9
|
import {
|
|
10
10
|
AcpProcess2
|
|
11
|
-
} from "../../chunks/bash-description-
|
|
11
|
+
} from "../../chunks/bash-description-nrcwm7s8.js";
|
|
12
12
|
import"../../chunks/bash-description-4vz9pxyx.js";
|
|
13
13
|
import {
|
|
14
14
|
registryEntries2,
|
package/dist/src/subagents.js
CHANGED
|
@@ -9,12 +9,14 @@ var SCHEDULED = {
|
|
|
9
9
|
deciding: "its plugins are deciding it"
|
|
10
10
|
};
|
|
11
11
|
var selectionParameters = {
|
|
12
|
-
agent: Type.Optional(Type.String({
|
|
12
|
+
agent: Type.Optional(Type.String({
|
|
13
|
+
description: "A registered agent to run as. Without it, a chat that runs as an agent starts subagents of its own agent, model and thinking level; any other chat, of the default agent."
|
|
14
|
+
})),
|
|
13
15
|
model: Type.Optional(Type.String({
|
|
14
|
-
description: "A model from /model, as provider/id or its id alone; a fast variant is its own id. The default model otherwise."
|
|
16
|
+
description: "A model from /model, as provider/id or its id alone; a fast variant is its own id. The inherited or default model otherwise."
|
|
15
17
|
})),
|
|
16
18
|
thinking: Type.Optional(Type.Enum(["off", "minimal", "low", "medium", "high", "xhigh", "max"], {
|
|
17
|
-
description: "A thinking level the model accepts;
|
|
19
|
+
description: "A thinking level the model accepts; the inherited level or the model's default otherwise."
|
|
18
20
|
}))
|
|
19
21
|
};
|
|
20
22
|
var isolationParameter = {
|
|
@@ -223,14 +225,19 @@ var subagents_default = {
|
|
|
223
225
|
api.contribute.tools.add(definition);
|
|
224
226
|
}
|
|
225
227
|
};
|
|
226
|
-
async function childConfiguration(invocation,
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
agent,
|
|
231
|
-
model:
|
|
232
|
-
thinking
|
|
228
|
+
async function childConfiguration(invocation, args) {
|
|
229
|
+
const parent = args.agent === undefined ? await agentConfiguration(invocation) : null;
|
|
230
|
+
const named = args.model === undefined ? undefined : await findModel(invocation, args.model);
|
|
231
|
+
const patch = {
|
|
232
|
+
agent: args.agent ?? parent?.agent,
|
|
233
|
+
model: named ?? parent?.model,
|
|
234
|
+
thinking: args.thinking ?? (named === undefined ? parent?.thinking : undefined)
|
|
233
235
|
};
|
|
236
|
+
return Object.values(patch).every((value) => value === undefined) ? undefined : patch;
|
|
237
|
+
}
|
|
238
|
+
async function agentConfiguration(invocation) {
|
|
239
|
+
const effective = (await invocation.session.head(invocation.head).view({ tail: 0 })).configuration.effective;
|
|
240
|
+
return effective === null || effective.agent === null ? null : effective;
|
|
234
241
|
}
|
|
235
242
|
async function findModel(invocation, name) {
|
|
236
243
|
const models = (await invocation.sdk.models.list()).providers.flatMap((provider) => provider.credential === "unknown" || provider.credential === "configured" || provider.credential === "verified" ? provider.models : []);
|
|
@@ -260,8 +267,10 @@ function reply(content) {
|
|
|
260
267
|
}
|
|
261
268
|
async function requireChildSession(invocation, id) {
|
|
262
269
|
const child = invocation.sdk.session(asId(id));
|
|
263
|
-
|
|
264
|
-
|
|
270
|
+
const [theirs, own] = await Promise.all([child.info(), invocation.session.info()]);
|
|
271
|
+
const reachable = theirs.parent === own.id || own.parent === null && own.project !== undefined && theirs.project === own.project;
|
|
272
|
+
if (!reachable || theirs.id === own.id)
|
|
273
|
+
throw new Error(`Session ${id} is not a subagent of this session or a chat in its project.`);
|
|
265
274
|
return child;
|
|
266
275
|
}
|
|
267
276
|
async function readSubagentReply(child, run, outcome) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nyte-ai/plugin",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.28-nightly.20261104.54",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -168,9 +168,9 @@
|
|
|
168
168
|
"@agentclientprotocol/sdk": "^2.4.0",
|
|
169
169
|
"@anthropic-ai/claude-agent-sdk": "^0.3.317",
|
|
170
170
|
"@earendil-works/pi-codemode": "^1.5.0",
|
|
171
|
-
"@nyte-ai/ai": "0.0.
|
|
172
|
-
"@nyte-ai/core": "0.0.
|
|
173
|
-
"@nyte-ai/schema": "0.0.
|
|
171
|
+
"@nyte-ai/ai": "0.0.28-nightly.20261104.54",
|
|
172
|
+
"@nyte-ai/core": "0.0.28-nightly.20261104.54",
|
|
173
|
+
"@nyte-ai/schema": "0.0.28-nightly.20261104.54",
|
|
174
174
|
"@opentelemetry/api": "^1.10.0",
|
|
175
175
|
"@opentelemetry/exporter-trace-otlp-http": "^0.300.0",
|
|
176
176
|
"@opentelemetry/resources": "^3.0.0",
|