@crewx/sdk 0.9.0-rc.94 → 0.9.0-rc.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/desktop/index.d.ts +1 -0
- package/dist/desktop/index.js +3 -3
- package/dist/esm/desktop/index.js +3 -3
- package/dist/esm/index.js +263 -226
- package/dist/esm/plugins/index.js +119 -88
- package/dist/esm/process/index.js +1 -0
- package/dist/esm/repository/index.js +205 -93
- package/dist/index.d.ts +13 -2
- package/dist/index.js +264 -227
- package/dist/lifecycle/task-heartbeat.d.ts +41 -0
- package/dist/lifecycle/task-stop.d.ts +30 -0
- package/dist/migrations/0025_task_heartbeat.sql +8 -0
- package/dist/migrations/meta/_journal.json +7 -0
- package/dist/plugins/index.d.ts +1 -1
- package/dist/plugins/index.js +119 -88
- package/dist/plugins/sqlite-tracing.d.ts +10 -0
- package/dist/process/index.d.ts +2 -0
- package/dist/process/index.js +1 -0
- package/dist/process/process-control.d.ts +40 -0
- package/dist/repository/index.d.ts +13 -2
- package/dist/repository/index.js +255 -143
- package/dist/repository/task-status.d.ts +14 -0
- package/dist/repository/task.repository.d.ts +69 -8
- package/dist/repository/usage-backfill.d.ts +62 -0
- package/dist/repository/usage-from-logs.d.ts +21 -0
- package/dist/schema/tasks.d.ts +55 -0
- package/dist/utils/runner-env.d.ts +3 -0
- package/package.json +8 -1
- package/templates/agents/default.yaml +15 -10
package/dist/index.d.ts
CHANGED
|
@@ -81,6 +81,7 @@ export { resolveCrewxCli, resolveCrewxCliArgv, resolveCrewxWorkspace, } from './
|
|
|
81
81
|
export { formatCrewxExecutableArgv, formatCrewxExecutableFailure, getCrewxStableEntrypoint, isRotatingInstallPath, isVolatilePath, materializeCrewxCliShim, materializeCrewxStableEntrypoint, resolveCrewxExecutable, } from './utils/crewx-executable';
|
|
82
82
|
export type { CrewxExecutableAttempt, CrewxExecutableFailure, CrewxExecutablePathLookupOptions, CrewxExecutablePathLookupResult, CrewxExecutableResolution, CrewxExecutableResolverOptions, CrewxExecutableStage, CrewxExecutableSuccess, CrewxCliShim, CrewxCliShimOptions, CrewxStableEntrypointOptions, } from './utils/crewx-executable';
|
|
83
83
|
export { getCrewxHome } from './utils/crewx-home';
|
|
84
|
+
export { CREWX_RUNNER_IDENTITY_ENV, withoutCrewxRootContext, withoutCrewxRunnerIdentity, } from './utils/runner-env';
|
|
84
85
|
export { generateId, generateFingerprint } from './utils/id';
|
|
85
86
|
export type { EntityPrefix, PrefixedId } from './utils/id';
|
|
86
87
|
export { hashWorkspaceId, normalizeWorkspacePath } from './utils/workspace';
|
|
@@ -110,8 +111,18 @@ export { AgentRuntime } from './parallel/agent-runtime';
|
|
|
110
111
|
export type { AgentResult, AgentQueryRequest, AgentExecuteRequest } from './parallel/agent-runtime';
|
|
111
112
|
export { PluginProviderRuntime, createPluginProviderFactory } from './plugin/plugin-provider';
|
|
112
113
|
export type { PluginProviderConfig } from './plugin/types';
|
|
113
|
-
export { TaskRepository } from './repository/task.repository.js';
|
|
114
|
-
export type {
|
|
114
|
+
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 './repository/task.repository.js';
|
|
115
|
+
export type { ReapOrphanedTasksOptions } from './repository/task.repository.js';
|
|
116
|
+
export type { FinalizeTaskStopOptions, TaskStopMethod, TaskStopRequestResult, } from './repository/task.repository.js';
|
|
117
|
+
export { stopTask, resolveTaskStopMethod, TASK_STOP_DEFAULT_GRACE_MS, TASK_STOP_DEFAULT_POLL_MS, TASK_STOP_OWNED_PROCESS_MARKERS, } from './lifecycle/task-stop.js';
|
|
118
|
+
export type { StopTaskOptions, StopTaskProcessControl, StopTaskResult, StopTaskStatus, } from './lifecycle/task-stop.js';
|
|
119
|
+
export { LEGACY_TASK_TERMINAL_ERROR_PATTERNS, normalizeTaskStatus, TASK_TERMINAL_STATUSES, } from './repository/task-status.js';
|
|
120
|
+
export type { TaskStatus, TaskStatusInput, TaskTerminalReason, TaskTerminalStatus, } from './repository/task-status.js';
|
|
121
|
+
export type { TaskRow, TaskKillResult, TaskKillStatus } from './repository/task.repository.js';
|
|
122
|
+
export { runHeartbeatTick, startTaskHeartbeat, stopTaskHeartbeat, TASK_STOP_POLL_INTERVAL_MS, taskHeartbeatRegistry, } from './lifecycle/task-heartbeat.js';
|
|
123
|
+
export type { HeartbeatTickResult, TaskHeartbeatHandle, TaskHeartbeatOptions, TaskHeartbeatRow, } from './lifecycle/task-heartbeat.js';
|
|
124
|
+
export { checkProcessOwnership, checkProcessOwnershipAsync, probeProcessLiveness, terminateProcessTree, UNIX_PROCESS_POLL_INTERVAL_MS, UNIX_SIGKILL_CONFIRM_MS, UNIX_SIGTERM_GRACE_MS, } from './process/process-control.js';
|
|
125
|
+
export type { ProcessCommandLineResult, ProcessCommandResult, ProcessCommandRunner, ProcessCommandRunnerAsync, ProcessControlOptions, ProcessLiveness, ProcessOwnership, ProcessTerminationResult, ProcessTerminationStatus, } from './process/process-control.js';
|
|
115
126
|
export { SpanRepository } from './repository/span.repository.js';
|
|
116
127
|
export type { SpanRow } from './repository/span.repository.js';
|
|
117
128
|
export { COMMON_CODE_COLORS, COMMON_CODE_GROUPS, CommonCodeRepository, CommonCodeRepositoryError, generateCommonCodeId, } from './repository/common-code.repository.js';
|