@wrongstack/cli 0.2.0 → 0.3.1
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/index.js +14 -4
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import * as path13 from 'path';
|
|
|
8
8
|
import { MCPRegistry } from '@wrongstack/mcp';
|
|
9
9
|
import { buildProviderFactoriesFromRegistry, makeProviderFromConfig, capabilitiesFor } from '@wrongstack/providers';
|
|
10
10
|
import { rememberTool, forgetTool } from '@wrongstack/tools';
|
|
11
|
-
import {
|
|
11
|
+
import { builtinToolsPack } from '@wrongstack/tools/pack';
|
|
12
12
|
import * as os3 from 'os';
|
|
13
13
|
import * as readline from 'readline';
|
|
14
14
|
import { randomUUID } from 'crypto';
|
|
@@ -3876,7 +3876,10 @@ async function boot(argv) {
|
|
|
3876
3876
|
bundledDir: resolveBundledSkillsDir()
|
|
3877
3877
|
});
|
|
3878
3878
|
const toolRegistryForSubcmd = new ToolRegistry();
|
|
3879
|
-
|
|
3879
|
+
toolRegistryForSubcmd.registerAllOrThrow(
|
|
3880
|
+
[...builtinToolsPack.tools ?? []],
|
|
3881
|
+
builtinToolsPack.name
|
|
3882
|
+
);
|
|
3880
3883
|
const code = await subcommands[first](positional.slice(1), {
|
|
3881
3884
|
config,
|
|
3882
3885
|
renderer,
|
|
@@ -5152,7 +5155,7 @@ Try \`wstack models refresh\` once you have network access, or run with --no-fea
|
|
|
5152
5155
|
}
|
|
5153
5156
|
}
|
|
5154
5157
|
const toolRegistry = new ToolRegistry();
|
|
5155
|
-
|
|
5158
|
+
toolRegistry.registerAllOrThrow([...builtinToolsPack.tools ?? []], builtinToolsPack.name);
|
|
5156
5159
|
toolRegistry.registerDefault(
|
|
5157
5160
|
createContextManagerTool({ compactor: container.resolve(TOKENS.Compactor) })
|
|
5158
5161
|
);
|
|
@@ -5554,7 +5557,14 @@ Try \`wstack models refresh\` once you have network access, or run with --no-fea
|
|
|
5554
5557
|
slashCommandRegistry: slashRegistry,
|
|
5555
5558
|
mcpRegistry,
|
|
5556
5559
|
config,
|
|
5557
|
-
log: logger
|
|
5560
|
+
log: logger,
|
|
5561
|
+
extensions: agent.extensions,
|
|
5562
|
+
sessionWriter: {
|
|
5563
|
+
transcriptPath: context.session.transcriptPath,
|
|
5564
|
+
append: (e) => context.session.append(e)
|
|
5565
|
+
},
|
|
5566
|
+
metricsSink,
|
|
5567
|
+
configStore
|
|
5558
5568
|
})
|
|
5559
5569
|
});
|
|
5560
5570
|
}
|