@clawos-dev/clawd 0.2.178 → 0.2.179
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/cli.cjs +2 -8
- package/dist/shift/mcp-server.cjs +1 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -253,11 +253,7 @@ var init_events = __esm({
|
|
|
253
253
|
"skill-hint",
|
|
254
254
|
"meta-text",
|
|
255
255
|
"attachment-skills",
|
|
256
|
-
"attachment-deferred-tools"
|
|
257
|
-
// clawd shift v1:scheduler fire 时 daemon 给新 cc 的首条 user message 用
|
|
258
|
-
// <clawd-shift-fire> wrap 起头;classifyUserMessage 识别后路由到 UserMetaLine 折叠渲染,
|
|
259
|
-
// 不显示成 user 气泡(避免 instruction 文本被当 owner 实时对话)。
|
|
260
|
-
"clawd-shift-fire"
|
|
256
|
+
"attachment-deferred-tools"
|
|
261
257
|
];
|
|
262
258
|
SKILL_SOURCE_VALUES = ["builtin", "global", "project", "plugin"];
|
|
263
259
|
AGENT_SOURCE_VALUES = [
|
|
@@ -11244,7 +11240,6 @@ function classifyUserMessage(input) {
|
|
|
11244
11240
|
if (SYSTEM_REMINDER_RE.test(text) || OPENSPEC_BLOCK_RE.test(text)) {
|
|
11245
11241
|
return { meta: "system-reminder" };
|
|
11246
11242
|
}
|
|
11247
|
-
if (CLAWD_SHIFT_FIRE_RE.test(text)) return { meta: "clawd-shift-fire" };
|
|
11248
11243
|
if (SKILL_HINT_RE.test(text)) return { meta: "skill-hint" };
|
|
11249
11244
|
const flags = raw;
|
|
11250
11245
|
if (flags.isMeta === true || flags.isSynthetic === true) return { meta: "meta-text" };
|
|
@@ -11459,7 +11454,7 @@ function readCurrentContent(filePath) {
|
|
|
11459
11454
|
return null;
|
|
11460
11455
|
}
|
|
11461
11456
|
}
|
|
11462
|
-
var import_node_fs10, import_node_os5, import_node_path9, TASK_NOTIFICATION_RE, TASK_ID_RE, TOOL_USE_ID_RE, SLASH_COMMAND_RE, LOCAL_COMMAND_RE, SYSTEM_REMINDER_RE, OPENSPEC_BLOCK_RE, SKILL_HINT_RE,
|
|
11457
|
+
var import_node_fs10, import_node_os5, import_node_path9, TASK_NOTIFICATION_RE, TASK_ID_RE, TOOL_USE_ID_RE, SLASH_COMMAND_RE, LOCAL_COMMAND_RE, SYSTEM_REMINDER_RE, OPENSPEC_BLOCK_RE, SKILL_HINT_RE, ATTACHMENT_SILENT_SUBTYPES, ClaudeHistoryReader;
|
|
11463
11458
|
var init_claude_history = __esm({
|
|
11464
11459
|
"src/tools/claude-history.ts"() {
|
|
11465
11460
|
"use strict";
|
|
@@ -11476,7 +11471,6 @@ var init_claude_history = __esm({
|
|
|
11476
11471
|
SYSTEM_REMINDER_RE = /^\s*<system-reminder\b/i;
|
|
11477
11472
|
OPENSPEC_BLOCK_RE = /^\s*<!--\s*OPENSPEC\b/i;
|
|
11478
11473
|
SKILL_HINT_RE = /^\s*Base directory for this skill:\s/;
|
|
11479
|
-
CLAWD_SHIFT_FIRE_RE = /^\s*<clawd-shift-fire\b/i;
|
|
11480
11474
|
ATTACHMENT_SILENT_SUBTYPES = /* @__PURE__ */ new Set([
|
|
11481
11475
|
"hook_additional_context",
|
|
11482
11476
|
"hook_success",
|
|
@@ -21252,7 +21252,7 @@ async function main() {
|
|
|
21252
21252
|
name: external_exports.string().describe("short label shown in shift.json + future UI"),
|
|
21253
21253
|
schedule: ScheduleSchema,
|
|
21254
21254
|
prompt: external_exports.string().describe(
|
|
21255
|
-
"instruction the spawned cc executes on startup (NOT a chat message from the owner). Write what you want the persona to DO or SAY at fire time, in instruction form \u2014 daemon wraps it in a
|
|
21255
|
+
"instruction the spawned cc executes on startup (NOT a chat message from the owner). Write what you want the persona to DO or SAY at fire time, in instruction form \u2014 daemon wraps it in a `<clawd-shift-fire>` tag so the spawned cc treats it as a scheduled action and responds as an assistant turn (the wrap is stripped from the owner's UI bubble)."
|
|
21256
21256
|
),
|
|
21257
21257
|
targetPersona: external_exports.string().optional().describe("which persona to spawn; defaults to the calling persona"),
|
|
21258
21258
|
timeoutMs: external_exports.number().optional().describe("hard timeout per fire; default 30 minutes")
|