@happyvertical/smrt-agents 0.34.6 → 0.34.8

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,8 +1,8 @@
1
1
  {
2
2
  "version": "1.0.0",
3
- "timestamp": 1782278475269,
3
+ "timestamp": 1782318287283,
4
4
  "packageName": "@happyvertical/smrt-agents",
5
- "packageVersion": "0.34.6",
5
+ "packageVersion": "0.34.8",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-agents:Agent": {
8
8
  "name": "agent",
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "generatedAt": "2026-06-24T05:21:15.718Z",
3
+ "generatedAt": "2026-06-24T16:24:47.717Z",
4
4
  "packageName": "@happyvertical/smrt-agents",
5
- "packageVersion": "0.34.6",
5
+ "packageVersion": "0.34.8",
6
6
  "sourceManifestPath": "dist/manifest.json",
7
7
  "agentDocPath": "AGENTS.md",
8
8
  "sourceHashes": {
9
- "manifest": "1cc6e5f77b071d249b1822eedb6805a055df4a18d09ba752d70aef5ab1c6f6fb",
10
- "packageJson": "91ef4a0290d3c2a7994922dcd8a259594804ec6f463b0cdb4e4b51e6f0180a02",
9
+ "manifest": "91f189e29e757fd16de57b788ab5c0a251973cd822c41f0686012a70f55e482e",
10
+ "packageJson": "390432e0251ab6c589abca2f87953a81017ac7786a3fa0f6a56b52f043b4dbdd",
11
11
  "agents": "3cdef62db9f57de1f5675726cdc54b3e64e9d39e67ad316904d08212cf046112"
12
12
  },
13
13
  "exports": [
@@ -3,6 +3,7 @@
3
3
  * AgentScheduleForm - Create or edit an agent schedule
4
4
  */
5
5
 
6
+ import { Form, Input, Select } from '@happyvertical/smrt-ui/forms';
6
7
  import { useI18n } from '@happyvertical/smrt-ui/i18n';
7
8
  import { Button, Card } from '@happyvertical/smrt-ui/ui';
8
9
  import { M } from '../i18n.js';
@@ -101,8 +102,8 @@ const timezones = [
101
102
  // Validation
102
103
  const isValid = $derived(agentType.trim() !== '' && cron.trim() !== '');
103
104
 
104
- function handleSubmit(event: Event) {
105
- event.preventDefault();
105
+ function handleSubmit() {
106
+ // The Form primitive calls event.preventDefault() before invoking onsubmit.
106
107
  if (!isValid || loading) return;
107
108
 
108
109
  const data: ScheduleFormData = {
@@ -132,20 +133,21 @@ function handleCronPreset(preset: string) {
132
133
  <h2>{editMode ? 'Edit Schedule' : 'Create Schedule'}</h2>
133
134
  {/snippet}
134
135
 
135
- <form class="schedule-form" onsubmit={handleSubmit}>
136
+ <div class="schedule-form-shell">
137
+ <Form class="schedule-form" onsubmit={handleSubmit}>
136
138
  <div class="form-grid">
137
139
  <!-- Agent Type -->
138
140
  <div class="form-field">
139
141
  <label for="agentType">{t(M['agents.schedule_form.agent_type'])}</label>
140
142
  {#if agentTypes.length > 0}
141
- <select id="agentType" bind:value={agentType} required disabled={loading}>
143
+ <Select id="agentType" bind:value={agentType} required disabled={loading}>
142
144
  <option value="">{t(M['agents.schedule_form.select_agent_type'])}</option>
143
145
  {#each agentTypes as type}
144
146
  <option value={type}>{type}</option>
145
147
  {/each}
146
- </select>
148
+ </Select>
147
149
  {:else}
148
- <input
150
+ <Input
149
151
  type="text"
150
152
  id="agentType"
151
153
  bind:value={agentType}
@@ -159,7 +161,7 @@ function handleCronPreset(preset: string) {
159
161
  <!-- Agent ID (optional) -->
160
162
  <div class="form-field">
161
163
  <label for="agentId">{t(M['agents.schedule_form.agent_id'])}</label>
162
- <input
164
+ <Input
163
165
  type="text"
164
166
  id="agentId"
165
167
  bind:value={agentId}
@@ -172,7 +174,7 @@ function handleCronPreset(preset: string) {
172
174
  <!-- Method -->
173
175
  <div class="form-field">
174
176
  <label for="method">Method</label>
175
- <input
177
+ <Input
176
178
  type="text"
177
179
  id="method"
178
180
  bind:value={method}
@@ -185,7 +187,7 @@ function handleCronPreset(preset: string) {
185
187
  <!-- Cron Expression -->
186
188
  <div class="form-field form-field--full">
187
189
  <label for="cron">{t(M['agents.schedule_form.cron_schedule'])}</label>
188
- <input
190
+ <Input
189
191
  type="text"
190
192
  id="cron"
191
193
  bind:value={cron}
@@ -211,17 +213,17 @@ function handleCronPreset(preset: string) {
211
213
  <!-- Timezone -->
212
214
  <div class="form-field">
213
215
  <label for="timezone">Timezone</label>
214
- <select id="timezone" bind:value={timezone} disabled={loading}>
216
+ <Select id="timezone" bind:value={timezone} disabled={loading}>
215
217
  {#each timezones as tz}
216
218
  <option value={tz}>{tz}</option>
217
219
  {/each}
218
- </select>
220
+ </Select>
219
221
  </div>
220
222
 
221
223
  <!-- Max Concurrent -->
222
224
  <div class="form-field">
223
225
  <label for="maxConcurrent">{t(M['agents.schedule_form.max_concurrent'])}</label>
224
- <input
226
+ <Input
225
227
  type="number"
226
228
  id="maxConcurrent"
227
229
  bind:value={maxConcurrent}
@@ -235,7 +237,7 @@ function handleCronPreset(preset: string) {
235
237
  <!-- Timeout -->
236
238
  <div class="form-field">
237
239
  <label for="timeout">Timeout (ms)</label>
238
- <input
240
+ <Input
239
241
  type="number"
240
242
  id="timeout"
241
243
  bind:value={timeout}
@@ -249,6 +251,7 @@ function handleCronPreset(preset: string) {
249
251
  <!-- Enabled -->
250
252
  <div class="form-field form-field--checkbox">
251
253
  <label>
254
+ <!-- raw-primitive-allow: native checkbox; no Provider-free checkbox primitive (Toggle is a switch with different semantics, CheckboxInput requires a Provider) -->
252
255
  <input type="checkbox" bind:checked={enabled} disabled={loading} />
253
256
  {t(M['agents.schedule_form.enable_schedule_immediately'])}
254
257
  </label>
@@ -265,11 +268,12 @@ function handleCronPreset(preset: string) {
265
268
  {loading ? 'Saving...' : editMode ? 'Update Schedule' : 'Create Schedule'}
266
269
  </Button>
267
270
  </div>
268
- </form>
271
+ </Form>
272
+ </div>
269
273
  </Card>
270
274
 
271
275
  <style>
272
- .schedule-form {
276
+ .schedule-form-shell :global(.schedule-form) {
273
277
  padding: var(--smrt-spacing-sm, 0.5rem) 0;
274
278
  }
275
279
 
@@ -308,28 +312,6 @@ function handleCronPreset(preset: string) {
308
312
  color: var(--smrt-color-on-surface, #1a1c1e);
309
313
  }
310
314
 
311
- .form-field input,
312
- .form-field select {
313
- padding: var(--smrt-spacing-sm, 0.5rem);
314
- border: 1px solid var(--smrt-color-outline-variant, #c4c6cf);
315
- border-radius: var(--smrt-radius-medium, 0.5rem);
316
- font: var(--smrt-typography-body-medium-font, 0.875rem / 1.25 sans-serif);
317
- transition: border-color var(--smrt-duration-short2, 150ms) var(--smrt-easing-standard, ease);
318
- }
319
-
320
- .form-field input:focus,
321
- .form-field select:focus {
322
- outline: none;
323
- border-color: var(--smrt-color-primary, #005ac1);
324
- box-shadow: 0 0 0 3px var(--smrt-color-primary-container, rgba(0, 90, 193, 0.1));
325
- }
326
-
327
- .form-field input:disabled,
328
- .form-field select:disabled {
329
- background: var(--smrt-color-surface-container, #f3f4f6);
330
- cursor: not-allowed;
331
- }
332
-
333
315
  .form-field small {
334
316
  font: var(--smrt-typography-body-small-font, 0.75rem / 1.25 sans-serif);
335
317
  color: var(--smrt-color-on-surface-variant, #43474e);
@@ -350,11 +332,4 @@ function handleCronPreset(preset: string) {
350
332
  padding-top: var(--smrt-spacing-md, 1rem);
351
333
  border-top: 1px solid var(--smrt-color-outline-variant, #c4c6cf);
352
334
  }
353
-
354
- @media (prefers-reduced-motion: reduce) {
355
- .form-field input,
356
- .form-field select {
357
- transition: none;
358
- }
359
- }
360
335
  </style>
@@ -1 +1 @@
1
- {"version":3,"file":"AgentScheduleForm.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/AgentScheduleForm.svelte.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAGpD,MAAM,WAAW,KAAK;IACpB,sCAAsC;IACtC,WAAW,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACxC,4BAA4B;IAC5B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,sBAAsB;IACtB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC5C,sBAAsB;IACtB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,oBAAoB;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gBAAgB;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAsND,QAAA,MAAM,iBAAiB,2CAAwC,CAAC;AAChE,KAAK,iBAAiB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC9D,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"AgentScheduleForm.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/AgentScheduleForm.svelte.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAGpD,MAAM,WAAW,KAAK;IACpB,sCAAsC;IACtC,WAAW,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACxC,4BAA4B;IAC5B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,sBAAsB;IACtB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC5C,sBAAsB;IACtB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,oBAAoB;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gBAAgB;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AA0ND,QAAA,MAAM,iBAAiB,2CAAwC,CAAC;AAChE,KAAK,iBAAiB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC9D,eAAe,iBAAiB,CAAC"}
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-agents",
3
- "version": "0.34.6",
3
+ "version": "0.34.8",
4
4
  "type": "module",
5
- "smrtRawPrimitives": "strict-buttons",
5
+ "smrtRawPrimitives": "strict",
6
6
  "description": "Agent framework for building autonomous actors in the SMRT ecosystem",
7
7
  "author": "HappyVertical",
8
8
  "license": "MIT",
@@ -59,13 +59,13 @@
59
59
  "@happyvertical/ai": "^0.74.7",
60
60
  "@happyvertical/files": "^0.74.7",
61
61
  "@happyvertical/utils": "^0.74.7",
62
- "@happyvertical/smrt-config": "0.34.6",
63
- "@happyvertical/smrt-core": "0.34.6",
64
- "@happyvertical/smrt-secrets": "0.34.6",
65
- "@happyvertical/smrt-tenancy": "0.34.6",
66
- "@happyvertical/smrt-types": "0.34.6",
67
- "@happyvertical/smrt-ui": "0.34.6",
68
- "@happyvertical/smrt-users": "0.34.6"
62
+ "@happyvertical/smrt-config": "0.34.8",
63
+ "@happyvertical/smrt-core": "0.34.8",
64
+ "@happyvertical/smrt-secrets": "0.34.8",
65
+ "@happyvertical/smrt-tenancy": "0.34.8",
66
+ "@happyvertical/smrt-types": "0.34.8",
67
+ "@happyvertical/smrt-ui": "0.34.8",
68
+ "@happyvertical/smrt-users": "0.34.8"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@happyvertical/logger": "^0.74.7",
@@ -82,7 +82,7 @@
82
82
  "typescript": "^5.9.3",
83
83
  "vite": "^7.3.1",
84
84
  "vitest": "^4.0.17",
85
- "@happyvertical/smrt-vitest": "0.34.6"
85
+ "@happyvertical/smrt-vitest": "0.34.8"
86
86
  },
87
87
  "keywords": [
88
88
  "agent",