@holoscript/core 8.0.12 → 8.0.14

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 (166) hide show
  1. package/README.md +14 -0
  2. package/bin/holo-decision.mjs +133 -0
  3. package/dist/{GLTFPipeline-L76YTXKA.js → GLTFPipeline-6LS3UDYX.js} +6 -6
  4. package/dist/{GLTFPipeline-ZWJN7GI6.cjs → GLTFPipeline-VTI6PRRQ.cjs} +10 -10
  5. package/dist/{HoloCompositionParser-FLBZKFD3.js → HoloCompositionParser-GILABNN3.js} +5 -5
  6. package/dist/{HoloCompositionParser-3XEC7IJC.cjs → HoloCompositionParser-ZVRYVEA5.cjs} +12 -12
  7. package/dist/{HoloScriptPlusParser-RNUCHOAJ.cjs → HoloScriptPlusParser-WTPRPRPR.cjs} +8 -8
  8. package/dist/{HoloScriptPlusParser-55AY4MUF.js → HoloScriptPlusParser-ZP53ECSL.js} +5 -5
  9. package/dist/{SceneIRCompiler-KWUFHZ4O.cjs → SceneIRCompiler-7KQ5NKAU.cjs} +11 -11
  10. package/dist/{SceneIRCompiler-63KA3M2F.js → SceneIRCompiler-VX75RB6H.js} +6 -6
  11. package/dist/{chunk-EM2OGPYE.js → chunk-2GKF7JQ6.js} +3 -3
  12. package/dist/{chunk-HVX7QQYK.js → chunk-3KHRZTNW.js} +3 -3
  13. package/dist/{chunk-UTUD6GJI.js → chunk-42Z3SVHQ.js} +3 -3
  14. package/dist/{chunk-Z4IUBW46.js → chunk-47XZ62KM.js} +112 -55
  15. package/dist/{chunk-GGR7QUKK.cjs → chunk-4CRMVEON.cjs} +37 -37
  16. package/dist/{chunk-QBY7LRN2.js → chunk-4NEPHK2K.js} +3 -3
  17. package/dist/{chunk-65S62L4D.cjs → chunk-5B2AJKA5.cjs} +20 -20
  18. package/dist/{chunk-PJFTTSKE.js → chunk-5T6BWIB7.js} +4 -4
  19. package/dist/{chunk-KFVNCW4Q.js → chunk-62OYZT6Q.js} +3 -3
  20. package/dist/{chunk-3KMANSQJ.cjs → chunk-645EWDZW.cjs} +4 -4
  21. package/dist/{chunk-BP4KTMLY.js → chunk-6FCNMTL5.js} +4 -4
  22. package/dist/{chunk-77QI552M.js → chunk-73EDVY5D.js} +3 -3
  23. package/dist/{chunk-7IDJDMPU.cjs → chunk-7FYSSI3C.cjs} +27 -2
  24. package/dist/{chunk-WNYXT4TE.cjs → chunk-7ITJP33Q.cjs} +3 -3
  25. package/dist/chunk-7ZKQ32XK.js +1571 -0
  26. package/dist/{chunk-P7JEKJTZ.cjs → chunk-B6JHTTMR.cjs} +25 -14
  27. package/dist/{chunk-FG6PYGIZ.js → chunk-BLCWQ225.js} +4 -4
  28. package/dist/{chunk-7NPZZZD7.js → chunk-C73GVAYC.js} +16 -9
  29. package/dist/{chunk-RMOEL2GD.cjs → chunk-CESMPUEZ.cjs} +3794 -1137
  30. package/dist/{chunk-SQXAZHDG.js → chunk-CHIZSMWD.js} +3 -3
  31. package/dist/{chunk-G35CAQ7I.cjs → chunk-D44CEFY4.cjs} +5 -5
  32. package/dist/chunk-ERYKKPHW.cjs +1884 -0
  33. package/dist/{chunk-TYNRXRHF.js → chunk-EYHPTJ3F.js} +3695 -1045
  34. package/dist/{chunk-J3UHV5T4.cjs → chunk-FGXJPJ3W.cjs} +4 -4
  35. package/dist/{chunk-IJU6AS67.cjs → chunk-FHR2AVMA.cjs} +23 -23
  36. package/dist/{chunk-LMB555QB.cjs → chunk-FOM36K5I.cjs} +18 -18
  37. package/dist/{chunk-JBYBMBMW.js → chunk-FWKEY4LD.js} +3 -2
  38. package/dist/{chunk-ZRPALBQB.cjs → chunk-GGH3ZYDB.cjs} +5 -5
  39. package/dist/{chunk-2BYAUHBO.js → chunk-GI5YYZH6.js} +3 -3
  40. package/dist/{chunk-VTEXJOSD.cjs → chunk-GYJLP4BO.cjs} +30 -30
  41. package/dist/{chunk-OC6GV5QH.cjs → chunk-HCONR4J6.cjs} +38 -38
  42. package/dist/{chunk-B3CWTCK2.js → chunk-IA7FCSRY.js} +27 -2
  43. package/dist/{chunk-5FYMCVBY.js → chunk-IXFNA5TT.js} +4 -4
  44. package/dist/{chunk-G6KACNMO.js → chunk-JCVSCKUH.js} +4 -4
  45. package/dist/{chunk-FHVPN7BN.js → chunk-JQCXLKAU.js} +3 -3
  46. package/dist/{chunk-F3YT6GUF.cjs → chunk-KLM6QD6D.cjs} +14 -14
  47. package/dist/{chunk-UGQ3QNV6.js → chunk-KOGPVAP6.js} +24 -8
  48. package/dist/{chunk-CKV5NYAE.js → chunk-KYJD2UMV.js} +4 -4
  49. package/dist/{chunk-LB3ZZMKT.cjs → chunk-L4DBUX3N.cjs} +10 -10
  50. package/dist/{chunk-RXQNRZ5F.js → chunk-LGRKBTPM.js} +3 -3
  51. package/dist/{chunk-OMNHTCS4.cjs → chunk-LHUDAJQT.cjs} +3 -2
  52. package/dist/{chunk-PDXX5UI4.cjs → chunk-LQNL3IYV.cjs} +38 -38
  53. package/dist/{chunk-WWNCM473.js → chunk-M7XR3F53.js} +4 -4
  54. package/dist/{chunk-IFW5IW4L.cjs → chunk-ML4V5PVU.cjs} +670 -627
  55. package/dist/{chunk-656IAS7B.cjs → chunk-N7IYRAFG.cjs} +21 -14
  56. package/dist/chunk-N7MIIDLI.cjs +1605 -0
  57. package/dist/{chunk-USOUXQYD.js → chunk-NWKARJM2.js} +130 -22
  58. package/dist/{chunk-VVAAZITA.cjs → chunk-OOP4S3GU.cjs} +5 -5
  59. package/dist/{chunk-TX6ZBIF4.js → chunk-ORBVCOTC.js} +3 -3
  60. package/dist/{chunk-RRQIAJLQ.cjs → chunk-OSKGCXAQ.cjs} +5 -5
  61. package/dist/{chunk-QEDMOGF3.cjs → chunk-P65OIMJT.cjs} +7 -7
  62. package/dist/{chunk-QM7FJB5W.js → chunk-PSWCJQS4.js} +4 -4
  63. package/dist/{chunk-7N63JHUN.cjs → chunk-PZ46WRHX.cjs} +8 -8
  64. package/dist/{chunk-AATYYLYK.js → chunk-Q4J2K7FI.js} +16 -5
  65. package/dist/chunk-QLPRI3QW.js +1875 -0
  66. package/dist/{chunk-WTH23ISI.js → chunk-R5VKLUMR.js} +4 -4
  67. package/dist/{chunk-NQN5LFN4.cjs → chunk-REN3LHO6.cjs} +19 -19
  68. package/dist/{chunk-JEJ7TT54.js → chunk-RVN7OPCP.js} +4 -4
  69. package/dist/{chunk-ZK7KX5CD.cjs → chunk-SE2Y5BSL.cjs} +6 -6
  70. package/dist/{chunk-2X3IPCBK.cjs → chunk-SKVBUGMC.cjs} +7 -7
  71. package/dist/{chunk-GZPUA2TL.cjs → chunk-SNMQUWIO.cjs} +10 -10
  72. package/dist/{chunk-OIBRWLPY.cjs → chunk-TKDDIE3T.cjs} +54 -3
  73. package/dist/{chunk-5H5GFBMG.cjs → chunk-TMNAKNV2.cjs} +112 -55
  74. package/dist/{chunk-5LVFTGKH.js → chunk-TZQKJOPC.js} +3 -3
  75. package/dist/{chunk-TSTFYGGX.js → chunk-UKEK2NZJ.js} +3 -3
  76. package/dist/{chunk-3IUHTGDD.cjs → chunk-VA7THINF.cjs} +38 -38
  77. package/dist/{chunk-Z557DVYN.js → chunk-VMCR5QVI.js} +4 -4
  78. package/dist/{chunk-IS7NTKY5.cjs → chunk-VTFLKSJL.cjs} +14 -14
  79. package/dist/{chunk-VO52AJD5.js → chunk-VXHB6ZHY.js} +4 -4
  80. package/dist/{chunk-S4O7CFHQ.cjs → chunk-VZI7S7P6.cjs} +7 -7
  81. package/dist/{chunk-BQJ3YBF3.js → chunk-W4AJMMQR.js} +667 -628
  82. package/dist/{chunk-2KKOYZYI.cjs → chunk-XZC75AJ4.cjs} +5 -5
  83. package/dist/{chunk-FWCHPCD4.js → chunk-Y2OCKXVD.js} +4 -4
  84. package/dist/{chunk-EI5G5JLY.cjs → chunk-YBM34FUJ.cjs} +134 -22
  85. package/dist/{chunk-DUG3OQAS.js → chunk-YDSNDCV3.js} +3 -3
  86. package/dist/{chunk-566ZB4LZ.cjs → chunk-YM7UUYR5.cjs} +5 -5
  87. package/dist/{chunk-BCP4E7MD.cjs → chunk-YMI3ED3B.cjs} +26 -10
  88. package/dist/{chunk-CP7V3ATL.js → chunk-Z7NUL73U.js} +51 -4
  89. package/dist/cli/holoscript-runner.cjs +11 -11
  90. package/dist/cli/holoscript-runner.js +4 -4
  91. package/dist/compiler/agent-inference.cjs +8 -8
  92. package/dist/compiler/agent-inference.js +4 -4
  93. package/dist/compiler/android-xr.cjs +7 -7
  94. package/dist/compiler/android-xr.js +5 -5
  95. package/dist/compiler/android.cjs +6 -6
  96. package/dist/compiler/android.js +4 -4
  97. package/dist/compiler/context.cjs +6 -6
  98. package/dist/compiler/context.js +3 -3
  99. package/dist/compiler/daimon-seed.cjs +9 -9
  100. package/dist/compiler/daimon-seed.js +4 -4
  101. package/dist/compiler/domain-block-utils.cjs +165 -165
  102. package/dist/compiler/domain-block-utils.js +4 -4
  103. package/dist/compiler/dtdl.cjs +7 -7
  104. package/dist/compiler/dtdl.js +4 -4
  105. package/dist/compiler/gltf-pipeline.cjs +8 -8
  106. package/dist/compiler/gltf-pipeline.js +1 -1
  107. package/dist/compiler/godot.cjs +6 -6
  108. package/dist/compiler/godot.js +5 -5
  109. package/dist/compiler/incremental.cjs +8 -8
  110. package/dist/compiler/incremental.js +3 -3
  111. package/dist/compiler/index.cjs +871 -207
  112. package/dist/compiler/index.d.ts +21 -1
  113. package/dist/compiler/index.js +696 -60
  114. package/dist/compiler/ios.cjs +6 -6
  115. package/dist/compiler/ios.js +4 -4
  116. package/dist/compiler/llm-provider-capabilities.cjs +6 -6
  117. package/dist/compiler/llm-provider-capabilities.js +3 -3
  118. package/dist/compiler/openxr.cjs +6 -6
  119. package/dist/compiler/openxr.js +5 -5
  120. package/dist/compiler/sdf.cjs +7 -7
  121. package/dist/compiler/sdf.js +5 -5
  122. package/dist/compiler/state.cjs +6 -6
  123. package/dist/compiler/state.js +4 -4
  124. package/dist/compiler/trait-composition.cjs +7 -7
  125. package/dist/compiler/trait-composition.js +3 -3
  126. package/dist/compiler/unity.cjs +6 -6
  127. package/dist/compiler/unity.js +5 -5
  128. package/dist/compiler/unreal.cjs +7 -7
  129. package/dist/compiler/unreal.js +5 -5
  130. package/dist/compiler/urdf.cjs +14 -14
  131. package/dist/compiler/urdf.js +5 -5
  132. package/dist/compiler/usd-physics.cjs +7 -7
  133. package/dist/compiler/usd-physics.js +4 -4
  134. package/dist/compiler/visionos.cjs +6 -6
  135. package/dist/compiler/visionos.js +5 -5
  136. package/dist/compiler/vrchat.cjs +7 -7
  137. package/dist/compiler/vrchat.js +5 -5
  138. package/dist/compiler/wasm.cjs +10 -10
  139. package/dist/compiler/wasm.js +5 -5
  140. package/dist/compiler/webgpu.cjs +6 -6
  141. package/dist/compiler/webgpu.js +5 -5
  142. package/dist/constants.cjs +3 -3
  143. package/dist/constants.js +1 -1
  144. package/dist/entries/scripting.cjs +6 -6
  145. package/dist/entries/scripting.js +2 -2
  146. package/dist/evolution/index.cjs +21 -17
  147. package/dist/evolution/index.d.ts +9 -0
  148. package/dist/evolution/index.js +6 -6
  149. package/dist/index.cjs +930 -703
  150. package/dist/index.d.ts +70 -5
  151. package/dist/index.js +192 -109
  152. package/dist/parser.cjs +19 -19
  153. package/dist/parser.js +5 -5
  154. package/dist/reconstruction/index.cjs +127 -38
  155. package/dist/reconstruction/index.d.ts +159 -0
  156. package/dist/reconstruction/index.js +11 -2
  157. package/dist/runtime.d.ts +1 -0
  158. package/dist/traitDocs/traitDocs.cjs +8 -8
  159. package/dist/traitDocs/traitDocs.js +2 -2
  160. package/dist/traits/index.cjs +566 -471
  161. package/dist/traits/index.js +93 -11
  162. package/package.json +25 -41
  163. package/dist/chunk-G3BM3CT4.cjs +0 -639
  164. package/dist/chunk-KEYG7HGY.js +0 -1062
  165. package/dist/chunk-QX34ELJ7.js +0 -625
  166. package/dist/chunk-W2GA3EQB.cjs +0 -1065
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkCFVK26P4_cjs = require('./chunk-CFVK26P4.cjs');
4
- var chunkZK7KX5CD_cjs = require('./chunk-ZK7KX5CD.cjs');
4
+ var chunkSE2Y5BSL_cjs = require('./chunk-SE2Y5BSL.cjs');
5
5
  var chunkAWXFEAQL_cjs = require('./chunk-AWXFEAQL.cjs');
6
6
  var chunkN74QRJGP_cjs = require('./chunk-N74QRJGP.cjs');
7
7
  var chunkZHPMP447_cjs = require('./chunk-ZHPMP447.cjs');
@@ -2305,13 +2305,13 @@ function compileToAndroid(composition, options) {
2305
2305
  exports.AndroidCompiler = void 0;
2306
2306
  var init_AndroidCompiler = chunkZHPMP447_cjs.__esm({
2307
2307
  "src/compiler/AndroidCompiler.ts"() {
2308
- chunkZK7KX5CD_cjs.init_CompilerBase();
2308
+ chunkSE2Y5BSL_cjs.init_CompilerBase();
2309
2309
  init_AndroidARGenerators();
2310
2310
  init_AndroidFeatureGenerators();
2311
2311
  init_AndroidSceneViewFeatureGenerators();
2312
2312
  init_AndroidPeripheralGenerators();
2313
2313
  chunkCFVK26P4_cjs.init_AndroidKotlinHelpers();
2314
- exports.AndroidCompiler = class extends chunkZK7KX5CD_cjs.CompilerBase {
2314
+ exports.AndroidCompiler = class extends chunkSE2Y5BSL_cjs.CompilerBase {
2315
2315
  constructor(options = {}) {
2316
2316
  super();
2317
2317
  this.compilerName = "AndroidCompiler";
@@ -2465,5 +2465,5 @@ var init_AndroidCompiler = chunkZHPMP447_cjs.__esm({
2465
2465
  exports.AndroidCompiler_exports = AndroidCompiler_exports;
2466
2466
  exports.compileToAndroid = compileToAndroid;
2467
2467
  exports.init_AndroidCompiler = init_AndroidCompiler;
2468
- //# sourceMappingURL=chunk-2KKOYZYI.cjs.map
2469
- //# sourceMappingURL=chunk-2KKOYZYI.cjs.map
2468
+ //# sourceMappingURL=chunk-XZC75AJ4.cjs.map
2469
+ //# sourceMappingURL=chunk-XZC75AJ4.cjs.map
@@ -2,8 +2,8 @@ import { generateHullGeometry, generateMembraneGeometry, generateSplineGeometry
2
2
  import { MATERIAL_PRESETS } from './chunk-3F7ZZWIN.js';
3
3
  import { ASTNodePool } from './chunk-2MQKNDNH.js';
4
4
  import { TraitCompositor } from './chunk-ZVQMKUGJ.js';
5
- import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileMaterialBlock, materialToGLTF } from './chunk-5LVFTGKH.js';
6
- import { init_CompilerBase, CompilerBase } from './chunk-DUG3OQAS.js';
5
+ import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileMaterialBlock, materialToGLTF } from './chunk-TZQKJOPC.js';
6
+ import { init_CompilerBase, CompilerBase } from './chunk-YDSNDCV3.js';
7
7
  import { ANSCapabilityPath } from '@holoscript/core-types/ans';
8
8
 
9
9
  // src/compiler/GLTFPipeline.ts
@@ -2366,5 +2366,5 @@ function createGLTFPipeline(options) {
2366
2366
  }
2367
2367
 
2368
2368
  export { GLTFPipeline, createGLTFPipeline, generateScaleNormalMap, generateScaleTexture };
2369
- //# sourceMappingURL=chunk-FWCHPCD4.js.map
2370
- //# sourceMappingURL=chunk-FWCHPCD4.js.map
2369
+ //# sourceMappingURL=chunk-Y2OCKXVD.js.map
2370
+ //# sourceMappingURL=chunk-Y2OCKXVD.js.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkJ3UHV5T4_cjs = require('./chunk-J3UHV5T4.cjs');
4
- var chunk656IAS7B_cjs = require('./chunk-656IAS7B.cjs');
3
+ var chunkFGXJPJ3W_cjs = require('./chunk-FGXJPJ3W.cjs');
4
+ var chunkN7IYRAFG_cjs = require('./chunk-N7IYRAFG.cjs');
5
5
 
6
6
  // src/evolution/EvolveProgramBackend.ts
7
7
  async function sha256Hex(s) {
@@ -9,6 +9,24 @@ async function sha256Hex(s) {
9
9
  const digest = await globalThis.crypto.subtle.digest("SHA-256", bytes);
10
10
  return Array.from(new Uint8Array(digest)).map((b) => b.toString(16).padStart(2, "0")).join("");
11
11
  }
12
+ function buildProposerPrompt(parentCode, goal) {
13
+ return `You are improving a program toward a goal. GOAL: ${goal}
14
+
15
+ Return ONLY the full revised program - no prose, no explanation, no markdown code fences.
16
+
17
+ --- CURRENT PROGRAM ---
18
+ ${parentCode}
19
+ --- END ---`;
20
+ }
21
+ function stripMarkdownFences(text) {
22
+ return text.trim().replace(/^```[a-z]*\n?/i, "").replace(/\n?```$/i, "").trim();
23
+ }
24
+ function openAICompatibleChatUrl(endpoint) {
25
+ const base = endpoint.replace(/\/+$/, "");
26
+ if (/\/chat\/completions$/i.test(base)) return base;
27
+ if (/\/v1$/i.test(base)) return `${base}/chat/completions`;
28
+ return `${base}/v1/chat/completions`;
29
+ }
12
30
  async function runEvolution(seedCode, policy, io) {
13
31
  const now = io.now ?? (() => (/* @__PURE__ */ new Date()).toISOString());
14
32
  const trace = [];
@@ -132,13 +150,7 @@ async function runEvolution(seedCode, policy, io) {
132
150
  function makeOllamaProposer(endpoint, model) {
133
151
  const base = endpoint.replace(/\/+$/, "");
134
152
  return async (parentCode, goal) => {
135
- const prompt = `You are improving a program toward a goal. GOAL: ${goal}
136
-
137
- Return ONLY the full revised program \u2014 no prose, no explanation, no markdown code fences.
138
-
139
- --- CURRENT PROGRAM ---
140
- ${parentCode}
141
- --- END ---`;
153
+ const prompt = buildProposerPrompt(parentCode, goal);
142
154
  const res = await fetch(`${base}/api/generate`, {
143
155
  method: "POST",
144
156
  headers: { "content-type": "application/json" },
@@ -146,7 +158,44 @@ ${parentCode}
146
158
  });
147
159
  if (!res.ok) throw new Error(`ollama ${res.status}`);
148
160
  const body = await res.json();
149
- return (body.response ?? "").trim().replace(/^```[a-z]*\n?/i, "").replace(/\n?```$/i, "").trim();
161
+ return stripMarkdownFences(body.response ?? "");
162
+ };
163
+ }
164
+ function makeOpenAICompatibleProposer(endpoint, model, opts = {}) {
165
+ const fetchImpl = opts.fetchImpl ?? fetch;
166
+ const temperature = opts.temperature ?? 0.7;
167
+ return async (parentCode, goal) => {
168
+ const headers = { "content-type": "application/json" };
169
+ if (opts.apiKey) headers.authorization = `Bearer ${opts.apiKey}`;
170
+ const res = await fetchImpl(openAICompatibleChatUrl(endpoint), {
171
+ method: "POST",
172
+ headers,
173
+ body: JSON.stringify({
174
+ model,
175
+ stream: false,
176
+ temperature,
177
+ ...opts.maxTokens == null ? {} : { max_tokens: opts.maxTokens },
178
+ messages: [
179
+ {
180
+ role: "system",
181
+ content: "You are a HoloScript program-evolution proposer. Return only the full revised program."
182
+ },
183
+ { role: "user", content: buildProposerPrompt(parentCode, goal) }
184
+ ]
185
+ })
186
+ });
187
+ const raw = await res.text();
188
+ if (!res.ok) throw new Error(`openai-compatible ${res.status}: ${raw.slice(0, 160)}`);
189
+ let body;
190
+ try {
191
+ body = JSON.parse(raw);
192
+ } catch {
193
+ throw new Error("openai-compatible invalid JSON response");
194
+ }
195
+ const content = body.choices?.[0]?.message?.content ?? body.choices?.[0]?.text ?? "";
196
+ const code = stripMarkdownFences(content);
197
+ if (!code) throw new Error("openai-compatible empty response");
198
+ return code;
150
199
  };
151
200
  }
152
201
  function toGradedTraceRow(rec, opts) {
@@ -210,7 +259,8 @@ var CORPUS_PORTFOLIO = [
210
259
  " }",
211
260
  "}"
212
261
  ].join("\n"),
213
- preserved: [/PatrolBot/, /\bidle\b/, /\bchasing\b/]
262
+ preserved: [/PatrolBot/, /\bidle\b/, /\bchasing\b/],
263
+ semanticCheck: stateMachineSemanticCheck
214
264
  },
215
265
  {
216
266
  name: "mini-scene",
@@ -284,7 +334,8 @@ var CORPUS_PORTFOLIO = [
284
334
  " }",
285
335
  "}"
286
336
  ].join("\n"),
287
- preserved: [/SmartDoor/, /\bclosed\b/, /\bopening\b/, /\bopen\b/]
337
+ preserved: [/SmartDoor/, /\bclosed\b/, /\bopening\b/, /\bopen\b/],
338
+ semanticCheck: stateMachineSemanticCheck
288
339
  },
289
340
  {
290
341
  name: "trafficlight-statemachine",
@@ -303,7 +354,8 @@ var CORPUS_PORTFOLIO = [
303
354
  " }",
304
355
  "}"
305
356
  ].join("\n"),
306
- preserved: [/TrafficLight/, /\bred\b/, /\bgreen\b/, /\byellow\b/]
357
+ preserved: [/TrafficLight/, /\bred\b/, /\bgreen\b/, /\byellow\b/],
358
+ semanticCheck: stateMachineSemanticCheck
307
359
  },
308
360
  {
309
361
  name: "room-scene",
@@ -345,23 +397,79 @@ var CORPUS_PORTFOLIO = [
345
397
  ];
346
398
  function parsesClean(src, format) {
347
399
  try {
348
- const r = format === "holo" ? chunkJ3UHV5T4_cjs.parseHolo(src) : chunk656IAS7B_cjs.parse(src);
400
+ const r = format === "holo" ? chunkFGXJPJ3W_cjs.parseHolo(src) : chunkN7IYRAFG_cjs.parse(src);
349
401
  return Boolean(r.success && r.ast) && (r.errors?.length ?? 0) === 0;
350
402
  } catch {
351
403
  return false;
352
404
  }
353
405
  }
406
+ function findStateMachineConfig(node) {
407
+ if (!node || typeof node !== "object") return null;
408
+ const obj = node;
409
+ if (obj.name === "state_machine" && obj.config && typeof obj.config === "object") {
410
+ const cfg = obj.config;
411
+ if (cfg.states && typeof cfg.states === "object") return cfg;
412
+ }
413
+ for (const v of Object.values(obj)) {
414
+ if (Array.isArray(v)) {
415
+ for (const e of v) {
416
+ const f = findStateMachineConfig(e);
417
+ if (f) return f;
418
+ }
419
+ } else if (v && typeof v === "object") {
420
+ const f = findStateMachineConfig(v);
421
+ if (f) return f;
422
+ }
423
+ }
424
+ return null;
425
+ }
426
+ function extractStateMachine(ast) {
427
+ const cfg = findStateMachineConfig(ast);
428
+ if (!cfg) return null;
429
+ const statesObj = cfg.states;
430
+ const states = Object.keys(statesObj);
431
+ const transitions = [];
432
+ for (const from of states) {
433
+ const events = statesObj[from];
434
+ if (!events || typeof events !== "object") continue;
435
+ for (const event of Object.keys(events)) {
436
+ const t = events[event];
437
+ if (t && typeof t.target === "string") transitions.push({ from, event, target: t.target });
438
+ }
439
+ }
440
+ return { states, initial: typeof cfg.initial === "string" ? cfg.initial : "", transitions };
441
+ }
442
+ function stateMachineWellFormed(ast) {
443
+ const sm = extractStateMachine(ast);
444
+ if (!sm) return false;
445
+ const defined = new Set(sm.states);
446
+ return defined.has(sm.initial) && sm.transitions.every((t) => defined.has(t.target));
447
+ }
448
+ function stateMachineSemanticCheck(_candidate, ast) {
449
+ const sm = extractStateMachine(ast);
450
+ if (!sm) return { ok: false, reason: "no_state_machine" };
451
+ const defined = new Set(sm.states);
452
+ if (!defined.has(sm.initial)) return { ok: false, reason: `initial_undefined:${sm.initial}` };
453
+ const dangling = sm.transitions.filter((t) => !defined.has(t.target));
454
+ if (dangling.length) {
455
+ return { ok: false, reason: `dangling_transition:${dangling.map((d) => `${d.from}-${d.event}->${d.target}`).join(",")}` };
456
+ }
457
+ return { ok: true };
458
+ }
354
459
  function makeSeedGate(seed) {
355
- return async (candidate) => ({
356
- passed: parsesClean(candidate, seed.format) && seed.preserved.every((re) => re.test(candidate)),
357
- score: candidate.length
358
- });
460
+ return async (candidate) => {
461
+ const r = seed.format === "holo" ? chunkFGXJPJ3W_cjs.parseHolo(candidate) : chunkN7IYRAFG_cjs.parse(candidate);
462
+ const clean = Boolean(r.success && r.ast) && (r.errors?.length ?? 0) === 0;
463
+ const preservedOk = clean && seed.preserved.every((re) => re.test(candidate));
464
+ const passed = preservedOk && (!seed.semanticCheck || seed.semanticCheck(candidate, r.ast).ok);
465
+ return { passed, score: candidate.length };
466
+ };
359
467
  }
360
468
  async function accrueOneStep(opts) {
361
469
  const seed = opts.seed ?? CORPUS_PORTFOLIO[(opts.tick ?? 0) % CORPUS_PORTFOLIO.length];
362
470
  const now = opts.now ?? (() => (/* @__PURE__ */ new Date()).toISOString());
363
471
  const rows = [];
364
- await runEvolution(
472
+ const { receipt } = await runEvolution(
365
473
  seed.source,
366
474
  { goal: seed.goal, generations: 1, population: 1, archiveSize: 4, proposerModel: "sovereign-local" },
367
475
  {
@@ -370,7 +478,7 @@ async function accrueOneStep(opts) {
370
478
  onCandidate: (rec) => rows.push(toGradedTraceRow(rec, { agentId: opts.agentId, ts: now(), source: `evolve-corpus:${seed.name}` }))
371
479
  }
372
480
  );
373
- return { target: seed.name, rows };
481
+ return { target: seed.name, rows, receipt };
374
482
  }
375
483
  function dedupRows(existingCorpus, rows) {
376
484
  const seen = /* @__PURE__ */ new Set();
@@ -490,13 +598,17 @@ function makeWasmCompilerFitnessGate(compileCandidate, opts = {}) {
490
598
  exports.CORPUS_PORTFOLIO = CORPUS_PORTFOLIO;
491
599
  exports.accrueOneStep = accrueOneStep;
492
600
  exports.dedupRows = dedupRows;
601
+ exports.extractStateMachine = extractStateMachine;
493
602
  exports.makeOllamaProposer = makeOllamaProposer;
603
+ exports.makeOpenAICompatibleProposer = makeOpenAICompatibleProposer;
494
604
  exports.makeSeedGate = makeSeedGate;
495
605
  exports.makeWasmCompilerFitnessGate = makeWasmCompilerFitnessGate;
496
606
  exports.parsesClean = parsesClean;
497
607
  exports.runEvolution = runEvolution;
498
608
  exports.scoreWasmCompilerArtifact = scoreWasmCompilerArtifact;
609
+ exports.stateMachineSemanticCheck = stateMachineSemanticCheck;
610
+ exports.stateMachineWellFormed = stateMachineWellFormed;
499
611
  exports.toGradedTraceRow = toGradedTraceRow;
500
612
  exports.wasmFitnessBaselineFromScenario = wasmFitnessBaselineFromScenario;
501
- //# sourceMappingURL=chunk-EI5G5JLY.cjs.map
502
- //# sourceMappingURL=chunk-EI5G5JLY.cjs.map
613
+ //# sourceMappingURL=chunk-YBM34FUJ.cjs.map
614
+ //# sourceMappingURL=chunk-YBM34FUJ.cjs.map
@@ -1,4 +1,4 @@
1
- import { init_traitDocs, getTraitDoc, formatTraitDocCompact } from './chunk-B3CWTCK2.js';
1
+ import { init_traitDocs, getTraitDoc, formatTraitDocCompact } from './chunk-IA7FCSRY.js';
2
2
  import { init_AgentRiskRegistry, getAgentRiskRegistry, TIER_COMPOSITION_RISK_CAP, isDangerousOperation } from './chunk-5CURIYGT.js';
3
3
  import { init_safeJsonParse, safeJsonParse, readJson } from './chunk-RAN3ECAS.js';
4
4
  import { __esm } from './chunk-W4GABFCR.js';
@@ -6028,5 +6028,5 @@ Required Permission: ${decision.requiredPermission || "unknown"}`
6028
6028
  });
6029
6029
 
6030
6030
  export { ANSCapabilityPath, BUILTIN_NORMS, BUILTIN_NORM_PROVENANCE, CompilerBase, CompilerDocumentationGenerator, UNKNOWN_NORM_PROVENANCE, UnauthorizedCompilerAccessError, createTestCompilerToken, criticalMassForChange, deserializeNormProvenance, escapeStringValue, getBuiltinNorm, getRBAC, init_ANSNamespace, init_AgentRBAC, init_CompilerBase, init_CompilerDocumentationGenerator, init_CultureTraits, isCapabilityTokenCredential, normalizeNormProvenance, normsByCategory, serializeNormProvenance };
6031
- //# sourceMappingURL=chunk-DUG3OQAS.js.map
6032
- //# sourceMappingURL=chunk-DUG3OQAS.js.map
6031
+ //# sourceMappingURL=chunk-YDSNDCV3.js.map
6032
+ //# sourceMappingURL=chunk-YDSNDCV3.js.map
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkZK7KX5CD_cjs = require('./chunk-ZK7KX5CD.cjs');
3
+ var chunkSE2Y5BSL_cjs = require('./chunk-SE2Y5BSL.cjs');
4
4
  var ans = require('@holoscript/core-types/ans');
5
5
 
6
6
  // src/compiler/ContextCompiler.ts
7
- chunkZK7KX5CD_cjs.init_CompilerBase();
7
+ chunkSE2Y5BSL_cjs.init_CompilerBase();
8
8
  var BANNED_DEFAULT_PATTERNS = [
9
9
  {
10
10
  pattern: /\bgit\s+add\s+(?:-A|--all|\.)(?=\s|$)/i,
@@ -49,7 +49,7 @@ var KNOWN_DIAMOND_IDS = /* @__PURE__ */ new Set([
49
49
  // Add more as graduate.py promotes - verify against D:/GOLD/INDEX.md.
50
50
  ]);
51
51
  var DEFAULT_FLUENT_PROSE_CHARS = 150;
52
- var ContextCompiler = class extends chunkZK7KX5CD_cjs.CompilerBase {
52
+ var ContextCompiler = class extends chunkSE2Y5BSL_cjs.CompilerBase {
53
53
  constructor(options = {}) {
54
54
  super();
55
55
  this.compilerName = "ContextCompiler";
@@ -2154,5 +2154,5 @@ function toCursorSlug(name) {
2154
2154
  exports.ContextCompileError = ContextCompileError;
2155
2155
  exports.ContextCompiler = ContextCompiler;
2156
2156
  exports.createContextCompiler = createContextCompiler;
2157
- //# sourceMappingURL=chunk-566ZB4LZ.cjs.map
2158
- //# sourceMappingURL=chunk-566ZB4LZ.cjs.map
2157
+ //# sourceMappingURL=chunk-YM7UUYR5.cjs.map
2158
+ //# sourceMappingURL=chunk-YM7UUYR5.cjs.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkZK7KX5CD_cjs = require('./chunk-ZK7KX5CD.cjs');
3
+ var chunkSE2Y5BSL_cjs = require('./chunk-SE2Y5BSL.cjs');
4
4
  var chunkZHPMP447_cjs = require('./chunk-ZHPMP447.cjs');
5
5
  var ans = require('@holoscript/core-types/ans');
6
6
 
@@ -24,7 +24,7 @@ function createPythonAgentInferenceCompiler(options) {
24
24
  var DEFAULT_MODEL_CONFIG, ANTHROPIC_MODELS_NO_SAMPLING_PARAMS, AGENT_TRAIT_NAMES; exports.AgentInferenceCompiler = void 0; exports.AgentInferenceExportTarget_default = void 0;
25
25
  var init_AgentInferenceExportTarget = chunkZHPMP447_cjs.__esm({
26
26
  "src/compiler/AgentInferenceExportTarget.ts"() {
27
- chunkZK7KX5CD_cjs.init_CompilerBase();
27
+ chunkSE2Y5BSL_cjs.init_CompilerBase();
28
28
  DEFAULT_MODEL_CONFIG = {
29
29
  provider: "anthropic",
30
30
  // Default to Opus 4.7 — most capable Claude. Users override per-agent via
@@ -54,7 +54,7 @@ var init_AgentInferenceExportTarget = chunkZHPMP447_cjs.__esm({
54
54
  "memory",
55
55
  "persona"
56
56
  ]);
57
- exports.AgentInferenceCompiler = class extends chunkZK7KX5CD_cjs.CompilerBase {
57
+ exports.AgentInferenceCompiler = class extends chunkSE2Y5BSL_cjs.CompilerBase {
58
58
  constructor(options = {}) {
59
59
  super();
60
60
  this.compilerName = "AgentInferenceCompiler";
@@ -101,7 +101,7 @@ var init_AgentInferenceExportTarget = chunkZHPMP447_cjs.__esm({
101
101
  if (allTools.length > 0) {
102
102
  output[`tools.${ext}`] = this.emitToolDefinitions(allTools);
103
103
  }
104
- output["config.json"] = this.emitConfigJson();
104
+ output["config.json"] = this.emitConfigJson(composition.name);
105
105
  if (this.options.language === "typescript") {
106
106
  output["package.json"] = this.emitPackageJson(composition.name);
107
107
  if (this.options.includeTypes) {
@@ -321,12 +321,14 @@ var init_AgentInferenceExportTarget = chunkZHPMP447_cjs.__esm({
321
321
  }
322
322
  }
323
323
  }
324
+ const target = this.extractStringValue(trait.config["target"]);
324
325
  return {
325
326
  name,
326
327
  description,
327
328
  parameters,
328
329
  returnType: this.extractStringValue(trait.config["returns"]) ?? "string",
329
- source: "trait"
330
+ source: "trait",
331
+ ...target ? { target } : {}
330
332
  };
331
333
  }
332
334
  parseBehaviorAsTool(behavior) {
@@ -800,7 +802,7 @@ var init_AgentInferenceExportTarget = chunkZHPMP447_cjs.__esm({
800
802
  return lines.join("\n");
801
803
  }
802
804
  // ─── Config & Package Files ─────────────────────────────────────────
803
- emitConfigJson() {
805
+ emitConfigJson(compositionName) {
804
806
  const configs = this.agents.map((a) => ({
805
807
  name: a.name,
806
808
  role: a.role,
@@ -813,9 +815,23 @@ var init_AgentInferenceExportTarget = chunkZHPMP447_cjs.__esm({
813
815
  top_k: a.modelConfig.topK
814
816
  },
815
817
  system_prompt: a.modelConfig.systemPrompt,
816
- tools: a.tools.map((t) => t.name)
818
+ tools: a.tools.map((t) => t.name),
819
+ // Structured facts an independent consumer can re-derive without parsing
820
+ // generated code: full tool descriptors (incl. the optional world-model
821
+ // `target` binding) and the agent's state fields. `tools` stays a name
822
+ // array for backward compatibility.
823
+ tool_details: a.tools.map((t) => ({
824
+ name: t.name,
825
+ description: t.description,
826
+ ...t.target ? { target: t.target } : {}
827
+ })),
828
+ state: a.stateProperties.map((s) => ({
829
+ key: s.key,
830
+ type: s.type,
831
+ default: s.defaultValue
832
+ }))
817
833
  }));
818
- return JSON.stringify({ agents: configs }, null, 2);
834
+ return JSON.stringify({ source: compositionName, agents: configs }, null, 2);
819
835
  }
820
836
  emitPackageJson(compositionName) {
821
837
  const pkg = {
@@ -993,5 +1009,5 @@ exports.AgentInferenceExportTarget_exports = AgentInferenceExportTarget_exports;
993
1009
  exports.createAgentInferenceCompiler = createAgentInferenceCompiler;
994
1010
  exports.createPythonAgentInferenceCompiler = createPythonAgentInferenceCompiler;
995
1011
  exports.init_AgentInferenceExportTarget = init_AgentInferenceExportTarget;
996
- //# sourceMappingURL=chunk-BCP4E7MD.cjs.map
997
- //# sourceMappingURL=chunk-BCP4E7MD.cjs.map
1012
+ //# sourceMappingURL=chunk-YMI3ED3B.cjs.map
1013
+ //# sourceMappingURL=chunk-YMI3ED3B.cjs.map
@@ -1,5 +1,52 @@
1
1
  import { VR_TRAITS } from './chunk-2EGGAZT3.js';
2
2
 
3
+ // src/traits/knownTraitSet.ts
4
+ var NATIVE2D_TRAITS = [
5
+ "text",
6
+ "fetch",
7
+ "bind",
8
+ "hook",
9
+ "theme",
10
+ "panel",
11
+ "slot",
12
+ "link",
13
+ "button",
14
+ "image",
15
+ "input",
16
+ "icon",
17
+ "when",
18
+ "each",
19
+ "count_of",
20
+ "form",
21
+ "semantic_layout",
22
+ "semantic_entity",
23
+ "color",
24
+ "content",
25
+ "layout",
26
+ "native_panel",
27
+ "view",
28
+ "page",
29
+ "route",
30
+ "metadata"
31
+ ];
32
+ var CODE_GRAPH_TRAITS = ["route", "file", "reused_in", "uses_stores", "calls_apis"];
33
+ var RUNTIME_DIRECTIVE_TRAITS = [
34
+ "llama_serve",
35
+ "model_fleet",
36
+ "provider_policy",
37
+ "freeze_when",
38
+ "evolve_program"
39
+ ];
40
+ function buildKnownTraitSet(extras = []) {
41
+ return /* @__PURE__ */ new Set([
42
+ ...VR_TRAITS,
43
+ ...NATIVE2D_TRAITS,
44
+ ...CODE_GRAPH_TRAITS,
45
+ ...RUNTIME_DIRECTIVE_TRAITS,
46
+ ...extras.flat()
47
+ ]);
48
+ }
49
+
3
50
  // src/parser/ErrorRecovery.ts
4
51
  var VALID_KEYWORDS = [
5
52
  "composition",
@@ -47,7 +94,7 @@ var VALID_GEOMETRIES = [
47
94
  "particles"
48
95
  ];
49
96
  function validTraits() {
50
- return [...VR_TRAITS];
97
+ return [...buildKnownTraitSet()];
51
98
  }
52
99
  var COMMON_PROPERTIES = [
53
100
  "position",
@@ -523,6 +570,6 @@ var HOLOSCHEMA_KEYWORDS = VALID_KEYWORDS;
523
570
  var HOLOSCHEMA_GEOMETRIES = VALID_GEOMETRIES;
524
571
  var HOLOSCHEMA_PROPERTIES = COMMON_PROPERTIES;
525
572
 
526
- export { ErrorRecovery, HOLOSCHEMA_GEOMETRIES, HOLOSCHEMA_KEYWORDS, HOLOSCHEMA_PROPERTIES, enrichErrorWithSuggestions, generateQuickFixes };
527
- //# sourceMappingURL=chunk-CP7V3ATL.js.map
528
- //# sourceMappingURL=chunk-CP7V3ATL.js.map
573
+ export { CODE_GRAPH_TRAITS, ErrorRecovery, HOLOSCHEMA_GEOMETRIES, HOLOSCHEMA_KEYWORDS, HOLOSCHEMA_PROPERTIES, NATIVE2D_TRAITS, RUNTIME_DIRECTIVE_TRAITS, buildKnownTraitSet, enrichErrorWithSuggestions, generateQuickFixes };
574
+ //# sourceMappingURL=chunk-Z7NUL73U.js.map
575
+ //# sourceMappingURL=chunk-Z7NUL73U.js.map
@@ -5,10 +5,10 @@ var chunkQVJMDVYZ_cjs = require('../chunk-QVJMDVYZ.cjs');
5
5
  var chunk37HHY7RH_cjs = require('../chunk-37HHY7RH.cjs');
6
6
  var chunkXHIV6326_cjs = require('../chunk-XHIV6326.cjs');
7
7
  var chunkR75BSDH7_cjs = require('../chunk-R75BSDH7.cjs');
8
- var chunk656IAS7B_cjs = require('../chunk-656IAS7B.cjs');
9
- require('../chunk-OIBRWLPY.cjs');
8
+ var chunkN7IYRAFG_cjs = require('../chunk-N7IYRAFG.cjs');
9
+ require('../chunk-TKDDIE3T.cjs');
10
10
  require('../chunk-YP5CHEYU.cjs');
11
- require('../chunk-OMNHTCS4.cjs');
11
+ require('../chunk-LHUDAJQT.cjs');
12
12
  require('../chunk-EI3J6LTW.cjs');
13
13
  require('../chunk-36NPLOI4.cjs');
14
14
  require('../chunk-AWXFEAQL.cjs');
@@ -717,7 +717,7 @@ async function runScript(opts) {
717
717
  const source = fs__namespace.readFileSync(filePath, "utf-8");
718
718
  const ext = path__namespace.extname(filePath);
719
719
  console.log(`[holoscript] Running ${path__namespace.basename(filePath)} (target: ${opts.target})`);
720
- const parseResult = chunk656IAS7B_cjs.parse(source);
720
+ const parseResult = chunkN7IYRAFG_cjs.parse(source);
721
721
  const ast = parseResult.ast;
722
722
  if (opts.debug) {
723
723
  console.log(`[holoscript] Parsed ${ast.body?.length || 0} top-level nodes`);
@@ -781,7 +781,7 @@ async function runScript(opts) {
781
781
  console.log(`[holoscript] Re-running ${path__namespace.basename(filePath)}...`);
782
782
  try {
783
783
  const newSource = fs__namespace.readFileSync(filePath, "utf-8");
784
- const newParseResult = chunk656IAS7B_cjs.parse(newSource);
784
+ const newParseResult = chunkN7IYRAFG_cjs.parse(newSource);
785
785
  const newAst = newParseResult.ast;
786
786
  const newRuntime = createHeadlessRuntime(newAst, {
787
787
  profile: opts.profile === "headless" ? HEADLESS_PROFILE : getProfile(opts.profile),
@@ -817,7 +817,7 @@ async function testScript(opts) {
817
817
  }
818
818
  const source = fs__namespace.readFileSync(filePath, "utf-8");
819
819
  console.log(`[holoscript test] Running tests in ${path__namespace.basename(filePath)}`);
820
- const parseResult = chunk656IAS7B_cjs.parse(source);
820
+ const parseResult = chunkN7IYRAFG_cjs.parse(source);
821
821
  const ast = parseResult.ast;
822
822
  const { createHeadlessRuntime, HEADLESS_PROFILE } = await loadEngineRuntime();
823
823
  const profile = HEADLESS_PROFILE;
@@ -900,7 +900,7 @@ function compileScript(opts) {
900
900
  }
901
901
  console.log(`[holoscript compile] @gotcha check passed (no critical violations)`);
902
902
  }
903
- const compileResult = chunk656IAS7B_cjs.parse(source);
903
+ const compileResult = chunkN7IYRAFG_cjs.parse(source);
904
904
  if (!compileResult.success) {
905
905
  console.error(`[holoscript compile] Failed to parse: ${compileResult.errors?.[0]?.message}`);
906
906
  process.exit(1);
@@ -979,7 +979,7 @@ async function deployScript(opts) {
979
979
  const fileName = path__namespace.basename(filePath);
980
980
  const title = path__namespace.basename(filePath, path__namespace.extname(filePath));
981
981
  console.log(`Parsing ${fileName}...`);
982
- const ast = chunk656IAS7B_cjs.parse(source);
982
+ const ast = chunkN7IYRAFG_cjs.parse(source);
983
983
  if (ast.errors && ast.errors.length > 0) {
984
984
  console.error("Parse errors:");
985
985
  for (const err of ast.errors) {
@@ -1344,7 +1344,7 @@ async function daemonScript(opts) {
1344
1344
  const { createDaemonActions, getDaemonFileState } = await import('@holoscript/absorb-service/daemon');
1345
1345
  const repoRoot = findGitRoot(path__namespace.dirname(filePath));
1346
1346
  const source = fs__namespace.readFileSync(filePath, "utf-8");
1347
- const parseResult = chunk656IAS7B_cjs.parse(source);
1347
+ const parseResult = chunkN7IYRAFG_cjs.parse(source);
1348
1348
  if (!parseResult.success || !parseResult.ast) {
1349
1349
  const errors = parseResult.errors?.map((e) => e.message).join(", ") || "unknown";
1350
1350
  console.error(`[daemon] Parse failed: ${errors}`);
@@ -1911,7 +1911,7 @@ async function holoMeshDaemonScript(opts) {
1911
1911
  }
1912
1912
  const rawSource = fs__namespace.readFileSync(filePath, "utf-8");
1913
1913
  const source = rawSource.replace(/^#(version|target|mode)\s+.*/gm, "");
1914
- const parseResult = chunk656IAS7B_cjs.parse(source);
1914
+ const parseResult = chunkN7IYRAFG_cjs.parse(source);
1915
1915
  if (!parseResult.success || !parseResult.ast) {
1916
1916
  const errors = parseResult.errors?.map((e) => e.message).join(", ") || "unknown";
1917
1917
  console.error(`[holomesh-daemon] Parse failed: ${errors}`);
@@ -1979,7 +1979,7 @@ async function holoMeshDaemonScript(opts) {
1979
1979
  const meshConfig = {
1980
1980
  orchestratorUrl: process.env.MCP_ORCHESTRATOR_URL || "https://mcp-orchestrator-production-45f9.up.railway.app",
1981
1981
  apiKey: process.env.HOLOSCRIPT_API_KEY,
1982
- workspace: process.env.HOLOMESH_WORKSPACE || "ai-ecosystem",
1982
+ workspace: process.env.HOLOMESH_WORKSPACE || "default",
1983
1983
  agentName: process.env.HOLOMESH_AGENT_NAME || "holomesh-agent",
1984
1984
  discoveryIntervalMs: 5 * 60 * 1e3,
1985
1985
  inboxIntervalMs: 60 * 1e3,
@@ -3,10 +3,10 @@ import { checkLicenseCompatibility, ethToWei, calculateRevenueDistribution, form
3
3
  import { InteropContext } from '../chunk-TPZ3BN2D.js';
4
4
  import { AbsorbProcessor, ScriptTestRunner, HotReloadWatcher } from '../chunk-2M2DPHKB.js';
5
5
  import { generateProvenance } from '../chunk-4R6SBXDB.js';
6
- import { parse } from '../chunk-7NPZZZD7.js';
7
- import '../chunk-CP7V3ATL.js';
6
+ import { parse } from '../chunk-C73GVAYC.js';
7
+ import '../chunk-Z7NUL73U.js';
8
8
  import '../chunk-UNMVGZVW.js';
9
- import '../chunk-JBYBMBMW.js';
9
+ import '../chunk-FWKEY4LD.js';
10
10
  import '../chunk-2EGGAZT3.js';
11
11
  import '../chunk-YW3I2FQL.js';
12
12
  import '../chunk-7I74JWPW.js';
@@ -1955,7 +1955,7 @@ async function holoMeshDaemonScript(opts) {
1955
1955
  const meshConfig = {
1956
1956
  orchestratorUrl: process.env.MCP_ORCHESTRATOR_URL || "https://mcp-orchestrator-production-45f9.up.railway.app",
1957
1957
  apiKey: process.env.HOLOSCRIPT_API_KEY,
1958
- workspace: process.env.HOLOMESH_WORKSPACE || "ai-ecosystem",
1958
+ workspace: process.env.HOLOMESH_WORKSPACE || "default",
1959
1959
  agentName: process.env.HOLOMESH_AGENT_NAME || "holomesh-agent",
1960
1960
  discoveryIntervalMs: 5 * 60 * 1e3,
1961
1961
  inboxIntervalMs: 60 * 1e3,
@@ -2,30 +2,30 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkBCP4E7MD_cjs = require('../chunk-BCP4E7MD.cjs');
6
- require('../chunk-ZK7KX5CD.cjs');
7
- require('../chunk-7IDJDMPU.cjs');
5
+ var chunkYMI3ED3B_cjs = require('../chunk-YMI3ED3B.cjs');
6
+ require('../chunk-SE2Y5BSL.cjs');
7
+ require('../chunk-7FYSSI3C.cjs');
8
8
  require('../chunk-CI33NINL.cjs');
9
9
  require('../chunk-Q47JEE2C.cjs');
10
10
  require('../chunk-ZHPMP447.cjs');
11
11
 
12
- chunkBCP4E7MD_cjs.init_AgentInferenceExportTarget();
12
+ chunkYMI3ED3B_cjs.init_AgentInferenceExportTarget();
13
13
 
14
14
  Object.defineProperty(exports, "AgentInferenceCompiler", {
15
15
  enumerable: true,
16
- get: function () { return chunkBCP4E7MD_cjs.AgentInferenceCompiler; }
16
+ get: function () { return chunkYMI3ED3B_cjs.AgentInferenceCompiler; }
17
17
  });
18
18
  Object.defineProperty(exports, "createAgentInferenceCompiler", {
19
19
  enumerable: true,
20
- get: function () { return chunkBCP4E7MD_cjs.createAgentInferenceCompiler; }
20
+ get: function () { return chunkYMI3ED3B_cjs.createAgentInferenceCompiler; }
21
21
  });
22
22
  Object.defineProperty(exports, "createPythonAgentInferenceCompiler", {
23
23
  enumerable: true,
24
- get: function () { return chunkBCP4E7MD_cjs.createPythonAgentInferenceCompiler; }
24
+ get: function () { return chunkYMI3ED3B_cjs.createPythonAgentInferenceCompiler; }
25
25
  });
26
26
  Object.defineProperty(exports, "default", {
27
27
  enumerable: true,
28
- get: function () { return chunkBCP4E7MD_cjs.AgentInferenceExportTarget_default; }
28
+ get: function () { return chunkYMI3ED3B_cjs.AgentInferenceExportTarget_default; }
29
29
  });
30
30
  //# sourceMappingURL=agent-inference.cjs.map
31
31
  //# sourceMappingURL=agent-inference.cjs.map
@@ -1,7 +1,7 @@
1
- import { init_AgentInferenceExportTarget } from '../chunk-UGQ3QNV6.js';
2
- export { AgentInferenceCompiler, createAgentInferenceCompiler, createPythonAgentInferenceCompiler, AgentInferenceExportTarget_default as default } from '../chunk-UGQ3QNV6.js';
3
- import '../chunk-DUG3OQAS.js';
4
- import '../chunk-B3CWTCK2.js';
1
+ import { init_AgentInferenceExportTarget } from '../chunk-KOGPVAP6.js';
2
+ export { AgentInferenceCompiler, createAgentInferenceCompiler, createPythonAgentInferenceCompiler, AgentInferenceExportTarget_default as default } from '../chunk-KOGPVAP6.js';
3
+ import '../chunk-YDSNDCV3.js';
4
+ import '../chunk-IA7FCSRY.js';
5
5
  import '../chunk-5CURIYGT.js';
6
6
  import '../chunk-RAN3ECAS.js';
7
7
  import '../chunk-W4GABFCR.js';