@crewx/sdk 0.9.0-rc.86 → 0.9.0-rc.87

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.
@@ -33,6 +33,7 @@ export interface CliProviderAdapter {
33
33
  env?: Record<string, string>;
34
34
  };
35
35
  extractText(stdout: string): string;
36
+ extractPartialText?(stdout: string): string | undefined;
36
37
  extractFailure?(line: string): Error | null;
37
38
  interpretExit?(code: number, stderr: string, stdout?: string): Error | null;
38
39
  parseResultMeta?(stdout: string): {
@@ -0,0 +1,2 @@
1
+ export declare function shouldSkipRawStdoutJsonFallback(message: string, providerId?: string): boolean;
2
+ export declare function isProtocolOnlyText(text: string, providerId?: string): boolean;
@@ -19,6 +19,7 @@ export interface CrewxExecutablePathLookupOptions {
19
19
  cwd: string;
20
20
  platform: NodeJS.Platform;
21
21
  }
22
+ export type CrewxExecutablePathLookupResult = string | readonly string[] | undefined;
22
23
  export interface CrewxExecutableResolverOptions {
23
24
  env?: NodeJS.ProcessEnv;
24
25
  cwd?: string;
@@ -27,10 +28,27 @@ export interface CrewxExecutableResolverOptions {
27
28
  platform?: NodeJS.Platform;
28
29
  modulePaths?: readonly string[];
29
30
  requireResolve?: (request: string) => string;
30
- findOnPath?: (command: string, options: CrewxExecutablePathLookupOptions) => string | undefined;
31
+ findOnPath?: (command: string, options: CrewxExecutablePathLookupOptions) => CrewxExecutablePathLookupResult;
31
32
  isFile?: (candidate: string) => boolean;
32
33
  }
34
+ export interface CrewxCliShim {
35
+ directory: string;
36
+ executable: string;
37
+ fingerprint: string;
38
+ }
39
+ export interface CrewxCliShimOptions {
40
+ home?: string;
41
+ platform?: NodeJS.Platform;
42
+ }
43
+ export interface CrewxStableEntrypointOptions extends CrewxCliShimOptions {
44
+ cwd?: string;
45
+ }
46
+ export declare function isVolatilePath(candidate: string): boolean;
47
+ export declare function isRotatingInstallPath(candidate: string): boolean;
33
48
  export declare function resolveCrewxExecutable(options?: CrewxExecutableResolverOptions): CrewxExecutableResolution;
34
49
  export declare const resolveCrewxCliArgv: typeof resolveCrewxExecutable;
50
+ export declare function materializeCrewxCliShim(argv: readonly string[], options?: CrewxCliShimOptions): CrewxCliShim;
51
+ export declare function getCrewxStableEntrypoint(options?: CrewxCliShimOptions): string;
52
+ export declare function materializeCrewxStableEntrypoint(resolution: CrewxExecutableResolution, options?: CrewxStableEntrypointOptions): string | undefined;
35
53
  export declare function formatCrewxExecutableArgv(argv: readonly string[], platform?: NodeJS.Platform): string;
36
54
  export declare function formatCrewxExecutableFailure(failure: CrewxExecutableFailure): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewx/sdk",
3
- "version": "0.9.0-rc.86",
3
+ "version": "0.9.0-rc.87",
4
4
  "license": "UNLICENSED",
5
5
  "engines": {
6
6
  "node": ">=20.19.0"
@@ -141,7 +141,7 @@ layouts:
141
141
  arrive; trusting it silently kills the delegated work.
142
142
 
143
143
  Rules for delegation and long-running commands:
144
- - Run delegations (npx crewx q / npx crewx x) in the FOREGROUND and wait for
144
+ - Run delegations (crewx q / crewx x) in the FOREGROUND and wait for
145
145
  the result within the same turn. Never use run_in_background, `&`, or nohup
146
146
  for a CrewX delegation.
147
147
  - If the harness force-moves a long command to the background (e.g. on
@@ -184,7 +184,7 @@ layouts:
184
184
 
185
185
  Each built-in tool is also a skill — run `{{env.CREWX_CLI}} skill <name>` to see its full documentation (SKILL.md).
186
186
 
187
- ### Memory (`$CREWX_CLI memory`)
187
+ ### Memory (`crewx memory`)
188
188
  Long-term memory engine. Always check your memories at the start of a conversation.
189
189
 
190
190
  ```bash
@@ -196,14 +196,14 @@ layouts:
196
196
  Pattern: `index` → `topic` → `get` (never load everything at once)
197
197
  → Full usage: `{{env.CREWX_CLI}} memory --help`
198
198
 
199
- ### Search (`$CREWX_CLI search`)
199
+ ### Search (`crewx search`)
200
200
  BM25 full-text search. Smarter than grep — compound keywords, relevance scoring.
201
201
 
202
202
  ```bash
203
203
  {{env.CREWX_CLI}} search "<query>" [path] [--glob=<pattern>] [--limit=<n>] [--json]
204
204
  ```
205
205
 
206
- ### Doc (`$CREWX_CLI doc`)
206
+ ### Doc (`crewx doc`)
207
207
  Markdown TOC extraction and section reader. Navigate large documents efficiently.
208
208
 
209
209
  ```bash
@@ -246,7 +246,7 @@ layouts:
246
246
 
247
247
  Types: `exec` (has entrypoint, runs script) | `doc` (no entrypoint, outputs markdown)
248
248
 
249
- ### Work Instruction (`$CREWX_CLI wi`)
249
+ ### Work Instruction (`crewx wi`)
250
250
  Structured task delegation. Create and issue work instructions to agents.
251
251
 
252
252
  ```bash