shennian 0.5.0 → 0.5.2
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/README.md +2 -2
- package/dist/publish-build-manifest.json +165 -125
- package/dist/src/agents/acp/adapter.js +2 -2
- package/dist/src/agents/acp/capability-cache.js +2 -2
- package/dist/src/agents/acp/catalog.js +2 -2
- package/dist/src/agents/acp/manifests.js +2 -2
- package/dist/src/agents/claude.js +8 -6
- package/dist/src/agents/codex.js +2 -2
- package/dist/src/agents/command-spec.js +4 -4
- package/dist/src/agents/cursor.js +1 -1
- package/dist/src/agents/custom-recovery-conformance.js +2 -2
- package/dist/src/agents/gemini.js +1 -1
- package/dist/src/agents/model-registry/discovery.js +3 -3
- package/dist/src/agents/model-registry/service.js +1 -1
- package/dist/src/agents/model-registry.js +1 -1
- package/dist/src/agents/openclaw.js +2 -2
- package/dist/src/agents/opencode.js +1 -1
- package/dist/src/agents/pi-coding-agent.js +3 -4
- package/dist/src/agents/pi-session-ownership.js +2 -2
- package/dist/src/agents/spawn-errors.js +1 -0
- package/dist/src/agents/windows-agent-paths.js +1 -0
- package/dist/src/commands/agent-readiness.js +2 -2
- package/dist/src/commands/daemon-service-spec.js +1 -1
- package/dist/src/commands/daemon.js +6 -6
- package/dist/src/commands/queue.js +1 -0
- package/dist/src/commands/room.js +3 -3
- package/dist/src/config/index.js +2 -2
- package/dist/src/fs/atomic-rename.js +1 -0
- package/dist/src/index.js +3 -3
- package/dist/src/native-fusion/claude-entry-parser.js +7 -0
- package/dist/src/native-fusion/local-repository.js +2 -2
- package/dist/src/native-fusion/native-source-deletions.js +2 -2
- package/dist/src/native-fusion/parsers.js +1 -3
- package/dist/src/native-fusion/state.js +2 -2
- package/dist/src/personal-sync/epoch.js +2 -2
- package/dist/src/personal-sync/identity.js +2 -2
- package/dist/src/relay/client.js +1 -1
- package/dist/src/room/activation-service.js +6 -6
- package/dist/src/room/attachment-cache.js +2 -2
- package/dist/src/room/host-session-observations.js +2 -2
- package/dist/src/room/managed-context.js +1 -1
- package/dist/src/room/managed-room-ipc.js +2 -2
- package/dist/src/room/mirror-sync-service.js +1 -1
- package/dist/src/room/public-attachment-cache.js +2 -2
- package/dist/src/room/room-error-guidance.js +1 -0
- package/dist/src/room/session-registry.js +2 -2
- package/dist/src/security/managed-agent-policy.js +1 -1
- package/dist/src/security/managed-agent-runtime.js +1 -1
- package/dist/src/session/attachment-transfer-store.js +2 -2
- package/dist/src/session/canonical-store.js +5 -5
- package/dist/src/session/deletion-sync-state.js +2 -2
- package/dist/src/session/handlers/agent-workspace-validation.js +1 -1
- package/dist/src/session/handlers/chat-adapter-config.js +1 -1
- package/dist/src/session/handlers/chat-events.js +2 -2
- package/dist/src/session/handlers/chat-recovery.js +1 -1
- package/dist/src/session/handlers/chat.js +1 -1
- package/dist/src/session/manager.js +1 -1
- package/dist/src/session/native-cleanup-outbox.js +2 -2
- package/dist/src/session/queue-diagnostics.js +1 -0
- package/dist/src/session/queue-dispatch-failure.js +1 -0
- package/dist/src/session/queue-helpers.js +5 -5
- package/dist/src/session/queue-retry.js +1 -1
- package/dist/src/session/queue-storage.js +2 -2
- package/dist/src/session/queue.js +1 -1
- package/dist/src/session/room-reply-notice.js +1 -0
- package/dist/src/session/run-recovery/journal.js +2 -2
- package/dist/src/session/run-stall.js +1 -0
- package/dist/src/session/store.js +2 -2
- package/dist/src/session/tool-detail-store.js +2 -2
- package/node_modules/@shennian/wire/dist/agent-capabilities.js +1 -1
- package/node_modules/@shennian/wire/dist/agent-workspace.js +1 -144
- package/node_modules/@shennian/wire/dist/envelope.js +1 -1
- package/node_modules/@shennian/wire/dist/events.js +1 -1
- package/node_modules/@shennian/wire/dist/external-message-format.js +3 -70
- package/node_modules/@shennian/wire/dist/frames.js +1 -1
- package/node_modules/@shennian/wire/dist/fs.js +2 -7
- package/node_modules/@shennian/wire/dist/index.js +1 -21
- package/node_modules/@shennian/wire/dist/machine.js +1 -1
- package/node_modules/@shennian/wire/dist/message-payload.js +8 -307
- package/node_modules/@shennian/wire/dist/methods.js +1 -3
- package/node_modules/@shennian/wire/dist/native-session.js +1 -1
- package/node_modules/@shennian/wire/dist/project-fs.js +1 -462
- package/node_modules/@shennian/wire/dist/project-path.js +1 -25
- package/node_modules/@shennian/wire/dist/project.js +1 -3
- package/node_modules/@shennian/wire/dist/relay-connectivity.js +1 -29
- package/node_modules/@shennian/wire/dist/room.js +1 -20
- package/node_modules/@shennian/wire/dist/schedule.js +1 -1
- package/node_modules/@shennian/wire/dist/session-sync.js +1 -123
- package/node_modules/@shennian/wire/dist/session.js +1 -60
- package/node_modules/@shennian/wire/dist/tool-detail.js +1 -9
- package/node_modules/@shennian/wire/dist/voice-chief.js +1 -3
- package/package.json +3 -8
- package/dist/bin/shennian.d.ts +0 -2
- package/dist/src/agent-env.d.ts +0 -44
- package/dist/src/agents/acp/adapter.d.ts +0 -82
- package/dist/src/agents/acp/auth-state.d.ts +0 -3
- package/dist/src/agents/acp/auth.d.ts +0 -7
- package/dist/src/agents/acp/capability-cache.d.ts +0 -14
- package/dist/src/agents/acp/catalog.d.ts +0 -11
- package/dist/src/agents/acp/client-services.d.ts +0 -37
- package/dist/src/agents/acp/discovery.d.ts +0 -10
- package/dist/src/agents/acp/events.d.ts +0 -4
- package/dist/src/agents/acp/manifests.d.ts +0 -63
- package/dist/src/agents/acp/metrics.d.ts +0 -24
- package/dist/src/agents/acp/package-commands.d.ts +0 -4
- package/dist/src/agents/acp/process-client.d.ts +0 -41
- package/dist/src/agents/acp/process-tree.d.ts +0 -2
- package/dist/src/agents/acp/types.d.ts +0 -31
- package/dist/src/agents/acp/watcher.d.ts +0 -22
- package/dist/src/agents/adapter.d.ts +0 -180
- package/dist/src/agents/auth-status.d.ts +0 -4
- package/dist/src/agents/claude-managed-permissions.d.ts +0 -33
- package/dist/src/agents/claude.d.ts +0 -69
- package/dist/src/agents/codex-managed-permissions.d.ts +0 -32
- package/dist/src/agents/codex-managed-room-tools.d.ts +0 -41
- package/dist/src/agents/codex-protocol.d.ts +0 -103
- package/dist/src/agents/codex-runtime.d.ts +0 -91
- package/dist/src/agents/codex-utils.d.ts +0 -29
- package/dist/src/agents/codex.d.ts +0 -59
- package/dist/src/agents/command-spec.d.ts +0 -55
- package/dist/src/agents/config-status.d.ts +0 -18
- package/dist/src/agents/cursor-managed-permissions.d.ts +0 -28
- package/dist/src/agents/cursor.d.ts +0 -44
- package/dist/src/agents/custom-managed-runtime.d.ts +0 -37
- package/dist/src/agents/custom-recovery-conformance.d.ts +0 -2
- package/dist/src/agents/custom.d.ts +0 -62
- package/dist/src/agents/detect.d.ts +0 -23
- package/dist/src/agents/event-terminal-gate.d.ts +0 -16
- package/dist/src/agents/external-channel-instructions.d.ts +0 -4
- package/dist/src/agents/gemini.d.ts +0 -32
- package/dist/src/agents/manager.d.ts +0 -57
- package/dist/src/agents/model-registry/cache.d.ts +0 -4
- package/dist/src/agents/model-registry/discovery.d.ts +0 -4
- package/dist/src/agents/model-registry/opencode-api.d.ts +0 -2
- package/dist/src/agents/model-registry/parsers.d.ts +0 -20
- package/dist/src/agents/model-registry/runner.d.ts +0 -6
- package/dist/src/agents/model-registry/service.d.ts +0 -10
- package/dist/src/agents/model-registry/types.d.ts +0 -39
- package/dist/src/agents/model-registry.d.ts +0 -17
- package/dist/src/agents/native-capabilities.d.ts +0 -10
- package/dist/src/agents/openclaw.d.ts +0 -29
- package/dist/src/agents/opencode-managed-permissions.d.ts +0 -25
- package/dist/src/agents/opencode.d.ts +0 -46
- package/dist/src/agents/pi-coding-agent-managed-permissions.d.ts +0 -7
- package/dist/src/agents/pi-coding-agent.d.ts +0 -63
- package/dist/src/agents/pi-managed-extension.d.ts +0 -12
- package/dist/src/agents/pi-managed-model-broker.d.ts +0 -27
- package/dist/src/agents/pi-managed-model-broker.js +0 -1
- package/dist/src/agents/pi-rpc-client.d.ts +0 -31
- package/dist/src/agents/pi-session-ownership.d.ts +0 -2
- package/dist/src/agents/platform-instructions.d.ts +0 -5
- package/dist/src/agents/runtime-compatibility.d.ts +0 -11
- package/dist/src/agents/workbuddy-managed-permissions.d.ts +0 -37
- package/dist/src/agents/workbuddy.d.ts +0 -63
- package/dist/src/commands/agent-readiness.d.ts +0 -17
- package/dist/src/commands/agent.d.ts +0 -2
- package/dist/src/commands/daemon-instance-lock.d.ts +0 -21
- package/dist/src/commands/daemon-process.d.ts +0 -6
- package/dist/src/commands/daemon-service-spec.d.ts +0 -26
- package/dist/src/commands/daemon-start-wait.d.ts +0 -9
- package/dist/src/commands/daemon-state.d.ts +0 -57
- package/dist/src/commands/daemon-windows.d.ts +0 -33
- package/dist/src/commands/daemon.d.ts +0 -67
- package/dist/src/commands/integration.d.ts +0 -3
- package/dist/src/commands/logout.d.ts +0 -3
- package/dist/src/commands/manager.d.ts +0 -2
- package/dist/src/commands/pair-authorization.d.ts +0 -3
- package/dist/src/commands/pair-browser.d.ts +0 -44
- package/dist/src/commands/pair-qr.d.ts +0 -4
- package/dist/src/commands/pair.d.ts +0 -19
- package/dist/src/commands/room.d.ts +0 -16
- package/dist/src/commands/runtime.d.ts +0 -2
- package/dist/src/commands/schedule.d.ts +0 -2
- package/dist/src/commands/tools.d.ts +0 -2
- package/dist/src/commands/upgrade.d.ts +0 -31
- package/dist/src/commands/worker.d.ts +0 -11
- package/dist/src/config/index.d.ts +0 -58
- package/dist/src/daemon-ipc/agent-readiness.d.ts +0 -15
- package/dist/src/daemon-ipc/client.d.ts +0 -8
- package/dist/src/daemon-ipc/control.d.ts +0 -16
- package/dist/src/daemon-ipc/json.d.ts +0 -3
- package/dist/src/daemon-ipc/paths.d.ts +0 -15
- package/dist/src/daemon-ipc/protocol.d.ts +0 -31
- package/dist/src/daemon-ipc/secret.d.ts +0 -3
- package/dist/src/daemon-ipc/server.d.ts +0 -20
- package/dist/src/daemon-log.d.ts +0 -9
- package/dist/src/env-path.d.ts +0 -15
- package/dist/src/fs/boundary.d.ts +0 -23
- package/dist/src/fs/handler.d.ts +0 -26
- package/dist/src/fs/security.d.ts +0 -2
- package/dist/src/fs/text-decoder.d.ts +0 -10
- package/dist/src/index.d.ts +0 -1
- package/dist/src/log-redaction.d.ts +0 -4
- package/dist/src/log-reporter.d.ts +0 -41
- package/dist/src/manager/prompt.d.ts +0 -2
- package/dist/src/manager/registry.d.ts +0 -184
- package/dist/src/manager/retired-external-channel-compat.d.ts +0 -78
- package/dist/src/manager/runtime.d.ts +0 -90
- package/dist/src/manager/worker-ipc.d.ts +0 -28
- package/dist/src/manager/worker-markdown.d.ts +0 -10
- package/dist/src/native-fusion/codex-files.d.ts +0 -10
- package/dist/src/native-fusion/codex-message-parser.d.ts +0 -9
- package/dist/src/native-fusion/codex-parser.d.ts +0 -8
- package/dist/src/native-fusion/codex-user-input.d.ts +0 -11
- package/dist/src/native-fusion/config.d.ts +0 -1
- package/dist/src/native-fusion/file-identity.d.ts +0 -9
- package/dist/src/native-fusion/file-watcher.d.ts +0 -26
- package/dist/src/native-fusion/local-repository.d.ts +0 -90
- package/dist/src/native-fusion/native-source-deletions.d.ts +0 -47
- package/dist/src/native-fusion/opencode-parser.d.ts +0 -29
- package/dist/src/native-fusion/parser-common.d.ts +0 -35
- package/dist/src/native-fusion/parsers.d.ts +0 -13
- package/dist/src/native-fusion/service.d.ts +0 -64
- package/dist/src/native-fusion/session-header.d.ts +0 -13
- package/dist/src/native-fusion/session-native-sources.d.ts +0 -24
- package/dist/src/native-fusion/source-visibility-audit.d.ts +0 -16
- package/dist/src/native-fusion/source-visibility.d.ts +0 -25
- package/dist/src/native-fusion/state.d.ts +0 -4
- package/dist/src/native-fusion/types.d.ts +0 -82
- package/dist/src/personal-sync/epoch.d.ts +0 -17
- package/dist/src/personal-sync/identity.d.ts +0 -1
- package/dist/src/personal-sync/machine-authority.d.ts +0 -12
- package/dist/src/personal-sync/metrics.d.ts +0 -25
- package/dist/src/personal-sync/paths.d.ts +0 -5
- package/dist/src/region.d.ts +0 -15
- package/dist/src/relay/client.d.ts +0 -81
- package/dist/src/room/activation-audit.d.ts +0 -15
- package/dist/src/room/activation-policy.d.ts +0 -8
- package/dist/src/room/activation-service.d.ts +0 -77
- package/dist/src/room/attachment-cache.d.ts +0 -44
- package/dist/src/room/attachment-upload.d.ts +0 -20
- package/dist/src/room/device-authorization-client.d.ts +0 -91
- package/dist/src/room/host-session-observations.d.ts +0 -54
- package/dist/src/room/invite-bootstrap.d.ts +0 -49
- package/dist/src/room/invite-qr.d.ts +0 -6
- package/dist/src/room/live-delivery.d.ts +0 -5
- package/dist/src/room/managed-context.d.ts +0 -49
- package/dist/src/room/managed-prompt-composer.d.ts +0 -47
- package/dist/src/room/managed-room-binding.d.ts +0 -69
- package/dist/src/room/managed-room-ipc.d.ts +0 -65
- package/dist/src/room/mirror-sync-service.d.ts +0 -49
- package/dist/src/room/public-attachment-cache.d.ts +0 -34
- package/dist/src/room/public-room-client.d.ts +0 -37
- package/dist/src/room/registration-authority.d.ts +0 -4
- package/dist/src/room/room-action-client-types.d.ts +0 -137
- package/dist/src/room/room-action-client.d.ts +0 -116
- package/dist/src/room/room-binding-client.d.ts +0 -62
- package/dist/src/room/session-registry.d.ts +0 -158
- package/dist/src/runtime-distribution.d.ts +0 -7
- package/dist/src/schedules/personal-context.d.ts +0 -2
- package/dist/src/schedules/server-client.d.ts +0 -19
- package/dist/src/security/managed-agent-credential-paths.d.ts +0 -6
- package/dist/src/security/managed-agent-executable.d.ts +0 -19
- package/dist/src/security/managed-agent-policy.d.ts +0 -66
- package/dist/src/security/managed-agent-runtime.d.ts +0 -44
- package/dist/src/session/archive-zip.d.ts +0 -10
- package/dist/src/session/attachment-reference.d.ts +0 -2
- package/dist/src/session/attachment-transfer-store.d.ts +0 -45
- package/dist/src/session/canonical-store.d.ts +0 -104
- package/dist/src/session/deletion-sync-state.d.ts +0 -20
- package/dist/src/session/deletion-sync-validation.d.ts +0 -2
- package/dist/src/session/deletion-synchronizer.d.ts +0 -9
- package/dist/src/session/handlers/agent-capabilities.d.ts +0 -3
- package/dist/src/session/handlers/agent-config.d.ts +0 -7
- package/dist/src/session/handlers/agent-control.d.ts +0 -4
- package/dist/src/session/handlers/agent-workspace-validation.d.ts +0 -28
- package/dist/src/session/handlers/agents.d.ts +0 -11
- package/dist/src/session/handlers/chat-adapter-config.d.ts +0 -11
- package/dist/src/session/handlers/chat-context.d.ts +0 -31
- package/dist/src/session/handlers/chat-events.d.ts +0 -5
- package/dist/src/session/handlers/chat-recovery.d.ts +0 -4
- package/dist/src/session/handlers/chat-session-lifecycle.d.ts +0 -9
- package/dist/src/session/handlers/chat.d.ts +0 -6
- package/dist/src/session/handlers/control.d.ts +0 -5
- package/dist/src/session/handlers/fs.d.ts +0 -14
- package/dist/src/session/handlers/message-status.d.ts +0 -3
- package/dist/src/session/handlers/pi-validation-session.d.ts +0 -7
- package/dist/src/session/handlers/pi-validation-session.js +0 -1
- package/dist/src/session/handlers/project-fs.d.ts +0 -11
- package/dist/src/session/handlers/remote-access.d.ts +0 -4
- package/dist/src/session/handlers/room-managed.d.ts +0 -6
- package/dist/src/session/handlers/session-refresh.d.ts +0 -3
- package/dist/src/session/handlers/title.d.ts +0 -3
- package/dist/src/session/handlers/tool-detail.d.ts +0 -3
- package/dist/src/session/handlers/voice-window.d.ts +0 -3
- package/dist/src/session/history-subscriptions.d.ts +0 -29
- package/dist/src/session/index-publisher.d.ts +0 -3
- package/dist/src/session/manager-event-authority.d.ts +0 -3
- package/dist/src/session/manager.d.ts +0 -95
- package/dist/src/session/native-cleanup-outbox.d.ts +0 -64
- package/dist/src/session/native-session-lifecycle.d.ts +0 -56
- package/dist/src/session/project-fs-store.d.ts +0 -43
- package/dist/src/session/projection.d.ts +0 -3
- package/dist/src/session/queue-control.d.ts +0 -27
- package/dist/src/session/queue-helpers.d.ts +0 -20
- package/dist/src/session/queue-message.d.ts +0 -35
- package/dist/src/session/queue-retry.d.ts +0 -11
- package/dist/src/session/queue-storage.d.ts +0 -8
- package/dist/src/session/queue-types.d.ts +0 -31
- package/dist/src/session/queue.d.ts +0 -73
- package/dist/src/session/queued-chat-dispatch.d.ts +0 -12
- package/dist/src/session/run-recovery/barrier.d.ts +0 -12
- package/dist/src/session/run-recovery/coordinator.d.ts +0 -32
- package/dist/src/session/run-recovery/journal.d.ts +0 -30
- package/dist/src/session/run-recovery/schema.d.ts +0 -48
- package/dist/src/session/store.d.ts +0 -128
- package/dist/src/session/tool-detail-store.d.ts +0 -17
- package/dist/src/session/turn-trigger.d.ts +0 -43
- package/dist/src/session/types.d.ts +0 -93
- package/dist/src/tools/markdown-to-pdf.d.ts +0 -42
- package/dist/src/upgrade/channel.d.ts +0 -5
- package/dist/src/upgrade/distribution.d.ts +0 -21
- package/dist/src/upgrade/engine.d.ts +0 -104
- package/dist/src/upgrade/scheduler.d.ts +0 -60
- package/dist/src/upgrade/updater-bootstrap.d.ts +0 -12
- package/dist/src/upgrade/updater-launcher.d.ts +0 -37
- package/dist/src/upgrade/updater-protocol.d.ts +0 -40
- package/dist/src/upgrade/updater-service-entry.d.ts +0 -7
- package/dist/src/upgrade/updater-worker.d.ts +0 -57
- package/dist/src/windows-shell.d.ts +0 -6
- package/node_modules/@shennian/wire/dist/agent-capabilities.d.ts +0 -16
- package/node_modules/@shennian/wire/dist/agent-workspace.d.ts +0 -133
- package/node_modules/@shennian/wire/dist/envelope.d.ts +0 -7
- package/node_modules/@shennian/wire/dist/events.d.ts +0 -125
- package/node_modules/@shennian/wire/dist/external-message-format.d.ts +0 -37
- package/node_modules/@shennian/wire/dist/frames.d.ts +0 -33
- package/node_modules/@shennian/wire/dist/fs.d.ts +0 -107
- package/node_modules/@shennian/wire/dist/index.d.ts +0 -21
- package/node_modules/@shennian/wire/dist/machine.d.ts +0 -160
- package/node_modules/@shennian/wire/dist/message-payload.d.ts +0 -71
- package/node_modules/@shennian/wire/dist/methods.d.ts +0 -5
- package/node_modules/@shennian/wire/dist/native-session.d.ts +0 -20
- package/node_modules/@shennian/wire/dist/project-fs.d.ts +0 -146
- package/node_modules/@shennian/wire/dist/project-path.d.ts +0 -4
- package/node_modules/@shennian/wire/dist/project.d.ts +0 -16
- package/node_modules/@shennian/wire/dist/relay-connectivity.d.ts +0 -30
- package/node_modules/@shennian/wire/dist/room.d.ts +0 -190
- package/node_modules/@shennian/wire/dist/schedule.d.ts +0 -37
- package/node_modules/@shennian/wire/dist/session-sync.d.ts +0 -406
- package/node_modules/@shennian/wire/dist/session.d.ts +0 -465
- package/node_modules/@shennian/wire/dist/tool-detail.d.ts +0 -38
- package/node_modules/@shennian/wire/dist/voice-chief.d.ts +0 -116
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
export type MachinePermission = 'view' | 'use' | 'full' | 'admin';
|
|
2
|
-
/** `minor` is a legacy compatibility value; current daemons normalize it to `none`. */
|
|
3
|
-
export type AutoUpgradePolicy = 'none' | 'patch' | 'minor';
|
|
4
|
-
export type Machine = {
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
os: string;
|
|
8
|
-
agentList: string[];
|
|
9
|
-
/** Rich agent info with per-agent model lists (additive, backward-compatible) */
|
|
10
|
-
agents?: import('./session.ts').AgentInfo[];
|
|
11
|
-
paired: boolean;
|
|
12
|
-
online: boolean;
|
|
13
|
-
lastSeen: string;
|
|
14
|
-
region?: string;
|
|
15
|
-
/** CLI version currently running on this machine */
|
|
16
|
-
cliVersion?: string;
|
|
17
|
-
/** Stable identity of the daemon data root. It is not the mobile installationId. */
|
|
18
|
-
daemonInstallationId?: string;
|
|
19
|
-
/** Personal Session sync protocol understood by this daemon. */
|
|
20
|
-
sessionSyncProtocolVersion?: import('./session-sync.ts').SessionSyncProtocolVersion;
|
|
21
|
-
/** Active personal Session data authority generation. */
|
|
22
|
-
sessionSyncDataEpoch?: import('./session-sync.ts').SessionSyncDataEpoch;
|
|
23
|
-
/** Full capability set required by the hard-cutover personal Session protocol. */
|
|
24
|
-
sessionSyncCapabilities?: import('./session-sync.ts').SessionSyncCapability[];
|
|
25
|
-
/** External updater protocol advertised by the live daemon; absent means legacy engine. */
|
|
26
|
-
updaterProtocolVersion?: number;
|
|
27
|
-
/** Auto-upgrade policy configured on this machine */
|
|
28
|
-
autoUpgrade?: AutoUpgradePolicy;
|
|
29
|
-
/** Set only after the daemon durably disables remote access on the machine. */
|
|
30
|
-
remoteAccessDisabledAt?: string | null;
|
|
31
|
-
/** Ownership role — absent means owner (backward-compatible) */
|
|
32
|
-
role?: 'owner' | 'granted';
|
|
33
|
-
/** Non-null only when role === 'granted' */
|
|
34
|
-
permission?: MachinePermission;
|
|
35
|
-
/** Active redeemed grants created by the owner for this machine. */
|
|
36
|
-
sharedCount?: number;
|
|
37
|
-
/** Nicknames used by the owner-only machine detail summary. */
|
|
38
|
-
sharedWith?: string[];
|
|
39
|
-
/** Unredeemed, active invitations created by this owner. */
|
|
40
|
-
pendingShareCount?: number;
|
|
41
|
-
/** Agents on this machine that have a non-missing provider config. */
|
|
42
|
-
configuredAgentCount?: number;
|
|
43
|
-
/** Present for machines shared by another user. */
|
|
44
|
-
ownerName?: string | null;
|
|
45
|
-
ownerPhone?: string | null;
|
|
46
|
-
ownerEmail?: string | null;
|
|
47
|
-
/**
|
|
48
|
-
* Machine-scoped WeChat RPA capability projection.
|
|
49
|
-
* This is additive: old servers/daemons may omit it, and clients must treat
|
|
50
|
-
* omission as "unknown / not reported yet".
|
|
51
|
-
*/
|
|
52
|
-
wechatRpa?: MachineWeChatRpaCapability | null;
|
|
53
|
-
};
|
|
54
|
-
export type MachineWeChatRpaCapability = {
|
|
55
|
-
supported: boolean;
|
|
56
|
-
enabled: boolean;
|
|
57
|
-
status: 'ready' | 'needs_setup' | 'unavailable' | 'error' | 'unknown';
|
|
58
|
-
reasonCode?: 'ready' | 'disabled' | 'offline' | 'unsupported_os' | 'not_reported' | 'wechat_not_installed' | 'wechat_not_running' | 'permission_missing' | 'helper_not_ready' | 'runtime_error' | 'unknown';
|
|
59
|
-
runtimeId?: string | null;
|
|
60
|
-
pollIntervalSeconds?: number | null;
|
|
61
|
-
foregroundPolicy?: 'work' | 'polite' | string | null;
|
|
62
|
-
helperVersion?: string | null;
|
|
63
|
-
clientRuntimeVersion?: string | null;
|
|
64
|
-
lastCheckedAt?: string | null;
|
|
65
|
-
lastSeenAt?: string | null;
|
|
66
|
-
lastError?: string | null;
|
|
67
|
-
checks?: {
|
|
68
|
-
wechatAppDetected?: boolean | null;
|
|
69
|
-
accessibilityPermission?: string | null;
|
|
70
|
-
screenRecordingPermission?: string | null;
|
|
71
|
-
inputMonitoringPermission?: string | null;
|
|
72
|
-
automationPermission?: string | null;
|
|
73
|
-
helperReady?: boolean | null;
|
|
74
|
-
} | null;
|
|
75
|
-
};
|
|
76
|
-
export type UpgradeEventPayload = {
|
|
77
|
-
state: 'checking';
|
|
78
|
-
machineId: string;
|
|
79
|
-
} | {
|
|
80
|
-
state: 'downloading';
|
|
81
|
-
machineId: string;
|
|
82
|
-
version: string;
|
|
83
|
-
progress?: number;
|
|
84
|
-
} | {
|
|
85
|
-
state: 'installing';
|
|
86
|
-
machineId: string;
|
|
87
|
-
version: string;
|
|
88
|
-
} | {
|
|
89
|
-
state: 'starting';
|
|
90
|
-
machineId: string;
|
|
91
|
-
from: string;
|
|
92
|
-
to: string;
|
|
93
|
-
jobId?: string;
|
|
94
|
-
} | {
|
|
95
|
-
state: 'recovering';
|
|
96
|
-
machineId: string;
|
|
97
|
-
from: string;
|
|
98
|
-
to: string;
|
|
99
|
-
jobId?: string;
|
|
100
|
-
activeRunCount?: number;
|
|
101
|
-
} | {
|
|
102
|
-
state: 'healthy';
|
|
103
|
-
machineId: string;
|
|
104
|
-
from: string;
|
|
105
|
-
to: string;
|
|
106
|
-
jobId?: string;
|
|
107
|
-
} | {
|
|
108
|
-
state: 'restarting';
|
|
109
|
-
machineId: string;
|
|
110
|
-
from: string;
|
|
111
|
-
to: string;
|
|
112
|
-
} | {
|
|
113
|
-
state: 'success';
|
|
114
|
-
machineId: string;
|
|
115
|
-
from: string;
|
|
116
|
-
to: string;
|
|
117
|
-
} | {
|
|
118
|
-
state: 'failed';
|
|
119
|
-
machineId: string;
|
|
120
|
-
error: string;
|
|
121
|
-
} | {
|
|
122
|
-
state: 'rolledback';
|
|
123
|
-
machineId: string;
|
|
124
|
-
to: string;
|
|
125
|
-
reason: string;
|
|
126
|
-
} | {
|
|
127
|
-
state: 'rolled_back';
|
|
128
|
-
machineId: string;
|
|
129
|
-
to: string;
|
|
130
|
-
reason: string;
|
|
131
|
-
jobId?: string;
|
|
132
|
-
} | {
|
|
133
|
-
state: 'interrupted_by_upgrade';
|
|
134
|
-
machineId: string;
|
|
135
|
-
runCount: number;
|
|
136
|
-
jobId?: string;
|
|
137
|
-
} | {
|
|
138
|
-
state: 'recovery_failed';
|
|
139
|
-
machineId: string;
|
|
140
|
-
runCount: number;
|
|
141
|
-
error?: string;
|
|
142
|
-
jobId?: string;
|
|
143
|
-
};
|
|
144
|
-
export type MachineGrant = {
|
|
145
|
-
id: string;
|
|
146
|
-
granteeId: string | null;
|
|
147
|
-
granteeName: string | null;
|
|
148
|
-
/** @deprecated Kept optional for old-server compatibility; current UI never displays it. */
|
|
149
|
-
granteePhone?: string | null;
|
|
150
|
-
granteeAvatar?: {
|
|
151
|
-
version: string;
|
|
152
|
-
thumbUrl: string;
|
|
153
|
-
originalUrl: string;
|
|
154
|
-
} | null;
|
|
155
|
-
permission: MachinePermission;
|
|
156
|
-
expiresAt: string | null;
|
|
157
|
-
revokedAt: string | null;
|
|
158
|
-
createdAt: string;
|
|
159
|
-
redeemed: boolean;
|
|
160
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
export type ChatAttachmentKind = 'image' | 'file' | 'folder';
|
|
2
|
-
export type ChatAttachmentMeta = {
|
|
3
|
-
path: string;
|
|
4
|
-
name: string;
|
|
5
|
-
mimeType: string;
|
|
6
|
-
kind: ChatAttachmentKind;
|
|
7
|
-
byteSize?: number;
|
|
8
|
-
sha256?: string;
|
|
9
|
-
previewData?: string;
|
|
10
|
-
};
|
|
11
|
-
export type StructuredUserMessagePayload = {
|
|
12
|
-
v: 1;
|
|
13
|
-
type: 'user';
|
|
14
|
-
content: string;
|
|
15
|
-
attachments?: ChatAttachmentMeta[];
|
|
16
|
-
};
|
|
17
|
-
type StructuredPayload = StructuredUserMessagePayload | ApprovalPendingPayload | ChannelDeliveryStatusPayload | {
|
|
18
|
-
v: 1;
|
|
19
|
-
type?: string;
|
|
20
|
-
content?: string;
|
|
21
|
-
text?: string;
|
|
22
|
-
thinking?: string;
|
|
23
|
-
};
|
|
24
|
-
export type ApprovalPendingPayload = {
|
|
25
|
-
v: 1;
|
|
26
|
-
type: 'approval_pending';
|
|
27
|
-
title: string;
|
|
28
|
-
content: string;
|
|
29
|
-
source?: string;
|
|
30
|
-
actionHint?: string;
|
|
31
|
-
permission?: import('./events.ts').AcpPermissionPrompt;
|
|
32
|
-
};
|
|
33
|
-
export type ChannelDeliveryStatusPayload = {
|
|
34
|
-
v: 1;
|
|
35
|
-
type: 'channel_delivery_status';
|
|
36
|
-
content: string;
|
|
37
|
-
channel: 'wechat';
|
|
38
|
-
status: string;
|
|
39
|
-
agentVisible: false;
|
|
40
|
-
replyId?: string;
|
|
41
|
-
idempotencyKey?: string;
|
|
42
|
-
bindingId?: string;
|
|
43
|
-
reasonCode?: string;
|
|
44
|
-
copyText?: string;
|
|
45
|
-
copyableContentRef?: string;
|
|
46
|
-
errorSummary?: string;
|
|
47
|
-
};
|
|
48
|
-
export declare function parseStructuredMessagePayload(payload: string): StructuredPayload | null;
|
|
49
|
-
export declare function parseUserMessagePayload(payload: string): StructuredUserMessagePayload | null;
|
|
50
|
-
export declare function buildUserMessagePayload(content: string, attachments?: ChatAttachmentMeta[]): string;
|
|
51
|
-
export declare function isToolPayload(payload: string): boolean;
|
|
52
|
-
export declare function isApprovalPendingPayload(payload: string): boolean;
|
|
53
|
-
export declare function isAgentHiddenPayload(payload: string): boolean;
|
|
54
|
-
export declare function parseChannelDeliveryStatusPayload(payload: string): ChannelDeliveryStatusPayload | null;
|
|
55
|
-
export declare function buildApprovalPendingPayload(input?: Partial<ApprovalPendingPayload>): string;
|
|
56
|
-
export declare function isSystemEnvironmentContextPayload(payload: string): boolean;
|
|
57
|
-
export declare function isCodexTurnAbortedPayload(payload: string): boolean;
|
|
58
|
-
export declare function isCodexProjectInstructionsPayload(payload: string): boolean;
|
|
59
|
-
export declare function isSystemControlPayload(payload: string): boolean;
|
|
60
|
-
export declare function stripGitDirectiveArtifacts(text: string): string;
|
|
61
|
-
export declare function extractPayloadText(payload: string): string;
|
|
62
|
-
/**
|
|
63
|
-
* Converts already-readable text into the only form allowed in the replicated
|
|
64
|
-
* personal-session index. A preview is content, not an opaque transport field:
|
|
65
|
-
* private control context and binary payloads are therefore rejected instead
|
|
66
|
-
* of being truncated into something that still leaks them.
|
|
67
|
-
*/
|
|
68
|
-
export declare function sanitizeSessionPreview(value: string | null | undefined, maxLength?: number): string | null;
|
|
69
|
-
/** Extracts a safe, bounded preview from an envelope payload. */
|
|
70
|
-
export declare function sessionPreviewFromPayload(payload: string, maxLength?: number): string | null;
|
|
71
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export type ReqMethod = 'schedule.deliver'
|
|
2
|
-
/** Server-originated durable delivery into a managed Room session queue. */
|
|
3
|
-
| 'room.message.deliver' | 'chat.send' | 'chat.enqueue' | 'chat.queue.get' | 'chat.queue.edit' | 'chat.queue.delete' | 'chat.queue.promote' | 'chat.abort' | 'session.resume' | 'session.history' | 'session.history.open' | 'session.history.sync' | 'session.history.page' | 'session.history.close' | 'session.body.replica.subscribe' | 'session.body.replica.unsubscribe' | 'session.index.update' | 'session.deletions.sync' | 'session.deletions.ack' | 'session.message.status' | 'voice.session.body.window' | 'session.refresh' | 'session.tool.detail' | 'session.title.set' | 'session.title.generate' | 'fs.ls' | 'fs.read' | 'fs.write' | 'fs.export.markdown-pdf' | 'fs.export.markdown-pdf.setup' | 'fs.archive.zip' | 'fs.transfer.start' | 'fs.transfer.chunk' | 'fs.transfer.finish' | 'fs.transfer.abort' | 'fs.rename' | 'project.fs.open' | 'project.fs.list' | 'project.fs.read' | 'project.fs.close'
|
|
4
|
-
/** Server-originated per-connection challenge; never accepted from an App client. */
|
|
5
|
-
| 'project.fs.negotiate' | 'skill.list' | 'skill.install' | 'skill.doctor' | 'skill.setup' | 'skill.use' | 'region.probe' | 'region.switch' | 'upgrade.start' | 'upgrade.status' | 'upgrade.set-policy' | 'machine.remote-access.pause' | 'agents.refresh' | 'models.refresh' | 'agent.config.get' | 'agent.config.upsert' | 'agent.config.clear' | 'agent.config.test' | 'agent.workspace.validate' | 'agent.capabilities.list' | 'agent.permission.respond' | 'agent.auth.start' | 'agent.auth.logout' | 'agent.session-options.get' | 'agent.external-sessions.list' | 'agent.external-sessions.import' | 'agent.external-sessions.close' | 'agent.external-sessions.delete' | 'manager.channel.get' | 'manager.channel.upsert' | 'session.wechat-rpa.channel.get' | 'session.wechat-rpa.channel.upsert' | 'session.wechat-rpa.channel.sync' | 'session.wechat-rpa.outbound.cancel' | 'manager.wechat-rpa.channel.get' | 'manager.wechat-rpa.channel.upsert' | 'manager.wechat-rpa.channel.sync' | 'manager.wechat-rpa.outbound.cancel' | 'wechat-rpa.helper.runtime' | 'wecom.send' | 'external.send' | 'room.sync' | 'room.send' | 'room.bind' | 'room.agent.bind-managed' | 'room.agent.restart-managed' | 'room.unbind';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export type NativeSessionSourceMode = 'codex_rollout_import' | 'claude_transcript_import' | 'opencode_session_import' | 'managed_echo_claim';
|
|
2
|
-
export type NativeSessionEventPayload = {
|
|
3
|
-
agentType: 'codex' | 'claude' | 'opencode';
|
|
4
|
-
sourceMode: NativeSessionSourceMode;
|
|
5
|
-
sourceSessionKey: string;
|
|
6
|
-
sourceEventKey: string;
|
|
7
|
-
cursor?: string | null;
|
|
8
|
-
role: 'user' | 'agent';
|
|
9
|
-
ts: number;
|
|
10
|
-
payload: string;
|
|
11
|
-
title?: string;
|
|
12
|
-
modelId?: string | null;
|
|
13
|
-
workDir?: string;
|
|
14
|
-
claimCanonicalMessageId?: string | null;
|
|
15
|
-
managedEchoPolicy?: 'suppress_following' | 'import_following';
|
|
16
|
-
terminal?: boolean;
|
|
17
|
-
};
|
|
18
|
-
export type NativeSessionImportBatch = {
|
|
19
|
-
events: NativeSessionEventPayload[];
|
|
20
|
-
};
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
export declare const PROJECT_FS_OPAQUE_CAPABILITY: "project_fs_opaque_v1";
|
|
2
|
-
export type ProjectFsOpaqueCapability = typeof PROJECT_FS_OPAQUE_CAPABILITY;
|
|
3
|
-
export declare const PROJECT_FS_NEGOTIATION_METHOD: "project.fs.negotiate";
|
|
4
|
-
export declare const PROJECT_FS_SENSITIVE_AUTHORITY_VERSION: 1;
|
|
5
|
-
export type ProjectFsNegotiationChallenge = {
|
|
6
|
-
version: typeof PROJECT_FS_SENSITIVE_AUTHORITY_VERSION;
|
|
7
|
-
nonce: string;
|
|
8
|
-
daemonInstallationId: string;
|
|
9
|
-
};
|
|
10
|
-
export type ProjectFsNegotiationResponse = {
|
|
11
|
-
version: typeof PROJECT_FS_SENSITIVE_AUTHORITY_VERSION;
|
|
12
|
-
capability: ProjectFsOpaqueCapability;
|
|
13
|
-
nonce: string;
|
|
14
|
-
daemonInstallationId: string;
|
|
15
|
-
proof: string;
|
|
16
|
-
};
|
|
17
|
-
export declare function projectFsNegotiationProofPayload(requestId: string, challenge: ProjectFsNegotiationChallenge): string;
|
|
18
|
-
export declare function parseProjectFsNegotiationChallenge(value: unknown): ProjectFsNegotiationChallenge | null;
|
|
19
|
-
export declare function parseProjectFsNegotiationResponse(value: unknown): ProjectFsNegotiationResponse | null;
|
|
20
|
-
export declare const PROJECT_FS_METHODS: readonly ["project.fs.open", "project.fs.list", "project.fs.read", "project.fs.close"];
|
|
21
|
-
export type ProjectFsMethod = (typeof PROJECT_FS_METHODS)[number];
|
|
22
|
-
export declare const PROJECT_FS_LIMITS: {
|
|
23
|
-
readonly defaultDirectoryPageItems: 50;
|
|
24
|
-
readonly maxDirectoryPageItems: 200;
|
|
25
|
-
readonly maxReadBytes: number;
|
|
26
|
-
readonly maxTokenLength: 512;
|
|
27
|
-
readonly maxProjectRefLength: 1024;
|
|
28
|
-
readonly maxNameLength: 255;
|
|
29
|
-
};
|
|
30
|
-
export type ProjectFsEntryKind = 'directory' | 'file';
|
|
31
|
-
export type ProjectFsReadEncoding = 'binary' | 'auto';
|
|
32
|
-
export type ProjectFsEntry = {
|
|
33
|
-
handle: string;
|
|
34
|
-
name: string;
|
|
35
|
-
kind: ProjectFsEntryKind;
|
|
36
|
-
size?: number;
|
|
37
|
-
modifiedAt?: number;
|
|
38
|
-
};
|
|
39
|
-
export type ProjectFsDirectoryPage = {
|
|
40
|
-
directoryHandle: string;
|
|
41
|
-
cursor: number;
|
|
42
|
-
nextCursor: number | null;
|
|
43
|
-
entries: ProjectFsEntry[];
|
|
44
|
-
};
|
|
45
|
-
export type ProjectFsOpenParams = {
|
|
46
|
-
projectRef: string;
|
|
47
|
-
limit?: number;
|
|
48
|
-
};
|
|
49
|
-
export type ProjectFsOpenResult = {
|
|
50
|
-
leaseId: string;
|
|
51
|
-
root: {
|
|
52
|
-
handle: string;
|
|
53
|
-
name: string;
|
|
54
|
-
kind: 'directory';
|
|
55
|
-
};
|
|
56
|
-
page: ProjectFsDirectoryPage;
|
|
57
|
-
expiresAt: number;
|
|
58
|
-
};
|
|
59
|
-
export type ProjectFsListParams = {
|
|
60
|
-
projectRef: string;
|
|
61
|
-
leaseId: string;
|
|
62
|
-
directoryHandle: string;
|
|
63
|
-
cursor?: number;
|
|
64
|
-
limit?: number;
|
|
65
|
-
};
|
|
66
|
-
export type ProjectFsListResult = ProjectFsDirectoryPage & {
|
|
67
|
-
leaseId: string;
|
|
68
|
-
expiresAt: number;
|
|
69
|
-
};
|
|
70
|
-
export type ProjectFsReadParams = {
|
|
71
|
-
projectRef: string;
|
|
72
|
-
leaseId: string;
|
|
73
|
-
fileHandle: string;
|
|
74
|
-
offset: number;
|
|
75
|
-
limitBytes: number;
|
|
76
|
-
encoding?: ProjectFsReadEncoding;
|
|
77
|
-
};
|
|
78
|
-
export type ProjectFsReadResult = {
|
|
79
|
-
leaseId: string;
|
|
80
|
-
fileHandle: string;
|
|
81
|
-
offset: number;
|
|
82
|
-
bytesRead: number;
|
|
83
|
-
nextOffset: number | null;
|
|
84
|
-
totalSize: number;
|
|
85
|
-
dataBase64?: string;
|
|
86
|
-
text?: string;
|
|
87
|
-
encoding?: string;
|
|
88
|
-
encodingFallback?: boolean;
|
|
89
|
-
mimeType?: string;
|
|
90
|
-
expiresAt: number;
|
|
91
|
-
};
|
|
92
|
-
export type ProjectFsCloseParams = {
|
|
93
|
-
projectRef: string;
|
|
94
|
-
leaseId: string;
|
|
95
|
-
};
|
|
96
|
-
export type ProjectFsCloseResult = {
|
|
97
|
-
closed: true;
|
|
98
|
-
};
|
|
99
|
-
export declare const PROJECT_FS_ERROR_CODES: readonly ["capability_required", "machine_offline", "permission_denied", "project_not_found", "project_scope_changed", "handle_invalid", "handle_expired", "source_changed", "sensitive_path_denied", "unsupported_entry", "read_too_large", "rate_limited", "io_error"];
|
|
100
|
-
export type ProjectFsErrorCode = (typeof PROJECT_FS_ERROR_CODES)[number];
|
|
101
|
-
export declare const PROJECT_FS_REQUIRED_ACTIONS: readonly ["retry", "refresh_project", "upgrade_daemon", "reauthenticate", "none"];
|
|
102
|
-
export type ProjectFsRequiredAction = (typeof PROJECT_FS_REQUIRED_ACTIONS)[number];
|
|
103
|
-
/** Server-only envelope. Clients may send this key, but Server must replace it wholesale. */
|
|
104
|
-
export declare const PROJECT_FS_AUTHORITY_PARAM: "__projectFsAuthority";
|
|
105
|
-
export type ProjectFsAuthority = {
|
|
106
|
-
projectRef: string;
|
|
107
|
-
scopeId: string;
|
|
108
|
-
accountScope: string;
|
|
109
|
-
machineId: string;
|
|
110
|
-
projectId: string;
|
|
111
|
-
rootPath: string;
|
|
112
|
-
rootDigest: string;
|
|
113
|
-
authorizationEpoch: number;
|
|
114
|
-
daemonInstallationId: string;
|
|
115
|
-
generation: string;
|
|
116
|
-
expiresAt: number;
|
|
117
|
-
};
|
|
118
|
-
export type ProjectFsTrustedEnvelope = {
|
|
119
|
-
version: 1;
|
|
120
|
-
requestId: string;
|
|
121
|
-
method: ProjectFsMethod;
|
|
122
|
-
params: ProjectFsOpenParams | ProjectFsListParams | ProjectFsReadParams | ProjectFsCloseParams;
|
|
123
|
-
authority: ProjectFsAuthority;
|
|
124
|
-
signature: string;
|
|
125
|
-
};
|
|
126
|
-
export type ProjectFsRejection = {
|
|
127
|
-
code: ProjectFsErrorCode;
|
|
128
|
-
message?: string;
|
|
129
|
-
retryable: boolean;
|
|
130
|
-
requiredAction: ProjectFsRequiredAction;
|
|
131
|
-
};
|
|
132
|
-
export declare function isProjectFsMethod(value: unknown): value is ProjectFsMethod;
|
|
133
|
-
export declare function parseProjectFsDirectoryPage(value: unknown): ProjectFsDirectoryPage | null;
|
|
134
|
-
export declare function parseProjectFsOpenParams(value: unknown): ProjectFsOpenParams | null;
|
|
135
|
-
export declare function parseProjectFsOpenResult(value: unknown): ProjectFsOpenResult | null;
|
|
136
|
-
export declare function parseProjectFsListParams(value: unknown): ProjectFsListParams | null;
|
|
137
|
-
export declare function parseProjectFsListResult(value: unknown): ProjectFsListResult | null;
|
|
138
|
-
export declare function parseProjectFsReadParams(value: unknown): ProjectFsReadParams | null;
|
|
139
|
-
export declare function parseProjectFsReadResult(value: unknown): ProjectFsReadResult | null;
|
|
140
|
-
export declare function parseProjectFsCloseParams(value: unknown): ProjectFsCloseParams | null;
|
|
141
|
-
export declare function parseProjectFsCloseResult(value: unknown): ProjectFsCloseResult | null;
|
|
142
|
-
export declare function parseProjectFsRejection(value: unknown): ProjectFsRejection | null;
|
|
143
|
-
/** Future clients must require this exact capability and never probe legacy path RPCs. */
|
|
144
|
-
export declare function hasProjectFsOpaqueCapability(capabilities: readonly string[] | null | undefined): boolean;
|
|
145
|
-
export declare function parseProjectFsTrustedEnvelope(value: unknown): ProjectFsTrustedEnvelope | null;
|
|
146
|
-
export declare function projectFsAuthoritySigningPayload(envelope: Omit<ProjectFsTrustedEnvelope, 'signature'>): string;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/** Matching only: never changes persisted project IDs or directory spelling. */
|
|
2
|
-
export declare function normalizeProjectMatchPath(workDir: string): string;
|
|
3
|
-
/** Include both existing Windows spellings in one paginated database query. */
|
|
4
|
-
export declare function projectSessionPathCandidates(workDir: string): string[];
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { AgentType } from './session.js';
|
|
2
|
-
export type NianProject = {
|
|
3
|
-
id: string;
|
|
4
|
-
machineId: string;
|
|
5
|
-
machineName: string;
|
|
6
|
-
machineOnline: boolean;
|
|
7
|
-
workDir: string;
|
|
8
|
-
displayName: string;
|
|
9
|
-
defaultAgentType?: AgentType | null;
|
|
10
|
-
defaultModelId?: string | null;
|
|
11
|
-
lastActivityAt: string;
|
|
12
|
-
createdAt: string;
|
|
13
|
-
updatedAt: string;
|
|
14
|
-
/** Server-minted opaque reference for project-scoped file RPCs. */
|
|
15
|
-
fileBrowserRef?: string;
|
|
16
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export type RelayConnectivityPhase = 'connecting' | 'connected' | 'recovering' | 'blocked' | 'offline';
|
|
2
|
-
export type RelayConnectivityReason = 'initial_connect' | 'network_offline' | 'transient_transport' | 'server_unavailable' | 'auth_required' | 'version_unsupported' | 'permission_revoked' | 'plan_required' | 'machine_unavailable' | 'unknown';
|
|
3
|
-
export type RelayConnectivitySnapshot = {
|
|
4
|
-
phase: RelayConnectivityPhase;
|
|
5
|
-
reason: RelayConnectivityReason;
|
|
6
|
-
closeCode: number | null;
|
|
7
|
-
closeReason: string | null;
|
|
8
|
-
retryable: boolean;
|
|
9
|
-
retryAttempt: number;
|
|
10
|
-
nextRetryAt: number | null;
|
|
11
|
-
disconnectedAt: number | null;
|
|
12
|
-
lastConnectedAt: number | null;
|
|
13
|
-
connectionId: string | null;
|
|
14
|
-
};
|
|
15
|
-
export type RelayConnectivityEventName = 'relay_connect_started' | 'relay_connected' | 'relay_disconnected' | 'relay_retry_scheduled' | 'relay_watchdog_rebuild' | 'relay_manual_retry' | 'relay_recovery_succeeded' | 'relay_recovery_failed';
|
|
16
|
-
export type RelayConnectivityEvent = {
|
|
17
|
-
name: RelayConnectivityEventName;
|
|
18
|
-
snapshot: RelayConnectivitySnapshot;
|
|
19
|
-
at: number;
|
|
20
|
-
durationMs?: number;
|
|
21
|
-
};
|
|
22
|
-
export type RelayCloseClassification = {
|
|
23
|
-
reason: RelayConnectivityReason;
|
|
24
|
-
retryable: boolean;
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* The server owns close-code meaning. Keeping this map in Wire prevents App,
|
|
28
|
-
* Shared and Server from drifting into different user-facing explanations.
|
|
29
|
-
*/
|
|
30
|
-
export declare function classifyRelayClose(code: number, closeReason?: string): RelayCloseClassification;
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
import { type AgentType } from './session.ts';
|
|
2
|
-
export type RoomVisibility = 'private' | 'public_read';
|
|
3
|
-
export type RoomJoinPolicy = 'open' | 'approval' | 'closed';
|
|
4
|
-
export type RoomStatus = 'active' | 'archived' | 'deleted';
|
|
5
|
-
export type RoomPrincipalType = 'human' | 'agent';
|
|
6
|
-
export type RoomMembershipRole = 'owner' | 'admin' | 'member';
|
|
7
|
-
export type RoomMembershipStatus = 'active' | 'removed' | 'left';
|
|
8
|
-
export type RoomMessageKind = 'text' | 'attachment' | 'mixed' | 'system';
|
|
9
|
-
export type RoomActivationMode = 'auto_follow' | 'mention_only' | 'paused';
|
|
10
|
-
/** Runtime reachability is orthogonal to the owner's persisted activation mode. */
|
|
11
|
-
export type AgentRuntimeAvailability = 'available' | 'unavailable' | 'recovering';
|
|
12
|
-
export type AgentRepairAction = 'configure' | 'retry' | null;
|
|
13
|
-
export type RoomAgentParticipation = {
|
|
14
|
-
activationMode: RoomActivationMode;
|
|
15
|
-
availability: AgentRuntimeAvailability;
|
|
16
|
-
};
|
|
17
|
-
export type RoomActivationCapability = 'managed' | 'idle_resume' | 'notify_only';
|
|
18
|
-
export type RoomBindingMode = 'managed' | 'hook_native';
|
|
19
|
-
export type RoomBindingStatus = 'pending_approval' | 'active' | 'paused' | 'detached';
|
|
20
|
-
/** `claude_code` is accepted only as a legacy wire value. New writers use the real AgentType. */
|
|
21
|
-
export type RoomRuntimeAdapter = Exclude<AgentType, 'manager' | 'pi' | 'openclaw'> | 'claude_code';
|
|
22
|
-
export type RoomAttachmentKind = 'image' | 'audio' | 'video' | 'file';
|
|
23
|
-
export type RoomAttachmentStatus = 'pending' | 'uploaded' | 'scanning' | 'ready' | 'rejected' | 'expired' | 'deleted';
|
|
24
|
-
/** JSON-safe representation of the database BIGINT sequence. */
|
|
25
|
-
export type RoomSequence = string;
|
|
26
|
-
export declare function roomRuntimeAgentType(value: string): AgentType | null;
|
|
27
|
-
export declare function isRoomRuntimeAdapter(value: string): value is RoomRuntimeAdapter;
|
|
28
|
-
export declare function roomRuntimeAdapterForAgent(agentType: AgentType): RoomRuntimeAdapter | null;
|
|
29
|
-
export type RoomSummary = {
|
|
30
|
-
id: string;
|
|
31
|
-
name: string;
|
|
32
|
-
status: RoomStatus;
|
|
33
|
-
visibility: RoomVisibility;
|
|
34
|
-
joinPolicy: RoomJoinPolicy;
|
|
35
|
-
humanCount: number;
|
|
36
|
-
agentCount: number;
|
|
37
|
-
lastSequence: RoomSequence;
|
|
38
|
-
/** First sequence still visible to this account. Older servers may omit it. */
|
|
39
|
-
historyFromSequence?: RoomSequence;
|
|
40
|
-
lastReadSequence?: RoomSequence;
|
|
41
|
-
unreadCount?: number;
|
|
42
|
-
membershipRole?: RoomMembershipRole;
|
|
43
|
-
/** The signed-in human's relationship to this Room. Older servers may omit it. */
|
|
44
|
-
membershipStatus?: 'active' | 'left' | 'removed';
|
|
45
|
-
pinnedAt?: string | null;
|
|
46
|
-
updatedAt: string;
|
|
47
|
-
/** Optional list projection used by local-first clients to avoid per-room requests. */
|
|
48
|
-
latestMessage?: RoomMessageView | null;
|
|
49
|
-
/** Compact active-member projection for the list avatar. */
|
|
50
|
-
avatarMembers?: Array<{
|
|
51
|
-
id: string;
|
|
52
|
-
principalType: RoomPrincipalType;
|
|
53
|
-
displayAlias: string;
|
|
54
|
-
/** Stable membership ordering key; older servers may omit it. */
|
|
55
|
-
joinedAt?: string;
|
|
56
|
-
avatar?: Record<string, unknown> | null;
|
|
57
|
-
ownerAvatar?: Record<string, unknown> | null;
|
|
58
|
-
}>;
|
|
59
|
-
};
|
|
60
|
-
export type RoomAuthorSnapshot = {
|
|
61
|
-
membershipId: string;
|
|
62
|
-
principalType: RoomPrincipalType;
|
|
63
|
-
ownerUserId: string;
|
|
64
|
-
displayName: string;
|
|
65
|
-
ownerDisplayName?: string | null;
|
|
66
|
-
avatar?: Record<string, unknown> | null;
|
|
67
|
-
};
|
|
68
|
-
export type RoomMentionSnapshot = {
|
|
69
|
-
membershipId: string;
|
|
70
|
-
principalType: RoomPrincipalType;
|
|
71
|
-
displayName: string;
|
|
72
|
-
};
|
|
73
|
-
export type RoomAttachmentView = {
|
|
74
|
-
attachmentId: string;
|
|
75
|
-
mediaKind: RoomAttachmentKind;
|
|
76
|
-
name: string;
|
|
77
|
-
mimeType: string;
|
|
78
|
-
byteSize: RoomSequence;
|
|
79
|
-
sha256: string;
|
|
80
|
-
width?: number | null;
|
|
81
|
-
height?: number | null;
|
|
82
|
-
durationMs?: number | null;
|
|
83
|
-
status: RoomAttachmentStatus;
|
|
84
|
-
/** Authoritative object-retention deadline. Older servers may omit it. */
|
|
85
|
-
expiresAt?: string | null;
|
|
86
|
-
downloadRef: string;
|
|
87
|
-
/** Binding-scoped bearer link for direct, on-demand download by an Agent. */
|
|
88
|
-
downloadUrl?: string;
|
|
89
|
-
downloadExpiresAt?: string;
|
|
90
|
-
};
|
|
91
|
-
export type RoomMessageView = {
|
|
92
|
-
id: string;
|
|
93
|
-
roomId: string;
|
|
94
|
-
sequence: RoomSequence;
|
|
95
|
-
kind: RoomMessageKind;
|
|
96
|
-
source?: 'app' | 'cli' | 'managed_agent' | 'system';
|
|
97
|
-
author: RoomAuthorSnapshot;
|
|
98
|
-
mentions?: RoomMentionSnapshot[];
|
|
99
|
-
text?: string | null;
|
|
100
|
-
replyToMessageId?: string | null;
|
|
101
|
-
attachments: RoomAttachmentView[];
|
|
102
|
-
createdAt: string;
|
|
103
|
-
editedAt?: string | null;
|
|
104
|
-
deletedAt?: string | null;
|
|
105
|
-
activationCause?: {
|
|
106
|
-
causeMessageId: string;
|
|
107
|
-
rootCauseMessageId: string;
|
|
108
|
-
hopCount: number;
|
|
109
|
-
} | null;
|
|
110
|
-
};
|
|
111
|
-
export type RoomMessageCreatedEvent = {
|
|
112
|
-
event: 'room.message.created';
|
|
113
|
-
roomId: string;
|
|
114
|
-
sequence: RoomSequence;
|
|
115
|
-
message: RoomMessageView;
|
|
116
|
-
};
|
|
117
|
-
export type RoomRefreshEvent = {
|
|
118
|
-
event: 'room.created' | 'room.updated' | 'room.membership.updated' | 'room.join_request.created' | 'room.join_request.updated' | 'room.binding.updated';
|
|
119
|
-
roomId: string;
|
|
120
|
-
sequence?: RoomSequence;
|
|
121
|
-
entityId?: string;
|
|
122
|
-
};
|
|
123
|
-
export type RoomEvent = RoomMessageCreatedEvent | RoomRefreshEvent;
|
|
124
|
-
export type RoomSyncParams = {
|
|
125
|
-
roomId: string;
|
|
126
|
-
afterSequence: RoomSequence;
|
|
127
|
-
limit?: number;
|
|
128
|
-
};
|
|
129
|
-
/** Public Skill + CLI read contract. It intentionally omits Room and membership IDs. */
|
|
130
|
-
export type RoomCliReadParams = {
|
|
131
|
-
before?: RoomSequence;
|
|
132
|
-
after?: RoomSequence;
|
|
133
|
-
limit?: number;
|
|
134
|
-
};
|
|
135
|
-
export type RoomCliAttachmentView = {
|
|
136
|
-
attachmentId: string;
|
|
137
|
-
mediaKind: RoomAttachmentKind;
|
|
138
|
-
name: string;
|
|
139
|
-
mimeType: string;
|
|
140
|
-
byteSize: RoomSequence;
|
|
141
|
-
sha256: string;
|
|
142
|
-
width?: number | null;
|
|
143
|
-
height?: number | null;
|
|
144
|
-
durationMs?: number | null;
|
|
145
|
-
status: RoomAttachmentStatus;
|
|
146
|
-
downloaded?: boolean;
|
|
147
|
-
localPath?: string | null;
|
|
148
|
-
};
|
|
149
|
-
export type RoomCliMessageView = {
|
|
150
|
-
sequence: RoomSequence;
|
|
151
|
-
kind: RoomMessageKind;
|
|
152
|
-
source: 'app' | 'cli' | 'managed_agent' | 'system';
|
|
153
|
-
author: {
|
|
154
|
-
nickname: string;
|
|
155
|
-
type: RoomPrincipalType;
|
|
156
|
-
ownerNickname?: string;
|
|
157
|
-
avatar?: Record<string, unknown> | null;
|
|
158
|
-
};
|
|
159
|
-
mentions: Array<{
|
|
160
|
-
nickname: string;
|
|
161
|
-
type: RoomPrincipalType;
|
|
162
|
-
}>;
|
|
163
|
-
text: string | null;
|
|
164
|
-
attachments: RoomCliAttachmentView[];
|
|
165
|
-
createdAt: string;
|
|
166
|
-
editedAt: string | null;
|
|
167
|
-
deletedAt: string | null;
|
|
168
|
-
};
|
|
169
|
-
export type RoomCliReadResult = {
|
|
170
|
-
messages: RoomCliMessageView[];
|
|
171
|
-
};
|
|
172
|
-
export type RoomSendParams = {
|
|
173
|
-
roomId: string;
|
|
174
|
-
clientMessageId: string;
|
|
175
|
-
text?: string;
|
|
176
|
-
mentionMembershipIds?: string[];
|
|
177
|
-
attachmentIds?: string[];
|
|
178
|
-
replyToMessageId?: string;
|
|
179
|
-
bindingId?: string;
|
|
180
|
-
};
|
|
181
|
-
export type RoomBindParams = {
|
|
182
|
-
roomId: string;
|
|
183
|
-
agentIdentityId: string;
|
|
184
|
-
invocationToken: string;
|
|
185
|
-
activationCapability?: RoomActivationCapability;
|
|
186
|
-
activationMode?: RoomActivationMode;
|
|
187
|
-
};
|
|
188
|
-
export type RoomUnbindParams = {
|
|
189
|
-
bindingId: string;
|
|
190
|
-
};
|