openmates 0.27.0-alpha.59 → 0.27.0-alpha.60

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.
@@ -6597,7 +6597,7 @@ async function collectRelatedCliTaskContext(client2, chatId, options, records, n
6597
6597
  }
6598
6598
  return candidates;
6599
6599
  }
6600
- async function prepareCliJevContext(client2, chatId, options, supplied = {}, text7) {
6600
+ async function prepareCliJevContext(client2, chatId, options, supplied = {}, text7, discovery = {}) {
6601
6601
  let candidates = [];
6602
6602
  let active = {};
6603
6603
  let tasks = [];
@@ -6607,10 +6607,10 @@ async function prepareCliJevContext(client2, chatId, options, supplied = {}, tex
6607
6607
  candidates = value;
6608
6608
  }).catch(() => {
6609
6609
  }),
6610
- loadActiveCliProjectContext(client2, chatId, text7).then((value) => {
6610
+ ...discovery.sdkMintedChatId ? [] : [loadActiveCliProjectContext(client2, chatId, text7).then((value) => {
6611
6611
  active = value;
6612
6612
  }).catch(() => {
6613
- }),
6613
+ })],
6614
6614
  (async () => {
6615
6615
  const records = await client2.listUserTasks({ ...options, limit: 500 });
6616
6616
  ownedTaskRecords = records;
@@ -6618,9 +6618,9 @@ async function prepareCliJevContext(client2, chatId, options, supplied = {}, tex
6618
6618
  })().catch(() => {
6619
6619
  })
6620
6620
  ]);
6621
- const acceptedPlan = await collectAcceptedCliPlanContext(client2, chatId, options, ownedTaskRecords).catch(() => null);
6621
+ const acceptedPlan = discovery.sdkMintedChatId ? null : await collectAcceptedCliPlanContext(client2, chatId, options, ownedTaskRecords).catch(() => null);
6622
6622
  const { projectId, focusCatalogComplete: _complete, ...loaded } = active;
6623
- const current2 = await client2.getActiveProjectFocus(chatId).catch(() => null);
6623
+ const current2 = discovery.sdkMintedChatId ? null : await client2.getActiveProjectFocus(chatId).catch(() => null);
6624
6624
  if (current2?.project_id !== projectId) {
6625
6625
  delete loaded.project_focus_catalog;
6626
6626
  delete loaded.project_focus_documents;
@@ -15473,6 +15473,7 @@ var OpenMatesClient = class _OpenMatesClient {
15473
15473
  if (params.incognito && params.projectId) {
15474
15474
  throw new Error("Project file execution requires a saved chat.");
15475
15475
  }
15476
+ const sdkMintedChatId = params.chatId === void 0 && params.newChatId === void 0 && params.projectId === void 0;
15476
15477
  let chatId;
15477
15478
  if (params.newChatId) {
15478
15479
  chatId = params.newChatId;
@@ -15578,7 +15579,7 @@ var OpenMatesClient = class _OpenMatesClient {
15578
15579
  return Boolean(current2 && current2.apiUrl === contextApiUrl && current2.hashedEmail === contextHashedEmail && current2.sessionId === contextSessionId && current2.createdAt === contextSessionCreatedAt && current2.masterKeyExportedB64 === contextMasterKey && current2.activeTeamId === contextActiveTeamId);
15579
15580
  };
15580
15581
  const earlyContextAbort = new AbortController();
15581
- const earlyContext = !params.incognito && !params.chatId && !params.projectId ? withHttpAbortSignal(earlyContextAbort.signal, () => prepareCliJevContext(this, chatId, contextScope, params.jevContext, finalMessage)).then(
15582
+ const earlyContext = !params.incognito && !params.chatId && !params.projectId ? withHttpAbortSignal(earlyContextAbort.signal, () => prepareCliJevContext(this, chatId, contextScope, params.jevContext, finalMessage, { sdkMintedChatId })).then(
15582
15583
  (value) => ({ ok: true, value, elapsedMs: Date.now() - contextStartedAt }),
15583
15584
  (error) => ({ ok: false, error, elapsedMs: Date.now() - contextStartedAt })
15584
15585
  ) : null;
@@ -15803,7 +15804,7 @@ var OpenMatesClient = class _OpenMatesClient {
15803
15804
  };
15804
15805
  if (!params.incognito) {
15805
15806
  const serialContextStartedAt = Date.now();
15806
- const prepared = earlyContext ? await earlyContext : { ok: true, value: await prepareCliJevContext(this, chatId, contextScope, params.jevContext, finalMessage), elapsedMs: Date.now() - serialContextStartedAt };
15807
+ const prepared = earlyContext ? await earlyContext : { ok: true, value: await prepareCliJevContext(this, chatId, contextScope, params.jevContext, finalMessage, { sdkMintedChatId }), elapsedMs: Date.now() - serialContextStartedAt };
15807
15808
  if (!prepared.ok) throw prepared.error;
15808
15809
  if (!contextOwnerIsCurrent()) throw new Error("Chat workspace changed while preparing context.");
15809
15810
  if (process.env.OPENMATES_DEBUG === "1") {
package/dist/cli.js CHANGED
@@ -21,7 +21,7 @@ import {
21
21
  shouldRequireTrustedAccountGuard,
22
22
  waitForSafeE2ETotpWindow,
23
23
  waitForWorkflowRun
24
- } from "./chunk-ACLJYOK7.js";
24
+ } from "./chunk-HA4UBUFE.js";
25
25
  import "./chunk-5SFXCJJ4.js";
26
26
  import "./chunk-IWKP55ZB.js";
27
27
  import "./chunk-F2U6KIMR.js";
package/dist/index.js CHANGED
@@ -44,7 +44,7 @@ import {
44
44
  selectAssistantMessagesForSpeech,
45
45
  serializeToYaml,
46
46
  summarizeAssistantSpeech
47
- } from "./chunk-ACLJYOK7.js";
47
+ } from "./chunk-HA4UBUFE.js";
48
48
  import "./chunk-5SFXCJJ4.js";
49
49
  import "./chunk-IWKP55ZB.js";
50
50
  import "./chunk-F2U6KIMR.js";
@@ -17,47 +17,47 @@
17
17
  {
18
18
  "name": "libggml-base.so",
19
19
  "bytes": 1110088,
20
- "sha256": "198fa376b92f7d6a28b847e10b9ab2b9b1e9be260ca97b5a631753733920f580"
20
+ "sha256": "5dff6acb47e0e59d38be8485d1be0aa9e072b569545ad121cf11abafdc4bf028"
21
21
  },
22
22
  {
23
23
  "name": "libggml-base.so.0",
24
24
  "bytes": 1110088,
25
- "sha256": "198fa376b92f7d6a28b847e10b9ab2b9b1e9be260ca97b5a631753733920f580"
25
+ "sha256": "5dff6acb47e0e59d38be8485d1be0aa9e072b569545ad121cf11abafdc4bf028"
26
26
  },
27
27
  {
28
28
  "name": "libggml-base.so.0.15.1",
29
29
  "bytes": 1110088,
30
- "sha256": "198fa376b92f7d6a28b847e10b9ab2b9b1e9be260ca97b5a631753733920f580"
30
+ "sha256": "5dff6acb47e0e59d38be8485d1be0aa9e072b569545ad121cf11abafdc4bf028"
31
31
  },
32
32
  {
33
33
  "name": "libggml-cpu.so",
34
34
  "bytes": 869800,
35
- "sha256": "7dc7cca3e114c8db86fb93cfbe985a2c57de8b1a784fa5374a3b3ebec26f7c40"
35
+ "sha256": "1161f237b78e0c4f744098a87bfbd5a8ed80a535b8ad540525d21d70f66dbffb"
36
36
  },
37
37
  {
38
38
  "name": "libggml-cpu.so.0",
39
39
  "bytes": 869800,
40
- "sha256": "7dc7cca3e114c8db86fb93cfbe985a2c57de8b1a784fa5374a3b3ebec26f7c40"
40
+ "sha256": "1161f237b78e0c4f744098a87bfbd5a8ed80a535b8ad540525d21d70f66dbffb"
41
41
  },
42
42
  {
43
43
  "name": "libggml-cpu.so.0.15.1",
44
44
  "bytes": 869800,
45
- "sha256": "7dc7cca3e114c8db86fb93cfbe985a2c57de8b1a784fa5374a3b3ebec26f7c40"
45
+ "sha256": "1161f237b78e0c4f744098a87bfbd5a8ed80a535b8ad540525d21d70f66dbffb"
46
46
  },
47
47
  {
48
48
  "name": "libggml.so",
49
49
  "bytes": 1899104,
50
- "sha256": "915953430e0b3d3691df0e90ce28577ea8b4a8a0b848a6580d1dacecec30db57"
50
+ "sha256": "d3373e0d9c5f67d3cbff809881412dbeeba9a8614dcccb71ead8a868ad8c2a45"
51
51
  },
52
52
  {
53
53
  "name": "libggml.so.0",
54
54
  "bytes": 1899104,
55
- "sha256": "915953430e0b3d3691df0e90ce28577ea8b4a8a0b848a6580d1dacecec30db57"
55
+ "sha256": "d3373e0d9c5f67d3cbff809881412dbeeba9a8614dcccb71ead8a868ad8c2a45"
56
56
  },
57
57
  {
58
58
  "name": "libggml.so.0.15.1",
59
59
  "bytes": 1899104,
60
- "sha256": "915953430e0b3d3691df0e90ce28577ea8b4a8a0b848a6580d1dacecec30db57"
60
+ "sha256": "d3373e0d9c5f67d3cbff809881412dbeeba9a8614dcccb71ead8a868ad8c2a45"
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.59",
3
+ "version": "0.27.0-alpha.60",
4
4
  "description": "OpenMates CLI and SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",