@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/outbox.js
CHANGED
|
@@ -857,7 +857,7 @@ defineTable({
|
|
|
857
857
|
shape: z.object({
|
|
858
858
|
"tenantId": idOf("tenants").optional(),
|
|
859
859
|
"apiKeyId": idOf("apiKeys").optional(),
|
|
860
|
-
"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"]),
|
|
860
|
+
"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"]),
|
|
861
861
|
"actorClerkId": z.string(),
|
|
862
862
|
"details": z.any().optional(),
|
|
863
863
|
"createdAt": z.number()
|
|
@@ -9495,7 +9495,7 @@ var IDENTITY_WHOAMI = {
|
|
|
9495
9495
|
response: {
|
|
9496
9496
|
description: "Canonical identity summary for the current session",
|
|
9497
9497
|
fields: {
|
|
9498
|
-
principalId: "string \u2014 canonical
|
|
9498
|
+
principalId: "string \u2014 canonical principal identifier; for humans this is the Clerk user_... ID",
|
|
9499
9499
|
principalType: "string \u2014 human, service, agent, group, or external_viewer",
|
|
9500
9500
|
tenantId: "string | undefined \u2014 resolved tenant scope",
|
|
9501
9501
|
workspaceId: "string | undefined \u2014 resolved workspace scope",
|
|
@@ -9509,7 +9509,7 @@ var IDENTITY_WHOAMI = {
|
|
|
9509
9509
|
};
|
|
9510
9510
|
var RESOLVE_INTERACTIVE_PRINCIPAL = {
|
|
9511
9511
|
name: "resolve_interactive_principal",
|
|
9512
|
-
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
|
|
9512
|
+
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.",
|
|
9513
9513
|
parameters: {
|
|
9514
9514
|
clerkId: {
|
|
9515
9515
|
type: "string",
|
|
@@ -9532,7 +9532,7 @@ var RESOLVE_INTERACTIVE_PRINCIPAL = {
|
|
|
9532
9532
|
response: {
|
|
9533
9533
|
description: "Permit-backed Lucern principal context for tenant SDK bootstrap",
|
|
9534
9534
|
fields: {
|
|
9535
|
-
principalId: "string \u2014 canonical
|
|
9535
|
+
principalId: "string \u2014 canonical Clerk user_... ID for human sessions",
|
|
9536
9536
|
principalType: "string \u2014 human, service, agent, group, or external_viewer",
|
|
9537
9537
|
clerkId: "string \u2014 authenticated Clerk subject alias",
|
|
9538
9538
|
tenantId: "string \u2014 resolved tenant scope",
|
|
@@ -10360,7 +10360,7 @@ var MANAGE_WRITE_POLICY = {
|
|
|
10360
10360
|
},
|
|
10361
10361
|
role: {
|
|
10362
10362
|
type: "string",
|
|
10363
|
-
description: "Role to set policy for (required for 'set'). E.g. 'agent:internal'
|
|
10363
|
+
description: "Role to set policy for (required for 'set'). E.g. 'agent:internal' or a Permit role key such as 'workspace_admin'."
|
|
10364
10364
|
},
|
|
10365
10365
|
permission: {
|
|
10366
10366
|
type: "string",
|
|
@@ -14141,6 +14141,19 @@ var worktreeEvidenceSignalInputSchema = z.object({
|
|
|
14141
14141
|
progress: z.string().optional().describe("Collection progress note for the signal."),
|
|
14142
14142
|
notes: z.string().optional().describe("Additional evidence collection notes.")
|
|
14143
14143
|
}).passthrough().describe("Evidence signal embedded in the worktree plan.");
|
|
14144
|
+
var worktreeDocCompanionTargetSchema = z.object({
|
|
14145
|
+
docPath: z.string().describe(
|
|
14146
|
+
"Repo-relative path to a documentation file the worktree promises to update."
|
|
14147
|
+
),
|
|
14148
|
+
sectionAnchor: z.string().optional().describe(
|
|
14149
|
+
"Markdown heading anchor (e.g. '## Function-surface manifest') that scopes the promised update."
|
|
14150
|
+
),
|
|
14151
|
+
reason: z.string().describe(
|
|
14152
|
+
"Why this doc section must be updated for the worktree to be complete."
|
|
14153
|
+
)
|
|
14154
|
+
}).passthrough().describe(
|
|
14155
|
+
"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."
|
|
14156
|
+
);
|
|
14144
14157
|
var worktreeDecisionGateInputSchema = z.object({
|
|
14145
14158
|
goCriteria: z.array(z.string()).describe("Criteria that must hold for the worktree to proceed."),
|
|
14146
14159
|
noGoSignals: z.array(z.string()).describe("Signals that stop or redirect the worktree."),
|
|
@@ -14173,6 +14186,9 @@ var addWorktreeArgs = z.object({
|
|
|
14173
14186
|
keyQuestions: z.array(worktreeKeyQuestionInputSchema).optional().describe("Inline key questions captured as part of the worktree plan."),
|
|
14174
14187
|
evidenceSignals: z.array(worktreeEvidenceSignalInputSchema).optional().describe("Evidence signals the worktree needs to collect or validate."),
|
|
14175
14188
|
decisionGate: worktreeDecisionGateInputSchema.optional(),
|
|
14189
|
+
docCompanionTargets: z.array(worktreeDocCompanionTargetSchema).optional().describe(
|
|
14190
|
+
"Doc sections the worktree promises to update at PR time. Enforced by pr-gate-reviewer (Lock 3)."
|
|
14191
|
+
),
|
|
14176
14192
|
goCriteria: z.array(z.string()).optional().describe("Shorthand go criteria used to build decisionGate."),
|
|
14177
14193
|
noGoSignals: z.array(z.string()).optional().describe("Shorthand no-go signals used to build decisionGate."),
|
|
14178
14194
|
proofArtifacts: z.array(z.unknown()).optional().describe("Expected proof artifacts required to close the worktree."),
|