Files
microdao-daarion/scripts/demo_spreadsheet.py
Apple ef3473db21 snapshot: NODE1 production state 2026-02-09
Complete snapshot of /opt/microdao-daarion/ from NODE1 (144.76.224.179).
This represents the actual running production code that has diverged
significantly from the previous main branch.

Key changes from old main:
- Gateway (http_api.py): expanded from ~40KB to 164KB with full agent support
- Router: new /v1/agents/{id}/infer endpoint with vision + DeepSeek routing
- Behavior Policy: SOWA v2.2 (3-level: FULL/ACK/SILENT)
- Agent Registry: config/agent_registry.yml as single source of truth
- 13 agents configured (was 3)
- Memory service integration
- CrewAI teams and roles

Excluded from snapshot: venv/, .env, data/, backups, .tgz archives

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-09 08:46:46 -08:00

17 lines
647 B
Python

import sys
from pathlib import Path
sys.path.insert(0, str(Path(__file__).resolve().parents[1] / 'packages' / 'agromatrix-tools'))
from agromatrix_tools import tool_spreadsheet
spec = {
"sheets": [
{"name": "FieldLog", "data": [["Field", "Date", "Yield"], ["A1", "2026-02-08", 120]]},
{"name": "Summary", "data": [["Metric", "Value"], ["Total Yield", "=SUM(FieldLog!C2:C2)"]]}
]
}
out_path = "artifacts/demo.xlsx"
print(tool_spreadsheet.create_workbook(out_path, spec))
print(tool_spreadsheet.apply_table(out_path, "FieldLog", "A1:C2", "FieldLogTable"))
print(tool_spreadsheet.read_range(out_path, "FieldLog", "A1:C2"))