pal-code 0.0.5 → 0.0.6
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/package.json +4 -1
- package/packages/cli/src/commands/mcp-registry.ts +1 -1
- package/packages/cli/src/commands/mcp.ts +2 -2
- package/packages/cli/src/config.ts +2 -2
- package/packages/cli/src/index.ts +2 -2
- package/packages/cli/src/state.ts +1 -1
- package/packages/cli/src/turn.ts +2 -2
- package/packages/core/src/agent/roles.ts +1 -1
- package/packages/core/src/extensions.ts +2 -2
- package/scripts/postinstall.js +2 -2
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pal-code",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "A terminal coding agent with BYOK, tool use, and extensions",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
7
7
|
"bun": ">=1.1.0"
|
|
8
8
|
},
|
|
9
|
+
"workspaces": [
|
|
10
|
+
"packages/*"
|
|
11
|
+
],
|
|
9
12
|
"repository": {
|
|
10
13
|
"type": "git",
|
|
11
14
|
"url": "https://github.com/fngadiyo/the-agent.git"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @pal/mcp — CLI commands for managing MCP server configuration.
|
|
2
|
+
* @pal-code/mcp — CLI commands for managing MCP server configuration.
|
|
3
3
|
*
|
|
4
4
|
* Subcommands:
|
|
5
5
|
* /mcp add <name> <command> [args...] — Add an MCP server
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
import {existsSync, readFileSync, writeFileSync} from 'node:fs';
|
|
14
14
|
import {join, resolve} from 'node:path';
|
|
15
15
|
import {homedir} from 'node:os';
|
|
16
|
-
import type {McpConfig, McpServerConfig} from '@pal/mcp';
|
|
16
|
+
import type {McpConfig, McpServerConfig} from '@pal-code/mcp';
|
|
17
17
|
|
|
18
18
|
const CONFIG_FILENAME = 'mcp.json';
|
|
19
19
|
|
|
@@ -18,7 +18,7 @@ export interface Config {
|
|
|
18
18
|
retryBaseMs: number;
|
|
19
19
|
contextLimit: number;
|
|
20
20
|
reasoningEffort: 'low' | 'medium' | 'high';
|
|
21
|
-
/** Extension package names to load (default: ['@pal/web-search']). */
|
|
21
|
+
/** Extension package names to load (default: ['@pal-code/web-search']). */
|
|
22
22
|
extensions: string[];
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -75,7 +75,7 @@ export function loadConfig(): Config {
|
|
|
75
75
|
|
|
76
76
|
// Extensions: use saved list or default to the shipped set.
|
|
77
77
|
const savedExtensions = Array.isArray(saved.extensions) ? saved.extensions : undefined;
|
|
78
|
-
const extensions = savedExtensions ?? ['@pal/web-search', '@pal/agents', '@pal/mcp'];
|
|
78
|
+
const extensions = savedExtensions ?? ['@pal-code/web-search', '@pal-code/agents', '@pal-code/mcp'];
|
|
79
79
|
|
|
80
80
|
return {
|
|
81
81
|
model: strEnv('MODEL', strEnv('PAL_MODEL', savedModel ?? 'deepseek/deepseek-chat')),
|
|
@@ -941,10 +941,10 @@ async function main() {
|
|
|
941
941
|
process.exit(0);
|
|
942
942
|
}
|
|
943
943
|
if (trimmed === '/roles') {
|
|
944
|
-
const mod = await import('@pal/agents').catch(() => null);
|
|
944
|
+
const mod = await import('@pal-code/agents').catch(() => null);
|
|
945
945
|
if (!mod) {
|
|
946
946
|
messagesContainer.addChild(
|
|
947
|
-
new Text(`${c.dim} @pal/agents is not installed${c.reset}`, 1, 0),
|
|
947
|
+
new Text(`${c.dim} @pal-code/agents is not installed${c.reset}`, 1, 0),
|
|
948
948
|
);
|
|
949
949
|
} else {
|
|
950
950
|
const lines = mod.formatRoles().split('\n');
|
|
@@ -45,7 +45,7 @@ export interface TodoItem {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
export interface ExtensionInfo {
|
|
48
|
-
/** Extension package name (e.g. '@pal/web-search'). */
|
|
48
|
+
/** Extension package name (e.g. '@pal-code/web-search'). */
|
|
49
49
|
name: string;
|
|
50
50
|
/** Whether the extension loaded successfully and its tools are available. */
|
|
51
51
|
active: boolean;
|
package/packages/cli/src/turn.ts
CHANGED
|
@@ -40,7 +40,7 @@ export interface TurnResult {
|
|
|
40
40
|
let extensionsLoaded = false;
|
|
41
41
|
|
|
42
42
|
/** Default extension set when the user hasn't configured one. */
|
|
43
|
-
export const DEFAULT_EXTENSIONS = ['@pal/web-search', '@pal/agents', '@pal/mcp'];
|
|
43
|
+
export const DEFAULT_EXTENSIONS = ['@pal-code/web-search', '@pal-code/agents', '@pal-code/mcp'];
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
46
|
* Apply a successful load to the process: register tools + handlers centrally,
|
|
@@ -66,7 +66,7 @@ async function applyLoaded(
|
|
|
66
66
|
|
|
67
67
|
// Populate MCP server status for the sidebar (live from manager)
|
|
68
68
|
try {
|
|
69
|
-
const mcpMod = await import('@pal/mcp').catch(() => null);
|
|
69
|
+
const mcpMod = await import('@pal-code/mcp').catch(() => null);
|
|
70
70
|
if (mcpMod?.mcpManager) {
|
|
71
71
|
state.mcpServers = mcpMod.mcpManager.getServerDetails();
|
|
72
72
|
state.refreshSidebar();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Role registry — the seam between core's `delegate` tool and the orchestration
|
|
3
|
-
* extension (`@pal/agents`).
|
|
3
|
+
* extension (`@pal-code/agents`).
|
|
4
4
|
*
|
|
5
5
|
* Core must not import `.pal`-adjacent extension config, and extensions must not
|
|
6
6
|
* be required for delegation to work. So core defines the *shape* of a role and
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* `~/.pal/config.json`:
|
|
13
13
|
*
|
|
14
14
|
* ```json
|
|
15
|
-
* { "extensions": ["@pal/web-search", "@pal/agents"] }
|
|
15
|
+
* { "extensions": ["@pal-code/web-search", "@pal-code/agents"] }
|
|
16
16
|
* ```
|
|
17
17
|
*
|
|
18
18
|
* Resolution tries each root in `roots` (see `defaultExtensionRoots`) and falls
|
|
@@ -43,7 +43,7 @@ export interface ToolExtension {
|
|
|
43
43
|
/**
|
|
44
44
|
* Optional setup hook, called once after the extension loads. Lets an
|
|
45
45
|
* extension register process-wide capabilities that aren't tools — e.g.
|
|
46
|
-
* `@pal/agents` registers the role provider used by core's `delegate`.
|
|
46
|
+
* `@pal-code/agents` registers the role provider used by core's `delegate`.
|
|
47
47
|
*/
|
|
48
48
|
setup?: () => void | Promise<void>;
|
|
49
49
|
}
|
package/scripts/postinstall.js
CHANGED
|
@@ -109,8 +109,8 @@ console.log('║ First run starts the setup wizard. ║');
|
|
|
109
109
|
console.log('║ Pick a provider and enter your API key. ║');
|
|
110
110
|
console.log('║ ║');
|
|
111
111
|
console.log('║ Install extensions: ║');
|
|
112
|
-
console.log('║ pal add @pal/web-search
|
|
113
|
-
console.log('║ pal add @pal/agents
|
|
112
|
+
console.log('║ pal add @pal-code/web-search ║');
|
|
113
|
+
console.log('║ pal add @pal-code/agents ║');
|
|
114
114
|
console.log('║ ║');
|
|
115
115
|
console.log('║ Add MCP servers: ║');
|
|
116
116
|
console.log('║ pal mcp add <name> <command> [args] ║');
|