@digipair/skill-codex 0.139.0 → 0.140.0

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/index.cjs.js CHANGED
@@ -10,6 +10,7 @@ let CodexService = class CodexService {
10
10
  * Requires either ChatGPT sign-in (codex login) or OPENAI_API_KEY in the environment.
11
11
  */ async runPrompt(params, _pinsSettingsList, context) {
12
12
  const { prompt, sandbox = 'read-only', cwd = process.cwd() + '/factory/digipairs', timeoutMs, onStdout = [], onAction = [], debug = false } = params;
13
+ const model = context.privates?.CODEX_MODEL ?? 'gpt-5';
13
14
  if (!prompt || !prompt.trim()) {
14
15
  throw new Error('Prompt must be a non-empty string');
15
16
  }
@@ -25,6 +26,8 @@ let CodexService = class CodexService {
25
26
  args.push('exec');
26
27
  // codex exec expects: codex exec --sandbox <mode> [PROMPT]
27
28
  args.push('--sandbox', sandbox);
29
+ // add arg model, default gpt-5
30
+ args.push('--model', model);
28
31
  // skip git repo check
29
32
  args.push('--skip-git-repo-check');
30
33
  args.push(prompt);
package/dist/index.esm.js CHANGED
@@ -22841,14 +22841,14 @@ function indent(str, spaces) {
22841
22841
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
22842
22842
  // match is required
22843
22843
  if (!match) {
22844
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
22844
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
22845
22845
  v: nextMatch1
22846
22846
  };
22847
22847
  }
22848
22848
  var token = match.token, offset = match.offset;
22849
22849
  i1 += offset;
22850
22850
  if (token === ' ') {
22851
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
22851
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
22852
22852
  }
22853
22853
  tokens1 = _to_consumable_array$4(tokens1).concat([
22854
22854
  token
@@ -22867,7 +22867,7 @@ function indent(str, spaces) {
22867
22867
  if (contextKeys.some(function(el) {
22868
22868
  return el.startsWith(name);
22869
22869
  })) {
22870
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
22870
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
22871
22871
  }
22872
22872
  if (dateTimeIdentifiers.some(function(el) {
22873
22873
  return el === name;
@@ -22886,9 +22886,9 @@ function indent(str, spaces) {
22886
22886
  if (dateTimeIdentifiers.some(function(el) {
22887
22887
  return el.startsWith(name);
22888
22888
  })) {
22889
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
22889
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
22890
22890
  }
22891
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
22891
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
22892
22892
  v: nextMatch1
22893
22893
  };
22894
22894
  };
@@ -44579,6 +44579,7 @@ let CodexService = class CodexService {
44579
44579
  * Requires either ChatGPT sign-in (codex login) or OPENAI_API_KEY in the environment.
44580
44580
  */ async runPrompt(params, _pinsSettingsList, context) {
44581
44581
  const { prompt, sandbox = 'read-only', cwd = process.cwd() + '/factory/digipairs', timeoutMs, onStdout = [], onAction = [], debug = false } = params;
44582
+ const model = context.privates?.CODEX_MODEL ?? 'gpt-5';
44582
44583
  if (!prompt || !prompt.trim()) {
44583
44584
  throw new Error('Prompt must be a non-empty string');
44584
44585
  }
@@ -44594,6 +44595,8 @@ let CodexService = class CodexService {
44594
44595
  args.push('exec');
44595
44596
  // codex exec expects: codex exec --sandbox <mode> [PROMPT]
44596
44597
  args.push('--sandbox', sandbox);
44598
+ // add arg model, default gpt-5
44599
+ args.push('--model', model);
44597
44600
  // skip git repo check
44598
44601
  args.push('--skip-git-repo-check');
44599
44602
  args.push(prompt);
@@ -1 +1 @@
1
- {"version":3,"file":"skill-codex.d.ts","sourceRoot":"","sources":["../../../src/lib/skill-codex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,YAAY,EAAE,MAAM,kBAAkB,CAAC;AA2HjE,eAAO,MAAM,SAAS,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,oBACpB,CAAC"}
1
+ {"version":3,"file":"skill-codex.d.ts","sourceRoot":"","sources":["../../../src/lib/skill-codex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,YAAY,EAAE,MAAM,kBAAkB,CAAC;AA+HjE,eAAO,MAAM,SAAS,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,oBACpB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-codex",
3
- "version": "0.139.0",
3
+ "version": "0.140.0",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",