@sayknow-cli/coding-agent 0.3.2 → 0.3.5
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/types/config/model-profiles.d.ts +2 -2
- package/dist/types/config/model-registry.d.ts +3 -3
- package/dist/types/config/models-config-schema.d.ts +0 -5
- package/dist/types/config/settings-schema.d.ts +78 -9
- package/dist/types/export/html/template.generated.d.ts +1 -1
- package/dist/types/skc-runtime/state-renderer.d.ts +5 -0
- package/dist/types/skc-runtime/ultragoal-guard.d.ts +37 -1
- package/dist/types/skc-runtime/ultragoal-runtime.d.ts +80 -0
- package/dist/types/tools/browser/tab-supervisor.d.ts +31 -0
- package/dist/types/tools/computer-gc.d.ts +23 -0
- package/dist/types/tools/cron.d.ts +36 -61
- package/dist/types/tools/index.d.ts +0 -1
- package/dist/types/tools/resource-gc.d.ts +54 -0
- package/dist/types/web/search/index.d.ts +1 -0
- package/dist/types/web/search/providers/utils.d.ts +11 -4
- package/package.json +7 -7
- package/scripts/verify-insane-vendor.ts +5 -0
- package/src/cli/args.ts +0 -1
- package/src/cli/fast-help.ts +0 -1
- package/src/cli/plugin-cli.ts +1 -1
- package/src/cli/web-search-cli.ts +5 -0
- package/src/config/model-profile-activation.ts +7 -1
- package/src/config/model-profiles.ts +3 -4
- package/src/config/model-registry.ts +3 -6
- package/src/config/models-config-schema.ts +1 -1
- package/src/config/settings-schema.ts +80 -10
- package/src/export/html/template.generated.ts +1 -1
- package/src/export/html/template.js +0 -12
- package/src/goals/tools/goal-tool.ts +14 -1
- package/src/internal-urls/docs-index.generated.ts +3 -4
- package/src/modes/components/model-selector.ts +9 -1
- package/src/modes/controllers/selector-controller.ts +6 -0
- package/src/prompts/system/system-prompt.md +16 -20
- package/src/prompts/tools/cron.md +5 -3
- package/src/prompts/tools/read.md +1 -1
- package/src/sdk.ts +5 -0
- package/src/session/agent-session.ts +44 -0
- package/src/skc-runtime/state-renderer.ts +13 -0
- package/src/skc-runtime/ultragoal-guard.ts +167 -0
- package/src/skc-runtime/ultragoal-runtime.ts +221 -1
- package/src/tools/browser/tab-supervisor.ts +86 -2
- package/src/tools/computer-gc.ts +66 -0
- package/src/tools/computer.ts +2 -0
- package/src/tools/cron.ts +75 -112
- package/src/tools/index.ts +2 -8
- package/src/tools/read.ts +25 -55
- package/src/tools/renderers.ts +0 -2
- package/src/tools/resource-gc.ts +291 -0
- package/src/tools/ultragoal-ask-guard.ts +7 -1
- package/src/web/search/index.ts +1 -0
- package/src/web/search/providers/utils.ts +22 -5
- package/vendor/insane-search/MANIFEST.json +5 -1
- package/vendor/insane-search/engine/__init__.py +14 -0
- package/vendor/insane-search/engine/content_safety.py +151 -0
- package/vendor/insane-search/engine/fetch_chain.py +32 -0
- package/vendor/insane-search/engine/tests/test_u1.py +28 -0
- package/vendor/insane-search/engine/tests/test_u8.py +216 -0
- package/vendor/insane-search/engine/transport.py +3 -2
- package/vendor/insane-search/engine/validators.py +14 -0
- package/dist/types/tools/inspect-image-renderer.d.ts +0 -26
- package/dist/types/tools/inspect-image.d.ts +0 -31
- package/src/prompts/tools/inspect-image-system.md +0 -20
- package/src/prompts/tools/inspect-image.md +0 -32
- package/src/tools/inspect-image-renderer.ts +0 -103
- package/src/tools/inspect-image.ts +0 -172
|
@@ -1113,17 +1113,6 @@
|
|
|
1113
1113
|
return html;
|
|
1114
1114
|
}
|
|
1115
1115
|
|
|
1116
|
-
function renderInspectImage(name, args, result, ctx) {
|
|
1117
|
-
const p = str(args.path == null ? args.url : args.path) || '';
|
|
1118
|
-
let html = toolHead('inspect_image', escapeHtml(shortenPath(p)));
|
|
1119
|
-
if (result) {
|
|
1120
|
-
html += ctx.renderResultImages();
|
|
1121
|
-
const output = ctx.getResultText();
|
|
1122
|
-
if (output) html += formatExpandableOutput(output, 8);
|
|
1123
|
-
}
|
|
1124
|
-
return html;
|
|
1125
|
-
}
|
|
1126
|
-
|
|
1127
1116
|
function renderGenerateImage(name, args, result, ctx) {
|
|
1128
1117
|
const subject = str(args.subject) || '';
|
|
1129
1118
|
const badges = args.aspect_ratio ? [String(args.aspect_ratio)] : null;
|
|
@@ -1544,7 +1533,6 @@
|
|
|
1544
1533
|
debug: renderDebug,
|
|
1545
1534
|
puppeteer: renderBrowser,
|
|
1546
1535
|
browser: renderBrowser,
|
|
1547
|
-
inspect_image: renderInspectImage,
|
|
1548
1536
|
generate_image: renderGenerateImage,
|
|
1549
1537
|
ask: renderAsk,
|
|
1550
1538
|
resolve: renderResolve,
|
|
@@ -6,7 +6,11 @@ import * as z from "zod/v4";
|
|
|
6
6
|
import type { RenderResultOptions } from "../../extensibility/custom-tools/types";
|
|
7
7
|
import type { Theme, ThemeColor } from "../../modes/theme/theme";
|
|
8
8
|
import goalDescription from "../../prompts/tools/goal.md" with { type: "text" };
|
|
9
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
assertCanCompleteCurrentGoal,
|
|
11
|
+
assertUltragoalDropAllowed,
|
|
12
|
+
assertUltragoalPauseAllowed,
|
|
13
|
+
} from "../../skc-runtime/ultragoal-guard";
|
|
10
14
|
import { formatDuration } from "../../slash-commands/helpers/format";
|
|
11
15
|
import type { ToolSession } from "../../tools";
|
|
12
16
|
import { formatErrorMessage, TRUNCATE_LENGTHS } from "../../tools/render-utils";
|
|
@@ -103,6 +107,15 @@ async function executeGoalOperation(session: ToolSession, params: GoalToolInput)
|
|
|
103
107
|
return buildGoalToolResponse(paused?.goal ?? null);
|
|
104
108
|
}
|
|
105
109
|
if (params.op === "drop") {
|
|
110
|
+
try {
|
|
111
|
+
await assertUltragoalDropAllowed({
|
|
112
|
+
cwd: session.cwd,
|
|
113
|
+
currentGoal: session.getGoalModeState?.()?.goal ?? null,
|
|
114
|
+
sessionId: session.getSessionId?.(),
|
|
115
|
+
});
|
|
116
|
+
} catch (error) {
|
|
117
|
+
throw new ToolError(error instanceof Error ? error.message : String(error));
|
|
118
|
+
}
|
|
106
119
|
const dropped = await runtime.dropGoal();
|
|
107
120
|
return buildGoalToolResponse(dropped ?? null);
|
|
108
121
|
}
|