@crewx/sdk 0.9.0-rc.14 → 0.9.0-rc.141
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 +1 -1
- package/dist/account/auth-client.d.ts +61 -0
- package/dist/account/auth-json-v2.d.ts +1 -0
- package/dist/account/auth-json.d.ts +30 -0
- package/dist/account/config.d.ts +37 -0
- package/dist/account/env-bootstrap.d.ts +11 -0
- package/dist/account/errors.d.ts +24 -0
- package/dist/account/index.d.ts +12 -0
- package/dist/account/index.js +2 -0
- package/dist/account/session-manager.d.ts +47 -0
- package/dist/activity-log/builder.d.ts +59 -6
- package/dist/agent/agent-list-view.d.ts +19 -0
- package/dist/app/app.d.ts +148 -0
- package/dist/app/backend-env.d.ts +3 -0
- package/dist/app/content-media-types.d.ts +2 -0
- package/dist/app/context.d.ts +2 -0
- package/dist/app/entry.d.ts +7 -0
- package/dist/app/frame.d.ts +56 -0
- package/dist/app/index.d.ts +10 -0
- package/dist/app/index.js +10 -0
- package/dist/app/protocol.d.ts +9 -0
- package/dist/app/runtime.d.ts +21 -0
- package/dist/app/tool-mode.d.ts +3 -0
- package/dist/boxing/box.types.d.ts +4 -0
- package/dist/config/canonicalize-agent-options.d.ts +18 -0
- package/dist/config/default-agent-models.d.ts +11 -0
- package/dist/config/global-settings.d.ts +33 -0
- package/dist/config/migrate-grok-mode.d.ts +6 -0
- package/dist/config/model-compat.d.ts +31 -0
- package/dist/config/models.generated.d.ts +37 -0
- package/dist/config/models.remote.d.ts +1 -0
- package/dist/config/overdrive.d.ts +7 -0
- package/dist/config/pricing.d.ts +6 -3
- package/dist/config/pricing.generated.d.ts +4 -0
- package/dist/config/pricing.types.d.ts +4 -0
- package/dist/config/timeout.config.d.ts +4 -0
- package/dist/config/wi-boards.d.ts +19 -0
- package/dist/context-budget/continuity.d.ts +61 -0
- package/dist/context-budget/index.d.ts +141 -0
- package/dist/conversation/index.d.ts +1 -1
- package/dist/conversation/sqlite-provider.d.ts +6 -3
- package/dist/conversation/to-template-messages.d.ts +9 -0
- package/dist/conversation/types.d.ts +48 -1
- package/dist/desktop/command-runner.d.ts +4 -0
- package/dist/desktop/default-adapters.d.ts +4 -0
- package/dist/desktop/global-install.d.ts +19 -0
- package/dist/desktop/index.d.ts +3 -0
- package/dist/desktop/index.js +3 -0
- package/dist/desktop/install.d.ts +5 -0
- package/dist/desktop/lnk.d.ts +22 -0
- package/dist/desktop/manifest.d.ts +21 -0
- package/dist/desktop/types.d.ts +67 -0
- package/dist/desktop/version.d.ts +1 -0
- package/dist/desktop/windows-paths.d.ts +21 -0
- package/dist/desktop/wrapper.d.ts +18 -0
- package/dist/esm/account/index.js +2 -0
- package/dist/esm/app/index.js +10 -0
- package/dist/esm/desktop/index.js +3 -0
- package/dist/esm/index.js +1104 -226
- package/dist/esm/node/index.js +2 -0
- package/dist/esm/plugins/index.js +474 -216
- package/dist/esm/process/index.js +1 -0
- package/dist/esm/publish/index.js +2 -0
- package/dist/esm/repository/index.js +586 -213
- package/dist/esm/skills/index.js +2 -0
- package/dist/esm/testing/index.js +1 -1
- package/dist/events/types.d.ts +9 -0
- package/dist/facade/Crewx.d.ts +60 -5
- package/dist/facade/task-ticket.d.ts +14 -0
- package/dist/highlight/thread-highlight-prompt.d.ts +2 -0
- package/dist/highlight/thread-highlighter.d.ts +326 -0
- package/dist/index.browser.d.ts +17 -1
- package/dist/index.browser.js +6 -2
- package/dist/index.d.ts +125 -17
- package/dist/index.js +1104 -226
- package/dist/internal/console-decoder.d.ts +38 -0
- package/dist/internal/windows-spawn.d.ts +10 -0
- package/dist/layout/types.d.ts +18 -1
- package/dist/lifecycle/process-lease.d.ts +80 -0
- package/dist/lifecycle/process-owner.d.ts +20 -0
- package/dist/lifecycle/task-heartbeat.d.ts +41 -0
- package/dist/lifecycle/task-stop.d.ts +82 -0
- package/dist/lifecycle/update-admission.d.ts +45 -0
- package/dist/local-server/base-url.d.ts +18 -0
- package/dist/local-server/index.d.ts +8 -0
- package/dist/local-server/opencode.d.ts +8 -0
- package/dist/local-server/probe.d.ts +3 -0
- package/dist/local-server/runtime.d.ts +26 -0
- package/dist/local-server/types.d.ts +43 -0
- package/dist/mcp-app/agent-access.d.ts +26 -0
- package/dist/mcp-app/apps-context.d.ts +20 -0
- package/dist/mcp-app/bundle-provenance.d.ts +3 -0
- package/dist/mcp-app/catalog.d.ts +7 -0
- package/dist/mcp-app/content-channel.d.ts +86 -0
- package/dist/mcp-app/content-declarations.d.ts +31 -0
- package/dist/mcp-app/dev-checks.d.ts +29 -0
- package/dist/mcp-app/diagnostic-reason.d.ts +3 -0
- package/dist/mcp-app/discovery.d.ts +160 -0
- package/dist/mcp-app/errors.d.ts +7 -0
- package/dist/mcp-app/index.d.ts +33 -0
- package/dist/mcp-app/installed-app-ref.d.ts +25 -0
- package/dist/mcp-app/model-context.d.ts +29 -0
- package/dist/mcp-app/node-app-discovery-fs.d.ts +23 -0
- package/dist/mcp-app/product-bundle-assets.d.ts +27 -0
- package/dist/mcp-app/product-bundle-loader.d.ts +53 -0
- package/dist/mcp-app/projection.d.ts +14 -0
- package/dist/mcp-app/registry.d.ts +28 -0
- package/dist/mcp-app/skill-backend.d.ts +132 -0
- package/dist/mcp-app/state-set.d.ts +9 -0
- package/dist/mcp-app/types.d.ts +472 -0
- package/dist/mcp-app/workspace-app-assets.d.ts +42 -0
- package/dist/mcp-app/workspace-app-scan-cache.d.ts +24 -0
- package/dist/mcp-app/workspace-snapshot.d.ts +71 -0
- package/dist/migrations/0011_far_black_tarantula.sql +1 -0
- package/dist/migrations/0012_blue_turbo.sql +23 -0
- package/dist/migrations/0013_hesitant_adam_destine.sql +15 -0
- package/dist/migrations/0014_organic_mongu.sql +73 -0
- package/dist/migrations/0015_panoramic_gorilla_man.sql +71 -0
- package/dist/migrations/0016_fuzzy_hemingway.sql +14 -0
- package/dist/migrations/0017_project_stage_sdk_migration.sql +29 -0
- package/dist/migrations/0018_bored_jackal.sql +33 -0
- package/dist/migrations/0019_backfill_task_thread_ids.sql +74 -0
- package/dist/migrations/0020_useful_iron_lad.sql +55 -0
- package/dist/migrations/0021_dashing_peter_quill.sql +51 -0
- package/dist/migrations/0022_wandering_bucky.sql +1 -0
- package/dist/migrations/0023_red_payback.sql +1 -0
- package/dist/migrations/0024_storage_metadata.sql +262 -0
- package/dist/migrations/0025_task_heartbeat.sql +8 -0
- package/dist/migrations/0025_thread_app_instance_ledger.sql +2 -0
- package/dist/migrations/0026_mcp_action_source.sql +47 -0
- package/dist/migrations/0027_task_stop_scope_cleanup.sql +5 -0
- package/dist/migrations/0027_ui_instance_active_unique.sql +2 -0
- package/dist/migrations/0029_nice_rhino.sql +1 -0
- package/dist/migrations/0031_petite_arclight.sql +6 -0
- package/dist/migrations/0032_ui_instance_opened_by.sql +1 -0
- package/dist/migrations/0033_thread_creator_boundary_guard.sql +38 -0
- package/dist/migrations/0034_keen_fallen_one.sql +36 -0
- package/dist/migrations/0035_request_log_daily.sql +11 -0
- package/dist/migrations/0036_ui_definition_archive.sql +8 -0
- package/dist/migrations/meta/0011_snapshot.json +1342 -0
- package/dist/migrations/meta/0012_snapshot.json +1494 -0
- package/dist/migrations/meta/0013_snapshot.json +1592 -0
- package/dist/migrations/meta/0014_snapshot.json +1975 -0
- package/dist/migrations/meta/0015_snapshot.json +2315 -0
- package/dist/migrations/meta/0016_snapshot.json +2419 -0
- package/dist/migrations/meta/0017_snapshot.json +2419 -0
- package/dist/migrations/meta/0018_snapshot.json +2570 -0
- package/dist/migrations/meta/0020_snapshot.json +2895 -0
- package/dist/migrations/meta/0021_snapshot.json +3031 -0
- package/dist/migrations/meta/0022_snapshot.json +3039 -0
- package/dist/migrations/meta/0023_snapshot.json +3047 -0
- package/dist/migrations/meta/0029_snapshot.json +3206 -0
- package/dist/migrations/meta/0031_snapshot.json +3251 -0
- package/dist/migrations/meta/0034_snapshot.json +3473 -0
- package/dist/migrations/meta/0035_snapshot.json +3547 -0
- package/dist/migrations/meta/0036_snapshot.json +3591 -0
- package/dist/migrations/meta/_journal.json +182 -0
- package/dist/node/index.d.ts +1 -0
- package/dist/node/index.js +2 -0
- package/dist/paths.d.ts +1 -0
- package/dist/plugin/types.d.ts +1 -0
- package/dist/plugins/index.d.ts +1 -1
- package/dist/plugins/index.js +474 -216
- package/dist/plugins/sqlite-tracing.d.ts +46 -0
- package/dist/process/index.d.ts +2 -0
- package/dist/process/index.js +1 -0
- package/dist/process/process-control.d.ts +41 -0
- package/dist/prompt/tag-names.d.ts +22 -0
- package/dist/provider/acp/connection.d.ts +6 -0
- package/dist/provider/acp/meta.d.ts +11 -0
- package/dist/provider/bridge.d.ts +7 -1
- package/dist/provider/classify-task-error.d.ts +2 -0
- package/dist/provider/cli/adapter.types.d.ts +14 -2
- package/dist/provider/cli/adapters/agent-call.util.d.ts +1 -1
- package/dist/provider/cli/adapters/cli-knob.util.d.ts +7 -0
- package/dist/provider/cli/adapters/codex-item.d.ts +1 -0
- package/dist/provider/cli/adapters/event-timestamp.util.d.ts +1 -0
- package/dist/provider/cli/adapters/grok.d.ts +2 -0
- package/dist/provider/cli/adapters/index.d.ts +5 -0
- package/dist/provider/cli/index.d.ts +3 -2
- package/dist/provider/cli/meta.d.ts +5 -0
- package/dist/provider/cli/protocol-envelope.d.ts +3 -0
- package/dist/provider/errors.d.ts +5 -1
- package/dist/provider/idle-watchdog.d.ts +19 -0
- package/dist/provider/models.d.ts +17 -12
- package/dist/provider/order.d.ts +1 -1
- package/dist/provider/parse-usage.d.ts +6 -0
- package/dist/provider/provider-selection.d.ts +8 -0
- package/dist/provider/redact-technical-message.d.ts +1 -0
- package/dist/provider/task-error.types.d.ts +17 -0
- package/dist/publish/constants.d.ts +6 -0
- package/dist/publish/errors.d.ts +7 -0
- package/dist/publish/index.d.ts +50 -0
- package/dist/publish/index.js +2 -0
- package/dist/publish/manifest.d.ts +47 -0
- package/dist/publish/marketplace-api.constants.d.ts +1 -0
- package/dist/publish/pack.d.ts +6 -0
- package/dist/publish/scan.d.ts +9 -0
- package/dist/publish/secrets.d.ts +6 -0
- package/dist/publish/upload.d.ts +19 -0
- package/dist/remote/execution-profile.d.ts +9 -0
- package/dist/remote/index.d.ts +1 -0
- package/dist/remote/types.d.ts +28 -0
- package/dist/repository/agent-suggestion.repository.d.ts +34 -0
- package/dist/repository/base-sqlite-repository.d.ts +1 -0
- package/dist/repository/common-code.repository.d.ts +45 -0
- package/dist/repository/db.d.ts +12 -1
- package/dist/repository/index.d.ts +41 -5
- package/dist/repository/index.js +586 -213
- package/dist/repository/logs-db.d.ts +12 -0
- package/dist/repository/notification.repository.d.ts +58 -0
- package/dist/repository/project.repository.d.ts +90 -0
- package/dist/repository/request-log-mover.d.ts +70 -0
- package/dist/repository/request-log.repository.d.ts +7 -3
- package/dist/repository/storage-metadata.repository.d.ts +64 -0
- package/dist/repository/task-log-migration.d.ts +74 -0
- package/dist/repository/task-log.repository.d.ts +44 -0
- package/dist/repository/task-status.d.ts +21 -0
- package/dist/repository/task.repository.d.ts +229 -7
- package/dist/repository/thread-history.repository.d.ts +193 -0
- package/dist/repository/thread-origin-verdict.d.ts +27 -0
- package/dist/repository/thread-title.types.d.ts +29 -0
- package/dist/repository/thread.repository.d.ts +115 -7
- package/dist/repository/usage-backfill.d.ts +62 -0
- package/dist/repository/usage-from-logs.d.ts +21 -0
- package/dist/repository/workspace.repository.d.ts +3 -0
- package/dist/schema/agent-suggestions.d.ts +199 -0
- package/dist/schema/common-codes.d.ts +216 -0
- package/dist/schema/index.d.ts +13 -0
- package/dist/schema/notifications.d.ts +303 -0
- package/dist/schema/projects.d.ts +610 -0
- package/dist/schema/request-log-daily.d.ts +151 -0
- package/dist/schema/storage-metadata.d.ts +181 -0
- package/dist/schema/task-log-events.d.ts +119 -0
- package/dist/schema/tasks.d.ts +165 -0
- package/dist/schema/thread-creator-unverified.d.ts +45 -0
- package/dist/schema/thread-history.d.ts +734 -0
- package/dist/schema/threads.d.ts +59 -0
- package/dist/schema/ui-action-receipts.d.ts +358 -0
- package/dist/schema/ui-definition-archive.d.ts +63 -0
- package/dist/schema/ui-instance-repins.d.ts +222 -0
- package/dist/schema/ui-instances.d.ts +305 -0
- package/dist/schema/workspaces.d.ts +17 -0
- package/dist/skills/index.d.ts +15 -0
- package/dist/skills/index.js +2 -0
- package/dist/skills/types.d.ts +18 -0
- package/dist/task-log/anchor-child-tasks.d.ts +7 -0
- package/dist/task-log/delegation-trailer.d.ts +34 -0
- package/dist/template/engine.d.ts +2 -2
- package/dist/template/helpers/exec.browser.d.ts +4 -3
- package/dist/template/helpers/exec.d.ts +4 -3
- package/dist/template/types.d.ts +20 -0
- package/dist/testing/index.js +1 -1
- package/dist/types/index.d.ts +1574 -3
- package/dist/types/task-log.types.d.ts +3 -0
- package/dist/ui-card/index.d.ts +2 -0
- package/dist/ui-card/legacy-card-parser.d.ts +11 -0
- package/dist/ui-instance/definition.d.ts +6 -0
- package/dist/ui-instance/errors.d.ts +18 -0
- package/dist/ui-instance/index.d.ts +11 -0
- package/dist/ui-instance/json.d.ts +19 -0
- package/dist/ui-instance/lineage.d.ts +24 -0
- package/dist/ui-instance/runtime.d.ts +18 -0
- package/dist/ui-instance/store.d.ts +198 -0
- package/dist/ui-instance/types.d.ts +319 -0
- package/dist/ui-plugin/app-manifest.d.ts +64 -0
- package/dist/ui-plugin/csp.d.ts +28 -0
- package/dist/ui-plugin/index.d.ts +6 -0
- package/dist/ui-plugin/limits.d.ts +27 -0
- package/dist/ui-plugin/manifest.d.ts +3 -0
- package/dist/ui-plugin/types.d.ts +203 -0
- package/dist/ui-plugin/validator.d.ts +18 -0
- package/dist/utils/crewx-executable.d.ts +76 -0
- package/dist/utils/crewx-home.d.ts +1 -0
- package/dist/utils/env-defaults.d.ts +3 -0
- package/dist/utils/id.d.ts +1 -1
- package/dist/utils/local-identity.d.ts +2 -0
- package/dist/utils/runner-env.d.ts +3 -0
- package/dist/utils/timestamp.d.ts +1 -0
- package/dist/utils/workspace.d.ts +1 -0
- package/dist/wi/create.d.ts +48 -0
- package/dist/wi/select.d.ts +20 -0
- package/package.json +57 -3
- package/templates/agents/default.yaml +296 -128
- package/templates/documents/crewx-manual.md +138 -138
- package/templates/documents/crewx-quick-guide.md +8 -7
- package/templates/workflows/wi-default-flow.yaml +65 -0
- package/templates/workflows/wi-plan-flow.yaml +140 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { BaseSqliteRepository } from './base-sqlite-repository.js';
|
|
2
|
+
import { RepositoryError } from './errors.js';
|
|
3
|
+
import type { CommonCode, CommonCodeColor, CommonCodeGroup } from '../schema/index.js';
|
|
4
|
+
export { COMMON_CODE_COLORS, COMMON_CODE_GROUPS } from '../schema/common-codes.js';
|
|
5
|
+
export type { CommonCodeColor, CommonCodeGroup } from '../schema/common-codes.js';
|
|
6
|
+
export type CommonCodeErrorReason = 'COMMON_CODE_GROUP_INVALID' | 'COMMON_CODE_COLOR_INVALID' | 'COMMON_CODE_NAME_INVALID' | 'COMMON_CODE_CODE_INVALID' | 'COMMON_CODE_WORKSPACE_INVALID' | 'COMMON_CODE_NAME_CONFLICT' | 'COMMON_CODE_NOT_FOUND' | 'COMMON_CODE_SCOPE_FORBIDDEN' | 'COMMON_CODE_BUILTIN_ARCHIVE_FORBIDDEN' | 'COMMON_CODE_ARCHIVE_INVALID' | 'COMMON_CODE_UPDATE_EMPTY' | 'COMMON_CODE_REORDER_INVALID';
|
|
7
|
+
export declare class CommonCodeRepositoryError extends RepositoryError {
|
|
8
|
+
readonly reason: CommonCodeErrorReason;
|
|
9
|
+
constructor(reason: CommonCodeErrorReason, code?: 'VALIDATION' | 'NOT_FOUND' | 'CONFLICT', message?: string, cause?: unknown);
|
|
10
|
+
}
|
|
11
|
+
export interface CreateThreadStateInput {
|
|
12
|
+
workspaceId: string;
|
|
13
|
+
name: string;
|
|
14
|
+
color: CommonCodeColor;
|
|
15
|
+
}
|
|
16
|
+
export interface UpdateCommonCodeDisplayInput {
|
|
17
|
+
group: CommonCodeGroup;
|
|
18
|
+
code: string;
|
|
19
|
+
workspaceId: string;
|
|
20
|
+
name?: string | null;
|
|
21
|
+
color?: CommonCodeColor;
|
|
22
|
+
}
|
|
23
|
+
export interface ReorderCommonCodesInput {
|
|
24
|
+
group: string;
|
|
25
|
+
workspaceId: string;
|
|
26
|
+
codes: string[];
|
|
27
|
+
}
|
|
28
|
+
export declare function generateCommonCodeId(): string;
|
|
29
|
+
export declare class CommonCodeRepository extends BaseSqliteRepository {
|
|
30
|
+
private readonly dbPath?;
|
|
31
|
+
constructor(opts?: {
|
|
32
|
+
dbPath?: string;
|
|
33
|
+
dbRoot?: string;
|
|
34
|
+
});
|
|
35
|
+
resolveDbPath(): string;
|
|
36
|
+
private openHandle;
|
|
37
|
+
listSelectable(group: string, workspaceId: string): CommonCode[];
|
|
38
|
+
listForHistory(group: string, workspaceId: string): CommonCode[];
|
|
39
|
+
reorder(input: ReorderCommonCodesInput): CommonCode[];
|
|
40
|
+
resolve(group: string, code: string): CommonCode | null;
|
|
41
|
+
createThreadState(input: CreateThreadStateInput): CommonCode;
|
|
42
|
+
updateDisplay(input: UpdateCommonCodeDisplayInput): CommonCode;
|
|
43
|
+
archive(group: string, code: string, workspaceId: string, archived?: boolean): CommonCode;
|
|
44
|
+
private assertOwnership;
|
|
45
|
+
}
|
package/dist/repository/db.d.ts
CHANGED
|
@@ -6,4 +6,15 @@ export interface DrizzleHandle {
|
|
|
6
6
|
runRaw(sqlStr: string, params?: unknown[]): void;
|
|
7
7
|
close(): void;
|
|
8
8
|
}
|
|
9
|
-
export
|
|
9
|
+
export interface OpenDrizzleDbOptions {
|
|
10
|
+
readOnly?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const CREWX_JOURNAL_SIZE_LIMIT_BYTES: number;
|
|
13
|
+
export type ReclaimJournalMode = 'PASSIVE' | 'TRUNCATE';
|
|
14
|
+
export interface ReclaimJournalResult {
|
|
15
|
+
busy: boolean;
|
|
16
|
+
walBytesBefore: number;
|
|
17
|
+
walBytesAfter: number;
|
|
18
|
+
}
|
|
19
|
+
export declare function openDrizzleDb(dbPath: string, options?: OpenDrizzleDbOptions): DrizzleHandle;
|
|
20
|
+
export declare function reclaimTemporaryJournal(dbPath: string, mode?: ReclaimJournalMode): ReclaimJournalResult;
|
|
@@ -1,19 +1,47 @@
|
|
|
1
1
|
export { BaseSqliteRepository } from './base-sqlite-repository.js';
|
|
2
2
|
export { RepositoryError } from './errors.js';
|
|
3
3
|
export type { RepositoryErrorCode } from './errors.js';
|
|
4
|
+
export { COMMON_CODE_COLORS, COMMON_CODE_GROUPS, CommonCodeRepository, CommonCodeRepositoryError, generateCommonCodeId, } from './common-code.repository.js';
|
|
5
|
+
export type { CommonCodeColor, CommonCodeErrorReason, CommonCodeGroup, CreateThreadStateInput, UpdateCommonCodeDisplayInput, } from './common-code.repository.js';
|
|
6
|
+
export type { CommonCode, NewCommonCode } from '../schema/common-codes.js';
|
|
4
7
|
export { WorkspaceRepository } from './workspace.repository.js';
|
|
5
8
|
export type { ProjectRow, ThreadRow as WorkspaceThreadRow, ThreadWithAgentRow } from './workspace.repository.js';
|
|
6
|
-
export {
|
|
7
|
-
export type {
|
|
9
|
+
export { DEFAULT_PROJECT_STAGE_KEYS, DEFAULT_PROJECT_STAGES, ProjectRepository, } from './project.repository.js';
|
|
10
|
+
export type { AcceptProjectInput, AppendProjectEventInput, CreateProjectInput, CriterionVerifyStatus, ListProjectEventsOptions, ListProjectsOptions, ProjectActorInput, ProjectActorType, ProjectDetail, ProjectEvidence, ProjectEvidenceKind, ProjectEventType, ProjectScene, ProjectStage, SetCriterionEvidenceInput, SetCriterionVerifyInput, } from './project.repository.js';
|
|
11
|
+
export { CREWX_JOURNAL_SIZE_LIMIT_BYTES, openDrizzleDb, reclaimTemporaryJournal } from './db.js';
|
|
12
|
+
export type { DrizzleDb, DrizzleHandle, OpenDrizzleDbOptions, ReclaimJournalMode, ReclaimJournalResult, } from './db.js';
|
|
8
13
|
export { runMigrations, runMigrationsOnce } from './migrate.js';
|
|
9
14
|
export { pushSchema } from './push.js';
|
|
10
15
|
export type { PushResult } from './push.js';
|
|
11
16
|
export type { Workspace, NewWorkspace } from '../schema/index.js';
|
|
12
17
|
export { tasks } from '../schema/index.js';
|
|
13
|
-
export { TaskRepository } from './task.repository.js';
|
|
14
|
-
export type {
|
|
18
|
+
export { DEFAULT_TASK_REAPER_TICK_INTERVAL_MS, mergeTerminalReason, TaskRepository, TASK_HEARTBEAT_HARD_STALE_MS, TASK_HEARTBEAT_INTERVAL_MS, TASK_HEARTBEAT_STALE_MS, resolveTaskHeartbeatHardStaleMs, resolveTaskHeartbeatIntervalMs, resolveTaskHeartbeatStaleMs, } from './task.repository.js';
|
|
19
|
+
export type { ReapOrphanedTasksOptions } from './task.repository.js';
|
|
20
|
+
export type { FinalizeTaskStopOptions, TaskStopMethod, TaskStopOrigin, TaskStopRequestContext, TaskStopRequestResult, } from './task.repository.js';
|
|
21
|
+
export { INSTRUCTION_STOP_EPOCH_MISMATCH, INSTRUCTION_STOP_GENERATION_ALREADY_SETTLED, INSTRUCTION_STOP_PROCESS_TERMINATION_FAILED, INSTRUCTION_STOP_REQUEST_FAILED, INSTRUCTION_STOP_SETTLE_CAS_FAILED, INSTRUCTION_STOP_TARGET_PID_MISSING, INSTRUCTION_STOP_WORKSPACE_MISMATCH, stopTask, resolveTaskStopMethod, TASK_STOP_DEFAULT_GRACE_MS, TASK_STOP_DEFAULT_POLL_MS, TASK_STOP_OWNED_PROCESS_MARKERS, } from '../lifecycle/task-stop.js';
|
|
22
|
+
export type { StopTaskGenerationForInstructionOptions, StopTaskOptions, StopTaskProcessControl, StopTaskResult, StopTaskStatus, } from '../lifecycle/task-stop.js';
|
|
23
|
+
export { runHeartbeatTick, startTaskHeartbeat, stopTaskHeartbeat, TASK_STOP_POLL_INTERVAL_MS, taskHeartbeatRegistry, } from '../lifecycle/task-heartbeat.js';
|
|
24
|
+
export type { HeartbeatTickResult, TaskHeartbeatHandle, TaskHeartbeatOptions, TaskHeartbeatRow, } from '../lifecycle/task-heartbeat.js';
|
|
25
|
+
export { isTaskRetryableByDefault, LEGACY_TASK_TERMINAL_ERROR_PATTERNS, normalizeTaskRow, normalizeTaskStatus, readTaskTerminalReason, storedTaskStatusesFor, TASK_TERMINAL_STATUSES, TASK_TERMINAL_STORED_STATUSES, } from './task-status.js';
|
|
26
|
+
export type { TaskStatus, TaskStatusInput, TaskTerminalReason, TaskTerminalStatus, } from './task-status.js';
|
|
27
|
+
export { hasRecordedUsage } from './task.repository.js';
|
|
28
|
+
export type { TaskRow, TaskKillResult, TaskKillStatus, TaskActivityLogRow, FindTasksByThreadOptions, TaskListRow, NewTask, AgentProviderUsageRow, AgentUsageRow, TrendRow, ProviderUsageRow, ModelUsageRow, ReportTaskRow, DelegationEdge, DelegationMatrixResult, WorkflowCardRow, WorkflowParentTaskKind, WorkflowParentTaskLookup, WorkflowParentTaskRow, } from './task.repository.js';
|
|
29
|
+
export { classifyUsageAccountingReason, runUsageBackfill, USAGE_BACKFILL_MAX_LATE_USAGE_AGE_MS, USAGE_BACKFILL_TERMINAL_STATUSES, } from './usage-backfill.js';
|
|
30
|
+
export type { UsageAccountingReason, UsageBackfillFailure, UsageBackfillMode, UsageBackfillOptions, UsageBackfillProviderStats, UsageBackfillReport, } from './usage-backfill.js';
|
|
31
|
+
export { TaskLogRepository } from './task-log.repository.js';
|
|
32
|
+
export type { TaskLogEntry, RawTaskLogEntry, TaskLogRawEntry, TaskLogStorage, TaskLogState, TaskLogReadResult, TaskLogRepositoryContract, } from './task-log.repository.js';
|
|
33
|
+
export { runTaskLogMigration, resolveTaskLogMigrationDbPath, taskLogBackupName, tryCheckpointTaskLogWal, hasSufficientTaskLogMigrationFreeSpace, } from './task-log-migration.js';
|
|
34
|
+
export { TASK_LOG_MIGRATION_EVENT_ROW_BYTES, TASK_LOG_MIGRATION_MIN_FREE_SPACE_BYTES, TASK_LOG_MIGRATION_TERMINAL_STATUSES, } from './task-log-migration.js';
|
|
35
|
+
export type { TaskLogMigrationFailure, TaskLogMigrationFailureKind, TaskLogMigrationMode, TaskLogMigrationOptions, TaskLogMigrationReport, TaskLogWalCheckpointConnection, TaskLogVerificationIssue, TaskLogVerificationIssueKind, TaskLogVerificationReport, } from './task-log-migration.js';
|
|
15
36
|
export { ThreadRepository } from './thread.repository.js';
|
|
16
|
-
export type {
|
|
37
|
+
export type { CreateAppLaunchThreadInput, CreateAppLaunchThreadResult } from './thread.repository.js';
|
|
38
|
+
export { ThreadTitleMetadataPatchError, } from './thread.repository.js';
|
|
39
|
+
export type { ThreadRow, NewThread, TaskDescendantList, TaskDescendantListOptions, TaskDescendantRow, TaskDescendantSummary, ThreadOriginFilter, ThreadOriginRow, ThreadTitleMetadataPatch, ThreadTitleMetadataPatchResult, ThreadTitleMetadataPatchErrorReason, } from './thread.repository.js';
|
|
40
|
+
export { ThreadHistoryConflictError, ThreadHighlightConflictError, ThreadHighlightRegenerationConflictError, ThreadHistoryRepository, } from './thread-history.repository.js';
|
|
41
|
+
export { THREAD_HIGHLIGHT_DELETION_REASON_REGENERATION_REPLACED, THREAD_HIGHLIGHT_REGENERATION_COMMIT_FAILED, THREAD_HIGHLIGHT_REGENERATION_DETECTION_FAILED, THREAD_HIGHLIGHT_REGENERATION_INTERRUPTED, THREAD_HIGHLIGHT_REGENERATION_NO_ELIGIBLE_TURNS, } from './thread-history.repository.js';
|
|
42
|
+
export type { CompleteThreadHighlightRegenerationInput, CompleteThreadHighlightRegenerationResult, CreateThreadHighlightRegenerationRunInput, CreateThreadHighlightRegenerationRunResult, CreateThreadHighlightInput, DismissThreadHighlightInput, FailThreadHighlightRegenerationRunInput, ListActiveHighlightsOptions, ThreadActorInput, ThreadHighlightDeletionReason, ThreadHighlightEligibleTurn, ThreadHighlightRegenerationCandidate, ThreadHighlightRegenerationErrorCode, ThreadSnapshot, ThreadSnapshotMutationInput, ThreadTimeline, ThreadTimelineOptions, ThreadTimelineQuery, UpdateThreadHighlightInput, } from './thread-history.repository.js';
|
|
43
|
+
export { BUILTIN_THREAD_STATES, THREAD_PRIORITIES, customStateLabel, hasThreadTitleKey, isThreadPriority, isThreadState, matchesThreadTitleFilter, mergeThreadTitleMeta, parseThreadPriorityFilter, parseThreadStateFilter, readThreadTitleMeta, threadTitleSearchHaystack, } from './thread-title.types.js';
|
|
44
|
+
export type { BuiltinThreadState, LegacyThreadState, StableThreadState, ThreadPriority, ThreadState, ThreadTitleFilter, ThreadTitleMeta, ThreadTitlePatch, } from './thread-title.types.js';
|
|
17
45
|
export { SpanRepository } from './span.repository.js';
|
|
18
46
|
export type { SpanRow, NewSpan } from './span.repository.js';
|
|
19
47
|
export { ToolCallRepository } from './tool-call.repository.js';
|
|
@@ -22,7 +50,15 @@ export { ThreadBoxRepository } from './thread-box.repository.js';
|
|
|
22
50
|
export type { ThreadBoxRow, NewThreadBox } from './thread-box.repository.js';
|
|
23
51
|
export { RequestLogRepository } from './request-log.repository.js';
|
|
24
52
|
export type { RequestLogRow, NewRequestLog, RequestLogEntry } from './request-log.repository.js';
|
|
53
|
+
export { hashRequestLogBody, LOGS_DB_FILE_NAME, LOGS_DB_SCHEMA_VERSION, openLogsDb, resolveCrewxLogsDbPath, } from './logs-db.js';
|
|
54
|
+
export type { LogsDbHandle } from './logs-db.js';
|
|
55
|
+
export { inspectRequestLogsMove, moveRequestLogsToLogsDb, REQUEST_LOG_MOVE_CHECKPOINT_MIN_INTERVAL_MS, REQUEST_LOG_MOVE_CHECKPOINT_WAL_BYTES, REQUEST_LOG_MOVE_DEFAULT_BATCH_BYTES, REQUEST_LOG_MOVE_DEFAULT_BATCH_ROWS, } from './request-log-mover.js';
|
|
56
|
+
export type { MoveRequestLogsOptions, MoveRequestLogsProgress, MoveRequestLogsResult, RequestLogsMoveStatus, } from './request-log-mover.js';
|
|
25
57
|
export { UsageLimitSnapshotRepository, calcBucketStart } from './usage-limit-snapshot.repository.js';
|
|
26
58
|
export type { UsageLimitSnapshotRow, NewUsageLimitSnapshot, UpsertSnapshotInput, LimitTrendPoint, LimitTrendProvider, } from './usage-limit-snapshot.repository.js';
|
|
27
59
|
export { UsageReportRepository } from './usage-report.repository.js';
|
|
28
60
|
export type { UsageReportRow, NewUsageReport, PublishReportInput } from './usage-report.repository.js';
|
|
61
|
+
export { NotificationRepository, DEFAULT_NOTIFICATION_CAP, DEFAULT_LIST_LIMIT as DEFAULT_NOTIFICATION_LIST_LIMIT, } from './notification.repository.js';
|
|
62
|
+
export type { NotificationRow, NewNotification, NotificationReadRow, NotificationLevel, NotificationSource, CreateNotificationInput, NotificationListItem, ListNotificationsParams, UserScope as NotificationUserScope, MarkReadParams as NotificationMarkReadParams, } from './notification.repository.js';
|
|
63
|
+
export { AgentSuggestionRepository, DEFAULT_LIST_LIMIT as DEFAULT_AGENT_SUGGESTION_LIST_LIMIT, } from './agent-suggestion.repository.js';
|
|
64
|
+
export type { AgentSuggestionRow, NewAgentSuggestion, SuggestionType, SuggestionStatus, CreateAgentSuggestionInput, } from './agent-suggestion.repository.js';
|