@eventmodelers/cli 0.0.12 → 0.0.13
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/cli.js
CHANGED
|
@@ -670,7 +670,7 @@ async function configureCredentials({ config, configPath, targetDir, requiredFie
|
|
|
670
670
|
{ label: 'Enter values one by one', value: 'manual' },
|
|
671
671
|
{ label: 'Get instructions for configuring later', value: 'instructions' },
|
|
672
672
|
{ label: 'Skip for now', value: 'skip' },
|
|
673
|
-
],
|
|
673
|
+
], 0);
|
|
674
674
|
|
|
675
675
|
if (choice === 'paste') {
|
|
676
676
|
console.log('\n Copy your credentials from https://app.eventmodelers.ai/account,');
|
package/package.json
CHANGED
|
@@ -198,6 +198,8 @@ All node endpoints require header: `x-user-id`
|
|
|
198
198
|
### POST `/api/org/:orgId/boards/:boardId/nodes/events`
|
|
199
199
|
Submit node change events.
|
|
200
200
|
|
|
201
|
+
Any `node:created` event carrying a `chapterId` plus `cellId`/`cellName` (i.e. placing a node on a timeline) also triggers a best-effort, fire-and-forget auto-connect to type-compatible neighbors — same rules as the auto-connect endpoint below. Failures there never fail this call.
|
|
202
|
+
|
|
201
203
|
**Request body**: `NodeChangeEvent[]`
|
|
202
204
|
|
|
203
205
|
```typescript
|
|
@@ -237,7 +239,7 @@ interface NodeChangeEvent {
|
|
|
237
239
|
targetHandle?: string
|
|
238
240
|
}>
|
|
239
241
|
chapterId?: string // for cell placement
|
|
240
|
-
cellName?: string // spreadsheet-style e.g. "B2"
|
|
242
|
+
cellName?: string // spreadsheet-style, always <letter(s)><number> e.g. "B2", "AA10" — pass through as-is, never decompose or interpret it
|
|
241
243
|
}
|
|
242
244
|
```
|
|
243
245
|
|
|
@@ -21,7 +21,7 @@ From `$ARGUMENTS`, extract:
|
|
|
21
21
|
| `boardId` | a board UUID | from `connect` skill (`BOARD_ID`) |
|
|
22
22
|
| `timelineId` | the chapter/timeline UUID | auto-detect (see Step 2) |
|
|
23
23
|
| `position` | column index (0-based number), `"after <title>"`, or omitted | append at end |
|
|
24
|
-
| `cellName` | spreadsheet-style cell reference given directly in the prompt
|
|
24
|
+
| `cellName` | spreadsheet-style cell reference given directly in the prompt — always `<letter(s)><number>`, e.g. `"A2"`, `"AA10"` | none |
|
|
25
25
|
| `baseUrl` | explicit URL override | from `connect` skill (`BASE_URL`) |
|
|
26
26
|
|
|
27
27
|
Normalise `elementType` to uppercase: `event` → `EVENT`, `command` → `COMMAND`, `readmodel` → `READMODEL`, `screen` → `SCREEN`, `automation` → `AUTOMATION`.
|
|
@@ -30,6 +30,8 @@ Use `BOARD_ID` and `BASE_URL` from the `connect` skill. If a `boardId` argument
|
|
|
30
30
|
|
|
31
31
|
**Fast path — spreadsheet-style cell reference given directly (e.g. "place a COMMAND in A2"):** don't try to interpret what "A2" means yourself. The `node:created` event accepts a `cellName` field (see `learn-eventmodelers-api`) and the backend resolves it to the actual row/column — the same shortcut `html-screen` already uses. Skip Steps 3–6 entirely: resolve only `timelineId` (Step 2, needed for `chapterId`), then go straight to Step 7 and pass `cellName` instead of `cellId` on the `node:created` payload. Do not fetch columns, do not compute a row/column index, and do not construct `cellId` yourself for this case.
|
|
32
32
|
|
|
33
|
+
**This still applies when several cell references are given together for one slice** (e.g. "put the screen in C1, the command in C2, the event in C3"). Do not reason about the grid at all — not which column "C" is, not whether C1/C2/C3 land in the same column, not which row is which. That is exactly the interpretation this fast path exists to skip. Treat each cell reference as an opaque string tied to its own element: call Step 7 once per element, passing that element's `cellName` untouched. The backend resolves each independently; the placements only need to be internally consistent with each other insofar as the prompt already told you so — you never need to understand *why*.
|
|
34
|
+
|
|
33
35
|
---
|
|
34
36
|
|
|
35
37
|
## Step 2 — Resolve the timeline
|