@happyvertical/smrt-agents 0.43.9 → 0.44.0
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/dist/index.js +1 -1
- package/dist/manifest.json +36 -2
- package/dist/server/data-surface-actions.d.ts +19 -0
- package/dist/server/data-surface-actions.d.ts.map +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server.js +106 -41
- package/dist/server.js.map +1 -1
- package/dist/smrt-knowledge.json +25 -4
- package/dist/svelte/components/AgentDashboard.svelte +6 -0
- package/dist/svelte/components/AgentDashboard.svelte.d.ts +6 -0
- package/dist/svelte/components/AgentDashboard.svelte.d.ts.map +1 -1
- package/dist/svelte/components/AgentSettingsForm.svelte +4 -0
- package/dist/svelte/components/AgentSettingsForm.svelte.d.ts +4 -0
- package/dist/svelte/components/AgentSettingsForm.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ScheduleStatusBadge.svelte +2 -0
- package/dist/svelte/components/ScheduleStatusBadge.svelte.d.ts +2 -0
- package/dist/svelte/components/ScheduleStatusBadge.svelte.d.ts.map +1 -1
- package/package.json +11 -10
package/dist/smrt-knowledge.json
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
"sensitiveFieldsExcluded": true,
|
|
4
4
|
"generatedAt": "1970-01-01T00:00:00.000Z",
|
|
5
5
|
"packageName": "@happyvertical/smrt-agents",
|
|
6
|
-
"packageVersion": "0.
|
|
6
|
+
"packageVersion": "0.44.0",
|
|
7
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
8
8
|
"agentDocPath": "AGENTS.md",
|
|
9
9
|
"sourceHashes": {
|
|
10
|
-
"manifest": "
|
|
11
|
-
"packageJson": "
|
|
10
|
+
"manifest": "81e22d35ee28e9933a68beb5301bc45d97953086cd573a1f472c825e48214a08",
|
|
11
|
+
"packageJson": "46261f34b93e1986a8279b4b48d8c09dd5e66e5ffbb102b4e115172ba9a6b57a",
|
|
12
12
|
"agents": "6ce7da109ba71d3e767ee0091d7ac28528c422310f5031f46f65e93814ee0a86"
|
|
13
13
|
},
|
|
14
14
|
"exports": [
|
|
@@ -108,6 +108,7 @@
|
|
|
108
108
|
"relationships": [],
|
|
109
109
|
"methods": [
|
|
110
110
|
"_setLoadedRelationship",
|
|
111
|
+
"claimRevision",
|
|
111
112
|
"classifyConstraintError",
|
|
112
113
|
"clearEmbeddings",
|
|
113
114
|
"delete",
|
|
@@ -164,7 +165,8 @@
|
|
|
164
165
|
"toPlainObject",
|
|
165
166
|
"toPublicJSON",
|
|
166
167
|
"validate",
|
|
167
|
-
"withDatabase"
|
|
168
|
+
"withDatabase",
|
|
169
|
+
"withTransaction"
|
|
168
170
|
],
|
|
169
171
|
"methodSignatures": [
|
|
170
172
|
{
|
|
@@ -175,6 +177,14 @@
|
|
|
175
177
|
],
|
|
176
178
|
"returns": "void"
|
|
177
179
|
},
|
|
180
|
+
{
|
|
181
|
+
"name": "claimRevision",
|
|
182
|
+
"async": true,
|
|
183
|
+
"params": [
|
|
184
|
+
"expectedUpdatedAt: Date | string"
|
|
185
|
+
],
|
|
186
|
+
"returns": "Promise"
|
|
187
|
+
},
|
|
178
188
|
{
|
|
179
189
|
"name": "classifyConstraintError",
|
|
180
190
|
"static": true,
|
|
@@ -479,6 +489,9 @@
|
|
|
479
489
|
{
|
|
480
490
|
"name": "save",
|
|
481
491
|
"async": true,
|
|
492
|
+
"params": [
|
|
493
|
+
"options?: SmrtSaveOptions"
|
|
494
|
+
],
|
|
482
495
|
"returns": "any"
|
|
483
496
|
},
|
|
484
497
|
{
|
|
@@ -531,6 +544,14 @@
|
|
|
531
544
|
"operation: Function"
|
|
532
545
|
],
|
|
533
546
|
"returns": "Promise<T>"
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
"name": "withTransaction",
|
|
550
|
+
"async": true,
|
|
551
|
+
"params": [
|
|
552
|
+
"operation: Function"
|
|
553
|
+
],
|
|
554
|
+
"returns": "Promise<T>"
|
|
534
555
|
}
|
|
535
556
|
],
|
|
536
557
|
"tenant": {
|
|
@@ -21,11 +21,17 @@ export interface Props {
|
|
|
21
21
|
loading?: boolean;
|
|
22
22
|
/** Callbacks */
|
|
23
23
|
onScheduleClick?: (schedule: AgentScheduleData) => void;
|
|
24
|
+
/** Fired when a schedule is enabled. */
|
|
24
25
|
onEnable?: (schedule: AgentScheduleData) => void;
|
|
26
|
+
/** Fired when a schedule is disabled. */
|
|
25
27
|
onDisable?: (schedule: AgentScheduleData) => void;
|
|
28
|
+
/** Fired when a schedule is deleted. */
|
|
26
29
|
onDelete?: (schedule: AgentScheduleData) => void;
|
|
30
|
+
/** Fired when a schedule is run immediately. */
|
|
27
31
|
onRunNow?: (schedule: AgentScheduleData) => void;
|
|
32
|
+
/** Fired when the user clicks to create a new schedule. */
|
|
28
33
|
onCreateSchedule?: () => void;
|
|
34
|
+
/** Fired when a run history entry is clicked. */
|
|
29
35
|
onHistoryEntryClick?: (entry: AgentRunHistoryEntry) => void;
|
|
30
36
|
}
|
|
31
37
|
|
|
@@ -8,11 +8,17 @@ export interface Props {
|
|
|
8
8
|
loading?: boolean;
|
|
9
9
|
/** Callbacks */
|
|
10
10
|
onScheduleClick?: (schedule: AgentScheduleData) => void;
|
|
11
|
+
/** Fired when a schedule is enabled. */
|
|
11
12
|
onEnable?: (schedule: AgentScheduleData) => void;
|
|
13
|
+
/** Fired when a schedule is disabled. */
|
|
12
14
|
onDisable?: (schedule: AgentScheduleData) => void;
|
|
15
|
+
/** Fired when a schedule is deleted. */
|
|
13
16
|
onDelete?: (schedule: AgentScheduleData) => void;
|
|
17
|
+
/** Fired when a schedule is run immediately. */
|
|
14
18
|
onRunNow?: (schedule: AgentScheduleData) => void;
|
|
19
|
+
/** Fired when the user clicks to create a new schedule. */
|
|
15
20
|
onCreateSchedule?: () => void;
|
|
21
|
+
/** Fired when a run history entry is clicked. */
|
|
16
22
|
onHistoryEntryClick?: (entry: AgentRunHistoryEntry) => void;
|
|
17
23
|
}
|
|
18
24
|
declare const AgentDashboard: import("svelte").Component<Props, {}, "">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentDashboard.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/AgentDashboard.svelte.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAK3E,MAAM,WAAW,KAAK;IACpB,oBAAoB;IACpB,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAC/B,yBAAyB;IACzB,aAAa,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACvC,oBAAoB;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gBAAgB;IAChB,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACxD,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACjD,SAAS,CAAC,EAAE,CAAC,QAAQ,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAClD,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACjD,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACjD,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAC;CAC7D;AAiJD,QAAA,MAAM,cAAc,2CAAwC,CAAC;AAC7D,KAAK,cAAc,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AACxD,eAAe,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"AgentDashboard.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/AgentDashboard.svelte.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAK3E,MAAM,WAAW,KAAK;IACpB,oBAAoB;IACpB,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAC/B,yBAAyB;IACzB,aAAa,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACvC,oBAAoB;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gBAAgB;IAChB,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACxD,wCAAwC;IACxC,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACjD,yCAAyC;IACzC,SAAS,CAAC,EAAE,CAAC,QAAQ,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAClD,wCAAwC;IACxC,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACjD,gDAAgD;IAChD,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACjD,2DAA2D;IAC3D,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,iDAAiD;IACjD,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAC;CAC7D;AAiJD,QAAA,MAAM,cAAc,2CAAwC,CAAC;AAC7D,KAAK,cAAc,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AACxD,eAAe,cAAc,CAAC"}
|
|
@@ -4,9 +4,13 @@ import { Button } from '@happyvertical/smrt-ui/ui';
|
|
|
4
4
|
import type { AgentSettingsSchema } from '../../ui.js';
|
|
5
5
|
|
|
6
6
|
export interface Props {
|
|
7
|
+
/** Current configuration values. */
|
|
7
8
|
config: Record<string, unknown>;
|
|
9
|
+
/** Schema defining the form fields and their constraints. */
|
|
8
10
|
schema: AgentSettingsSchema;
|
|
11
|
+
/** Fired when the user submits the form with updated values. */
|
|
9
12
|
onSave?: (config: Record<string, unknown>) => Promise<void>;
|
|
13
|
+
/** Disables all inputs and hides the save button when true. */
|
|
10
14
|
readonly?: boolean;
|
|
11
15
|
}
|
|
12
16
|
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import type { AgentSettingsSchema } from '../../ui.js';
|
|
2
2
|
export interface Props {
|
|
3
|
+
/** Current configuration values. */
|
|
3
4
|
config: Record<string, unknown>;
|
|
5
|
+
/** Schema defining the form fields and their constraints. */
|
|
4
6
|
schema: AgentSettingsSchema;
|
|
7
|
+
/** Fired when the user submits the form with updated values. */
|
|
5
8
|
onSave?: (config: Record<string, unknown>) => Promise<void>;
|
|
9
|
+
/** Disables all inputs and hides the save button when true. */
|
|
6
10
|
readonly?: boolean;
|
|
7
11
|
}
|
|
8
12
|
declare const AgentSettingsForm: import("svelte").Component<Props, {}, "">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentSettingsForm.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/AgentSettingsForm.svelte.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAGvD,MAAM,WAAW,KAAK;IACpB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,MAAM,EAAE,mBAAmB,CAAC;IAC5B,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5D,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAuID,QAAA,MAAM,iBAAiB,2CAAwC,CAAC;AAChE,KAAK,iBAAiB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC9D,eAAe,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"AgentSettingsForm.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/AgentSettingsForm.svelte.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAGvD,MAAM,WAAW,KAAK;IACpB,oCAAoC;IACpC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,6DAA6D;IAC7D,MAAM,EAAE,mBAAmB,CAAC;IAC5B,gEAAgE;IAChE,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5D,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAuID,QAAA,MAAM,iBAAiB,2CAAwC,CAAC;AAChE,KAAK,iBAAiB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC9D,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { ScheduleStatus } from '../types.js';
|
|
2
2
|
export interface Props {
|
|
3
|
+
/** The schedule status to display. */
|
|
3
4
|
status: ScheduleStatus;
|
|
5
|
+
/** Badge size. */
|
|
4
6
|
size?: 'sm' | 'md';
|
|
5
7
|
}
|
|
6
8
|
declare const ScheduleStatusBadge: import("svelte").Component<Props, {}, "">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScheduleStatusBadge.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ScheduleStatusBadge.svelte.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAIlD,MAAM,WAAW,KAAK;IACpB,MAAM,EAAE,cAAc,CAAC;IACvB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACpB;AAqBD,QAAA,MAAM,mBAAmB,2CAAwC,CAAC;AAClE,KAAK,mBAAmB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAClE,eAAe,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"ScheduleStatusBadge.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ScheduleStatusBadge.svelte.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAIlD,MAAM,WAAW,KAAK;IACpB,sCAAsC;IACtC,MAAM,EAAE,cAAc,CAAC;IACvB,kBAAkB;IAClB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACpB;AAqBD,QAAA,MAAM,mBAAmB,2CAAwC,CAAC;AAClE,KAAK,mBAAmB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAClE,eAAe,mBAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-agents",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.44.0",
|
|
4
|
+
"smrtJsdoc": "strict",
|
|
4
5
|
"type": "module",
|
|
5
6
|
"smrtRawPrimitives": "strict",
|
|
6
7
|
"description": "Agent framework for building autonomous actors in the SMRT ecosystem",
|
|
@@ -59,14 +60,14 @@
|
|
|
59
60
|
"@happyvertical/ai": "^0.89.4",
|
|
60
61
|
"@happyvertical/files": "^0.89.4",
|
|
61
62
|
"@happyvertical/utils": "^0.89.4",
|
|
62
|
-
"@happyvertical/smrt-config": "0.
|
|
63
|
-
"@happyvertical/smrt-
|
|
64
|
-
"@happyvertical/smrt-
|
|
65
|
-
"@happyvertical/smrt-tenancy": "0.
|
|
66
|
-
"@happyvertical/smrt-secrets": "0.
|
|
67
|
-
"@happyvertical/smrt-types": "0.
|
|
68
|
-
"@happyvertical/smrt-
|
|
69
|
-
"@happyvertical/smrt-
|
|
63
|
+
"@happyvertical/smrt-config": "0.44.0",
|
|
64
|
+
"@happyvertical/smrt-reports": "0.44.0",
|
|
65
|
+
"@happyvertical/smrt-core": "0.44.0",
|
|
66
|
+
"@happyvertical/smrt-tenancy": "0.44.0",
|
|
67
|
+
"@happyvertical/smrt-secrets": "0.44.0",
|
|
68
|
+
"@happyvertical/smrt-types": "0.44.0",
|
|
69
|
+
"@happyvertical/smrt-users": "0.44.0",
|
|
70
|
+
"@happyvertical/smrt-ui": "0.44.0"
|
|
70
71
|
},
|
|
71
72
|
"devDependencies": {
|
|
72
73
|
"@happyvertical/logger": "^0.89.4",
|
|
@@ -83,7 +84,7 @@
|
|
|
83
84
|
"typescript": "5.9.3",
|
|
84
85
|
"vite": "8.1.4",
|
|
85
86
|
"vitest": "4.1.10",
|
|
86
|
-
"@happyvertical/smrt-vitest": "0.
|
|
87
|
+
"@happyvertical/smrt-vitest": "0.44.0"
|
|
87
88
|
},
|
|
88
89
|
"keywords": [
|
|
89
90
|
"agent",
|