@lucern/contracts 0.3.0-alpha.16 → 0.3.0-alpha.17
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 +3 -0
- package/dist/auth-context.contract.js +1 -1
- package/dist/auth-context.contract.js.map +1 -1
- package/dist/auth-session.contract.js +1 -1
- package/dist/auth-session.contract.js.map +1 -1
- package/dist/auth.contract.js +1 -1
- package/dist/auth.contract.js.map +1 -1
- package/dist/function-registry/beliefs.js +4 -4
- package/dist/function-registry/beliefs.js.map +1 -1
- package/dist/function-registry/coding.js +4 -4
- package/dist/function-registry/coding.js.map +1 -1
- package/dist/function-registry/context.js +4 -4
- package/dist/function-registry/context.js.map +1 -1
- package/dist/function-registry/contracts.js +4 -4
- package/dist/function-registry/contracts.js.map +1 -1
- package/dist/function-registry/coordination.js +4 -4
- package/dist/function-registry/coordination.js.map +1 -1
- package/dist/function-registry/edges.js +4 -4
- package/dist/function-registry/edges.js.map +1 -1
- package/dist/function-registry/evidence.js +4 -4
- package/dist/function-registry/evidence.js.map +1 -1
- package/dist/function-registry/graph.js +4 -4
- package/dist/function-registry/graph.js.map +1 -1
- package/dist/function-registry/helpers.js +4 -4
- package/dist/function-registry/helpers.js.map +1 -1
- package/dist/function-registry/identity.js +4 -4
- package/dist/function-registry/identity.js.map +1 -1
- package/dist/function-registry/index.js +4 -4
- package/dist/function-registry/index.js.map +1 -1
- package/dist/function-registry/judgments.js +4 -4
- package/dist/function-registry/judgments.js.map +1 -1
- package/dist/function-registry/legacy.js +4 -4
- package/dist/function-registry/legacy.js.map +1 -1
- package/dist/function-registry/lenses.js +4 -4
- package/dist/function-registry/lenses.js.map +1 -1
- package/dist/function-registry/nodes.js +4 -4
- package/dist/function-registry/nodes.js.map +1 -1
- package/dist/function-registry/ontologies.js +4 -4
- package/dist/function-registry/ontologies.js.map +1 -1
- package/dist/function-registry/pipeline.js +4 -4
- package/dist/function-registry/pipeline.js.map +1 -1
- package/dist/function-registry/questions.js +4 -4
- package/dist/function-registry/questions.js.map +1 -1
- package/dist/function-registry/tasks.js +4 -4
- package/dist/function-registry/tasks.js.map +1 -1
- package/dist/function-registry/topics.js +4 -4
- package/dist/function-registry/topics.js.map +1 -1
- package/dist/function-registry/worktrees.js +20 -4
- package/dist/function-registry/worktrees.js.map +1 -1
- package/dist/gateway.contract.d.ts +1 -0
- package/dist/gateway.contract.js.map +1 -1
- package/dist/generated/convexSchemas.js +1 -1
- package/dist/generated/convexSchemas.js.map +1 -1
- package/dist/generated/infisicalRuntimeEnv.js +300 -6
- package/dist/generated/infisicalRuntimeEnv.js.map +1 -1
- package/dist/index.js +363 -16
- package/dist/index.js.map +1 -1
- package/dist/infisical-runtime.contract.d.ts +41 -3
- package/dist/infisical-runtime.contract.js +49 -3
- package/dist/infisical-runtime.contract.js.map +1 -1
- package/dist/manifests/infisical-runtime-manifest.d.ts +41 -3
- package/dist/manifests/infisical-runtime-manifest.js +49 -3
- package/dist/manifests/infisical-runtime-manifest.js.map +1 -1
- package/dist/permit-principal-projection.contract.js +8 -1
- package/dist/permit-principal-projection.contract.js.map +1 -1
- package/dist/proof-attestation.json +1 -1
- package/dist/schemas/index.js +1 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/manifest.d.ts +5 -5
- package/dist/schemas/manifest.js +1 -1
- package/dist/schemas/manifest.js.map +1 -1
- package/dist/schemas/tables/mc/tenant.d.ts +1 -1
- package/dist/schemas/tables/mc/tenant.js +1 -1
- package/dist/schemas/tables/mc/tenant.js.map +1 -1
- package/dist/sdk-tools.contract.js +4 -4
- package/dist/sdk-tools.contract.js.map +1 -1
- package/dist/tool-contracts.js +4 -4
- package/dist/tool-contracts.js.map +1 -1
- package/package.json +1 -1
|
@@ -2327,7 +2327,7 @@ var IDENTITY_WHOAMI = {
|
|
|
2327
2327
|
response: {
|
|
2328
2328
|
description: "Canonical identity summary for the current session",
|
|
2329
2329
|
fields: {
|
|
2330
|
-
principalId: "string \u2014 canonical
|
|
2330
|
+
principalId: "string \u2014 canonical principal identifier; for humans this is the Clerk user_... ID",
|
|
2331
2331
|
principalType: "string \u2014 human, service, agent, group, or external_viewer",
|
|
2332
2332
|
tenantId: "string | undefined \u2014 resolved tenant scope",
|
|
2333
2333
|
workspaceId: "string | undefined \u2014 resolved workspace scope",
|
|
@@ -2341,7 +2341,7 @@ var IDENTITY_WHOAMI = {
|
|
|
2341
2341
|
};
|
|
2342
2342
|
var RESOLVE_INTERACTIVE_PRINCIPAL = {
|
|
2343
2343
|
name: "resolve_interactive_principal",
|
|
2344
|
-
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
|
|
2344
|
+
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 Clerk subject into tenant/workspace authorization context.",
|
|
2345
2345
|
parameters: {
|
|
2346
2346
|
clerkId: {
|
|
2347
2347
|
type: "string",
|
|
@@ -2364,7 +2364,7 @@ var RESOLVE_INTERACTIVE_PRINCIPAL = {
|
|
|
2364
2364
|
response: {
|
|
2365
2365
|
description: "Permit-backed Lucern principal context for tenant SDK bootstrap",
|
|
2366
2366
|
fields: {
|
|
2367
|
-
principalId: "string \u2014 canonical
|
|
2367
|
+
principalId: "string \u2014 canonical Clerk user_... ID for human sessions",
|
|
2368
2368
|
principalType: "string \u2014 human, service, agent, group, or external_viewer",
|
|
2369
2369
|
clerkId: "string \u2014 authenticated Clerk subject alias",
|
|
2370
2370
|
tenantId: "string \u2014 resolved tenant scope",
|
|
@@ -3192,7 +3192,7 @@ var MANAGE_WRITE_POLICY = {
|
|
|
3192
3192
|
},
|
|
3193
3193
|
role: {
|
|
3194
3194
|
type: "string",
|
|
3195
|
-
description: "Role to set policy for (required for 'set'). E.g. 'agent:internal'
|
|
3195
|
+
description: "Role to set policy for (required for 'set'). E.g. 'agent:internal' or a Permit role key such as 'workspace_admin'."
|
|
3196
3196
|
},
|
|
3197
3197
|
permission: {
|
|
3198
3198
|
type: "string",
|
|
@@ -5003,6 +5003,19 @@ var worktreeEvidenceSignalInputSchema = z.object({
|
|
|
5003
5003
|
progress: z.string().optional().describe("Collection progress note for the signal."),
|
|
5004
5004
|
notes: z.string().optional().describe("Additional evidence collection notes.")
|
|
5005
5005
|
}).passthrough().describe("Evidence signal embedded in the worktree plan.");
|
|
5006
|
+
var worktreeDocCompanionTargetSchema = z.object({
|
|
5007
|
+
docPath: z.string().describe(
|
|
5008
|
+
"Repo-relative path to a documentation file the worktree promises to update."
|
|
5009
|
+
),
|
|
5010
|
+
sectionAnchor: z.string().optional().describe(
|
|
5011
|
+
"Markdown heading anchor (e.g. '## Function-surface manifest') that scopes the promised update."
|
|
5012
|
+
),
|
|
5013
|
+
reason: z.string().describe(
|
|
5014
|
+
"Why this doc section must be updated for the worktree to be complete."
|
|
5015
|
+
)
|
|
5016
|
+
}).passthrough().describe(
|
|
5017
|
+
"Intent-driven docs companion target. pr-gate-reviewer verifies that the PR actually touches each declared (docPath, sectionAnchor). Distinct from the touch-driven docs-loop. See docs/development/docs-sync-discipline.md Lock 3."
|
|
5018
|
+
);
|
|
5006
5019
|
var worktreeDecisionGateInputSchema = z.object({
|
|
5007
5020
|
goCriteria: z.array(z.string()).describe("Criteria that must hold for the worktree to proceed."),
|
|
5008
5021
|
noGoSignals: z.array(z.string()).describe("Signals that stop or redirect the worktree."),
|
|
@@ -5035,6 +5048,9 @@ var addWorktreeArgs = z.object({
|
|
|
5035
5048
|
keyQuestions: z.array(worktreeKeyQuestionInputSchema).optional().describe("Inline key questions captured as part of the worktree plan."),
|
|
5036
5049
|
evidenceSignals: z.array(worktreeEvidenceSignalInputSchema).optional().describe("Evidence signals the worktree needs to collect or validate."),
|
|
5037
5050
|
decisionGate: worktreeDecisionGateInputSchema.optional(),
|
|
5051
|
+
docCompanionTargets: z.array(worktreeDocCompanionTargetSchema).optional().describe(
|
|
5052
|
+
"Doc sections the worktree promises to update at PR time. Enforced by pr-gate-reviewer (Lock 3)."
|
|
5053
|
+
),
|
|
5038
5054
|
goCriteria: z.array(z.string()).optional().describe("Shorthand go criteria used to build decisionGate."),
|
|
5039
5055
|
noGoSignals: z.array(z.string()).optional().describe("Shorthand no-go signals used to build decisionGate."),
|
|
5040
5056
|
proofArtifacts: z.array(z.unknown()).optional().describe("Expected proof artifacts required to close the worktree."),
|