@eventmodelers/node-kit 0.0.9 → 0.0.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eventmodelers/node-kit",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "Real-time Claude agent that reacts to slice:changed events on an Eventmodelers board",
5
5
  "type": "module",
6
6
  "bin": {
package/src/cli.js CHANGED
@@ -221,7 +221,7 @@ program
221
221
  try {
222
222
  const cfg = JSON.parse(readFileSync(configPath, 'utf-8'));
223
223
  console.log(`\nConnected to: ${cfg.baseUrl}`);
224
- console.log(`Organization: ${cfg.orgId}`);
224
+ console.log(`Organization: ${cfg.organizationId}`);
225
225
  console.log(`Board: ${cfg.boardId}`);
226
226
  } catch {
227
227
  console.log('\n⚠️ Config file is invalid JSON');
@@ -22,7 +22,7 @@ function loadLocalConfig() {
22
22
  const raw = readFileSync(configPath, 'utf-8');
23
23
  const cfg = JSON.parse(raw);
24
24
 
25
- for (const key of ['token', 'orgId', 'boardId', 'baseUrl']) {
25
+ for (const key of ['token', 'organizationId', 'boardId', 'baseUrl']) {
26
26
  if (!cfg[key]) throw new Error(`Missing config field: ${key}`);
27
27
  }
28
28
 
@@ -50,7 +50,7 @@ async function getRealtimeToken(cfg) {
50
50
  }
51
51
 
52
52
  async function fetchAndPersistSlices(cfg, cwd) {
53
- const url = `${cfg.baseUrl}/api/org/${cfg.orgId}/boards/${cfg.boardId}/slicedata/slices`;
53
+ const url = `${cfg.baseUrl}/api/org/${cfg.organizationId}/boards/${cfg.boardId}/slicedata/slices`;
54
54
  const res = await fetch(url, {
55
55
  headers: { 'x-token': cfg.token, 'x-board-id': cfg.boardId },
56
56
  });
@@ -96,7 +96,7 @@ async function start() {
96
96
  const local = loadLocalConfig();
97
97
  const cfg = await fetchPlatformConfig(local);
98
98
 
99
- console.log(`[agent] Starting — org=${cfg.orgId}, board=${cfg.boardId}, base=${cfg.baseUrl}, cwd=${claudeCwd}`);
99
+ console.log(`[agent] Starting — org=${cfg.organizationId}, board=${cfg.boardId}, base=${cfg.baseUrl}, cwd=${claudeCwd}`);
100
100
 
101
101
  let realtimeToken = await getRealtimeToken(cfg);
102
102