@lucern/events 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/README.md +14 -2
- package/dist/index.js +21 -5
- package/dist/index.js.map +1 -1
- package/dist/outbox.js +21 -5
- package/dist/outbox.js.map +1 -1
- package/dist/types.js +21 -5
- package/dist/types.js.map +1 -1
- package/dist/webhooks.js +21 -5
- package/dist/webhooks.js.map +1 -1
- package/package.json +2 -2
package/dist/webhooks.js
CHANGED
|
@@ -766,7 +766,7 @@ defineTable({
|
|
|
766
766
|
shape: z.object({
|
|
767
767
|
"tenantId": idOf("tenants").optional(),
|
|
768
768
|
"apiKeyId": idOf("apiKeys").optional(),
|
|
769
|
-
"action": z.enum(["key_created", "key_revoked", "key_expired", "key_used", "tenant_secret_created", "tenant_secret_rotated", "tenant_secret_revoked", "tenant_slot_binding_upserted", "tenant_slot_binding_revoked", "proxy_token_minted", "proxy_token_lease_issued", "proxy_token_lease_renewed", "proxy_token_lease_revoked", "proxy_request_recorded", "tenant_created", "tenant_updated", "tenant_suspended", "tenant_archived", "tenant_reactivated", "principal_created", "principal_updated", "principal_suspended", "principal_identity_alias_upserted", "principal_identity_alias_revoked", "membership_created", "membership_updated", "membership_revoked", "group_created", "group_updated", "group_deleted", "group_member_added", "group_member_removed", "workspace_created", "workspace_updated", "workspace_archived", "workspace_deployment_set", "workspace_deployment_removed", "deployment_host_registered", "deployment_host_revoked", "service_key_created", "service_key_rotated", "service_key_revoked", "service_key_used", "service_key_auth_failed", "session_created", "session_validated", "session_revoked", "session_cascade_revoked", "session_expired", "sandbox_created", "sandbox_secret_injected", "sandbox_execution_started", "sandbox_execution_completed", "sandbox_limit_violated", "policy_created", "policy_updated", "policy_enforced", "policy_archived", "permit_sync_enqueued", "permit_sync_succeeded", "permit_sync_failed", "permit_sync_skipped", "agent_registered", "agent_updated", "tool_registered", "tool_updated", "pack_entitled", "pack_installed", "pack_enabled", "pack_disabled", "pack_entitlement_revoked", "pack_upgraded", "pack_upgrade_committed", "pack_upgrade_rolled_back", "pack_group_assigned", "pack_group_unassigned", "methodology_pack_created", "methodology_pack_updated", "methodology_pack_assigned", "methodology_pack_removed", "pack_assigned_to_group", "pack_revoked_from_group", "pack_ontology_materialized", "pack_ontology_topic_bound", "cutover_flag_set", "cutover_flag_cleared"]),
|
|
769
|
+
"action": z.enum(["key_created", "key_revoked", "key_expired", "key_used", "tenant_secret_created", "tenant_secret_rotated", "tenant_secret_revoked", "tenant_slot_binding_upserted", "tenant_slot_binding_revoked", "proxy_token_minted", "proxy_token_lease_issued", "proxy_token_lease_renewed", "proxy_token_lease_revoked", "proxy_request_recorded", "tenant_created", "tenant_updated", "tenant_suspended", "tenant_archived", "tenant_reactivated", "tenant_clerk_organization_linked", "principal_created", "principal_updated", "principal_suspended", "principal_identity_alias_upserted", "principal_identity_alias_revoked", "membership_created", "membership_updated", "membership_revoked", "group_created", "group_updated", "group_deleted", "group_member_added", "group_member_removed", "workspace_created", "workspace_updated", "workspace_archived", "workspace_deployment_set", "workspace_deployment_removed", "deployment_host_registered", "deployment_host_revoked", "service_key_created", "service_key_rotated", "service_key_revoked", "service_key_used", "service_key_auth_failed", "session_created", "session_validated", "session_revoked", "session_cascade_revoked", "session_expired", "sandbox_created", "sandbox_secret_injected", "sandbox_execution_started", "sandbox_execution_completed", "sandbox_limit_violated", "policy_created", "policy_updated", "policy_enforced", "policy_archived", "permit_sync_enqueued", "permit_sync_succeeded", "permit_sync_failed", "permit_sync_skipped", "agent_registered", "agent_updated", "tool_registered", "tool_updated", "pack_entitled", "pack_installed", "pack_enabled", "pack_disabled", "pack_entitlement_revoked", "pack_upgraded", "pack_upgrade_committed", "pack_upgrade_rolled_back", "pack_group_assigned", "pack_group_unassigned", "methodology_pack_created", "methodology_pack_updated", "methodology_pack_assigned", "methodology_pack_removed", "pack_assigned_to_group", "pack_revoked_from_group", "pack_ontology_materialized", "pack_ontology_topic_bound", "cutover_flag_set", "cutover_flag_cleared"]),
|
|
770
770
|
"actorClerkId": z.string(),
|
|
771
771
|
"details": z.any().optional(),
|
|
772
772
|
"createdAt": z.number()
|
|
@@ -9404,7 +9404,7 @@ var IDENTITY_WHOAMI = {
|
|
|
9404
9404
|
response: {
|
|
9405
9405
|
description: "Canonical identity summary for the current session",
|
|
9406
9406
|
fields: {
|
|
9407
|
-
principalId: "string \u2014 canonical
|
|
9407
|
+
principalId: "string \u2014 canonical principal identifier; for humans this is the Clerk user_... ID",
|
|
9408
9408
|
principalType: "string \u2014 human, service, agent, group, or external_viewer",
|
|
9409
9409
|
tenantId: "string | undefined \u2014 resolved tenant scope",
|
|
9410
9410
|
workspaceId: "string | undefined \u2014 resolved workspace scope",
|
|
@@ -9418,7 +9418,7 @@ var IDENTITY_WHOAMI = {
|
|
|
9418
9418
|
};
|
|
9419
9419
|
var RESOLVE_INTERACTIVE_PRINCIPAL = {
|
|
9420
9420
|
name: "resolve_interactive_principal",
|
|
9421
|
-
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
|
|
9421
|
+
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.",
|
|
9422
9422
|
parameters: {
|
|
9423
9423
|
clerkId: {
|
|
9424
9424
|
type: "string",
|
|
@@ -9441,7 +9441,7 @@ var RESOLVE_INTERACTIVE_PRINCIPAL = {
|
|
|
9441
9441
|
response: {
|
|
9442
9442
|
description: "Permit-backed Lucern principal context for tenant SDK bootstrap",
|
|
9443
9443
|
fields: {
|
|
9444
|
-
principalId: "string \u2014 canonical
|
|
9444
|
+
principalId: "string \u2014 canonical Clerk user_... ID for human sessions",
|
|
9445
9445
|
principalType: "string \u2014 human, service, agent, group, or external_viewer",
|
|
9446
9446
|
clerkId: "string \u2014 authenticated Clerk subject alias",
|
|
9447
9447
|
tenantId: "string \u2014 resolved tenant scope",
|
|
@@ -10269,7 +10269,7 @@ var MANAGE_WRITE_POLICY = {
|
|
|
10269
10269
|
},
|
|
10270
10270
|
role: {
|
|
10271
10271
|
type: "string",
|
|
10272
|
-
description: "Role to set policy for (required for 'set'). E.g. 'agent:internal'
|
|
10272
|
+
description: "Role to set policy for (required for 'set'). E.g. 'agent:internal' or a Permit role key such as 'workspace_admin'."
|
|
10273
10273
|
},
|
|
10274
10274
|
permission: {
|
|
10275
10275
|
type: "string",
|
|
@@ -14050,6 +14050,19 @@ var worktreeEvidenceSignalInputSchema = z.object({
|
|
|
14050
14050
|
progress: z.string().optional().describe("Collection progress note for the signal."),
|
|
14051
14051
|
notes: z.string().optional().describe("Additional evidence collection notes.")
|
|
14052
14052
|
}).passthrough().describe("Evidence signal embedded in the worktree plan.");
|
|
14053
|
+
var worktreeDocCompanionTargetSchema = z.object({
|
|
14054
|
+
docPath: z.string().describe(
|
|
14055
|
+
"Repo-relative path to a documentation file the worktree promises to update."
|
|
14056
|
+
),
|
|
14057
|
+
sectionAnchor: z.string().optional().describe(
|
|
14058
|
+
"Markdown heading anchor (e.g. '## Function-surface manifest') that scopes the promised update."
|
|
14059
|
+
),
|
|
14060
|
+
reason: z.string().describe(
|
|
14061
|
+
"Why this doc section must be updated for the worktree to be complete."
|
|
14062
|
+
)
|
|
14063
|
+
}).passthrough().describe(
|
|
14064
|
+
"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."
|
|
14065
|
+
);
|
|
14053
14066
|
var worktreeDecisionGateInputSchema = z.object({
|
|
14054
14067
|
goCriteria: z.array(z.string()).describe("Criteria that must hold for the worktree to proceed."),
|
|
14055
14068
|
noGoSignals: z.array(z.string()).describe("Signals that stop or redirect the worktree."),
|
|
@@ -14082,6 +14095,9 @@ var addWorktreeArgs = z.object({
|
|
|
14082
14095
|
keyQuestions: z.array(worktreeKeyQuestionInputSchema).optional().describe("Inline key questions captured as part of the worktree plan."),
|
|
14083
14096
|
evidenceSignals: z.array(worktreeEvidenceSignalInputSchema).optional().describe("Evidence signals the worktree needs to collect or validate."),
|
|
14084
14097
|
decisionGate: worktreeDecisionGateInputSchema.optional(),
|
|
14098
|
+
docCompanionTargets: z.array(worktreeDocCompanionTargetSchema).optional().describe(
|
|
14099
|
+
"Doc sections the worktree promises to update at PR time. Enforced by pr-gate-reviewer (Lock 3)."
|
|
14100
|
+
),
|
|
14085
14101
|
goCriteria: z.array(z.string()).optional().describe("Shorthand go criteria used to build decisionGate."),
|
|
14086
14102
|
noGoSignals: z.array(z.string()).optional().describe("Shorthand no-go signals used to build decisionGate."),
|
|
14087
14103
|
proofArtifacts: z.array(z.unknown()).optional().describe("Expected proof artifacts required to close the worktree."),
|