oomi-ai 0.2.47 → 0.2.48

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/bin/oomi-ai.js CHANGED
@@ -1404,6 +1404,7 @@ function printStructuredResult(result, asJson = false) {
1404
1404
 
1405
1405
  async function handlePersonaRuntimeRegisterCommand(slug, flags = {}) {
1406
1406
  const client = createCliPersonaApiClient(flags);
1407
+ const jsonOutput = isTruthyFlag(flags.json);
1407
1408
  const runtime = resolvePersonaRuntimeInput(
1408
1409
  flags,
1409
1410
  {},
@@ -1412,19 +1413,27 @@ async function handlePersonaRuntimeRegisterCommand(slug, flags = {}) {
1412
1413
  workspaceRoot: resolvePersonaWorkspaceRoot(flags),
1413
1414
  },
1414
1415
  );
1416
+ if (!jsonOutput) {
1417
+ console.log(`[personas] Registering runtime for ${slug}.`);
1418
+ console.log(`[personas] Backend: ${resolvePersonaBackendUrl(flags)}`);
1419
+ console.log(`[personas] Device: ${resolvePersonaDeviceId(flags)}`);
1420
+ console.log(`[personas] Endpoint: ${runtime.endpoint}`);
1421
+ console.log(`[personas] Healthcheck: ${runtime.healthcheckUrl}`);
1422
+ }
1415
1423
  const payload = await client.registerRuntime({
1416
1424
  slug,
1417
1425
  endpoint: runtime.endpoint,
1418
- healthcheckUrl: runtime.healthcheckUrl,
1419
- localPort: runtime.localPort,
1420
- transport: runtime.transport,
1421
- startedAt: parseIsoTimestamp(flags['started-at'], 'started-at'),
1422
- });
1423
- printStructuredResult(payload, isTruthyFlag(flags.json));
1424
- }
1425
-
1426
+ healthcheckUrl: runtime.healthcheckUrl,
1427
+ localPort: runtime.localPort,
1428
+ transport: runtime.transport,
1429
+ startedAt: parseIsoTimestamp(flags['started-at'], 'started-at'),
1430
+ });
1431
+ printStructuredResult(payload, jsonOutput);
1432
+ }
1433
+
1426
1434
  async function handlePersonaHeartbeatCommand(slug, flags = {}) {
1427
1435
  const client = createCliPersonaApiClient(flags);
1436
+ const jsonOutput = isTruthyFlag(flags.json);
1428
1437
  const runtime = resolvePersonaRuntimeInput(
1429
1438
  flags,
1430
1439
  {},
@@ -1433,16 +1442,23 @@ async function handlePersonaHeartbeatCommand(slug, flags = {}) {
1433
1442
  workspaceRoot: resolvePersonaWorkspaceRoot(flags),
1434
1443
  },
1435
1444
  );
1445
+ if (!jsonOutput) {
1446
+ console.log(`[personas] Sending heartbeat for ${slug}.`);
1447
+ console.log(`[personas] Backend: ${resolvePersonaBackendUrl(flags)}`);
1448
+ console.log(`[personas] Device: ${resolvePersonaDeviceId(flags)}`);
1449
+ console.log(`[personas] Endpoint: ${runtime.endpoint}`);
1450
+ console.log(`[personas] Healthcheck: ${runtime.healthcheckUrl}`);
1451
+ }
1436
1452
  const payload = await client.heartbeatRuntime({
1437
1453
  slug,
1438
1454
  endpoint: runtime.endpoint,
1439
- healthcheckUrl: runtime.healthcheckUrl,
1440
- localPort: runtime.localPort,
1441
- transport: runtime.transport,
1442
- observedAt: parseIsoTimestamp(flags['observed-at'], 'observed-at'),
1443
- });
1444
- printStructuredResult(payload, isTruthyFlag(flags.json));
1445
- }
1455
+ healthcheckUrl: runtime.healthcheckUrl,
1456
+ localPort: runtime.localPort,
1457
+ transport: runtime.transport,
1458
+ observedAt: parseIsoTimestamp(flags['observed-at'], 'observed-at'),
1459
+ });
1460
+ printStructuredResult(payload, jsonOutput);
1461
+ }
1446
1462
 
1447
1463
  async function handlePersonaRuntimeFailCommand(slug, flags = {}) {
1448
1464
  const code = String(flags.code || '').trim();
@@ -2,7 +2,7 @@
2
2
  "id": "oomi-ai",
3
3
  "name": "Oomi Channel Plugin",
4
4
  "description": "Managed Oomi channel integration for OpenClaw.",
5
- "version": "0.2.47",
5
+ "version": "0.2.48",
6
6
  "author": "Oomi",
7
7
  "license": "MIT",
8
8
  "openclawVersion": ">=0.5.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oomi-ai",
3
- "version": "0.2.47",
3
+ "version": "0.2.48",
4
4
  "description": "Oomi OpenClaw channel plugin and bridge tooling",
5
5
  "bin": {
6
6
  "oomi": "bin/oomi-ai.js"