@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.
@@ -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 received them, and expires 24 hours after receipt unless promoted.
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>;
@@ -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 received them, and expires 24 hours after receipt unless promoted.
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.25.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",