@segmentstream-cloud/ontology 0.25.0 → 0.26.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/README.md +78 -0
- package/dist/entity.d.ts +53 -2
- package/dist/entity.js +31 -0
- package/dist/errors.d.ts +18 -0
- package/dist/errors.js +8 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/runtime/batch-diagnostics.d.ts +22 -0
- package/dist/runtime/batch-diagnostics.js +89 -0
- package/dist/runtime/batch.d.ts +48 -0
- package/dist/runtime/batch.js +473 -0
- package/dist/runtime/records.d.ts +2 -2
- package/dist/runtime/records.js +25 -6
- package/dist/runtime/sql-runtime.js +125 -5
- package/dist/runtime.d.ts +51 -2
- package/dist/runtime.js +2 -1
- package/dist/service/agent/attachments.d.ts +3 -2
- package/dist/service/agent/attachments.js +4 -2
- package/dist/service/agent/authentication.d.ts +3 -1
- package/dist/service/agent/authentication.js +10 -4
- package/dist/service/errors.js +17 -0
- package/dist/service/schemas.js +4 -0
- package/dist/storage/attachments.d.ts +8 -7
- package/dist/storage/attachments.js +83 -23
- package/dist/storage/tables.d.ts +2 -1
- package/dist/storage/tables.js +2 -1
- package/package.json +4 -2
package/dist/storage/tables.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare const ATTACHMENTS_TABLE = "_agent_attachments";
|
|
|
5
5
|
/**
|
|
6
6
|
* A file a member sent the app's agent: platform metadata, never an ontology record. The bytes are
|
|
7
7
|
* a `_blobs` revision in the same storage as uploads; the row binds them to their owner, the chat
|
|
8
|
-
* and the agent session that
|
|
8
|
+
* and, for private chats, the first agent session that reads them. Group access follows the chat
|
|
9
|
+
* registry's current members. Attachments expire 24 hours after receipt unless promoted.
|
|
9
10
|
*/
|
|
10
11
|
export declare const ATTACHMENT_TABLES_DDL: ReadonlyArray<string>;
|
package/dist/storage/tables.js
CHANGED
|
@@ -58,7 +58,8 @@ export const ATTACHMENTS_TABLE = "_agent_attachments";
|
|
|
58
58
|
/**
|
|
59
59
|
* A file a member sent the app's agent: platform metadata, never an ontology record. The bytes are
|
|
60
60
|
* a `_blobs` revision in the same storage as uploads; the row binds them to their owner, the chat
|
|
61
|
-
* and the agent session that
|
|
61
|
+
* and, for private chats, the first agent session that reads them. Group access follows the chat
|
|
62
|
+
* registry's current members. Attachments expire 24 hours after receipt unless promoted.
|
|
62
63
|
*/
|
|
63
64
|
export const ATTACHMENT_TABLES_DDL = [
|
|
64
65
|
`CREATE TABLE IF NOT EXISTS "${ATTACHMENTS_TABLE}" (
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@segmentstream-cloud/ontology",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"description": "Define a SegmentStream workspace app's ontology: entities, relationships, roles and actions, written with Effect.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "SegmentStream",
|
|
@@ -45,7 +45,9 @@
|
|
|
45
45
|
"lint": "eslint src tests --config ../../eslint.config.mjs",
|
|
46
46
|
"test": "vitest run",
|
|
47
47
|
"test:postgres": "vitest run --config vitest.postgres.config.ts",
|
|
48
|
-
"prepack": "npm run build"
|
|
48
|
+
"prepack": "npm run build",
|
|
49
|
+
"benchmark:batch": "tsx tests/batch/benchmark.ts",
|
|
50
|
+
"benchmark:batch:profile": "tsx tests/batch/profile.ts"
|
|
49
51
|
},
|
|
50
52
|
"dependencies": {
|
|
51
53
|
"@aws-sdk/client-s3": "^3.1148.0",
|