@selesai/code 0.14.3 → 0.14.4
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.
|
@@ -29,7 +29,7 @@ import { ensureAccessibleDir } from "../shared/accessible-dir.ts";
|
|
|
29
29
|
import { cleanupAllArtifactDirs, cleanupOldArtifacts, getArtifactsDir } from "../shared/artifacts.ts";
|
|
30
30
|
import { resolveCurrentSessionId } from "../shared/session-identity.ts";
|
|
31
31
|
import { getAgentDir } from "../shared/utils.ts";
|
|
32
|
-
import { isStaleExtensionContextError,
|
|
32
|
+
import { isStaleExtensionContextError, withCachedUiContext } from "../shared/extension-context.ts";
|
|
33
33
|
import { currentCompletionOwnerId } from "../shared/completion-owner.ts";
|
|
34
34
|
import { ensureOwnerRecord } from "../shared/owner-record.ts";
|
|
35
35
|
import { cleanupOldChainDirs } from "../shared/settings.ts";
|
|
@@ -796,7 +796,7 @@ export default function registerSubagentExtension(pi: ExtensionAPI): void {
|
|
|
796
796
|
const parameters = createSubagentParamsSchema(disabledFeatures);
|
|
797
797
|
const tool: ToolDefinition<typeof parameters, Details> = {
|
|
798
798
|
name: "subagent",
|
|
799
|
-
|
|
799
|
+
exposure: "deferred",
|
|
800
800
|
label: "Subagent",
|
|
801
801
|
description: buildSubagentToolDescription(config, { disabledFeatures }),
|
|
802
802
|
...buildSubagentToolPromptMetadata(config, disabledFeatures),
|
|
@@ -40,7 +40,7 @@ describe("subagent extension child mode", () => {
|
|
|
40
40
|
});
|
|
41
41
|
registerSubagentExtension(fakePi);
|
|
42
42
|
if (!registeredTool) throw new Error("tool not registered");
|
|
43
|
-
if (registeredTool.exposure !== "
|
|
43
|
+
if (registeredTool.exposure !== "deferred") throw new Error("Selesai keeps subagent out of the model's tool list (deferred), got exposure " + registeredTool.exposure);
|
|
44
44
|
const calls = [];
|
|
45
45
|
const ctx = {
|
|
46
46
|
cwd: process.cwd(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@selesai/code",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.4",
|
|
4
4
|
"description": "Maintained, extension-first Pi coding agent with built-in workflows, subagents, web research, questions, skills, and an enhanced terminal UI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|