@ai-matrx/records 0.96.13 → 0.97.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.
Files changed (48) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/{client-D7bvxEZW.d.ts → client-MVuEbxKl.d.ts} +6 -0
  3. package/dist/{client-DKgbZUNt.d.cts → client-pFV_8AhM.d.cts} +6 -0
  4. package/dist/core/index.cjs +637 -3
  5. package/dist/core/index.cjs.map +1 -1
  6. package/dist/core/index.d.cts +3 -2
  7. package/dist/core/index.d.ts +3 -2
  8. package/dist/core/index.js +637 -3
  9. package/dist/core/index.js.map +1 -1
  10. package/dist/data/index.cjs +634 -0
  11. package/dist/data/index.cjs.map +1 -1
  12. package/dist/data/index.d.cts +2 -1
  13. package/dist/data/index.d.ts +2 -1
  14. package/dist/data/index.js +634 -0
  15. package/dist/data/index.js.map +1 -1
  16. package/dist/{declareTable-VoNRi_j_.d.cts → declareTable-Bekj6UwK.d.cts} +1 -1
  17. package/dist/{declareTable-D_CiMnXM.d.ts → declareTable-C7zVyyLA.d.ts} +1 -1
  18. package/dist/doors-C43_5HjC.d.ts +487 -0
  19. package/dist/doors-CJPHsohF.d.cts +487 -0
  20. package/dist/questions/index.d.cts +2 -1
  21. package/dist/questions/index.d.ts +2 -1
  22. package/dist/react/index.cjs +637 -3
  23. package/dist/react/index.cjs.map +1 -1
  24. package/dist/react/index.d.cts +338 -5
  25. package/dist/react/index.d.ts +338 -5
  26. package/dist/react/index.js +637 -3
  27. package/dist/react/index.js.map +1 -1
  28. package/dist/scopes/index.cjs +729 -0
  29. package/dist/scopes/index.cjs.map +1 -0
  30. package/dist/scopes/index.d.cts +33 -0
  31. package/dist/scopes/index.d.ts +33 -0
  32. package/dist/scopes/index.js +706 -0
  33. package/dist/scopes/index.js.map +1 -0
  34. package/dist/setup/index.cjs +634 -0
  35. package/dist/setup/index.cjs.map +1 -1
  36. package/dist/setup/index.d.cts +2 -1
  37. package/dist/setup/index.d.ts +2 -1
  38. package/dist/setup/index.js +634 -0
  39. package/dist/setup/index.js.map +1 -1
  40. package/dist/typed-table/index.cjs +634 -0
  41. package/dist/typed-table/index.cjs.map +1 -1
  42. package/dist/typed-table/index.d.cts +3 -2
  43. package/dist/typed-table/index.d.ts +3 -2
  44. package/dist/typed-table/index.js +634 -0
  45. package/dist/typed-table/index.js.map +1 -1
  46. package/dist/views/index.d.cts +2 -1
  47. package/dist/views/index.d.ts +2 -1
  48. package/package.json +14 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Changelog — @ai-matrx/records
2
2
 
3
+ ## 0.97.0
4
+
5
+ New section `@ai-matrx/records/scopes` and `client.scopes` — SCOPES ARE CUSTOM DATA. A scope type is a
6
+ Table kept for context, a scope a Record, a context field a Field (column), a value its cell. The
7
+ `custom.context_*` doors (tree, paged types/scopes, search, scopes by id, fields, values, archived types
8
+ and scopes, system items, templates; type/scope/field create-update-archive-restore; the value write)
9
+ are one call each through the client's own door path, answering `ScopeType` / `Scope` / `ContextField` /
10
+ `ContextValue` in the store's words (`value` is the cell; `references` decodes a reference cell;
11
+ `context_policy` / store `sensitivity` on a field) and refusing in `RecordsError`. Rules:
12
+ `canShapeScopeType`, the slug rules (`sameSlug` reads `practice_areas` = `practice-areas`), and the
13
+ whole-text-in-a-file completion (`completeWholeValues`, `incompleteSaveRefusal`).
14
+
15
+ Consumer action: matrx-frontend `features/scopes` and `@ai-matrx/chat` move onto this section and drop
16
+ their own door calls, adapters and the archived `context.*` row types.
17
+
18
+ ## 0.96.14
19
+
20
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
21
+ `git diff npm/records/v0.96.13..npm/records/v0.96.14 -- apps/shared/records`).
22
+ No source changes intended and no consumer action required.
23
+
3
24
  ## 0.96.13
4
25
 
5
26
  Automatic changed-only republish (docs/metadata drift since the last tag — see
@@ -2,6 +2,7 @@ import { C as ChoiceNudge, T as TableArchiveProgress, a as TableRestoreProgress,
2
2
  import { d as StoreFilter, e as DashboardSummary, f as DashboardBlock, R as RecordFilter, g as AggregateCompare, A as AggregateBucket, h as DashboardRunResult, i as StuckRow, c as AggregateMeasure, j as AggregateRow, k as Subscription, M as MySubscription, l as SubscriptionSpec, m as DigestPreview, n as SavedViewRow, o as SavedViewSpecIn, p as RowTemplateRow } from './subscription-DucBLG-Y.js';
3
3
  import { R as RelationCoordinate, a as RelationWordsManyArgs, b as RelationIcons, c as ReverseColumn, d as ReverseLinksManyArgs, e as ReverseLinks, f as ReverseLinksFieldsArgs, S as SourceArchived } from './relation-Dk9-VzY0.js';
4
4
  import { F as Field, c as FieldPatch, N as NewFieldDeclaration, R as RelationNamesAnswer, d as FieldDuplicated, e as FieldProposal, T as TableProposal, B as ButtonPressed } from './field-D-1OKy5r.js';
5
+ import { q as ScopeDoors } from './doors-C43_5HjC.js';
5
6
  import { F as FormSummary, B as BookingSummary, a as BookingAvailability, b as BookingDeclared, c as FormRoute, d as FormResults } from './rule-BVX1C83I.js';
6
7
  import { F as FormLookOptions, P as PortalSummary, a as PortalArchiveFilter, b as PortalArchiveAnswer, c as PortalTableRef, d as PortalCard, e as PortalConfigInput, f as PortalFormSpec, g as PortalFormAnswer, h as PortalInvitation, i as PortalRevocation, j as PortalPreviewRow } from './portal-DDOmQR1f.js';
7
8
  import { a as RecordsConfig, M as MyLevel } from './ports-YOhD5T7h.js';
@@ -128,6 +129,11 @@ interface MetadataSearchAnswer {
128
129
  interface RecordsClient {
129
130
  /** The config this client was built with, so a screen can show who it is acting as. */
130
131
  readonly config: RecordsConfig;
132
+ /**
133
+ * THE SCOPE DOORS (`custom.context_*`): scope types are Tables kept for context, scopes Records,
134
+ * context fields Fields, values cells. Built from this client's own door path. `@ai-matrx/records/scopes`.
135
+ */
136
+ readonly scopes: ScopeDoors;
131
137
  recordWrite(args: {
132
138
  table_id: Uuid;
133
139
  data: RecordDocument;
@@ -2,6 +2,7 @@ import { C as ChoiceNudge, T as TableArchiveProgress, a as TableRestoreProgress,
2
2
  import { d as StoreFilter, e as DashboardSummary, f as DashboardBlock, R as RecordFilter, g as AggregateCompare, A as AggregateBucket, h as DashboardRunResult, i as StuckRow, c as AggregateMeasure, j as AggregateRow, k as Subscription, M as MySubscription, l as SubscriptionSpec, m as DigestPreview, n as SavedViewRow, o as SavedViewSpecIn, p as RowTemplateRow } from './subscription-ycCVo9e2.cjs';
3
3
  import { R as RelationCoordinate, a as RelationWordsManyArgs, b as RelationIcons, c as ReverseColumn, d as ReverseLinksManyArgs, e as ReverseLinks, f as ReverseLinksFieldsArgs, S as SourceArchived } from './relation-BbPDcXp5.cjs';
4
4
  import { F as Field, c as FieldPatch, N as NewFieldDeclaration, R as RelationNamesAnswer, d as FieldDuplicated, e as FieldProposal, T as TableProposal, B as ButtonPressed } from './field-DjS7iId2.cjs';
5
+ import { q as ScopeDoors } from './doors-CJPHsohF.cjs';
5
6
  import { F as FormSummary, B as BookingSummary, a as BookingAvailability, b as BookingDeclared, c as FormRoute, d as FormResults } from './rule-CbBXN-FW.cjs';
6
7
  import { F as FormLookOptions, P as PortalSummary, a as PortalArchiveFilter, b as PortalArchiveAnswer, c as PortalTableRef, d as PortalCard, e as PortalConfigInput, f as PortalFormSpec, g as PortalFormAnswer, h as PortalInvitation, i as PortalRevocation, j as PortalPreviewRow } from './portal-CUwIsXsx.cjs';
7
8
  import { a as RecordsConfig, M as MyLevel } from './ports-DEkN-WfA.cjs';
@@ -128,6 +129,11 @@ interface MetadataSearchAnswer {
128
129
  interface RecordsClient {
129
130
  /** The config this client was built with, so a screen can show who it is acting as. */
130
131
  readonly config: RecordsConfig;
132
+ /**
133
+ * THE SCOPE DOORS (`custom.context_*`): scope types are Tables kept for context, scopes Records,
134
+ * context fields Fields, values cells. Built from this client's own door path. `@ai-matrx/records/scopes`.
135
+ */
136
+ readonly scopes: ScopeDoors;
131
137
  recordWrite(args: {
132
138
  table_id: Uuid;
133
139
  data: RecordDocument;