@clawos-dev/clawd 0.2.133-beta.267.2f96ec6 → 0.2.133-beta.269.64cd75d
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 +21 -2
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -4579,7 +4579,7 @@ var init_persona_schemas = __esm({
|
|
|
4579
4579
|
});
|
|
4580
4580
|
|
|
4581
4581
|
// ../protocol/src/schemas.ts
|
|
4582
|
-
var SessionStatusSchema, UsageSchema, ContextUsageSchema, sessionMetaShape, SessionMetaSchema, ModelInfoSchema, ModeInfoSchema, ConfigFieldSchemaSchema, CapabilitiesGetArgs, CapabilitiesResponseSchema, AllowRuleSchema, SessionFileSchema, ParsedEventBase, HistoryUserMetaSchema, SubagentToolStatsSchema, StructuredPatchHunkSchema, ToolResultExtraSchema, MemoryEntrySchema, AskQuestionOptionSchema, AskQuestionItemSchema, ParsedEventSchema, SessionCreateArgs, SessionIdArgs, SessionUpdateArgs, SessionSendArgs, SessionRewindArgs, SessionRewindResponseSchema, SessionRewindDiffArgs, RewindDiffHunkSchema, RewindDiffFileSchema, SessionRewindDiffResponseSchema, SessionRewindableMessageIdsArgs, SessionRewindableMessageIdsResponseSchema, SessionResumeArgs, SessionForkArgs, SessionForkResponseSchema, SessionObserveArgs, SessionEventsArgs, PermissionRespondArgs, HistoryListArgs, HistoryReadArgs, HistorySubagentsArgs, HistorySubagentReadArgs, WorkspaceListArgs, WorkspaceReadArgs, SkillsListArgs, SkillEntrySchema, AgentEntrySchema, AgentsListArgs, AgentsListResponseSchema, SessionSubscribeArgs, SessionPinArgs, PeerSessionUpsertArgs, PeerSessionUpsertResponseSchema, PeerSessionRemoveArgs, PeerSessionRemoveResponseSchema, SessionReorderPinsArgs, GitRootArgs, GitRootResponseSchema, GitBranchArgs, GitBranchResponseSchema, GitBranchesArgs, GitBranchesResponseSchema, HistoryRecentDirsArgs, RecentDirEntrySchema, HistoryRecentDirsResponseSchema, SessionQuestionFrameSchema, SessionQuestionClearedFrameSchema, AnswerQuestionArgs, AnswerQuestionResponseSchema, CancelQuestionArgs, CancelQuestionResponseSchema, AuthRequestFrameSchema, AuthOkFrameSchema, TunnelReadyEventSchema, TunnelExitedEventSchema, TunnelUnavailableEventSchema, InfoRunningSessionSchema, InfoResponseSchema, PROJECT_PORT_MIN, PROJECT_PORT_MAX, projectNameRegex, DEFAULT_DEV_COMMAND, ProjectMetadataSchema, PROJECT_STAGE_VALUES, ProjectStageSchema, ProjectWithStatusSchema, ListProjectsArgsSchema, ListProjectsResultSchema, GetProjectArgsSchema, GetProjectResultSchema, CreateProjectArgsSchema, CreateProjectResultSchema, DeleteProjectArgsSchema, DeleteProjectResultSchema, UpdateProjectPortArgsSchema, UpdateProjectPortResultSchema, SetProdUrlArgsSchema, SetProdUrlResultSchema, StartDevServerArgsSchema, StartDevServerResultSchema, ASSISTANT_REPORTABLE_STAGES, ReportStageArgsSchema, ReportStageResultSchema, StopDevServerArgsSchema, StopDevServerResultSchema, AppBuilderProjectUpdatedEventSchema, PublishArgsSchema, PublishResultSchema, DismissPublishJobArgsSchema, DismissPublishJobResultSchema, AppBuilderPublishProgressEventSchema, AppBuilderPublishFailedEventSchema;
|
|
4582
|
+
var SessionStatusSchema, UsageSchema, ContextUsageSchema, sessionMetaShape, SessionMetaSchema, ModelInfoSchema, ModeInfoSchema, ConfigFieldSchemaSchema, CapabilitiesGetArgs, ToolFeaturesSchema, CapabilitiesResponseSchema, AllowRuleSchema, SessionFileSchema, ParsedEventBase, HistoryUserMetaSchema, SubagentToolStatsSchema, StructuredPatchHunkSchema, ToolResultExtraSchema, MemoryEntrySchema, AskQuestionOptionSchema, AskQuestionItemSchema, ParsedEventSchema, SessionCreateArgs, SessionIdArgs, SessionUpdateArgs, SessionSendArgs, SessionRewindArgs, SessionRewindResponseSchema, SessionRewindDiffArgs, RewindDiffHunkSchema, RewindDiffFileSchema, SessionRewindDiffResponseSchema, SessionRewindableMessageIdsArgs, SessionRewindableMessageIdsResponseSchema, SessionResumeArgs, SessionForkArgs, SessionForkResponseSchema, SessionObserveArgs, SessionEventsArgs, PermissionRespondArgs, HistoryListArgs, HistoryReadArgs, HistorySubagentsArgs, HistorySubagentReadArgs, WorkspaceListArgs, WorkspaceReadArgs, SkillsListArgs, SkillEntrySchema, AgentEntrySchema, AgentsListArgs, AgentsListResponseSchema, SessionSubscribeArgs, SessionPinArgs, PeerSessionUpsertArgs, PeerSessionUpsertResponseSchema, PeerSessionRemoveArgs, PeerSessionRemoveResponseSchema, SessionReorderPinsArgs, GitRootArgs, GitRootResponseSchema, GitBranchArgs, GitBranchResponseSchema, GitBranchesArgs, GitBranchesResponseSchema, HistoryRecentDirsArgs, RecentDirEntrySchema, HistoryRecentDirsResponseSchema, SessionQuestionFrameSchema, SessionQuestionClearedFrameSchema, AnswerQuestionArgs, AnswerQuestionResponseSchema, CancelQuestionArgs, CancelQuestionResponseSchema, AuthRequestFrameSchema, AuthOkFrameSchema, TunnelReadyEventSchema, TunnelExitedEventSchema, TunnelUnavailableEventSchema, InfoRunningSessionSchema, InfoResponseSchema, PROJECT_PORT_MIN, PROJECT_PORT_MAX, projectNameRegex, DEFAULT_DEV_COMMAND, ProjectMetadataSchema, PROJECT_STAGE_VALUES, ProjectStageSchema, ProjectWithStatusSchema, ListProjectsArgsSchema, ListProjectsResultSchema, GetProjectArgsSchema, GetProjectResultSchema, CreateProjectArgsSchema, CreateProjectResultSchema, DeleteProjectArgsSchema, DeleteProjectResultSchema, UpdateProjectPortArgsSchema, UpdateProjectPortResultSchema, SetProdUrlArgsSchema, SetProdUrlResultSchema, StartDevServerArgsSchema, StartDevServerResultSchema, ASSISTANT_REPORTABLE_STAGES, ReportStageArgsSchema, ReportStageResultSchema, StopDevServerArgsSchema, StopDevServerResultSchema, AppBuilderProjectUpdatedEventSchema, PublishArgsSchema, PublishResultSchema, DismissPublishJobArgsSchema, DismissPublishJobResultSchema, AppBuilderPublishProgressEventSchema, AppBuilderPublishFailedEventSchema;
|
|
4583
4583
|
var init_schemas = __esm({
|
|
4584
4584
|
"../protocol/src/schemas.ts"() {
|
|
4585
4585
|
"use strict";
|
|
@@ -4637,12 +4637,20 @@ var init_schemas = __esm({
|
|
|
4637
4637
|
CapabilitiesGetArgs = external_exports.object({
|
|
4638
4638
|
tool: external_exports.string().min(1)
|
|
4639
4639
|
});
|
|
4640
|
+
ToolFeaturesSchema = external_exports.object({
|
|
4641
|
+
rewind: external_exports.boolean(),
|
|
4642
|
+
subagents: external_exports.boolean(),
|
|
4643
|
+
tui: external_exports.boolean(),
|
|
4644
|
+
observe: external_exports.boolean(),
|
|
4645
|
+
fileSharing: external_exports.boolean()
|
|
4646
|
+
});
|
|
4640
4647
|
CapabilitiesResponseSchema = external_exports.object({
|
|
4641
4648
|
tool: external_exports.string().min(1),
|
|
4642
4649
|
toolSessionIdLabel: external_exports.string().optional(),
|
|
4643
4650
|
models: external_exports.array(ModelInfoSchema),
|
|
4644
4651
|
permissionModes: external_exports.array(ModeInfoSchema),
|
|
4645
|
-
configSchema: external_exports.array(ConfigFieldSchemaSchema)
|
|
4652
|
+
configSchema: external_exports.array(ConfigFieldSchemaSchema),
|
|
4653
|
+
features: ToolFeaturesSchema
|
|
4646
4654
|
});
|
|
4647
4655
|
AllowRuleSchema = external_exports.object({
|
|
4648
4656
|
tool: external_exports.string().min(1),
|
|
@@ -12224,6 +12232,7 @@ var init_claude = __esm({
|
|
|
12224
12232
|
toolSessionIdLabel: "Claude Session ID",
|
|
12225
12233
|
models: CLAUDE_MODELS,
|
|
12226
12234
|
permissionModes: CLAUDE_PERMISSION_MODES,
|
|
12235
|
+
features: { rewind: true, subagents: true, tui: true, observe: true, fileSharing: true },
|
|
12227
12236
|
configSchema: [
|
|
12228
12237
|
{
|
|
12229
12238
|
name: "model",
|
|
@@ -35523,6 +35532,9 @@ var CODEX_CAPABILITIES = {
|
|
|
35523
35532
|
toolSessionIdLabel: "Codex Thread ID",
|
|
35524
35533
|
models: CODEX_MODELS,
|
|
35525
35534
|
permissionModes: CODEX_SANDBOX_MODES,
|
|
35535
|
+
// codex 不支持这些 clawd 功能(rewind 无 file-snapshot / 无子 agent / 无 TUI pty /
|
|
35536
|
+
// 无 observe 推送 / 无文件分享);UI 据此 gate 入口。
|
|
35537
|
+
features: { rewind: false, subagents: false, tui: false, observe: false, fileSharing: false },
|
|
35526
35538
|
configSchema: [
|
|
35527
35539
|
{
|
|
35528
35540
|
name: "model",
|
|
@@ -40890,6 +40902,13 @@ function buildSessionHandlers(deps) {
|
|
|
40890
40902
|
const sessionFile = file;
|
|
40891
40903
|
manager.ensureSession(sessionFile);
|
|
40892
40904
|
const adapter = getAdapter2(sessionFile.tool ?? "claude");
|
|
40905
|
+
const caps = await adapter.capabilities();
|
|
40906
|
+
if (caps.features.observe === false) {
|
|
40907
|
+
throw new ClawdError(
|
|
40908
|
+
ERROR_CODES.TOOL_NOT_SUPPORTED,
|
|
40909
|
+
`tool ${sessionFile.tool ?? "claude"} does not support observe`
|
|
40910
|
+
);
|
|
40911
|
+
}
|
|
40893
40912
|
observer.start({
|
|
40894
40913
|
sessionId: args.sessionId,
|
|
40895
40914
|
cwd: sessionFile.cwd,
|
package/package.json
CHANGED