@stigmer/server 3.38.2 → 3.39.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/dist/domain/agent/controller.d.ts +2 -2
- package/dist/domain/agent/controller.d.ts.map +1 -1
- package/dist/domain/agent/controller.js +7 -3
- package/dist/domain/agent/controller.js.map +1 -1
- package/dist/domain/agentchannel/controller.d.ts +2 -2
- package/dist/domain/agentchannel/controller.d.ts.map +1 -1
- package/dist/domain/agentchannel/controller.js +10 -5
- package/dist/domain/agentchannel/controller.js.map +1 -1
- package/dist/domain/agentexecution/controller.js +7 -3
- package/dist/domain/agentexecution/controller.js.map +1 -1
- package/dist/domain/agentexecution/update-status.d.ts +9 -2
- package/dist/domain/agentexecution/update-status.d.ts.map +1 -1
- package/dist/domain/agentexecution/update-status.js +28 -5
- package/dist/domain/agentexecution/update-status.js.map +1 -1
- package/dist/domain/agentexecution/validate-thinking-mode.d.ts +31 -21
- package/dist/domain/agentexecution/validate-thinking-mode.d.ts.map +1 -1
- package/dist/domain/agentexecution/validate-thinking-mode.js +61 -18
- package/dist/domain/agentexecution/validate-thinking-mode.js.map +1 -1
- package/dist/domain/agentinstance/controller.d.ts +2 -2
- package/dist/domain/agentinstance/controller.d.ts.map +1 -1
- package/dist/domain/agentinstance/controller.js +7 -3
- package/dist/domain/agentinstance/controller.js.map +1 -1
- package/dist/domain/agentshare/controller.d.ts +2 -2
- package/dist/domain/agentshare/controller.d.ts.map +1 -1
- package/dist/domain/agentshare/controller.js +7 -3
- package/dist/domain/agentshare/controller.js.map +1 -1
- package/dist/domain/artifact/controller.d.ts.map +1 -1
- package/dist/domain/artifact/controller.js +9 -6
- package/dist/domain/artifact/controller.js.map +1 -1
- package/dist/domain/environment/controller.d.ts +2 -2
- package/dist/domain/environment/controller.js +7 -3
- package/dist/domain/environment/controller.js.map +1 -1
- package/dist/domain/environment/steps.d.ts +2 -1
- package/dist/domain/environment/steps.d.ts.map +1 -1
- package/dist/domain/environment/steps.js +10 -7
- package/dist/domain/environment/steps.js.map +1 -1
- package/dist/domain/organization/controller.d.ts.map +1 -1
- package/dist/domain/organization/controller.js +33 -14
- package/dist/domain/organization/controller.js.map +1 -1
- package/dist/domain/organization/slug-ledger.d.ts +86 -0
- package/dist/domain/organization/slug-ledger.d.ts.map +1 -0
- package/dist/domain/organization/slug-ledger.js +128 -0
- package/dist/domain/organization/slug-ledger.js.map +1 -0
- package/dist/domain/organization/steps.d.ts +12 -3
- package/dist/domain/organization/steps.d.ts.map +1 -1
- package/dist/domain/organization/steps.js +28 -6
- package/dist/domain/organization/steps.js.map +1 -1
- package/dist/domain/workflow/registry/data/model-registry.json +23 -14
- package/dist/domain/workflow/registry/model-registry-store.d.ts +14 -3
- package/dist/domain/workflow/registry/model-registry-store.d.ts.map +1 -1
- package/dist/domain/workflow/registry/model-registry-store.js +14 -3
- package/dist/domain/workflow/registry/model-registry-store.js.map +1 -1
- package/dist/extensions/gate-slots.d.ts +7 -5
- package/dist/extensions/gate-slots.d.ts.map +1 -1
- package/dist/extensions/gate-slots.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/pipeline/errors.d.ts +8 -0
- package/dist/pipeline/errors.d.ts.map +1 -1
- package/dist/pipeline/errors.js +19 -0
- package/dist/pipeline/errors.js.map +1 -1
- package/dist/store/interface.d.ts +67 -0
- package/dist/store/interface.d.ts.map +1 -1
- package/dist/store/interface.js.map +1 -1
- package/dist/store/organization-slug-history.d.ts +71 -0
- package/dist/store/organization-slug-history.d.ts.map +1 -0
- package/dist/store/organization-slug-history.js +88 -0
- package/dist/store/organization-slug-history.js.map +1 -0
- package/dist/store/postgres/migrations.d.ts +3 -1
- package/dist/store/postgres/migrations.d.ts.map +1 -1
- package/dist/store/postgres/migrations.js +69 -1
- package/dist/store/postgres/migrations.js.map +1 -1
- package/dist/store/postgres/store.d.ts +2 -1
- package/dist/store/postgres/store.d.ts.map +1 -1
- package/dist/store/postgres/store.js +49 -0
- package/dist/store/postgres/store.js.map +1 -1
- package/dist/store/sqlite/migrations.d.ts +3 -1
- package/dist/store/sqlite/migrations.d.ts.map +1 -1
- package/dist/store/sqlite/migrations.js +54 -1
- package/dist/store/sqlite/migrations.js.map +1 -1
- package/dist/store/sqlite/store.d.ts +2 -1
- package/dist/store/sqlite/store.d.ts.map +1 -1
- package/dist/store/sqlite/store.js +55 -0
- package/dist/store/sqlite/store.js.map +1 -1
- package/package.json +6 -6
- package/src/domain/agent/__tests__/store-faults.test.ts +105 -0
- package/src/domain/agent/controller.ts +9 -5
- package/src/domain/agentchannel/__tests__/store-faults.test.ts +126 -0
- package/src/domain/agentchannel/controller.ts +12 -7
- package/src/domain/agentexecution/__tests__/run-gate.test.ts +42 -1
- package/src/domain/agentexecution/__tests__/update-status.test.ts +58 -2
- package/src/domain/agentexecution/__tests__/validate-thinking-mode.test.ts +209 -61
- package/src/domain/agentexecution/controller.ts +7 -3
- package/src/domain/agentexecution/update-status.ts +43 -3
- package/src/domain/agentexecution/validate-thinking-mode.ts +102 -47
- package/src/domain/agentinstance/__tests__/store-faults.test.ts +110 -0
- package/src/domain/agentinstance/controller.ts +9 -5
- package/src/domain/agentshare/__tests__/store-faults.test.ts +101 -0
- package/src/domain/agentshare/controller.ts +9 -5
- package/src/domain/artifact/__tests__/store-faults.test.ts +117 -0
- package/src/domain/artifact/controller.ts +12 -6
- package/src/domain/environment/__tests__/store-faults.test.ts +150 -0
- package/src/domain/environment/controller.ts +8 -5
- package/src/domain/environment/steps.ts +10 -7
- package/src/domain/organization/__tests__/organization-delete.test.ts +73 -18
- package/src/domain/organization/__tests__/organization-slugs.test.ts +386 -0
- package/src/domain/organization/controller.ts +36 -14
- package/src/domain/organization/slug-ledger.ts +209 -0
- package/src/domain/organization/steps.ts +28 -6
- package/src/domain/workflow/registry/data/model-registry.json +23 -14
- package/src/domain/workflow/registry/model-registry-store.ts +16 -3
- package/src/extensions/gate-slots.ts +7 -5
- package/src/index.ts +11 -0
- package/src/pipeline/__tests__/blind-not-found.test.ts +0 -7
- package/src/pipeline/errors.ts +23 -0
- package/src/store/__tests__/organization-slug-history.test.ts +109 -0
- package/src/store/__tests__/store-contract.ts +86 -1
- package/src/store/interface.ts +70 -0
- package/src/store/organization-slug-history.ts +159 -0
- package/src/store/postgres/__tests__/migrations.test.ts +138 -2
- package/src/store/postgres/__tests__/store-contract.test.ts +1 -0
- package/src/store/postgres/migrations.ts +84 -1
- package/src/store/postgres/store.ts +84 -0
- package/src/store/sqlite/__tests__/migrations.test.ts +139 -10
- package/src/store/sqlite/migrations.ts +69 -1
- package/src/store/sqlite/store.ts +84 -0
|
@@ -17,6 +17,13 @@ import { OrganizationSchema } from "@stigmer/protos/ai/stigmer/tenancy/organizat
|
|
|
17
17
|
* organization. Checking existence by id (== the resolved slug) closes
|
|
18
18
|
* that hole and mirrors cloud's OrganizationCreateHandler.CheckDuplicate.
|
|
19
19
|
*
|
|
20
|
+
* A slug is taken for good (slug-ledger.ts), so the slug ledger is read
|
|
21
|
+
* first: a retired slug is refused with the reserved reason, a held one
|
|
22
|
+
* with the duplicate copy. The row is read after it for an organization no
|
|
23
|
+
* ledger entry records yet, one an older binary created during a rolling
|
|
24
|
+
* upgrade. This read is the early refusal, before any gate; the atomic
|
|
25
|
+
* guarantee is ClaimOrganizationSlug's, immediately before Persist.
|
|
26
|
+
*
|
|
20
27
|
* Runs after ResolveSlug (slug is set) and before BuildNewState/
|
|
21
28
|
* CopySlugToId (the id is not yet minted), so it keys on the slug value
|
|
22
29
|
* that will become the id.
|
|
@@ -38,9 +45,11 @@ export declare function newCopySlugToIdStep(): PipelineStep<typeof OrganizationS
|
|
|
38
45
|
*
|
|
39
46
|
* The generic delete chains clean up after the row and log a fault,
|
|
40
47
|
* because a deleted resource's rows grant nothing once it is gone. An
|
|
41
|
-
* organization is the exception: its
|
|
42
|
-
*
|
|
43
|
-
*
|
|
48
|
+
* organization is the exception: its rows are the grants on the tenancy
|
|
49
|
+
* root itself, and the scope link of every resource under it. The slug is
|
|
50
|
+
* never taken again (slug-ledger.ts), so they cannot pass to a new holder,
|
|
51
|
+
* but a row left behind would still be a grant nobody administers. So this
|
|
52
|
+
* step does not catch. A fault fails the delete with the
|
|
44
53
|
* organization in place, and a retry resumes where the revocation stopped
|
|
45
54
|
* (the grant path revokes the organization's owners last, so the owner
|
|
46
55
|
* who retries still can). The grant path fires the composed driver's
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"steps.d.ts","sourceRoot":"","sources":["../../../src/domain/organization/steps.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"steps.d.ts","sourceRoot":"","sources":["../../../src/domain/organization/steps.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAI/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAMrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2DAA2D,CAAC;AAE/F;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,KAAK,GACX,YAAY,CAAC,OAAO,kBAAkB,CAAC,CAyCzC;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,IAAI,YAAY,CAAC,OAAO,kBAAkB,CAAC,CAgB7E;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,iCAAiC,CAAC,IAAI,SAAS,WAAW,EACxE,SAAS,EAAE,kBAAkB,GAC5B,YAAY,CAAC,IAAI,CAAC,CA6BpB"}
|
|
@@ -10,9 +10,11 @@
|
|
|
10
10
|
* uniqueness guarantee, mirroring cloud's OrganizationCreateHandler
|
|
11
11
|
* (CheckDuplicate + CopySlugToId) step-for-step.
|
|
12
12
|
*
|
|
13
|
-
* The same deviation shapes the delete
|
|
14
|
-
*
|
|
15
|
-
* rows BEFORE its row is deleted, and fails the
|
|
13
|
+
* The same deviation shapes the delete. A slug is never taken twice
|
|
14
|
+
* (slug-ledger.ts), and newRevokeOrganizationPoliciesStep still revokes
|
|
15
|
+
* the organization's policy rows BEFORE its row is deleted, and fails the
|
|
16
|
+
* delete when it cannot, so nothing that grants on the organization
|
|
17
|
+
* outlives it.
|
|
16
18
|
*
|
|
17
19
|
* Proven by organization.conformance.test.ts (CONFORMANCE_TARGET=local),
|
|
18
20
|
* __tests__/organization.test.ts and __tests__/organization-delete.test.ts.
|
|
@@ -22,6 +24,7 @@ import { ResourceNotFoundError } from "../../store/interface.js";
|
|
|
22
24
|
import { alreadyExistsError, internalError } from "../../pipeline/errors.js";
|
|
23
25
|
import { EXISTING_RESOURCE_KEY } from "../../pipeline/steps/load-existing.js";
|
|
24
26
|
import { metadataOf } from "../../pipeline/steps/shapes.js";
|
|
27
|
+
import { refusalForHeldSlug } from "./slug-ledger.js";
|
|
25
28
|
import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
|
|
26
29
|
import { ApiResourceRefSchema } from "@stigmer/protos/ai/stigmer/iam/iampolicy/v1/spec_pb";
|
|
27
30
|
import { OrganizationSchema } from "@stigmer/protos/ai/stigmer/tenancy/organization/v1/api_pb";
|
|
@@ -39,6 +42,13 @@ import { OrganizationSchema } from "@stigmer/protos/ai/stigmer/tenancy/organizat
|
|
|
39
42
|
* organization. Checking existence by id (== the resolved slug) closes
|
|
40
43
|
* that hole and mirrors cloud's OrganizationCreateHandler.CheckDuplicate.
|
|
41
44
|
*
|
|
45
|
+
* A slug is taken for good (slug-ledger.ts), so the slug ledger is read
|
|
46
|
+
* first: a retired slug is refused with the reserved reason, a held one
|
|
47
|
+
* with the duplicate copy. The row is read after it for an organization no
|
|
48
|
+
* ledger entry records yet, one an older binary created during a rolling
|
|
49
|
+
* upgrade. This read is the early refusal, before any gate; the atomic
|
|
50
|
+
* guarantee is ClaimOrganizationSlug's, immediately before Persist.
|
|
51
|
+
*
|
|
42
52
|
* Runs after ResolveSlug (slug is set) and before BuildNewState/
|
|
43
53
|
* CopySlugToId (the id is not yet minted), so it keys on the slug value
|
|
44
54
|
* that will become the id.
|
|
@@ -58,6 +68,16 @@ export function newCheckOrgDuplicateStep(store) {
|
|
|
58
68
|
if (metadata.slug === "") {
|
|
59
69
|
throw internalError(new Error("organization slug is empty"), "duplicate check");
|
|
60
70
|
}
|
|
71
|
+
let entry;
|
|
72
|
+
try {
|
|
73
|
+
entry = await store.organizationSlugs.find(metadata.slug);
|
|
74
|
+
}
|
|
75
|
+
catch (error) {
|
|
76
|
+
throw internalError(error, "failed to check for duplicate organization");
|
|
77
|
+
}
|
|
78
|
+
if (entry !== undefined) {
|
|
79
|
+
throw refusalForHeldSlug(entry);
|
|
80
|
+
}
|
|
61
81
|
try {
|
|
62
82
|
await store.getResource(ctx.apiResourceKind, metadata.slug, OrganizationSchema);
|
|
63
83
|
}
|
|
@@ -103,9 +123,11 @@ export function newCopySlugToIdStep() {
|
|
|
103
123
|
*
|
|
104
124
|
* The generic delete chains clean up after the row and log a fault,
|
|
105
125
|
* because a deleted resource's rows grant nothing once it is gone. An
|
|
106
|
-
* organization is the exception: its
|
|
107
|
-
*
|
|
108
|
-
*
|
|
126
|
+
* organization is the exception: its rows are the grants on the tenancy
|
|
127
|
+
* root itself, and the scope link of every resource under it. The slug is
|
|
128
|
+
* never taken again (slug-ledger.ts), so they cannot pass to a new holder,
|
|
129
|
+
* but a row left behind would still be a grant nobody administers. So this
|
|
130
|
+
* step does not catch. A fault fails the delete with the
|
|
109
131
|
* organization in place, and a retry resumes where the revocation stopped
|
|
110
132
|
* (the grant path revokes the organization's owners last, so the owner
|
|
111
133
|
* who retries still can). The grant path fires the composed driver's
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"steps.js","sourceRoot":"","sources":["../../../src/domain/organization/steps.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"steps.js","sourceRoot":"","sources":["../../../src/domain/organization/steps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAG5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEjE,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAG7E,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAE5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,EAAE,eAAe,EAAE,MAAM,qFAAqF,CAAC;AACtH,OAAO,EAAE,oBAAoB,EAAE,MAAM,qDAAqD,CAAC;AAE3F,OAAO,EAAE,kBAAkB,EAAE,MAAM,2DAA2D,CAAC;AAE/F;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,UAAU,wBAAwB,CACtC,KAAY;IAEZ,OAAO;QACL,qEAAqE;QACrE,iEAAiE;QACjE,IAAI,EAAE,gBAAgB;QACtB,KAAK,CAAC,OAAO,CAAC,GAA8C;YAC1D,MAAM,QAAQ,GAAG,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;YAC1C,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;gBAC3B,MAAM,aAAa,CAAC,IAAI,KAAK,CAAC,8BAA8B,CAAC,EAAE,iBAAiB,CAAC,CAAC;YACpF,CAAC;YACD,gEAAgE;YAChE,2DAA2D;YAC3D,IAAI,QAAQ,CAAC,IAAI,KAAK,EAAE,EAAE,CAAC;gBACzB,MAAM,aAAa,CAAC,IAAI,KAAK,CAAC,4BAA4B,CAAC,EAAE,iBAAi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I,KAAK,CAAC,4BAA4B,CAAC,EAAE,iBAAiB,CAAC,CAAC;YAClF,CAAC;YACD,QAAQ,CAAC,EAAE,GAAG,QAAQ,CAAC,IAAI,CAAC;QAC9B,CAAC;KACF,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,iCAAiC,CAC/C,SAA6B;IAE7B,OAAO;QACL,IAAI,EAAE,4BAA4B;QAClC,KAAK,CAAC,OAAO,CAAC,GAAyB;YACrC,MAAM,YAAY,GAAG,GAAG,CAAC,GAAG,CAAC,qBAAqB,CAErC,CAAC;YACd,MAAM,EAAE,GAAG,YAAY,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC;YAC5C,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;gBACd,MAAM,aAAa,CACjB,IAAI,KAAK,CAAC,+EAA+E,CAAC,EAC1F,qDAAqD,CACtD,CAAC;YACJ,CAAC;YACD,IAAI,CAAC;gBACH,MAAM,SAAS,CAAC,eAAe,CAC7B,MAAM,CAAC,oBAAoB,EAAE;oBAC3B,IAAI,EAAE,eAAe,CAAC,eAAe,CAAC,YAAY,CAAC;oBACnD,EAAE;iBACH,CAAC,CACH,CAAC;YACJ,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,MAAM,aAAa,CACjB,KAAK,EACL,qDAAqD,CACtD,CAAC;YACJ,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -963,7 +963,8 @@
|
|
|
963
963
|
"vision": true,
|
|
964
964
|
"streaming": true,
|
|
965
965
|
"thinking": false,
|
|
966
|
-
"adaptiveThinking": true
|
|
966
|
+
"adaptiveThinking": true,
|
|
967
|
+
"thinkingRequired": true
|
|
967
968
|
}
|
|
968
969
|
}, {
|
|
969
970
|
"id": "claude-haiku-4.5",
|
|
@@ -995,8 +996,9 @@
|
|
|
995
996
|
"toolUse": true,
|
|
996
997
|
"vision": true,
|
|
997
998
|
"streaming": true,
|
|
998
|
-
"thinking":
|
|
999
|
-
"adaptiveThinking": false
|
|
999
|
+
"thinking": true,
|
|
1000
|
+
"adaptiveThinking": false,
|
|
1001
|
+
"thinkingRequired": false
|
|
1000
1002
|
}
|
|
1001
1003
|
}, {
|
|
1002
1004
|
"id": "claude-opus-4.5",
|
|
@@ -1017,7 +1019,7 @@
|
|
|
1017
1019
|
"effectiveAt": "2026-05-03T00:00:00Z"
|
|
1018
1020
|
},
|
|
1019
1021
|
"contextWindowTokens": 200000,
|
|
1020
|
-
"maxOutputTokens":
|
|
1022
|
+
"maxOutputTokens": 64000,
|
|
1021
1023
|
"tokenCounterMethod": "anthropic_native",
|
|
1022
1024
|
"summarization": {
|
|
1023
1025
|
"triggerThreshold": 180000,
|
|
@@ -1029,7 +1031,8 @@
|
|
|
1029
1031
|
"vision": true,
|
|
1030
1032
|
"streaming": true,
|
|
1031
1033
|
"thinking": true,
|
|
1032
|
-
"adaptiveThinking": false
|
|
1034
|
+
"adaptiveThinking": false,
|
|
1035
|
+
"thinkingRequired": false
|
|
1033
1036
|
}
|
|
1034
1037
|
}, {
|
|
1035
1038
|
"id": "claude-opus-4.6",
|
|
@@ -1050,7 +1053,7 @@
|
|
|
1050
1053
|
"effectiveAt": "2026-05-03T00:00:00Z"
|
|
1051
1054
|
},
|
|
1052
1055
|
"contextWindowTokens": 200000,
|
|
1053
|
-
"maxOutputTokens":
|
|
1056
|
+
"maxOutputTokens": 128000,
|
|
1054
1057
|
"tokenCounterMethod": "anthropic_native",
|
|
1055
1058
|
"summarization": {
|
|
1056
1059
|
"triggerThreshold": 180000,
|
|
@@ -1062,7 +1065,8 @@
|
|
|
1062
1065
|
"vision": true,
|
|
1063
1066
|
"streaming": true,
|
|
1064
1067
|
"thinking": false,
|
|
1065
|
-
"adaptiveThinking": true
|
|
1068
|
+
"adaptiveThinking": true,
|
|
1069
|
+
"thinkingRequired": false
|
|
1066
1070
|
}
|
|
1067
1071
|
}, {
|
|
1068
1072
|
"id": "claude-opus-4.7",
|
|
@@ -1096,7 +1100,8 @@
|
|
|
1096
1100
|
"vision": true,
|
|
1097
1101
|
"streaming": true,
|
|
1098
1102
|
"thinking": false,
|
|
1099
|
-
"adaptiveThinking": true
|
|
1103
|
+
"adaptiveThinking": true,
|
|
1104
|
+
"thinkingRequired": false
|
|
1100
1105
|
}
|
|
1101
1106
|
}, {
|
|
1102
1107
|
"id": "claude-opus-4.8",
|
|
@@ -1130,7 +1135,8 @@
|
|
|
1130
1135
|
"vision": true,
|
|
1131
1136
|
"streaming": true,
|
|
1132
1137
|
"thinking": false,
|
|
1133
|
-
"adaptiveThinking": true
|
|
1138
|
+
"adaptiveThinking": true,
|
|
1139
|
+
"thinkingRequired": false
|
|
1134
1140
|
}
|
|
1135
1141
|
}, {
|
|
1136
1142
|
"id": "claude-sonnet-4.5",
|
|
@@ -1151,7 +1157,7 @@
|
|
|
1151
1157
|
"effectiveAt": "2026-05-03T00:00:00Z"
|
|
1152
1158
|
},
|
|
1153
1159
|
"contextWindowTokens": 200000,
|
|
1154
|
-
"maxOutputTokens":
|
|
1160
|
+
"maxOutputTokens": 64000,
|
|
1155
1161
|
"tokenCounterMethod": "anthropic_native",
|
|
1156
1162
|
"summarization": {
|
|
1157
1163
|
"triggerThreshold": 180000,
|
|
@@ -1163,7 +1169,8 @@
|
|
|
1163
1169
|
"vision": true,
|
|
1164
1170
|
"streaming": true,
|
|
1165
1171
|
"thinking": true,
|
|
1166
|
-
"adaptiveThinking": false
|
|
1172
|
+
"adaptiveThinking": false,
|
|
1173
|
+
"thinkingRequired": false
|
|
1167
1174
|
}
|
|
1168
1175
|
}, {
|
|
1169
1176
|
"id": "claude-sonnet-4.6",
|
|
@@ -1195,8 +1202,9 @@
|
|
|
1195
1202
|
"toolUse": true,
|
|
1196
1203
|
"vision": true,
|
|
1197
1204
|
"streaming": true,
|
|
1198
|
-
"thinking":
|
|
1199
|
-
"adaptiveThinking":
|
|
1205
|
+
"thinking": false,
|
|
1206
|
+
"adaptiveThinking": true,
|
|
1207
|
+
"thinkingRequired": false
|
|
1200
1208
|
}
|
|
1201
1209
|
}, {
|
|
1202
1210
|
"id": "claude-sonnet-5",
|
|
@@ -1230,7 +1238,8 @@
|
|
|
1230
1238
|
"vision": true,
|
|
1231
1239
|
"streaming": true,
|
|
1232
1240
|
"thinking": false,
|
|
1233
|
-
"adaptiveThinking": true
|
|
1241
|
+
"adaptiveThinking": true,
|
|
1242
|
+
"thinkingRequired": false
|
|
1234
1243
|
}
|
|
1235
1244
|
}]
|
|
1236
1245
|
}
|
|
@@ -55,6 +55,17 @@ export declare const FAST_VARIANT_KEY = "fast";
|
|
|
55
55
|
* declared key can never drift.
|
|
56
56
|
*/
|
|
57
57
|
export declare const THINKING_CAPABILITY_KEY = "thinking";
|
|
58
|
+
/**
|
|
59
|
+
* The registry capability key of adaptive thinking, the second form that
|
|
60
|
+
* makes THINKING_MODE_ENABLED selectable (stigmer/stigmer#1280).
|
|
61
|
+
*/
|
|
62
|
+
export declare const ADAPTIVE_THINKING_CAPABILITY_KEY = "adaptiveThinking";
|
|
63
|
+
/**
|
|
64
|
+
* The registry capability key naming a model that always thinks and refuses
|
|
65
|
+
* a request to turn thinking off: an explicit THINKING_MODE_DISABLED is
|
|
66
|
+
* refused for it at create.
|
|
67
|
+
*/
|
|
68
|
+
export declare const THINKING_REQUIRED_CAPABILITY_KEY = "thinkingRequired";
|
|
58
69
|
export interface ModelRegistryStoreOptions {
|
|
59
70
|
/** Bundled build-time snapshot; MUST pass the sanity gate at boot. */
|
|
60
71
|
bundledDocument: string;
|
|
@@ -132,9 +143,9 @@ export declare class ModelRegistryStore implements ModelCatalogProvider {
|
|
|
132
143
|
* "thinking") true under the given harness. Capability flags are
|
|
133
144
|
* harness-scoped facts (they describe what works through that serving
|
|
134
145
|
* path), so there is no any-harness form: THINKING_MODE_ENABLED validates
|
|
135
|
-
* against the
|
|
136
|
-
*
|
|
137
|
-
*
|
|
146
|
+
* against the entry of the harness the execution runs on (oss#772,
|
|
147
|
+
* stigmer/stigmer#1280), because an id with an entry on both harnesses
|
|
148
|
+
* can declare different capabilities on each.
|
|
138
149
|
*/
|
|
139
150
|
hasCapabilityForHarness(harness: string, model: string, capability: string): boolean;
|
|
140
151
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-registry-store.d.ts","sourceRoot":"","sources":["../../../../src/domain/workflow/registry/model-registry-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAExE,uEAAuE;AACvE,eAAO,MAAM,kCAAkC,QAAiB,CAAC;AAEjE,mDAAmD;AACnD,eAAO,MAAM,+BAA+B,QAAS,CAAC;AAEtD;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,QAAkB,CAAC;AAExD,mEAAmE;AACnE,eAAO,MAAM,4BAA4B,kCAAkC,CAAC;AAE5E;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,SAAS,CAAC;AAEvC;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,aAAa,CAAC;AAElD,MAAM,WAAW,yBAAyB;IACxC,sEAAsE;IACtE,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,OAAO,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,wCAAwC;IACxC,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC;CAC1B;AAED,qBAAa,kBAAmB,YAAW,oBAAoB;IAC7D,OAAO,CAAC,cAAc,CAAuB;IAC7C,OAAO,CAAC,YAAY,CAA6B;IACjD,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA4B;gBAExC,OAAO,EAAE,yBAAyB;IAc9C,mEAAmE;IACnE,QAAQ,IAAI,MAAM;IAIlB;;;OAGG;IACH,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO;IAIrD,2DAA2D;IAC3D,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IAIpC;;;OAGG;IACH,YAAY,IAAI,OAAO;IAIvB;;;;;OAKG;IACH,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAIhD;;;;OAIG;IACH,8BAA8B,IAAI,MAAM,EAAE;IAI1C;;;;OAIG;IACH,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE;IAI1C;;;;;OAKG;IACH,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO;IAI1D;;;;;OAKG;IACH,2BAA2B,CACzB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,GACd,OAAO;IAQV;;;OAGG;IACH,0BAA0B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE;IAIrD;;;OAGG;IACH,oCAAoC,CAClC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GACd,MAAM,EAAE;IAOX;;;;;;;;OAQG;IACH,uBAAuB,CACrB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,GACjB,OAAO;IAQV;;;OAGG;IACH,uCAAuC,CACrC,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,GACjB,MAAM,EAAE;IAOX,wEAAwE;IACxE,YAAY,IAAI,IAAI;IAWpB,WAAW,IAAI,IAAI;IAOnB,+DAA+D;IACzD,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;CA2CnC"}
|
|
1
|
+
{"version":3,"file":"model-registry-store.d.ts","sourceRoot":"","sources":["../../../../src/domain/workflow/registry/model-registry-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAC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,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAIhD;;;;OAIG;IACH,8BAA8B,IAAI,MAAM,EAAE;IAI1C;;;;OAIG;IACH,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE;IAI1C;;;;;OAKG;IACH,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO;IAI1D;;;;;OAKG;IACH,2BAA2B,CACzB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,GACd,OAAO;IAQV;;;OAGG;IACH,0BAA0B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE;IAIrD;;;OAGG;IACH,oCAAoC,CAClC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GACd,MAAM,EAAE;IAOX;;;;;;;;OAQG;IACH,uBAAuB,CACrB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,GACjB,OAAO;IAQV;;;OAGG;IACH,uCAAuC,CACrC,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,GACjB,MAAM,EAAE;IAOX,wEAAwE;IACxE,YAAY,IAAI,IAAI;IAWpB,WAAW,IAAI,IAAI;IAOnB,+DAA+D;IACzD,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;CA2CnC"}
|
|
@@ -23,6 +23,17 @@ export const FAST_VARIANT_KEY = "fast";
|
|
|
23
23
|
* declared key can never drift.
|
|
24
24
|
*/
|
|
25
25
|
export const THINKING_CAPABILITY_KEY = "thinking";
|
|
26
|
+
/**
|
|
27
|
+
* The registry capability key of adaptive thinking, the second form that
|
|
28
|
+
* makes THINKING_MODE_ENABLED selectable (stigmer/stigmer#1280).
|
|
29
|
+
*/
|
|
30
|
+
export const ADAPTIVE_THINKING_CAPABILITY_KEY = "adaptiveThinking";
|
|
31
|
+
/**
|
|
32
|
+
* The registry capability key naming a model that always thinks and refuses
|
|
33
|
+
* a request to turn thinking off: an explicit THINKING_MODE_DISABLED is
|
|
34
|
+
* refused for it at create.
|
|
35
|
+
*/
|
|
36
|
+
export const THINKING_REQUIRED_CAPABILITY_KEY = "thinkingRequired";
|
|
26
37
|
export class ModelRegistryStore {
|
|
27
38
|
currentCatalog;
|
|
28
39
|
refreshTimer;
|
|
@@ -123,9 +134,9 @@ export class ModelRegistryStore {
|
|
|
123
134
|
* "thinking") true under the given harness. Capability flags are
|
|
124
135
|
* harness-scoped facts (they describe what works through that serving
|
|
125
136
|
* path), so there is no any-harness form: THINKING_MODE_ENABLED validates
|
|
126
|
-
* against the
|
|
127
|
-
*
|
|
128
|
-
*
|
|
137
|
+
* against the entry of the harness the execution runs on (oss#772,
|
|
138
|
+
* stigmer/stigmer#1280), because an id with an entry on both harnesses
|
|
139
|
+
* can declare different capabilities on each.
|
|
129
140
|
*/
|
|
130
141
|
hasCapabilityForHarness(harness, model, capability) {
|
|
131
142
|
return this.currentCatalog.hasCapabilityForHarness(harness, model, capability);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-registry-store.js","sourceRoot":"","sources":["../../../../src/domain/workflow/registry/model-registry-store.ts"],"names":[],"mappings":"AAgCA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAG7D,uEAAuE;AACvE,MAAM,CAAC,MAAM,kCAAkC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAEjE,mDAAmD;AACnD,MAAM,CAAC,MAAM,+BAA+B,GAAG,MAAM,CAAC;AAEtD;;;;GAIG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;AAExD,mEAAmE;AACnE,MAAM,CAAC,MAAM,4BAA4B,GAAG,+BAA+B,CAAC;AAE5E;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC;AAEvC;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"model-registry-store.js","sourceRoot":"","sources":["../../../../src/domain/workflow/registry/model-registry-store.ts"],"names":[],"mappings":"AAgCA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAG7D,uEAAuE;AACvE,MAAM,CAAC,MAAM,kCAAkC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAEjE,mDAAmD;AACnD,MAAM,CAAC,MAAM,+BAA+B,GAAG,MAAM,CAAC;AAEtD;;;;GAIG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;AAExD,mEAAmE;AACnE,MAAM,CAAC,MAAM,4BAA4B,GAAG,+BAA+B,CAAC;AAE5E;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC;AAEvC;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,UAAU,CAAC;AAElD;;;GAGG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,kBAAkB,CAAC;AAEnE;;;;GAIG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,kBAAkB,CAAC;AAYnE,MAAM,OAAO,kBAAkB;IACrB,cAAc,CAAuB;IACrC,YAAY,CAA6B;IACzC,aAAa,GAAG,KAAK,CAAC;IACb,OAAO,CAA4B;IAEpD,YAAY,OAAkC;QAC5C,wEAAwE;QACxE,kEAAkE;QAClE,6BAA6B;QAC7B,MAAM,OAAO,GAAG,oBAAoB,CAAC,QAAQ,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;QACvE,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;YAC1B,MAAM,IAAI,KAAK,CACb,iEAAiE,CAClE,CAAC;QACJ,CAAC;QACD,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC;QAC9B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED,m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}
|
|
@@ -55,11 +55,13 @@
|
|
|
55
55
|
*
|
|
56
56
|
* The tenth, `org-delete:pre-delete`: the organization delete chain after
|
|
57
57
|
* LoadExistingForDelete and before any write, so the organization exists
|
|
58
|
-
* and is loaded (EXISTING_RESOURCE_KEY) while its steps run.
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
58
|
+
* and is loaded (EXISTING_RESOURCE_KEY) while its steps run. Whatever an
|
|
59
|
+
* edition keeps for the organization must go before the row does, or be
|
|
60
|
+
* refused: a row left behind is trust or state that nobody administers.
|
|
61
|
+
* (The slug itself is never taken again, domain/organization/slug-ledger.ts,
|
|
62
|
+
* so nothing left behind can pass to a new holder of the slug; the order
|
|
63
|
+
* still keeps an edition's rows from outliving their organization.) Its
|
|
64
|
+
* steps may refuse (Enterprise refuses while an
|
|
63
65
|
* identity provider still signs in platform-managed organizations) or
|
|
64
66
|
* remove the edition's own rows; either way a throw fails the delete with
|
|
65
67
|
* the organization intact, and the retry re-runs every step, so each owns
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gate-slots.d.ts","sourceRoot":"","sources":["../../src/extensions/gate-slots.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"gate-slots.d.ts","sourceRoot":"","sources":["../../src/extensions/gate-slots.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyFG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAE5D;;;;GAIG;AACH,eAAO,MAAM,eAAe,iYAWlB,CAAC;AAEX,0EAA0E;AAC1E,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5D;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,WAAW,CAAC,MAAM,CAEnD,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,WAAW,CACzC,MAAM,EACN,aAAa,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC,CACzC,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,SAAS,WAAW,EACnD,SAAS,EAAE,iBAAiB,EAC5B,IAAI,EAAE,YAAY,GACjB,aAAa,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAOnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gate-slots.js","sourceRoot":"","sources":["../../src/extensions/gate-slots.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"gate-slots.js","sourceRoot":"","sources":["../../src/extensions/gate-slots.ts"],"names":[],"mappings":"AA8FA;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,6CAA6C;IAC7C,8CAA8C;IAC9C,sCAAsC;IACtC,qCAAqC;IACrC,yBAAyB;IACzB,0BAA0B;IAC1B,yCAAyC;IACzC,wCAAwC;IACxC,iCAAiC;IACjC,uBAAuB;CACf,CAAC;AAKX;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAwB,IAAI,GAAG,CAC7D,eAAe,CAChB,CAAC;AAWF;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAC1B,SAA4B,EAC5B,IAAkB;IAElB,MAAM,KAAK,GAAG,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACxC,kDAAkD;IAClD,oEAAoE;IACpE,sEAAsE;IACtE,cAAc;IACd,OAAO,KAA0C,CAAC;AACpD,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -103,7 +103,7 @@ export { createErrorBoundaryInterceptor } from "./pipeline/interceptors/error-bo
|
|
|
103
103
|
export { diffVisibilityShapes, resolveResourceCreatedEvent, visibilityShapesFor, } from "./pipeline/steps/authorization-tuples.js";
|
|
104
104
|
export type { PipelineStep } from "./pipeline/pipeline.js";
|
|
105
105
|
export { RequestContext } from "./pipeline/request-context.js";
|
|
106
|
-
export { abortedError, alreadyExistsError, ERROR_REASON_DOMAIN, failedPreconditionError, internalError, invalidArgumentError, notFoundError, unavailableError, } from "./pipeline/errors.js";
|
|
106
|
+
export { abortedError, alreadyExistsError, alreadyExistsWithReasonError, ERROR_REASON_DOMAIN, failedPreconditionError, internalError, invalidArgumentError, notFoundError, unavailableError, } from "./pipeline/errors.js";
|
|
107
107
|
export type { RefusalReason } from "./pipeline/errors.js";
|
|
108
108
|
export { generateSlug } from "./pipeline/steps/slug.js";
|
|
109
109
|
export { encodeInProcessCaller, IN_PROCESS_CALLER_HEADER, } from "./pipeline/interceptors/auth.js";
|
|
@@ -122,6 +122,8 @@ export { loadedTargetAsMethod, newAuthorizeResolvedTargetStep, } from "./pipelin
|
|
|
122
122
|
export { TARGET_RESOURCE_KEY } from "./pipeline/steps/load-target.js";
|
|
123
123
|
export type { Store, StoreOpenOptions } from "./store/interface.js";
|
|
124
124
|
export { AuditNotFoundError, ResourceNotFoundError, } from "./store/interface.js";
|
|
125
|
+
export type { OrganizationSlugClaim, OrganizationSlugEntry, OrganizationSlugStore, } from "./store/interface.js";
|
|
126
|
+
export { ORGANIZATION_SLUG_RESERVED } from "./domain/organization/slug-ledger.js";
|
|
125
127
|
export type { ListIndexCursor, ListIndexDeclaration, ListIndexQuery, ListIndexRow, } from "./store/list-index.js";
|
|
126
128
|
export type { RawResourceDocument } from "./store/interface.js";
|
|
127
129
|
export { PostgresStore } from "./store/postgres/store.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAGH,OAAO,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B,CAAC;AACpC,YAAY,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAMzD,YAAY,EACV,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,yBAAyB,EACzB,YAAY,GACb,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAC;AAS9E,OAAO,EACL,4BAA4B,EAC5B,eAAe,EACf,gBAAgB,IAAI,sCAAsC,GAC3D,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,0BAA0B,EAC1B,+BAA+B,EAC/B,iCAAiC,GAClC,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAQrE,YAAY,EACV,cAAc,EACd,2BAA2B,EAC3B,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,0CAA0C,CAAC;AAOlD,YAAY,EACV,mBAAmB,EACnB,aAAa,EACb,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAI/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -92,7 +92,7 @@ export { createErrorBoundaryInterceptor } from "./pipeline/interceptors/error-bo
|
|
|
92
92
|
// whichever chain created the row.
|
|
93
93
|
export { diffVisibilityShapes, resolveResourceCreatedEvent, visibilityShapesFor, } from "./pipeline/steps/authorization-tuples.js";
|
|
94
94
|
export { RequestContext } from "./pipeline/request-context.js";
|
|
95
|
-
export { abortedError, alreadyExistsError, ERROR_REASON_DOMAIN, failedPreconditionError, internalError, invalidArgumentError, notFoundError, unavailableError, } from "./pipeline/errors.js";
|
|
95
|
+
export { abortedError, alreadyExistsError, alreadyExistsWithReasonError, ERROR_REASON_DOMAIN, failedPreconditionError, internalError, invalidArgumentError, notFoundError, unavailableError, } from "./pipeline/errors.js";
|
|
96
96
|
// The shared slug derivation (C2 Stage 3): extension-registered resource
|
|
97
97
|
// kinds derive slugs with the SAME generator both editions pin
|
|
98
98
|
// (ApiRequestResourceSlugGenerator parity) — the semantics live exactly
|
|
@@ -169,6 +169,7 @@ export { EXISTING_RESOURCE_KEY } from "./pipeline/steps/load-existing.js";
|
|
|
169
169
|
export { loadedTargetAsMethod, newAuthorizeResolvedTargetStep, } from "./pipeline/steps/authorize-resolved-target.js";
|
|
170
170
|
export { TARGET_RESOURCE_KEY } from "./pipeline/steps/load-target.js";
|
|
171
171
|
export { AuditNotFoundError, ResourceNotFoundError, } from "./store/interface.js";
|
|
172
|
+
export { ORGANIZATION_SLUG_RESERVED } from "./domain/organization/slug-ledger.js";
|
|
172
173
|
// The Postgres driver constructor (stigmer-cloud 20260910.04 ruling 4;
|
|
173
174
|
// the newR2ArtifactStorage precedent for blessing a driver constructor).
|
|
174
175
|
// A composition that runs its own schema chain in the SAME database as
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH,wCAAwC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAsEhD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAe3E,OAAO,EACL,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,iCAAiC,CAAC;AAQzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAQ1E,OAAO,EAAE,4BAA4B,EAAE,MAAM,4CAA4C,CAAC;AAW1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAKnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,w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uC,CAAC;AACrF,0EAA0E;AAC1E,0EAA0E;AAC1E,sEAAsE;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAQvE,qEAAqE;AACrE,uEAAuE;AACvE,yEAAyE;AACzE,oEAAoE;AACpE,OAAO,EAAE,mCAAmC,EAAE,MAAM,gDAAgD,CAAC;AAkBrG,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,2BAA2B,GAC5B,MAAM,4BAA4B,CAAC;AAEpC,qEAAqE;AACrE,uEAAuE;AACvE,0EAA0E;AAC1E,qEAAqE;AACrE,6DAA6D;AAC7D,uEAAuE;AACvE,qEAAqE;AACrE,gEAAgE;AAChE,0EAA0E;AAC1E,qEAAqE;AACrE,uEAAuE;AACvE,iEAAiE;AACjE,OAAO,EACL,qBAAqB,EACrB,uBAAuB,EACvB,eAAe,EACf,0BAA0B,EAC1B,sBAAsB,EACtB,aAAa,GACd,MAAM,4BAA4B,CAAC;AAepC,OAAO,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAC;AAE9E,yEAAyE;AACzE,wEAAwE;AACxE,0EAA0E;AAC1E,0EAA0E;AAC1E,yEAAyE;AACzE,wEAAwE;AACxE,kDAAkD;AAClD,OAAO,EACL,4BAA4B,EAC5B,eAAe,EACf,gBAAgB,IAAI,sCAAsC,GAC3D,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,0BAA0B,EAC1B,+BAA+B,EAC/B,iCAAiC,GAClC,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AA0BrE,oEAAoE;AACpE,yEAAyE;AACzE,iDAAiD;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -15,6 +15,14 @@ export declare function notFoundError(resource: string, id: string): ConnectErro
|
|
|
15
15
|
export declare function invalidArgumentError(message: string): ConnectError;
|
|
16
16
|
/** Go AlreadyExistsError: "%s already exists: %s". */
|
|
17
17
|
export declare function alreadyExistsError(resource: string, id: string): ConnectError;
|
|
18
|
+
/**
|
|
19
|
+
* An AlreadyExists refusal a client acts on without parsing text: the
|
|
20
|
+
* authored message, and the reason carried as an ErrorInfo detail, exactly
|
|
21
|
+
* as failedPreconditionError carries one. The code stays AlreadyExists, so
|
|
22
|
+
* a caller that keys on the code alone (a retry with another name) keeps
|
|
23
|
+
* working.
|
|
24
|
+
*/
|
|
25
|
+
export declare function alreadyExistsWithReasonError(message: string, reason: RefusalReason): ConnectError;
|
|
18
26
|
/**
|
|
19
27
|
* Go FailedPreconditionError — the system is not in a state required for
|
|
20
28
|
* the operation (vs AlreadyExists, which tells the caller to stop). With a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/pipeline/errors.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGzD,kEAAkE;AAClE,eAAO,MAAM,mBAAmB,eAAe,CAAC;AAEhD;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CACtD;AAED,4CAA4C;AAC5C,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,YAAY,CAExE;AAED,kEAAkE;AAClE,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,YAAY,CAElE;AAED,sDAAsD;AACtD,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,YAAY,CAK7E;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,aAAa,GACrB,YAAY,CAcd;AA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C,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,YAAY,CAK7E;AAED;;;;;;GAMG;AACH,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,aAAa,GACpB,YAAY,CAWd;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,aAAa,GACrB,YAAY,CAcd;AAED,6EAA6E;AAC7E,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,YAAY,CAE1D;AAED,qEAAqE;AACrE,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,YAAY,CAE9D;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,YAAY,CAE3E;AA2BD;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAE/C;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,YAAY,GAClB,YAAY,CAEd;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,CAE3D;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,YAAY,GAAG,YAAY,CAErE"}
|
package/dist/pipeline/errors.js
CHANGED
|
@@ -36,6 +36,25 @@ export function invalidArgumentError(message) {
|
|
|
36
36
|
export function alreadyExistsError(resource, id) {
|
|
37
37
|
return new ConnectError(`${resource} already exists: ${id}`, Code.AlreadyExists);
|
|
38
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* An AlreadyExists refusal a client acts on without parsing text: the
|
|
41
|
+
* authored message, and the reason carried as an ErrorInfo detail, exactly
|
|
42
|
+
* as failedPreconditionError carries one. The code stays AlreadyExists, so
|
|
43
|
+
* a caller that keys on the code alone (a retry with another name) keeps
|
|
44
|
+
* working.
|
|
45
|
+
*/
|
|
46
|
+
export function alreadyExistsWithReasonError(message, reason) {
|
|
47
|
+
return new ConnectError(message, Code.AlreadyExists, undefined, [
|
|
48
|
+
{
|
|
49
|
+
desc: ErrorInfoSchema,
|
|
50
|
+
value: create(ErrorInfoSchema, {
|
|
51
|
+
reason: reason.reason,
|
|
52
|
+
domain: ERROR_REASON_DOMAIN,
|
|
53
|
+
metadata: { ...reason.metadata },
|
|
54
|
+
}),
|
|
55
|
+
},
|
|
56
|
+
]);
|
|
57
|
+
}
|
|
39
58
|
/**
|
|
40
59
|
* Go FailedPreconditionError — the system is not in a state required for
|
|
41
60
|
* the operation (vs AlreadyExists, which tells the caller to stop). With a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/pipeline/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AAE9E,kEAAkE;AAClE,MAAM,CAAC,MAAM,mBAAmB,GAAG,YAAY,CAAC;AAWhD,4CAA4C;AAC5C,MAAM,UAAU,aAAa,CAAC,QAAgB,EAAE,EAAU;IACxD,OAAO,IAAI,YAAY,CAAC,GAAG,QAAQ,eAAe,EAAE,EAAE,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;AACzE,CAAC;AAED,kEAAkE;AAClE,MAAM,UAAU,oBAAoB,CAAC,OAAe;IAClD,OAAO,IAAI,YAAY,CAAC,OAAO,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;AACzD,CAAC;AAED,sDAAsD;AACtD,MAAM,UAAU,kBAAkB,CAAC,QAAgB,EAAE,EAAU;IAC7D,OAAO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AmB;IACrD,OAAO,IAAI,YAAY,CAAC,KAAK,CAAC,UAAU,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;AACxD,CAAC"}
|
|
@@ -274,6 +274,72 @@ export interface SignalDedupeStore {
|
|
|
274
274
|
*/
|
|
275
275
|
release(org: string, idempotencyKey: string): Promise<void>;
|
|
276
276
|
}
|
|
277
|
+
/**
|
|
278
|
+
* One slug's line in the ledger. An organization's id is its slug, so this
|
|
279
|
+
* is also the history of every organization id the store ever issued.
|
|
280
|
+
*/
|
|
281
|
+
export interface OrganizationSlugEntry {
|
|
282
|
+
readonly slug: string;
|
|
283
|
+
/**
|
|
284
|
+
* RFC-3339 time the ledger first recorded the slug: the create's claim,
|
|
285
|
+
* or, for a slug that predates the ledger, the migration or retire that
|
|
286
|
+
* wrote it.
|
|
287
|
+
*/
|
|
288
|
+
readonly claimedAt: string;
|
|
289
|
+
/** RFC-3339 time the organization holding it was deleted; "" while it is held. */
|
|
290
|
+
readonly retiredAt: string;
|
|
291
|
+
}
|
|
292
|
+
/** A claim's outcome: won with its entry, or lost to the entry that holds the slug. */
|
|
293
|
+
export type OrganizationSlugClaim = {
|
|
294
|
+
readonly claimed: true;
|
|
295
|
+
readonly entry: OrganizationSlugEntry;
|
|
296
|
+
} | {
|
|
297
|
+
readonly claimed: false;
|
|
298
|
+
readonly entry: OrganizationSlugEntry;
|
|
299
|
+
};
|
|
300
|
+
/**
|
|
301
|
+
* The organization-slug ledger: a slug is claimed once, atomically, by the
|
|
302
|
+
* create that takes it, and it is never released by the organization's
|
|
303
|
+
* delete, which retires it instead. The organization row can go; its slug
|
|
304
|
+
* stays taken for good, so nothing a deleted organization left behind
|
|
305
|
+
* (rows that name it in `metadata.org`, an edition's rows kept by its id)
|
|
306
|
+
* can ever pass to a new holder of the same slug.
|
|
307
|
+
*
|
|
308
|
+
* The ledger, not the organization row, decides "taken". A claim is the
|
|
309
|
+
* create's uniqueness guarantee, which the row cannot give: `saveResource`
|
|
310
|
+
* upserts, so two creates that both read "absent" would otherwise both
|
|
311
|
+
* write, the second over the first.
|
|
312
|
+
*
|
|
313
|
+
* An unretired entry is a slug held by a live organization, or by a create
|
|
314
|
+
* between its claim and its row; a retired entry is a slug whose
|
|
315
|
+
* organization was deleted. A caller tells the two apart, never "no row"
|
|
316
|
+
* alone, because a create in flight has a claim and no row yet.
|
|
317
|
+
*/
|
|
318
|
+
export interface OrganizationSlugStore {
|
|
319
|
+
/**
|
|
320
|
+
* Claims a slug if no entry holds it, atomically: of concurrent claims,
|
|
321
|
+
* exactly one wins. A loser receives the entry that holds the slug,
|
|
322
|
+
* retired or not.
|
|
323
|
+
*/
|
|
324
|
+
claim(slug: string): Promise<OrganizationSlugClaim>;
|
|
325
|
+
/**
|
|
326
|
+
* Marks the slug retired: sets `retiredAt` on its entry when it is
|
|
327
|
+
* empty, or records the slug already retired when no entry exists (an
|
|
328
|
+
* organization created before the ledger). Idempotent; a second retire
|
|
329
|
+
* keeps the first time.
|
|
330
|
+
*/
|
|
331
|
+
retire(slug: string): Promise<void>;
|
|
332
|
+
/**
|
|
333
|
+
* Frees a claim whose create failed before its organization was stored,
|
|
334
|
+
* so the caller's retry can claim again. Guarded: only the unretired
|
|
335
|
+
* entry carrying this exact `claimedAt` is removed, so a release can
|
|
336
|
+
* never free a retired slug or another create's claim. Anything else is
|
|
337
|
+
* a no-op.
|
|
338
|
+
*/
|
|
339
|
+
release(entry: OrganizationSlugEntry): Promise<void>;
|
|
340
|
+
/** The slug's entry, or undefined when no organization ever took it. */
|
|
341
|
+
find(slug: string): Promise<OrganizationSlugEntry | undefined>;
|
|
342
|
+
}
|
|
277
343
|
/**
|
|
278
344
|
* OAuth grant infrastructure record — not an API resource; keyed by
|
|
279
345
|
* (identityAccountId, resourceId, orgId). Resource-agnostic: resourceId can
|
|
@@ -607,6 +673,7 @@ export interface Store {
|
|
|
607
673
|
clearSearchIndex(): Promise<void>;
|
|
608
674
|
readonly bootstrapState: BootstrapStateStore;
|
|
609
675
|
readonly signalDedupe: SignalDedupeStore;
|
|
676
|
+
readonly organizationSlugs: OrganizationSlugStore;
|
|
610
677
|
readonly oauthGrants: OAuthGrantStore;
|
|
611
678
|
readonly pendingOAuthStates: PendingOAuthStateStore;
|
|
612
679
|
/** Releases all resources; every other method errors afterwards. */
|