@absolutejs/artifacts 0.1.0 → 0.1.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/README.md +5 -0
- package/dist/drizzle.js +7 -0
- package/dist/index.js +13 -0
- package/dist/manifest.js +4 -5774
- package/dist/src/manifest.d.ts +3 -0
- package/dist/src/service.d.ts +1 -0
- package/dist/src/store.d.ts +2 -0
- package/package.json +35 -7
package/dist/src/manifest.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export declare const manifest: Omit<import("@absolutejs/manifest").PackageManife
|
|
|
27
27
|
asset: import("./types").ArtifactAssetReference;
|
|
28
28
|
data: Uint8Array<ArrayBufferLike>;
|
|
29
29
|
}>;
|
|
30
|
+
purgeOwner: (ownerId: string) => Promise<number>;
|
|
30
31
|
restore: (ownerId: string, artifactId: string, revision: number, expectedRevision?: number) => Promise<import("./types").ArtifactRecord>;
|
|
31
32
|
unpublish: (ownerId: string, artifactId: string) => Promise<import("./types").ArtifactRecord>;
|
|
32
33
|
update: (ownerId: string, artifactId: string, input: import("./types").ArtifactUpdateInput) => Promise<import("./types").ArtifactRecord>;
|
|
@@ -61,6 +62,7 @@ export declare const manifest: Omit<import("@absolutejs/manifest").PackageManife
|
|
|
61
62
|
asset: import("./types").ArtifactAssetReference;
|
|
62
63
|
data: Uint8Array<ArrayBufferLike>;
|
|
63
64
|
}>;
|
|
65
|
+
purgeOwner: (ownerId: string) => Promise<number>;
|
|
64
66
|
restore: (ownerId: string, artifactId: string, revision: number, expectedRevision?: number) => Promise<import("./types").ArtifactRecord>;
|
|
65
67
|
unpublish: (ownerId: string, artifactId: string) => Promise<import("./types").ArtifactRecord>;
|
|
66
68
|
update: (ownerId: string, artifactId: string, input: import("./types").ArtifactUpdateInput) => Promise<import("./types").ArtifactRecord>;
|
|
@@ -96,6 +98,7 @@ export declare const manifest: Omit<import("@absolutejs/manifest").PackageManife
|
|
|
96
98
|
asset: import("./types").ArtifactAssetReference;
|
|
97
99
|
data: Uint8Array<ArrayBufferLike>;
|
|
98
100
|
}>;
|
|
101
|
+
purgeOwner: (ownerId: string) => Promise<number>;
|
|
99
102
|
restore: (ownerId: string, artifactId: string, revision: number, expectedRevision?: number) => Promise<import("./types").ArtifactRecord>;
|
|
100
103
|
unpublish: (ownerId: string, artifactId: string) => Promise<import("./types").ArtifactRecord>;
|
|
101
104
|
update: (ownerId: string, artifactId: string, input: import("./types").ArtifactUpdateInput) => Promise<import("./types").ArtifactRecord>;
|
package/dist/src/service.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ export declare const createArtifactService: <TDefinitions extends ArtifactKindDe
|
|
|
53
53
|
asset: ArtifactAssetReference;
|
|
54
54
|
data: Uint8Array<ArrayBufferLike>;
|
|
55
55
|
}>;
|
|
56
|
+
purgeOwner: (ownerId: string) => Promise<number>;
|
|
56
57
|
restore: (ownerId: string, artifactId: string, revision: number, expectedRevision?: number) => Promise<ArtifactRecord>;
|
|
57
58
|
unpublish: (ownerId: string, artifactId: string) => Promise<ArtifactRecord>;
|
|
58
59
|
update: (ownerId: string, artifactId: string, input: ArtifactUpdateInput) => Promise<ArtifactRecord>;
|
package/dist/src/store.d.ts
CHANGED
|
@@ -31,6 +31,8 @@ export type ArtifactStore = {
|
|
|
31
31
|
listReferencedAssetIds(): Promise<string[]>;
|
|
32
32
|
markEventProcessed(eventId: string, processedAt: string): Promise<boolean>;
|
|
33
33
|
putIndexingState(ownerId: string, state: ArtifactIndexingState, events?: ArtifactEvent[]): Promise<void>;
|
|
34
|
+
/** Permanently remove every artifact and lifecycle row for one host owner. */
|
|
35
|
+
purgeOwner(ownerId: string): Promise<number>;
|
|
34
36
|
/** Compare, replace current state, and append its revision atomically. */
|
|
35
37
|
save(record: ArtifactRecord, expectedRevision: number, events?: ArtifactEvent[]): Promise<boolean>;
|
|
36
38
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@absolutejs/artifacts",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Typed, versioned artifacts for AI products — schemas, lifecycle, storage, rendering, publishing, revisions, and agent tools without prescribing a database or host.",
|
|
5
5
|
"author": "Alex Kahn",
|
|
6
6
|
"license": "BUSL-1.1",
|
|
@@ -31,7 +31,33 @@
|
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
33
|
"absolutejs": {
|
|
34
|
-
"manifestContract": 2
|
|
34
|
+
"manifestContract": 2,
|
|
35
|
+
"runtimePeers": {
|
|
36
|
+
"@absolutejs/rag": {
|
|
37
|
+
"artifactImports": [],
|
|
38
|
+
"artifactReferences": [],
|
|
39
|
+
"buildExternals": [
|
|
40
|
+
"@absolutejs/rag"
|
|
41
|
+
],
|
|
42
|
+
"optional": true,
|
|
43
|
+
"range": ">=0.1.1 <0.2.0",
|
|
44
|
+
"tested": "0.1.1"
|
|
45
|
+
},
|
|
46
|
+
"drizzle-orm": {
|
|
47
|
+
"artifactImports": [
|
|
48
|
+
"drizzle-orm",
|
|
49
|
+
"drizzle-orm/pg-core"
|
|
50
|
+
],
|
|
51
|
+
"artifactReferences": [],
|
|
52
|
+
"buildExternals": [
|
|
53
|
+
"drizzle-orm",
|
|
54
|
+
"drizzle-orm/*"
|
|
55
|
+
],
|
|
56
|
+
"optional": true,
|
|
57
|
+
"range": ">=1.0.0-rc.4 <2",
|
|
58
|
+
"tested": "1.0.0-rc.4"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
35
61
|
},
|
|
36
62
|
"exports": {
|
|
37
63
|
".": {
|
|
@@ -57,12 +83,12 @@
|
|
|
57
83
|
}
|
|
58
84
|
},
|
|
59
85
|
"dependencies": {
|
|
60
|
-
"@absolutejs/manifest": "^0.
|
|
86
|
+
"@absolutejs/manifest": "^0.7.2",
|
|
61
87
|
"@sinclair/typebox": "^0.34.0",
|
|
62
88
|
"drizzle-typebox": "1.0.0-beta.14-a36c63d"
|
|
63
89
|
},
|
|
64
90
|
"peerDependencies": {
|
|
65
|
-
"@absolutejs/rag": ">=0.0.
|
|
91
|
+
"@absolutejs/rag": ">=0.1.1 <0.2.0",
|
|
66
92
|
"drizzle-orm": ">=1.0.0-rc.4 <2"
|
|
67
93
|
},
|
|
68
94
|
"peerDependenciesMeta": {
|
|
@@ -74,11 +100,13 @@
|
|
|
74
100
|
}
|
|
75
101
|
},
|
|
76
102
|
"devDependencies": {
|
|
77
|
-
"@absolutejs/
|
|
103
|
+
"@absolutejs/ai": "0.0.47",
|
|
104
|
+
"@absolutejs/rag": "0.1.1",
|
|
105
|
+
"@absolutejs/sync": "2.11.0",
|
|
78
106
|
"@electric-sql/pglite": "0.3.14",
|
|
79
|
-
"@types/bun": "
|
|
107
|
+
"@types/bun": "1.3.14",
|
|
80
108
|
"drizzle-orm": "1.0.0-rc.4",
|
|
81
109
|
"prettier": "3.5.3",
|
|
82
|
-
"typescript": "5.
|
|
110
|
+
"typescript": "5.9.3"
|
|
83
111
|
}
|
|
84
112
|
}
|