Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions graphify/skills/agents/references/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,32 @@ print(f'[graphify update] Merged extraction written ({len(merged_out[\"nodes\"])
# cached files instead of missing every one after a move (#1417).
save_manifest(incremental['files'], root='INPUT_PATH')
print('[graphify update] Manifest saved.')

# Append this run to the cumulative cost tracker. The initial full build
# (core skill Step 8) does this, but --update has its own extraction path
# and skipped it entirely, so cost.json only ever held the first run's
# entry no matter how many incremental updates followed (#1769).
from datetime import datetime, timezone
input_tok = new_extraction.get('input_tokens', 0)
output_tok = new_extraction.get('output_tokens', 0)

cost_path = Path('graphify-out/cost.json')
if cost_path.exists():
cost = json.loads(cost_path.read_text(encoding=\"utf-8\"))
else:
cost = {'runs': [], 'total_input_tokens': 0, 'total_output_tokens': 0}

cost['runs'].append({
'date': datetime.now(timezone.utc).isoformat(),
'input_tokens': input_tok,
'output_tokens': output_tok,
'files': incremental.get('new_total', 0),
})
cost['total_input_tokens'] += input_tok
cost['total_output_tokens'] += output_tok
cost_path.write_text(json.dumps(cost, indent=2, ensure_ascii=False), encoding=\"utf-8\")
print(f'[graphify update] This run: {input_tok:,} input tokens, {output_tok:,} output tokens')
print(f'[graphify update] All time: {cost[\"total_input_tokens\"]:,} input, {cost[\"total_output_tokens\"]:,} output ({len(cost[\"runs\"])} runs)')
"
```

Expand Down
26 changes: 26 additions & 0 deletions graphify/skills/amp/references/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,32 @@ print(f'[graphify update] Merged extraction written ({len(merged_out[\"nodes\"])
# cached files instead of missing every one after a move (#1417).
save_manifest(incremental['files'], root='INPUT_PATH')
print('[graphify update] Manifest saved.')

# Append this run to the cumulative cost tracker. The initial full build
# (core skill Step 8) does this, but --update has its own extraction path
# and skipped it entirely, so cost.json only ever held the first run's
# entry no matter how many incremental updates followed (#1769).
from datetime import datetime, timezone
input_tok = new_extraction.get('input_tokens', 0)
output_tok = new_extraction.get('output_tokens', 0)

cost_path = Path('graphify-out/cost.json')
if cost_path.exists():
cost = json.loads(cost_path.read_text(encoding=\"utf-8\"))
else:
cost = {'runs': [], 'total_input_tokens': 0, 'total_output_tokens': 0}

cost['runs'].append({
'date': datetime.now(timezone.utc).isoformat(),
'input_tokens': input_tok,
'output_tokens': output_tok,
'files': incremental.get('new_total', 0),
})
cost['total_input_tokens'] += input_tok
cost['total_output_tokens'] += output_tok
cost_path.write_text(json.dumps(cost, indent=2, ensure_ascii=False), encoding=\"utf-8\")
print(f'[graphify update] This run: {input_tok:,} input tokens, {output_tok:,} output tokens')
print(f'[graphify update] All time: {cost[\"total_input_tokens\"]:,} input, {cost[\"total_output_tokens\"]:,} output ({len(cost[\"runs\"])} runs)')
"
```

Expand Down
26 changes: 26 additions & 0 deletions graphify/skills/claude/references/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,32 @@ print(f'[graphify update] Merged extraction written ({len(merged_out[\"nodes\"])
# cached files instead of missing every one after a move (#1417).
save_manifest(incremental['files'], root='INPUT_PATH')
print('[graphify update] Manifest saved.')

# Append this run to the cumulative cost tracker. The initial full build
# (core skill Step 8) does this, but --update has its own extraction path
# and skipped it entirely, so cost.json only ever held the first run's
# entry no matter how many incremental updates followed (#1769).
from datetime import datetime, timezone
input_tok = new_extraction.get('input_tokens', 0)
output_tok = new_extraction.get('output_tokens', 0)

cost_path = Path('graphify-out/cost.json')
if cost_path.exists():
cost = json.loads(cost_path.read_text(encoding=\"utf-8\"))
else:
cost = {'runs': [], 'total_input_tokens': 0, 'total_output_tokens': 0}

cost['runs'].append({
'date': datetime.now(timezone.utc).isoformat(),
'input_tokens': input_tok,
'output_tokens': output_tok,
'files': incremental.get('new_total', 0),
})
cost['total_input_tokens'] += input_tok
cost['total_output_tokens'] += output_tok
cost_path.write_text(json.dumps(cost, indent=2, ensure_ascii=False), encoding=\"utf-8\")
print(f'[graphify update] This run: {input_tok:,} input tokens, {output_tok:,} output tokens')
print(f'[graphify update] All time: {cost[\"total_input_tokens\"]:,} input, {cost[\"total_output_tokens\"]:,} output ({len(cost[\"runs\"])} runs)')
"
```

Expand Down
26 changes: 26 additions & 0 deletions graphify/skills/claw/references/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,32 @@ print(f'[graphify update] Merged extraction written ({len(merged_out[\"nodes\"])
# cached files instead of missing every one after a move (#1417).
save_manifest(incremental['files'], root='INPUT_PATH')
print('[graphify update] Manifest saved.')

# Append this run to the cumulative cost tracker. The initial full build
# (core skill Step 8) does this, but --update has its own extraction path
# and skipped it entirely, so cost.json only ever held the first run's
# entry no matter how many incremental updates followed (#1769).
from datetime import datetime, timezone
input_tok = new_extraction.get('input_tokens', 0)
output_tok = new_extraction.get('output_tokens', 0)

cost_path = Path('graphify-out/cost.json')
if cost_path.exists():
cost = json.loads(cost_path.read_text(encoding=\"utf-8\"))
else:
cost = {'runs': [], 'total_input_tokens': 0, 'total_output_tokens': 0}

cost['runs'].append({
'date': datetime.now(timezone.utc).isoformat(),
'input_tokens': input_tok,
'output_tokens': output_tok,
'files': incremental.get('new_total', 0),
})
cost['total_input_tokens'] += input_tok
cost['total_output_tokens'] += output_tok
cost_path.write_text(json.dumps(cost, indent=2, ensure_ascii=False), encoding=\"utf-8\")
print(f'[graphify update] This run: {input_tok:,} input tokens, {output_tok:,} output tokens')
print(f'[graphify update] All time: {cost[\"total_input_tokens\"]:,} input, {cost[\"total_output_tokens\"]:,} output ({len(cost[\"runs\"])} runs)')
"
```

Expand Down
26 changes: 26 additions & 0 deletions graphify/skills/codex/references/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,32 @@ print(f'[graphify update] Merged extraction written ({len(merged_out[\"nodes\"])
# cached files instead of missing every one after a move (#1417).
save_manifest(incremental['files'], root='INPUT_PATH')
print('[graphify update] Manifest saved.')

# Append this run to the cumulative cost tracker. The initial full build
# (core skill Step 8) does this, but --update has its own extraction path
# and skipped it entirely, so cost.json only ever held the first run's
# entry no matter how many incremental updates followed (#1769).
from datetime import datetime, timezone
input_tok = new_extraction.get('input_tokens', 0)
output_tok = new_extraction.get('output_tokens', 0)

cost_path = Path('graphify-out/cost.json')
if cost_path.exists():
cost = json.loads(cost_path.read_text(encoding=\"utf-8\"))
else:
cost = {'runs': [], 'total_input_tokens': 0, 'total_output_tokens': 0}

cost['runs'].append({
'date': datetime.now(timezone.utc).isoformat(),
'input_tokens': input_tok,
'output_tokens': output_tok,
'files': incremental.get('new_total', 0),
})
cost['total_input_tokens'] += input_tok
cost['total_output_tokens'] += output_tok
cost_path.write_text(json.dumps(cost, indent=2, ensure_ascii=False), encoding=\"utf-8\")
print(f'[graphify update] This run: {input_tok:,} input tokens, {output_tok:,} output tokens')
print(f'[graphify update] All time: {cost[\"total_input_tokens\"]:,} input, {cost[\"total_output_tokens\"]:,} output ({len(cost[\"runs\"])} runs)')
"
```

Expand Down
26 changes: 26 additions & 0 deletions graphify/skills/copilot/references/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,32 @@ print(f'[graphify update] Merged extraction written ({len(merged_out[\"nodes\"])
# cached files instead of missing every one after a move (#1417).
save_manifest(incremental['files'], root='INPUT_PATH')
print('[graphify update] Manifest saved.')

# Append this run to the cumulative cost tracker. The initial full build
# (core skill Step 8) does this, but --update has its own extraction path
# and skipped it entirely, so cost.json only ever held the first run's
# entry no matter how many incremental updates followed (#1769).
from datetime import datetime, timezone
input_tok = new_extraction.get('input_tokens', 0)
output_tok = new_extraction.get('output_tokens', 0)

cost_path = Path('graphify-out/cost.json')
if cost_path.exists():
cost = json.loads(cost_path.read_text(encoding=\"utf-8\"))
else:
cost = {'runs': [], 'total_input_tokens': 0, 'total_output_tokens': 0}

cost['runs'].append({
'date': datetime.now(timezone.utc).isoformat(),
'input_tokens': input_tok,
'output_tokens': output_tok,
'files': incremental.get('new_total', 0),
})
cost['total_input_tokens'] += input_tok
cost['total_output_tokens'] += output_tok
cost_path.write_text(json.dumps(cost, indent=2, ensure_ascii=False), encoding=\"utf-8\")
print(f'[graphify update] This run: {input_tok:,} input tokens, {output_tok:,} output tokens')
print(f'[graphify update] All time: {cost[\"total_input_tokens\"]:,} input, {cost[\"total_output_tokens\"]:,} output ({len(cost[\"runs\"])} runs)')
"
```

Expand Down
26 changes: 26 additions & 0 deletions graphify/skills/droid/references/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,32 @@ print(f'[graphify update] Merged extraction written ({len(merged_out[\"nodes\"])
# cached files instead of missing every one after a move (#1417).
save_manifest(incremental['files'], root='INPUT_PATH')
print('[graphify update] Manifest saved.')

# Append this run to the cumulative cost tracker. The initial full build
# (core skill Step 8) does this, but --update has its own extraction path
# and skipped it entirely, so cost.json only ever held the first run's
# entry no matter how many incremental updates followed (#1769).
from datetime import datetime, timezone
input_tok = new_extraction.get('input_tokens', 0)
output_tok = new_extraction.get('output_tokens', 0)

cost_path = Path('graphify-out/cost.json')
if cost_path.exists():
cost = json.loads(cost_path.read_text(encoding=\"utf-8\"))
else:
cost = {'runs': [], 'total_input_tokens': 0, 'total_output_tokens': 0}

cost['runs'].append({
'date': datetime.now(timezone.utc).isoformat(),
'input_tokens': input_tok,
'output_tokens': output_tok,
'files': incremental.get('new_total', 0),
})
cost['total_input_tokens'] += input_tok
cost['total_output_tokens'] += output_tok
cost_path.write_text(json.dumps(cost, indent=2, ensure_ascii=False), encoding=\"utf-8\")
print(f'[graphify update] This run: {input_tok:,} input tokens, {output_tok:,} output tokens')
print(f'[graphify update] All time: {cost[\"total_input_tokens\"]:,} input, {cost[\"total_output_tokens\"]:,} output ({len(cost[\"runs\"])} runs)')
"
```

Expand Down
26 changes: 26 additions & 0 deletions graphify/skills/kilo/references/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,32 @@ print(f'[graphify update] Merged extraction written ({len(merged_out[\"nodes\"])
# cached files instead of missing every one after a move (#1417).
save_manifest(incremental['files'], root='INPUT_PATH')
print('[graphify update] Manifest saved.')

# Append this run to the cumulative cost tracker. The initial full build
# (core skill Step 8) does this, but --update has its own extraction path
# and skipped it entirely, so cost.json only ever held the first run's
# entry no matter how many incremental updates followed (#1769).
from datetime import datetime, timezone
input_tok = new_extraction.get('input_tokens', 0)
output_tok = new_extraction.get('output_tokens', 0)

cost_path = Path('graphify-out/cost.json')
if cost_path.exists():
cost = json.loads(cost_path.read_text(encoding=\"utf-8\"))
else:
cost = {'runs': [], 'total_input_tokens': 0, 'total_output_tokens': 0}

cost['runs'].append({
'date': datetime.now(timezone.utc).isoformat(),
'input_tokens': input_tok,
'output_tokens': output_tok,
'files': incremental.get('new_total', 0),
})
cost['total_input_tokens'] += input_tok
cost['total_output_tokens'] += output_tok
cost_path.write_text(json.dumps(cost, indent=2, ensure_ascii=False), encoding=\"utf-8\")
print(f'[graphify update] This run: {input_tok:,} input tokens, {output_tok:,} output tokens')
print(f'[graphify update] All time: {cost[\"total_input_tokens\"]:,} input, {cost[\"total_output_tokens\"]:,} output ({len(cost[\"runs\"])} runs)')
"
```

Expand Down
26 changes: 26 additions & 0 deletions graphify/skills/kiro/references/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,32 @@ print(f'[graphify update] Merged extraction written ({len(merged_out[\"nodes\"])
# cached files instead of missing every one after a move (#1417).
save_manifest(incremental['files'], root='INPUT_PATH')
print('[graphify update] Manifest saved.')

# Append this run to the cumulative cost tracker. The initial full build
# (core skill Step 8) does this, but --update has its own extraction path
# and skipped it entirely, so cost.json only ever held the first run's
# entry no matter how many incremental updates followed (#1769).
from datetime import datetime, timezone
input_tok = new_extraction.get('input_tokens', 0)
output_tok = new_extraction.get('output_tokens', 0)

cost_path = Path('graphify-out/cost.json')
if cost_path.exists():
cost = json.loads(cost_path.read_text(encoding=\"utf-8\"))
else:
cost = {'runs': [], 'total_input_tokens': 0, 'total_output_tokens': 0}

cost['runs'].append({
'date': datetime.now(timezone.utc).isoformat(),
'input_tokens': input_tok,
'output_tokens': output_tok,
'files': incremental.get('new_total', 0),
})
cost['total_input_tokens'] += input_tok
cost['total_output_tokens'] += output_tok
cost_path.write_text(json.dumps(cost, indent=2, ensure_ascii=False), encoding=\"utf-8\")
print(f'[graphify update] This run: {input_tok:,} input tokens, {output_tok:,} output tokens')
print(f'[graphify update] All time: {cost[\"total_input_tokens\"]:,} input, {cost[\"total_output_tokens\"]:,} output ({len(cost[\"runs\"])} runs)')
"
```

Expand Down
26 changes: 26 additions & 0 deletions graphify/skills/opencode/references/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,32 @@ print(f'[graphify update] Merged extraction written ({len(merged_out[\"nodes\"])
# cached files instead of missing every one after a move (#1417).
save_manifest(incremental['files'], root='INPUT_PATH')
print('[graphify update] Manifest saved.')

# Append this run to the cumulative cost tracker. The initial full build
# (core skill Step 8) does this, but --update has its own extraction path
# and skipped it entirely, so cost.json only ever held the first run's
# entry no matter how many incremental updates followed (#1769).
from datetime import datetime, timezone
input_tok = new_extraction.get('input_tokens', 0)
output_tok = new_extraction.get('output_tokens', 0)

cost_path = Path('graphify-out/cost.json')
if cost_path.exists():
cost = json.loads(cost_path.read_text(encoding=\"utf-8\"))
else:
cost = {'runs': [], 'total_input_tokens': 0, 'total_output_tokens': 0}

cost['runs'].append({
'date': datetime.now(timezone.utc).isoformat(),
'input_tokens': input_tok,
'output_tokens': output_tok,
'files': incremental.get('new_total', 0),
})
cost['total_input_tokens'] += input_tok
cost['total_output_tokens'] += output_tok
cost_path.write_text(json.dumps(cost, indent=2, ensure_ascii=False), encoding=\"utf-8\")
print(f'[graphify update] This run: {input_tok:,} input tokens, {output_tok:,} output tokens')
print(f'[graphify update] All time: {cost[\"total_input_tokens\"]:,} input, {cost[\"total_output_tokens\"]:,} output ({len(cost[\"runs\"])} runs)')
"
```

Expand Down
26 changes: 26 additions & 0 deletions graphify/skills/pi/references/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,32 @@ print(f'[graphify update] Merged extraction written ({len(merged_out[\"nodes\"])
# cached files instead of missing every one after a move (#1417).
save_manifest(incremental['files'], root='INPUT_PATH')
print('[graphify update] Manifest saved.')

# Append this run to the cumulative cost tracker. The initial full build
# (core skill Step 8) does this, but --update has its own extraction path
# and skipped it entirely, so cost.json only ever held the first run's
# entry no matter how many incremental updates followed (#1769).
from datetime import datetime, timezone
input_tok = new_extraction.get('input_tokens', 0)
output_tok = new_extraction.get('output_tokens', 0)

cost_path = Path('graphify-out/cost.json')
if cost_path.exists():
cost = json.loads(cost_path.read_text(encoding=\"utf-8\"))
else:
cost = {'runs': [], 'total_input_tokens': 0, 'total_output_tokens': 0}

cost['runs'].append({
'date': datetime.now(timezone.utc).isoformat(),
'input_tokens': input_tok,
'output_tokens': output_tok,
'files': incremental.get('new_total', 0),
})
cost['total_input_tokens'] += input_tok
cost['total_output_tokens'] += output_tok
cost_path.write_text(json.dumps(cost, indent=2, ensure_ascii=False), encoding=\"utf-8\")
print(f'[graphify update] This run: {input_tok:,} input tokens, {output_tok:,} output tokens')
print(f'[graphify update] All time: {cost[\"total_input_tokens\"]:,} input, {cost[\"total_output_tokens\"]:,} output ({len(cost[\"runs\"])} runs)')
"
```

Expand Down
26 changes: 26 additions & 0 deletions graphify/skills/trae/references/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,32 @@ print(f'[graphify update] Merged extraction written ({len(merged_out[\"nodes\"])
# cached files instead of missing every one after a move (#1417).
save_manifest(incremental['files'], root='INPUT_PATH')
print('[graphify update] Manifest saved.')

# Append this run to the cumulative cost tracker. The initial full build
# (core skill Step 8) does this, but --update has its own extraction path
# and skipped it entirely, so cost.json only ever held the first run's
# entry no matter how many incremental updates followed (#1769).
from datetime import datetime, timezone
input_tok = new_extraction.get('input_tokens', 0)
output_tok = new_extraction.get('output_tokens', 0)

cost_path = Path('graphify-out/cost.json')
if cost_path.exists():
cost = json.loads(cost_path.read_text(encoding=\"utf-8\"))
else:
cost = {'runs': [], 'total_input_tokens': 0, 'total_output_tokens': 0}

cost['runs'].append({
'date': datetime.now(timezone.utc).isoformat(),
'input_tokens': input_tok,
'output_tokens': output_tok,
'files': incremental.get('new_total', 0),
})
cost['total_input_tokens'] += input_tok
cost['total_output_tokens'] += output_tok
cost_path.write_text(json.dumps(cost, indent=2, ensure_ascii=False), encoding=\"utf-8\")
print(f'[graphify update] This run: {input_tok:,} input tokens, {output_tok:,} output tokens')
print(f'[graphify update] All time: {cost[\"total_input_tokens\"]:,} input, {cost[\"total_output_tokens\"]:,} output ({len(cost[\"runs\"])} runs)')
"
```

Expand Down
Loading