@asm-agent/coding-agent 0.9.4 → 0.9.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/bundled-extensions/00-COMECE-AQUI.txt +1 -1
- package/bundled-extensions/ollama-tool-forcing.ts +4 -4
- package/dist/bundle/{bundled-modules-ABB56VC3.js → bundled-modules-QDPN6BGG.js} +2 -2
- package/dist/bundle/{chunk-NESKY6T7.js → chunk-JY5SSN7V.js} +2 -2
- package/dist/bundle/{chunk-GUPU2EEK.js → chunk-VWSFBIFE.js} +1 -1
- package/dist/bundle/{cli-main-ZYCGVTZE.js → cli-main-OBM57S4L.js} +2 -2
- package/dist/bundle/cli.js +1 -1
- package/dist/bundle/{main-J36EPND6.js → main-NV3C3DIQ.js} +2 -2
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/package.json +5 -5
|
@@ -35,7 +35,7 @@ CENÁRIO 2: ASM Agent já está rodando
|
|
|
35
35
|
4. Teste com uma tarefa:
|
|
36
36
|
> Crie um arquivo test.txt com "Olá!" e verifique com bash.
|
|
37
37
|
|
|
38
|
-
5. A extensão já está forçando ferramentas!
|
|
38
|
+
5. A extensão já está forçando ferramentas!
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
CENÁRIO 3: Quer testar múltiplas vezes
|
|
@@ -31,7 +31,7 @@ export default function ollamaToolForcingExtension(pi: ExtensionAPI) {
|
|
|
31
31
|
description: "Mostra status do Ollama Tool-Forcing e permite toggle",
|
|
32
32
|
handler: async (_args, ctx) => {
|
|
33
33
|
enabled = !enabled;
|
|
34
|
-
const status = enabled ? "
|
|
34
|
+
const status = enabled ? "ATIVADO" : "DESATIVADO";
|
|
35
35
|
ctx.ui.notify(
|
|
36
36
|
`Ollama Tool-Forcing: ${status}\n\n` +
|
|
37
37
|
`Este modo força modelos abertos a chamar ferramentas antes de parar, ` +
|
|
@@ -48,9 +48,9 @@ export default function ollamaToolForcingExtension(pi: ExtensionAPI) {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
// Instrução forte para forçar uso de ferramentas
|
|
51
|
-
const toolForceRule =
|
|
51
|
+
const toolForceRule = `
|
|
52
52
|
|
|
53
|
-
##
|
|
53
|
+
## REGRA CRÍTICA: TOOL-FORCING PARA MODELOS LOCAIS
|
|
54
54
|
|
|
55
55
|
Você está rodando num modelo aberto (Ollama/local). Para garantir que trabalhe autonomamente:
|
|
56
56
|
|
|
@@ -81,7 +81,7 @@ Você está rodando num modelo aberto (Ollama/local). Para garantir que trabalhe
|
|
|
81
81
|
|
|
82
82
|
ESSA REGRA SE APLICA SEMPRE. Sem exceções. Modelos menores têm tendência de "congelar"
|
|
83
83
|
se deixados livres — use ferramentas constantemente para manter-se "vivo".
|
|
84
|
-
|
|
84
|
+
`;
|
|
85
85
|
|
|
86
86
|
return {
|
|
87
87
|
systemPrompt: event.systemPrompt + toolForceRule,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
oauth_exports,
|
|
53
53
|
runPrintMode,
|
|
54
54
|
runRpcMode
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-VWSFBIFE.js";
|
|
56
56
|
import {
|
|
57
57
|
AgentSession,
|
|
58
58
|
CURRENT_SESSION_VERSION,
|
|
@@ -136,7 +136,7 @@ import {
|
|
|
136
136
|
withFileMutationQueue,
|
|
137
137
|
wrapRegisteredTool,
|
|
138
138
|
wrapRegisteredTools
|
|
139
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-JY5SSN7V.js";
|
|
140
140
|
import "./chunk-VWR3YFK5.js";
|
|
141
141
|
import "./chunk-N2CSAETN.js";
|
|
142
142
|
import "./chunk-5QCJ5DQU.js";
|
|
@@ -37402,7 +37402,7 @@ async function loadExtensionModule(extensionPath) {
|
|
|
37402
37402
|
// (file-path aliases would load a second, divergent copy of each package).
|
|
37403
37403
|
// Also disable tryNative so jiti handles ALL imports (not just the entry point)
|
|
37404
37404
|
// In Node.js/dev: use aliases to resolve to node_modules paths
|
|
37405
|
-
...isBunBinary || isBundledCli ? { virtualModules: (await import("./bundled-modules-
|
|
37405
|
+
...isBunBinary || isBundledCli ? { virtualModules: (await import("./bundled-modules-QDPN6BGG.js")).VIRTUAL_MODULES, tryNative: false } : { alias: getAliases() }
|
|
37406
37406
|
});
|
|
37407
37407
|
const module = await jiti.import(extensionPath, { default: true });
|
|
37408
37408
|
const factory = module;
|
|
@@ -59215,7 +59215,7 @@ import { resolve as resolve15 } from "node:path";
|
|
|
59215
59215
|
var ASM_AGENT_BUILD_ID_ENV = "ASM_AGENT_BUILD_ID";
|
|
59216
59216
|
var ASM_AGENT_LAUNCHER_PATH_ENV = "ASM_AGENT_LAUNCHER_PATH";
|
|
59217
59217
|
function bundledBuildId() {
|
|
59218
|
-
return false ? void 0 : "v0.9.
|
|
59218
|
+
return false ? void 0 : "v0.9.4-dirty";
|
|
59219
59219
|
}
|
|
59220
59220
|
function getDaemonRuntimeIdentity(environment = process.env) {
|
|
59221
59221
|
const entrypoint = process.argv[1];
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
isOwnedSessionWorkerProcess,
|
|
8
8
|
maybeRunOwnedSessionWorkerFrontend,
|
|
9
9
|
maybeStartDaemonEarly
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JY5SSN7V.js";
|
|
11
11
|
import "./chunk-5QCJ5DQU.js";
|
|
12
12
|
import "./chunk-CMMSLBAW.js";
|
|
13
13
|
import "./chunk-2T7M7VJ4.js";
|
|
@@ -182,7 +182,7 @@ async function runCli() {
|
|
|
182
182
|
}
|
|
183
183
|
const [{ EnvHttpProxyAgent, setGlobalDispatcher }, { main }] = await Promise.all([
|
|
184
184
|
import("undici"),
|
|
185
|
-
import("./main-
|
|
185
|
+
import("./main-NV3C3DIQ.js")
|
|
186
186
|
]);
|
|
187
187
|
setGlobalDispatcher(new EnvHttpProxyAgent({ bodyTimeout: 0, headersTimeout: 0 }));
|
|
188
188
|
try {
|
package/dist/bundle/cli.js
CHANGED
|
@@ -17,8 +17,8 @@ import {
|
|
|
17
17
|
shouldUseDaemonClientRuntime,
|
|
18
18
|
shouldUseDaemonInteractive,
|
|
19
19
|
shouldUseEphemeralSessionManagerForDaemonInteractive
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-VWSFBIFE.js";
|
|
21
|
+
import "./chunk-JY5SSN7V.js";
|
|
22
22
|
import "./chunk-VWR3YFK5.js";
|
|
23
23
|
import "./chunk-N2CSAETN.js";
|
|
24
24
|
import "./chunk-5QCJ5DQU.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-extension-custom-provider",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.5",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pi-extension-custom-provider",
|
|
9
|
-
"version": "0.9.
|
|
9
|
+
"version": "0.9.5",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@anthropic-ai/sdk": "^0.52.0"
|
|
12
12
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-extension-sandbox",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.5",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pi-extension-sandbox",
|
|
9
|
-
"version": "0.9.
|
|
9
|
+
"version": "0.9.5",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@anthropic-ai/sandbox-runtime": "^0.0.55"
|
|
12
12
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-extension-with-deps",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.5",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pi-extension-with-deps",
|
|
9
|
-
"version": "0.9.
|
|
9
|
+
"version": "0.9.5",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"ms": "^2.1.3"
|
|
12
12
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@asm-agent/coding-agent",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.5",
|
|
4
4
|
"description": "Coding agent CLI with a persistent Python REPL kernel and session management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"asmAgentConfig": {
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@agentclientprotocol/sdk": "^1.3.0",
|
|
52
|
-
"@asm-agent/agent": "^0.9.
|
|
53
|
-
"@asm-agent/ai": "^0.9.
|
|
54
|
-
"@asm-agent/postgres": "^0.9.
|
|
55
|
-
"@asm-agent/tui": "^0.9.
|
|
52
|
+
"@asm-agent/agent": "^0.9.5",
|
|
53
|
+
"@asm-agent/ai": "^0.9.5",
|
|
54
|
+
"@asm-agent/postgres": "^0.9.5",
|
|
55
|
+
"@asm-agent/tui": "^0.9.5",
|
|
56
56
|
"@silvia-odwyer/photon-node": "^0.3.4",
|
|
57
57
|
"chalk": "^5.5.0",
|
|
58
58
|
"cli-highlight": "^2.1.11",
|