@ranger1/dx 0.1.79 → 0.1.80

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.
@@ -2,6 +2,8 @@ model = "gpt-5.3-codex"
2
2
  model_reasoning_effort = "medium"
3
3
  approval_policy = "never"
4
4
  sandbox_mode = "workspace-write"
5
+
6
+ [sandbox_workspace_write]
5
7
  network_access = true
6
8
 
7
9
  developer_instructions = '''
@@ -2,6 +2,8 @@ model = "gpt-5.3-codex"
2
2
  model_reasoning_effort = "low"
3
3
  approval_policy = "never"
4
4
  sandbox_mode = "workspace-write"
5
+
6
+ [sandbox_workspace_write]
5
7
  network_access = true
6
8
 
7
9
  developer_instructions = '''
@@ -2,6 +2,8 @@ model = "gpt-5.3-codex"
2
2
  model_reasoning_effort = "medium"
3
3
  approval_policy = "never"
4
4
  sandbox_mode = "workspace-write"
5
+
6
+ [sandbox_workspace_write]
5
7
  network_access = true
6
8
 
7
9
  developer_instructions = '''
@@ -2,6 +2,8 @@ model = "gpt-5.3-codex"
2
2
  model_reasoning_effort = "medium"
3
3
  approval_policy = "never"
4
4
  sandbox_mode = "workspace-write"
5
+
6
+ [sandbox_workspace_write]
5
7
  network_access = true
6
8
 
7
9
  developer_instructions = '''
@@ -18,4 +20,3 @@ prompt是一个文件路径并不存在时,必须返回结构化错误:{"err
18
20
 
19
21
  '''
20
22
 
21
-
@@ -57,7 +57,7 @@ bash "$CODEX_HOME/skills/doctor/scripts/doctor.sh" --max-rounds 3
57
57
  - 自动修复:确保 `~/.codex/config.toml` 含以下目标值(缺失补齐、值不符覆盖):
58
58
  - `[features] multi_agent = true`
59
59
  - `[agents] max_threads = 15`
60
- - `[agents.fixer] description/model_reasoning_effort/config_file`
60
+ - `[agents.fixer] description/config_file`
61
61
  - `[agents.orchestrator] description/config_file`
62
62
  - `[agents.reviewer] description/config_file`
63
63
  - `[agents.spark] description/config_file`
@@ -233,7 +233,7 @@ ensure_codex_config() {
233
233
  in_features=0; in_agents=0; in_fixer=0; in_orch=0; in_reviewer=0; in_spark=0;
234
234
  features_emitted=0; agents_emitted=0; fixer_emitted=0; orch_emitted=0; reviewer_emitted=0; spark_emitted=0;
235
235
  features_multi_written=0; agents_max_threads_written=0;
236
- fixer_desc_written=0; fixer_reasoning_written=0; fixer_cfg_written=0;
236
+ fixer_desc_written=0; fixer_cfg_written=0;
237
237
  orch_desc_written=0; orch_cfg_written=0;
238
238
  reviewer_desc_written=0; reviewer_cfg_written=0;
239
239
  spark_desc_written=0; spark_cfg_written=0;
@@ -252,24 +252,23 @@ ensure_codex_config() {
252
252
  }
253
253
  function flush_fixer() {
254
254
  if (!fixer_emitted) return;
255
- if (!fixer_desc_written) print "description = \"bug fixer\"";
256
- if (!fixer_reasoning_written) print "model_reasoning_effort = \"medium\"";
257
- if (!fixer_cfg_written) print "config_file = \"~/.codex/agents/fixer.toml\"";
255
+ if (!fixer_desc_written) print "description = \"bugfix 代理\"";
256
+ if (!fixer_cfg_written) print "config_file = \"agents/fixer.toml\"";
258
257
  }
259
258
  function flush_orch() {
260
259
  if (!orch_emitted) return;
261
- if (!orch_desc_written) print "description = \"orchestrator\"";
262
- if (!orch_cfg_written) print "config_file = \"~/.codex/agents/orchestrator.toml\"";
260
+ if (!orch_desc_written) print "description = \"pr 修复流程编排代理\"";
261
+ if (!orch_cfg_written) print "config_file = \"agents/orchestrator.toml\"";
263
262
  }
264
263
  function flush_reviewer() {
265
264
  if (!reviewer_emitted) return;
266
- if (!reviewer_desc_written) print "description = \"reviewer\"";
267
- if (!reviewer_cfg_written) print "config_file = \"~/.codex/agents/reviewer.toml\"";
265
+ if (!reviewer_desc_written) print "description = \"代码评审代理\"";
266
+ if (!reviewer_cfg_written) print "config_file = \"agents/reviewer.toml\"";
268
267
  }
269
268
  function flush_spark() {
270
269
  if (!spark_emitted) return;
271
- if (!spark_desc_written) print "description = \"spark\"";
272
- if (!spark_cfg_written) print "config_file = \"~/.codex/agents/spark.toml\"";
270
+ if (!spark_desc_written) print "description = \"通用执行代理\"";
271
+ if (!spark_cfg_written) print "config_file = \"agents/spark.toml\"";
273
272
  }
274
273
  function flush_active_section() {
275
274
  if (in_features) flush_features();
@@ -332,42 +331,38 @@ ensure_codex_config() {
332
331
  }
333
332
 
334
333
  if (in_fixer && match(t, /^description[[:space:]]*=/)) {
335
- if (!fixer_desc_written) { print "description = \"bug fixer\""; fixer_desc_written=1; }
336
- next;
337
- }
338
- if (in_fixer && match(t, /^model_reasoning_effort[[:space:]]*=/)) {
339
- if (!fixer_reasoning_written) { print "model_reasoning_effort = \"medium\""; fixer_reasoning_written=1; }
334
+ if (!fixer_desc_written) { print "description = \"bugfix 代理\""; fixer_desc_written=1; }
340
335
  next;
341
336
  }
342
337
  if (in_fixer && match(t, /^config_file[[:space:]]*=/)) {
343
- if (!fixer_cfg_written) { print "config_file = \"~/.codex/agents/fixer.toml\""; fixer_cfg_written=1; }
338
+ if (!fixer_cfg_written) { print "config_file = \"agents/fixer.toml\""; fixer_cfg_written=1; }
344
339
  next;
345
340
  }
346
341
 
347
342
  if (in_orch && match(t, /^description[[:space:]]*=/)) {
348
- if (!orch_desc_written) { print "description = \"orchestrator\""; orch_desc_written=1; }
343
+ if (!orch_desc_written) { print "description = \"pr 修复流程编排代理\""; orch_desc_written=1; }
349
344
  next;
350
345
  }
351
346
  if (in_orch && match(t, /^config_file[[:space:]]*=/)) {
352
- if (!orch_cfg_written) { print "config_file = \"~/.codex/agents/orchestrator.toml\""; orch_cfg_written=1; }
347
+ if (!orch_cfg_written) { print "config_file = \"agents/orchestrator.toml\""; orch_cfg_written=1; }
353
348
  next;
354
349
  }
355
350
 
356
351
  if (in_reviewer && match(t, /^description[[:space:]]*=/)) {
357
- if (!reviewer_desc_written) { print "description = \"reviewer\""; reviewer_desc_written=1; }
352
+ if (!reviewer_desc_written) { print "description = \"代码评审代理\""; reviewer_desc_written=1; }
358
353
  next;
359
354
  }
360
355
  if (in_reviewer && match(t, /^config_file[[:space:]]*=/)) {
361
- if (!reviewer_cfg_written) { print "config_file = \"~/.codex/agents/reviewer.toml\""; reviewer_cfg_written=1; }
356
+ if (!reviewer_cfg_written) { print "config_file = \"agents/reviewer.toml\""; reviewer_cfg_written=1; }
362
357
  next;
363
358
  }
364
359
 
365
360
  if (in_spark && match(t, /^description[[:space:]]*=/)) {
366
- if (!spark_desc_written) { print "description = \"spark\""; spark_desc_written=1; }
361
+ if (!spark_desc_written) { print "description = \"通用执行代理\""; spark_desc_written=1; }
367
362
  next;
368
363
  }
369
364
  if (in_spark && match(t, /^config_file[[:space:]]*=/)) {
370
- if (!spark_cfg_written) { print "config_file = \"~/.codex/agents/spark.toml\""; spark_cfg_written=1; }
365
+ if (!spark_cfg_written) { print "config_file = \"agents/spark.toml\""; spark_cfg_written=1; }
371
366
  next;
372
367
  }
373
368
 
@@ -389,27 +384,26 @@ ensure_codex_config() {
389
384
  if (!fixer_emitted) {
390
385
  print "";
391
386
  print "[agents.fixer]";
392
- print "description = \"bug fixer\"";
393
- print "model_reasoning_effort = \"medium\"";
394
- print "config_file = \"~/.codex/agents/fixer.toml\"";
387
+ print "description = \"bugfix 代理\"";
388
+ print "config_file = \"agents/fixer.toml\"";
395
389
  }
396
390
  if (!orch_emitted) {
397
391
  print "";
398
392
  print "[agents.orchestrator]";
399
- print "description = \"orchestrator\"";
400
- print "config_file = \"~/.codex/agents/orchestrator.toml\"";
393
+ print "description = \"pr 修复流程编排代理\"";
394
+ print "config_file = \"agents/orchestrator.toml\"";
401
395
  }
402
396
  if (!reviewer_emitted) {
403
397
  print "";
404
398
  print "[agents.reviewer]";
405
- print "description = \"reviewer\"";
406
- print "config_file = \"~/.codex/agents/reviewer.toml\"";
399
+ print "description = \"代码评审代理\"";
400
+ print "config_file = \"agents/reviewer.toml\"";
407
401
  }
408
402
  if (!spark_emitted) {
409
403
  print "";
410
404
  print "[agents.spark]";
411
- print "description = \"spark\"";
412
- print "config_file = \"~/.codex/agents/spark.toml\"";
405
+ print "description = \"通用执行代理\"";
406
+ print "config_file = \"agents/spark.toml\"";
413
407
  }
414
408
  }' "$cfg_file" >"$tmp_file"
415
409
 
@@ -424,7 +418,7 @@ check_codex_config() {
424
418
  awk '
425
419
  BEGIN {
426
420
  in_features=0; in_agents=0; in_fixer=0; in_orch=0; in_reviewer=0; in_spark=0;
427
- ok_features=0; ok_threads=0; ok_fixer_desc=0; ok_fixer_reason=0; ok_fixer_cfg=0;
421
+ ok_features=0; ok_threads=0; ok_fixer_desc=0; ok_fixer_cfg=0;
428
422
  ok_orch_desc=0; ok_orch_cfg=0; ok_reviewer_desc=0; ok_reviewer_cfg=0; ok_spark_desc=0; ok_spark_cfg=0;
429
423
  }
430
424
  function trim(s) { gsub(/^[[:space:]]+|[[:space:]]+$/, "", s); return s }
@@ -442,19 +436,18 @@ check_codex_config() {
442
436
  }
443
437
  if (in_features && line ~ /^multi_agent[[:space:]]*=[[:space:]]*true$/) ok_features=1;
444
438
  if (in_agents && line ~ /^max_threads[[:space:]]*=[[:space:]]*15$/) ok_threads=1;
445
- if (in_fixer && line ~ /^description[[:space:]]*=[[:space:]]*"bug fixer"$/) ok_fixer_desc=1;
446
- if (in_fixer && line ~ /^model_reasoning_effort[[:space:]]*=[[:space:]]*"medium"$/) ok_fixer_reason=1;
447
- if (in_fixer && line ~ /^config_file[[:space:]]*=[[:space:]]*"~\/\.codex\/agents\/fixer\.toml"$/) ok_fixer_cfg=1;
448
- if (in_orch && line ~ /^description[[:space:]]*=[[:space:]]*"orchestrator"$/) ok_orch_desc=1;
449
- if (in_orch && line ~ /^config_file[[:space:]]*=[[:space:]]*"~\/\.codex\/agents\/orchestrator\.toml"$/) ok_orch_cfg=1;
450
- if (in_reviewer && line ~ /^description[[:space:]]*=[[:space:]]*"reviewer"$/) ok_reviewer_desc=1;
451
- if (in_reviewer && line ~ /^config_file[[:space:]]*=[[:space:]]*"~\/\.codex\/agents\/reviewer\.toml"$/) ok_reviewer_cfg=1;
452
- if (in_spark && line ~ /^description[[:space:]]*=[[:space:]]*"spark"$/) ok_spark_desc=1;
453
- if (in_spark && line ~ /^config_file[[:space:]]*=[[:space:]]*"~\/\.codex\/agents\/spark\.toml"$/) ok_spark_cfg=1;
439
+ if (in_fixer && line ~ /^description[[:space:]]*=[[:space:]]*"bugfix 代理"$/) ok_fixer_desc=1;
440
+ if (in_fixer && line ~ /^config_file[[:space:]]*=[[:space:]]*"agents\/fixer\.toml"$/) ok_fixer_cfg=1;
441
+ if (in_orch && line ~ /^description[[:space:]]*=[[:space:]]*"pr 修复流程编排代理"$/) ok_orch_desc=1;
442
+ if (in_orch && line ~ /^config_file[[:space:]]*=[[:space:]]*"agents\/orchestrator\.toml"$/) ok_orch_cfg=1;
443
+ if (in_reviewer && line ~ /^description[[:space:]]*=[[:space:]]*"代码评审代理"$/) ok_reviewer_desc=1;
444
+ if (in_reviewer && line ~ /^config_file[[:space:]]*=[[:space:]]*"agents\/reviewer\.toml"$/) ok_reviewer_cfg=1;
445
+ if (in_spark && line ~ /^description[[:space:]]*=[[:space:]]*"通用执行代理"$/) ok_spark_desc=1;
446
+ if (in_spark && line ~ /^config_file[[:space:]]*=[[:space:]]*"agents\/spark\.toml"$/) ok_spark_cfg=1;
454
447
  }
455
448
  END {
456
449
  ok = ok_features && ok_threads &&
457
- ok_fixer_desc && ok_fixer_reason && ok_fixer_cfg &&
450
+ ok_fixer_desc && ok_fixer_cfg &&
458
451
  ok_orch_desc && ok_orch_cfg &&
459
452
  ok_reviewer_desc && ok_reviewer_cfg &&
460
453
  ok_spark_desc && ok_spark_cfg;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ranger1/dx",
3
- "version": "0.1.79",
3
+ "version": "0.1.80",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {