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 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.2 --output-root ./out
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.2
13
+ console.log(`agentic-dataset-builder@0.2.3
14
14
 
15
15
  Usage:
16
- npx agentic-dataset-builder@0.2.2 --output-root ./out
16
+ npx agentic-dataset-builder@0.2.3 --output-root ./out
17
17
 
18
18
  Options:
19
19
  --output-root <dir> Output directory root
@@ -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.push({ role: 'system', content: text });
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 : [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-dataset-builder",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Pure TypeScript agentic dataset builder for Pi, Codex, and Claude Code history",
5
5
  "license": "MIT",
6
6
  "type": "module",