@vellumai/assistant 0.6.0 → 0.6.1
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/AGENTS.md +4 -0
- package/ARCHITECTURE.md +68 -15
- package/Dockerfile +2 -2
- package/bun.lock +6 -2
- package/docker-entrypoint.sh +32 -1
- package/docs/architecture/integrations.md +1 -1
- package/docs/architecture/memory.md +21 -24
- package/openapi.yaml +538 -3
- package/package.json +5 -1
- package/src/__tests__/anthropic-provider.test.ts +160 -95
- package/src/__tests__/app-dir-path-guard.test.ts +1 -0
- package/src/__tests__/app-executors.test.ts +47 -1
- package/src/__tests__/app-source-watcher.test.ts +159 -0
- package/src/__tests__/checker.test.ts +38 -6
- package/src/__tests__/config-schema.test.ts +5 -0
- package/src/__tests__/conversation-agent-loop-overflow.test.ts +4 -6
- package/src/__tests__/conversation-agent-loop.test.ts +4 -51
- package/src/__tests__/conversation-history-web-search.test.ts +1 -1
- package/src/__tests__/conversation-runtime-assembly.test.ts +653 -832
- package/src/__tests__/conversation-runtime-workspace.test.ts +1 -93
- package/src/__tests__/conversation-tool-setup-app-refresh.test.ts +17 -4
- package/src/__tests__/conversation-wipe.test.ts +2 -6
- package/src/__tests__/conversation-workspace-cache-state.test.ts +6 -12
- package/src/__tests__/conversation-workspace-injection.test.ts +25 -26
- package/src/__tests__/conversation-workspace-tool-tracking.test.ts +1 -1
- package/src/__tests__/copy-composer-tc-templates.test.ts +335 -0
- package/src/__tests__/date-context.test.ts +76 -210
- package/src/__tests__/db-schedule-syntax-migration.test.ts +16 -1
- package/src/__tests__/file-list-tool.test.ts +219 -0
- package/src/__tests__/first-greeting.test.ts +1 -1
- package/src/__tests__/heartbeat-service.test.ts +180 -3
- package/src/__tests__/identity-routes.test.ts +328 -0
- package/src/__tests__/injection-block.test.ts +24 -0
- package/src/__tests__/install-skill-routing.test.ts +7 -6
- package/src/__tests__/jobs-store-qdrant-breaker.test.ts +15 -14
- package/src/__tests__/list-messages-tool-merge.test.ts +300 -0
- package/src/__tests__/llm-context-normalization.test.ts +18 -18
- package/src/__tests__/llm-context-route-provider.test.ts +101 -0
- package/src/__tests__/llm-request-log-turn-query.test.ts +162 -0
- package/src/__tests__/log-export-workspace.test.ts +72 -105
- package/src/__tests__/mcp-abort-signal.test.ts +5 -0
- package/src/__tests__/mcp-client-auth.test.ts +5 -0
- package/src/__tests__/memory-recall-log-store.test.ts +132 -0
- package/src/__tests__/migration-export-streaming.test.ts +304 -0
- package/src/__tests__/migration-import-commit-http.test.ts +11 -10
- package/src/__tests__/mock-fetch.ts +87 -0
- package/src/__tests__/notification-decision-recipient-context.test.ts +282 -0
- package/src/__tests__/onboarding-template-contract.test.ts +62 -14
- package/src/__tests__/parser.test.ts +32 -0
- package/src/__tests__/permission-checker-host-gate.test.ts +452 -0
- package/src/__tests__/permission-controls-v2-flag.test.ts +55 -0
- package/src/__tests__/permission-mode-sse.test.ts +418 -0
- package/src/__tests__/permission-mode-store.test.ts +277 -0
- package/src/__tests__/permission-mode.test.ts +101 -0
- package/src/__tests__/platform-bash-auto-approve.test.ts +359 -0
- package/src/__tests__/profiler-routes.test.ts +502 -0
- package/src/__tests__/profiler-run-store.test.ts +441 -0
- package/src/__tests__/proxy-approval-callback.test.ts +4 -75
- package/src/__tests__/registry.test.ts +1 -1
- package/src/__tests__/sandbox-host-parity.test.ts +5 -4
- package/src/__tests__/scheduler-reuse-conversation.test.ts +368 -0
- package/src/__tests__/scrub-corrupted-image-attachments.test.ts +278 -0
- package/src/__tests__/search-skills-unified.test.ts +4 -3
- package/src/__tests__/send-endpoint-busy.test.ts +42 -3
- package/src/__tests__/set-permission-mode.test.ts +274 -0
- package/src/__tests__/skill-load-feature-flag.test.ts +12 -0
- package/src/__tests__/skill-memory.test.ts +2 -783
- package/src/__tests__/strip-memory-injections.test.ts +187 -0
- package/src/__tests__/subagent-detail.test.ts +84 -0
- package/src/__tests__/subagent-disposal.test.ts +308 -0
- package/src/__tests__/subagent-manager-notify.test.ts +19 -10
- package/src/__tests__/subagent-notify-parent.test.ts +390 -0
- package/src/__tests__/subagent-role-registry.test.ts +108 -0
- package/src/__tests__/subagent-tool-filtering.test.ts +71 -0
- package/src/__tests__/subagent-tools.test.ts +464 -4
- package/src/__tests__/system-prompt-ask-mode.test.ts +139 -0
- package/src/__tests__/task-memory-cleanup.test.ts +12 -12
- package/src/__tests__/terminal-tools.test.ts +17 -27
- package/src/__tests__/test-preload.ts +4 -0
- package/src/__tests__/tool-executor.test.ts +4 -26
- package/src/__tests__/tool-side-effects-slack-dm.test.ts +1 -0
- package/src/__tests__/top-level-renderer.test.ts +10 -13
- package/src/__tests__/trusted-contact-lifecycle-notifications.test.ts +116 -2
- package/src/__tests__/workspace-migration-028-recover-conversations-from-disk-view.test.ts +387 -0
- package/src/agent/loop.ts +6 -0
- package/src/approvals/guardian-request-resolvers.ts +24 -0
- package/src/avatar/traits-png-sync.ts +3 -3
- package/src/cli/__tests__/run-assistant-command.ts +29 -0
- package/src/cli/commands/__tests__/email-download.test.ts +245 -0
- package/src/cli/commands/__tests__/email-list.test.ts +192 -0
- package/src/cli/commands/__tests__/email-register.test.ts +186 -0
- package/src/cli/commands/__tests__/email-send.test.ts +291 -0
- package/src/cli/commands/__tests__/email-status.test.ts +181 -0
- package/src/cli/commands/__tests__/email-unregister.test.ts +139 -0
- package/src/cli/commands/__tests__/routes.test.ts +562 -0
- package/src/cli/commands/conversations.ts +1 -8
- package/src/cli/commands/email.ts +584 -835
- package/src/cli/commands/memory.ts +1 -34
- package/src/cli/commands/notifications.ts +7 -2
- package/src/cli/commands/oauth/connect.ts +14 -5
- package/src/cli/commands/routes.ts +396 -0
- package/src/cli/commands/skills.ts +130 -20
- package/src/cli/program.ts +2 -0
- package/src/cli.ts +1 -120
- package/src/config/bundled-skills/app-builder/SKILL.md +4 -1
- package/src/config/bundled-skills/gmail/SKILL.md +2 -2
- package/src/config/bundled-skills/messaging/SKILL.md +7 -0
- package/src/config/bundled-skills/schedule/SKILL.md +22 -2
- package/src/config/bundled-skills/schedule/TOOLS.json +8 -0
- package/src/config/bundled-skills/settings/tools/avatar-get.ts +3 -13
- package/src/config/bundled-skills/settings/tools/avatar-remove.ts +2 -4
- package/src/config/bundled-skills/settings/tools/avatar-update.ts +5 -2
- package/src/config/bundled-skills/slack/SKILL.md +2 -0
- package/src/config/bundled-skills/subagent/SKILL.md +43 -3
- package/src/config/bundled-skills/subagent/TOOLS.json +29 -4
- package/src/config/env-registry.ts +63 -0
- package/src/config/feature-flag-registry.json +17 -1
- package/src/config/schema.ts +8 -0
- package/src/config/schemas/filing.ts +51 -0
- package/src/config/schemas/heartbeat.ts +15 -12
- package/src/config/schemas/memory-lifecycle.ts +12 -0
- package/src/config/schemas/security.ts +14 -0
- package/src/daemon/app-source-watcher.ts +93 -0
- package/src/daemon/config-watcher.ts +79 -1
- package/src/daemon/conversation-agent-loop-handlers.ts +20 -0
- package/src/daemon/conversation-agent-loop.ts +158 -65
- package/src/daemon/conversation-history.ts +4 -19
- package/src/daemon/conversation-lifecycle.ts +8 -14
- package/src/daemon/conversation-process.ts +13 -7
- package/src/daemon/conversation-runtime-assembly.ts +300 -306
- package/src/daemon/conversation-tool-setup.ts +44 -14
- package/src/daemon/conversation-workspace.ts +1 -2
- package/src/daemon/conversation.ts +18 -0
- package/src/daemon/date-context.ts +26 -53
- package/src/daemon/first-greeting.ts +1 -1
- package/src/daemon/handlers/conversations.ts +4 -7
- package/src/daemon/handlers/shared.test.ts +143 -0
- package/src/daemon/handlers/shared.ts +63 -5
- package/src/daemon/handlers/skills.ts +11 -18
- package/src/daemon/lifecycle.ts +199 -157
- package/src/daemon/message-types/conversations.ts +25 -6
- package/src/daemon/message-types/messages.ts +9 -1
- package/src/daemon/message-types/schedules.ts +1 -0
- package/src/daemon/message-types/settings.ts +6 -0
- package/src/daemon/profiler-run-store.ts +557 -0
- package/src/daemon/server.ts +89 -9
- package/src/daemon/shutdown-handlers.ts +5 -0
- package/src/daemon/tool-side-effects.ts +23 -3
- package/src/export/transcript-formatter.ts +148 -0
- package/src/filing/filing-service.ts +228 -0
- package/src/heartbeat/heartbeat-service.ts +96 -7
- package/src/mcp/client.ts +6 -0
- package/src/mcp/mcp-oauth-provider.ts +149 -27
- package/src/memory/admin.ts +33 -32
- package/src/memory/app-store.ts +69 -0
- package/src/memory/conversation-bootstrap.ts +1 -1
- package/src/memory/conversation-crud.ts +136 -107
- package/src/memory/conversation-group-migration.ts +1 -1
- package/src/memory/conversation-queries.ts +58 -12
- package/src/memory/conversation-title-service.ts +1 -0
- package/src/memory/db-init.ts +182 -376
- package/src/memory/graph/bootstrap.ts +75 -66
- package/src/memory/graph/capability-seed.ts +167 -15
- package/src/memory/graph/consolidation.ts +38 -4
- package/src/memory/graph/conversation-graph-memory.ts +133 -104
- package/src/memory/graph/extraction-job.ts +9 -4
- package/src/memory/graph/extraction.ts +66 -23
- package/src/memory/graph/graph-memory-state-store.ts +37 -0
- package/src/memory/graph/graph-search.ts +29 -15
- package/src/memory/graph/injection.ts +38 -8
- package/src/memory/graph/inspect.ts +12 -3
- package/src/memory/graph/retriever.ts +365 -262
- package/src/memory/graph/store.test.ts +48 -0
- package/src/memory/graph/store.ts +150 -11
- package/src/memory/graph/tool-handlers.ts +84 -209
- package/src/memory/graph/tools.ts +8 -52
- package/src/memory/graph/types.ts +24 -0
- package/src/memory/job-handlers/cleanup.ts +44 -1
- package/src/memory/jobs-store.ts +70 -60
- package/src/memory/jobs-worker.ts +44 -28
- package/src/memory/llm-request-log-store.ts +96 -12
- package/src/memory/memory-recall-log-store.ts +49 -5
- package/src/memory/migrations/203-drop-memory-items-tables.ts +33 -1
- package/src/memory/migrations/206-memory-graph-node-edits.ts +19 -0
- package/src/memory/migrations/206-scrub-corrupted-image-attachments.ts +131 -0
- package/src/memory/migrations/207-conversation-graph-memory-state.ts +20 -0
- package/src/memory/migrations/208-conversations-last-message-at.ts +35 -0
- package/src/memory/migrations/209-strip-thinking-from-consolidated.ts +85 -0
- package/src/memory/migrations/210-schedule-reuse-conversation.ts +13 -0
- package/src/memory/migrations/211-memory-recall-logs-query-context.ts +21 -0
- package/src/memory/migrations/212-llm-request-logs-created-at-index.ts +19 -0
- package/src/memory/migrations/index.ts +8 -0
- package/src/memory/migrations/registry.ts +8 -0
- package/src/memory/schema/conversations.ts +14 -0
- package/src/memory/schema/infrastructure.ts +8 -1
- package/src/memory/schema/memory-core.ts +0 -51
- package/src/memory/schema/memory-graph.ts +15 -0
- package/src/memory/task-memory-cleanup.ts +30 -11
- package/src/notifications/copy-composer.ts +86 -0
- package/src/notifications/decision-engine.ts +35 -0
- package/src/permissions/checker.ts +12 -1
- package/src/permissions/permission-mode-store.ts +180 -0
- package/src/permissions/permission-mode.ts +31 -0
- package/src/permissions/workspace-policy.ts +9 -0
- package/src/prompts/system-prompt.ts +59 -7
- package/src/prompts/templates/BOOTSTRAP-REFERENCE.md +100 -0
- package/src/prompts/templates/BOOTSTRAP.md +70 -165
- package/src/prompts/templates/HEARTBEAT.md +3 -1
- package/src/prompts/templates/SOUL.md +25 -4
- package/src/prompts/templates/UPDATES.md +8 -0
- package/src/providers/anthropic/client.ts +107 -219
- package/src/runtime/auth/route-policy.ts +23 -0
- package/src/runtime/http-server.ts +32 -2
- package/src/runtime/http-types.ts +12 -1
- package/src/runtime/migrations/vbundle-builder.ts +389 -3
- package/src/runtime/migrations/vbundle-importer.ts +8 -6
- package/src/runtime/routes/__tests__/user-route-dispatcher.test.ts +378 -0
- package/src/runtime/routes/app-management-routes.ts +1 -11
- package/src/runtime/routes/approval-strategies/guardian-callback-strategy.ts +26 -0
- package/src/runtime/routes/archive-utils.ts +29 -0
- package/src/runtime/routes/avatar-routes.ts +2 -9
- package/src/runtime/routes/btw-routes.ts +14 -1
- package/src/runtime/routes/conversation-analysis-routes.ts +173 -0
- package/src/runtime/routes/conversation-management-routes.ts +1 -14
- package/src/runtime/routes/conversation-query-routes.ts +49 -3
- package/src/runtime/routes/conversation-routes.ts +264 -44
- package/src/runtime/routes/heartbeat-routes.ts +4 -10
- package/src/runtime/routes/identity-routes.ts +53 -18
- package/src/runtime/routes/llm-context-normalization.ts +14 -10
- package/src/runtime/routes/log-export-routes.ts +23 -275
- package/src/runtime/routes/memory-item-routes.test.ts +168 -233
- package/src/runtime/routes/migration-routes.ts +18 -7
- package/src/runtime/routes/profiler-routes.ts +350 -0
- package/src/runtime/routes/schedule-routes.ts +27 -12
- package/src/runtime/routes/settings-routes.ts +95 -8
- package/src/runtime/routes/subagents-routes.ts +28 -7
- package/src/runtime/routes/user-route-dispatcher.ts +223 -0
- package/src/runtime/routes/user-routes.ts +41 -0
- package/src/runtime/routes/workspace-routes.ts +0 -1
- package/src/schedule/schedule-store.ts +30 -0
- package/src/schedule/scheduler.ts +45 -18
- package/src/skills/catalog-install.ts +10 -2
- package/src/skills/managed-store.ts +2 -2
- package/src/skills/skill-memory.ts +1 -293
- package/src/subagent/index.ts +13 -3
- package/src/subagent/manager.ts +308 -29
- package/src/subagent/types.ts +68 -0
- package/src/tasks/task-runner.ts +4 -4
- package/src/tools/apps/executors.ts +29 -4
- package/src/tools/filesystem/list.ts +93 -0
- package/src/tools/permission-checker.ts +78 -0
- package/src/tools/registry.ts +4 -0
- package/src/tools/schedule/create.ts +3 -0
- package/src/tools/schedule/list.ts +1 -0
- package/src/tools/schedule/update.ts +6 -0
- package/src/tools/shared/filesystem/errors.ts +5 -0
- package/src/tools/shared/filesystem/file-ops-service.ts +90 -2
- package/src/tools/shared/filesystem/types.ts +17 -0
- package/src/tools/shared/shell-output.ts +31 -2
- package/src/tools/subagent/abort.ts +12 -2
- package/src/tools/subagent/message.ts +9 -2
- package/src/tools/subagent/notify-parent.ts +79 -0
- package/src/tools/subagent/read.ts +29 -8
- package/src/tools/subagent/resolve.ts +21 -0
- package/src/tools/subagent/spawn.ts +2 -0
- package/src/tools/subagent/status.ts +11 -1
- package/src/tools/system/avatar-generator.ts +3 -3
- package/src/tools/system/register.ts +23 -0
- package/src/tools/system/set-permission-mode.ts +103 -0
- package/src/tools/terminal/parser.ts +30 -5
- package/src/tools/terminal/safe-env.ts +16 -1
- package/src/tools/tool-manifest.ts +6 -0
- package/src/tools/types.ts +2 -0
- package/src/util/logger.ts +1 -1
- package/src/util/platform.ts +50 -17
- package/src/workspace/migrations/023-move-config-files-to-workspace.ts +2 -2
- package/src/workspace/migrations/024-move-runtime-files-to-workspace.ts +2 -2
- package/src/workspace/migrations/028-recover-conversations-from-disk-view.ts +270 -0
- package/src/workspace/migrations/029-seed-pkb.ts +84 -0
- package/src/workspace/migrations/registry.ts +4 -0
- package/src/workspace/top-level-renderer.ts +5 -9
- package/src/__tests__/cli-memory.test.ts +0 -377
- package/src/__tests__/clipboard.test.ts +0 -88
- package/src/cli/cli-memory.ts +0 -179
- package/src/util/clipboard.ts +0 -34
package/openapi.yaml
CHANGED
|
@@ -2521,6 +2521,22 @@ paths:
|
|
|
2521
2521
|
required: true
|
|
2522
2522
|
schema:
|
|
2523
2523
|
type: string
|
|
2524
|
+
/v1/conversations/{id}/analyze:
|
|
2525
|
+
post:
|
|
2526
|
+
operationId: conversations_by_id_analyze_post
|
|
2527
|
+
summary: Analyze a conversation
|
|
2528
|
+
description: Create a new conversation with a structured self-assessment of an existing conversation.
|
|
2529
|
+
tags:
|
|
2530
|
+
- conversations
|
|
2531
|
+
responses:
|
|
2532
|
+
"200":
|
|
2533
|
+
description: Successful response
|
|
2534
|
+
parameters:
|
|
2535
|
+
- name: id
|
|
2536
|
+
in: path
|
|
2537
|
+
required: true
|
|
2538
|
+
schema:
|
|
2539
|
+
type: string
|
|
2524
2540
|
/v1/conversations/{id}/cancel:
|
|
2525
2541
|
post:
|
|
2526
2542
|
operationId: conversations_by_id_cancel_post
|
|
@@ -3103,7 +3119,7 @@ paths:
|
|
|
3103
3119
|
post:
|
|
3104
3120
|
operationId: export_post
|
|
3105
3121
|
summary: Export logs and audit data
|
|
3106
|
-
description: Export audit records, assistant logs,
|
|
3122
|
+
description: Export audit records, assistant logs, and config as a tar.gz archive.
|
|
3107
3123
|
tags:
|
|
3108
3124
|
- export
|
|
3109
3125
|
responses:
|
|
@@ -3370,6 +3386,81 @@ paths:
|
|
|
3370
3386
|
type: object
|
|
3371
3387
|
properties: {}
|
|
3372
3388
|
additionalProperties: {}
|
|
3389
|
+
profiler:
|
|
3390
|
+
type: object
|
|
3391
|
+
properties:
|
|
3392
|
+
enabled:
|
|
3393
|
+
type: boolean
|
|
3394
|
+
mode:
|
|
3395
|
+
anyOf:
|
|
3396
|
+
- type: string
|
|
3397
|
+
- type: "null"
|
|
3398
|
+
runId:
|
|
3399
|
+
anyOf:
|
|
3400
|
+
- type: string
|
|
3401
|
+
- type: "null"
|
|
3402
|
+
runDir:
|
|
3403
|
+
anyOf:
|
|
3404
|
+
- type: string
|
|
3405
|
+
- type: "null"
|
|
3406
|
+
totalBytes:
|
|
3407
|
+
type: number
|
|
3408
|
+
artifactCount:
|
|
3409
|
+
type: number
|
|
3410
|
+
budget:
|
|
3411
|
+
anyOf:
|
|
3412
|
+
- type: object
|
|
3413
|
+
properties:
|
|
3414
|
+
maxBytes:
|
|
3415
|
+
type: number
|
|
3416
|
+
remainingBytes:
|
|
3417
|
+
type: number
|
|
3418
|
+
minFreeMb:
|
|
3419
|
+
type: number
|
|
3420
|
+
freeMb:
|
|
3421
|
+
type: number
|
|
3422
|
+
overBudget:
|
|
3423
|
+
type: boolean
|
|
3424
|
+
required:
|
|
3425
|
+
- maxBytes
|
|
3426
|
+
- remainingBytes
|
|
3427
|
+
- minFreeMb
|
|
3428
|
+
- freeMb
|
|
3429
|
+
- overBudget
|
|
3430
|
+
additionalProperties: false
|
|
3431
|
+
- type: "null"
|
|
3432
|
+
lastCompletedRun:
|
|
3433
|
+
anyOf:
|
|
3434
|
+
- type: object
|
|
3435
|
+
properties:
|
|
3436
|
+
runId:
|
|
3437
|
+
type: string
|
|
3438
|
+
totalBytes:
|
|
3439
|
+
type: number
|
|
3440
|
+
artifactCount:
|
|
3441
|
+
type: number
|
|
3442
|
+
hasSummaries:
|
|
3443
|
+
type: boolean
|
|
3444
|
+
completedAt:
|
|
3445
|
+
type: string
|
|
3446
|
+
required:
|
|
3447
|
+
- runId
|
|
3448
|
+
- totalBytes
|
|
3449
|
+
- artifactCount
|
|
3450
|
+
- hasSummaries
|
|
3451
|
+
- completedAt
|
|
3452
|
+
additionalProperties: false
|
|
3453
|
+
- type: "null"
|
|
3454
|
+
required:
|
|
3455
|
+
- enabled
|
|
3456
|
+
- mode
|
|
3457
|
+
- runId
|
|
3458
|
+
- runDir
|
|
3459
|
+
- totalBytes
|
|
3460
|
+
- artifactCount
|
|
3461
|
+
- budget
|
|
3462
|
+
- lastCompletedRun
|
|
3463
|
+
additionalProperties: false
|
|
3373
3464
|
required:
|
|
3374
3465
|
- status
|
|
3375
3466
|
- timestamp
|
|
@@ -3416,6 +3507,81 @@ paths:
|
|
|
3416
3507
|
type: object
|
|
3417
3508
|
properties: {}
|
|
3418
3509
|
additionalProperties: {}
|
|
3510
|
+
profiler:
|
|
3511
|
+
type: object
|
|
3512
|
+
properties:
|
|
3513
|
+
enabled:
|
|
3514
|
+
type: boolean
|
|
3515
|
+
mode:
|
|
3516
|
+
anyOf:
|
|
3517
|
+
- type: string
|
|
3518
|
+
- type: "null"
|
|
3519
|
+
runId:
|
|
3520
|
+
anyOf:
|
|
3521
|
+
- type: string
|
|
3522
|
+
- type: "null"
|
|
3523
|
+
runDir:
|
|
3524
|
+
anyOf:
|
|
3525
|
+
- type: string
|
|
3526
|
+
- type: "null"
|
|
3527
|
+
totalBytes:
|
|
3528
|
+
type: number
|
|
3529
|
+
artifactCount:
|
|
3530
|
+
type: number
|
|
3531
|
+
budget:
|
|
3532
|
+
anyOf:
|
|
3533
|
+
- type: object
|
|
3534
|
+
properties:
|
|
3535
|
+
maxBytes:
|
|
3536
|
+
type: number
|
|
3537
|
+
remainingBytes:
|
|
3538
|
+
type: number
|
|
3539
|
+
minFreeMb:
|
|
3540
|
+
type: number
|
|
3541
|
+
freeMb:
|
|
3542
|
+
type: number
|
|
3543
|
+
overBudget:
|
|
3544
|
+
type: boolean
|
|
3545
|
+
required:
|
|
3546
|
+
- maxBytes
|
|
3547
|
+
- remainingBytes
|
|
3548
|
+
- minFreeMb
|
|
3549
|
+
- freeMb
|
|
3550
|
+
- overBudget
|
|
3551
|
+
additionalProperties: false
|
|
3552
|
+
- type: "null"
|
|
3553
|
+
lastCompletedRun:
|
|
3554
|
+
anyOf:
|
|
3555
|
+
- type: object
|
|
3556
|
+
properties:
|
|
3557
|
+
runId:
|
|
3558
|
+
type: string
|
|
3559
|
+
totalBytes:
|
|
3560
|
+
type: number
|
|
3561
|
+
artifactCount:
|
|
3562
|
+
type: number
|
|
3563
|
+
hasSummaries:
|
|
3564
|
+
type: boolean
|
|
3565
|
+
completedAt:
|
|
3566
|
+
type: string
|
|
3567
|
+
required:
|
|
3568
|
+
- runId
|
|
3569
|
+
- totalBytes
|
|
3570
|
+
- artifactCount
|
|
3571
|
+
- hasSummaries
|
|
3572
|
+
- completedAt
|
|
3573
|
+
additionalProperties: false
|
|
3574
|
+
- type: "null"
|
|
3575
|
+
required:
|
|
3576
|
+
- enabled
|
|
3577
|
+
- mode
|
|
3578
|
+
- runId
|
|
3579
|
+
- runDir
|
|
3580
|
+
- totalBytes
|
|
3581
|
+
- artifactCount
|
|
3582
|
+
- budget
|
|
3583
|
+
- lastCompletedRun
|
|
3584
|
+
additionalProperties: false
|
|
3419
3585
|
required:
|
|
3420
3586
|
- status
|
|
3421
3587
|
- timestamp
|
|
@@ -4077,11 +4243,41 @@ paths:
|
|
|
4077
4243
|
responses:
|
|
4078
4244
|
"200":
|
|
4079
4245
|
description: Successful response
|
|
4246
|
+
/v1/llm-request-logs/{id}/payload:
|
|
4247
|
+
get:
|
|
4248
|
+
operationId: llmrequestlogs_by_id_payload_get
|
|
4249
|
+
summary: Get raw payload for a single LLM request log
|
|
4250
|
+
description: Return the full request and response payloads for a specific log entry.
|
|
4251
|
+
tags:
|
|
4252
|
+
- messages
|
|
4253
|
+
responses:
|
|
4254
|
+
"200":
|
|
4255
|
+
description: Successful response
|
|
4256
|
+
content:
|
|
4257
|
+
application/json:
|
|
4258
|
+
schema:
|
|
4259
|
+
type: object
|
|
4260
|
+
properties:
|
|
4261
|
+
id:
|
|
4262
|
+
type: string
|
|
4263
|
+
requestPayload: {}
|
|
4264
|
+
responsePayload: {}
|
|
4265
|
+
required:
|
|
4266
|
+
- id
|
|
4267
|
+
- requestPayload
|
|
4268
|
+
- responsePayload
|
|
4269
|
+
additionalProperties: false
|
|
4270
|
+
parameters:
|
|
4271
|
+
- name: id
|
|
4272
|
+
in: path
|
|
4273
|
+
required: true
|
|
4274
|
+
schema:
|
|
4275
|
+
type: string
|
|
4080
4276
|
/v1/logs/export:
|
|
4081
4277
|
post:
|
|
4082
4278
|
operationId: logs_export_post
|
|
4083
4279
|
summary: Export logs and audit data (alias)
|
|
4084
|
-
description: Alias for /v1/export. Export audit records, assistant logs,
|
|
4280
|
+
description: Alias for /v1/export. Export audit records, assistant logs, and config as a tar.gz archive.
|
|
4085
4281
|
tags:
|
|
4086
4282
|
- export
|
|
4087
4283
|
responses:
|
|
@@ -4383,7 +4579,6 @@ paths:
|
|
|
4383
4579
|
slashCommand:
|
|
4384
4580
|
type: string
|
|
4385
4581
|
required:
|
|
4386
|
-
- conversationKey
|
|
4387
4582
|
- content
|
|
4388
4583
|
additionalProperties: false
|
|
4389
4584
|
/v1/messages/{id}/content:
|
|
@@ -4914,6 +5109,237 @@ paths:
|
|
|
4914
5109
|
schema:
|
|
4915
5110
|
type: string
|
|
4916
5111
|
description: Conversation ID
|
|
5112
|
+
/v1/permission-mode:
|
|
5113
|
+
get:
|
|
5114
|
+
operationId: permissionmode_get
|
|
5115
|
+
summary: Get permission mode
|
|
5116
|
+
description: Return the current two-axis permission mode (askBeforeActing, hostAccess).
|
|
5117
|
+
tags:
|
|
5118
|
+
- settings
|
|
5119
|
+
responses:
|
|
5120
|
+
"200":
|
|
5121
|
+
description: Successful response
|
|
5122
|
+
content:
|
|
5123
|
+
application/json:
|
|
5124
|
+
schema:
|
|
5125
|
+
type: object
|
|
5126
|
+
properties:
|
|
5127
|
+
askBeforeActing:
|
|
5128
|
+
type: boolean
|
|
5129
|
+
hostAccess:
|
|
5130
|
+
type: boolean
|
|
5131
|
+
required:
|
|
5132
|
+
- askBeforeActing
|
|
5133
|
+
- hostAccess
|
|
5134
|
+
additionalProperties: false
|
|
5135
|
+
put:
|
|
5136
|
+
operationId: permissionmode_put
|
|
5137
|
+
summary: Update permission mode
|
|
5138
|
+
description: Update the two-axis permission mode. Requires the permission-controls-v2 feature flag.
|
|
5139
|
+
tags:
|
|
5140
|
+
- settings
|
|
5141
|
+
responses:
|
|
5142
|
+
"200":
|
|
5143
|
+
description: Successful response
|
|
5144
|
+
content:
|
|
5145
|
+
application/json:
|
|
5146
|
+
schema:
|
|
5147
|
+
type: object
|
|
5148
|
+
properties:
|
|
5149
|
+
askBeforeActing:
|
|
5150
|
+
type: boolean
|
|
5151
|
+
hostAccess:
|
|
5152
|
+
type: boolean
|
|
5153
|
+
required:
|
|
5154
|
+
- askBeforeActing
|
|
5155
|
+
- hostAccess
|
|
5156
|
+
additionalProperties: false
|
|
5157
|
+
requestBody:
|
|
5158
|
+
required: true
|
|
5159
|
+
content:
|
|
5160
|
+
application/json:
|
|
5161
|
+
schema:
|
|
5162
|
+
type: object
|
|
5163
|
+
properties:
|
|
5164
|
+
askBeforeActing:
|
|
5165
|
+
type: boolean
|
|
5166
|
+
hostAccess:
|
|
5167
|
+
type: boolean
|
|
5168
|
+
additionalProperties: false
|
|
5169
|
+
/v1/profiler/runs:
|
|
5170
|
+
get:
|
|
5171
|
+
operationId: profiler_runs_get
|
|
5172
|
+
summary: List profiler runs
|
|
5173
|
+
description: Enumerate all profiler run directories with manifest metadata, sorted newest-first.
|
|
5174
|
+
tags:
|
|
5175
|
+
- profiler
|
|
5176
|
+
responses:
|
|
5177
|
+
"200":
|
|
5178
|
+
description: Successful response
|
|
5179
|
+
content:
|
|
5180
|
+
application/json:
|
|
5181
|
+
schema:
|
|
5182
|
+
type: object
|
|
5183
|
+
properties:
|
|
5184
|
+
runs:
|
|
5185
|
+
type: array
|
|
5186
|
+
items:
|
|
5187
|
+
type: object
|
|
5188
|
+
properties:
|
|
5189
|
+
runId:
|
|
5190
|
+
type: string
|
|
5191
|
+
status:
|
|
5192
|
+
type: string
|
|
5193
|
+
enum:
|
|
5194
|
+
- active
|
|
5195
|
+
- completed
|
|
5196
|
+
createdAt:
|
|
5197
|
+
type: string
|
|
5198
|
+
updatedAt:
|
|
5199
|
+
type: string
|
|
5200
|
+
totalBytes:
|
|
5201
|
+
type: number
|
|
5202
|
+
completedAt:
|
|
5203
|
+
type: string
|
|
5204
|
+
required:
|
|
5205
|
+
- runId
|
|
5206
|
+
- status
|
|
5207
|
+
- createdAt
|
|
5208
|
+
- updatedAt
|
|
5209
|
+
- totalBytes
|
|
5210
|
+
additionalProperties: false
|
|
5211
|
+
totalRuns:
|
|
5212
|
+
type: number
|
|
5213
|
+
activeRunId:
|
|
5214
|
+
anyOf:
|
|
5215
|
+
- type: string
|
|
5216
|
+
- type: "null"
|
|
5217
|
+
required:
|
|
5218
|
+
- runs
|
|
5219
|
+
- totalRuns
|
|
5220
|
+
- activeRunId
|
|
5221
|
+
additionalProperties: false
|
|
5222
|
+
/v1/profiler/runs/{runId}:
|
|
5223
|
+
delete:
|
|
5224
|
+
operationId: profiler_runs_by_runId_delete
|
|
5225
|
+
summary: Delete profiler run
|
|
5226
|
+
description: Delete a completed profiler run and recalculate disk-budget state. Rejects deletion of the currently active run.
|
|
5227
|
+
tags:
|
|
5228
|
+
- profiler
|
|
5229
|
+
responses:
|
|
5230
|
+
"200":
|
|
5231
|
+
description: Successful response
|
|
5232
|
+
content:
|
|
5233
|
+
application/json:
|
|
5234
|
+
schema:
|
|
5235
|
+
type: object
|
|
5236
|
+
properties:
|
|
5237
|
+
deleted:
|
|
5238
|
+
type: boolean
|
|
5239
|
+
runId:
|
|
5240
|
+
type: string
|
|
5241
|
+
remainingRuns:
|
|
5242
|
+
type: number
|
|
5243
|
+
activeRunOverBudget:
|
|
5244
|
+
type: boolean
|
|
5245
|
+
required:
|
|
5246
|
+
- deleted
|
|
5247
|
+
- runId
|
|
5248
|
+
- remainingRuns
|
|
5249
|
+
- activeRunOverBudget
|
|
5250
|
+
additionalProperties: false
|
|
5251
|
+
parameters:
|
|
5252
|
+
- name: runId
|
|
5253
|
+
in: path
|
|
5254
|
+
required: true
|
|
5255
|
+
schema:
|
|
5256
|
+
type: string
|
|
5257
|
+
get:
|
|
5258
|
+
operationId: profiler_runs_by_runId_get
|
|
5259
|
+
summary: Get profiler run detail
|
|
5260
|
+
description: Return manifest metadata, Bun-generated markdown summary, and current retention state for a single profiler run.
|
|
5261
|
+
tags:
|
|
5262
|
+
- profiler
|
|
5263
|
+
responses:
|
|
5264
|
+
"200":
|
|
5265
|
+
description: Successful response
|
|
5266
|
+
content:
|
|
5267
|
+
application/json:
|
|
5268
|
+
schema:
|
|
5269
|
+
type: object
|
|
5270
|
+
properties:
|
|
5271
|
+
runId:
|
|
5272
|
+
type: string
|
|
5273
|
+
status:
|
|
5274
|
+
type: string
|
|
5275
|
+
enum:
|
|
5276
|
+
- active
|
|
5277
|
+
- completed
|
|
5278
|
+
createdAt:
|
|
5279
|
+
type: string
|
|
5280
|
+
updatedAt:
|
|
5281
|
+
type: string
|
|
5282
|
+
totalBytes:
|
|
5283
|
+
type: number
|
|
5284
|
+
completedAt:
|
|
5285
|
+
type: string
|
|
5286
|
+
summary:
|
|
5287
|
+
anyOf:
|
|
5288
|
+
- type: string
|
|
5289
|
+
- type: "null"
|
|
5290
|
+
isActive:
|
|
5291
|
+
type: boolean
|
|
5292
|
+
budget:
|
|
5293
|
+
type: object
|
|
5294
|
+
properties:
|
|
5295
|
+
maxBytes:
|
|
5296
|
+
type: number
|
|
5297
|
+
totalBytesAllRuns:
|
|
5298
|
+
type: number
|
|
5299
|
+
remainingBytes:
|
|
5300
|
+
type: number
|
|
5301
|
+
overBudget:
|
|
5302
|
+
type: boolean
|
|
5303
|
+
required:
|
|
5304
|
+
- maxBytes
|
|
5305
|
+
- totalBytesAllRuns
|
|
5306
|
+
- remainingBytes
|
|
5307
|
+
- overBudget
|
|
5308
|
+
additionalProperties: false
|
|
5309
|
+
required:
|
|
5310
|
+
- runId
|
|
5311
|
+
- status
|
|
5312
|
+
- createdAt
|
|
5313
|
+
- updatedAt
|
|
5314
|
+
- totalBytes
|
|
5315
|
+
- summary
|
|
5316
|
+
- isActive
|
|
5317
|
+
- budget
|
|
5318
|
+
additionalProperties: false
|
|
5319
|
+
parameters:
|
|
5320
|
+
- name: runId
|
|
5321
|
+
in: path
|
|
5322
|
+
required: true
|
|
5323
|
+
schema:
|
|
5324
|
+
type: string
|
|
5325
|
+
/v1/profiler/runs/{runId}/export:
|
|
5326
|
+
post:
|
|
5327
|
+
operationId: profiler_runs_by_runId_export_post
|
|
5328
|
+
summary: Export profiler run
|
|
5329
|
+
description:
|
|
5330
|
+
Package a single profiler run directory as a tar.gz bundle, subject to the same archive size limits used by
|
|
5331
|
+
runtime log exports.
|
|
5332
|
+
tags:
|
|
5333
|
+
- profiler
|
|
5334
|
+
responses:
|
|
5335
|
+
"200":
|
|
5336
|
+
description: Successful response
|
|
5337
|
+
parameters:
|
|
5338
|
+
- name: runId
|
|
5339
|
+
in: path
|
|
5340
|
+
required: true
|
|
5341
|
+
schema:
|
|
5342
|
+
type: string
|
|
4917
5343
|
/v1/recordings/pause:
|
|
4918
5344
|
post:
|
|
4919
5345
|
operationId: recordings_pause_post
|
|
@@ -5224,6 +5650,8 @@ paths:
|
|
|
5224
5650
|
description: single_channel, multi_channel, or all_channels
|
|
5225
5651
|
quiet:
|
|
5226
5652
|
type: boolean
|
|
5653
|
+
reuseConversation:
|
|
5654
|
+
type: boolean
|
|
5227
5655
|
required:
|
|
5228
5656
|
- name
|
|
5229
5657
|
- expression
|
|
@@ -5232,6 +5660,7 @@ paths:
|
|
|
5232
5660
|
- mode
|
|
5233
5661
|
- routingIntent
|
|
5234
5662
|
- quiet
|
|
5663
|
+
- reuseConversation
|
|
5235
5664
|
additionalProperties: false
|
|
5236
5665
|
/v1/schedules/{id}/cancel:
|
|
5237
5666
|
post:
|
|
@@ -7859,3 +8288,109 @@ paths:
|
|
|
7859
8288
|
required:
|
|
7860
8289
|
- path
|
|
7861
8290
|
additionalProperties: false
|
|
8291
|
+
/v1/x/{path}:
|
|
8292
|
+
delete:
|
|
8293
|
+
operationId: x_by_path_delete
|
|
8294
|
+
summary: User-defined DELETE route
|
|
8295
|
+
description: Dispatches DELETE requests to user-defined handler files in the workspace routes directory.
|
|
8296
|
+
tags:
|
|
8297
|
+
- user-routes
|
|
8298
|
+
responses:
|
|
8299
|
+
"200":
|
|
8300
|
+
description: Successful response
|
|
8301
|
+
parameters:
|
|
8302
|
+
- name: path
|
|
8303
|
+
in: path
|
|
8304
|
+
required: true
|
|
8305
|
+
schema:
|
|
8306
|
+
type: string
|
|
8307
|
+
get:
|
|
8308
|
+
operationId: x_by_path_get
|
|
8309
|
+
summary: User-defined GET route
|
|
8310
|
+
description: Dispatches GET requests to user-defined handler files in the workspace routes directory.
|
|
8311
|
+
tags:
|
|
8312
|
+
- user-routes
|
|
8313
|
+
responses:
|
|
8314
|
+
"200":
|
|
8315
|
+
description: Successful response
|
|
8316
|
+
parameters:
|
|
8317
|
+
- name: path
|
|
8318
|
+
in: path
|
|
8319
|
+
required: true
|
|
8320
|
+
schema:
|
|
8321
|
+
type: string
|
|
8322
|
+
head:
|
|
8323
|
+
operationId: x_by_path_head
|
|
8324
|
+
summary: User-defined HEAD route
|
|
8325
|
+
description: Dispatches HEAD requests to user-defined handler files in the workspace routes directory.
|
|
8326
|
+
tags:
|
|
8327
|
+
- user-routes
|
|
8328
|
+
responses:
|
|
8329
|
+
"200":
|
|
8330
|
+
description: Successful response
|
|
8331
|
+
parameters:
|
|
8332
|
+
- name: path
|
|
8333
|
+
in: path
|
|
8334
|
+
required: true
|
|
8335
|
+
schema:
|
|
8336
|
+
type: string
|
|
8337
|
+
options:
|
|
8338
|
+
operationId: x_by_path_options
|
|
8339
|
+
summary: User-defined OPTIONS route
|
|
8340
|
+
description: Dispatches OPTIONS requests to user-defined handler files in the workspace routes directory.
|
|
8341
|
+
tags:
|
|
8342
|
+
- user-routes
|
|
8343
|
+
responses:
|
|
8344
|
+
"200":
|
|
8345
|
+
description: Successful response
|
|
8346
|
+
parameters:
|
|
8347
|
+
- name: path
|
|
8348
|
+
in: path
|
|
8349
|
+
required: true
|
|
8350
|
+
schema:
|
|
8351
|
+
type: string
|
|
8352
|
+
patch:
|
|
8353
|
+
operationId: x_by_path_patch
|
|
8354
|
+
summary: User-defined PATCH route
|
|
8355
|
+
description: Dispatches PATCH requests to user-defined handler files in the workspace routes directory.
|
|
8356
|
+
tags:
|
|
8357
|
+
- user-routes
|
|
8358
|
+
responses:
|
|
8359
|
+
"200":
|
|
8360
|
+
description: Successful response
|
|
8361
|
+
parameters:
|
|
8362
|
+
- name: path
|
|
8363
|
+
in: path
|
|
8364
|
+
required: true
|
|
8365
|
+
schema:
|
|
8366
|
+
type: string
|
|
8367
|
+
post:
|
|
8368
|
+
operationId: x_by_path_post
|
|
8369
|
+
summary: User-defined POST route
|
|
8370
|
+
description: Dispatches POST requests to user-defined handler files in the workspace routes directory.
|
|
8371
|
+
tags:
|
|
8372
|
+
- user-routes
|
|
8373
|
+
responses:
|
|
8374
|
+
"200":
|
|
8375
|
+
description: Successful response
|
|
8376
|
+
parameters:
|
|
8377
|
+
- name: path
|
|
8378
|
+
in: path
|
|
8379
|
+
required: true
|
|
8380
|
+
schema:
|
|
8381
|
+
type: string
|
|
8382
|
+
put:
|
|
8383
|
+
operationId: x_by_path_put
|
|
8384
|
+
summary: User-defined PUT route
|
|
8385
|
+
description: Dispatches PUT requests to user-defined handler files in the workspace routes directory.
|
|
8386
|
+
tags:
|
|
8387
|
+
- user-routes
|
|
8388
|
+
responses:
|
|
8389
|
+
"200":
|
|
8390
|
+
description: Successful response
|
|
8391
|
+
parameters:
|
|
8392
|
+
- name: path
|
|
8393
|
+
in: path
|
|
8394
|
+
required: true
|
|
8395
|
+
schema:
|
|
8396
|
+
type: string
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vellumai/assistant",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -70,6 +70,10 @@
|
|
|
70
70
|
"@vellumai/credential-storage",
|
|
71
71
|
"@vellumai/egress-proxy"
|
|
72
72
|
],
|
|
73
|
+
"overrides": {
|
|
74
|
+
"lodash": "^4.18.0",
|
|
75
|
+
"path-to-regexp": "^8.4.0"
|
|
76
|
+
},
|
|
73
77
|
"devDependencies": {
|
|
74
78
|
"@types/archiver": "^7.0.0",
|
|
75
79
|
"@types/bun": "^1.2.4",
|