@valbuild/server 0.150.9 → 0.150.10

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @valbuild/server
2
2
 
3
+ ## 0.150.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [#970](https://github.com/valbuild/val/pull/970) [`bc39500`](https://github.com/valbuild/val/commit/bc395000866ae9cbde8825f53d1bb606e1093c94) Thanks [@freekh](https://github.com/freekh)! - A proposal's shared AI chat now shows other people's turns live: their question appears as they send it, each tool the turn runs shows as a step, and the answer streams in as it is written, instead of turning up a few seconds later. Who is asking is what the content server says rather than a guess. Against a content server that does not relay chats yet, the Studio falls back to reading the chat again every few seconds, as before.
8
+
9
+ An answer's tool steps are now also shown when a chat is opened again or the page is reloaded, for every chat on a content server that keeps them.
10
+
11
+ - Updated dependencies [[`bc39500`](https://github.com/valbuild/val/commit/bc395000866ae9cbde8825f53d1bb606e1093c94)]:
12
+ - @valbuild/ui@0.150.10
13
+ - @valbuild/shared@0.150.10
14
+
3
15
  ## 0.150.9
4
16
 
5
17
  ### Patch Changes
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var core = require('@valbuild/core');
6
- var ValRouterCore = require('../../dist/ValRouterCore-946e45df.cjs.dev.js');
6
+ var ValRouterCore = require('../../dist/ValRouterCore-d151b850.cjs.dev.js');
7
7
  require('@valbuild/shared/internal');
8
8
  require('zod');
9
9
  require('zod-validation-error');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var core = require('@valbuild/core');
6
- var ValRouterCore = require('../../dist/ValRouterCore-97c47cec.cjs.prod.js');
6
+ var ValRouterCore = require('../../dist/ValRouterCore-3ca4d25e.cjs.prod.js');
7
7
  require('@valbuild/shared/internal');
8
8
  require('zod');
9
9
  require('zod-validation-error');
@@ -1,5 +1,5 @@
1
1
  import { DEFAULT_CONTENT_HOST } from '@valbuild/core';
2
- import { j as ValOpsMemory, E as bytesToBase64, y as ValServer, z as createValRequestHandler } from '../../dist/ValRouterCore-2f7ad9b9.esm.js';
2
+ import { j as ValOpsMemory, E as bytesToBase64, y as ValServer, z as createValRequestHandler } from '../../dist/ValRouterCore-4e292ec5.esm.js';
3
3
  import '@valbuild/shared/internal';
4
4
  import 'zod';
5
5
  import 'zod-validation-error';
@@ -8649,7 +8649,9 @@ const ValServer = (valModules, options, callbacks, platform) => {
8649
8649
  role: z.z.string(),
8650
8650
  content: AIMessageContent,
8651
8651
  // Who asked, on a user message (Flow H).
8652
- authorId: z.z.string().nullable().optional()
8652
+ authorId: z.z.string().nullable().optional(),
8653
+ // The tools that question's turn called (Flow H).
8654
+ toolCalls: internal.AIToolCallSummaries
8653
8655
  })),
8654
8656
  nextCursor: z.z.object({
8655
8657
  updatedAt: z.z.string(),
@@ -9122,7 +9124,7 @@ const ValServer = (valModules, options, callbacks, platform) => {
9122
9124
  // TypeScript compiler. See `patch/ts/publishKit.ts`.
9123
9125
  const {
9124
9126
  getJsonEntryAtCommit
9125
- } = await Promise.resolve().then(function () { return require('./getJsonEntryAtCommit-e519549a.cjs.prod.js'); });
9127
+ } = await Promise.resolve().then(function () { return require('./getJsonEntryAtCommit-bd52eb31.cjs.prod.js'); });
9126
9128
  const res = await getJsonEntryAtCommit(serverOps, req.query.commit_sha, req.query.path, req.query.key);
9127
9129
  if (fp.result.isErr(res)) {
9128
9130
  return historyErrorResponse(res.error);
@@ -1,5 +1,5 @@
1
1
  import { Internal, VAL_EXTENSION, extractValModules, computeValModuleShas, ImageSchema, DEFAULT_CONTENT_HOST, hasRemoteFileSchema } from '@valbuild/core';
2
- import { isSchemaSourceFixError, resolveSchemaSourceFixForError, SerializedSchema, AnalyticsBeacon, VAL_ENABLE_COOKIE_NAME, VAL_STATE_COOKIE, VAL_SESSION_COOKIE, newestCommitSha, parseJob, VAL_STUDIO_HEADER, getErrorMessageFromUnknownJson, Api } from '@valbuild/shared/internal';
2
+ import { isSchemaSourceFixError, resolveSchemaSourceFixForError, SerializedSchema, AnalyticsBeacon, VAL_ENABLE_COOKIE_NAME, VAL_STATE_COOKIE, VAL_SESSION_COOKIE, newestCommitSha, parseJob, VAL_STUDIO_HEADER, AIToolCallSummaries, getErrorMessageFromUnknownJson, Api } from '@valbuild/shared/internal';
3
3
  import { z } from 'zod';
4
4
  import { fromError } from 'zod-validation-error';
5
5
  import { result, array } from '@valbuild/core/fp';
@@ -8643,7 +8643,9 @@ const ValServer = (valModules, options, callbacks, platform) => {
8643
8643
  role: z.string(),
8644
8644
  content: AIMessageContent,
8645
8645
  // Who asked, on a user message (Flow H).
8646
- authorId: z.string().nullable().optional()
8646
+ authorId: z.string().nullable().optional(),
8647
+ // The tools that question's turn called (Flow H).
8648
+ toolCalls: AIToolCallSummaries
8647
8649
  })),
8648
8650
  nextCursor: z.object({
8649
8651
  updatedAt: z.string(),
@@ -9116,7 +9118,7 @@ const ValServer = (valModules, options, callbacks, platform) => {
9116
9118
  // TypeScript compiler. See `patch/ts/publishKit.ts`.
9117
9119
  const {
9118
9120
  getJsonEntryAtCommit
9119
- } = await import('./getJsonEntryAtCommit-8a6adc22.esm.js');
9121
+ } = await import('./getJsonEntryAtCommit-75d72adc.esm.js');
9120
9122
  const res = await getJsonEntryAtCommit(serverOps, req.query.commit_sha, req.query.path, req.query.key);
9121
9123
  if (result.isErr(res)) {
9122
9124
  return historyErrorResponse(res.error);
@@ -8649,7 +8649,9 @@ const ValServer = (valModules, options, callbacks, platform) => {
8649
8649
  role: z.z.string(),
8650
8650
  content: AIMessageContent,
8651
8651
  // Who asked, on a user message (Flow H).
8652
- authorId: z.z.string().nullable().optional()
8652
+ authorId: z.z.string().nullable().optional(),
8653
+ // The tools that question's turn called (Flow H).
8654
+ toolCalls: internal.AIToolCallSummaries
8653
8655
  })),
8654
8656
  nextCursor: z.z.object({
8655
8657
  updatedAt: z.z.string(),
@@ -9122,7 +9124,7 @@ const ValServer = (valModules, options, callbacks, platform) => {
9122
9124
  // TypeScript compiler. See `patch/ts/publishKit.ts`.
9123
9125
  const {
9124
9126
  getJsonEntryAtCommit
9125
- } = await Promise.resolve().then(function () { return require('./getJsonEntryAtCommit-757fec21.cjs.dev.js'); });
9127
+ } = await Promise.resolve().then(function () { return require('./getJsonEntryAtCommit-3d5b22a9.cjs.dev.js'); });
9126
9128
  const res = await getJsonEntryAtCommit(serverOps, req.query.commit_sha, req.query.path, req.query.key);
9127
9129
  if (fp.result.isErr(res)) {
9128
9130
  return historyErrorResponse(res.error);
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var ts = require('typescript');
4
- var ValRouterCore = require('./ValRouterCore-946e45df.cjs.dev.js');
4
+ var ValRouterCore = require('./ValRouterCore-d151b850.cjs.dev.js');
5
5
  var fp = require('@valbuild/core/fp');
6
6
  var jsonValuesModule = require('./jsonValuesModule-8ae503a8.cjs.dev.js');
7
7
  require('@valbuild/core');
@@ -1,5 +1,5 @@
1
1
  import ts from 'typescript';
2
- import { F as bytesToUtf8, G as posixPath } from './ValRouterCore-2f7ad9b9.esm.js';
2
+ import { F as bytesToUtf8, G as posixPath } from './ValRouterCore-4e292ec5.esm.js';
3
3
  import { result } from '@valbuild/core/fp';
4
4
  import { a as analyzeValModule, c as analyzeJsonValuesEntries } from './jsonValuesModule-427d68c8.esm.js';
5
5
  import '@valbuild/core';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var ts = require('typescript');
4
- var ValRouterCore = require('./ValRouterCore-97c47cec.cjs.prod.js');
4
+ var ValRouterCore = require('./ValRouterCore-3ca4d25e.cjs.prod.js');
5
5
  var fp = require('@valbuild/core/fp');
6
6
  var jsonValuesModule = require('./jsonValuesModule-d1bb8d8f.cjs.prod.js');
7
7
  require('@valbuild/core');
@@ -12,7 +12,7 @@ var path = require('path');
12
12
  var fs = require('fs');
13
13
  var vm = require('node:vm');
14
14
  var node_module = require('node:module');
15
- var ValRouterCore = require('./ValRouterCore-946e45df.cjs.dev.js');
15
+ var ValRouterCore = require('./ValRouterCore-d151b850.cjs.dev.js');
16
16
  var server = require('@valbuild/ui/server');
17
17
  var z = require('zod');
18
18
  var zodValidationError = require('zod-validation-error');
@@ -12,7 +12,7 @@ var path = require('path');
12
12
  var fs = require('fs');
13
13
  var vm = require('node:vm');
14
14
  var node_module = require('node:module');
15
- var ValRouterCore = require('./ValRouterCore-97c47cec.cjs.prod.js');
15
+ var ValRouterCore = require('./ValRouterCore-3ca4d25e.cjs.prod.js');
16
16
  var server = require('@valbuild/ui/server');
17
17
  var z = require('zod');
18
18
  var zodValidationError = require('zod-validation-error');
@@ -10,8 +10,8 @@ import path from 'path';
10
10
  import fs from 'fs';
11
11
  import vm from 'node:vm';
12
12
  import { Module } from 'node:module';
13
- import { r as resolveExistingJsonPath, f as findNestedJsonValuesRecords, v as validateJsonValuesEntries, i as isJsonValuesRootOp, a as rebaseContentOp, c as classifyJsonValuesOp, V as ValOps, b as bufferFromDataUrl, g as getFieldsForType, u as uploadRemoteFile, d as getFileExt, e as guessMimeTypeFromPath, h as createMetadataFromBuffer, j as ValOpsMemory, k as isHlsMasterPlaylist, s as sumHlsSegmentDurations, p as parseHlsMasterVariants, l as largestHlsVariant, m as fallbackRefOf, n as mapHlsUris, o as movedRemoteHost, q as needsHostCheck, t as rewriteRefHost, w as fallbackRemoteHost, x as checkRemoteFiles, y as ValServer, z as createValRequestHandler, A as getNewJsonEntryPaths, B as formatPatchSourceError } from './ValRouterCore-2f7ad9b9.esm.js';
14
- export { I as InMemoryPatchStore, j as ValOpsMemory, C as askOncePerHost, c as classifyJsonValuesOp, B as formatPatchSourceError, d as getFileExt, D as getSettings, a as rebaseContentOp, u as uploadRemoteFile } from './ValRouterCore-2f7ad9b9.esm.js';
13
+ import { r as resolveExistingJsonPath, f as findNestedJsonValuesRecords, v as validateJsonValuesEntries, i as isJsonValuesRootOp, a as rebaseContentOp, c as classifyJsonValuesOp, V as ValOps, b as bufferFromDataUrl, g as getFieldsForType, u as uploadRemoteFile, d as getFileExt, e as guessMimeTypeFromPath, h as createMetadataFromBuffer, j as ValOpsMemory, k as isHlsMasterPlaylist, s as sumHlsSegmentDurations, p as parseHlsMasterVariants, l as largestHlsVariant, m as fallbackRefOf, n as mapHlsUris, o as movedRemoteHost, q as needsHostCheck, t as rewriteRefHost, w as fallbackRemoteHost, x as checkRemoteFiles, y as ValServer, z as createValRequestHandler, A as getNewJsonEntryPaths, B as formatPatchSourceError } from './ValRouterCore-4e292ec5.esm.js';
14
+ export { I as InMemoryPatchStore, j as ValOpsMemory, C as askOncePerHost, c as classifyJsonValuesOp, B as formatPatchSourceError, d as getFileExt, D as getSettings, a as rebaseContentOp, u as uploadRemoteFile } from './ValRouterCore-4e292ec5.esm.js';
15
15
  import { createUIRequestHandler } from '@valbuild/ui/server';
16
16
  import z$1, { z } from 'zod';
17
17
  import { fromError } from 'zod-validation-error';
package/package.json CHANGED
@@ -27,7 +27,7 @@
27
27
  ],
28
28
  "exports": true
29
29
  },
30
- "version": "0.150.9",
30
+ "version": "0.150.10",
31
31
  "devDependencies": {
32
32
  "@prettier/sync": "^0.6.1",
33
33
  "@types/jest": "^30.0.0",
@@ -41,9 +41,9 @@
41
41
  "typescript": "^6.0.3",
42
42
  "zod": "^4.4.3",
43
43
  "zod-validation-error": "^5.0.0",
44
+ "@valbuild/shared": "0.150.10",
44
45
  "@valbuild/core": "0.150.3",
45
- "@valbuild/shared": "0.150.8",
46
- "@valbuild/ui": "0.150.9"
46
+ "@valbuild/ui": "0.150.10"
47
47
  },
48
48
  "engines": {
49
49
  "node": "^20.19.0 || >=22"