makersclaw 0.7.0 → 0.8.1
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 +17 -4
- package/package.json +1 -1
- package/r/activity-log.json +52 -0
- package/r/agent-changes.json +51 -0
- package/r/agent-chat.json +53 -0
- package/r/agent-column.json +85 -0
- package/r/agent-dock.json +57 -0
- package/r/agent-kit.json +49 -0
- package/r/agent-marks.json +49 -0
- package/r/agent-pane.json +93 -0
- package/r/ai-action.json +56 -0
- package/r/annotate.json +4 -4
- package/r/approval-request.json +2 -2
- package/r/approval.json +54 -0
- package/r/ask-bar.json +50 -0
- package/r/audio-player.json +2 -2
- package/r/auth-form.json +2 -2
- package/r/automation-editor.json +66 -0
- package/r/automation-list.json +57 -0
- package/r/automation-model.json +118 -0
- package/r/automations-screen.json +71 -0
- package/r/board.json +2 -2
- package/r/calendar-view.json +3 -3
- package/r/cart.json +2 -2
- package/r/chart.json +5 -5
- package/r/chat-pane.json +84 -0
- package/r/chat.json +3 -3
- package/r/code-editor.json +2 -2
- package/r/comment-box.json +3 -3
- package/r/connect-card.json +51 -0
- package/r/contact-section.json +2 -2
- package/r/core.json +18 -6
- package/r/cost.json +51 -0
- package/r/csv-import.json +3 -3
- package/r/data-picker.json +60 -0
- package/r/data-table.json +2 -2
- package/r/diagram.json +2 -2
- package/r/doc-editor.json +2 -2
- package/r/doc-page.json +3 -3
- package/r/email-render.json +2 -2
- package/r/faq.json +2 -2
- package/r/file-upload.json +2 -2
- package/r/first-run.json +63 -0
- package/r/fix-note.json +57 -0
- package/r/flow-canvas.json +3 -3
- package/r/flow-editor.json +79 -0
- package/r/footer.json +3 -3
- package/r/gantt.json +3 -3
- package/r/job-panel.json +2 -2
- package/r/json-editor.json +3 -3
- package/r/library-shelf.json +56 -0
- package/r/map.json +2 -2
- package/r/margin-notes.json +67 -0
- package/r/menubar.json +2 -2
- package/r/mind-map.json +4 -4
- package/r/navigation-menu.json +2 -2
- package/r/needs-you.json +55 -0
- package/r/order-detail.json +2 -2
- package/r/org-chart.json +4 -4
- package/r/pace-bar.json +69 -0
- package/r/page-builder.json +3 -3
- package/r/payment-methods.json +2 -2
- package/r/pdf-document.json +2 -2
- package/r/pdf-viewer.json +3 -3
- package/r/product-detail.json +2 -2
- package/r/product-grid.json +3 -3
- package/r/record-form.json +2 -2
- package/r/record-grid.json +52 -0
- package/r/record-notes.json +4 -4
- package/r/registry.json +4089 -1510
- package/r/run-history.json +52 -0
- package/r/run-view.json +80 -0
- package/r/schedule-card.json +54 -0
- package/r/schedule-engine.json +79 -0
- package/r/schedule-gantt.json +83 -0
- package/r/schedule-ruler.json +64 -0
- package/r/search-dialog.json +2 -2
- package/r/settings-list.json +2 -2
- package/r/setup-checklist.json +2 -2
- package/r/share-dialog.json +2 -2
- package/r/sidebar.json +3 -3
- package/r/signature-pad.json +2 -2
- package/r/sketch-canvas.json +3 -3
- package/r/source-receipt.json +52 -0
- package/r/spreadsheet.json +3 -3
- package/r/stat-cards.json +3 -3
- package/r/step-picker.json +53 -0
- package/r/step-settings.json +72 -0
- package/r/suggestion.json +58 -0
- package/r/sum-bar.json +64 -0
- package/r/task-list.json +3 -3
- package/r/task-model.json +2 -2
- package/r/testimonials.json +2 -2
- package/r/tier-map.json +67 -0
- package/r/time-grid.json +73 -0
- package/r/time-strip.json +64 -0
- package/r/top-bar.json +66 -0
- package/r/transaction-list.json +2 -2
- package/r/trigger-picker.json +61 -0
- package/r/whiteboard.json +4 -4
- package/r/workflow-view.json +55 -0
- package/registry/blocks/activity-log/README.md +112 -0
- package/registry/blocks/activity-log/activity-log.jsx +351 -0
- package/registry/blocks/activity-log/block.json +33 -0
- package/registry/blocks/activity-log/demo.jsx +48 -0
- package/registry/blocks/activity-log/index.js +4 -0
- package/registry/blocks/agent-changes/README.md +94 -0
- package/registry/blocks/agent-changes/agent-changes.jsx +118 -0
- package/registry/blocks/agent-changes/block.json +28 -0
- package/registry/blocks/agent-changes/demo.jsx +39 -0
- package/registry/blocks/agent-changes/index.js +3 -0
- package/registry/blocks/agent-chat/README.md +145 -0
- package/registry/blocks/agent-chat/agent-chat.jsx +415 -0
- package/registry/blocks/agent-chat/block.json +30 -0
- package/registry/blocks/agent-chat/demo.jsx +165 -0
- package/registry/blocks/agent-chat/index.js +3 -0
- package/registry/blocks/agent-column/README.md +197 -0
- package/registry/blocks/agent-column/agent-column.jsx +492 -0
- package/registry/blocks/agent-column/block.json +67 -0
- package/registry/blocks/agent-column/column-picker.jsx +163 -0
- package/registry/blocks/agent-column/demo.jsx +50 -0
- package/registry/blocks/agent-column/index.js +7 -0
- package/registry/blocks/agent-column/model.js +164 -0
- package/registry/blocks/agent-column/receipt.jsx +483 -0
- package/registry/blocks/agent-column/spreadsheet-type.jsx +24 -0
- package/registry/blocks/agent-dock/README.md +210 -0
- package/registry/blocks/agent-dock/agent-dock.jsx +356 -0
- package/registry/blocks/agent-dock/block.json +47 -0
- package/registry/blocks/agent-dock/demo.jsx +153 -0
- package/registry/blocks/agent-dock/dock-model.js +118 -0
- package/registry/blocks/agent-dock/index.js +5 -0
- package/registry/blocks/agent-kit/README.md +73 -0
- package/registry/blocks/agent-kit/agent-kit.jsx +86 -0
- package/registry/blocks/agent-kit/block.json +10 -0
- package/registry/blocks/agent-kit/demo.jsx +35 -0
- package/registry/blocks/agent-kit/index.js +3 -0
- package/registry/blocks/agent-marks/README.md +80 -0
- package/registry/blocks/agent-marks/agent-marks.jsx +133 -0
- package/registry/blocks/agent-marks/block.json +27 -0
- package/registry/blocks/agent-marks/demo.jsx +49 -0
- package/registry/blocks/agent-marks/index.js +3 -0
- package/registry/blocks/agent-pane/README.md +225 -0
- package/registry/blocks/agent-pane/agent-pane.jsx +244 -0
- package/registry/blocks/agent-pane/block.json +41 -0
- package/registry/blocks/agent-pane/composer.jsx +6 -0
- package/registry/blocks/agent-pane/demo.jsx +233 -0
- package/registry/blocks/agent-pane/dock-context.js +10 -0
- package/registry/blocks/agent-pane/index.js +4 -0
- package/registry/blocks/agent-pane/prose.jsx +84 -0
- package/registry/blocks/agent-pane/questions.jsx +134 -0
- package/registry/blocks/agent-pane/transcript.jsx +268 -0
- package/registry/blocks/agent-pane/work.jsx +368 -0
- package/registry/blocks/ai-action/README.md +94 -0
- package/registry/blocks/ai-action/ai-action.jsx +188 -0
- package/registry/blocks/ai-action/block.json +34 -0
- package/registry/blocks/ai-action/demo.jsx +93 -0
- package/registry/blocks/ai-action/index.js +3 -0
- package/registry/blocks/annotate/README.md +14 -11
- package/registry/blocks/approval/README.md +145 -0
- package/registry/blocks/approval/approval.jsx +163 -0
- package/registry/blocks/approval/block.json +31 -0
- package/registry/blocks/approval/demo.jsx +121 -0
- package/registry/blocks/approval/index.js +3 -0
- package/registry/blocks/ask-bar/README.md +105 -0
- package/registry/blocks/ask-bar/ask-bar.jsx +166 -0
- package/registry/blocks/ask-bar/block.json +26 -0
- package/registry/blocks/ask-bar/demo.jsx +78 -0
- package/registry/blocks/ask-bar/index.js +3 -0
- package/registry/blocks/automation-editor/README.md +291 -0
- package/registry/blocks/automation-editor/automation-editor.jsx +656 -0
- package/registry/blocks/automation-editor/block.json +39 -0
- package/registry/blocks/automation-editor/demo.jsx +284 -0
- package/registry/blocks/automation-editor/index.js +4 -0
- package/registry/blocks/automation-editor/run-inputs.jsx +82 -0
- package/registry/blocks/automation-list/README.md +129 -0
- package/registry/blocks/automation-list/automation-list.jsx +476 -0
- package/registry/blocks/automation-list/block.json +35 -0
- package/registry/blocks/automation-list/demo.jsx +67 -0
- package/registry/blocks/automation-list/index.js +3 -0
- package/registry/blocks/automation-model/README.md +109 -0
- package/registry/blocks/automation-model/block.json +135 -0
- package/registry/blocks/automation-model/catalog.js +256 -0
- package/registry/blocks/automation-model/check.js +161 -0
- package/registry/blocks/automation-model/demo.jsx +42 -0
- package/registry/blocks/automation-model/edit.js +262 -0
- package/registry/blocks/automation-model/fixes.js +287 -0
- package/registry/blocks/automation-model/glyph.jsx +13 -0
- package/registry/blocks/automation-model/graph.js +410 -0
- package/registry/blocks/automation-model/index.js +33 -0
- package/registry/blocks/automation-model/overlay.js +175 -0
- package/registry/blocks/automation-model/parts.jsx +94 -0
- package/registry/blocks/automation-model/schedule.js +53 -0
- package/registry/blocks/automation-model/templates.js +128 -0
- package/registry/blocks/automation-model/values.js +29 -0
- package/registry/blocks/automation-model/words.js +439 -0
- package/registry/blocks/automations-screen/README.md +207 -0
- package/registry/blocks/automations-screen/automations-screen.jsx +452 -0
- package/registry/blocks/automations-screen/block.json +47 -0
- package/registry/blocks/automations-screen/demo.jsx +364 -0
- package/registry/blocks/automations-screen/index.js +4 -0
- package/registry/blocks/automations-screen/screen-model.js +129 -0
- package/registry/blocks/chart/cartesian.jsx +1 -1
- package/registry/blocks/chart/core.jsx +33 -23
- package/registry/blocks/chart/pie.jsx +1 -1
- package/registry/blocks/chat/README.md +4 -1
- package/registry/blocks/chat/demo.jsx +2 -2
- package/registry/blocks/chat-pane/README.md +143 -0
- package/registry/blocks/chat-pane/block.json +48 -0
- package/registry/blocks/chat-pane/chat-attach.js +166 -0
- package/registry/blocks/chat-pane/chat-composer.jsx +195 -0
- package/registry/blocks/chat-pane/chat-context.js +17 -0
- package/registry/blocks/chat-pane/chat-model.js +43 -0
- package/registry/blocks/chat-pane/chat-pane.jsx +398 -0
- package/registry/blocks/chat-pane/chats-list.jsx +52 -0
- package/registry/blocks/chat-pane/demo.jsx +103 -0
- package/registry/blocks/chat-pane/index.js +9 -0
- package/registry/blocks/connect-card/README.md +99 -0
- package/registry/blocks/connect-card/block.json +10 -0
- package/registry/blocks/connect-card/connect-card.jsx +103 -0
- package/registry/blocks/connect-card/demo.jsx +49 -0
- package/registry/blocks/connect-card/index.js +3 -0
- package/registry/blocks/cost/README.md +115 -0
- package/registry/blocks/cost/block.json +10 -0
- package/registry/blocks/cost/cost.jsx +176 -0
- package/registry/blocks/cost/demo.jsx +66 -0
- package/registry/blocks/cost/index.js +3 -0
- package/registry/blocks/data-picker/README.md +81 -0
- package/registry/blocks/data-picker/block.json +38 -0
- package/registry/blocks/data-picker/data-picker.jsx +210 -0
- package/registry/blocks/data-picker/demo.jsx +34 -0
- package/registry/blocks/data-picker/fields.js +89 -0
- package/registry/blocks/data-picker/index.js +4 -0
- package/registry/blocks/data-table/demo.jsx +1 -1
- package/registry/blocks/first-run/README.md +118 -0
- package/registry/blocks/first-run/block.json +11 -0
- package/registry/blocks/first-run/demo.jsx +88 -0
- package/registry/blocks/first-run/first-run-model.js +51 -0
- package/registry/blocks/first-run/first-run.jsx +156 -0
- package/registry/blocks/first-run/index.js +5 -0
- package/registry/blocks/first-run/probe-rules.js +26 -0
- package/registry/blocks/fix-note/README.md +79 -0
- package/registry/blocks/fix-note/block.json +35 -0
- package/registry/blocks/fix-note/demo.jsx +30 -0
- package/registry/blocks/fix-note/fix-note.jsx +235 -0
- package/registry/blocks/fix-note/index.js +3 -0
- package/registry/blocks/flow-canvas/README.md +15 -8
- package/registry/blocks/flow-editor/README.md +108 -0
- package/registry/blocks/flow-editor/block.json +44 -0
- package/registry/blocks/flow-editor/demo.jsx +115 -0
- package/registry/blocks/flow-editor/flow-canvas.jsx +568 -0
- package/registry/blocks/flow-editor/flow-editor.jsx +154 -0
- package/registry/blocks/flow-editor/index.js +6 -0
- package/registry/blocks/flow-editor/minimap.jsx +78 -0
- package/registry/blocks/flow-editor/outline.jsx +134 -0
- package/registry/blocks/footer/README.md +3 -2
- package/registry/blocks/library-shelf/README.md +117 -0
- package/registry/blocks/library-shelf/block.json +28 -0
- package/registry/blocks/library-shelf/demo.jsx +68 -0
- package/registry/blocks/library-shelf/index.js +3 -0
- package/registry/blocks/library-shelf/library-shelf.jsx +211 -0
- package/registry/blocks/library-shelf/probe-rules.js +15 -0
- package/registry/blocks/margin-notes/README.md +222 -0
- package/registry/blocks/margin-notes/block.json +10 -0
- package/registry/blocks/margin-notes/demo.jsx +144 -0
- package/registry/blocks/margin-notes/index.js +20 -0
- package/registry/blocks/margin-notes/margin-model.js +224 -0
- package/registry/blocks/margin-notes/margin-notes.jsx +465 -0
- package/registry/blocks/mind-map/README.md +4 -2
- package/registry/blocks/needs-you/README.md +177 -0
- package/registry/blocks/needs-you/block.json +34 -0
- package/registry/blocks/needs-you/demo.jsx +143 -0
- package/registry/blocks/needs-you/index.js +3 -0
- package/registry/blocks/needs-you/needs-you.jsx +441 -0
- package/registry/blocks/org-chart/README.md +4 -2
- package/registry/blocks/pace-bar/README.md +230 -0
- package/registry/blocks/pace-bar/block.json +10 -0
- package/registry/blocks/pace-bar/demo.jsx +255 -0
- package/registry/blocks/pace-bar/index.js +22 -0
- package/registry/blocks/pace-bar/pace-bar.jsx +461 -0
- package/registry/blocks/pace-bar/pace-model.js +288 -0
- package/registry/blocks/page-builder/README.md +1 -1
- package/registry/blocks/page-builder/demo.jsx +3 -3
- package/registry/blocks/pdf-viewer/README.md +4 -1
- package/registry/blocks/record-grid/README.md +100 -0
- package/registry/blocks/record-grid/block.json +28 -0
- package/registry/blocks/record-grid/demo.jsx +43 -0
- package/registry/blocks/record-grid/index.js +3 -0
- package/registry/blocks/record-grid/record-grid.jsx +251 -0
- package/registry/blocks/run-history/README.md +138 -0
- package/registry/blocks/run-history/block.json +10 -0
- package/registry/blocks/run-history/demo.jsx +74 -0
- package/registry/blocks/run-history/index.js +3 -0
- package/registry/blocks/run-history/run-history.jsx +218 -0
- package/registry/blocks/run-view/README.md +174 -0
- package/registry/blocks/run-view/block.json +50 -0
- package/registry/blocks/run-view/demo.jsx +286 -0
- package/registry/blocks/run-view/index.js +5 -0
- package/registry/blocks/run-view/run-controls.jsx +266 -0
- package/registry/blocks/run-view/run-view.jsx +236 -0
- package/registry/blocks/run-view/runs-list.jsx +99 -0
- package/registry/blocks/schedule-card/README.md +121 -0
- package/registry/blocks/schedule-card/block.json +10 -0
- package/registry/blocks/schedule-card/demo.jsx +82 -0
- package/registry/blocks/schedule-card/index.js +3 -0
- package/registry/blocks/schedule-card/schedule-card.jsx +136 -0
- package/registry/blocks/schedule-engine/README.md +137 -0
- package/registry/blocks/schedule-engine/block.json +10 -0
- package/registry/blocks/schedule-engine/demo.jsx +82 -0
- package/registry/blocks/schedule-engine/engine.js +769 -0
- package/registry/blocks/schedule-engine/index.js +9 -0
- package/registry/blocks/schedule-engine/ops.js +71 -0
- package/registry/blocks/schedule-engine/place.js +294 -0
- package/registry/blocks/schedule-engine/tree.js +79 -0
- package/registry/blocks/schedule-engine/waits.js +80 -0
- package/registry/blocks/schedule-gantt/README.md +159 -0
- package/registry/blocks/schedule-gantt/block.json +10 -0
- package/registry/blocks/schedule-gantt/demo.jsx +223 -0
- package/registry/blocks/schedule-gantt/gantt-model.js +219 -0
- package/registry/blocks/schedule-gantt/geometry.js +176 -0
- package/registry/blocks/schedule-gantt/index.js +26 -0
- package/registry/blocks/schedule-gantt/schedule-gantt.jsx +882 -0
- package/registry/blocks/schedule-gantt/sheet.jsx +372 -0
- package/registry/blocks/schedule-gantt/track.jsx +190 -0
- package/registry/blocks/schedule-ruler/README.md +148 -0
- package/registry/blocks/schedule-ruler/block.json +10 -0
- package/registry/blocks/schedule-ruler/demo.jsx +181 -0
- package/registry/blocks/schedule-ruler/index.js +21 -0
- package/registry/blocks/schedule-ruler/ruler-model.js +239 -0
- package/registry/blocks/schedule-ruler/schedule-ruler.jsx +548 -0
- package/registry/blocks/sidebar/README.md +23 -13
- package/registry/blocks/sketch-canvas/README.md +15 -9
- package/registry/blocks/source-receipt/README.md +97 -0
- package/registry/blocks/source-receipt/block.json +30 -0
- package/registry/blocks/source-receipt/demo.jsx +71 -0
- package/registry/blocks/source-receipt/index.js +3 -0
- package/registry/blocks/source-receipt/source-receipt.jsx +107 -0
- package/registry/blocks/spreadsheet/spreadsheet.jsx +15 -1
- package/registry/blocks/step-picker/README.md +78 -0
- package/registry/blocks/step-picker/block.json +31 -0
- package/registry/blocks/step-picker/demo.jsx +23 -0
- package/registry/blocks/step-picker/index.js +3 -0
- package/registry/blocks/step-picker/step-picker.jsx +144 -0
- package/registry/blocks/step-settings/README.md +100 -0
- package/registry/blocks/step-settings/block.json +44 -0
- package/registry/blocks/step-settings/demo.jsx +93 -0
- package/registry/blocks/step-settings/fields.jsx +58 -0
- package/registry/blocks/step-settings/flow-settings.jsx +115 -0
- package/registry/blocks/step-settings/index.js +5 -0
- package/registry/blocks/step-settings/step-settings.jsx +290 -0
- package/registry/blocks/suggestion/README.md +171 -0
- package/registry/blocks/suggestion/block.json +40 -0
- package/registry/blocks/suggestion/demo.jsx +91 -0
- package/registry/blocks/suggestion/index.js +3 -0
- package/registry/blocks/suggestion/suggestion.jsx +436 -0
- package/registry/blocks/sum-bar/README.md +122 -0
- package/registry/blocks/sum-bar/block.json +10 -0
- package/registry/blocks/sum-bar/demo.jsx +110 -0
- package/registry/blocks/sum-bar/index.js +5 -0
- package/registry/blocks/sum-bar/sum-bar.jsx +209 -0
- package/registry/blocks/sum-bar/sum-model.js +126 -0
- package/registry/blocks/tier-map/README.md +217 -0
- package/registry/blocks/tier-map/block.json +10 -0
- package/registry/blocks/tier-map/demo.jsx +222 -0
- package/registry/blocks/tier-map/index.js +24 -0
- package/registry/blocks/tier-map/tier-map.jsx +574 -0
- package/registry/blocks/tier-map/tier-model.js +318 -0
- package/registry/blocks/time-grid/README.md +305 -0
- package/registry/blocks/time-grid/block.json +10 -0
- package/registry/blocks/time-grid/demo.jsx +279 -0
- package/registry/blocks/time-grid/grid-model.js +322 -0
- package/registry/blocks/time-grid/index.js +25 -0
- package/registry/blocks/time-grid/time-grid.jsx +1325 -0
- package/registry/blocks/time-strip/README.md +141 -0
- package/registry/blocks/time-strip/block.json +10 -0
- package/registry/blocks/time-strip/demo.jsx +129 -0
- package/registry/blocks/time-strip/index.js +19 -0
- package/registry/blocks/time-strip/strip-model.js +178 -0
- package/registry/blocks/time-strip/time-strip.jsx +260 -0
- package/registry/blocks/top-bar/README.md +149 -0
- package/registry/blocks/top-bar/block.json +35 -0
- package/registry/blocks/top-bar/demo.jsx +78 -0
- package/registry/blocks/top-bar/index.js +5 -0
- package/registry/blocks/top-bar/probe-rules.js +74 -0
- package/registry/blocks/top-bar/top-bar-model.js +152 -0
- package/registry/blocks/top-bar/top-bar.jsx +244 -0
- package/registry/blocks/trigger-picker/README.md +98 -0
- package/registry/blocks/trigger-picker/block.json +38 -0
- package/registry/blocks/trigger-picker/demo.jsx +59 -0
- package/registry/blocks/trigger-picker/index.js +3 -0
- package/registry/blocks/trigger-picker/trigger-picker.jsx +374 -0
- package/registry/blocks/whiteboard/README.md +20 -14
- package/registry/blocks/workflow-view/README.md +123 -0
- package/registry/blocks/workflow-view/block.json +10 -0
- package/registry/blocks/workflow-view/demo.jsx +90 -0
- package/registry/blocks/workflow-view/index.js +3 -0
- package/registry/blocks/workflow-view/workflow-view.jsx +203 -0
- package/src/cli.mjs +2 -2
- package/src/install.mjs +100 -22
- package/src/registry.mjs +37 -3
- package/templates/next/browser/lib/data.js +6 -1
- package/templates/next/files/README.md +909 -26
- package/templates/next/files/app/shell.jsx +54 -37
- package/templates/next/files/check/automation-format.ts +2103 -0
- package/templates/next/files/check/automation-package.ts +142 -0
- package/templates/next/files/check/run.mjs +1043 -12
- package/templates/next/files/components/ui/field.jsx +17 -4
- package/templates/next/files/components/ui/icon.jsx +13 -0
- package/templates/next/files/components/ui/index.js +3 -1
- package/templates/next/files/components/ui/layout.jsx +382 -0
- package/templates/next/files/components/ui/notice.jsx +70 -0
- package/templates/next/files/components/ui/page.jsx +124 -0
- package/templates/next/files/components/ui/stat.jsx +22 -7
- package/templates/next/files/components/ui/toast.jsx +6 -3
- package/templates/next/files/lib/automations.js +660 -0
- package/templates/next/files/lib/claw.js +244 -5
- package/templates/next/files/lib/door.js +92 -0
- package/templates/next/files/lib/hooks.js +1694 -6
- package/templates/next/files/lib/platform.js +611 -14
- package/templates/next/template.json +22 -3
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
# AgentColumn
|
|
2
|
+
|
|
3
|
+
A column an agent fills for every record, cell by cell, and a person
|
|
4
|
+
checks. Each answer says what state it is in (queued, waits for another
|
|
5
|
+
column, looking up, found, not found, two answers, can't fill, failed,
|
|
6
|
+
out of date, checked or typed by a person) and how sure the agent is,
|
|
7
|
+
as a mark that differs in shape, never colour alone: filled is **sure**,
|
|
8
|
+
half is **likely**, a dashed ring is a **guess**, a tick is a person's.
|
|
9
|
+
Its detail shows where the answer came from, the words on the page with
|
|
10
|
+
the answer marked in them, how it was found, both answers when two
|
|
11
|
+
sources disagree, what was tried when nothing was found, and what a
|
|
12
|
+
person can do about it.
|
|
13
|
+
|
|
14
|
+
Born in Data Enrichment (0.5.0), moved into the template with the app
|
|
15
|
+
kit (D15), written for any app whose agent fills or suggests values one
|
|
16
|
+
record at a time: a CRM filling in a contact, a base whose agent fills a
|
|
17
|
+
field or proposes a cleaner value, a research list. For one field on the
|
|
18
|
+
record you have open, use `suggestion`; for one source outside a column,
|
|
19
|
+
`source-receipt` (a clipping from this block).
|
|
20
|
+
|
|
21
|
+
```jsx
|
|
22
|
+
import { AnswerCell, AnswerDetail, ColumnHeader, ColumnPicker, SureLegend, summarizeAnswers } from "../components/blocks/agent-column"; // a Makersclaw app ("./blocks/agent-column" from components/)
|
|
23
|
+
import { AnswerCell } from "@/components/makersclaw/blocks/agent-column"; // a shadcn project
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Client components, plus server-safe helpers (`model.js`: `answerState`,
|
|
27
|
+
`answerWords`, `needsCheck`, `summarizeAnswers`, `progressWords`,
|
|
28
|
+
`markWords`, `shortUrl`). No npm packages. It requires `agent-marks`
|
|
29
|
+
(laid with it), whose diamond is the agent's mark here too.
|
|
30
|
+
|
|
31
|
+
## The answer
|
|
32
|
+
|
|
33
|
+
One plain object per cell. Map your rows into it; the block never reads
|
|
34
|
+
your database.
|
|
35
|
+
|
|
36
|
+
```js
|
|
37
|
+
{
|
|
38
|
+
id: "c-42",
|
|
39
|
+
status: "found", // queued · working · found · not_found · two_answers · failed · stale · suggested
|
|
40
|
+
value: "62", // the answer
|
|
41
|
+
detail: "51–200 on LinkedIn", // a line under it
|
|
42
|
+
link: "https://pennantpay.com", // a URL, when the answer is one
|
|
43
|
+
confidence: "likely", // sure · likely · guess
|
|
44
|
+
source: { url: "pennantpay.com/team", title: "Their team page", evidence: "62 people" },
|
|
45
|
+
other: { value: "70", detail: "in their own words", source: { url, title, evidence } }, // two_answers
|
|
46
|
+
note: "Read their LinkedIn page and their team page.", // how it was found; what was tried
|
|
47
|
+
tried: [{ title, url, evidence }], // what it read, for "not found"
|
|
48
|
+
flag: "may_not_fit", // your own word for "look at this" on a found answer
|
|
49
|
+
setBy: "agent", // "person": typed by a person, never overwritten
|
|
50
|
+
checked: false, // a person accepted it
|
|
51
|
+
looking: "reading klarwerk.de/team", // while working
|
|
52
|
+
waitsFor: ["Domain"], // queued, waiting for other columns
|
|
53
|
+
blockedBy: ["Head of Compliance"], // queued, needs a column that wasn't found
|
|
54
|
+
waitsForRow: false, // queued, reads the whole record and goes last
|
|
55
|
+
hint: "try their careers page", // the person's words when asking again
|
|
56
|
+
}
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
`null` is "not asked yet". `needsCheck(answer)` is the one rule for "a
|
|
60
|
+
person should look at this": not accepted, and not found, two answers,
|
|
61
|
+
failed, a guess, flagged, or a suggestion.
|
|
62
|
+
|
|
63
|
+
## The pieces
|
|
64
|
+
|
|
65
|
+
- **`AnswerCell`** `{ answer, type, onOpen, onRetry, lines, label }` —
|
|
66
|
+
the cell. `type` text · link · email · number · domain (the last four
|
|
67
|
+
in the mono face). `onOpen` makes it a button (open your detail);
|
|
68
|
+
`onRetry` adds "Try again" to a failed one. Two answers and flagged
|
|
69
|
+
answers get a warning tint. Use it in `data-table`'s `cell(row)`, in a
|
|
70
|
+
list, or through `answerColumnType` in a spreadsheet.
|
|
71
|
+
- **`SureMark`** `{ confidence, checked, typed }` and **`SureLegend`** —
|
|
72
|
+
the mark alone (`role="img"` with its word), and the key to the marks.
|
|
73
|
+
- **`ColumnHeader`** `{ name, progress, agent, note }` — the name and the
|
|
74
|
+
live line under it ("138 of 480 · 3 to check · 1 waiting", "to check"
|
|
75
|
+
in the warning tone). `progress` is `summarizeAnswers(answers, total)`.
|
|
76
|
+
`agent={false}` for a person's own column ("yours", or `note`).
|
|
77
|
+
- **`AnswerDetail`** — the answer in full, for your `Sheet`: `answer`,
|
|
78
|
+
`type`, `title` and `subtitle` (the record), `needs` (`[{ name, answer
|
|
79
|
+
}]`, what it read), `history` (`[{ at, words, credits }]`), `askCost`,
|
|
80
|
+
`placeholder`, `hintPlaceholder`, `note`, `busy`, `children` (your own
|
|
81
|
+
choices under it: a record's Keep / Skip / Remove). The actions show
|
|
82
|
+
when you pass their callback and the state allows them: `onAccept()`,
|
|
83
|
+
`onPick("one" | "other")`, `onType(value)`, `onAskAgain(hint)`,
|
|
84
|
+
`onKeepNotFound()`, `onKeep()` / `onDrop()` (a suggestion).
|
|
85
|
+
- **`Source`** `{ source, mark }` — a source's title and address, and its
|
|
86
|
+
words in the display face with `mark` highlighted where it appears.
|
|
87
|
+
- **`ColumnPicker`** — choose the columns to add: `recipes` (`[{ key,
|
|
88
|
+
name, description, credits, input?: "role" | "instructions", defaultRole,
|
|
89
|
+
defaultAsk, defaultExample, checked }]`), `rows` (for the total),
|
|
90
|
+
`heading`, `noun`, `unit`, `ownCredits`, `answerTypes`, `busy`,
|
|
91
|
+
`submitLabel(n)`, `onSubmit(chosen)` with `[{ recipe, name, ask,
|
|
92
|
+
example, answerType, options, credits }]`. It also offers "Your own
|
|
93
|
+
question" with the kind of answer.
|
|
94
|
+
- **`answerColumnType`** — the spreadsheet type (`types={{ answer:
|
|
95
|
+
answerColumnType }}`, a column `{ type: "answer", answerType }`). Typing
|
|
96
|
+
in the cell makes the value the person's (`setBy: "person"`).
|
|
97
|
+
|
|
98
|
+
## Example
|
|
99
|
+
|
|
100
|
+
```jsx
|
|
101
|
+
"use client";
|
|
102
|
+
import { DataTable } from "./blocks/data-table";
|
|
103
|
+
import { AnswerCell, ColumnHeader, summarizeAnswers } from "./blocks/agent-column";
|
|
104
|
+
|
|
105
|
+
export default function Companies({ rows, open }) {
|
|
106
|
+
const headcount = rows.map((r) => r.answers.headcount);
|
|
107
|
+
return (
|
|
108
|
+
<DataTable
|
|
109
|
+
rows={rows}
|
|
110
|
+
columns={[
|
|
111
|
+
{ key: "name", header: "Company" },
|
|
112
|
+
{
|
|
113
|
+
key: "headcount",
|
|
114
|
+
header: <ColumnHeader name="Headcount" progress={summarizeAnswers(headcount, rows.length)} />,
|
|
115
|
+
cell: (r) => <AnswerCell answer={r.answers.headcount} type="number" onOpen={() => open(r, "headcount")} label={`Headcount of ${r.name}`} />,
|
|
116
|
+
},
|
|
117
|
+
]}
|
|
118
|
+
/>
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
## The receipt (0.5.0, from Data Enrichment's v2 design)
|
|
124
|
+
|
|
125
|
+
A second way to draw the same answers, for a dense grid and a panel
|
|
126
|
+
beside it. Colours are the theme's slots, each with a shape and a word:
|
|
127
|
+
`chart-1` sure (filled dot), `chart-2` likely (half), `chart-3` guess
|
|
128
|
+
(dashed ring, never shown as verified), `success` a person's check (✓),
|
|
129
|
+
`chart-5` typed by a person (✎), `warning` two answers or a flag (split
|
|
130
|
+
square), `info` looking up (a bar), `destructive` failed (▲), muted for
|
|
131
|
+
queued, waiting, can't fill, not found and out of date.
|
|
132
|
+
|
|
133
|
+
```jsx
|
|
134
|
+
import { AnswerLine, JobHeader, Receipt, ReceiptActions, Clipping, TrustMark } from "./blocks/agent-column";
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
- **`AnswerLine`** `{ answer, onRetry, queuedWord }` — one line for a
|
|
138
|
+
32px cell: the value at the start, its trust at the end ("pennantpay.com
|
|
139
|
+
● sure", "62 ◐ ✓", "85 · 70 ▣ 2 answers", "⊘ not found", "◌ can't
|
|
140
|
+
fill · needs Head of Compliance", "▲ failed · didn't respond Try
|
|
141
|
+
again"). A flagged answer (`may_not_fit`, `left`) reads in the warning
|
|
142
|
+
tone.
|
|
143
|
+
- **`TrustMark`** `{ kind, word, check }` — the mark and its word:
|
|
144
|
+
`sure` · `likely` · `guess` · `two` · `warn` · `looking` · `wait` ·
|
|
145
|
+
`none` · `failed` · `typed` · `sent` · `stale` · `quiet`.
|
|
146
|
+
- **`AgentMark`** — the platform's agent mark (a filled diamond, from
|
|
147
|
+
`agent-marks`), re-exported here for what the agent did.
|
|
148
|
+
- **`JobHeader`** `{ name, agent, source, progress, part, cost, menu }` —
|
|
149
|
+
a column heading as a job: the mark and the name with its menu, then a
|
|
150
|
+
bar (`part` 0 to 1), the words ("21 of 22 · 3 to check") and the price
|
|
151
|
+
("40 cr/row"). `agent={false}` draws a person's column, `source` the line
|
|
152
|
+
under it ("yours · summit-leads.csv"; default "yours").
|
|
153
|
+
- **`Receipt`** `{ answer, title, question, where, onPick, pickWords,
|
|
154
|
+
picked, read, by, valueLabel, stateWords, leftTitle, busy, children }`
|
|
155
|
+
— the answer opened: its head, the value big with its state in words,
|
|
156
|
+
then the sources as clippings. Two answers are two clippings with Pick
|
|
157
|
+
on each; a person who left shows the page that says so and, under
|
|
158
|
+
`leftTitle`, who holds the role now; not found and failed list what was
|
|
159
|
+
tried, crossed off. `children` go under it (your actions).
|
|
160
|
+
- **`Clipping`** `{ source: { url, title, evidence, read }, trust, mark,
|
|
161
|
+
title, action, footnote, picked }` — one source: the title, the address
|
|
162
|
+
and date, the words on the page with the deciding words underlined in
|
|
163
|
+
the accent. Mark them in the words with `[[…]]` ("[[51–200
|
|
164
|
+
employees]] · [[85]] members"); without marks the answer's value is
|
|
165
|
+
underlined where it appears (`decidingWords`).
|
|
166
|
+
- **`TriedList`** `{ tried }` — the pages read, crossed off.
|
|
167
|
+
- **`ReceiptActions`** `{ onType, typePlaceholder, onAskAgain,
|
|
168
|
+
hintPlaceholder, askCost, askNote, askLabel, hint, busy }` — "Type my
|
|
169
|
+
own" (yours, never overwritten) and "Ask again" with a hint, its price
|
|
170
|
+
said under it.
|
|
171
|
+
|
|
172
|
+
```jsx
|
|
173
|
+
<Receipt answer={a} title="Klarwerk" question="Headcount" where="row 2" read="read 22 Sep"
|
|
174
|
+
onPick={(which) => pick(a.id, which)}
|
|
175
|
+
by={<><AgentMark /> Found by the agent · 22 Sep, 10:31</>}>
|
|
176
|
+
<ReceiptActions onType={(v) => type(a.id, v)} onAskAgain={(h) => askAgain(a.id, h)} askCost="Asking again costs about 40 credits" />
|
|
177
|
+
</Receipt>
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
## For a second app
|
|
181
|
+
|
|
182
|
+
- **Suggested values on cells** (a base's cleaner value, a CRM's filled-in
|
|
183
|
+
title): give the answer `status: "suggested"`, the proposed `value`,
|
|
184
|
+
its `source`, and pass `onKeep` / `onDrop` to `AnswerDetail`; `needsCheck`
|
|
185
|
+
counts it. When a person changed the value since, mark it `stale`.
|
|
186
|
+
- **A person's value wins**: map a typed value to `setBy: "person"`; the
|
|
187
|
+
cell shows a tick and `AnswerDetail` offers no ask-again over it.
|
|
188
|
+
- **Waiting and can't-fill** are yours to compute (which of your columns
|
|
189
|
+
an answer reads), passed as `waitsFor` / `blockedBy` names.
|
|
190
|
+
- The block draws no toast and no undo: your callbacks save, and your
|
|
191
|
+
toast offers Undo.
|
|
192
|
+
|
|
193
|
+
## What it will not do
|
|
194
|
+
|
|
195
|
+
- Fetch, save or start the agent. Callbacks out; `useJob` is yours.
|
|
196
|
+
- Decide what is sure. The agent says; the mark draws it.
|
|
197
|
+
- Colour a state alone: every state has its words, every mark its shape.
|