@ai-sdk/harness-claude-code 1.0.175 → 1.0.176
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/CHANGELOG.md +12 -0
- package/dist/bridge/index.mjs +106 -6
- package/dist/bridge/index.mjs.map +1 -1
- package/dist/index.js +10 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/bridge/index.ts +88 -8
- package/src/bridge/permission-paths.ts +108 -0
- package/src/claude-code-bridge-protocol.ts +1 -0
- package/src/claude-code-harness.ts +12 -2
package/dist/index.js
CHANGED
|
@@ -293,6 +293,7 @@ const skillOverridesSchema = z.record(z.string(), z.enum([
|
|
|
293
293
|
]));
|
|
294
294
|
const startMessageSchema = harnessV1BridgeStartBaseSchema.extend({
|
|
295
295
|
prompt: harnessPromptContentSchema,
|
|
296
|
+
readableSkillRoots: z.array(z.string()).optional(),
|
|
296
297
|
instructions: z.string().optional(),
|
|
297
298
|
thinking: thinkingSchema,
|
|
298
299
|
effort: z.enum([
|
|
@@ -324,7 +325,7 @@ const startMessageSchema = harnessV1BridgeStartBaseSchema.extend({
|
|
|
324
325
|
z.discriminatedUnion("type", [startMessageSchema, ...harnessV1BridgeInboundCommandSchemas]);
|
|
325
326
|
//#endregion
|
|
326
327
|
//#region src/version.ts
|
|
327
|
-
const VERSION = "1.0.
|
|
328
|
+
const VERSION = "1.0.176";
|
|
328
329
|
//#endregion
|
|
329
330
|
//#region src/claude-code-harness.ts
|
|
330
331
|
/**
|
|
@@ -1425,7 +1426,10 @@ function createSession({ sessionId, channel, finishListenerAttachment, proc, max
|
|
|
1425
1426
|
...env !== void 0 ? { env } : {},
|
|
1426
1427
|
thinking,
|
|
1427
1428
|
...effort !== void 0 ? { effort } : {},
|
|
1428
|
-
...promptOpts.skills.length > 0 ? {
|
|
1429
|
+
...promptOpts.skills.length > 0 ? {
|
|
1430
|
+
skills: promptOpts.skills.map((skill) => skill.name),
|
|
1431
|
+
readableSkillRoots: promptOpts.skills.map((skill) => `${sandboxHomeDir}/.claude/skills/${skill.name}`)
|
|
1432
|
+
} : {},
|
|
1429
1433
|
...mcpServers == null ? {} : { mcpServers },
|
|
1430
1434
|
...toolHints == null ? {} : { toolHints },
|
|
1431
1435
|
...permissionMode ? { permissionMode } : {},
|
|
@@ -1465,7 +1469,10 @@ function createSession({ sessionId, channel, finishListenerAttachment, proc, max
|
|
|
1465
1469
|
...env !== void 0 ? { env } : {},
|
|
1466
1470
|
thinking,
|
|
1467
1471
|
...effort !== void 0 ? { effort } : {},
|
|
1468
|
-
...continueOpts.skills.length > 0 ? {
|
|
1472
|
+
...continueOpts.skills.length > 0 ? {
|
|
1473
|
+
skills: continueOpts.skills.map((skill) => skill.name),
|
|
1474
|
+
readableSkillRoots: continueOpts.skills.map((skill) => `${sandboxHomeDir}/.claude/skills/${skill.name}`)
|
|
1475
|
+
} : {},
|
|
1469
1476
|
...mcpServers == null ? {} : { mcpServers },
|
|
1470
1477
|
...toolHints == null ? {} : { toolHints },
|
|
1471
1478
|
...permissionMode ? { permissionMode } : {},
|