@lucern/contracts 0.3.0-alpha.11 → 0.3.0-alpha.13
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/auth-context.contract.js +13 -1
- package/dist/auth-context.contract.js.map +1 -1
- package/dist/auth-session.contract.js +13 -1
- package/dist/auth-session.contract.js.map +1 -1
- package/dist/auth.contract.d.ts +1 -1
- package/dist/auth.contract.js +13 -1
- package/dist/auth.contract.js.map +1 -1
- package/dist/component-boundary.contract.js +1 -0
- package/dist/component-boundary.contract.js.map +1 -1
- package/dist/function-registry/beliefs.d.ts +10 -10
- package/dist/function-registry/beliefs.js +53 -2
- package/dist/function-registry/beliefs.js.map +1 -1
- package/dist/function-registry/coding.d.ts +6 -6
- package/dist/function-registry/coding.js +53 -2
- package/dist/function-registry/coding.js.map +1 -1
- package/dist/function-registry/context.d.ts +3 -3
- package/dist/function-registry/context.js +53 -2
- package/dist/function-registry/context.js.map +1 -1
- package/dist/function-registry/contracts.d.ts +3 -3
- package/dist/function-registry/contracts.js +53 -2
- package/dist/function-registry/contracts.js.map +1 -1
- package/dist/function-registry/coordination.d.ts +9 -9
- package/dist/function-registry/coordination.js +53 -2
- package/dist/function-registry/coordination.js.map +1 -1
- package/dist/function-registry/edges.d.ts +6 -6
- package/dist/function-registry/edges.js +53 -2
- package/dist/function-registry/edges.js.map +1 -1
- package/dist/function-registry/evidence.d.ts +8 -8
- package/dist/function-registry/evidence.js +53 -2
- package/dist/function-registry/evidence.js.map +1 -1
- package/dist/function-registry/graph.d.ts +15 -15
- package/dist/function-registry/graph.js +53 -2
- package/dist/function-registry/graph.js.map +1 -1
- package/dist/function-registry/helpers.d.ts +2 -2
- package/dist/function-registry/helpers.js +53 -2
- package/dist/function-registry/helpers.js.map +1 -1
- package/dist/function-registry/identity.d.ts +56 -16
- package/dist/function-registry/identity.js +75 -4
- package/dist/function-registry/identity.js.map +1 -1
- package/dist/function-registry/index.d.ts +1 -1
- package/dist/function-registry/index.js +53 -2
- package/dist/function-registry/index.js.map +1 -1
- package/dist/function-registry/judgments.d.ts +2 -2
- package/dist/function-registry/judgments.js +53 -2
- package/dist/function-registry/judgments.js.map +1 -1
- package/dist/function-registry/legacy.d.ts +1 -1
- package/dist/function-registry/legacy.js +53 -2
- package/dist/function-registry/legacy.js.map +1 -1
- package/dist/function-registry/lenses.d.ts +4 -4
- package/dist/function-registry/lenses.js +53 -2
- package/dist/function-registry/lenses.js.map +1 -1
- package/dist/function-registry/manifest.d.ts +3 -3
- package/dist/function-registry/manifest.js +1 -0
- package/dist/function-registry/manifest.js.map +1 -1
- package/dist/function-registry/nodes.d.ts +8 -8
- package/dist/function-registry/nodes.js +53 -2
- package/dist/function-registry/nodes.js.map +1 -1
- package/dist/function-registry/ontologies.d.ts +11 -11
- package/dist/function-registry/ontologies.js +53 -2
- package/dist/function-registry/ontologies.js.map +1 -1
- package/dist/function-registry/pipeline.d.ts +3 -3
- package/dist/function-registry/pipeline.js +53 -2
- package/dist/function-registry/pipeline.js.map +1 -1
- package/dist/function-registry/questions.d.ts +12 -12
- package/dist/function-registry/questions.js +53 -2
- package/dist/function-registry/questions.js.map +1 -1
- package/dist/function-registry/tasks.d.ts +4 -4
- package/dist/function-registry/tasks.js +53 -2
- package/dist/function-registry/tasks.js.map +1 -1
- package/dist/function-registry/topics.d.ts +7 -7
- package/dist/function-registry/topics.js +53 -2
- package/dist/function-registry/topics.js.map +1 -1
- package/dist/function-registry/types.d.ts +2 -2
- package/dist/function-registry/worktrees.d.ts +11 -11
- package/dist/function-registry/worktrees.js +53 -2
- package/dist/function-registry/worktrees.js.map +1 -1
- package/dist/generated/convexSchemas.js +4 -3
- package/dist/generated/convexSchemas.js.map +1 -1
- package/dist/generated/infisicalRuntimeEnv.js +357 -0
- package/dist/generated/infisicalRuntimeEnv.js.map +1 -1
- package/dist/generated/schema-manifest.json +88 -3
- package/dist/generated/tableOwnership.d.ts +2 -1
- package/dist/generated/tableOwnership.js +2 -0
- package/dist/generated/tableOwnership.js.map +1 -1
- package/dist/generated/tier-expectations.json +6 -3
- package/dist/index.d.ts +3 -2
- package/dist/index.js +726 -19
- package/dist/index.js.map +1 -1
- package/dist/infisical-runtime.contract.d.ts +44 -0
- package/dist/infisical-runtime.contract.js +52 -0
- package/dist/infisical-runtime.contract.js.map +1 -1
- package/dist/manifests/infisical-runtime-manifest.d.ts +44 -0
- package/dist/manifests/infisical-runtime-manifest.js +52 -0
- package/dist/manifests/infisical-runtime-manifest.js.map +1 -1
- package/dist/manifests/tenant-client-manifest.d.ts +8 -3
- package/dist/manifests/tenant-client-manifest.js +18 -1
- package/dist/manifests/tenant-client-manifest.js.map +1 -1
- package/dist/permit-principal-projection.contract.d.ts +74 -0
- package/dist/permit-principal-projection.contract.js +160 -0
- package/dist/permit-principal-projection.contract.js.map +1 -0
- package/dist/proof-attestation.json +1 -1
- package/dist/schemas/index.js +36 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/manifest.d.ts +85 -10
- package/dist/schemas/manifest.js +36 -1
- package/dist/schemas/manifest.js.map +1 -1
- package/dist/schemas/tables/controlPlane/accessControl.d.ts +2 -2
- package/dist/schemas/tables/controlPlane/accessControl.js +6 -1
- package/dist/schemas/tables/controlPlane/accessControl.js.map +1 -1
- package/dist/schemas/tables/kernel/events.d.ts +21 -0
- package/dist/schemas/tables/kernel/events.js +43 -0
- package/dist/schemas/tables/kernel/events.js.map +1 -0
- package/dist/{sdk-tools.contract-BNklQDfB.d.ts → sdk-tools.contract-CKmSsrZ2.d.ts} +1 -1
- package/dist/sdk-tools.contract.d.ts +2 -2
- package/dist/sdk-tools.contract.js +45 -1
- package/dist/sdk-tools.contract.js.map +1 -1
- package/dist/tenant-bootstrap-seed.contract.d.ts +22 -2
- package/dist/tenant-bootstrap-seed.contract.js +15 -2
- package/dist/tenant-bootstrap-seed.contract.js.map +1 -1
- package/dist/tenant-bootstrap-seed.defaults.d.ts +1 -1
- package/dist/tenant-bootstrap-seed.defaults.js +30 -12
- package/dist/tenant-bootstrap-seed.defaults.js.map +1 -1
- package/dist/tenant-client.contract.d.ts +8 -3
- package/dist/tenant-client.contract.js +18 -1
- package/dist/tenant-client.contract.js.map +1 -1
- package/dist/{tool-contracts-BevD9Ho2.d.ts → tool-contracts-C_xvM9q2.d.ts} +4 -2
- package/dist/tool-contracts.d.ts +1 -1
- package/dist/tool-contracts.js +46 -2
- package/dist/tool-contracts.js.map +1 -1
- package/package.json +1 -1
|
@@ -115,7 +115,7 @@ declare const evidenceContracts: readonly [{
|
|
|
115
115
|
};
|
|
116
116
|
auth: {
|
|
117
117
|
scopes: string[];
|
|
118
|
-
allowedPrincipalTypes: ("user" | "service" | "agent")[];
|
|
118
|
+
allowedPrincipalTypes: ("user" | "service" | "agent" | "group" | "external_viewer")[];
|
|
119
119
|
};
|
|
120
120
|
convex: FunctionConvexTarget | undefined;
|
|
121
121
|
gateway: FunctionGatewayTarget | undefined;
|
|
@@ -155,7 +155,7 @@ declare const evidenceContracts: readonly [{
|
|
|
155
155
|
};
|
|
156
156
|
auth: {
|
|
157
157
|
scopes: string[];
|
|
158
|
-
allowedPrincipalTypes: ("user" | "service" | "agent")[];
|
|
158
|
+
allowedPrincipalTypes: ("user" | "service" | "agent" | "group" | "external_viewer")[];
|
|
159
159
|
};
|
|
160
160
|
convex: FunctionConvexTarget | undefined;
|
|
161
161
|
gateway: FunctionGatewayTarget | undefined;
|
|
@@ -195,7 +195,7 @@ declare const evidenceContracts: readonly [{
|
|
|
195
195
|
};
|
|
196
196
|
auth: {
|
|
197
197
|
scopes: string[];
|
|
198
|
-
allowedPrincipalTypes: ("user" | "service" | "agent")[];
|
|
198
|
+
allowedPrincipalTypes: ("user" | "service" | "agent" | "group" | "external_viewer")[];
|
|
199
199
|
};
|
|
200
200
|
convex: FunctionConvexTarget | undefined;
|
|
201
201
|
gateway: FunctionGatewayTarget | undefined;
|
|
@@ -235,7 +235,7 @@ declare const evidenceContracts: readonly [{
|
|
|
235
235
|
};
|
|
236
236
|
auth: {
|
|
237
237
|
scopes: string[];
|
|
238
|
-
allowedPrincipalTypes: ("user" | "service" | "agent")[];
|
|
238
|
+
allowedPrincipalTypes: ("user" | "service" | "agent" | "group" | "external_viewer")[];
|
|
239
239
|
};
|
|
240
240
|
convex: FunctionConvexTarget | undefined;
|
|
241
241
|
gateway: FunctionGatewayTarget | undefined;
|
|
@@ -275,7 +275,7 @@ declare const evidenceContracts: readonly [{
|
|
|
275
275
|
};
|
|
276
276
|
auth: {
|
|
277
277
|
scopes: string[];
|
|
278
|
-
allowedPrincipalTypes: ("user" | "service" | "agent")[];
|
|
278
|
+
allowedPrincipalTypes: ("user" | "service" | "agent" | "group" | "external_viewer")[];
|
|
279
279
|
};
|
|
280
280
|
convex: FunctionConvexTarget | undefined;
|
|
281
281
|
gateway: FunctionGatewayTarget | undefined;
|
|
@@ -315,7 +315,7 @@ declare const evidenceContracts: readonly [{
|
|
|
315
315
|
};
|
|
316
316
|
auth: {
|
|
317
317
|
scopes: string[];
|
|
318
|
-
allowedPrincipalTypes: ("user" | "service" | "agent")[];
|
|
318
|
+
allowedPrincipalTypes: ("user" | "service" | "agent" | "group" | "external_viewer")[];
|
|
319
319
|
};
|
|
320
320
|
convex: FunctionConvexTarget | undefined;
|
|
321
321
|
gateway: FunctionGatewayTarget | undefined;
|
|
@@ -355,7 +355,7 @@ declare const evidenceContracts: readonly [{
|
|
|
355
355
|
};
|
|
356
356
|
auth: {
|
|
357
357
|
scopes: string[];
|
|
358
|
-
allowedPrincipalTypes: ("user" | "service" | "agent")[];
|
|
358
|
+
allowedPrincipalTypes: ("user" | "service" | "agent" | "group" | "external_viewer")[];
|
|
359
359
|
};
|
|
360
360
|
convex: FunctionConvexTarget | undefined;
|
|
361
361
|
gateway: FunctionGatewayTarget | undefined;
|
|
@@ -395,7 +395,7 @@ declare const evidenceContracts: readonly [{
|
|
|
395
395
|
};
|
|
396
396
|
auth: {
|
|
397
397
|
scopes: string[];
|
|
398
|
-
allowedPrincipalTypes: ("user" | "service" | "agent")[];
|
|
398
|
+
allowedPrincipalTypes: ("user" | "service" | "agent" | "group" | "external_viewer")[];
|
|
399
399
|
};
|
|
400
400
|
convex: FunctionConvexTarget | undefined;
|
|
401
401
|
gateway: FunctionGatewayTarget | undefined;
|
|
@@ -2329,7 +2329,7 @@ var IDENTITY_WHOAMI = {
|
|
|
2329
2329
|
description: "Canonical identity summary for the current session",
|
|
2330
2330
|
fields: {
|
|
2331
2331
|
principalId: "string \u2014 canonical federated principal identifier",
|
|
2332
|
-
principalType: "string \u2014 human, service, or
|
|
2332
|
+
principalType: "string \u2014 human, service, agent, group, or external_viewer",
|
|
2333
2333
|
tenantId: "string | undefined \u2014 resolved tenant scope",
|
|
2334
2334
|
workspaceId: "string | undefined \u2014 resolved workspace scope",
|
|
2335
2335
|
scopes: "string[] | undefined \u2014 granted scopes for this session",
|
|
@@ -2340,6 +2340,49 @@ var IDENTITY_WHOAMI = {
|
|
|
2340
2340
|
ontologyPrimitive: "identity",
|
|
2341
2341
|
tier: "workhorse"
|
|
2342
2342
|
};
|
|
2343
|
+
var RESOLVE_INTERACTIVE_PRINCIPAL = {
|
|
2344
|
+
name: "resolve_interactive_principal",
|
|
2345
|
+
description: "Read the Permit-backed Lucern principal context for an authenticated Clerk user. Like `git config --get user.email` plus the repository ACL \u2014 resolves the identity alias into the canonical authorization subject.",
|
|
2346
|
+
parameters: {
|
|
2347
|
+
clerkId: {
|
|
2348
|
+
type: "string",
|
|
2349
|
+
description: "Authenticated Clerk subject (`sub`). Clerk proves identity only; it is not the authorization record."
|
|
2350
|
+
},
|
|
2351
|
+
tenantId: {
|
|
2352
|
+
type: "string",
|
|
2353
|
+
description: "Optional tenant scope. Omit only when the Clerk alias is globally unambiguous."
|
|
2354
|
+
},
|
|
2355
|
+
workspaceId: {
|
|
2356
|
+
type: "string",
|
|
2357
|
+
description: "Optional workspace scope. Required when the principal has access to multiple workspaces and no default can be inferred."
|
|
2358
|
+
},
|
|
2359
|
+
providerProjectId: {
|
|
2360
|
+
type: "string",
|
|
2361
|
+
description: "Optional Clerk project or provider instance id for tenants with multiple identity providers."
|
|
2362
|
+
}
|
|
2363
|
+
},
|
|
2364
|
+
required: ["clerkId"],
|
|
2365
|
+
response: {
|
|
2366
|
+
description: "Permit-backed Lucern principal context for tenant SDK bootstrap",
|
|
2367
|
+
fields: {
|
|
2368
|
+
principalId: "string \u2014 canonical Lucern principal identifier",
|
|
2369
|
+
principalType: "string \u2014 human, service, agent, group, or external_viewer",
|
|
2370
|
+
clerkId: "string \u2014 authenticated Clerk subject alias",
|
|
2371
|
+
tenantId: "string \u2014 resolved tenant scope",
|
|
2372
|
+
workspaceId: "string | null \u2014 resolved workspace scope",
|
|
2373
|
+
roles: "string[] \u2014 effective Permit roles",
|
|
2374
|
+
scopes: "string[] \u2014 effective scopes derived from Permit/control-plane projection",
|
|
2375
|
+
groupIds: "string[] \u2014 active Permit group memberships",
|
|
2376
|
+
principalStatus: "string \u2014 active, invited, suspended, disabled, revoked, or missing",
|
|
2377
|
+
tenantStatus: "string \u2014 projected tenant resource status",
|
|
2378
|
+
workspaceStatus: "string \u2014 projected workspace resource status",
|
|
2379
|
+
permit: "object \u2014 Permit subject, tenant, and optional workspace tuple"
|
|
2380
|
+
}
|
|
2381
|
+
},
|
|
2382
|
+
ownerModule: "control-plane",
|
|
2383
|
+
ontologyPrimitive: "identity",
|
|
2384
|
+
tier: "workhorse"
|
|
2385
|
+
};
|
|
2343
2386
|
var COMPILE_CONTEXT = {
|
|
2344
2387
|
name: "compile_context",
|
|
2345
2388
|
description: "Compile a focused reasoning context. If topicId is omitted, Lucern resolves the best topic from the query. Like `git log --graph --decorate` for the reasoning substrate \u2014 returns the canonical Pillar 3 context pack through the public API shape.",
|
|
@@ -4242,6 +4285,7 @@ var MCP_TOOL_CONTRACTS = {
|
|
|
4242
4285
|
update_worktree_targets: UPDATE_WORKTREE_TARGETS,
|
|
4243
4286
|
update_worktree_metadata: UPDATE_WORKTREE_METADATA,
|
|
4244
4287
|
identity_whoami: IDENTITY_WHOAMI,
|
|
4288
|
+
resolve_interactive_principal: RESOLVE_INTERACTIVE_PRINCIPAL,
|
|
4245
4289
|
compile_context: COMPILE_CONTEXT,
|
|
4246
4290
|
record_scope_learning: RECORD_SCOPE_LEARNING,
|
|
4247
4291
|
pipeline_snapshot: PIPELINE_SNAPSHOT,
|
|
@@ -4359,6 +4403,7 @@ function entries(names, surfaceClass, surfaceIntent, surfaces, rationale) {
|
|
|
4359
4403
|
var MCP_CORE_OPERATION_NAMES = [
|
|
4360
4404
|
"compile_context",
|
|
4361
4405
|
"identity_whoami",
|
|
4406
|
+
"resolve_interactive_principal",
|
|
4362
4407
|
"check_permission",
|
|
4363
4408
|
"filter_by_permission",
|
|
4364
4409
|
"create_belief",
|
|
@@ -4919,7 +4964,13 @@ function surfaceContract(args) {
|
|
|
4919
4964
|
scopes: args.scopes ?? [
|
|
4920
4965
|
args.kind === "query" ? `${args.domain}.read` : `${args.domain}.write`
|
|
4921
4966
|
],
|
|
4922
|
-
allowedPrincipalTypes: [
|
|
4967
|
+
allowedPrincipalTypes: [
|
|
4968
|
+
"user",
|
|
4969
|
+
"service",
|
|
4970
|
+
"agent",
|
|
4971
|
+
"group",
|
|
4972
|
+
"external_viewer"
|
|
4973
|
+
]
|
|
4923
4974
|
},
|
|
4924
4975
|
convex: args.convex,
|
|
4925
4976
|
gateway: args.gateway,
|