@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.
Files changed (79) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/dist/auth-context.contract.js +1 -1
  3. package/dist/auth-context.contract.js.map +1 -1
  4. package/dist/auth-session.contract.js +1 -1
  5. package/dist/auth-session.contract.js.map +1 -1
  6. package/dist/auth.contract.js +1 -1
  7. package/dist/auth.contract.js.map +1 -1
  8. package/dist/function-registry/beliefs.js +4 -4
  9. package/dist/function-registry/beliefs.js.map +1 -1
  10. package/dist/function-registry/coding.js +4 -4
  11. package/dist/function-registry/coding.js.map +1 -1
  12. package/dist/function-registry/context.js +4 -4
  13. package/dist/function-registry/context.js.map +1 -1
  14. package/dist/function-registry/contracts.js +4 -4
  15. package/dist/function-registry/contracts.js.map +1 -1
  16. package/dist/function-registry/coordination.js +4 -4
  17. package/dist/function-registry/coordination.js.map +1 -1
  18. package/dist/function-registry/edges.js +4 -4
  19. package/dist/function-registry/edges.js.map +1 -1
  20. package/dist/function-registry/evidence.js +4 -4
  21. package/dist/function-registry/evidence.js.map +1 -1
  22. package/dist/function-registry/graph.js +4 -4
  23. package/dist/function-registry/graph.js.map +1 -1
  24. package/dist/function-registry/helpers.js +4 -4
  25. package/dist/function-registry/helpers.js.map +1 -1
  26. package/dist/function-registry/identity.js +4 -4
  27. package/dist/function-registry/identity.js.map +1 -1
  28. package/dist/function-registry/index.js +4 -4
  29. package/dist/function-registry/index.js.map +1 -1
  30. package/dist/function-registry/judgments.js +4 -4
  31. package/dist/function-registry/judgments.js.map +1 -1
  32. package/dist/function-registry/legacy.js +4 -4
  33. package/dist/function-registry/legacy.js.map +1 -1
  34. package/dist/function-registry/lenses.js +4 -4
  35. package/dist/function-registry/lenses.js.map +1 -1
  36. package/dist/function-registry/nodes.js +4 -4
  37. package/dist/function-registry/nodes.js.map +1 -1
  38. package/dist/function-registry/ontologies.js +4 -4
  39. package/dist/function-registry/ontologies.js.map +1 -1
  40. package/dist/function-registry/pipeline.js +4 -4
  41. package/dist/function-registry/pipeline.js.map +1 -1
  42. package/dist/function-registry/questions.js +4 -4
  43. package/dist/function-registry/questions.js.map +1 -1
  44. package/dist/function-registry/tasks.js +4 -4
  45. package/dist/function-registry/tasks.js.map +1 -1
  46. package/dist/function-registry/topics.js +4 -4
  47. package/dist/function-registry/topics.js.map +1 -1
  48. package/dist/function-registry/worktrees.js +20 -4
  49. package/dist/function-registry/worktrees.js.map +1 -1
  50. package/dist/gateway.contract.d.ts +1 -0
  51. package/dist/gateway.contract.js.map +1 -1
  52. package/dist/generated/convexSchemas.js +1 -1
  53. package/dist/generated/convexSchemas.js.map +1 -1
  54. package/dist/generated/infisicalRuntimeEnv.js +300 -6
  55. package/dist/generated/infisicalRuntimeEnv.js.map +1 -1
  56. package/dist/index.js +363 -16
  57. package/dist/index.js.map +1 -1
  58. package/dist/infisical-runtime.contract.d.ts +41 -3
  59. package/dist/infisical-runtime.contract.js +49 -3
  60. package/dist/infisical-runtime.contract.js.map +1 -1
  61. package/dist/manifests/infisical-runtime-manifest.d.ts +41 -3
  62. package/dist/manifests/infisical-runtime-manifest.js +49 -3
  63. package/dist/manifests/infisical-runtime-manifest.js.map +1 -1
  64. package/dist/permit-principal-projection.contract.js +8 -1
  65. package/dist/permit-principal-projection.contract.js.map +1 -1
  66. package/dist/proof-attestation.json +1 -1
  67. package/dist/schemas/index.js +1 -1
  68. package/dist/schemas/index.js.map +1 -1
  69. package/dist/schemas/manifest.d.ts +5 -5
  70. package/dist/schemas/manifest.js +1 -1
  71. package/dist/schemas/manifest.js.map +1 -1
  72. package/dist/schemas/tables/mc/tenant.d.ts +1 -1
  73. package/dist/schemas/tables/mc/tenant.js +1 -1
  74. package/dist/schemas/tables/mc/tenant.js.map +1 -1
  75. package/dist/sdk-tools.contract.js +4 -4
  76. package/dist/sdk-tools.contract.js.map +1 -1
  77. package/dist/tool-contracts.js +4 -4
  78. package/dist/tool-contracts.js.map +1 -1
  79. 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 federated principal identifier",
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 identity alias into the canonical authorization subject.",
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 Lucern principal identifier",
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', 'user:analyst'."
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."),