@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.
- 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 +56 -6
- package/dist/agent/agent-list-view.d.ts +19 -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 -2
- package/dist/conversation/to-template-messages.d.ts +9 -0
- package/dist/conversation/types.d.ts +47 -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/desktop/index.js +3 -0
- package/dist/esm/index.js +700 -210
- package/dist/esm/plugins/index.js +292 -205
- package/dist/esm/process/index.js +1 -0
- package/dist/esm/publish/index.js +2 -0
- package/dist/esm/repository/index.js +363 -198
- package/dist/esm/skills/index.js +1 -0
- package/dist/esm/testing/index.js +1 -1
- package/dist/events/types.d.ts +9 -0
- package/dist/facade/Crewx.d.ts +56 -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 +15 -1
- package/dist/index.browser.js +6 -2
- package/dist/index.d.ts +116 -17
- package/dist/index.js +700 -210
- 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/apps-context.d.ts +5 -0
- package/dist/mcp-app/catalog.d.ts +7 -0
- package/dist/mcp-app/discovery.d.ts +108 -0
- package/dist/mcp-app/errors.d.ts +7 -0
- package/dist/mcp-app/index.d.ts +20 -0
- package/dist/mcp-app/installed-app-ref.d.ts +25 -0
- package/dist/mcp-app/node-app-discovery-fs.d.ts +20 -0
- package/dist/mcp-app/projection.d.ts +13 -0
- package/dist/mcp-app/registry.d.ts +19 -0
- package/dist/mcp-app/skill-backend.d.ts +48 -0
- package/dist/mcp-app/state-set.d.ts +9 -0
- package/dist/mcp-app/types.d.ts +370 -0
- package/dist/mcp-app/workspace-snapshot.d.ts +61 -0
- package/dist/migrations/0008_careful_black_bird.sql +17 -0
- package/dist/migrations/0009_hot_dark_phoenix.sql +1 -0
- package/dist/migrations/0010_analyze_stats.sql +6 -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/meta/0008_snapshot.json +1327 -0
- package/dist/migrations/meta/0009_snapshot.json +1335 -0
- package/dist/migrations/meta/0010_snapshot.json +1335 -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/_journal.json +176 -1
- 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 +292 -205
- 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 +20 -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 +38 -5
- package/dist/repository/index.js +363 -198
- package/dist/repository/notification.repository.d.ts +58 -0
- package/dist/repository/project.repository.d.ts +90 -0
- package/dist/repository/request-log.repository.d.ts +1 -0
- 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 +14 -0
- package/dist/repository/task.repository.d.ts +233 -7
- package/dist/repository/thread-history.repository.d.ts +193 -0
- package/dist/repository/thread-title.types.d.ts +29 -0
- package/dist/repository/thread.repository.d.ts +47 -5
- package/dist/repository/usage-backfill.d.ts +62 -0
- package/dist/repository/usage-from-logs.d.ts +21 -0
- package/dist/repository/usage-report.repository.d.ts +27 -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 +10 -0
- package/dist/schema/notifications.d.ts +303 -0
- package/dist/schema/projects.d.ts +610 -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-history.d.ts +734 -0
- package/dist/schema/threads.d.ts +59 -0
- package/dist/schema/ui-action-receipts.d.ts +303 -0
- package/dist/schema/ui-instances.d.ts +305 -0
- package/dist/schema/usage-reports.d.ts +252 -0
- package/dist/schema/workspaces.d.ts +17 -0
- package/dist/skills/index.d.ts +8 -0
- package/dist/skills/index.js +1 -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 +1570 -3
- package/dist/types/task-log.types.d.ts +2 -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 +17 -0
- package/dist/ui-instance/index.d.ts +9 -0
- package/dist/ui-instance/json.d.ts +8 -0
- package/dist/ui-instance/runtime.d.ts +18 -0
- package/dist/ui-instance/store.d.ts +109 -0
- package/dist/ui-instance/types.d.ts +224 -0
- package/dist/ui-plugin/index.d.ts +4 -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 +178 -0
- package/dist/ui-plugin/validator.d.ts +15 -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 +2 -0
- package/dist/utils/id.d.ts +1 -1
- 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 +40 -2
- package/templates/agents/default.yaml +279 -127
- package/templates/documents/crewx-manual.md +138 -138
- package/templates/documents/crewx-quick-guide.md +1 -1
- package/templates/workflows/wi-default-flow.yaml +65 -0
- 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;
|
package/dist/utils/id.d.ts
CHANGED
|
@@ -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,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.
|
|
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": {
|