@crewx/cli 0.9.0-rc.6 → 0.9.0-rc.7

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.
@@ -34,7 +34,7 @@ const inherited_trace_1 = require("../utils/inherited-trace");
34
34
  * --verbose: debug info written to stderr, response to stdout.
35
35
  */
36
36
  async function handleExecute(args) {
37
- const { thread, provider, metadata, verbose, config, outputFormat, effort, promptFile, vars, rest } = (0, parse_common_flags_1.parseCommonFlags)(args);
37
+ const { thread, provider, metadata, verbose, config, outputFormat, effort, promptFile, overdrive, vars, rest } = (0, parse_common_flags_1.parseCommonFlags)(args);
38
38
  const { agentRef: parsedAgentRef, message } = (0, parse_agent_message_1.parseAgentMessage)(rest);
39
39
  // No @mention → default to @crewx agent (matches cli-bak behaviour)
40
40
  const agentRef = parsedAgentRef || '@crewx';
@@ -65,6 +65,7 @@ async function handleExecute(args) {
65
65
  console.error(' --effort <level> Model effort (high|medium|low)');
66
66
  console.error(' -f/--prompt-file <path> Read task body from file');
67
67
  console.error(' --var key=value Template variable (repeatable)');
68
+ console.error(' --overdrive Activate overdrive (boost) profile for this request');
68
69
  process.exit(1);
69
70
  }
70
71
  const configPath = config ?? process.env.CREWX_CONFIG ?? 'crewx.yaml';
@@ -83,6 +84,8 @@ async function handleExecute(args) {
83
84
  process.stderr.write(`📄 Output-format: ${outputFormat}\n`);
84
85
  if (effort)
85
86
  process.stderr.write(`⚡ Effort: ${effort}\n`);
87
+ if (overdrive)
88
+ process.stderr.write(`🚀 Overdrive: ON\n`);
86
89
  process.stderr.write('─'.repeat(60) + '\n');
87
90
  }
88
91
  let parsedMetadata = {};
@@ -99,6 +102,7 @@ async function handleExecute(args) {
99
102
  const result = await crewx.execute(agentRef, finalMessage, {
100
103
  provider,
101
104
  effort: effort || undefined,
105
+ overdrive: overdrive || undefined,
102
106
  threadId: thread,
103
107
  metadata: Object.keys(parsedMetadata).length > 0 ? parsedMetadata : undefined,
104
108
  vars: Object.keys(vars).length > 0 ? vars : undefined,
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Supports both `--flag=value` and `--flag value` forms.
5
5
  * Handles: --thread, --provider, --metadata, --verbose, --config/-c,
6
- * --output-format, --effort, --prompt-file/-f.
6
+ * --output-format, --effort, --prompt-file/-f, --overdrive.
7
7
  *
8
8
  * Strict mode: unknown --xxx tokens after known flags are consumed throw an
9
9
  * error instead of silently leaking into the message prompt.
@@ -26,6 +26,8 @@ export interface CommonFlags {
26
26
  effort?: string;
27
27
  /** Path to a file whose content is used as the prompt body (-f/--prompt-file). */
28
28
  promptFile?: string;
29
+ /** Whether overdrive (boost) is active for this request. */
30
+ overdrive: boolean;
29
31
  /** Template variables from --var key=value flags. */
30
32
  vars: Record<string, string>;
31
33
  /** Remaining non-flag positional arguments. */
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * Supports both `--flag=value` and `--flag value` forms.
6
6
  * Handles: --thread, --provider, --metadata, --verbose, --config/-c,
7
- * --output-format, --effort, --prompt-file/-f.
7
+ * --output-format, --effort, --prompt-file/-f, --overdrive.
8
8
  *
9
9
  * Strict mode: unknown --xxx tokens after known flags are consumed throw an
10
10
  * error instead of silently leaking into the message prompt.
@@ -69,6 +69,7 @@ function parseCommonFlags(args) {
69
69
  const effort = parseFlag(args, '--effort');
70
70
  const promptFile = parseFlag(args, '--prompt-file', '-f');
71
71
  const verbose = hasFlag(args, '--verbose');
72
+ const overdrive = hasFlag(args, '--overdrive');
72
73
  // Collect consumed positions for known flags
73
74
  const consumed = new Set();
74
75
  const flagPairs = [
@@ -88,6 +89,10 @@ function parseCommonFlags(args) {
88
89
  consumed.add(i);
89
90
  continue;
90
91
  }
92
+ if (arg === '--overdrive') {
93
+ consumed.add(i);
94
+ continue;
95
+ }
91
96
  // --var=key=value or --var key=value
92
97
  if (arg.startsWith('--var=') || arg === '--var') {
93
98
  let kv;
@@ -148,7 +153,7 @@ function parseCommonFlags(args) {
148
153
  }
149
154
  rest.push(token);
150
155
  }
151
- return { thread, provider, metadata, verbose, config, outputFormat, effort, promptFile, vars, rest };
156
+ return { thread, provider, metadata, verbose, config, outputFormat, effort, promptFile, overdrive, vars, rest };
152
157
  }
153
158
  /**
154
159
  * Parse metadata JSON string from --metadata flag.
@@ -34,7 +34,7 @@ const inherited_trace_1 = require("../utils/inherited-trace");
34
34
  * --verbose: debug info written to stderr, response to stdout.
35
35
  */
36
36
  async function handleQuery(args) {
37
- const { thread, provider, metadata, verbose, config, outputFormat, effort, promptFile, vars, rest } = (0, parse_common_flags_1.parseCommonFlags)(args);
37
+ const { thread, provider, metadata, verbose, config, outputFormat, effort, promptFile, overdrive, vars, rest } = (0, parse_common_flags_1.parseCommonFlags)(args);
38
38
  const { agentRef: parsedAgentRef, message } = (0, parse_agent_message_1.parseAgentMessage)(rest);
39
39
  // No @mention → default to @crewx agent (matches cli-bak behaviour)
40
40
  const agentRef = parsedAgentRef || '@crewx';
@@ -65,6 +65,7 @@ async function handleQuery(args) {
65
65
  console.error(' --effort <level> Model effort (high|medium|low)');
66
66
  console.error(' -f/--prompt-file <path> Read prompt body from file');
67
67
  console.error(' --var key=value Template variable (repeatable)');
68
+ console.error(' --overdrive Activate overdrive (boost) profile for this request');
68
69
  process.exit(1);
69
70
  }
70
71
  const configPath = config ?? process.env.CREWX_CONFIG ?? 'crewx.yaml';
@@ -83,6 +84,8 @@ async function handleQuery(args) {
83
84
  process.stderr.write(`📄 Output-format: ${outputFormat}\n`);
84
85
  if (effort)
85
86
  process.stderr.write(`⚡ Effort: ${effort}\n`);
87
+ if (overdrive)
88
+ process.stderr.write(`🚀 Overdrive: ON\n`);
86
89
  process.stderr.write('─'.repeat(60) + '\n');
87
90
  }
88
91
  let parsedMetadata = {};
@@ -99,6 +102,7 @@ async function handleQuery(args) {
99
102
  const result = await crewx.query(agentRef, finalMessage, {
100
103
  provider,
101
104
  effort: effort || undefined,
105
+ overdrive: overdrive || undefined,
102
106
  threadId: thread,
103
107
  metadata: Object.keys(parsedMetadata).length > 0 ? parsedMetadata : undefined,
104
108
  vars: Object.keys(vars).length > 0 ? vars : undefined,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewx/cli",
3
- "version": "0.9.0-rc.6",
3
+ "version": "0.9.0-rc.7",
4
4
  "license": "UNLICENSED",
5
5
  "engines": {
6
6
  "node": ">=20.19.0"
@@ -24,17 +24,17 @@
24
24
  "@crewx/adapter-slack": "0.1.4",
25
25
  "better-sqlite3": "*",
26
26
  "isomorphic-git": "1.37.1",
27
- "@crewx/sdk": "0.9.0-rc.6",
27
+ "@crewx/sdk": "0.9.0-rc.7",
28
28
  "@crewx/search": "0.1.10",
29
29
  "@crewx/doc": "0.1.9",
30
+ "@crewx/workflow": "0.3.22-rc.53",
31
+ "@crewx/wbs": "0.1.10",
30
32
  "@crewx/cron": "0.1.10",
31
33
  "@crewx/skill": "0.1.20",
32
- "@crewx/workflow": "0.3.22-rc.52",
33
- "@crewx/shared": "0.0.6",
34
- "@crewx/chromex": "0.1.0",
35
- "@crewx/wbs": "0.1.10",
36
34
  "@crewx/memory": "0.1.23",
37
- "@crewx/wi": "0.1.10"
35
+ "@crewx/wi": "0.1.10",
36
+ "@crewx/chromex": "0.1.0",
37
+ "@crewx/shared": "0.0.6"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/better-sqlite3": "*",