@crewx/sdk 0.9.0-rc.12 → 0.9.0-rc.120

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.
Files changed (252) hide show
  1. package/README.md +1 -1
  2. package/dist/account/auth-client.d.ts +61 -0
  3. package/dist/account/auth-json-v2.d.ts +1 -0
  4. package/dist/account/auth-json.d.ts +30 -0
  5. package/dist/account/config.d.ts +37 -0
  6. package/dist/account/env-bootstrap.d.ts +11 -0
  7. package/dist/account/errors.d.ts +24 -0
  8. package/dist/account/index.d.ts +12 -0
  9. package/dist/account/index.js +2 -0
  10. package/dist/account/session-manager.d.ts +47 -0
  11. package/dist/activity-log/builder.d.ts +56 -6
  12. package/dist/agent/agent-list-view.d.ts +19 -0
  13. package/dist/boxing/box.types.d.ts +4 -0
  14. package/dist/config/canonicalize-agent-options.d.ts +18 -0
  15. package/dist/config/default-agent-models.d.ts +11 -0
  16. package/dist/config/global-settings.d.ts +33 -0
  17. package/dist/config/migrate-grok-mode.d.ts +6 -0
  18. package/dist/config/model-compat.d.ts +31 -0
  19. package/dist/config/models.generated.d.ts +37 -0
  20. package/dist/config/models.remote.d.ts +1 -0
  21. package/dist/config/overdrive.d.ts +7 -0
  22. package/dist/config/pricing.d.ts +6 -3
  23. package/dist/config/pricing.generated.d.ts +4 -0
  24. package/dist/config/pricing.types.d.ts +4 -0
  25. package/dist/config/timeout.config.d.ts +4 -0
  26. package/dist/config/wi-boards.d.ts +19 -0
  27. package/dist/context-budget/continuity.d.ts +61 -0
  28. package/dist/context-budget/index.d.ts +141 -0
  29. package/dist/conversation/index.d.ts +1 -1
  30. package/dist/conversation/sqlite-provider.d.ts +6 -2
  31. package/dist/conversation/to-template-messages.d.ts +9 -0
  32. package/dist/conversation/types.d.ts +47 -1
  33. package/dist/desktop/command-runner.d.ts +4 -0
  34. package/dist/desktop/default-adapters.d.ts +4 -0
  35. package/dist/desktop/global-install.d.ts +19 -0
  36. package/dist/desktop/index.d.ts +3 -0
  37. package/dist/desktop/index.js +3 -0
  38. package/dist/desktop/install.d.ts +5 -0
  39. package/dist/desktop/lnk.d.ts +22 -0
  40. package/dist/desktop/manifest.d.ts +21 -0
  41. package/dist/desktop/types.d.ts +67 -0
  42. package/dist/desktop/version.d.ts +1 -0
  43. package/dist/desktop/windows-paths.d.ts +21 -0
  44. package/dist/desktop/wrapper.d.ts +18 -0
  45. package/dist/esm/account/index.js +2 -0
  46. package/dist/esm/desktop/index.js +3 -0
  47. package/dist/esm/index.js +700 -210
  48. package/dist/esm/plugins/index.js +292 -205
  49. package/dist/esm/process/index.js +1 -0
  50. package/dist/esm/publish/index.js +2 -0
  51. package/dist/esm/repository/index.js +363 -198
  52. package/dist/esm/skills/index.js +1 -0
  53. package/dist/esm/testing/index.js +1 -1
  54. package/dist/events/types.d.ts +9 -0
  55. package/dist/facade/Crewx.d.ts +56 -5
  56. package/dist/facade/task-ticket.d.ts +14 -0
  57. package/dist/highlight/thread-highlight-prompt.d.ts +2 -0
  58. package/dist/highlight/thread-highlighter.d.ts +326 -0
  59. package/dist/index.browser.d.ts +15 -1
  60. package/dist/index.browser.js +6 -2
  61. package/dist/index.d.ts +116 -17
  62. package/dist/index.js +700 -210
  63. package/dist/internal/console-decoder.d.ts +38 -0
  64. package/dist/internal/windows-spawn.d.ts +10 -0
  65. package/dist/layout/types.d.ts +18 -1
  66. package/dist/lifecycle/process-lease.d.ts +80 -0
  67. package/dist/lifecycle/process-owner.d.ts +20 -0
  68. package/dist/lifecycle/task-heartbeat.d.ts +41 -0
  69. package/dist/lifecycle/task-stop.d.ts +82 -0
  70. package/dist/lifecycle/update-admission.d.ts +45 -0
  71. package/dist/local-server/base-url.d.ts +18 -0
  72. package/dist/local-server/index.d.ts +8 -0
  73. package/dist/local-server/opencode.d.ts +8 -0
  74. package/dist/local-server/probe.d.ts +3 -0
  75. package/dist/local-server/runtime.d.ts +26 -0
  76. package/dist/local-server/types.d.ts +43 -0
  77. package/dist/mcp-app/apps-context.d.ts +5 -0
  78. package/dist/mcp-app/catalog.d.ts +7 -0
  79. package/dist/mcp-app/discovery.d.ts +108 -0
  80. package/dist/mcp-app/errors.d.ts +7 -0
  81. package/dist/mcp-app/index.d.ts +20 -0
  82. package/dist/mcp-app/installed-app-ref.d.ts +25 -0
  83. package/dist/mcp-app/node-app-discovery-fs.d.ts +20 -0
  84. package/dist/mcp-app/projection.d.ts +13 -0
  85. package/dist/mcp-app/registry.d.ts +19 -0
  86. package/dist/mcp-app/skill-backend.d.ts +48 -0
  87. package/dist/mcp-app/state-set.d.ts +9 -0
  88. package/dist/mcp-app/types.d.ts +370 -0
  89. package/dist/mcp-app/workspace-snapshot.d.ts +61 -0
  90. package/dist/migrations/0008_careful_black_bird.sql +17 -0
  91. package/dist/migrations/0009_hot_dark_phoenix.sql +1 -0
  92. package/dist/migrations/0010_analyze_stats.sql +6 -0
  93. package/dist/migrations/0011_far_black_tarantula.sql +1 -0
  94. package/dist/migrations/0012_blue_turbo.sql +23 -0
  95. package/dist/migrations/0013_hesitant_adam_destine.sql +15 -0
  96. package/dist/migrations/0014_organic_mongu.sql +73 -0
  97. package/dist/migrations/0015_panoramic_gorilla_man.sql +71 -0
  98. package/dist/migrations/0016_fuzzy_hemingway.sql +14 -0
  99. package/dist/migrations/0017_project_stage_sdk_migration.sql +29 -0
  100. package/dist/migrations/0018_bored_jackal.sql +33 -0
  101. package/dist/migrations/0019_backfill_task_thread_ids.sql +74 -0
  102. package/dist/migrations/0020_useful_iron_lad.sql +55 -0
  103. package/dist/migrations/0021_dashing_peter_quill.sql +51 -0
  104. package/dist/migrations/0022_wandering_bucky.sql +1 -0
  105. package/dist/migrations/0023_red_payback.sql +1 -0
  106. package/dist/migrations/0024_storage_metadata.sql +262 -0
  107. package/dist/migrations/0025_task_heartbeat.sql +8 -0
  108. package/dist/migrations/0025_thread_app_instance_ledger.sql +2 -0
  109. package/dist/migrations/0026_mcp_action_source.sql +47 -0
  110. package/dist/migrations/0027_task_stop_scope_cleanup.sql +5 -0
  111. package/dist/migrations/0027_ui_instance_active_unique.sql +2 -0
  112. package/dist/migrations/0029_nice_rhino.sql +1 -0
  113. package/dist/migrations/0031_petite_arclight.sql +6 -0
  114. package/dist/migrations/0032_ui_instance_opened_by.sql +1 -0
  115. package/dist/migrations/meta/0008_snapshot.json +1327 -0
  116. package/dist/migrations/meta/0009_snapshot.json +1335 -0
  117. package/dist/migrations/meta/0010_snapshot.json +1335 -0
  118. package/dist/migrations/meta/0011_snapshot.json +1342 -0
  119. package/dist/migrations/meta/0012_snapshot.json +1494 -0
  120. package/dist/migrations/meta/0013_snapshot.json +1592 -0
  121. package/dist/migrations/meta/0014_snapshot.json +1975 -0
  122. package/dist/migrations/meta/0015_snapshot.json +2315 -0
  123. package/dist/migrations/meta/0016_snapshot.json +2419 -0
  124. package/dist/migrations/meta/0017_snapshot.json +2419 -0
  125. package/dist/migrations/meta/0018_snapshot.json +2570 -0
  126. package/dist/migrations/meta/0020_snapshot.json +2895 -0
  127. package/dist/migrations/meta/0021_snapshot.json +3031 -0
  128. package/dist/migrations/meta/0022_snapshot.json +3039 -0
  129. package/dist/migrations/meta/0023_snapshot.json +3047 -0
  130. package/dist/migrations/meta/0029_snapshot.json +3206 -0
  131. package/dist/migrations/meta/0031_snapshot.json +3251 -0
  132. package/dist/migrations/meta/_journal.json +176 -1
  133. package/dist/paths.d.ts +1 -0
  134. package/dist/plugin/types.d.ts +1 -0
  135. package/dist/plugins/index.d.ts +1 -1
  136. package/dist/plugins/index.js +292 -205
  137. package/dist/plugins/sqlite-tracing.d.ts +46 -0
  138. package/dist/process/index.d.ts +2 -0
  139. package/dist/process/index.js +1 -0
  140. package/dist/process/process-control.d.ts +41 -0
  141. package/dist/prompt/tag-names.d.ts +20 -0
  142. package/dist/provider/acp/connection.d.ts +6 -0
  143. package/dist/provider/acp/meta.d.ts +11 -0
  144. package/dist/provider/bridge.d.ts +7 -1
  145. package/dist/provider/classify-task-error.d.ts +2 -0
  146. package/dist/provider/cli/adapter.types.d.ts +14 -2
  147. package/dist/provider/cli/adapters/agent-call.util.d.ts +1 -1
  148. package/dist/provider/cli/adapters/cli-knob.util.d.ts +7 -0
  149. package/dist/provider/cli/adapters/codex-item.d.ts +1 -0
  150. package/dist/provider/cli/adapters/event-timestamp.util.d.ts +1 -0
  151. package/dist/provider/cli/adapters/grok.d.ts +2 -0
  152. package/dist/provider/cli/adapters/index.d.ts +5 -0
  153. package/dist/provider/cli/index.d.ts +3 -2
  154. package/dist/provider/cli/meta.d.ts +5 -0
  155. package/dist/provider/cli/protocol-envelope.d.ts +3 -0
  156. package/dist/provider/errors.d.ts +5 -1
  157. package/dist/provider/idle-watchdog.d.ts +19 -0
  158. package/dist/provider/models.d.ts +17 -12
  159. package/dist/provider/order.d.ts +1 -1
  160. package/dist/provider/parse-usage.d.ts +6 -0
  161. package/dist/provider/provider-selection.d.ts +8 -0
  162. package/dist/provider/redact-technical-message.d.ts +1 -0
  163. package/dist/provider/task-error.types.d.ts +17 -0
  164. package/dist/publish/constants.d.ts +6 -0
  165. package/dist/publish/errors.d.ts +7 -0
  166. package/dist/publish/index.d.ts +50 -0
  167. package/dist/publish/index.js +2 -0
  168. package/dist/publish/manifest.d.ts +47 -0
  169. package/dist/publish/marketplace-api.constants.d.ts +1 -0
  170. package/dist/publish/pack.d.ts +6 -0
  171. package/dist/publish/scan.d.ts +9 -0
  172. package/dist/publish/secrets.d.ts +6 -0
  173. package/dist/publish/upload.d.ts +19 -0
  174. package/dist/remote/execution-profile.d.ts +9 -0
  175. package/dist/remote/index.d.ts +1 -0
  176. package/dist/remote/types.d.ts +28 -0
  177. package/dist/repository/agent-suggestion.repository.d.ts +34 -0
  178. package/dist/repository/base-sqlite-repository.d.ts +1 -0
  179. package/dist/repository/common-code.repository.d.ts +45 -0
  180. package/dist/repository/db.d.ts +12 -1
  181. package/dist/repository/index.d.ts +38 -5
  182. package/dist/repository/index.js +363 -198
  183. package/dist/repository/notification.repository.d.ts +58 -0
  184. package/dist/repository/project.repository.d.ts +90 -0
  185. package/dist/repository/request-log.repository.d.ts +1 -0
  186. package/dist/repository/storage-metadata.repository.d.ts +64 -0
  187. package/dist/repository/task-log-migration.d.ts +74 -0
  188. package/dist/repository/task-log.repository.d.ts +44 -0
  189. package/dist/repository/task-status.d.ts +14 -0
  190. package/dist/repository/task.repository.d.ts +233 -7
  191. package/dist/repository/thread-history.repository.d.ts +193 -0
  192. package/dist/repository/thread-title.types.d.ts +29 -0
  193. package/dist/repository/thread.repository.d.ts +47 -5
  194. package/dist/repository/usage-backfill.d.ts +62 -0
  195. package/dist/repository/usage-from-logs.d.ts +21 -0
  196. package/dist/repository/usage-report.repository.d.ts +27 -0
  197. package/dist/repository/workspace.repository.d.ts +3 -0
  198. package/dist/schema/agent-suggestions.d.ts +199 -0
  199. package/dist/schema/common-codes.d.ts +216 -0
  200. package/dist/schema/index.d.ts +10 -0
  201. package/dist/schema/notifications.d.ts +303 -0
  202. package/dist/schema/projects.d.ts +610 -0
  203. package/dist/schema/storage-metadata.d.ts +181 -0
  204. package/dist/schema/task-log-events.d.ts +119 -0
  205. package/dist/schema/tasks.d.ts +165 -0
  206. package/dist/schema/thread-history.d.ts +734 -0
  207. package/dist/schema/threads.d.ts +59 -0
  208. package/dist/schema/ui-action-receipts.d.ts +303 -0
  209. package/dist/schema/ui-instances.d.ts +305 -0
  210. package/dist/schema/usage-reports.d.ts +252 -0
  211. package/dist/schema/workspaces.d.ts +17 -0
  212. package/dist/skills/index.d.ts +8 -0
  213. package/dist/skills/index.js +1 -0
  214. package/dist/skills/types.d.ts +18 -0
  215. package/dist/task-log/anchor-child-tasks.d.ts +7 -0
  216. package/dist/task-log/delegation-trailer.d.ts +34 -0
  217. package/dist/template/engine.d.ts +2 -2
  218. package/dist/template/helpers/exec.browser.d.ts +4 -3
  219. package/dist/template/helpers/exec.d.ts +4 -3
  220. package/dist/template/types.d.ts +20 -0
  221. package/dist/testing/index.js +1 -1
  222. package/dist/types/index.d.ts +1570 -3
  223. package/dist/types/task-log.types.d.ts +2 -0
  224. package/dist/ui-card/index.d.ts +2 -0
  225. package/dist/ui-card/legacy-card-parser.d.ts +11 -0
  226. package/dist/ui-instance/definition.d.ts +6 -0
  227. package/dist/ui-instance/errors.d.ts +17 -0
  228. package/dist/ui-instance/index.d.ts +9 -0
  229. package/dist/ui-instance/json.d.ts +8 -0
  230. package/dist/ui-instance/runtime.d.ts +18 -0
  231. package/dist/ui-instance/store.d.ts +109 -0
  232. package/dist/ui-instance/types.d.ts +224 -0
  233. package/dist/ui-plugin/index.d.ts +4 -0
  234. package/dist/ui-plugin/limits.d.ts +27 -0
  235. package/dist/ui-plugin/manifest.d.ts +3 -0
  236. package/dist/ui-plugin/types.d.ts +178 -0
  237. package/dist/ui-plugin/validator.d.ts +15 -0
  238. package/dist/utils/crewx-executable.d.ts +76 -0
  239. package/dist/utils/crewx-home.d.ts +1 -0
  240. package/dist/utils/env-defaults.d.ts +2 -0
  241. package/dist/utils/id.d.ts +1 -1
  242. package/dist/utils/runner-env.d.ts +3 -0
  243. package/dist/utils/timestamp.d.ts +1 -0
  244. package/dist/utils/workspace.d.ts +1 -0
  245. package/dist/wi/create.d.ts +48 -0
  246. package/dist/wi/select.d.ts +20 -0
  247. package/package.json +40 -2
  248. package/templates/agents/default.yaml +279 -127
  249. package/templates/documents/crewx-manual.md +138 -138
  250. package/templates/documents/crewx-quick-guide.md +1 -1
  251. package/templates/workflows/wi-default-flow.yaml +65 -0
  252. package/templates/workflows/wi-plan-flow.yaml +140 -0
@@ -0,0 +1,76 @@
1
+ export type CrewxExecutableStage = 'env' | 'self' | 'workspace' | 'module' | 'path';
2
+ export interface CrewxExecutableAttempt {
3
+ stage: CrewxExecutableStage;
4
+ reason: string;
5
+ }
6
+ export interface CrewxExecutableSuccess {
7
+ ok: true;
8
+ argv: string[];
9
+ stage: CrewxExecutableStage;
10
+ requiredEnv?: CrewxRequiredEnv;
11
+ }
12
+ export type CrewxRequiredEnv = Readonly<Partial<Record<'ELECTRON_RUN_AS_NODE', '1'>>>;
13
+ export interface CrewxElectronRuntimeContext {
14
+ platform: NodeJS.Platform;
15
+ stage: CrewxExecutableStage;
16
+ isSelf: boolean;
17
+ execPath: string;
18
+ isFile: (candidate: string) => boolean;
19
+ }
20
+ export type CrewxElectronRuntimePredicate = (executable: string, context: CrewxElectronRuntimeContext) => boolean;
21
+ export interface CrewxExecutableFailure {
22
+ ok: false;
23
+ reason: string;
24
+ attempts: CrewxExecutableAttempt[];
25
+ }
26
+ export type CrewxExecutableResolution = CrewxExecutableSuccess | CrewxExecutableFailure;
27
+ export interface CrewxExecutablePathLookupOptions {
28
+ env: NodeJS.ProcessEnv;
29
+ cwd: string;
30
+ platform: NodeJS.Platform;
31
+ }
32
+ export type CrewxExecutablePathLookupResult = string | readonly string[] | undefined;
33
+ export interface CrewxExecutableResolverOptions {
34
+ env?: NodeJS.ProcessEnv;
35
+ cwd?: string;
36
+ argv?: readonly string[];
37
+ execPath?: string;
38
+ platform?: NodeJS.Platform;
39
+ modulePaths?: readonly string[];
40
+ requireResolve?: (request: string) => string;
41
+ findOnPath?: (command: string, options: CrewxExecutablePathLookupOptions) => CrewxExecutablePathLookupResult;
42
+ isFile?: (candidate: string) => boolean;
43
+ isElectronRuntime?: CrewxElectronRuntimePredicate;
44
+ }
45
+ export interface CrewxCliShim {
46
+ directory: string;
47
+ executable: string;
48
+ fingerprint: string;
49
+ }
50
+ export interface CrewxCliShimOptions {
51
+ home?: string;
52
+ platform?: NodeJS.Platform;
53
+ }
54
+ export interface CrewxStableEntrypointOptions extends CrewxCliShimOptions {
55
+ cwd?: string;
56
+ allowEnvStage?: boolean;
57
+ }
58
+ export interface CrewxChildInvocation {
59
+ command: string;
60
+ args: string[];
61
+ env: Record<string, string>;
62
+ }
63
+ export interface CrewxChildInvocationOptions extends CrewxCliShimOptions {
64
+ baseEnv?: NodeJS.ProcessEnv;
65
+ }
66
+ export declare function isVolatilePath(candidate: string): boolean;
67
+ export declare function isRotatingInstallPath(candidate: string): boolean;
68
+ export declare function resolveCrewxExecutable(options?: CrewxExecutableResolverOptions): CrewxExecutableResolution;
69
+ export declare const resolveCrewxCliArgv: typeof resolveCrewxExecutable;
70
+ export declare function crewxCliShimFingerprint(resolution: CrewxExecutableSuccess): string;
71
+ export declare function materializeCrewxCliShim(resolution: CrewxExecutableSuccess, options?: CrewxCliShimOptions): CrewxCliShim;
72
+ export declare function createCrewxChildInvocation(resolution: CrewxExecutableSuccess, options?: CrewxChildInvocationOptions): CrewxChildInvocation;
73
+ export declare function getCrewxStableEntrypoint(options?: CrewxCliShimOptions): string;
74
+ export declare function materializeCrewxStableEntrypoint(resolution: CrewxExecutableResolution, options?: CrewxStableEntrypointOptions): string | undefined;
75
+ export declare function formatCrewxExecutableArgv(argv: readonly string[], platform?: NodeJS.Platform): string;
76
+ export declare function formatCrewxExecutableFailure(failure: CrewxExecutableFailure): string;
@@ -0,0 +1 @@
1
+ export declare function getCrewxHome(): string;
@@ -1,2 +1,4 @@
1
+ import { type CrewxExecutableResolution } from './crewx-executable';
1
2
  export declare function resolveCrewxCli(): string;
3
+ export declare function resolveCrewxCliArgv(): CrewxExecutableResolution;
2
4
  export declare function resolveCrewxWorkspace(): string;
@@ -1,4 +1,4 @@
1
- export type EntityPrefix = 'tsk' | 'thd' | 'msg' | 'box' | 'prj' | 'mem' | 'spn' | 'cron' | 'wbs' | 'job' | 'tcl' | 'req' | 'ws' | 'wfr';
1
+ export type EntityPrefix = 'tsk' | 'thd' | 'msg' | 'box' | 'prj' | 'mem' | 'spn' | 'cron' | 'wbs' | 'job' | 'tcl' | 'req' | 'ws' | 'wfr' | 'ntf' | 'sug' | 'brd' | 'pjc' | 'pje' | 'the' | 'thl' | 'thr';
2
2
  export type PrefixedId<P extends EntityPrefix> = `${P}_${string}`;
3
3
  export declare function generateId<P extends EntityPrefix>(prefix: P): PrefixedId<P>;
4
4
  export declare function generateFingerprint<P extends EntityPrefix>(prefix: P, input: string): PrefixedId<P>;
@@ -0,0 +1,3 @@
1
+ export declare const CREWX_RUNNER_IDENTITY_ENV: readonly ["CREWX_ASSIGNED_TASK_ID", "CREWX_DETACHED_RUNNER"];
2
+ export declare function withoutCrewxRunnerIdentity(env: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
3
+ export declare function withoutCrewxRootContext(env: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
@@ -1 +1,2 @@
1
1
  export declare function formatTimestamp(date: Date): string;
2
+ export declare function formatDisplayTimestamp(date: Date): string;
@@ -1,4 +1,5 @@
1
1
  export declare function normalizeWorkspacePath(workspacePath: string): string;
2
2
  export declare function hashWorkspaceId(workspacePath: string): string;
3
+ export declare function resolveWorkspaceOwnerPath(workspacePath: string): string;
3
4
  export declare function slugify(input: string): string;
4
5
  export declare function isValidSlug(slug: string): boolean;
@@ -0,0 +1,48 @@
1
+ export type WiStatus = 'draft' | 'approved' | 'in-progress' | 'done' | 'cancelled';
2
+ export interface WiCreateInput {
3
+ title: string;
4
+ assignee?: string;
5
+ body?: string;
6
+ board?: string;
7
+ source?: string;
8
+ depends_on?: string[];
9
+ }
10
+ export interface WiBatchCreateInput {
11
+ board: string;
12
+ source?: string;
13
+ items: Array<{
14
+ key?: string;
15
+ title: string;
16
+ assignee?: string;
17
+ depends_on?: string[];
18
+ body: string;
19
+ }>;
20
+ }
21
+ export interface WiCreatedSummary {
22
+ wi_id: string;
23
+ title: string;
24
+ status: WiStatus;
25
+ priority?: string;
26
+ assignee?: string;
27
+ depends_on: string[];
28
+ blocks: string[];
29
+ date?: string;
30
+ board?: string;
31
+ source: string;
32
+ screens: string[];
33
+ path: string;
34
+ mtime: number;
35
+ }
36
+ export interface WiCreatedDetail {
37
+ summary: WiCreatedSummary;
38
+ frontmatter: Record<string, unknown>;
39
+ body: string;
40
+ }
41
+ export interface WiBatchCreateResult {
42
+ created: WiCreatedDetail[];
43
+ }
44
+ export declare class WiCreateError extends Error {
45
+ constructor(message: string);
46
+ }
47
+ export declare function createWorkInstruction(workspacePath: string, input: WiCreateInput): Promise<WiCreatedDetail>;
48
+ export declare function createWorkInstructionBatch(workspacePath: string, input: WiBatchCreateInput): Promise<WiBatchCreateResult>;
@@ -0,0 +1,20 @@
1
+ export type WiSelectableStatus = 'draft' | 'approved' | 'in-progress' | 'done' | 'cancelled';
2
+ export interface WiSummary {
3
+ wi_id: string;
4
+ status: WiSelectableStatus;
5
+ depends_on?: string[];
6
+ }
7
+ export type SelectNextWiResult = {
8
+ pick: string;
9
+ } | {
10
+ blocked: true;
11
+ reason: string;
12
+ } | {
13
+ cycle: string[];
14
+ } | {
15
+ done: true;
16
+ };
17
+ export declare function selectNextWi(wis: WiSummary[], opts: {
18
+ batch: string[];
19
+ exclude?: string[];
20
+ }): SelectNextWiResult;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewx/sdk",
3
- "version": "0.9.0-rc.12",
3
+ "version": "0.9.0-rc.120",
4
4
  "license": "UNLICENSED",
5
5
  "engines": {
6
6
  "node": ">=20.19.0"
@@ -20,6 +20,11 @@
20
20
  "types": "./dist/index.browser.d.ts",
21
21
  "import": "./dist/index.browser.js"
22
22
  },
23
+ "./skills": {
24
+ "types": "./dist/skills/index.d.ts",
25
+ "import": "./dist/skills/index.js",
26
+ "require": "./dist/skills/index.js"
27
+ },
23
28
  "./client": {
24
29
  "types": "./dist/client/index.d.ts",
25
30
  "import": "./dist/client/index.js",
@@ -50,6 +55,26 @@
50
55
  "import": "./dist/repository/index.js",
51
56
  "require": "./dist/repository/index.js"
52
57
  },
58
+ "./desktop": {
59
+ "types": "./dist/desktop/index.d.ts",
60
+ "import": "./dist/desktop/index.js",
61
+ "require": "./dist/desktop/index.js"
62
+ },
63
+ "./process": {
64
+ "types": "./dist/process/index.d.ts",
65
+ "import": "./dist/process/index.js",
66
+ "require": "./dist/process/index.js"
67
+ },
68
+ "./publish": {
69
+ "types": "./dist/publish/index.d.ts",
70
+ "import": "./dist/publish/index.js",
71
+ "require": "./dist/publish/index.js"
72
+ },
73
+ "./account": {
74
+ "types": "./dist/account/index.d.ts",
75
+ "import": "./dist/account/index.js",
76
+ "require": "./dist/account/index.js"
77
+ },
53
78
  "./package.json": "./package.json"
54
79
  },
55
80
  "browser": {
@@ -60,7 +85,17 @@
60
85
  "./dist/layout/loader.js": false,
61
86
  "./dist/esm/layout/loader.js": false,
62
87
  "./dist/repository/index.js": false,
63
- "./dist/esm/repository/index.js": false
88
+ "./dist/esm/repository/index.js": false,
89
+ "./dist/desktop/index.js": false,
90
+ "./dist/esm/desktop/index.js": false,
91
+ "./dist/process/index.js": false,
92
+ "./dist/esm/process/index.js": false,
93
+ "./dist/publish/index.js": false,
94
+ "./dist/esm/publish/index.js": false,
95
+ "./dist/account/index.js": false,
96
+ "./dist/esm/account/index.js": false,
97
+ "./dist/skills/index.js": false,
98
+ "./dist/esm/skills/index.js": false
64
99
  },
65
100
  "files": [
66
101
  "dist",
@@ -73,8 +108,11 @@
73
108
  "@modelcontextprotocol/sdk": "1.27.0",
74
109
  "ai": "4.0.0",
75
110
  "drizzle-orm": "0.45.2",
111
+ "dotenv": "17.2.3",
76
112
  "handlebars": "4.7.9",
113
+ "js-tiktoken": "1.0.21",
77
114
  "js-yaml": "4.1.0",
115
+ "tar": "7.5.15",
78
116
  "zod": "3.25.76"
79
117
  },
80
118
  "peerDependencies": {