agentic-dataset-builder 0.2.2 → 0.2.3
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/cli.js +2 -2
- package/dist/sources/codex.js +10 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ The CLI is native Node.js + TypeScript. It does not require Python.
|
|
|
18
18
|
If the package is published on npm:
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
npx --registry=https://registry.npmjs.org/ agentic-dataset-builder@0.2.
|
|
21
|
+
npx --registry=https://registry.npmjs.org/ agentic-dataset-builder@0.2.3 --output-root ./out
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
If working from this repo locally:
|
package/dist/cli.js
CHANGED
|
@@ -10,10 +10,10 @@ import { Qwen35RecordSchema } from './schemas/qwen35.js';
|
|
|
10
10
|
import { writeParquet } from './parquet.js';
|
|
11
11
|
function parseArgs(argv) {
|
|
12
12
|
if (argv.includes('--help') || argv.includes('-h')) {
|
|
13
|
-
console.log(`agentic-dataset-builder@0.2.
|
|
13
|
+
console.log(`agentic-dataset-builder@0.2.3
|
|
14
14
|
|
|
15
15
|
Usage:
|
|
16
|
-
npx agentic-dataset-builder@0.2.
|
|
16
|
+
npx agentic-dataset-builder@0.2.3 --output-root ./out
|
|
17
17
|
|
|
18
18
|
Options:
|
|
19
19
|
--output-root <dir> Output directory root
|
package/dist/sources/codex.js
CHANGED
|
@@ -68,8 +68,16 @@ class TurnBuilder {
|
|
|
68
68
|
this.flushAssistant();
|
|
69
69
|
if (role === 'user')
|
|
70
70
|
this.messages.push({ role: 'user', content: text });
|
|
71
|
-
else if (role === 'developer' && text)
|
|
72
|
-
this.messages.
|
|
71
|
+
else if (role === 'developer' && text) {
|
|
72
|
+
const seenNonSystem = this.messages.some((message) => message.role !== 'system');
|
|
73
|
+
if (seenNonSystem) {
|
|
74
|
+
this.lossyReasons.add('late_developer_message_demoted');
|
|
75
|
+
this.messages.push({ role: 'assistant', content: `[developer]\n${text}` });
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
this.messages.push({ role: 'system', content: text });
|
|
79
|
+
}
|
|
80
|
+
}
|
|
73
81
|
}
|
|
74
82
|
ingestReasoning(payload) {
|
|
75
83
|
const summary = Array.isArray(payload.summary) ? payload.summary : [];
|