openmates 0.27.0-alpha.48 → 0.27.0-alpha.49

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.
@@ -21417,6 +21417,7 @@ Required: ${schema.required.join(", ")}`
21417
21417
  return { canceled: false, cleanup: () => void 0 };
21418
21418
  }
21419
21419
  const wasRaw = stdin2.isRaw === true;
21420
+ const wasFlowing = stdin2.readableFlowing === true;
21420
21421
  stdin2.setRawMode(true);
21421
21422
  stdin2.resume();
21422
21423
  const onData = (raw) => {
@@ -21426,13 +21427,17 @@ Required: ${schema.required.join(", ")}`
21426
21427
  if (value === "") state.canceled = true;
21427
21428
  };
21428
21429
  stdin2.on("data", onData);
21430
+ let cleanedUp = false;
21429
21431
  return {
21430
21432
  get canceled() {
21431
21433
  return state.canceled;
21432
21434
  },
21433
21435
  cleanup: () => {
21436
+ if (cleanedUp) return;
21437
+ cleanedUp = true;
21434
21438
  stdin2.off("data", onData);
21435
21439
  stdin2.setRawMode(wasRaw);
21440
+ if (!wasFlowing) stdin2.pause();
21436
21441
  }
21437
21442
  };
21438
21443
  }
@@ -107239,6 +107244,9 @@ async function main() {
107239
107244
  console.log("Login successful.");
107240
107245
  const storageMode = getCredentialStorageMode();
107241
107246
  console.log(storageMode === "os-keyring" ? "Credential storage: OS keyring." : "Credential storage: owner-only local file (this host can read chat keys).");
107247
+ const profile = process.env.OPENMATES_PROFILE?.trim();
107248
+ const nextCommand = profile ? `openmates --profile ${profile}` : "openmates";
107249
+ console.log(`Run \`${nextCommand}\` to start chatting.`);
107242
107250
  return;
107243
107251
  }
107244
107252
  if (command === "signup") {
package/dist/cli.js CHANGED
@@ -21,7 +21,7 @@ import {
21
21
  shouldRequireTrustedAccountGuard,
22
22
  waitForSafeE2ETotpWindow,
23
23
  waitForWorkflowRun
24
- } from "./chunk-TYME6DVO.js";
24
+ } from "./chunk-6RPAEA3D.js";
25
25
  import "./chunk-5HWC6OTW.js";
26
26
  import "./chunk-IWKP55ZB.js";
27
27
  import "./chunk-FC27KZIW.js";
package/dist/index.js CHANGED
@@ -44,7 +44,7 @@ import {
44
44
  selectAssistantMessagesForSpeech,
45
45
  serializeToYaml,
46
46
  summarizeAssistantSpeech
47
- } from "./chunk-TYME6DVO.js";
47
+ } from "./chunk-6RPAEA3D.js";
48
48
  import "./chunk-5HWC6OTW.js";
49
49
  import "./chunk-IWKP55ZB.js";
50
50
  import "./chunk-FC27KZIW.js";
@@ -17,47 +17,47 @@
17
17
  {
18
18
  "name": "libggml-base.so",
19
19
  "bytes": 1110088,
20
- "sha256": "b3410088aeb5fd4d3210e8d9969f8ee7322b464bb249615551fa166221050e68"
20
+ "sha256": "bbd916045da45ebaa7ffde6eaf09c0d8c105dd960fa93a6cebb10301795d0d44"
21
21
  },
22
22
  {
23
23
  "name": "libggml-base.so.0",
24
24
  "bytes": 1110088,
25
- "sha256": "b3410088aeb5fd4d3210e8d9969f8ee7322b464bb249615551fa166221050e68"
25
+ "sha256": "bbd916045da45ebaa7ffde6eaf09c0d8c105dd960fa93a6cebb10301795d0d44"
26
26
  },
27
27
  {
28
28
  "name": "libggml-base.so.0.15.1",
29
29
  "bytes": 1110088,
30
- "sha256": "b3410088aeb5fd4d3210e8d9969f8ee7322b464bb249615551fa166221050e68"
30
+ "sha256": "bbd916045da45ebaa7ffde6eaf09c0d8c105dd960fa93a6cebb10301795d0d44"
31
31
  },
32
32
  {
33
33
  "name": "libggml-cpu.so",
34
34
  "bytes": 869800,
35
- "sha256": "f4ace9a11f1642764f721f4772ede90acad6521b81329435553ed1a3c693957b"
35
+ "sha256": "e09cf657784e2874ab5e9e8fa7471d0021ac4d2daaf1567453f60dfa1d509c9b"
36
36
  },
37
37
  {
38
38
  "name": "libggml-cpu.so.0",
39
39
  "bytes": 869800,
40
- "sha256": "f4ace9a11f1642764f721f4772ede90acad6521b81329435553ed1a3c693957b"
40
+ "sha256": "e09cf657784e2874ab5e9e8fa7471d0021ac4d2daaf1567453f60dfa1d509c9b"
41
41
  },
42
42
  {
43
43
  "name": "libggml-cpu.so.0.15.1",
44
44
  "bytes": 869800,
45
- "sha256": "f4ace9a11f1642764f721f4772ede90acad6521b81329435553ed1a3c693957b"
45
+ "sha256": "e09cf657784e2874ab5e9e8fa7471d0021ac4d2daaf1567453f60dfa1d509c9b"
46
46
  },
47
47
  {
48
48
  "name": "libggml.so",
49
49
  "bytes": 1899104,
50
- "sha256": "07e384deb7dd55891c72c378e1d09aa8056f2f9d348708970cf44f1db09971b2"
50
+ "sha256": "07083192668e60a7f63a9b5057a17411236cc7526fb5b850dff22ee2e9a68f07"
51
51
  },
52
52
  {
53
53
  "name": "libggml.so.0",
54
54
  "bytes": 1899104,
55
- "sha256": "07e384deb7dd55891c72c378e1d09aa8056f2f9d348708970cf44f1db09971b2"
55
+ "sha256": "07083192668e60a7f63a9b5057a17411236cc7526fb5b850dff22ee2e9a68f07"
56
56
  },
57
57
  {
58
58
  "name": "libggml.so.0.15.1",
59
59
  "bytes": 1899104,
60
- "sha256": "07e384deb7dd55891c72c378e1d09aa8056f2f9d348708970cf44f1db09971b2"
60
+ "sha256": "07083192668e60a7f63a9b5057a17411236cc7526fb5b850dff22ee2e9a68f07"
61
61
  },
62
62
  {
63
63
  "name": "openmates-pii-worker",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openmates",
3
- "version": "0.27.0-alpha.48",
3
+ "version": "0.27.0-alpha.49",
4
4
  "description": "OpenMates CLI and SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -44,7 +44,7 @@
44
44
  "test:unit:billing": "node --test tests/billing.test.ts",
45
45
  "test:unit:account-delete": "node --test tests/account-delete.test.ts",
46
46
  "test:unit:ideabucket": "node --test --experimental-strip-types --loader ./tests/loader.mjs tests/ideabucket.test.ts",
47
- "test:unit:cli": "node --test --experimental-strip-types --loader ./tests/loader.mjs tests/cli.test.ts tests/imagesDetectAi.test.ts tests/uploadService.test.ts",
47
+ "test:unit:cli": "node --test --experimental-strip-types --loader ./tests/loader.mjs tests/cli.test.ts tests/loginTerminal.test.ts tests/imagesDetectAi.test.ts tests/uploadService.test.ts",
48
48
  "test:unit:projects-cli": "node --test --experimental-strip-types --loader ./tests/loader.mjs tests/projectRequester.test.ts && node --test --experimental-strip-types --loader ./tests/loader.mjs --test-name-pattern 'routes deterministic Project CRUD' tests/client.test.ts && node --test --test-name-pattern 'projects deterministic commands' tests/cli.test.ts",
49
49
  "test:t-cli-recovery": "node --test --experimental-strip-types --loader ./tests/loader.mjs --test-name-pattern recovery tests/client.test.ts",
50
50
  "test:t-cli-update-required": "npm run build && node --test --test-name-pattern update-required tests/cli.test.ts",
@@ -53,7 +53,7 @@
53
53
  "test:unit:tui": "node --test --experimental-strip-types --loader ./tests/loader.mjs tests/tui.test.ts tests/tuiExampleContinuation.test.ts tests/tuiWorkflowInteraction.test.ts tests/tuiWorkspaceInteraction.test.ts tests/tuiLayout.test.ts tests/tuiTerminal.test.ts tests/tuiStartup.test.ts tests/tuiTasksWorkspace.test.ts tests/tuiProjectsWorkspace.test.ts tests/tuiWorkflowWorkspace.test.ts tests/tuiAttachments.test.ts tests/tuiCancellation.test.ts tests/tuiWorkflowVersion.test.ts tests/tuiAppsWorkspace.test.ts tests/tuiHome.test.ts tests/tuiEmbeds.test.ts tests/tuiEmbedPreviews.test.ts tests/tuiMarkdown.test.ts tests/tuiResultsViews.test.ts tests/tuiRichChatInteraction.test.ts tests/tuiInteractiveQuestions.test.ts tests/tuiCachedWorkspaces.test.ts tests/tuiWorkspaceCache.test.ts tests/tuiProjectCacheInteraction.test.ts tests/tuiChatSidebar.test.ts tests/tuiPointer.test.ts tests/tuiPointerWorkspaces.test.ts tests/tuiPointerChat.test.ts tests/tuiHeaderActions.test.ts tests/tuiSettings.test.ts tests/tuiChromeShell.test.ts tests/tuiModelSelector.test.ts tests/tuiModelSelectorShell.test.ts",
54
54
  "test:unit:connected-account-import": "node --test --experimental-strip-types --loader ./tests/loader.mjs tests/connectedAccountImport.test.ts",
55
55
  "test:unit:benchmark": "node --test --experimental-strip-types --loader ./tests/loader.mjs src/__tests__/benchmark.test.ts",
56
- "test": "node --test --experimental-strip-types --loader ./tests/loader.mjs tests/wiki.test.ts tests/privacy.test.ts tests/crypto.test.ts tests/storage.test.ts tests/keychain.test.ts tests/mentions.test.ts tests/outputRedactor.test.ts tests/fileEmbed.test.ts tests/embedCreator.test.ts tests/shareEncryption.test.ts tests/server.test.ts tests/serverCaddyUpdate.test.ts tests/serverCaddyUpgrade.test.ts tests/serverQuickTest.test.ts tests/ws.test.ts tests/urlEmbed.test.ts tests/tui.test.ts tests/tuiExampleContinuation.test.ts tests/tuiWorkflowInteraction.test.ts tests/tuiWorkspaceInteraction.test.ts tests/tuiLayout.test.ts tests/tuiTerminal.test.ts tests/tuiStartup.test.ts tests/tuiTasksWorkspace.test.ts tests/tuiProjectsWorkspace.test.ts tests/tuiWorkflowWorkspace.test.ts tests/tuiAttachments.test.ts tests/tuiCancellation.test.ts tests/tuiWorkflowVersion.test.ts tests/tuiAppsWorkspace.test.ts tests/tuiHome.test.ts tests/tuiEmbeds.test.ts tests/tuiEmbedPreviews.test.ts tests/tuiMarkdown.test.ts tests/tuiResultsViews.test.ts tests/tuiRichChatInteraction.test.ts tests/tuiInteractiveQuestions.test.ts tests/tuiCachedWorkspaces.test.ts tests/tuiWorkspaceCache.test.ts tests/tuiProjectCacheInteraction.test.ts tests/tuiChatSidebar.test.ts tests/sdk-chat-sidebar.test.ts tests/workflows.test.ts tests/workflow-file.test.ts tests/sdk-workflows.test.ts tests/draft-sync.test.ts tests/sdk-draft-sync.test.ts tests/ideabucket.test.ts tests/teams-permissions.test.ts src/__tests__/benchmark.test.ts && node --test --experimental-strip-types --loader ./tests/loader.mjs tests/embedRenderers.test.ts tests/connectedAccountImport.test.ts && node --test --experimental-strip-types --loader ./tests/loader.mjs tests/cli.test.ts tests/imagesDetectAi.test.ts tests/uploadService.test.ts tests/billing.test.ts tests/account-delete.test.ts tests/signup.test.ts tests/security-setup.test.ts tests/e2e-provisioning.test.ts && npm run test:unit:session && npm run test:unit:task-sync",
56
+ "test": "node --test --experimental-strip-types --loader ./tests/loader.mjs tests/wiki.test.ts tests/privacy.test.ts tests/crypto.test.ts tests/storage.test.ts tests/keychain.test.ts tests/mentions.test.ts tests/outputRedactor.test.ts tests/fileEmbed.test.ts tests/embedCreator.test.ts tests/shareEncryption.test.ts tests/server.test.ts tests/serverCaddyUpdate.test.ts tests/serverCaddyUpgrade.test.ts tests/serverQuickTest.test.ts tests/ws.test.ts tests/urlEmbed.test.ts tests/tui.test.ts tests/tuiExampleContinuation.test.ts tests/tuiWorkflowInteraction.test.ts tests/tuiWorkspaceInteraction.test.ts tests/tuiLayout.test.ts tests/tuiTerminal.test.ts tests/tuiStartup.test.ts tests/tuiTasksWorkspace.test.ts tests/tuiProjectsWorkspace.test.ts tests/tuiWorkflowWorkspace.test.ts tests/tuiAttachments.test.ts tests/tuiCancellation.test.ts tests/tuiWorkflowVersion.test.ts tests/tuiAppsWorkspace.test.ts tests/tuiHome.test.ts tests/tuiEmbeds.test.ts tests/tuiEmbedPreviews.test.ts tests/tuiMarkdown.test.ts tests/tuiResultsViews.test.ts tests/tuiRichChatInteraction.test.ts tests/tuiInteractiveQuestions.test.ts tests/tuiCachedWorkspaces.test.ts tests/tuiWorkspaceCache.test.ts tests/tuiProjectCacheInteraction.test.ts tests/tuiChatSidebar.test.ts tests/sdk-chat-sidebar.test.ts tests/workflows.test.ts tests/workflow-file.test.ts tests/sdk-workflows.test.ts tests/draft-sync.test.ts tests/sdk-draft-sync.test.ts tests/ideabucket.test.ts tests/teams-permissions.test.ts src/__tests__/benchmark.test.ts && node --test --experimental-strip-types --loader ./tests/loader.mjs tests/embedRenderers.test.ts tests/connectedAccountImport.test.ts && node --test --experimental-strip-types --loader ./tests/loader.mjs tests/cli.test.ts tests/loginTerminal.test.ts tests/imagesDetectAi.test.ts tests/uploadService.test.ts tests/billing.test.ts tests/account-delete.test.ts tests/signup.test.ts tests/security-setup.test.ts tests/e2e-provisioning.test.ts && npm run test:unit:session && npm run test:unit:task-sync",
57
57
  "test:unit:session": "node --test --experimental-strip-types --loader ./tests/loader.mjs --test-name-pattern \"serializes refreshes|session refresh|rotated|gateway\" tests/client.test.ts",
58
58
  "test:unit:task-sync": "node --test --experimental-strip-types --loader ./tests/loader.mjs tests/projectTaskSync.test.ts tests/taskActivityDelivery.test.ts tests/taskCommandDelivery.test.ts tests/taskDelivery.test.ts tests/taskMutationDelivery.test.ts tests/claimConflict.test.ts tests/cliTaskQueue.test.ts tests/codexConnection.test.ts tests/remoteSources.test.ts tests/remoteAccess.test.ts tests/remoteAccessCrypto.test.ts",
59
59
  "test:unit:sdk-sidebar": "node --test --experimental-strip-types --loader ./tests/loader.mjs tests/sdk-chat-sidebar.test.ts"