@valbuild/core 0.153.0 → 0.153.5

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,19 @@
1
1
  # @valbuild/core
2
2
 
3
+ ## 0.153.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1045](https://github.com/valbuild/val/pull/1045) [`6b3f4c5`](https://github.com/valbuild/val/commit/6b3f4c53ad51a86027654f64da5fb332f40df37f) Thanks [@freekh](https://github.com/freekh)! - The assistant can ask you to turn on web search, when it needs it.
8
+
9
+ If **Search the web** (Settings → Assistant) has not been decided yet and a question needs something from outside your project, the assistant now asks you to turn it on. The question comes from Val, with the assistant's reason quoted.
10
+
11
+ - **Turn on web search** turns it on for the project. Searching works from your next message.
12
+ - **Don't turn on** turns it off, and the assistant will not ask again.
13
+ - Closing the card decides nothing.
14
+
15
+ If web search is off, the assistant never asks. The assistant cannot change this setting itself: only you can, from that card or in Settings.
16
+
3
17
  ## 0.153.0
4
18
 
5
19
  ### Patch Changes
@@ -251,11 +251,13 @@ export type AssistantSettingsSource = {
251
251
  /**
252
252
  * Whether the assistant may search the web.
253
253
  *
254
- * Off unless someone turns it on: a search puts text a stranger wrote in
255
- * front of a model that can change this project, and each search is billed
256
- * to the project's own AI key. When it is on, a turn that has searched asks
257
- * the editor before it changes any code (see `webSearchGate.ts` in the
258
- * Studio, and `docs/plans/assistant-web-search.md` in valbuild/home).
254
+ * Three states, like `enabled`. `true`: it searches, and each search is
255
+ * billed to the project's own AI key; after a search it asks the editor
256
+ * before it changes any code. `false`: it does not search, and does not ask.
257
+ * Unset: it does not search, but when an answer needs the web it asks the
258
+ * editor to turn this on, in a card the Studio words, and the answer is
259
+ * written here. The assistant cannot change this field any other way. See
260
+ * `webSearchSetting.ts` and `webSearchGate.ts` in the Studio.
259
261
  */
260
262
  webSearch?: boolean | null;
261
263
  };
@@ -10488,7 +10488,7 @@ function settings() {
10488
10488
  context: string().multiline().maxLength(ASSISTANT_SETTINGS_MAX_LENGTH).nullable().describe("Background the assistant would otherwise have to guess: what this site is, who runs it, names and spellings that matter."),
10489
10489
  tone: string().multiline().maxLength(ASSISTANT_SETTINGS_MAX_LENGTH).nullable().describe("How the assistant should write when it writes content: formal or playful, British or American, how headings are cased."),
10490
10490
  translation: record(locale(), string().multiline().maxLength(ASSISTANT_SETTINGS_MAX_LENGTH).nullable()).nullable().describe("How to translate into each language: dialect, formality, and the words that stay untranslated."),
10491
- webSearch: _boolean().nullable().describe("Whether the assistant may search the web. Off unless turned on. After a search it asks before changing code.")
10491
+ webSearch: _boolean().nullable().describe("Whether the assistant may search the web. Unset: it asks you when it needs to. Off: it never asks. After a search it asks before changing code.")
10492
10492
  }),
10493
10493
  theme: new SettingsSchema({
10494
10494
  accent: color({
@@ -17002,7 +17002,7 @@ function isInlineRender(container) {
17002
17002
 
17003
17003
  var corePackageJson = {
17004
17004
  name: "@valbuild/core",
17005
- version: "0.153.0",
17005
+ version: "0.153.5",
17006
17006
  "private": false,
17007
17007
  description: "Val - supercharged hard-coded content",
17008
17008
  repository: {
@@ -10490,7 +10490,7 @@ function settings() {
10490
10490
  context: string().multiline().maxLength(ASSISTANT_SETTINGS_MAX_LENGTH).nullable().describe("Background the assistant would otherwise have to guess: what this site is, who runs it, names and spellings that matter."),
10491
10491
  tone: string().multiline().maxLength(ASSISTANT_SETTINGS_MAX_LENGTH).nullable().describe("How the assistant should write when it writes content: formal or playful, British or American, how headings are cased."),
10492
10492
  translation: record(locale(), string().multiline().maxLength(ASSISTANT_SETTINGS_MAX_LENGTH).nullable()).nullable().describe("How to translate into each language: dialect, formality, and the words that stay untranslated."),
10493
- webSearch: _boolean().nullable().describe("Whether the assistant may search the web. Off unless turned on. After a search it asks before changing code.")
10493
+ webSearch: _boolean().nullable().describe("Whether the assistant may search the web. Unset: it asks you when it needs to. Off: it never asks. After a search it asks before changing code.")
10494
10494
  }),
10495
10495
  theme: new SettingsSchema({
10496
10496
  accent: color({
@@ -17004,7 +17004,7 @@ function isInlineRender(container) {
17004
17004
 
17005
17005
  var corePackageJson = {
17006
17006
  name: "@valbuild/core",
17007
- version: "0.153.0",
17007
+ version: "0.153.5",
17008
17008
  "private": false,
17009
17009
  description: "Val - supercharged hard-coded content",
17010
17010
  repository: {
@@ -10490,7 +10490,7 @@ function settings() {
10490
10490
  context: string().multiline().maxLength(ASSISTANT_SETTINGS_MAX_LENGTH).nullable().describe("Background the assistant would otherwise have to guess: what this site is, who runs it, names and spellings that matter."),
10491
10491
  tone: string().multiline().maxLength(ASSISTANT_SETTINGS_MAX_LENGTH).nullable().describe("How the assistant should write when it writes content: formal or playful, British or American, how headings are cased."),
10492
10492
  translation: record(locale(), string().multiline().maxLength(ASSISTANT_SETTINGS_MAX_LENGTH).nullable()).nullable().describe("How to translate into each language: dialect, formality, and the words that stay untranslated."),
10493
- webSearch: _boolean().nullable().describe("Whether the assistant may search the web. Off unless turned on. After a search it asks before changing code.")
10493
+ webSearch: _boolean().nullable().describe("Whether the assistant may search the web. Unset: it asks you when it needs to. Off: it never asks. After a search it asks before changing code.")
10494
10494
  }),
10495
10495
  theme: new SettingsSchema({
10496
10496
  accent: color({
@@ -17004,7 +17004,7 @@ function isInlineRender(container) {
17004
17004
 
17005
17005
  var corePackageJson = {
17006
17006
  name: "@valbuild/core",
17007
- version: "0.153.0",
17007
+ version: "0.153.5",
17008
17008
  "private": false,
17009
17009
  description: "Val - supercharged hard-coded content",
17010
17010
  repository: {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var dist_valbuildCore = require('./index-8a50c651.cjs.dev.js');
5
+ var dist_valbuildCore = require('./index-448b7c26.cjs.dev.js');
6
6
  require('./result-bb1f436e.cjs.dev.js');
7
7
 
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var dist_valbuildCore = require('./index-2fecc26e.cjs.prod.js');
5
+ var dist_valbuildCore = require('./index-6a63e2dc.cjs.prod.js');
6
6
  require('./result-787e35f6.cjs.prod.js');
7
7
 
8
8
 
@@ -1,2 +1,2 @@
1
- export { H as ASSISTANT_SETTINGS_MAX_LENGTH, A as ArraySchema, B as BooleanSchema, a4 as CODE_LANGUAGES, a5 as COLOR_FORMATS, a3 as CodeSchema, a2 as ColorSchema, e as DEFAULT_APP_HOST, a6 as DEFAULT_COLOR_FORMAT, D as DEFAULT_CONTENT_HOST, u as DEFAULT_FONT_ACCEPT, f as DEFAULT_STATIC_HOST, o as DEFAULT_VAL_REMOTE_HOST, x as DEFAULT_VIDEO_ACCEPT, y as DEFAULT_VIDEO_RENDITIONS, z as DEFAULT_VIDEO_SEGMENT_DURATION, C as DateSchema, a7 as DateTimeSchema, ad as DiscriminatedUnionSchema, ae as EnumSchema, F as FATAL_ERROR_TYPES, v as FONT_MIME_TYPES, t as FileSchema, G as GenericSelector, r as ImageSchema, I as Internal, a8 as KeyOfSchema, af as LiteralSchema, Z as LocaleSchema, M as ModuleFilePathSep, N as NumberSchema, O as ObjectSchema, R as RecordSchema, ac as RichTextSchema, ab as RouteSchema, Q as SETTINGS_MODULE_CONVENTION, S as Schema, E as SettingsSchema, q as StringSchema, T as THEME_LOGO_DIRECTORY, K as THEME_RADIUS_LENGTHS, J as THEME_RADIUS_STEPS, av as UNSAFE_URL_SCHEMES, V as VAL_EXTENSION, a9 as ValViewSchema, w as VideoSchema, L as assistantAvailability, k as computeSchemaSha, j as computeSourcesSha, h as computeValModuleShas, $ as declaredKeySetOf, p as derefPatch, ar as describeSchemeRejection, ag as deserializeSchema, a1 as discriminatedUnionBranchOf, g as extractValModules, ao as getSourcePathFromRoute, n as hasMediaSchema, l as hasRemoteFileSchema, i as initVal, as as isCheckableScheme, ai as isInlineRender, ap as isPageRouter, U as isRootModuleFilePath, aa as isValViewSource, Y as localeOfValue, X as localeTagError, an as matchRoutePattern, a0 as missingDeclaredKeys, m as modules, aj as parseNextJsRoutePattern, ak as parseTanStackRoutePattern, ah as previewScope, at as rejectScheme, W as resolveSettingsModule, aq as routePatternOf, au as schemeOf, al as tanStackSegmentsOfRoutePath, am as validateUrlAgainstPattern } from './index-d44e8db9.esm.js';
1
+ export { H as ASSISTANT_SETTINGS_MAX_LENGTH, A as ArraySchema, B as BooleanSchema, a4 as CODE_LANGUAGES, a5 as COLOR_FORMATS, a3 as CodeSchema, a2 as ColorSchema, e as DEFAULT_APP_HOST, a6 as DEFAULT_COLOR_FORMAT, D as DEFAULT_CONTENT_HOST, u as DEFAULT_FONT_ACCEPT, f as DEFAULT_STATIC_HOST, o as DEFAULT_VAL_REMOTE_HOST, x as DEFAULT_VIDEO_ACCEPT, y as DEFAULT_VIDEO_RENDITIONS, z as DEFAULT_VIDEO_SEGMENT_DURATION, C as DateSchema, a7 as DateTimeSchema, ad as DiscriminatedUnionSchema, ae as EnumSchema, F as FATAL_ERROR_TYPES, v as FONT_MIME_TYPES, t as FileSchema, G as GenericSelector, r as ImageSchema, I as Internal, a8 as KeyOfSchema, af as LiteralSchema, Z as LocaleSchema, M as ModuleFilePathSep, N as NumberSchema, O as ObjectSchema, R as RecordSchema, ac as RichTextSchema, ab as RouteSchema, Q as SETTINGS_MODULE_CONVENTION, S as Schema, E as SettingsSchema, q as StringSchema, T as THEME_LOGO_DIRECTORY, K as THEME_RADIUS_LENGTHS, J as THEME_RADIUS_STEPS, av as UNSAFE_URL_SCHEMES, V as VAL_EXTENSION, a9 as ValViewSchema, w as VideoSchema, L as assistantAvailability, k as computeSchemaSha, j as computeSourcesSha, h as computeValModuleShas, $ as declaredKeySetOf, p as derefPatch, ar as describeSchemeRejection, ag as deserializeSchema, a1 as discriminatedUnionBranchOf, g as extractValModules, ao as getSourcePathFromRoute, n as hasMediaSchema, l as hasRemoteFileSchema, i as initVal, as as isCheckableScheme, ai as isInlineRender, ap as isPageRouter, U as isRootModuleFilePath, aa as isValViewSource, Y as localeOfValue, X as localeTagError, an as matchRoutePattern, a0 as missingDeclaredKeys, m as modules, aj as parseNextJsRoutePattern, ak as parseTanStackRoutePattern, ah as previewScope, at as rejectScheme, W as resolveSettingsModule, aq as routePatternOf, au as schemeOf, al as tanStackSegmentsOfRoutePath, am as validateUrlAgainstPattern } from './index-3d811c89.esm.js';
2
2
  import './result-daff1cae.esm.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valbuild/core",
3
- "version": "0.153.0",
3
+ "version": "0.153.5",
4
4
  "private": false,
5
5
  "description": "Val - supercharged hard-coded content",
6
6
  "repository": {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var dist_valbuildCore = require('../../dist/index-8a50c651.cjs.dev.js');
5
+ var dist_valbuildCore = require('../../dist/index-448b7c26.cjs.dev.js');
6
6
  var result = require('../../dist/result-bb1f436e.cjs.dev.js');
7
7
  var util = require('../../dist/util-b213092b.cjs.dev.js');
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var dist_valbuildCore = require('../../dist/index-2fecc26e.cjs.prod.js');
5
+ var dist_valbuildCore = require('../../dist/index-6a63e2dc.cjs.prod.js');
6
6
  var result = require('../../dist/result-787e35f6.cjs.prod.js');
7
7
  var util = require('../../dist/util-030d8a1f.cjs.prod.js');
8
8
 
@@ -1,5 +1,5 @@
1
- import { _ as _typeof, a as _slicedToArray, P as PatchError, s as splitModuleFilePathAndModulePath, b as _createClass, c as _classCallCheck, d as _toConsumableArray } from '../../dist/index-d44e8db9.esm.js';
2
- export { P as PatchError } from '../../dist/index-d44e8db9.esm.js';
1
+ import { _ as _typeof, a as _slicedToArray, P as PatchError, s as splitModuleFilePathAndModulePath, b as _createClass, c as _classCallCheck, d as _toConsumableArray } from '../../dist/index-3d811c89.esm.js';
2
+ export { P as PatchError } from '../../dist/index-3d811c89.esm.js';
3
3
  import { f as isNonEmpty, e as err, o as ok, m as map, g as flatMap, i as isErr, h as flatMapReduce, j as filterOrElse, k as mapErr, l as map$1, n as all, p as flatten, q as allT } from '../../dist/result-daff1cae.esm.js';
4
4
  import { p as pipe } from '../../dist/util-18613e99.esm.js';
5
5