@happyvertical/smrt-agents 0.47.0 → 0.47.2
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.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +92 -2
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +1 -1
- package/dist/migrations/agent-schedule-slugs.d.ts +30 -0
- package/dist/migrations/agent-schedule-slugs.d.ts.map +1 -0
- package/dist/smrt-knowledge.json +3 -3
- package/package.json +17 -16
package/dist/manifest.json
CHANGED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { DatabaseInterface } from '@happyvertical/sql';
|
|
2
|
+
export declare const AGENT_SCHEDULE_SLUG_BACKFILL = "@happyvertical/smrt-agents:agent-schedule-slugs:v1";
|
|
3
|
+
export declare const AGENT_SCHEDULE_TABLE = "_smrt_agent_schedules";
|
|
4
|
+
export interface AgentScheduleSlugBackfillOptions {
|
|
5
|
+
backfillName?: string;
|
|
6
|
+
packageName?: string;
|
|
7
|
+
lockTimeout?: number;
|
|
8
|
+
statementTimeout?: number;
|
|
9
|
+
}
|
|
10
|
+
export interface AgentScheduleSlugBackfillResult {
|
|
11
|
+
ran: boolean;
|
|
12
|
+
updated: number;
|
|
13
|
+
}
|
|
14
|
+
export interface AgentScheduleSlugBackfillPlan {
|
|
15
|
+
pending: number;
|
|
16
|
+
}
|
|
17
|
+
export declare class AgentScheduleSlugBackfillError extends Error {
|
|
18
|
+
constructor(message: string);
|
|
19
|
+
}
|
|
20
|
+
/** Mirrors SmrtObject.getSlug()'s final id fallback for persisted schedules. */
|
|
21
|
+
export declare function canonicalScheduleSlug(value: unknown): string | null;
|
|
22
|
+
/** Validate the exact legacy schedule identities without mutating the database. */
|
|
23
|
+
export declare function planAgentScheduleSlugMigration(db: DatabaseInterface): Promise<AgentScheduleSlugBackfillPlan>;
|
|
24
|
+
/**
|
|
25
|
+
* Backfill inherited AgentSchedule slugs and enforce the current NOT NULL
|
|
26
|
+
* contract. This is deliberately operator-invoked: it takes an exclusive
|
|
27
|
+
* table lock and never starts or evaluates schedules.
|
|
28
|
+
*/
|
|
29
|
+
export declare function migrateAgentScheduleSlugs(db: DatabaseInterface, options?: AgentScheduleSlugBackfillOptions): Promise<AgentScheduleSlugBackfillResult>;
|
|
30
|
+
//# sourceMappingURL=agent-schedule-slugs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-schedule-slugs.d.ts","sourceRoot":"","sources":["../../src/migrations/agent-schedule-slugs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE5D,eAAO,MAAM,4BAA4B,uDACa,CAAC;AACvD,eAAO,MAAM,oBAAoB,0BAA0B,CAAC;AAE5D,MAAM,WAAW,gCAAgC;IAC/C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,+BAA+B;IAC9C,GAAG,EAAE,OAAO,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,6BAA6B;IAC5C,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,8BAA+B,SAAQ,KAAK;gBAC3C,OAAO,EAAE,MAAM;CAI5B;AAWD,gFAAgF;AAChF,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAOnE;AA6ED,mFAAmF;AACnF,wBAAsB,8BAA8B,CAClD,EAAE,EAAE,iBAAiB,GACpB,OAAO,CAAC,6BAA6B,CAAC,CAGxC;AAED;;;;GAIG;AACH,wBAAsB,yBAAyB,CAC7C,EAAE,EAAE,iBAAiB,EACrB,OAAO,GAAE,gCAAqC,GAC7C,OAAO,CAAC,+BAA+B,CAAC,CA0D1C"}
|
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.47.
|
|
6
|
+
"packageVersion": "0.47.2",
|
|
7
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
8
8
|
"agentDocPath": "AGENTS.md",
|
|
9
9
|
"sourceHashes": {
|
|
10
|
-
"manifest": "
|
|
11
|
-
"packageJson": "
|
|
10
|
+
"manifest": "b22b3a8076b20af6b1c0d4b38ec02ee05496cc01dbc8200ac68794cfee5f0c3a",
|
|
11
|
+
"packageJson": "1d93de23446e4765dd4d3ab72cb09ac82f311e8f98f23360ce5d816ea4197acc",
|
|
12
12
|
"agents": "14f3cf361f649432fe871988e13c8382fed295d2bd16f47a4502433322a5d8ed"
|
|
13
13
|
},
|
|
14
14
|
"exports": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-agents",
|
|
3
|
-
"version": "0.47.
|
|
3
|
+
"version": "0.47.2",
|
|
4
4
|
"smrtJsdoc": "strict",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"smrtRawPrimitives": "strict",
|
|
@@ -57,23 +57,23 @@
|
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@happyvertical/ai": "^0.89.
|
|
61
|
-
"@happyvertical/files": "^0.89.
|
|
62
|
-
"@happyvertical/smrt-config": "0.47.
|
|
63
|
-
"@happyvertical/smrt-core": "0.47.
|
|
64
|
-
"@happyvertical/smrt-playbooks": "0.47.
|
|
65
|
-
"@happyvertical/smrt-reports": "0.47.
|
|
66
|
-
"@happyvertical/smrt-secrets": "0.47.
|
|
67
|
-
"@happyvertical/smrt-tenancy": "0.47.
|
|
68
|
-
"@happyvertical/smrt-types": "0.47.
|
|
69
|
-
"@happyvertical/smrt-ui": "0.47.
|
|
70
|
-
"@happyvertical/smrt-users": "0.47.
|
|
71
|
-
"@happyvertical/utils": "^0.89.
|
|
60
|
+
"@happyvertical/ai": "^0.89.6",
|
|
61
|
+
"@happyvertical/files": "^0.89.6",
|
|
62
|
+
"@happyvertical/smrt-config": "0.47.2",
|
|
63
|
+
"@happyvertical/smrt-core": "0.47.2",
|
|
64
|
+
"@happyvertical/smrt-playbooks": "0.47.2",
|
|
65
|
+
"@happyvertical/smrt-reports": "0.47.2",
|
|
66
|
+
"@happyvertical/smrt-secrets": "0.47.2",
|
|
67
|
+
"@happyvertical/smrt-tenancy": "0.47.2",
|
|
68
|
+
"@happyvertical/smrt-types": "0.47.2",
|
|
69
|
+
"@happyvertical/smrt-ui": "0.47.2",
|
|
70
|
+
"@happyvertical/smrt-users": "0.47.2",
|
|
71
|
+
"@happyvertical/utils": "^0.89.6"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@happyvertical/logger": "^0.89.
|
|
75
|
-
"@happyvertical/smrt-vitest": "0.47.
|
|
76
|
-
"@happyvertical/sql": "^0.89.
|
|
74
|
+
"@happyvertical/logger": "^0.89.6",
|
|
75
|
+
"@happyvertical/smrt-vitest": "0.47.2",
|
|
76
|
+
"@happyvertical/sql": "^0.89.6",
|
|
77
77
|
"@sentry/node": "^10.63.0",
|
|
78
78
|
"@sveltejs/package": "^2.5.8",
|
|
79
79
|
"@sveltejs/vite-plugin-svelte": "^7.1.2",
|
|
@@ -111,6 +111,7 @@
|
|
|
111
111
|
"typecheck": "tsc --noEmit && node ../../scripts/svelte-check-a11y.mjs --tsconfig ./tsconfig.svelte.json",
|
|
112
112
|
"test": "vitest run",
|
|
113
113
|
"test:watch": "vitest",
|
|
114
|
+
"test:postgres": "node ../../scripts/run-with-ci-postgres.mjs -- pnpm exec vitest run src/migrations/__tests__/agent-schedule-slugs-postgres.optional.test.ts",
|
|
114
115
|
"verify:pack": "node ../../scripts/verify-package-types-exports.js ."
|
|
115
116
|
}
|
|
116
117
|
}
|