@ai-matrx/records 0.20.0 → 0.24.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/CHANGELOG.md +125 -2
- package/dist/core/index.cjs +179 -17
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +151 -17
- package/dist/core/index.d.ts +151 -17
- package/dist/core/index.js +179 -17
- package/dist/core/index.js.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +302 -1
- package/dist/index.d.ts +302 -1
- package/dist/react/index.cjs +167 -0
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +410 -1
- package/dist/react/index.d.ts +410 -1
- package/dist/react/index.js +167 -0
- package/dist/react/index.js.map +1 -1
- package/package.json +1 -1
package/dist/react/index.cjs
CHANGED
|
@@ -1954,6 +1954,22 @@ var DOORS = {
|
|
|
1954
1954
|
dashboardRun: "dashboard_run",
|
|
1955
1955
|
dashboardStuck: "dashboard_stuck",
|
|
1956
1956
|
dashboardDelete: "dashboard_delete",
|
|
1957
|
+
// PRODUCTS row 10 — "fill in each company's industry and headcount, and keep
|
|
1958
|
+
// it fresh". An Enrichment is not an object of its own: it is a Field saying
|
|
1959
|
+
// `source = agent`, with its instruction, inputs, model, confidence floor and
|
|
1960
|
+
// freshness in `source_config` (AGT-6). `enrichCells` is the one a GRID calls —
|
|
1961
|
+
// the badge data for a whole page in one round trip, because a badge asked per
|
|
1962
|
+
// cell is fifty round trips to draw fifty badges. `enrichPin` is the half of
|
|
1963
|
+
// this product that decides whether anybody ever trusts it: the moment a
|
|
1964
|
+
// person types over an agent-owned cell the store pins it, and the next run
|
|
1965
|
+
// leaves it exactly as they left it.
|
|
1966
|
+
enrichments: "enrichments",
|
|
1967
|
+
enrichDeclare: "enrich_declare",
|
|
1968
|
+
enrichDue: "enrich_due",
|
|
1969
|
+
enrichCells: "enrich_cells",
|
|
1970
|
+
enrichLand: "enrich_land",
|
|
1971
|
+
enrichPin: "enrich_pin",
|
|
1972
|
+
enrichRuns: "enrich_runs",
|
|
1957
1973
|
// PRODUCTS row 4 — "Who changed this price, and can I put it back?" The
|
|
1958
1974
|
// history has been in the store since W3-HIST; until 2026-09-20 the only way
|
|
1959
1975
|
// to ask for it was `io_revisions`, which answers a raw uuid for the author
|
|
@@ -2083,6 +2099,16 @@ var DOORS = {
|
|
|
2083
2099
|
workApprovalMayDecide: "work_approval_may_decide",
|
|
2084
2100
|
workApprovalDecide: "work_approval_decide",
|
|
2085
2101
|
workApprovalRead: "work_approval_read",
|
|
2102
|
+
// PRODUCTS row 13 — checklists and SOP runs.
|
|
2103
|
+
checklistRefusal: "checklist_refusal",
|
|
2104
|
+
checklistDeclare: "checklist_declare",
|
|
2105
|
+
checklistTemplates: "checklist_templates",
|
|
2106
|
+
checklistTemplateShape: "checklist_template_shape",
|
|
2107
|
+
checklistStart: "checklist_start",
|
|
2108
|
+
checklistRun: "checklist_run",
|
|
2109
|
+
checklistRuns: "checklist_runs",
|
|
2110
|
+
checklistStepComplete: "checklist_step_complete",
|
|
2111
|
+
checklistStepRefusal: "checklist_step_refusal",
|
|
2086
2112
|
// Declared here BECAUSE they do not exist yet: naming them is what makes the
|
|
2087
2113
|
// absence visible to `pnpm check:store-registry` and to the suite.
|
|
2088
2114
|
metadataSearch: "metadata_search",
|
|
@@ -2853,6 +2879,67 @@ function createRecordsClient(config) {
|
|
|
2853
2879
|
"ruleEval"
|
|
2854
2880
|
);
|
|
2855
2881
|
},
|
|
2882
|
+
async enrichments(args) {
|
|
2883
|
+
return callDoor(
|
|
2884
|
+
DOORS.enrichments,
|
|
2885
|
+
{ p_organization_id: org, p_table_id: args?.table_id ?? null },
|
|
2886
|
+
"enrichments"
|
|
2887
|
+
);
|
|
2888
|
+
},
|
|
2889
|
+
async enrichDeclare(args) {
|
|
2890
|
+
return callDoor(
|
|
2891
|
+
DOORS.enrichDeclare,
|
|
2892
|
+
{ p_organization_id: org, p_field_id: args.field_id, p_spec: args.spec },
|
|
2893
|
+
"enrichDeclare"
|
|
2894
|
+
);
|
|
2895
|
+
},
|
|
2896
|
+
async enrichDue(args) {
|
|
2897
|
+
return callDoor(
|
|
2898
|
+
DOORS.enrichDue,
|
|
2899
|
+
{
|
|
2900
|
+
p_organization_id: org,
|
|
2901
|
+
p_field_id: args.field_id,
|
|
2902
|
+
p_limit: args.limit ?? 50,
|
|
2903
|
+
p_include_fresh: args.include_fresh ?? false
|
|
2904
|
+
},
|
|
2905
|
+
"enrichDue"
|
|
2906
|
+
);
|
|
2907
|
+
},
|
|
2908
|
+
async enrichCells(args) {
|
|
2909
|
+
return callDoor(
|
|
2910
|
+
DOORS.enrichCells,
|
|
2911
|
+
{
|
|
2912
|
+
p_organization_id: org,
|
|
2913
|
+
p_table_id: args.table_id,
|
|
2914
|
+
p_field_keys: args.field_keys ?? null,
|
|
2915
|
+
p_record_ids: args.record_ids ?? null
|
|
2916
|
+
},
|
|
2917
|
+
"enrichCells"
|
|
2918
|
+
);
|
|
2919
|
+
},
|
|
2920
|
+
async enrichPin(args) {
|
|
2921
|
+
return callDoor(
|
|
2922
|
+
DOORS.enrichPin,
|
|
2923
|
+
{
|
|
2924
|
+
p_organization_id: org,
|
|
2925
|
+
p_record_id: args.record_id,
|
|
2926
|
+
p_field_key: args.field_key,
|
|
2927
|
+
p_pinned: args.pinned ?? true
|
|
2928
|
+
},
|
|
2929
|
+
"enrichPin"
|
|
2930
|
+
);
|
|
2931
|
+
},
|
|
2932
|
+
async enrichRuns(args) {
|
|
2933
|
+
return callDoor(
|
|
2934
|
+
DOORS.enrichRuns,
|
|
2935
|
+
{
|
|
2936
|
+
p_organization_id: org,
|
|
2937
|
+
p_field_id: args?.field_id ?? null,
|
|
2938
|
+
p_limit: args?.limit ?? 50
|
|
2939
|
+
},
|
|
2940
|
+
"enrichRuns"
|
|
2941
|
+
);
|
|
2942
|
+
},
|
|
2856
2943
|
async dashboards(args) {
|
|
2857
2944
|
return callDoor(
|
|
2858
2945
|
DOORS.dashboards,
|
|
@@ -3413,6 +3500,86 @@ function createRecordsClient(config) {
|
|
|
3413
3500
|
"workSlotExpire"
|
|
3414
3501
|
);
|
|
3415
3502
|
},
|
|
3503
|
+
// ── checklists and SOP runs ──────────────────────────────────────────
|
|
3504
|
+
async checklistRefusal({ spec }) {
|
|
3505
|
+
return callDoor(
|
|
3506
|
+
DOORS.checklistRefusal,
|
|
3507
|
+
{ p_spec: spec },
|
|
3508
|
+
"checklistRefusal"
|
|
3509
|
+
);
|
|
3510
|
+
},
|
|
3511
|
+
async checklistDeclare({ spec, template_id = null }) {
|
|
3512
|
+
return callDoor(
|
|
3513
|
+
DOORS.checklistDeclare,
|
|
3514
|
+
{ p_organization_id: org, p_spec: spec, p_template_id: template_id },
|
|
3515
|
+
"checklistDeclare"
|
|
3516
|
+
);
|
|
3517
|
+
},
|
|
3518
|
+
async checklistTemplates(args) {
|
|
3519
|
+
return callDoor(
|
|
3520
|
+
DOORS.checklistTemplates,
|
|
3521
|
+
{
|
|
3522
|
+
p_organization_id: org,
|
|
3523
|
+
p_about_table_id: args?.about_table_id ?? null,
|
|
3524
|
+
p_limit: args?.limit ?? 100
|
|
3525
|
+
},
|
|
3526
|
+
"checklistTemplates"
|
|
3527
|
+
);
|
|
3528
|
+
},
|
|
3529
|
+
async checklistTemplateShape({ template_id }) {
|
|
3530
|
+
return callDoor(
|
|
3531
|
+
DOORS.checklistTemplateShape,
|
|
3532
|
+
{ p_organization_id: org, p_template_id: template_id },
|
|
3533
|
+
"checklistTemplateShape"
|
|
3534
|
+
);
|
|
3535
|
+
},
|
|
3536
|
+
async checklistStart({ template_id, about_record_id = null, roles = {}, startingAt = null }) {
|
|
3537
|
+
return callDoor(
|
|
3538
|
+
DOORS.checklistStart,
|
|
3539
|
+
{
|
|
3540
|
+
p_organization_id: org,
|
|
3541
|
+
p_template_id: template_id,
|
|
3542
|
+
p_about_record_id: about_record_id,
|
|
3543
|
+
p_roles: roles,
|
|
3544
|
+
p_starting_at: startingAt
|
|
3545
|
+
},
|
|
3546
|
+
"checklistStart"
|
|
3547
|
+
);
|
|
3548
|
+
},
|
|
3549
|
+
async checklistRun({ run_id }) {
|
|
3550
|
+
return callDoor(
|
|
3551
|
+
DOORS.checklistRun,
|
|
3552
|
+
{ p_organization_id: org, p_run_id: run_id },
|
|
3553
|
+
"checklistRun"
|
|
3554
|
+
);
|
|
3555
|
+
},
|
|
3556
|
+
async checklistRuns(args) {
|
|
3557
|
+
return callDoor(
|
|
3558
|
+
DOORS.checklistRuns,
|
|
3559
|
+
{
|
|
3560
|
+
p_organization_id: org,
|
|
3561
|
+
p_about_table_id: args?.about_table_id ?? null,
|
|
3562
|
+
p_about_record_id: args?.about_record_id ?? null,
|
|
3563
|
+
p_include_closed: args?.includeClosed ?? true,
|
|
3564
|
+
p_limit: args?.limit ?? 100
|
|
3565
|
+
},
|
|
3566
|
+
"checklistRuns"
|
|
3567
|
+
);
|
|
3568
|
+
},
|
|
3569
|
+
async checklistStepComplete({ step_id, evidence = {} }) {
|
|
3570
|
+
return callDoor(
|
|
3571
|
+
DOORS.checklistStepComplete,
|
|
3572
|
+
{ p_organization_id: org, p_step_id: step_id, p_evidence: evidence },
|
|
3573
|
+
"checklistStepComplete"
|
|
3574
|
+
);
|
|
3575
|
+
},
|
|
3576
|
+
async checklistStepRefusal({ step_id }) {
|
|
3577
|
+
return callDoor(
|
|
3578
|
+
DOORS.checklistStepRefusal,
|
|
3579
|
+
{ p_organization_id: org, p_step_id: step_id },
|
|
3580
|
+
"checklistStepRefusal"
|
|
3581
|
+
);
|
|
3582
|
+
},
|
|
3416
3583
|
// ── the work layer a person actually uses ────────────────────────────
|
|
3417
3584
|
async workInbox(args) {
|
|
3418
3585
|
return callDoor(
|