openmates 0.27.0-alpha.22 → 0.27.0-alpha.23

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.
@@ -38107,6 +38107,15 @@ async function serverStatus(flags) {
38107
38107
  if (migration.message_pages) console.log(`Message pages: ${JSON.stringify(migration.message_pages)}`);
38108
38108
  if (migration.version_rows) console.log(`Version rows: ${JSON.stringify(migration.version_rows)}`);
38109
38109
  }
38110
+ function sourceBuildCommitSha(installPath) {
38111
+ try {
38112
+ if (exec("git status --porcelain", installPath).trim()) return "";
38113
+ const revision = exec("git rev-parse HEAD", installPath).trim();
38114
+ return /^[a-f0-9]{40}$/i.test(revision) ? revision.toLowerCase() : "";
38115
+ } catch {
38116
+ return "";
38117
+ }
38118
+ }
38110
38119
  async function serverStart(flags) {
38111
38120
  requireDocker();
38112
38121
  const installPath = resolveServerPath(flags);
@@ -38138,6 +38147,18 @@ async function serverStart(flags) {
38138
38147
  code = await runInteractive("docker", pullArgs, installPath);
38139
38148
  if (code !== 0) process.exit(code);
38140
38149
  }
38150
+ if (installMode === "source") {
38151
+ const buildArgs = [
38152
+ ...composeArgs(installPath, withOverrides, installMode, role),
38153
+ "build",
38154
+ "--build-arg",
38155
+ `BUILD_COMMIT_SHA=${sourceBuildCommitSha(installPath)}`
38156
+ ];
38157
+ if (selection.requested) buildArgs.push(...selection.services);
38158
+ console.error("Building source containers...");
38159
+ code = await runInteractive("docker", buildArgs, installPath);
38160
+ if (code !== 0) process.exit(code);
38161
+ }
38141
38162
  code = await runInteractive("docker", args, installPath);
38142
38163
  if (code !== 0) process.exit(code);
38143
38164
  if (flags.json === true) {
package/dist/cli.js CHANGED
@@ -21,7 +21,7 @@ import {
21
21
  shouldRequireTrustedAccountGuard,
22
22
  waitForSafeE2ETotpWindow,
23
23
  waitForWorkflowRun
24
- } from "./chunk-XVGLSNRM.js";
24
+ } from "./chunk-NQP5QUVR.js";
25
25
  import "./chunk-FRNW5Q2V.js";
26
26
  import "./chunk-IWKP55ZB.js";
27
27
  import "./chunk-4IRYB3YN.js";
package/dist/index.js CHANGED
@@ -43,7 +43,7 @@ import {
43
43
  selectAssistantMessagesForSpeech,
44
44
  serializeToYaml,
45
45
  summarizeAssistantSpeech
46
- } from "./chunk-XVGLSNRM.js";
46
+ } from "./chunk-NQP5QUVR.js";
47
47
  import "./chunk-FRNW5Q2V.js";
48
48
  import "./chunk-IWKP55ZB.js";
49
49
  import "./chunk-4IRYB3YN.js";
@@ -17,47 +17,47 @@
17
17
  {
18
18
  "name": "libggml-base.so",
19
19
  "bytes": 1110088,
20
- "sha256": "de0968deb23c9ea5d2348647764bcef1637699783c8cc66433e875cb527599d3"
20
+ "sha256": "92d2614c50936307afdc6524b801d1c2d0f25af5969c04aea4e37b3f47797c42"
21
21
  },
22
22
  {
23
23
  "name": "libggml-base.so.0",
24
24
  "bytes": 1110088,
25
- "sha256": "de0968deb23c9ea5d2348647764bcef1637699783c8cc66433e875cb527599d3"
25
+ "sha256": "92d2614c50936307afdc6524b801d1c2d0f25af5969c04aea4e37b3f47797c42"
26
26
  },
27
27
  {
28
28
  "name": "libggml-base.so.0.15.1",
29
29
  "bytes": 1110088,
30
- "sha256": "de0968deb23c9ea5d2348647764bcef1637699783c8cc66433e875cb527599d3"
30
+ "sha256": "92d2614c50936307afdc6524b801d1c2d0f25af5969c04aea4e37b3f47797c42"
31
31
  },
32
32
  {
33
33
  "name": "libggml-cpu.so",
34
34
  "bytes": 869800,
35
- "sha256": "60ca1d09199b984177b5d4ba80c1737fe186de0b565ce6ce6700378bc7a11f07"
35
+ "sha256": "efdc4d1aa71b49b084eb26c2e751e356ca43a44d3f5dc553e91dd6610cc291d5"
36
36
  },
37
37
  {
38
38
  "name": "libggml-cpu.so.0",
39
39
  "bytes": 869800,
40
- "sha256": "60ca1d09199b984177b5d4ba80c1737fe186de0b565ce6ce6700378bc7a11f07"
40
+ "sha256": "efdc4d1aa71b49b084eb26c2e751e356ca43a44d3f5dc553e91dd6610cc291d5"
41
41
  },
42
42
  {
43
43
  "name": "libggml-cpu.so.0.15.1",
44
44
  "bytes": 869800,
45
- "sha256": "60ca1d09199b984177b5d4ba80c1737fe186de0b565ce6ce6700378bc7a11f07"
45
+ "sha256": "efdc4d1aa71b49b084eb26c2e751e356ca43a44d3f5dc553e91dd6610cc291d5"
46
46
  },
47
47
  {
48
48
  "name": "libggml.so",
49
49
  "bytes": 1899104,
50
- "sha256": "2bc6a114502907f542de5796685f5e086228a19dc1828dcd6364262e78271e83"
50
+ "sha256": "684599527a3492b456a658e0676f54df02cd27290d2d2b87ee3bb36286414c64"
51
51
  },
52
52
  {
53
53
  "name": "libggml.so.0",
54
54
  "bytes": 1899104,
55
- "sha256": "2bc6a114502907f542de5796685f5e086228a19dc1828dcd6364262e78271e83"
55
+ "sha256": "684599527a3492b456a658e0676f54df02cd27290d2d2b87ee3bb36286414c64"
56
56
  },
57
57
  {
58
58
  "name": "libggml.so.0.15.1",
59
59
  "bytes": 1899104,
60
- "sha256": "2bc6a114502907f542de5796685f5e086228a19dc1828dcd6364262e78271e83"
60
+ "sha256": "684599527a3492b456a658e0676f54df02cd27290d2d2b87ee3bb36286414c64"
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.22",
3
+ "version": "0.27.0-alpha.23",
4
4
  "description": "OpenMates CLI and SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",