@parall/claude-agent 1.53.0 → 1.55.0

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.
@@ -1,6 +1,6 @@
1
1
  import type { AgentIdentity } from '@parall/agent-core';
2
2
  export declare function writeClaudeSystemPrompt(workspaceDir: string, agentIdentity?: AgentIdentity, capabilityFragments?: string[]): void;
3
- export declare function ensureClaudeWorkspace(workspaceDir: string, log?: {
3
+ export declare function ensureClaudeWorkspace(workspaceDir: string, _log?: {
4
4
  warn: (msg: string) => void;
5
5
  }, agentIdentity?: AgentIdentity, capabilityFragments?: string[]): void;
6
6
  //# sourceMappingURL=workspace.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../src/workspace.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AA8BxD,wBAAgB,uBAAuB,CACrC,YAAY,EAAE,MAAM,EACpB,aAAa,CAAC,EAAE,aAAa,EAC7B,mBAAmB,CAAC,EAAE,MAAM,EAAE,QAgB/B;AAED,wBAAgB,qBAAqB,CACnC,YAAY,EAAE,MAAM,EACpB,GAAG,CAAC,EAAE;IAAE,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,EACrC,aAAa,CAAC,EAAE,aAAa,EAC7B,mBAAmB,CAAC,EAAE,MAAM,EAAE,QAW/B"}
1
+ {"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../src/workspace.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAqBxD,wBAAgB,uBAAuB,CACrC,YAAY,EAAE,MAAM,EACpB,aAAa,CAAC,EAAE,aAAa,EAC7B,mBAAmB,CAAC,EAAE,MAAM,EAAE,QAgB/B;AAED,wBAAgB,qBAAqB,CACnC,YAAY,EAAE,MAAM,EACpB,IAAI,CAAC,EAAE;IAAE,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,EACtC,aAAa,CAAC,EAAE,aAAa,EAC7B,mBAAmB,CAAC,EAAE,MAAM,EAAE,QAW/B"}
package/dist/workspace.js CHANGED
@@ -1,23 +1,13 @@
1
1
  import * as fs from 'node:fs';
2
2
  import * as path from 'node:path';
3
- import { BRIDGE_WORKSPACE_INSTRUCTIONS, PRLL_BEHAVIOR, PRLL_REFERENCE_GUIDE, buildIdentity, buildSkillReferences, writeSkillFiles, } from '@parall/agent-core';
3
+ import { buildBridgePlatformInstructions, writeSkillFiles } from '@parall/agent-core';
4
4
  import { ensureLocalAttachmentGitExclude } from '@parall/agent-core/internal/attachment-input';
5
5
  // buildClaudeSystemPrompt assembles the standing system prompt. capabilityFragments
6
6
  // are platform-derived capability declarations (agents.capabilities[].fragment
7
7
  // from platform-config) — placed after the platform reference guide, before
8
8
  // skill references. Empty/absent = no capability section.
9
9
  function buildClaudeSystemPrompt(workspaceDir, agentIdentity, capabilityFragments) {
10
- const parts = [
11
- buildIdentity(agentIdentity),
12
- BRIDGE_WORKSPACE_INSTRUCTIONS,
13
- PRLL_BEHAVIOR,
14
- PRLL_REFERENCE_GUIDE,
15
- ];
16
- if (capabilityFragments && capabilityFragments.length > 0) {
17
- parts.push(capabilityFragments.join('\n\n'));
18
- }
19
- parts.push(buildSkillReferences(workspaceDir));
20
- return parts.join('\n\n');
10
+ return buildBridgePlatformInstructions(workspaceDir, agentIdentity, capabilityFragments);
21
11
  }
22
12
  // writeClaudeSystemPrompt (re)writes .parall/system-prompt.md. Split out from
23
13
  // ensureClaudeWorkspace so the bridge can rewrite it when platform-config
@@ -36,7 +26,7 @@ export function writeClaudeSystemPrompt(workspaceDir, agentIdentity, capabilityF
36
26
  fs.mkdirSync(parallDir, { recursive: true });
37
27
  fs.writeFileSync(path.join(parallDir, 'system-prompt.md'), buildClaudeSystemPrompt(workspaceDir, agentIdentity, capabilityFragments), 'utf8');
38
28
  }
39
- export function ensureClaudeWorkspace(workspaceDir, log, agentIdentity, capabilityFragments) {
29
+ export function ensureClaudeWorkspace(workspaceDir, _log, agentIdentity, capabilityFragments) {
40
30
  fs.mkdirSync(workspaceDir, { recursive: true });
41
31
  fs.mkdirSync(path.join(workspaceDir, '.claude'), { recursive: true });
42
32
  // Boot: let a write failure PROPAGATE (fatal) — startup must not proceed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parall/claude-agent",
3
- "version": "1.53.0",
3
+ "version": "1.55.0",
4
4
  "description": "Claude Code bridge runtime for self-hosted Parall agents",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -25,9 +25,9 @@
25
25
  "src"
26
26
  ],
27
27
  "dependencies": {
28
- "@parall/agent-core": "1.53.0",
29
- "@parall/cli": "1.53.0",
30
- "@parall/sdk": "1.53.0"
28
+ "@parall/agent-core": "1.55.0",
29
+ "@parall/cli": "1.55.0",
30
+ "@parall/sdk": "1.55.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^22.0.0",
package/src/workspace.ts CHANGED
@@ -1,14 +1,7 @@
1
1
  import * as fs from 'node:fs';
2
2
  import * as path from 'node:path';
3
- import {
4
- BRIDGE_WORKSPACE_INSTRUCTIONS,
5
- PRLL_BEHAVIOR,
6
- PRLL_REFERENCE_GUIDE,
7
- buildIdentity,
8
- buildSkillReferences,
9
- writeSkillFiles,
10
- } from '@parall/agent-core';
11
3
  import type { AgentIdentity } from '@parall/agent-core';
4
+ import { buildBridgePlatformInstructions, writeSkillFiles } from '@parall/agent-core';
12
5
  import { ensureLocalAttachmentGitExclude } from '@parall/agent-core/internal/attachment-input';
13
6
 
14
7
  // buildClaudeSystemPrompt assembles the standing system prompt. capabilityFragments
@@ -20,17 +13,7 @@ function buildClaudeSystemPrompt(
20
13
  agentIdentity?: AgentIdentity,
21
14
  capabilityFragments?: string[],
22
15
  ): string {
23
- const parts = [
24
- buildIdentity(agentIdentity),
25
- BRIDGE_WORKSPACE_INSTRUCTIONS,
26
- PRLL_BEHAVIOR,
27
- PRLL_REFERENCE_GUIDE,
28
- ];
29
- if (capabilityFragments && capabilityFragments.length > 0) {
30
- parts.push(capabilityFragments.join('\n\n'));
31
- }
32
- parts.push(buildSkillReferences(workspaceDir));
33
- return parts.join('\n\n');
16
+ return buildBridgePlatformInstructions(workspaceDir, agentIdentity, capabilityFragments);
34
17
  }
35
18
 
36
19
  // writeClaudeSystemPrompt (re)writes .parall/system-prompt.md. Split out from
@@ -61,7 +44,7 @@ export function writeClaudeSystemPrompt(
61
44
 
62
45
  export function ensureClaudeWorkspace(
63
46
  workspaceDir: string,
64
- log?: { warn: (msg: string) => void },
47
+ _log?: { warn: (msg: string) => void },
65
48
  agentIdentity?: AgentIdentity,
66
49
  capabilityFragments?: string[],
67
50
  ) {