@superblocksteam/cli 2.0.6-next.17 → 2.0.6-next.18

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.
package/README.md CHANGED
@@ -14,7 +14,7 @@ $ npm install -g @superblocksteam/cli
14
14
  $ superblocks COMMAND
15
15
  running command...
16
16
  $ superblocks (--version)
17
- @superblocksteam/cli/2.0.6-next.17 linux-x64 node-v20.19.0
17
+ @superblocksteam/cli/2.0.6-next.18 linux-x64 node-v20.19.0
18
18
  $ superblocks --help [COMMAND]
19
19
  USAGE
20
20
  $ superblocks COMMAND
package/dist/index.js CHANGED
@@ -413290,6 +413290,7 @@ var Paths;
413290
413290
  })(Paths || (Paths = {}));
413291
413291
  var LOG_SYSTEM_PROMPT = false;
413292
413292
  var SAVE_LLM_GENERATION_STEPS = false;
413293
+ var SAVE_RAW_LLM_RESPONSE = false;
413293
413294
 
413294
413295
  // ../../../vite-plugin-file-sync/dist/ai-service/integrations/from-prompt-context.js
413295
413296
  init_cjs_shims();
@@ -424481,6 +424482,7 @@ var doLLMGenerating = (clark, { anthropicProvider, appShell, artifactProcessor,
424481
424482
  let artifactChunk = null;
424482
424483
  let stepId = null;
424483
424484
  const flushedAfterArtifacts = [];
424485
+ let rawLLMResponse = "";
424484
424486
  const resultBuffer = new BoltResultBuffer({
424485
424487
  onTypeChange: async (type2) => {
424486
424488
  switch (type2) {
@@ -424590,6 +424592,9 @@ var doLLMGenerating = (clark, { anthropicProvider, appShell, artifactProcessor,
424590
424592
  for await (const chunk of fullStream) {
424591
424593
  switch (chunk.type) {
424592
424594
  case "text-delta":
424595
+ if (SAVE_LLM_GENERATION_STEPS) {
424596
+ rawLLMResponse += chunk.textDelta;
424597
+ }
424593
424598
  resultBuffer.add(chunk.textDelta);
424594
424599
  resultBuffer.maybeFlush();
424595
424600
  break;
@@ -424660,6 +424665,19 @@ var doLLMGenerating = (clark, { anthropicProvider, appShell, artifactProcessor,
424660
424665
  }
424661
424666
  }
424662
424667
  resultBuffer.maybeFlush(true);
424668
+ if (SAVE_RAW_LLM_RESPONSE && rawLLMResponse.length > 0) {
424669
+ try {
424670
+ logger3.debug(`[ai-service] Raw LLM response length: ${rawLLMResponse.length} characters`);
424671
+ void appShell.saveGeneratedArtifact({
424672
+ type: "file",
424673
+ filePath: "raw-llm-response.txt",
424674
+ content: rawLLMResponse
424675
+ }, stepId ?? "unknown-step-id", clark.context.runTimestamp ?? "unknown-run-timestamp");
424676
+ logger3.info(`[ai-service] Raw LLM response saved to debug folder`);
424677
+ } catch (error) {
424678
+ logger3.error("[ai-service] Failed to save raw LLM response:", getErrorMeta(error));
424679
+ }
424680
+ }
424663
424681
  }
424664
424682
  }
424665
424683
  };
@@ -442777,7 +442795,7 @@ var import_util30 = __toESM(require_dist3(), 1);
442777
442795
  // ../sdk/package.json
442778
442796
  var package_default = {
442779
442797
  name: "@superblocksteam/sdk",
442780
- version: "2.0.6-next.17",
442798
+ version: "2.0.6-next.18",
442781
442799
  type: "module",
442782
442800
  description: "Superblocks JS SDK",
442783
442801
  homepage: "https://www.superblocks.com",
@@ -442818,11 +442836,11 @@ var package_default = {
442818
442836
  "@opentelemetry/semantic-conventions": "^1.28.0",
442819
442837
  "@rollup/wasm-node": "^4.35.0",
442820
442838
  "@superblocksteam/bucketeer-sdk": "0.5.0",
442821
- "@superblocksteam/library": "2.0.6-next.17",
442822
- "@superblocksteam/library-shared": "2.0.6-next.17",
442839
+ "@superblocksteam/library": "2.0.6-next.18",
442840
+ "@superblocksteam/library-shared": "2.0.6-next.18",
442823
442841
  "@superblocksteam/shared": "0.9198.0",
442824
- "@superblocksteam/util": "2.0.6-next.17",
442825
- "@superblocksteam/vite-plugin-file-sync": "2.0.6-next.17",
442842
+ "@superblocksteam/util": "2.0.6-next.18",
442843
+ "@superblocksteam/vite-plugin-file-sync": "2.0.6-next.18",
442826
442844
  "@vitejs/plugin-react": "^4.3.4",
442827
442845
  axios: "^1.4.0",
442828
442846
  chokidar: "^4.0.3",
@@ -450394,7 +450412,7 @@ async function startVite({ app, httpServer: httpServer2, root: root2, mode, port
450394
450412
  const isCustomBuildEnabled2 = await isCustomComponentsEnabled();
450395
450413
  const customFolder = path37.join(root2, "custom");
450396
450414
  const draftsFolder = path37.join(root2, ".superblocks");
450397
- const cdnUrl = "https://assets-cdn.superblocks.com/library/2.0.6-next.17";
450415
+ const cdnUrl = "https://assets-cdn.superblocks.com/library/2.0.6-next.18";
450398
450416
  const env3 = loadEnv(mode, root2, "");
450399
450417
  const hmrPort = await getFreePort();
450400
450418
  const hmrOptions = {
@@ -585,5 +585,5 @@
585
585
  "strict": true
586
586
  }
587
587
  },
588
- "version": "2.0.6-next.17"
588
+ "version": "2.0.6-next.18"
589
589
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superblocksteam/cli",
3
- "version": "2.0.6-next.17",
3
+ "version": "2.0.6-next.18",
4
4
  "type": "module",
5
5
  "description": "Official Superblocks CLI",
6
6
  "homepage": "https://www.superblocks.com",
@@ -42,9 +42,9 @@
42
42
  "devDependencies": {
43
43
  "@eslint/js": "^9.16.0",
44
44
  "@oclif/test": "^4.1.11",
45
- "@superblocksteam/sdk": "2.0.6-next.17",
45
+ "@superblocksteam/sdk": "2.0.6-next.18",
46
46
  "@superblocksteam/shared": "0.9198.0",
47
- "@superblocksteam/util": "2.0.6-next.17",
47
+ "@superblocksteam/util": "2.0.6-next.18",
48
48
  "@types/babel__core": "^7.20.0",
49
49
  "@types/chai": "^4",
50
50
  "@types/fs-extra": "^11.0.1",