@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/types.js
CHANGED
|
@@ -805,7 +805,7 @@ defineTable({
|
|
|
805
805
|
shape: z.object({
|
|
806
806
|
"tenantId": idOf("tenants").optional(),
|
|
807
807
|
"apiKeyId": idOf("apiKeys").optional(),
|
|
808
|
-
"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"]),
|
|
808
|
+
"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"]),
|
|
809
809
|
"actorClerkId": z.string(),
|
|
810
810
|
"details": z.any().optional(),
|
|
811
811
|
"createdAt": z.number()
|
|
@@ -9443,7 +9443,7 @@ var IDENTITY_WHOAMI = {
|
|
|
9443
9443
|
response: {
|
|
9444
9444
|
description: "Canonical identity summary for the current session",
|
|
9445
9445
|
fields: {
|
|
9446
|
-
principalId: "string \u2014 canonical
|
|
9446
|
+
principalId: "string \u2014 canonical principal identifier; for humans this is the Clerk user_... ID",
|
|
9447
9447
|
principalType: "string \u2014 human, service, agent, group, or external_viewer",
|
|
9448
9448
|
tenantId: "string | undefined \u2014 resolved tenant scope",
|
|
9449
9449
|
workspaceId: "string | undefined \u2014 resolved workspace scope",
|
|
@@ -9457,7 +9457,7 @@ var IDENTITY_WHOAMI = {
|
|
|
9457
9457
|
};
|
|
9458
9458
|
var RESOLVE_INTERACTIVE_PRINCIPAL = {
|
|
9459
9459
|
name: "resolve_interactive_principal",
|
|
9460
|
-
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
|
|
9460
|
+
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.",
|
|
9461
9461
|
parameters: {
|
|
9462
9462
|
clerkId: {
|
|
9463
9463
|
type: "string",
|
|
@@ -9480,7 +9480,7 @@ var RESOLVE_INTERACTIVE_PRINCIPAL = {
|
|
|
9480
9480
|
response: {
|
|
9481
9481
|
description: "Permit-backed Lucern principal context for tenant SDK bootstrap",
|
|
9482
9482
|
fields: {
|
|
9483
|
-
principalId: "string \u2014 canonical
|
|
9483
|
+
principalId: "string \u2014 canonical Clerk user_... ID for human sessions",
|
|
9484
9484
|
principalType: "string \u2014 human, service, agent, group, or external_viewer",
|
|
9485
9485
|
clerkId: "string \u2014 authenticated Clerk subject alias",
|
|
9486
9486
|
tenantId: "string \u2014 resolved tenant scope",
|
|
@@ -10308,7 +10308,7 @@ var MANAGE_WRITE_POLICY = {
|
|
|
10308
10308
|
},
|
|
10309
10309
|
role: {
|
|
10310
10310
|
type: "string",
|
|
10311
|
-
description: "Role to set policy for (required for 'set'). E.g. 'agent:internal'
|
|
10311
|
+
description: "Role to set policy for (required for 'set'). E.g. 'agent:internal' or a Permit role key such as 'workspace_admin'."
|
|
10312
10312
|
},
|
|
10313
10313
|
permission: {
|
|
10314
10314
|
type: "string",
|
|
@@ -14089,6 +14089,19 @@ var worktreeEvidenceSignalInputSchema = z.object({
|
|
|
14089
14089
|
progress: z.string().optional().describe("Collection progress note for the signal."),
|
|
14090
14090
|
notes: z.string().optional().describe("Additional evidence collection notes.")
|
|
14091
14091
|
}).passthrough().describe("Evidence signal embedded in the worktree plan.");
|
|
14092
|
+
var worktreeDocCompanionTargetSchema = z.object({
|
|
14093
|
+
docPath: z.string().describe(
|
|
14094
|
+
"Repo-relative path to a documentation file the worktree promises to update."
|
|
14095
|
+
),
|
|
14096
|
+
sectionAnchor: z.string().optional().describe(
|
|
14097
|
+
"Markdown heading anchor (e.g. '## Function-surface manifest') that scopes the promised update."
|
|
14098
|
+
),
|
|
14099
|
+
reason: z.string().describe(
|
|
14100
|
+
"Why this doc section must be updated for the worktree to be complete."
|
|
14101
|
+
)
|
|
14102
|
+
}).passthrough().describe(
|
|
14103
|
+
"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."
|
|
14104
|
+
);
|
|
14092
14105
|
var worktreeDecisionGateInputSchema = z.object({
|
|
14093
14106
|
goCriteria: z.array(z.string()).describe("Criteria that must hold for the worktree to proceed."),
|
|
14094
14107
|
noGoSignals: z.array(z.string()).describe("Signals that stop or redirect the worktree."),
|
|
@@ -14121,6 +14134,9 @@ var addWorktreeArgs = z.object({
|
|
|
14121
14134
|
keyQuestions: z.array(worktreeKeyQuestionInputSchema).optional().describe("Inline key questions captured as part of the worktree plan."),
|
|
14122
14135
|
evidenceSignals: z.array(worktreeEvidenceSignalInputSchema).optional().describe("Evidence signals the worktree needs to collect or validate."),
|
|
14123
14136
|
decisionGate: worktreeDecisionGateInputSchema.optional(),
|
|
14137
|
+
docCompanionTargets: z.array(worktreeDocCompanionTargetSchema).optional().describe(
|
|
14138
|
+
"Doc sections the worktree promises to update at PR time. Enforced by pr-gate-reviewer (Lock 3)."
|
|
14139
|
+
),
|
|
14124
14140
|
goCriteria: z.array(z.string()).optional().describe("Shorthand go criteria used to build decisionGate."),
|
|
14125
14141
|
noGoSignals: z.array(z.string()).optional().describe("Shorthand no-go signals used to build decisionGate."),
|
|
14126
14142
|
proofArtifacts: z.array(z.unknown()).optional().describe("Expected proof artifacts required to close the worktree."),
|