@happyvertical/smrt-svelte 0.70.0 → 0.70.1

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.
@@ -1,3 +1,8 @@
1
+ <!--
2
+ ConnectAi: connect an AI engine (a coding-agent CLI, ChatGPT or an API key)
3
+ and show whether the app can use it. Onboarding and Settings share it; the
4
+ `variant` prop picks the wording and which engines are shown first.
5
+ -->
1
6
  <script lang="ts">
2
7
  import { Select } from '@happyvertical/smrt-ui/forms';
3
8
  import { useI18n } from '@happyvertical/smrt-ui/i18n';
@@ -1 +1 @@
1
- {"version":3,"file":"ConnectAi.svelte.d.ts","sourceRoot":"","sources":["../../../src/components/connect-ai/ConnectAi.svelte.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAGlE,UAAU,KAAK;IACb,kGAAkG;IAClG,MAAM,EAAE,eAAe,CAAC;IACxB,kFAAkF;IAClF,UAAU,EAAE,MAAM,CAAC;IACnB,oEAAoE;IACpE,OAAO,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACpC,6EAA6E;IAC7E,YAAY,CAAC,EAAE,cAAc,CAAC;IAC9B,wEAAwE;IACxE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3D,yDAAyD;IACzD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,uEAAuE;IACvE,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,kFAAkF;IAClF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAodD,QAAA,MAAM,SAAS,2CAAwC,CAAC;AACxD,KAAK,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAC9C,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"ConnectAi.svelte.d.ts","sourceRoot":"","sources":["../../../src/components/connect-ai/ConnectAi.svelte.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAGlE,UAAU,KAAK;IACb,kGAAkG;IAClG,MAAM,EAAE,eAAe,CAAC;IACxB,kFAAkF;IAClF,UAAU,EAAE,MAAM,CAAC;IACnB,oEAAoE;IACpE,OAAO,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACpC,6EAA6E;IAC7E,YAAY,CAAC,EAAE,cAAc,CAAC;IAC9B,wEAAwE;IACxE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3D,yDAAyD;IACzD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,uEAAuE;IACvE,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,kFAAkF;IAClF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAqdD,QAAA,MAAM,SAAS,2CAAwC,CAAC;AACxD,KAAK,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAC9C,eAAe,SAAS,CAAC"}
@@ -5,6 +5,7 @@ export interface ImportExportProps {
5
5
  fields?: ImportExportField[];
6
6
  /** Use generated fields and the active cookbook policy automatically. */
7
7
  definition?: ScreenCollectionDefinition;
8
+ /** Field policy to apply to `definition`; defaults to the active cookbook's policy. */
8
9
  policy?: ScreenPolicy | null;
9
10
  /** Heading context, for example the collection's plural label. */
10
11
  collectionLabel?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/import-export/props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,0BAA0B,EAC1B,YAAY,EACb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,UAAU,EACV,iBAAiB,EACjB,eAAe,EAChB,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,iBAAiB;IAChC,2FAA2F;IAC3F,MAAM,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC7B,yEAAyE;IACzE,UAAU,CAAC,EAAE,0BAA0B,CAAC;IACxC,MAAM,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IAC7B,kEAAkE;IAClE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACrE;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE;QACnB,MAAM,CAAC,EAAE,WAAW,CAAC;KACtB,KAAK,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IAC9C,sDAAsD;IACtD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qDAAqD;IACrD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wDAAwD;IACxD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2CAA2C;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iFAAiF;IACjF,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;IACpC,0EAA0E;IAC1E,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;IACxC,qEAAqE;IACrE,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;CAChD"}
1
+ {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/import-export/props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,0BAA0B,EAC1B,YAAY,EACb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,UAAU,EACV,iBAAiB,EACjB,eAAe,EAChB,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,iBAAiB;IAChC,2FAA2F;IAC3F,MAAM,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC7B,yEAAyE;IACzE,UAAU,CAAC,EAAE,0BAA0B,CAAC;IACxC,uFAAuF;IACvF,MAAM,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IAC7B,kEAAkE;IAClE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACrE;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE;QACnB,MAAM,CAAC,EAAE,WAAW,CAAC;KACtB,KAAK,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IAC9C,sDAAsD;IACtD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qDAAqD;IACrD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wDAAwD;IACxD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2CAA2C;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iFAAiF;IACjF,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;IACpC,0EAA0E;IAC1E,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;IACxC,qEAAqE;IACrE,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;CAChD"}
@@ -1,3 +1,10 @@
1
+ <!--
2
+ FirstRunOnboarding: the first-run flow for an app with an assistant. It walks
3
+ the owner through a welcome, connecting an AI engine (ConnectAi) and choosing
4
+ a starting template, showing the owner approval a template needs before it
5
+ applies. Progress lives on the server (`client`), so a reload resumes where
6
+ the owner stopped; re-running it from Settings leaves `oncomplete` uncalled.
7
+ -->
1
8
  <script lang="ts">
2
9
  import {
3
10
  AssistantApprovalCard,
@@ -30,14 +37,23 @@ let {
30
37
  backHref = '/settings',
31
38
  aiAlternative,
32
39
  }: {
40
+ /** Reads and advances the saved onboarding progress on the server. */
33
41
  client: OnboardingClient;
42
+ /** Transport for the AI connection step, usually `createConnectAiClient`. */
34
43
  connectAi: ConnectAiClient;
44
+ /** Connection used to show and decide the owner approval a template needs. */
35
45
  approvalTransport: AssistantTransport;
46
+ /** Server-loaded progress the first screen renders; refreshed after each action. */
36
47
  initialState: OnboardingState;
48
+ /** App name shown in the welcome heading. */
37
49
  appName: string;
50
+ /** One-paragraph introduction under the welcome heading. */
38
51
  description: string;
52
+ /** Host's inference settings or API-key form, linked from the AI step. */
39
53
  apiKeyHref: string;
54
+ /** Called once onboarding finishes; not called when re-running it from Settings. */
40
55
  oncomplete: () => void | Promise<void>;
56
+ /** Where the back-to-settings links go. Default `/settings`. */
41
57
  backHref?: string;
42
58
  /** Host-owned alternative connection link, inside the AI step card. */
43
59
  aiAlternative?: InferenceEngineAction;
@@ -3,14 +3,23 @@ import type { InferenceEngineAction } from '@happyvertical/smrt-inference/server
3
3
  import type { ConnectAiClient } from '../connect-ai/types.js';
4
4
  import type { OnboardingClient, OnboardingState } from './types.js';
5
5
  type $$ComponentProps = {
6
+ /** Reads and advances the saved onboarding progress on the server. */
6
7
  client: OnboardingClient;
8
+ /** Transport for the AI connection step, usually `createConnectAiClient`. */
7
9
  connectAi: ConnectAiClient;
10
+ /** Connection used to show and decide the owner approval a template needs. */
8
11
  approvalTransport: AssistantTransport;
12
+ /** Server-loaded progress the first screen renders; refreshed after each action. */
9
13
  initialState: OnboardingState;
14
+ /** App name shown in the welcome heading. */
10
15
  appName: string;
16
+ /** One-paragraph introduction under the welcome heading. */
11
17
  description: string;
18
+ /** Host's inference settings or API-key form, linked from the AI step. */
12
19
  apiKeyHref: string;
20
+ /** Called once onboarding finishes; not called when re-running it from Settings. */
13
21
  oncomplete: () => void | Promise<void>;
22
+ /** Where the back-to-settings links go. Default `/settings`. */
14
23
  backHref?: string;
15
24
  /** Host-owned alternative connection link, inside the AI step card. */
16
25
  aiAlternative?: InferenceEngineAction;
@@ -1 +1 @@
1
- {"version":3,"file":"FirstRunOnboarding.svelte.d.ts","sourceRoot":"","sources":["../../../src/components/onboarding/FirstRunOnboarding.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAOlF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,KAAK,EAEV,gBAAgB,EAChB,eAAe,EAChB,MAAM,YAAY,CAAC;AAEnB,KAAK,gBAAgB,GAAI;IACxB,MAAM,EAAE,gBAAgB,CAAC;IACzB,SAAS,EAAE,eAAe,CAAC;IAC3B,iBAAiB,EAAE,kBAAkB,CAAC;IACtC,YAAY,EAAE,eAAe,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uEAAuE;IACvE,aAAa,CAAC,EAAE,qBAAqB,CAAC;CACvC,CAAC;AAgMF,QAAA,MAAM,kBAAkB,sDAAwC,CAAC;AACjE,KAAK,kBAAkB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAChE,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"FirstRunOnboarding.svelte.d.ts","sourceRoot":"","sources":["../../../src/components/onboarding/FirstRunOnboarding.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAOlF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,KAAK,EAEV,gBAAgB,EAChB,eAAe,EAChB,MAAM,YAAY,CAAC;AAEnB,KAAK,gBAAgB,GAAI;IACxB,sEAAsE;IACtE,MAAM,EAAE,gBAAgB,CAAC;IACzB,6EAA6E;IAC7E,SAAS,EAAE,eAAe,CAAC;IAC3B,8EAA8E;IAC9E,iBAAiB,EAAE,kBAAkB,CAAC;IACtC,oFAAoF;IACpF,YAAY,EAAE,eAAe,CAAC;IAC9B,6CAA6C;IAC7C,OAAO,EAAE,MAAM,CAAC;IAChB,4DAA4D;IAC5D,WAAW,EAAE,MAAM,CAAC;IACpB,0EAA0E;IAC1E,UAAU,EAAE,MAAM,CAAC;IACnB,oFAAoF;IACpF,UAAU,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,gEAAgE;IAChE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uEAAuE;IACvE,aAAa,CAAC,EAAE,qBAAqB,CAAC;CACvC,CAAC;AAiMF,QAAA,MAAM,kBAAkB,sDAAwC,CAAC;AACjE,KAAK,kBAAkB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAChE,eAAe,kBAAkB,CAAC"}
@@ -1,3 +1,9 @@
1
+ <!--
2
+ OnboardingAssistant: the assistant dock for the first-run and settings
3
+ surfaces. It wraps AssistantDock with an introduction that says what the
4
+ assistant can do in this app; when no AI engine is set up it shows a notice
5
+ in place of the dock.
6
+ -->
1
7
  <script lang="ts">
2
8
  import {
3
9
  AiUnavailableNotice,
@@ -18,12 +24,25 @@ let {
18
24
  toolPresentation,
19
25
  introduction,
20
26
  }: {
27
+ /** Thread and message backend for the assistant dock. */
21
28
  transport: AssistantTransport;
29
+ /** The host shell's data-surface registry, passed to the dock. */
22
30
  registry: DataSurfaceRegistry;
31
+ /** Whether the dock is currently visible; its polling pauses while false. Default true. */
23
32
  visible?: boolean;
33
+ /** Where the assistant gets its working context; see `AssistantDock`. */
24
34
  contextMode?: 'server' | 'data-surfaces';
35
+ /** How message text renders: plain `text` (default) or `markdown`. */
25
36
  messageFormat?: 'text' | 'markdown';
37
+ /** `generic` shows a plain summary in place of a tool's own name and arguments. */
26
38
  toolPresentation?: 'generic';
39
+ /**
40
+ * What the assistant can do here, shown until the first message: the lists
41
+ * it can see (the first three are named), the actions it may take (`read`,
42
+ * `create`, `update`, `customize`) and whether an AI engine is configured;
43
+ * `configured: false` shows a connect-AI notice in place of the dock. Omit
44
+ * for no introduction.
45
+ */
27
46
  introduction?: { lists: string[]; actions: string[]; configured: boolean };
28
47
  } = $props();
29
48
  const { t } = useI18n();
@@ -1,12 +1,25 @@
1
1
  import { type AssistantTransport } from '@happyvertical/smrt-chat/svelte';
2
2
  import type { DataSurfaceRegistry } from '@happyvertical/smrt-ui/data-surface';
3
3
  type $$ComponentProps = {
4
+ /** Thread and message backend for the assistant dock. */
4
5
  transport: AssistantTransport;
6
+ /** The host shell's data-surface registry, passed to the dock. */
5
7
  registry: DataSurfaceRegistry;
8
+ /** Whether the dock is currently visible; its polling pauses while false. Default true. */
6
9
  visible?: boolean;
10
+ /** Where the assistant gets its working context; see `AssistantDock`. */
7
11
  contextMode?: 'server' | 'data-surfaces';
12
+ /** How message text renders: plain `text` (default) or `markdown`. */
8
13
  messageFormat?: 'text' | 'markdown';
14
+ /** `generic` shows a plain summary in place of a tool's own name and arguments. */
9
15
  toolPresentation?: 'generic';
16
+ /**
17
+ * What the assistant can do here, shown until the first message: the lists
18
+ * it can see (the first three are named), the actions it may take (`read`,
19
+ * `create`, `update`, `customize`) and whether an AI engine is configured;
20
+ * `configured: false` shows a connect-AI notice in place of the dock. Omit
21
+ * for no introduction.
22
+ */
10
23
  introduction?: {
11
24
  lists: string[];
12
25
  actions: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"OnboardingAssistant.svelte.d.ts","sourceRoot":"","sources":["../../../src/components/onboarding/OnboardingAssistant.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,EAIL,KAAK,kBAAkB,EACxB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAI9E,KAAK,gBAAgB,GAAI;IACxB,SAAS,EAAE,kBAAkB,CAAC;IAC9B,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,QAAQ,GAAG,eAAe,CAAC;IACzC,aAAa,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IACpC,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B,YAAY,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,EAAE,CAAC;QAAC,OAAO,EAAE,MAAM,EAAE,CAAC;QAAC,UAAU,EAAE,OAAO,CAAA;KAAE,CAAC;CAC5E,CAAC;AAiDF,QAAA,MAAM,mBAAmB,sDAAwC,CAAC;AAClE,KAAK,mBAAmB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAClE,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"OnboardingAssistant.svelte.d.ts","sourceRoot":"","sources":["../../../src/components/onboarding/OnboardingAssistant.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,EAIL,KAAK,kBAAkB,EACxB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAI9E,KAAK,gBAAgB,GAAI;IACxB,yDAAyD;IACzD,SAAS,EAAE,kBAAkB,CAAC;IAC9B,kEAAkE;IAClE,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,2FAA2F;IAC3F,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,yEAAyE;IACzE,WAAW,CAAC,EAAE,QAAQ,GAAG,eAAe,CAAC;IACzC,sEAAsE;IACtE,aAAa,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IACpC,mFAAmF;IACnF,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B;;;;;;OAMG;IACH,YAAY,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,EAAE,CAAC;QAAC,OAAO,EAAE,MAAM,EAAE,CAAC;QAAC,UAAU,EAAE,OAAO,CAAA;KAAE,CAAC;CAC5E,CAAC;AAkDF,QAAA,MAAM,mBAAmB,sDAAwC,CAAC;AAClE,KAAK,mBAAmB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAClE,eAAe,mBAAmB,CAAC"}
@@ -1,3 +1,8 @@
1
+ <!--
2
+ OwnerApprovalsSettings: every assistant action waiting for the owner's
3
+ approval, as AssistantApprovalCards. It keeps polling while a hold is
4
+ unsettled, and finds new ones while the list is empty.
5
+ -->
1
6
  <script lang="ts">
2
7
  import {
3
8
  type AssistantApprovalView,
@@ -17,8 +22,11 @@ let {
17
22
  ondecided,
18
23
  onsettled,
19
24
  }: {
25
+ /** Server-loaded approvals to show first; the list then refreshes through `transport`. */
20
26
  approvals?: AssistantApprovalView[];
27
+ /** Connection used to list approvals and send the owner's decision. */
21
28
  transport: AssistantTransport;
29
+ /** Called after an owner decision is accepted, to refresh the surrounding page. */
22
30
  ondecided?: () => void | Promise<void>;
23
31
  /** A known unsettled hold succeeded; invoked once before its card is removed. */
24
32
  onsettled?: () => void | Promise<void>;
@@ -1,8 +1,11 @@
1
1
  import { type AssistantApprovalView } from '@happyvertical/smrt-chat/assistant-turn';
2
2
  import { type AssistantTransport } from '@happyvertical/smrt-chat/svelte';
3
3
  type $$ComponentProps = {
4
+ /** Server-loaded approvals to show first; the list then refreshes through `transport`. */
4
5
  approvals?: AssistantApprovalView[];
6
+ /** Connection used to list approvals and send the owner's decision. */
5
7
  transport: AssistantTransport;
8
+ /** Called after an owner decision is accepted, to refresh the surrounding page. */
6
9
  ondecided?: () => void | Promise<void>;
7
10
  /** A known unsettled hold succeeded; invoked once before its card is removed. */
8
11
  onsettled?: () => void | Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"OwnerApprovalsSettings.svelte.d.ts","sourceRoot":"","sources":["../../../src/components/settings/OwnerApprovalsSettings.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,qBAAqB,EAE3B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,iCAAiC,CAAC;AAKxC,KAAK,gBAAgB,GAAI;IACxB,SAAS,CAAC,EAAE,qBAAqB,EAAE,CAAC;IACpC,SAAS,EAAE,kBAAkB,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,iFAAiF;IACjF,SAAS,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACxC,CAAC;AAiKF,QAAA,MAAM,sBAAsB,sDAAwC,CAAC;AACrE,KAAK,sBAAsB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACxE,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"OwnerApprovalsSettings.svelte.d.ts","sourceRoot":"","sources":["../../../src/components/settings/OwnerApprovalsSettings.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,qBAAqB,EAE3B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,iCAAiC,CAAC;AAKxC,KAAK,gBAAgB,GAAI;IACxB,0FAA0F;IAC1F,SAAS,CAAC,EAAE,qBAAqB,EAAE,CAAC;IACpC,uEAAuE;IACvE,SAAS,EAAE,kBAAkB,CAAC;IAC9B,mFAAmF;IACnF,SAAS,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,iFAAiF;IACjF,SAAS,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACxC,CAAC;AAkKF,QAAA,MAAM,sBAAsB,sDAAwC,CAAC;AACrE,KAAK,sBAAsB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACxE,eAAe,sBAAsB,CAAC"}
@@ -1,3 +1,8 @@
1
+ <!--
2
+ PrebuiltComponentsSettings: the Settings section that turns the prebuilt
3
+ components on or off, lists owner approvals still pending
4
+ (OwnerApprovalsSettings) and links to re-run onboarding.
5
+ -->
1
6
  <script lang="ts">
2
7
  import type { AssistantApprovalView } from '@happyvertical/smrt-chat/assistant-turn';
3
8
  import { type AssistantTransport } from '@happyvertical/smrt-chat/svelte';
@@ -16,11 +21,17 @@ let {
16
21
  ondecided,
17
22
  restartHref = '/onboarding?restart=1',
18
23
  }: {
24
+ /** Whether prebuilt components are currently turned on. */
19
25
  enabled: boolean;
26
+ /** Persists the new setting; reject to put the toggle back and show an error. */
20
27
  onsave: (enabled: boolean) => Promise<void>;
28
+ /** Server-loaded owner approvals still waiting on a decision. */
21
29
  approvals?: AssistantApprovalView[];
30
+ /** Connection for deciding approvals; without it the approvals list is not shown. */
22
31
  transport?: AssistantTransport;
32
+ /** Called after an owner decision is accepted, to refresh the page. */
23
33
  ondecided?: () => void | Promise<void>;
34
+ /** Where "run onboarding again" goes. Default `/onboarding?restart=1`. */
24
35
  restartHref?: string;
25
36
  } = $props();
26
37
  const { t } = useI18n();
@@ -1,11 +1,17 @@
1
1
  import type { AssistantApprovalView } from '@happyvertical/smrt-chat/assistant-turn';
2
2
  import { type AssistantTransport } from '@happyvertical/smrt-chat/svelte';
3
3
  type $$ComponentProps = {
4
+ /** Whether prebuilt components are currently turned on. */
4
5
  enabled: boolean;
6
+ /** Persists the new setting; reject to put the toggle back and show an error. */
5
7
  onsave: (enabled: boolean) => Promise<void>;
8
+ /** Server-loaded owner approvals still waiting on a decision. */
6
9
  approvals?: AssistantApprovalView[];
10
+ /** Connection for deciding approvals; without it the approvals list is not shown. */
7
11
  transport?: AssistantTransport;
12
+ /** Called after an owner decision is accepted, to refresh the page. */
8
13
  ondecided?: () => void | Promise<void>;
14
+ /** Where "run onboarding again" goes. Default `/onboarding?restart=1`. */
9
15
  restartHref?: string;
10
16
  };
11
17
  declare const PrebuiltComponentsSettings: import("svelte").Component<$$ComponentProps, {}, "">;
@@ -1 +1 @@
1
- {"version":3,"file":"PrebuiltComponentsSettings.svelte.d.ts","sourceRoot":"","sources":["../../../src/components/settings/PrebuiltComponentsSettings.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAQzE,KAAK,gBAAgB,GAAI;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,SAAS,CAAC,EAAE,qBAAqB,EAAE,CAAC;IACpC,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AA8DF,QAAA,MAAM,0BAA0B,sDAAwC,CAAC;AACzE,KAAK,0BAA0B,GAAG,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAChF,eAAe,0BAA0B,CAAC"}
1
+ {"version":3,"file":"PrebuiltComponentsSettings.svelte.d.ts","sourceRoot":"","sources":["../../../src/components/settings/PrebuiltComponentsSettings.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAQzE,KAAK,gBAAgB,GAAI;IACxB,2DAA2D;IAC3D,OAAO,EAAE,OAAO,CAAC;IACjB,iFAAiF;IACjF,MAAM,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,iEAAiE;IACjE,SAAS,CAAC,EAAE,qBAAqB,EAAE,CAAC;IACpC,qFAAqF;IACrF,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAC/B,uEAAuE;IACvE,SAAS,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,0EAA0E;IAC1E,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AA+DF,QAAA,MAAM,0BAA0B,sDAAwC,CAAC;AACzE,KAAK,0BAA0B,GAAG,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAChF,eAAe,0BAA0B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-svelte",
3
- "version": "0.70.0",
3
+ "version": "0.70.1",
4
4
  "smrtJsdoc": "strict",
5
5
  "description": "Svelte 5 components for SMRT user management - auth, users, tenants, roles, permissions, groups",
6
6
  "type": "module",
@@ -242,18 +242,18 @@
242
242
  },
243
243
  "dependencies": {
244
244
  "@happyvertical/logger": "^0.116.6",
245
- "@happyvertical/smrt-core": "0.70.0",
246
- "@happyvertical/smrt-fields": "0.70.0",
247
- "@happyvertical/smrt-languages": "0.70.0",
248
- "@happyvertical/smrt-mcp-apps": "0.70.0",
249
- "@happyvertical/smrt-types": "0.70.0",
250
- "@happyvertical/smrt-ui": "0.70.0",
251
- "@happyvertical/smrt-web": "0.70.0",
245
+ "@happyvertical/smrt-core": "0.70.1",
246
+ "@happyvertical/smrt-fields": "0.70.1",
247
+ "@happyvertical/smrt-languages": "0.70.1",
248
+ "@happyvertical/smrt-mcp-apps": "0.70.1",
249
+ "@happyvertical/smrt-types": "0.70.1",
250
+ "@happyvertical/smrt-ui": "0.70.1",
251
+ "@happyvertical/smrt-web": "0.70.1",
252
252
  "@tanstack/db": "^1.0.0-rc.1",
253
253
  "@tanstack/svelte-db": "^1.0.0-rc.1",
254
254
  "esm-env": "^1.2.2",
255
- "@happyvertical/smrt-chat": "0.70.0",
256
- "@happyvertical/smrt-inference": "0.70.0"
255
+ "@happyvertical/smrt-chat": "0.70.1",
256
+ "@happyvertical/smrt-inference": "0.70.1"
257
257
  },
258
258
  "peerDependencies": {
259
259
  "@happyvertical/speech": ">=0.102.5",
@@ -285,12 +285,12 @@
285
285
  }
286
286
  },
287
287
  "devDependencies": {
288
- "@happyvertical/smrt-agents": "0.70.0",
289
- "@happyvertical/smrt-content": "0.70.0",
290
- "@happyvertical/smrt-reports": "0.70.0",
291
- "@happyvertical/smrt-scanner": "0.70.0",
292
- "@happyvertical/smrt-tenancy": "0.70.0",
293
- "@happyvertical/smrt-users": "0.70.0",
288
+ "@happyvertical/smrt-agents": "0.70.1",
289
+ "@happyvertical/smrt-content": "0.70.1",
290
+ "@happyvertical/smrt-reports": "0.70.1",
291
+ "@happyvertical/smrt-scanner": "0.70.1",
292
+ "@happyvertical/smrt-tenancy": "0.70.1",
293
+ "@happyvertical/smrt-users": "0.70.1",
294
294
  "@happyvertical/speech": "^0.116.6",
295
295
  "@sveltejs/package": "^2.5.8",
296
296
  "@sveltejs/vite-plugin-svelte": "^7.3.0",