@dailephd/my-centcom 0.2.0 → 0.3.0

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.
Files changed (175) hide show
  1. package/README.md +10 -5
  2. package/apps/daemon/dist/artifacts/returnSnapshots.d.ts +12 -0
  3. package/apps/daemon/dist/artifacts/returnSnapshots.js +41 -0
  4. package/apps/daemon/dist/bootstrap/app.d.ts +21 -0
  5. package/apps/daemon/dist/bootstrap/app.js +27 -0
  6. package/apps/daemon/dist/bootstrap/installLayout.d.ts +81 -0
  7. package/apps/daemon/dist/bootstrap/installLayout.js +164 -0
  8. package/apps/daemon/dist/bootstrap/main.d.ts +14 -0
  9. package/apps/daemon/dist/bootstrap/main.js +141 -0
  10. package/apps/daemon/dist/bootstrap/operatorConsole.d.ts +75 -0
  11. package/apps/daemon/dist/bootstrap/operatorConsole.js +293 -0
  12. package/apps/daemon/dist/bootstrap/privateDataRoot.d.ts +38 -0
  13. package/apps/daemon/dist/bootstrap/privateDataRoot.js +204 -0
  14. package/apps/daemon/dist/bootstrap/secureMain.d.ts +118 -0
  15. package/apps/daemon/dist/bootstrap/secureMain.js +403 -0
  16. package/apps/daemon/dist/bootstrap/setup.d.ts +93 -0
  17. package/apps/daemon/dist/bootstrap/setup.js +738 -0
  18. package/apps/daemon/dist/context/changeProposal.d.ts +97 -0
  19. package/apps/daemon/dist/context/changeProposal.js +259 -0
  20. package/apps/daemon/dist/context/gitEvidence.d.ts +88 -0
  21. package/apps/daemon/dist/context/gitEvidence.js +332 -0
  22. package/apps/daemon/dist/context/gitObservation.d.ts +30 -0
  23. package/apps/daemon/dist/context/gitObservation.js +113 -0
  24. package/apps/daemon/dist/context/projectReadIssuer.d.ts +68 -0
  25. package/apps/daemon/dist/context/projectReadIssuer.js +158 -0
  26. package/apps/daemon/dist/context/projectReadService.d.ts +153 -0
  27. package/apps/daemon/dist/context/projectReadService.js +652 -0
  28. package/apps/daemon/dist/context/projectViewService.d.ts +85 -0
  29. package/apps/daemon/dist/context/projectViewService.js +332 -0
  30. package/apps/daemon/dist/context/proposalRecorder.d.ts +11 -0
  31. package/apps/daemon/dist/context/proposalRecorder.js +19 -0
  32. package/apps/daemon/dist/plugins/drivers/codexMcpConfig.d.ts +40 -0
  33. package/apps/daemon/dist/plugins/drivers/codexMcpConfig.js +73 -0
  34. package/apps/daemon/dist/plugins/drivers/codexModelCompatibility.d.ts +49 -0
  35. package/apps/daemon/dist/plugins/drivers/codexModelCompatibility.js +70 -0
  36. package/apps/daemon/dist/plugins/drivers/fakePluginDriver.d.ts +16 -0
  37. package/apps/daemon/dist/plugins/drivers/fakePluginDriver.js +115 -0
  38. package/apps/daemon/dist/plugins/drivers/finiteCliDriver.d.ts +153 -0
  39. package/apps/daemon/dist/plugins/drivers/finiteCliDriver.js +505 -0
  40. package/apps/daemon/dist/plugins/registry/operationCatalog.d.ts +23 -0
  41. package/apps/daemon/dist/plugins/registry/operationCatalog.js +41 -0
  42. package/apps/daemon/dist/plugins/registry/registryOperationCatalog.d.ts +14 -0
  43. package/apps/daemon/dist/plugins/registry/registryOperationCatalog.js +29 -0
  44. package/apps/daemon/dist/plugins/registry/verifiedCapabilityRegistry.d.ts +151 -0
  45. package/apps/daemon/dist/plugins/registry/verifiedCapabilityRegistry.js +579 -0
  46. package/apps/daemon/dist/projects/codingAuthority.d.ts +102 -0
  47. package/apps/daemon/dist/projects/codingAuthority.js +244 -0
  48. package/apps/daemon/dist/projects/fixtureAuthorization.d.ts +54 -0
  49. package/apps/daemon/dist/projects/fixtureAuthorization.js +172 -0
  50. package/apps/daemon/dist/projects/pairedAuthority.d.ts +158 -0
  51. package/apps/daemon/dist/projects/pairedAuthority.js +273 -0
  52. package/apps/daemon/dist/projects/trustedCliConsent.d.ts +47 -0
  53. package/apps/daemon/dist/projects/trustedCliConsent.js +84 -0
  54. package/apps/daemon/dist/runs/changeApplier.d.ts +59 -0
  55. package/apps/daemon/dist/runs/changeApplier.js +319 -0
  56. package/apps/daemon/dist/runs/codingWorkflowService.d.ts +283 -0
  57. package/apps/daemon/dist/runs/codingWorkflowService.js +785 -0
  58. package/apps/daemon/dist/runs/durableIntentCoordinator.d.ts +72 -0
  59. package/apps/daemon/dist/runs/durableIntentCoordinator.js +160 -0
  60. package/apps/daemon/dist/runs/inMemoryCoordinator.d.ts +55 -0
  61. package/apps/daemon/dist/runs/inMemoryCoordinator.js +375 -0
  62. package/apps/daemon/dist/runs/runExecutor.d.ts +154 -0
  63. package/apps/daemon/dist/runs/runExecutor.js +295 -0
  64. package/apps/daemon/dist/runs/workflowService.d.ts +185 -0
  65. package/apps/daemon/dist/runs/workflowService.js +300 -0
  66. package/apps/daemon/dist/runtime/boundedProcessHost.d.ts +111 -0
  67. package/apps/daemon/dist/runtime/boundedProcessHost.js +752 -0
  68. package/apps/daemon/dist/runtime/evidenceRedaction.d.ts +30 -0
  69. package/apps/daemon/dist/runtime/evidenceRedaction.js +79 -0
  70. package/apps/daemon/dist/runtime/executionDiagnostics.d.ts +134 -0
  71. package/apps/daemon/dist/runtime/executionDiagnostics.js +213 -0
  72. package/apps/daemon/dist/runtime/modelExecutionPolicy.d.ts +22 -0
  73. package/apps/daemon/dist/runtime/modelExecutionPolicy.js +19 -0
  74. package/apps/daemon/dist/runtime/mxcExecution.d.ts +12 -0
  75. package/apps/daemon/dist/runtime/mxcExecution.js +163 -0
  76. package/apps/daemon/dist/runtime/mxcIntegrity.d.ts +24 -0
  77. package/apps/daemon/dist/runtime/mxcIntegrity.js +81 -0
  78. package/apps/daemon/dist/runtime/mxcWorker.d.ts +2 -0
  79. package/apps/daemon/dist/runtime/mxcWorker.js +45 -0
  80. package/apps/daemon/dist/runtime/provisionedExecution.d.ts +150 -0
  81. package/apps/daemon/dist/runtime/provisionedExecution.js +653 -0
  82. package/apps/daemon/dist/runtime/testExecution.d.ts +76 -0
  83. package/apps/daemon/dist/runtime/testExecution.js +106 -0
  84. package/apps/daemon/dist/runtime/testProfiles.d.ts +10 -0
  85. package/apps/daemon/dist/runtime/testProfiles.js +4 -0
  86. package/apps/daemon/dist/runtime/trustedAgentStaging.d.ts +89 -0
  87. package/apps/daemon/dist/runtime/trustedAgentStaging.js +262 -0
  88. package/apps/daemon/dist/runtime/trustedCaBundle.d.ts +77 -0
  89. package/apps/daemon/dist/runtime/trustedCaBundle.js +125 -0
  90. package/apps/daemon/dist/runtime/windows/windowsJobSupervisor.d.ts +166 -0
  91. package/apps/daemon/dist/runtime/windows/windowsJobSupervisor.js +521 -0
  92. package/apps/daemon/dist/storage/diagnosticLog.d.ts +63 -0
  93. package/apps/daemon/dist/storage/diagnosticLog.js +136 -0
  94. package/apps/daemon/dist/storage/executionTelemetry.d.ts +63 -0
  95. package/apps/daemon/dist/storage/executionTelemetry.js +247 -0
  96. package/apps/daemon/dist/storage/protectedSecrets.d.ts +39 -0
  97. package/apps/daemon/dist/storage/protectedSecrets.js +106 -0
  98. package/apps/daemon/dist/storage/sqliteLedger.d.ts +786 -0
  99. package/apps/daemon/dist/storage/sqliteLedger.js +1303 -0
  100. package/apps/daemon/dist/transports/http/dispatch.d.ts +43 -0
  101. package/apps/daemon/dist/transports/http/dispatch.js +405 -0
  102. package/apps/daemon/dist/transports/http/secureRoutes.d.ts +40 -0
  103. package/apps/daemon/dist/transports/http/secureRoutes.js +332 -0
  104. package/apps/daemon/dist/transports/http/workflowRoutes.d.ts +41 -0
  105. package/apps/daemon/dist/transports/http/workflowRoutes.js +473 -0
  106. package/apps/daemon/dist/transports/mcp/localProjectReadServer.d.ts +182 -0
  107. package/apps/daemon/dist/transports/mcp/localProjectReadServer.js +221 -0
  108. package/apps/daemon/dist/transports/native/nativeHost.d.ts +24 -0
  109. package/apps/daemon/dist/transports/native/nativeHost.js +344 -0
  110. package/apps/daemon/package.json +24 -0
  111. package/apps/daemon/src/runtime/benign/referenceEcho.mjs +27 -0
  112. package/apps/daemon/src/runtime/windows/buildSupervisor.mjs +87 -0
  113. package/apps/daemon/src/runtime/windows/supervisorMain.cs +676 -0
  114. package/apps/extension/manifest.secure.json +25 -0
  115. package/apps/extension/scripts/build.mjs +173 -0
  116. package/apps/extension/src/background/secureWorker.ts +1595 -0
  117. package/apps/extension/src/background/serviceWorker.ts +892 -0
  118. package/apps/extension/src/content/captureSelection.ts +64 -0
  119. package/apps/extension/src/content/secureInsert.ts +207 -0
  120. package/apps/extension/src/probe/index.html +41 -0
  121. package/apps/extension/src/probe/main.ts +201 -0
  122. package/apps/extension/src/sidepanel/index.html +203 -0
  123. package/apps/extension/src/sidepanel/main.ts +903 -0
  124. package/package.json +19 -3
  125. package/packages/contracts/dist/artifacts.d.ts +66 -0
  126. package/packages/contracts/dist/artifacts.js +64 -0
  127. package/packages/contracts/dist/automation.d.ts +540 -0
  128. package/packages/contracts/dist/automation.js +191 -0
  129. package/packages/contracts/dist/browser.d.ts +251 -0
  130. package/packages/contracts/dist/browser.js +131 -0
  131. package/packages/contracts/dist/context.d.ts +71 -0
  132. package/packages/contracts/dist/context.js +73 -0
  133. package/packages/contracts/dist/diagnostics.d.ts +99 -0
  134. package/packages/contracts/dist/diagnostics.js +284 -0
  135. package/packages/contracts/dist/effects.d.ts +42 -0
  136. package/packages/contracts/dist/effects.js +42 -0
  137. package/packages/contracts/dist/errors.d.ts +75 -0
  138. package/packages/contracts/dist/errors.js +70 -0
  139. package/packages/contracts/dist/events.d.ts +50 -0
  140. package/packages/contracts/dist/events.js +34 -0
  141. package/packages/contracts/dist/executionDiagnostics.d.ts +212 -0
  142. package/packages/contracts/dist/executionDiagnostics.js +101 -0
  143. package/packages/contracts/dist/identity.d.ts +54 -0
  144. package/packages/contracts/dist/identity.js +40 -0
  145. package/packages/contracts/dist/index.d.ts +20 -0
  146. package/packages/contracts/dist/index.js +20 -0
  147. package/packages/contracts/dist/invocation.d.ts +90 -0
  148. package/packages/contracts/dist/invocation.js +77 -0
  149. package/packages/contracts/dist/lifecycle.d.ts +130 -0
  150. package/packages/contracts/dist/lifecycle.js +135 -0
  151. package/packages/contracts/dist/plugin.d.ts +214 -0
  152. package/packages/contracts/dist/plugin.js +117 -0
  153. package/packages/contracts/dist/projectRead.d.ts +205 -0
  154. package/packages/contracts/dist/projectRead.js +162 -0
  155. package/packages/contracts/dist/secure.d.ts +128 -0
  156. package/packages/contracts/dist/secure.js +99 -0
  157. package/packages/contracts/package.json +32 -0
  158. package/packages/contracts/src/artifacts.ts +83 -0
  159. package/packages/contracts/src/automation.ts +238 -0
  160. package/packages/contracts/src/browser.ts +164 -0
  161. package/packages/contracts/src/context.ts +91 -0
  162. package/packages/contracts/src/diagnostics.ts +318 -0
  163. package/packages/contracts/src/effects.ts +49 -0
  164. package/packages/contracts/src/errors.ts +83 -0
  165. package/packages/contracts/src/events.ts +46 -0
  166. package/packages/contracts/src/executionDiagnostics.ts +116 -0
  167. package/packages/contracts/src/identity.ts +68 -0
  168. package/packages/contracts/src/index.ts +20 -0
  169. package/packages/contracts/src/invocation.ts +96 -0
  170. package/packages/contracts/src/lifecycle.ts +169 -0
  171. package/packages/contracts/src/plugin.ts +174 -0
  172. package/packages/contracts/src/projectRead.ts +179 -0
  173. package/packages/contracts/src/secure.ts +136 -0
  174. package/provenance.json +179 -9
  175. package/source.zip +0 -0
@@ -0,0 +1,25 @@
1
+ {
2
+ "manifest_version": 3,
3
+ "name": "my-centcom Secure Control",
4
+ "version": "0.3.0",
5
+ "description": "my-centcom: select an instruction on the conversation page, click the toolbar icon, Run an approved local operation, then insert the result as an unsent draft. Never submits a message.",
6
+ "action": {
7
+ "default_title": "my-centcom: capture the selected text"
8
+ },
9
+ "side_panel": {
10
+ "default_path": "sidepanel/index.html"
11
+ },
12
+ "background": {
13
+ "service_worker": "background.js",
14
+ "type": "module"
15
+ },
16
+ "permissions": [
17
+ "sidePanel",
18
+ "activeTab",
19
+ "scripting",
20
+ "nativeMessaging"
21
+ ],
22
+ "host_permissions": [
23
+ "http://127.0.0.1/*"
24
+ ]
25
+ }
@@ -0,0 +1,173 @@
1
+ import crypto from 'node:crypto';
2
+ import fs from 'node:fs';
3
+ import path from 'node:path';
4
+ import { fileURLToPath } from 'node:url';
5
+ import esbuild from 'esbuild';
6
+
7
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
8
+ const extRoot = path.resolve(__dirname, '..');
9
+ const projectRoot = path.resolve(extRoot, '..', '..');
10
+
11
+ const args = process.argv.slice(2);
12
+ const secure = args.includes('--secure');
13
+ // Optional (secure builds only): write to a task-local directory under .switchyard-dev/cache/ so a test can build the secure variant
14
+ // WITHOUT replacing the default fixture build in dist/ that other suites load in parallel.
15
+ const outArg = args.find((a) => a.startsWith('--out-dir='));
16
+ // Optional (secure TEST builds only, requires --out-dir): ONE extra exact capture origin for a synthetic local page. The production secure
17
+ // build allows exactly https://chatgpt.com. There is no wildcard and no runtime way to widen this list.
18
+ const testOriginArg = args.find((a) => a.startsWith('--capture-test-origin='));
19
+ // SW-062 (secure builds only): the one-time setup builds the INSTALLED extension into <root>/.switchyard-data/centcom-extension with a pinned manifest "key"
20
+ // (base64 DER public key) so the extension id is stable and the native host manifest can name exactly that one origin. A key never widens a permission.
21
+ const keyArg = args.find((a) => a.startsWith('--manifest-key='));
22
+ const installArg = args.find((a) => a === '--install');
23
+ if (args.some((a) => a !== '--secure' && a !== outArg && a !== testOriginArg && a !== keyArg && a !== installArg) || ((outArg !== undefined || testOriginArg !== undefined || keyArg !== undefined || installArg !== undefined) && !secure) || (testOriginArg !== undefined && outArg === undefined) || (installArg !== undefined && (outArg !== undefined || testOriginArg !== undefined || keyArg === undefined))) {
24
+ console.error('[extension:build] Unknown argument. Only --secure, (with --secure) --out-dir=<path>, (with --out-dir) --capture-test-origin=http://127.0.0.1:<port>, --manifest-key=<base64>, and (with --manifest-key, alone) --install are supported.');
25
+ process.exit(2);
26
+ }
27
+ const manifestKey = keyArg === undefined ? undefined : keyArg.slice('--manifest-key='.length);
28
+ if (manifestKey !== undefined && !/^[A-Za-z0-9+/]{200,1200}={0,2}$/.test(manifestKey)) {
29
+ console.error('[extension:build] --manifest-key must be a base64 DER SubjectPublicKeyInfo.');
30
+ process.exit(2);
31
+ }
32
+ const captureOrigins = ['https://chatgpt.com'];
33
+ if (testOriginArg !== undefined) {
34
+ const origin = testOriginArg.slice('--capture-test-origin='.length);
35
+ if (!/^http:\/\/127\.0\.0\.1:[0-9]{1,5}$/.test(origin)) {
36
+ console.error('[extension:build] --capture-test-origin must be exactly http://127.0.0.1:<port>.');
37
+ process.exit(2);
38
+ }
39
+ captureOrigins.push(origin);
40
+ }
41
+ let distDir = path.join(extRoot, 'dist');
42
+ if (outArg !== undefined) {
43
+ const requested = path.resolve(outArg.slice('--out-dir='.length));
44
+ const allowedRoot = path.join(projectRoot, '.switchyard-dev', 'cache') + path.sep;
45
+ if (!requested.toLowerCase().startsWith(allowedRoot.toLowerCase()) || requested.split(path.sep).includes('..')) {
46
+ console.error('[extension:build] --out-dir must be a directory under .switchyard-dev/cache/.');
47
+ process.exit(2);
48
+ }
49
+ distDir = requested;
50
+ }
51
+ if (installArg !== undefined) distDir = path.join(projectRoot, '.switchyard-data', 'centcom-extension');
52
+
53
+ /**
54
+ * SW-065 build identity: a digest of every source that goes into the secure bundle. It is stamped into manifest.version_name ("0.3.0 build <12 hex>"),
55
+ * which Chrome shows in chrome://extensions and the worker/panel report in diagnostics, so "which build actually ran" is never a guess. The SAME
56
+ * algorithm is apps/daemon/src/bootstrap/installLayout.ts extensionSourceId(): `npm run centcom -- status` compares the installed build with the tree.
57
+ */
58
+ function extensionSourceId() {
59
+ const files = [path.join(extRoot, 'manifest.secure.json'), path.join(extRoot, 'scripts', 'build.mjs')];
60
+ const walk = (d) => { for (const e of fs.readdirSync(d, { withFileTypes: true })) { const p = path.join(d, e.name); if (e.isDirectory()) walk(p); else if (e.isFile()) files.push(p); } };
61
+ walk(path.join(extRoot, 'src'));
62
+ walk(path.join(projectRoot, 'packages', 'contracts', 'src'));
63
+ const h = crypto.createHash('sha256');
64
+ for (const f of files.map((p) => ({ p, rel: path.relative(projectRoot, p).split(path.sep).join('/') })).sort((a, b) => (a.rel < b.rel ? -1 : a.rel > b.rel ? 1 : 0))) {
65
+ // CRLF is hashed as LF: a Git checkout with autocrlf must not make an identical source look like a different build
66
+ h.update(`${f.rel}\n${crypto.createHash('sha256').update(Buffer.from(fs.readFileSync(f.p).toString('latin1').replace(/\r\n/g, '\n'), 'latin1')).digest('hex')}\n`);
67
+ }
68
+ return h.digest('hex').slice(0, 12);
69
+ }
70
+
71
+ /**
72
+ * Explicit opt-in secure control build: ONE service worker (secureWorker.ts) plus the side panel page.
73
+ * It replaces dist/ completely; the default build remains the unchanged M03/M04 fixture extension.
74
+ */
75
+ async function buildSecure() {
76
+ console.log('[extension:build] Building secure control extension (--secure)...');
77
+ if (fs.existsSync(distDir)) {
78
+ fs.rmSync(distDir, { recursive: true, force: true });
79
+ }
80
+ fs.mkdirSync(path.join(distDir, 'sidepanel'), { recursive: true });
81
+
82
+ await esbuild.build({
83
+ entryPoints: [path.join(extRoot, 'src', 'background', 'secureWorker.ts')],
84
+ outfile: path.join(distDir, 'background.js'),
85
+ bundle: true,
86
+ format: 'esm',
87
+ target: 'es2022',
88
+ platform: 'browser',
89
+ define: { __CAPTURE_ORIGINS__: JSON.stringify(captureOrigins) },
90
+ });
91
+ await esbuild.build({
92
+ entryPoints: [path.join(extRoot, 'src', 'sidepanel', 'main.ts')],
93
+ outfile: path.join(distDir, 'sidepanel', 'main.js'),
94
+ bundle: true,
95
+ format: 'esm',
96
+ target: 'es2022',
97
+ platform: 'browser',
98
+ });
99
+ const manifest = JSON.parse(fs.readFileSync(path.join(extRoot, 'manifest.secure.json'), 'utf8'));
100
+ if (manifestKey !== undefined) manifest.key = manifestKey;
101
+ manifest.version_name = `${manifest.version} build ${extensionSourceId()}`;
102
+ fs.writeFileSync(path.join(distDir, 'manifest.json'), `${JSON.stringify(manifest, null, 2)}\n`);
103
+ fs.copyFileSync(
104
+ path.join(extRoot, 'src', 'sidepanel', 'index.html'),
105
+ path.join(distDir, 'sidepanel', 'index.html')
106
+ );
107
+ console.log('[extension:build] Secure bundle built successfully at', distDir);
108
+ }
109
+
110
+ async function build() {
111
+ if (secure) {
112
+ return buildSecure();
113
+ }
114
+ console.log('[extension:build] Building Manifest V3 extension bundle...');
115
+
116
+ if (fs.existsSync(distDir)) {
117
+ fs.rmSync(distDir, { recursive: true, force: true });
118
+ }
119
+ fs.mkdirSync(distDir, { recursive: true });
120
+ fs.mkdirSync(path.join(distDir, 'probe'), { recursive: true });
121
+
122
+ // 1. Bundle Background Service Worker (ESM module)
123
+ await esbuild.build({
124
+ entryPoints: [path.join(extRoot, 'src', 'background', 'serviceWorker.ts')],
125
+ outfile: path.join(distDir, 'background.js'),
126
+ bundle: true,
127
+ format: 'esm',
128
+ target: 'es2022',
129
+ platform: 'browser',
130
+ sourcemap: true,
131
+ });
132
+
133
+ // 2. Bundle Content Script (IIFE module for sandbox isolation)
134
+ await esbuild.build({
135
+ entryPoints: [path.join(extRoot, 'src', 'content', 'captureSelection.ts')],
136
+ outfile: path.join(distDir, 'content.js'),
137
+ bundle: true,
138
+ format: 'iife',
139
+ target: 'es2022',
140
+ platform: 'browser',
141
+ sourcemap: true,
142
+ });
143
+
144
+ // 3. Bundle Probe Page Controller (ESM module)
145
+ await esbuild.build({
146
+ entryPoints: [path.join(extRoot, 'src', 'probe', 'main.ts')],
147
+ outfile: path.join(distDir, 'probe', 'main.js'),
148
+ bundle: true,
149
+ format: 'esm',
150
+ target: 'es2022',
151
+ platform: 'browser',
152
+ sourcemap: true,
153
+ });
154
+
155
+ // 4. Copy manifest.m03.json -> dist/manifest.json
156
+ fs.copyFileSync(
157
+ path.join(extRoot, 'manifest.m03.json'),
158
+ path.join(distDir, 'manifest.json')
159
+ );
160
+
161
+ // 5. Copy probe/index.html -> dist/probe/index.html
162
+ fs.copyFileSync(
163
+ path.join(extRoot, 'src', 'probe', 'index.html'),
164
+ path.join(distDir, 'probe', 'index.html')
165
+ );
166
+
167
+ console.log('[extension:build] Bundle built successfully at', distDir);
168
+ }
169
+
170
+ build().catch((err) => {
171
+ console.error('[extension:build] Build failed:', err);
172
+ process.exit(1);
173
+ });