@rosthq/cli 0.7.122 → 0.7.123
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 +22 -3
- package/dist/commands/onboarding.d.ts +2 -2
- package/dist/commands/onboarding.d.ts.map +1 -1
- package/dist/generated/command-manifest.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +551 -329
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
- package/prompts/how-tos/human-confirmations.md +3 -1
package/dist/index.js
CHANGED
|
@@ -31772,15 +31772,16 @@ var charterBudgetSchema = external_exports.object({
|
|
|
31772
31772
|
approval_required_over_usd: external_exports.number().nonnegative().nullable(),
|
|
31773
31773
|
notes: external_exports.string().min(1)
|
|
31774
31774
|
}).strict();
|
|
31775
|
+
var charterDecisionAuthoritySchema = external_exports.object({
|
|
31776
|
+
autonomous: external_exports.array(charterAuthorityItemSchema),
|
|
31777
|
+
approval: external_exports.array(charterAuthorityItemSchema),
|
|
31778
|
+
escalate: external_exports.array(charterAuthorityItemSchema).min(1)
|
|
31779
|
+
}).strict();
|
|
31775
31780
|
var charterDocObjectSchema = external_exports.object({
|
|
31776
31781
|
payload_version: external_exports.literal(1),
|
|
31777
31782
|
purpose: external_exports.string().min(1),
|
|
31778
31783
|
accountabilities: external_exports.array(charterAccountabilitySchema).min(1),
|
|
31779
|
-
decision_authority:
|
|
31780
|
-
autonomous: external_exports.array(charterAuthorityItemSchema),
|
|
31781
|
-
approval: external_exports.array(charterAuthorityItemSchema),
|
|
31782
|
-
escalate: external_exports.array(charterAuthorityItemSchema).min(1)
|
|
31783
|
-
}).strict(),
|
|
31784
|
+
decision_authority: charterDecisionAuthoritySchema,
|
|
31784
31785
|
escalation_rules: external_exports.array(external_exports.string().min(1)).min(1),
|
|
31785
31786
|
measurables: external_exports.array(charterMeasurableSchema).min(1),
|
|
31786
31787
|
permission_manifest: external_exports.array(charterPermissionSchema),
|
|
@@ -36587,9 +36588,163 @@ var onboardingRehearseOutputSchema = external_exports.union([
|
|
|
36587
36588
|
terminalOutputSchema
|
|
36588
36589
|
]);
|
|
36589
36590
|
|
|
36591
|
+
// ../../packages/protocol/src/onboarding-activation.ts
|
|
36592
|
+
var uuidSchema18 = external_exports.string().uuid();
|
|
36593
|
+
var digestSchema4 = external_exports.string().regex(/^sha256:[0-9a-f]{64}$/);
|
|
36594
|
+
var boundedText3 = (max) => external_exports.string().trim().min(1).max(max);
|
|
36595
|
+
var rehearsalRunEntrySchema = external_exports.object({
|
|
36596
|
+
agent_id: uuidSchema18,
|
|
36597
|
+
rehearsal_run_id: uuidSchema18
|
|
36598
|
+
}).strict();
|
|
36599
|
+
var configurationDigestEntrySchema = external_exports.object({
|
|
36600
|
+
agent_id: uuidSchema18,
|
|
36601
|
+
configuration_digest: digestSchema4
|
|
36602
|
+
}).strict();
|
|
36603
|
+
function uniqueAgentEntries(values, ctx) {
|
|
36604
|
+
const seen = /* @__PURE__ */ new Set();
|
|
36605
|
+
values.forEach((value, index) => {
|
|
36606
|
+
if (seen.has(value.agent_id)) {
|
|
36607
|
+
ctx.addIssue({
|
|
36608
|
+
code: external_exports.ZodIssueCode.custom,
|
|
36609
|
+
path: [index, "agent_id"],
|
|
36610
|
+
message: "Activation evidence must not repeat an agent_id."
|
|
36611
|
+
});
|
|
36612
|
+
}
|
|
36613
|
+
seen.add(value.agent_id);
|
|
36614
|
+
});
|
|
36615
|
+
}
|
|
36616
|
+
var onboardingActivationRehearsalRunsSchema = external_exports.array(rehearsalRunEntrySchema).min(1).max(100).superRefine(uniqueAgentEntries);
|
|
36617
|
+
var onboardingActivationConfigurationDigestsSchema = external_exports.array(configurationDigestEntrySchema).min(1).max(100).superRefine(uniqueAgentEntries);
|
|
36618
|
+
var onboardingActivateInputSchema = external_exports.object({
|
|
36619
|
+
idempotency_key: boundedText3(120),
|
|
36620
|
+
setup_application_id: uuidSchema18,
|
|
36621
|
+
expected_input_digest: digestSchema4,
|
|
36622
|
+
expected_receipt_revision: external_exports.number().int().positive(),
|
|
36623
|
+
terminal_rehearsal_batch_receipt_id: uuidSchema18,
|
|
36624
|
+
rehearsal_runs: onboardingActivationRehearsalRunsSchema,
|
|
36625
|
+
configuration_digests: onboardingActivationConfigurationDigestsSchema
|
|
36626
|
+
}).strict();
|
|
36627
|
+
var effectivePermissionManifestRuleSchema = external_exports.object({
|
|
36628
|
+
name: boundedText3(200),
|
|
36629
|
+
mode: external_exports.enum(["allow", "deny", "escalate"]),
|
|
36630
|
+
clause: boundedText3(500),
|
|
36631
|
+
scopeTier: external_exports.enum(["read", "draft", "write_with_approval", "full"]).optional(),
|
|
36632
|
+
args: external_exports.object({
|
|
36633
|
+
equals: external_exports.record(external_exports.string(), external_exports.unknown()).optional()
|
|
36634
|
+
}).strict().optional(),
|
|
36635
|
+
credentialGrant: external_exports.object({
|
|
36636
|
+
capabilityId: boundedText3(200),
|
|
36637
|
+
integrationId: uuidSchema18.nullable(),
|
|
36638
|
+
requestedAccessLevel: capabilityGrantAccessLevelSchema,
|
|
36639
|
+
actingSeatId: uuidSchema18.optional(),
|
|
36640
|
+
effectiveCharterVersionId: uuidSchema18.optional()
|
|
36641
|
+
}).strict().optional()
|
|
36642
|
+
}).strict();
|
|
36643
|
+
var onboardingActivationAgentProposalSchema = external_exports.object({
|
|
36644
|
+
agent_id: uuidSchema18,
|
|
36645
|
+
seat_id: uuidSchema18,
|
|
36646
|
+
charter_version_id: uuidSchema18,
|
|
36647
|
+
manifest: external_exports.object({
|
|
36648
|
+
digest: digestSchema4,
|
|
36649
|
+
evidence_receipt_id: uuidSchema18,
|
|
36650
|
+
evidence_revision: external_exports.number().int().positive()
|
|
36651
|
+
}).strict(),
|
|
36652
|
+
configuration_digest: digestSchema4,
|
|
36653
|
+
rehearsal_run_id: uuidSchema18,
|
|
36654
|
+
effective_lane: external_exports.enum(["cloud", "mcp_session", "runner"]),
|
|
36655
|
+
effective_model: external_exports.string().trim().min(1).max(200).nullable(),
|
|
36656
|
+
decision_authority: charterDecisionAuthoritySchema,
|
|
36657
|
+
effective_permission_manifest: external_exports.array(effectivePermissionManifestRuleSchema).max(200),
|
|
36658
|
+
schedule: external_exports.object({
|
|
36659
|
+
cron: external_exports.string().trim().min(1).max(200).nullable(),
|
|
36660
|
+
timezone: external_exports.string().trim().min(1).max(100).nullable()
|
|
36661
|
+
}).strict(),
|
|
36662
|
+
budget: external_exports.object({
|
|
36663
|
+
current_spend_usd: external_exports.string().trim().min(1).max(100),
|
|
36664
|
+
hard_cap_usd: external_exports.string().trim().min(1).max(100).nullable()
|
|
36665
|
+
}).strict(),
|
|
36666
|
+
sources: external_exports.object({
|
|
36667
|
+
checked: external_exports.number().int().nonnegative(),
|
|
36668
|
+
required: external_exports.number().int().positive()
|
|
36669
|
+
}).strict(),
|
|
36670
|
+
warnings: external_exports.array(external_exports.string().trim().min(1).max(500)).max(100)
|
|
36671
|
+
}).strict();
|
|
36672
|
+
var onboardingActivationApprovalProjectionSchema = external_exports.object({
|
|
36673
|
+
kind: external_exports.literal("onboarding_activation"),
|
|
36674
|
+
setup_application_id: uuidSchema18,
|
|
36675
|
+
implementation_run_id: uuidSchema18.nullable(),
|
|
36676
|
+
expected_input_digest: digestSchema4,
|
|
36677
|
+
expected_receipt_revision: external_exports.number().int().positive(),
|
|
36678
|
+
terminal_rehearsal_batch_receipt_id: uuidSchema18,
|
|
36679
|
+
activation_input_digest: digestSchema4,
|
|
36680
|
+
agents: external_exports.array(onboardingActivationAgentProposalSchema).min(1).max(100),
|
|
36681
|
+
checked_count: external_exports.number().int().positive(),
|
|
36682
|
+
total_count: external_exports.number().int().positive(),
|
|
36683
|
+
onboarding_completion_effect: external_exports.literal(true)
|
|
36684
|
+
}).strict();
|
|
36685
|
+
var onboardingActivationCommittedAgentSchema = external_exports.object({
|
|
36686
|
+
agent_id: uuidSchema18,
|
|
36687
|
+
seat_id: uuidSchema18,
|
|
36688
|
+
status: external_exports.literal("live"),
|
|
36689
|
+
schedule_armed: external_exports.boolean()
|
|
36690
|
+
}).strict();
|
|
36691
|
+
var onboardingActivationCommittedAgentsSchema = external_exports.array(
|
|
36692
|
+
onboardingActivationCommittedAgentSchema
|
|
36693
|
+
).min(1).max(100).superRefine((agents, ctx) => {
|
|
36694
|
+
const agentIds = /* @__PURE__ */ new Set();
|
|
36695
|
+
const seatIds = /* @__PURE__ */ new Set();
|
|
36696
|
+
agents.forEach((agent, index) => {
|
|
36697
|
+
if (agentIds.has(agent.agent_id)) {
|
|
36698
|
+
ctx.addIssue({
|
|
36699
|
+
code: external_exports.ZodIssueCode.custom,
|
|
36700
|
+
path: [index, "agent_id"],
|
|
36701
|
+
message: "Activation snapshot agents must have unique agent_id values."
|
|
36702
|
+
});
|
|
36703
|
+
}
|
|
36704
|
+
if (seatIds.has(agent.seat_id)) {
|
|
36705
|
+
ctx.addIssue({
|
|
36706
|
+
code: external_exports.ZodIssueCode.custom,
|
|
36707
|
+
path: [index, "seat_id"],
|
|
36708
|
+
message: "Activation snapshot agents must have unique seat_id values."
|
|
36709
|
+
});
|
|
36710
|
+
}
|
|
36711
|
+
agentIds.add(agent.agent_id);
|
|
36712
|
+
seatIds.add(agent.seat_id);
|
|
36713
|
+
});
|
|
36714
|
+
});
|
|
36715
|
+
var onboardingActivationCommitSnapshotSchema = external_exports.object({
|
|
36716
|
+
terminal_rehearsal_batch_receipt_id: uuidSchema18,
|
|
36717
|
+
agents: onboardingActivationCommittedAgentsSchema,
|
|
36718
|
+
onboarding_completed_at: external_exports.string().datetime({ offset: true })
|
|
36719
|
+
}).strict();
|
|
36720
|
+
var onboardingActivationPersistenceInputSchema = external_exports.object({
|
|
36721
|
+
activation_confirmation_id: uuidSchema18,
|
|
36722
|
+
activation_idempotency_key: boundedText3(120),
|
|
36723
|
+
activation_input_digest: digestSchema4,
|
|
36724
|
+
receipt_revision: external_exports.number().int().positive(),
|
|
36725
|
+
activation_snapshot: onboardingActivationCommitSnapshotSchema
|
|
36726
|
+
}).strict();
|
|
36727
|
+
var onboardingActivationReceiptSchema = external_exports.object({
|
|
36728
|
+
activation_receipt_id: uuidSchema18,
|
|
36729
|
+
activation_confirmation_id: uuidSchema18,
|
|
36730
|
+
setup_application_id: uuidSchema18,
|
|
36731
|
+
implementation_run_id: uuidSchema18.nullable(),
|
|
36732
|
+
activation_input_digest: digestSchema4,
|
|
36733
|
+
setup_receipt_revision: external_exports.number().int().positive(),
|
|
36734
|
+
terminal_rehearsal_batch_receipt_id: uuidSchema18,
|
|
36735
|
+
agents: external_exports.array(onboardingActivationCommittedAgentSchema).min(1).max(100),
|
|
36736
|
+
onboarding_completed_at: external_exports.string().datetime({ offset: true }),
|
|
36737
|
+
activated_at: external_exports.string().datetime({ offset: true })
|
|
36738
|
+
}).strict();
|
|
36739
|
+
var onboardingActivateOutputSchema = external_exports.object({
|
|
36740
|
+
application_id: uuidSchema18,
|
|
36741
|
+
status: external_exports.literal("activated"),
|
|
36742
|
+
receipt: onboardingActivationReceiptSchema
|
|
36743
|
+
}).strict();
|
|
36744
|
+
|
|
36590
36745
|
// ../../packages/protocol/src/mcp-onboarding.ts
|
|
36591
36746
|
var MCP_TOKEN_ABSOLUTE_MAX_EXPIRY_MS = (MCP_TOKEN_NO_EXPIRY_SENTINEL_DAYS + 1) * 24 * 60 * 60 * 1e3;
|
|
36592
|
-
var
|
|
36747
|
+
var uuidSchema19 = external_exports.string().uuid();
|
|
36593
36748
|
var isoDateTime6 = external_exports.string().datetime({ offset: true });
|
|
36594
36749
|
var onboardingStatusInputSchema = external_exports.object({}).strict();
|
|
36595
36750
|
var onboardingStatusOutputSchema = external_exports.object({
|
|
@@ -36633,7 +36788,7 @@ var onboardingAttachReferenceInputSchema = external_exports.object({
|
|
|
36633
36788
|
source: external_exports.string().trim().min(1).max(500).optional()
|
|
36634
36789
|
}).strict();
|
|
36635
36790
|
var onboardingAttachReferenceOutputSchema = external_exports.object({
|
|
36636
|
-
document_id:
|
|
36791
|
+
document_id: uuidSchema19,
|
|
36637
36792
|
storage_ref: external_exports.string().min(1),
|
|
36638
36793
|
kind: external_exports.enum(["org_chart", "role_doc", "plan", "financial", "other"]),
|
|
36639
36794
|
title: external_exports.string().min(1).nullable()
|
|
@@ -36658,7 +36813,7 @@ var onboardingCreateInviteInputSchema = external_exports.object({
|
|
|
36658
36813
|
flags: external_exports.record(external_exports.string(), external_exports.unknown()).default({})
|
|
36659
36814
|
}).strict();
|
|
36660
36815
|
var onboardingCreateInviteOutputSchema = external_exports.object({
|
|
36661
|
-
invite_id:
|
|
36816
|
+
invite_id: uuidSchema19,
|
|
36662
36817
|
email: external_exports.string().email(),
|
|
36663
36818
|
role: external_exports.enum(["owner", "admin", "steward", "member"]),
|
|
36664
36819
|
token: external_exports.string().min(1)
|
|
@@ -36671,19 +36826,19 @@ var tenantAnthropicKeySaveOutputSchema = external_exports.object({
|
|
|
36671
36826
|
}).strict();
|
|
36672
36827
|
var tenantAnthropicKeyDisableInputSchema = external_exports.object({}).strict();
|
|
36673
36828
|
var tenantAnthropicKeyDisableOutputSchema = external_exports.object({
|
|
36674
|
-
tenant_id:
|
|
36675
|
-
credential_id:
|
|
36829
|
+
tenant_id: uuidSchema19,
|
|
36830
|
+
credential_id: uuidSchema19.nullable(),
|
|
36676
36831
|
disabled: external_exports.boolean(),
|
|
36677
36832
|
already_disabled: external_exports.boolean(),
|
|
36678
36833
|
managed_fallback_ready: external_exports.boolean()
|
|
36679
36834
|
}).strict();
|
|
36680
36835
|
var seatCreateInputSchema = external_exports.object({
|
|
36681
36836
|
name: external_exports.string().trim().min(1).max(120),
|
|
36682
|
-
parent_seat_id:
|
|
36837
|
+
parent_seat_id: uuidSchema19.nullable().optional(),
|
|
36683
36838
|
seat_type: external_exports.enum(["human", "agent", "hybrid"]).default("human")
|
|
36684
36839
|
}).strict();
|
|
36685
36840
|
var seatCreateOutputSchema = withCommandEffect({
|
|
36686
|
-
seat_id:
|
|
36841
|
+
seat_id: uuidSchema19,
|
|
36687
36842
|
// Mirrors the literal `createSeat` writes at insert time. Not sourced from a
|
|
36688
36843
|
// read-back: `createSeat` returns only the new id, and widening its
|
|
36689
36844
|
// signature to return the row is out of scope for this issue (schema +
|
|
@@ -36694,29 +36849,29 @@ var seatCreateOutputSchema = withCommandEffect({
|
|
|
36694
36849
|
status: external_exports.enum(["draft", "active", "vacant", "decommissioned"])
|
|
36695
36850
|
});
|
|
36696
36851
|
var seatRenameInputSchema = external_exports.object({
|
|
36697
|
-
seat_id:
|
|
36852
|
+
seat_id: uuidSchema19,
|
|
36698
36853
|
name: external_exports.string().trim().min(1).max(120)
|
|
36699
36854
|
}).strict();
|
|
36700
36855
|
var seatReparentInputSchema = external_exports.object({
|
|
36701
|
-
seat_id:
|
|
36702
|
-
new_parent_seat_id:
|
|
36856
|
+
seat_id: uuidSchema19,
|
|
36857
|
+
new_parent_seat_id: uuidSchema19.nullable()
|
|
36703
36858
|
}).strict();
|
|
36704
36859
|
var seatSetTypeInputSchema = external_exports.object({
|
|
36705
|
-
seat_id:
|
|
36860
|
+
seat_id: uuidSchema19,
|
|
36706
36861
|
seat_type: external_exports.enum(["human", "agent", "hybrid"])
|
|
36707
36862
|
}).strict();
|
|
36708
36863
|
var seatDecommissionInputSchema = external_exports.object({
|
|
36709
|
-
seat_id:
|
|
36864
|
+
seat_id: uuidSchema19
|
|
36710
36865
|
}).strict();
|
|
36711
36866
|
var seatMutationOutputSchema = external_exports.object({
|
|
36712
|
-
seat_id:
|
|
36867
|
+
seat_id: uuidSchema19
|
|
36713
36868
|
}).strict();
|
|
36714
36869
|
var seatDecommissionPreviewOutputSchema = external_exports.object({
|
|
36715
|
-
seat_id:
|
|
36870
|
+
seat_id: uuidSchema19,
|
|
36716
36871
|
seat_name: external_exports.string(),
|
|
36717
36872
|
previous_status: external_exports.enum(["draft", "active", "vacant", "decommissioned"]),
|
|
36718
36873
|
active_occupancy_count: external_exports.number().int().nonnegative(),
|
|
36719
|
-
active_agent_ids: external_exports.array(
|
|
36874
|
+
active_agent_ids: external_exports.array(uuidSchema19),
|
|
36720
36875
|
active_charter_count: external_exports.number().int().nonnegative(),
|
|
36721
36876
|
active_mcp_token_count: external_exports.number().int().nonnegative(),
|
|
36722
36877
|
active_credential_count: external_exports.number().int().nonnegative(),
|
|
@@ -36726,16 +36881,16 @@ var seatDecommissionPreviewOutputSchema = external_exports.object({
|
|
|
36726
36881
|
effects: external_exports.array(external_exports.string())
|
|
36727
36882
|
}).strict();
|
|
36728
36883
|
var charterDraftInputSchema = external_exports.object({
|
|
36729
|
-
seat_id:
|
|
36884
|
+
seat_id: uuidSchema19
|
|
36730
36885
|
}).strict();
|
|
36731
36886
|
var charterDraftOutputSchema = external_exports.object({
|
|
36732
|
-
charter_version_id:
|
|
36733
|
-
seat_id:
|
|
36887
|
+
charter_version_id: uuidSchema19,
|
|
36888
|
+
seat_id: uuidSchema19,
|
|
36734
36889
|
edit_revision: external_exports.number().int().min(1).optional(),
|
|
36735
36890
|
doc: external_exports.unknown()
|
|
36736
36891
|
}).strict();
|
|
36737
36892
|
var charterUpdateDraftInputSchema = external_exports.object({
|
|
36738
|
-
charter_version_id:
|
|
36893
|
+
charter_version_id: uuidSchema19,
|
|
36739
36894
|
expected_edit_revision: external_exports.number().int().min(1).optional(),
|
|
36740
36895
|
// DER-785 (Part G): the full Charter document contract (was `z.unknown()`).
|
|
36741
36896
|
// The DB layer already validated this with `charterSchema.parse`; advertising
|
|
@@ -36744,18 +36899,18 @@ var charterUpdateDraftInputSchema = external_exports.object({
|
|
|
36744
36899
|
doc: charterDocSchema
|
|
36745
36900
|
}).strict();
|
|
36746
36901
|
var charterSetInputSchema = external_exports.object({
|
|
36747
|
-
seat_id:
|
|
36902
|
+
seat_id: uuidSchema19,
|
|
36748
36903
|
doc: charterDocSchema,
|
|
36749
36904
|
approve: external_exports.boolean().default(false)
|
|
36750
36905
|
}).strict();
|
|
36751
36906
|
var charterMutationOutputSchema = external_exports.object({
|
|
36752
|
-
charter_version_id:
|
|
36753
|
-
seat_id:
|
|
36907
|
+
charter_version_id: uuidSchema19,
|
|
36908
|
+
seat_id: uuidSchema19,
|
|
36754
36909
|
edit_revision: external_exports.number().int().min(1).optional()
|
|
36755
36910
|
}).strict();
|
|
36756
36911
|
var charterApproveInputSchema = external_exports.object({
|
|
36757
|
-
seat_id:
|
|
36758
|
-
charter_version_id:
|
|
36912
|
+
seat_id: uuidSchema19.optional(),
|
|
36913
|
+
charter_version_id: uuidSchema19.optional(),
|
|
36759
36914
|
// DER-785 (Part G): a partial of the Charter doc shape (was an untyped record).
|
|
36760
36915
|
// These fields are shallow-merged onto the existing draft, then the merged doc
|
|
36761
36916
|
// is re-validated against the full schema at persist time.
|
|
@@ -36771,12 +36926,12 @@ var charterSignalResolutionSchema = external_exports.discriminatedUnion("action"
|
|
|
36771
36926
|
external_exports.object({
|
|
36772
36927
|
declaration_name: charterSignalDeclarationNameSchema,
|
|
36773
36928
|
action: external_exports.literal("adopt_existing"),
|
|
36774
|
-
measurable_id:
|
|
36929
|
+
measurable_id: uuidSchema19
|
|
36775
36930
|
}).strict(),
|
|
36776
36931
|
external_exports.object({
|
|
36777
36932
|
declaration_name: charterSignalDeclarationNameSchema,
|
|
36778
36933
|
action: external_exports.literal("move_existing"),
|
|
36779
|
-
measurable_id:
|
|
36934
|
+
measurable_id: uuidSchema19
|
|
36780
36935
|
}).strict(),
|
|
36781
36936
|
external_exports.object({
|
|
36782
36937
|
declaration_name: charterSignalDeclarationNameSchema,
|
|
@@ -36784,7 +36939,7 @@ var charterSignalResolutionSchema = external_exports.discriminatedUnion("action"
|
|
|
36784
36939
|
}).strict()
|
|
36785
36940
|
]);
|
|
36786
36941
|
var charterReconcileSignalsInputSchema = external_exports.object({
|
|
36787
|
-
charter_version_id:
|
|
36942
|
+
charter_version_id: uuidSchema19,
|
|
36788
36943
|
// The stale-draft guard: `charter_versions.edit_revision` starts at 1, so 0 is
|
|
36789
36944
|
// never a real revision.
|
|
36790
36945
|
expected_edit_revision: external_exports.number().int().min(1),
|
|
@@ -36792,16 +36947,16 @@ var charterReconcileSignalsInputSchema = external_exports.object({
|
|
|
36792
36947
|
apply_seat_type: external_exports.boolean().default(false)
|
|
36793
36948
|
}).strict();
|
|
36794
36949
|
var charterSignalGoalBindingSchema = external_exports.object({
|
|
36795
|
-
goal_id:
|
|
36950
|
+
goal_id: uuidSchema19,
|
|
36796
36951
|
goal_title: external_exports.string(),
|
|
36797
36952
|
// Null for a company objective, which owns no Seat. A `drives_status` binding on a
|
|
36798
36953
|
// seatless goal can never match a destination Seat, so movement fails closed.
|
|
36799
|
-
goal_seat_id:
|
|
36954
|
+
goal_seat_id: uuidSchema19.nullable(),
|
|
36800
36955
|
role: external_exports.enum(["drives_status", "informs"])
|
|
36801
36956
|
}).strict();
|
|
36802
36957
|
var charterSignalCandidateSchema = external_exports.object({
|
|
36803
|
-
measurable_id:
|
|
36804
|
-
owner_seat_id:
|
|
36958
|
+
measurable_id: uuidSchema19,
|
|
36959
|
+
owner_seat_id: uuidSchema19,
|
|
36805
36960
|
owner_seat_name: external_exports.string(),
|
|
36806
36961
|
stored_source: external_exports.enum(["human", "agent", "integration"]),
|
|
36807
36962
|
reading_count: external_exports.number().int().min(0),
|
|
@@ -36821,7 +36976,7 @@ var charterSignalCandidateSchema = external_exports.object({
|
|
|
36821
36976
|
var charterSignalReconciliationItemSchema = external_exports.object({
|
|
36822
36977
|
declaration_name: external_exports.string(),
|
|
36823
36978
|
status: external_exports.enum(["linked", "candidate", "ambiguous", "missing"]),
|
|
36824
|
-
linked_measurable_id:
|
|
36979
|
+
linked_measurable_id: uuidSchema19.nullable(),
|
|
36825
36980
|
candidates: external_exports.array(charterSignalCandidateSchema),
|
|
36826
36981
|
// A DERIVED suggestion, never an applied one: `null` whenever a human must choose
|
|
36827
36982
|
// (ambiguous), whenever nothing matches (missing), or when the declaration is already
|
|
@@ -36832,11 +36987,11 @@ var charterSignalReconciliationItemSchema = external_exports.object({
|
|
|
36832
36987
|
warnings: external_exports.array(external_exports.string())
|
|
36833
36988
|
}).strict();
|
|
36834
36989
|
var charterPreviewSignalReconciliationInputSchema = external_exports.object({
|
|
36835
|
-
charter_version_id:
|
|
36990
|
+
charter_version_id: uuidSchema19
|
|
36836
36991
|
}).strict();
|
|
36837
36992
|
var charterPreviewSignalReconciliationOutputSchema = external_exports.object({
|
|
36838
|
-
charter_version_id:
|
|
36839
|
-
seat_id:
|
|
36993
|
+
charter_version_id: uuidSchema19,
|
|
36994
|
+
seat_id: uuidSchema19,
|
|
36840
36995
|
// Pass this back as `expected_edit_revision` when reconciling, so a draft edited after
|
|
36841
36996
|
// the preview cannot be reconciled against a stale reading of it.
|
|
36842
36997
|
edit_revision: external_exports.number().int().min(1),
|
|
@@ -36847,20 +37002,20 @@ var charterDraftSkipReasonSchema = external_exports.enum(["seat_not_active", "ch
|
|
|
36847
37002
|
var charterDraftAllOutputSchema = withCommandEffect({
|
|
36848
37003
|
drafted: external_exports.number().int().nonnegative(),
|
|
36849
37004
|
skipped: external_exports.number().int().nonnegative(),
|
|
36850
|
-
draft_ids: external_exports.array(
|
|
37005
|
+
draft_ids: external_exports.array(uuidSchema19),
|
|
36851
37006
|
skipped_seats: external_exports.array(external_exports.object({
|
|
36852
|
-
seat_id:
|
|
37007
|
+
seat_id: uuidSchema19,
|
|
36853
37008
|
reason: charterDraftSkipReasonSchema
|
|
36854
37009
|
}).strict())
|
|
36855
37010
|
});
|
|
36856
37011
|
var charterSkipInputSchema = external_exports.object({
|
|
36857
|
-
charter_version_id:
|
|
37012
|
+
charter_version_id: uuidSchema19
|
|
36858
37013
|
}).strict();
|
|
36859
37014
|
var charterApplySeatTypeRecommendationInputSchema = external_exports.object({
|
|
36860
|
-
charter_version_id:
|
|
37015
|
+
charter_version_id: uuidSchema19
|
|
36861
37016
|
}).strict();
|
|
36862
37017
|
var charterSignManifestInputSchema = external_exports.object({
|
|
36863
|
-
charter_version_id:
|
|
37018
|
+
charter_version_id: uuidSchema19
|
|
36864
37019
|
}).strict();
|
|
36865
37020
|
var pendingConfirmationSchema = external_exports.object({
|
|
36866
37021
|
confirmationId: external_exports.string().min(1),
|
|
@@ -36914,7 +37069,7 @@ var confirmationListInputSchema = external_exports.object({
|
|
|
36914
37069
|
limit: external_exports.number().int().min(1).max(200).optional()
|
|
36915
37070
|
}).strict();
|
|
36916
37071
|
var confirmationSummarySchema = external_exports.object({
|
|
36917
|
-
id:
|
|
37072
|
+
id: uuidSchema19,
|
|
36918
37073
|
command_id: external_exports.string(),
|
|
36919
37074
|
redacted_args: external_exports.unknown(),
|
|
36920
37075
|
// DER-2161 kickback round 1, finding (6): tracks `PendingConfirmationListRow`'s
|
|
@@ -36924,7 +37079,7 @@ var confirmationSummarySchema = external_exports.object({
|
|
|
36924
37079
|
actor_kind: external_exports.enum(["user", "agent", "system", "operator"]),
|
|
36925
37080
|
source: external_exports.string(),
|
|
36926
37081
|
scope_kind: external_exports.enum(["tenant_admin", "tenant", "seat"]),
|
|
36927
|
-
seat_id:
|
|
37082
|
+
seat_id: uuidSchema19.nullable(),
|
|
36928
37083
|
seat_name: external_exports.string().nullable(),
|
|
36929
37084
|
seat_type: external_exports.enum(["human", "agent", "hybrid"]).nullable(),
|
|
36930
37085
|
risk_level: external_exports.enum(["normal", "sensitive", "dangerous"]),
|
|
@@ -36936,37 +37091,37 @@ var confirmationListOutputSchema = external_exports.object({
|
|
|
36936
37091
|
confirmations: external_exports.array(confirmationSummarySchema)
|
|
36937
37092
|
}).strict();
|
|
36938
37093
|
var confirmationDismissInputSchema = external_exports.object({
|
|
36939
|
-
confirmation_id:
|
|
37094
|
+
confirmation_id: uuidSchema19
|
|
36940
37095
|
}).strict();
|
|
36941
37096
|
var confirmationDismissOutputSchema = external_exports.object({
|
|
36942
37097
|
dismissed: external_exports.object({
|
|
36943
|
-
id:
|
|
37098
|
+
id: uuidSchema19,
|
|
36944
37099
|
status: external_exports.literal("dismissed")
|
|
36945
37100
|
}).strict()
|
|
36946
37101
|
}).strict();
|
|
36947
37102
|
var confirmationDismissStaleInputSchema = external_exports.object({}).strict();
|
|
36948
37103
|
var confirmationDismissStaleOutputSchema = external_exports.object({
|
|
36949
37104
|
dismissed_count: external_exports.number().int().min(0),
|
|
36950
|
-
dismissed_ids: external_exports.array(
|
|
37105
|
+
dismissed_ids: external_exports.array(uuidSchema19)
|
|
36951
37106
|
}).strict();
|
|
36952
37107
|
var credentialIngressInputSchema = external_exports.object({
|
|
36953
|
-
seat_id:
|
|
37108
|
+
seat_id: uuidSchema19.optional(),
|
|
36954
37109
|
provider: external_exports.string().trim().min(1),
|
|
36955
37110
|
scope_description: external_exports.string().trim().min(1),
|
|
36956
37111
|
secret_name: external_exports.string().trim().min(1),
|
|
36957
37112
|
secret: external_exports.string().trim().min(1)
|
|
36958
37113
|
}).strict();
|
|
36959
37114
|
var credentialIngressOutputSchema = external_exports.object({
|
|
36960
|
-
credential_id:
|
|
37115
|
+
credential_id: uuidSchema19,
|
|
36961
37116
|
provider: external_exports.string().min(1),
|
|
36962
|
-
seat_id:
|
|
37117
|
+
seat_id: uuidSchema19.nullable()
|
|
36963
37118
|
}).strict();
|
|
36964
37119
|
var credentialListInputSchema = external_exports.object({}).strict();
|
|
36965
37120
|
var credentialSummarySchema = external_exports.object({
|
|
36966
|
-
credential_id:
|
|
37121
|
+
credential_id: uuidSchema19,
|
|
36967
37122
|
provider: external_exports.string(),
|
|
36968
37123
|
scope_description: external_exports.string(),
|
|
36969
|
-
seat_id:
|
|
37124
|
+
seat_id: uuidSchema19.nullable(),
|
|
36970
37125
|
status: external_exports.string(),
|
|
36971
37126
|
created_at: external_exports.string(),
|
|
36972
37127
|
rotated_at: external_exports.string(),
|
|
@@ -36976,16 +37131,16 @@ var credentialListOutputSchema = external_exports.object({
|
|
|
36976
37131
|
credentials: external_exports.array(credentialSummarySchema)
|
|
36977
37132
|
}).strict();
|
|
36978
37133
|
var agentGoLiveInputSchema = external_exports.object({
|
|
36979
|
-
seat_id:
|
|
36980
|
-
charter_version_id:
|
|
37134
|
+
seat_id: uuidSchema19,
|
|
37135
|
+
charter_version_id: uuidSchema19
|
|
36981
37136
|
}).strict();
|
|
36982
37137
|
var agentGoLiveOutputSchema = external_exports.object({
|
|
36983
|
-
seat_id:
|
|
36984
|
-
charter_version_id:
|
|
37138
|
+
seat_id: uuidSchema19,
|
|
37139
|
+
charter_version_id: uuidSchema19,
|
|
36985
37140
|
status: external_exports.literal("live")
|
|
36986
37141
|
}).strict();
|
|
36987
37142
|
var compassSetInputSchema = external_exports.object({
|
|
36988
|
-
draft_id:
|
|
37143
|
+
draft_id: uuidSchema19.optional(),
|
|
36989
37144
|
doc: compassDraftSchema.optional(),
|
|
36990
37145
|
approve: external_exports.boolean().default(false)
|
|
36991
37146
|
}).strict().refine((input) => Boolean(input.draft_id) !== Boolean(input.doc), {
|
|
@@ -36993,7 +37148,7 @@ var compassSetInputSchema = external_exports.object({
|
|
|
36993
37148
|
path: ["draft_id"]
|
|
36994
37149
|
});
|
|
36995
37150
|
var compassMutationOutputSchema = external_exports.object({
|
|
36996
|
-
compass_version_id:
|
|
37151
|
+
compass_version_id: uuidSchema19,
|
|
36997
37152
|
status: external_exports.enum(["draft", "active", "superseded"]),
|
|
36998
37153
|
version: external_exports.number().int().nonnegative()
|
|
36999
37154
|
}).strict();
|
|
@@ -37002,42 +37157,42 @@ var compassDraftInputSchema = external_exports.object({
|
|
|
37002
37157
|
doc: compassDraftSchema
|
|
37003
37158
|
}).strict();
|
|
37004
37159
|
var compassUpdateDraftInputSchema = external_exports.object({
|
|
37005
|
-
draft_id:
|
|
37160
|
+
draft_id: uuidSchema19,
|
|
37006
37161
|
doc: compassDraftSchema
|
|
37007
37162
|
}).strict();
|
|
37008
37163
|
var compassApproveVersionInputSchema = external_exports.object({
|
|
37009
|
-
draft_id:
|
|
37164
|
+
draft_id: uuidSchema19
|
|
37010
37165
|
}).strict();
|
|
37011
37166
|
var compassRejectDraftInputSchema = external_exports.object({
|
|
37012
|
-
draft_id:
|
|
37167
|
+
draft_id: uuidSchema19
|
|
37013
37168
|
}).strict();
|
|
37014
37169
|
var compassAnswerGapInputSchema = external_exports.object({
|
|
37015
37170
|
gap_id: external_exports.string().min(1),
|
|
37016
37171
|
answer: external_exports.string().trim().min(1)
|
|
37017
37172
|
}).strict();
|
|
37018
37173
|
var seatStaffInputSchema = external_exports.object({
|
|
37019
|
-
seat_id:
|
|
37174
|
+
seat_id: uuidSchema19,
|
|
37020
37175
|
occupant: external_exports.discriminatedUnion("type", [
|
|
37021
37176
|
external_exports.object({ type: external_exports.literal("vacant") }).strict(),
|
|
37022
|
-
external_exports.object({ type: external_exports.literal("user"), user_id:
|
|
37023
|
-
external_exports.object({ type: external_exports.literal("agent"), agent_id:
|
|
37177
|
+
external_exports.object({ type: external_exports.literal("user"), user_id: uuidSchema19 }).strict(),
|
|
37178
|
+
external_exports.object({ type: external_exports.literal("agent"), agent_id: uuidSchema19 }).strict()
|
|
37024
37179
|
])
|
|
37025
37180
|
}).strict();
|
|
37026
37181
|
var staffingMutationOutputSchema = external_exports.object({
|
|
37027
|
-
seat_id:
|
|
37182
|
+
seat_id: uuidSchema19,
|
|
37028
37183
|
staffed: external_exports.enum(["vacant", "user", "agent"])
|
|
37029
37184
|
}).strict();
|
|
37030
37185
|
var staffingAssignUserInputSchema = external_exports.object({
|
|
37031
|
-
seat_id:
|
|
37032
|
-
user_id:
|
|
37186
|
+
seat_id: uuidSchema19,
|
|
37187
|
+
user_id: uuidSchema19
|
|
37033
37188
|
}).strict();
|
|
37034
37189
|
var staffingAssignAgentDryRunInputSchema = external_exports.object({
|
|
37035
|
-
seat_id:
|
|
37036
|
-
agent_id:
|
|
37190
|
+
seat_id: uuidSchema19,
|
|
37191
|
+
agent_id: uuidSchema19
|
|
37037
37192
|
}).strict();
|
|
37038
37193
|
var mcpTokenCreateInputSchema = external_exports.object({
|
|
37039
37194
|
scope: external_exports.enum(["tenant_admin", "seat"]),
|
|
37040
|
-
seat_id:
|
|
37195
|
+
seat_id: uuidSchema19.optional(),
|
|
37041
37196
|
// DER-830: explicit absolute expiry (kept for back-compat / direct callers).
|
|
37042
37197
|
// When omitted OR null, the DB default (now() + 90 days) applies — `null` is an
|
|
37043
37198
|
// accepted "no explicit expiry" signal (existing UI/MCP callers pass it), so it
|
|
@@ -37081,17 +37236,17 @@ var mcpTokenCreateInputSchema = external_exports.object({
|
|
|
37081
37236
|
}
|
|
37082
37237
|
});
|
|
37083
37238
|
var mcpTokenCreateOutputSchema = external_exports.object({
|
|
37084
|
-
token_id:
|
|
37239
|
+
token_id: uuidSchema19,
|
|
37085
37240
|
token: external_exports.string().min(1),
|
|
37086
37241
|
scope: external_exports.enum(["tenant_admin", "seat"]),
|
|
37087
|
-
seat_id:
|
|
37242
|
+
seat_id: uuidSchema19.nullable()
|
|
37088
37243
|
}).strict();
|
|
37089
37244
|
var mcpTokenRevokeInputSchema = external_exports.object({
|
|
37090
|
-
token_id:
|
|
37091
|
-
seat_id:
|
|
37245
|
+
token_id: uuidSchema19,
|
|
37246
|
+
seat_id: uuidSchema19.optional()
|
|
37092
37247
|
}).strict();
|
|
37093
37248
|
var mcpTokenRevokeOutputSchema = external_exports.object({
|
|
37094
|
-
token_id:
|
|
37249
|
+
token_id: uuidSchema19,
|
|
37095
37250
|
revoked: external_exports.boolean()
|
|
37096
37251
|
}).strict();
|
|
37097
37252
|
|
|
@@ -37104,7 +37259,7 @@ var markNotificationsReadRequestSchema = external_exports.object({
|
|
|
37104
37259
|
});
|
|
37105
37260
|
|
|
37106
37261
|
// ../../packages/protocol/src/product-analytics.ts
|
|
37107
|
-
var
|
|
37262
|
+
var uuidSchema20 = external_exports.string().uuid();
|
|
37108
37263
|
var opaqueRequestIdSchema = external_exports.string().trim().min(1).max(240);
|
|
37109
37264
|
var safeNameSchema = external_exports.string().trim().min(1).max(120).regex(/^[a-z][a-z0-9._:-]*$/);
|
|
37110
37265
|
var safeSurfaceSchema = external_exports.string().trim().min(1).max(80).regex(/^[a-z][a-z0-9_-]*$/);
|
|
@@ -37198,8 +37353,8 @@ var recommendationOutcomeStatusSchema = external_exports.enum([
|
|
|
37198
37353
|
]);
|
|
37199
37354
|
var durationMsSchema = external_exports.number().int().nonnegative().max(24 * 60 * 60 * 1e3).optional();
|
|
37200
37355
|
var productEventInputSchema = external_exports.object({
|
|
37201
|
-
tenant_id:
|
|
37202
|
-
user_id:
|
|
37356
|
+
tenant_id: uuidSchema20,
|
|
37357
|
+
user_id: uuidSchema20.optional(),
|
|
37203
37358
|
source: analyticsSourceSchema,
|
|
37204
37359
|
event_name: safeNameSchema,
|
|
37205
37360
|
route_template: routeTemplateSchema.optional(),
|
|
@@ -37208,8 +37363,8 @@ var productEventInputSchema = external_exports.object({
|
|
|
37208
37363
|
occurred_at: external_exports.string().datetime({ offset: true }).optional()
|
|
37209
37364
|
}).strict();
|
|
37210
37365
|
var pageViewInputSchema = external_exports.object({
|
|
37211
|
-
tenant_id:
|
|
37212
|
-
user_id:
|
|
37366
|
+
tenant_id: uuidSchema20,
|
|
37367
|
+
user_id: uuidSchema20.optional(),
|
|
37213
37368
|
route_template: routeTemplateSchema,
|
|
37214
37369
|
referrer_route_template: routeTemplateSchema.optional(),
|
|
37215
37370
|
surface: safeSurfaceSchema.default("web"),
|
|
@@ -37218,12 +37373,12 @@ var pageViewInputSchema = external_exports.object({
|
|
|
37218
37373
|
occurred_at: external_exports.string().datetime({ offset: true }).optional()
|
|
37219
37374
|
}).strict();
|
|
37220
37375
|
var commandInvocationInputSchema = external_exports.object({
|
|
37221
|
-
tenant_id:
|
|
37222
|
-
user_id:
|
|
37223
|
-
seat_id:
|
|
37224
|
-
run_id:
|
|
37225
|
-
agent_turn_execution_id:
|
|
37226
|
-
session_id:
|
|
37376
|
+
tenant_id: uuidSchema20,
|
|
37377
|
+
user_id: uuidSchema20.optional(),
|
|
37378
|
+
seat_id: uuidSchema20.optional(),
|
|
37379
|
+
run_id: uuidSchema20.optional(),
|
|
37380
|
+
agent_turn_execution_id: uuidSchema20.optional(),
|
|
37381
|
+
session_id: uuidSchema20.optional(),
|
|
37227
37382
|
command_id: safeNameSchema,
|
|
37228
37383
|
source: analyticsSourceSchema,
|
|
37229
37384
|
// DER-2161 kickback round 1, finding (6): tracks `command_invocations.actor_kind`
|
|
@@ -37237,7 +37392,7 @@ var commandInvocationInputSchema = external_exports.object({
|
|
|
37237
37392
|
// `packages/commands/src/context.ts`'s operator context builder now sets
|
|
37238
37393
|
// `initiatorKind: "operator"` instead of coercing to "agent".
|
|
37239
37394
|
initiator_kind: external_exports.enum(["user", "agent", "system", "operator"]).optional(),
|
|
37240
|
-
initiator_user_id:
|
|
37395
|
+
initiator_user_id: uuidSchema20.nullable().optional(),
|
|
37241
37396
|
scope_kind: external_exports.enum(["tenant_admin", "tenant", "seat"]),
|
|
37242
37397
|
status: commandInvocationStatusSchema,
|
|
37243
37398
|
guard_result: external_exports.enum(["allowed", "denied_manifest", "denied_budget", "escalated", "denied_tenant_policy"]).optional(),
|
|
@@ -37256,8 +37411,8 @@ var commandInvocationInputSchema = external_exports.object({
|
|
|
37256
37411
|
}
|
|
37257
37412
|
});
|
|
37258
37413
|
var onboardingMilestoneInputSchema = external_exports.object({
|
|
37259
|
-
tenant_id:
|
|
37260
|
-
user_id:
|
|
37414
|
+
tenant_id: uuidSchema20,
|
|
37415
|
+
user_id: uuidSchema20.optional(),
|
|
37261
37416
|
milestone: safeNameSchema,
|
|
37262
37417
|
status: analyticsOutcomeStatusSchema,
|
|
37263
37418
|
step_index: external_exports.number().int().nonnegative().max(100).optional(),
|
|
@@ -37266,19 +37421,19 @@ var onboardingMilestoneInputSchema = external_exports.object({
|
|
|
37266
37421
|
occurred_at: external_exports.string().datetime({ offset: true }).optional()
|
|
37267
37422
|
}).strict();
|
|
37268
37423
|
var recommendationEventInputSchema = external_exports.object({
|
|
37269
|
-
tenant_id:
|
|
37270
|
-
user_id:
|
|
37424
|
+
tenant_id: uuidSchema20,
|
|
37425
|
+
user_id: uuidSchema20.optional(),
|
|
37271
37426
|
recommendation_type: safeNameSchema,
|
|
37272
37427
|
source_surface: safeSurfaceSchema,
|
|
37273
37428
|
status: recommendationOutcomeStatusSchema,
|
|
37274
37429
|
target_kind: safeSurfaceSchema.optional(),
|
|
37275
|
-
target_id:
|
|
37430
|
+
target_id: uuidSchema20.optional(),
|
|
37276
37431
|
properties: recommendationAnalyticsPropertiesSchema.optional(),
|
|
37277
37432
|
occurred_at: external_exports.string().datetime({ offset: true }).optional()
|
|
37278
37433
|
}).strict();
|
|
37279
37434
|
|
|
37280
37435
|
// ../../packages/protocol/src/reads.ts
|
|
37281
|
-
var
|
|
37436
|
+
var uuidSchema21 = external_exports.string().uuid();
|
|
37282
37437
|
var isoDateTime7 = external_exports.string().datetime({ offset: true });
|
|
37283
37438
|
var seatTypeSchema = external_exports.enum(["human", "agent", "hybrid"]);
|
|
37284
37439
|
var seatStatusSchema = external_exports.enum(["draft", "active", "vacant", "decommissioned"]);
|
|
@@ -37293,13 +37448,13 @@ var credentialStatusSchema = external_exports.enum(["active", "revoked"]);
|
|
|
37293
37448
|
var runStatusSchema = external_exports.enum(["running", "succeeded", "failed", "timeout", "cancelled"]);
|
|
37294
37449
|
var graphGetInputSchema = external_exports.object({}).strict();
|
|
37295
37450
|
var graphNodeSchema = external_exports.object({
|
|
37296
|
-
seat_id:
|
|
37451
|
+
seat_id: uuidSchema21,
|
|
37297
37452
|
name: external_exports.string(),
|
|
37298
37453
|
seat_type: seatTypeSchema,
|
|
37299
37454
|
status: seatStatusSchema,
|
|
37300
|
-
parent_seat_id:
|
|
37455
|
+
parent_seat_id: uuidSchema21.nullable(),
|
|
37301
37456
|
is_root: external_exports.boolean(),
|
|
37302
|
-
steward_seat_id:
|
|
37457
|
+
steward_seat_id: uuidSchema21.nullable(),
|
|
37303
37458
|
occupant: external_exports.object({
|
|
37304
37459
|
kind: external_exports.enum(["user", "agent"]),
|
|
37305
37460
|
label: external_exports.string(),
|
|
@@ -37312,11 +37467,11 @@ var graphNodeSchema = external_exports.object({
|
|
|
37312
37467
|
is_peer: external_exports.boolean()
|
|
37313
37468
|
}).strict();
|
|
37314
37469
|
var graphEdgeSchema = external_exports.object({
|
|
37315
|
-
parent_seat_id:
|
|
37316
|
-
child_seat_id:
|
|
37470
|
+
parent_seat_id: uuidSchema21,
|
|
37471
|
+
child_seat_id: uuidSchema21
|
|
37317
37472
|
}).strict();
|
|
37318
37473
|
var graphGetOutputSchema = external_exports.object({
|
|
37319
|
-
root_seat_id:
|
|
37474
|
+
root_seat_id: uuidSchema21.nullable(),
|
|
37320
37475
|
nodes: external_exports.array(graphNodeSchema),
|
|
37321
37476
|
edges: external_exports.array(graphEdgeSchema),
|
|
37322
37477
|
status_rollups: external_exports.object({
|
|
@@ -37328,32 +37483,32 @@ var graphGetOutputSchema = external_exports.object({
|
|
|
37328
37483
|
}).strict()
|
|
37329
37484
|
}).strict();
|
|
37330
37485
|
var seatGetInputSchema = external_exports.object({
|
|
37331
|
-
seat_id:
|
|
37486
|
+
seat_id: uuidSchema21
|
|
37332
37487
|
}).strict();
|
|
37333
37488
|
var seatGetOutputSchema = external_exports.object({
|
|
37334
|
-
seat_id:
|
|
37489
|
+
seat_id: uuidSchema21,
|
|
37335
37490
|
name: external_exports.string(),
|
|
37336
37491
|
seat_type: seatTypeSchema,
|
|
37337
37492
|
status: seatStatusSchema,
|
|
37338
37493
|
purpose: external_exports.string().nullable(),
|
|
37339
|
-
parent_seat_id:
|
|
37494
|
+
parent_seat_id: uuidSchema21.nullable(),
|
|
37340
37495
|
steward_chain: external_exports.array(external_exports.object({
|
|
37341
|
-
seat_id:
|
|
37496
|
+
seat_id: uuidSchema21,
|
|
37342
37497
|
name: external_exports.string()
|
|
37343
37498
|
}).strict()),
|
|
37344
37499
|
occupancies: external_exports.array(external_exports.object({
|
|
37345
|
-
occupancy_id:
|
|
37500
|
+
occupancy_id: uuidSchema21,
|
|
37346
37501
|
occupant_type: external_exports.enum(["user", "agent"]),
|
|
37347
37502
|
label: external_exports.string(),
|
|
37348
37503
|
started_at: isoDateTime7,
|
|
37349
37504
|
ended_at: isoDateTime7.nullable()
|
|
37350
37505
|
}).strict()),
|
|
37351
|
-
active_charter_version_id:
|
|
37352
|
-
draft_charter_version_id:
|
|
37506
|
+
active_charter_version_id: uuidSchema21.nullable(),
|
|
37507
|
+
draft_charter_version_id: uuidSchema21.nullable(),
|
|
37353
37508
|
agent_status: agentStatusEnum2.nullable(),
|
|
37354
37509
|
agent_lane: agentLaneSchema3.nullable(),
|
|
37355
37510
|
mcp_tokens: external_exports.array(external_exports.object({
|
|
37356
|
-
token_id:
|
|
37511
|
+
token_id: uuidSchema21,
|
|
37357
37512
|
scope: mcpScopeSchema,
|
|
37358
37513
|
created_at: isoDateTime7,
|
|
37359
37514
|
last_seen_at: isoDateTime7.nullable(),
|
|
@@ -37363,7 +37518,7 @@ var seatGetOutputSchema = external_exports.object({
|
|
|
37363
37518
|
revoked_at: isoDateTime7.nullable()
|
|
37364
37519
|
}).strict()),
|
|
37365
37520
|
credentials: external_exports.array(external_exports.object({
|
|
37366
|
-
credential_id:
|
|
37521
|
+
credential_id: uuidSchema21,
|
|
37367
37522
|
provider: external_exports.string(),
|
|
37368
37523
|
status: credentialStatusSchema
|
|
37369
37524
|
}).strict()),
|
|
@@ -37375,12 +37530,12 @@ var seatGetOutputSchema = external_exports.object({
|
|
|
37375
37530
|
}).strict()
|
|
37376
37531
|
}).strict();
|
|
37377
37532
|
var charterListInputSchema = external_exports.object({
|
|
37378
|
-
seat_id:
|
|
37533
|
+
seat_id: uuidSchema21.optional(),
|
|
37379
37534
|
status: charterStatusSchema.optional()
|
|
37380
37535
|
}).strict();
|
|
37381
37536
|
var charterSummarySchema = external_exports.object({
|
|
37382
|
-
charter_version_id:
|
|
37383
|
-
seat_id:
|
|
37537
|
+
charter_version_id: uuidSchema21,
|
|
37538
|
+
seat_id: uuidSchema21,
|
|
37384
37539
|
version: external_exports.number().int().nonnegative(),
|
|
37385
37540
|
status: charterStatusSchema,
|
|
37386
37541
|
created_at: isoDateTime7,
|
|
@@ -37390,11 +37545,11 @@ var charterListOutputSchema = external_exports.object({
|
|
|
37390
37545
|
charters: external_exports.array(charterSummarySchema)
|
|
37391
37546
|
}).strict();
|
|
37392
37547
|
var charterGetInputSchema = external_exports.object({
|
|
37393
|
-
charter_version_id:
|
|
37548
|
+
charter_version_id: uuidSchema21
|
|
37394
37549
|
}).strict();
|
|
37395
37550
|
var charterGetOutputSchema = external_exports.object({
|
|
37396
|
-
charter_version_id:
|
|
37397
|
-
seat_id:
|
|
37551
|
+
charter_version_id: uuidSchema21,
|
|
37552
|
+
seat_id: uuidSchema21,
|
|
37398
37553
|
version: external_exports.number().int().nonnegative(),
|
|
37399
37554
|
status: charterStatusSchema,
|
|
37400
37555
|
created_at: isoDateTime7,
|
|
@@ -37408,7 +37563,7 @@ var charterGetOutputSchema = external_exports.object({
|
|
|
37408
37563
|
}).strict();
|
|
37409
37564
|
var compassGetCurrentInputSchema = external_exports.object({}).strict();
|
|
37410
37565
|
var compassVersionRefSchema = external_exports.object({
|
|
37411
|
-
compass_version_id:
|
|
37566
|
+
compass_version_id: uuidSchema21,
|
|
37412
37567
|
version: external_exports.number().int().nonnegative(),
|
|
37413
37568
|
status: compassStatusSchema,
|
|
37414
37569
|
doc: external_exports.unknown()
|
|
@@ -37419,7 +37574,7 @@ var compassGetCurrentOutputSchema = external_exports.object({
|
|
|
37419
37574
|
// Sources expose document id and kind only. The underlying storage_ref can
|
|
37420
37575
|
// be a local file path, so it is never surfaced (redaction rule).
|
|
37421
37576
|
sources: external_exports.array(external_exports.object({
|
|
37422
|
-
document_id:
|
|
37577
|
+
document_id: uuidSchema21,
|
|
37423
37578
|
kind: external_exports.string()
|
|
37424
37579
|
}).strict())
|
|
37425
37580
|
}).strict();
|
|
@@ -37434,22 +37589,22 @@ var compassGapSchema = external_exports.object({
|
|
|
37434
37589
|
answer: external_exports.string().nullable()
|
|
37435
37590
|
}).strict();
|
|
37436
37591
|
var compassListGapsOutputSchema = external_exports.object({
|
|
37437
|
-
compass_version_id:
|
|
37592
|
+
compass_version_id: uuidSchema21.nullable(),
|
|
37438
37593
|
unanswered: external_exports.array(compassGapSchema),
|
|
37439
37594
|
answered: external_exports.array(compassGapSchema)
|
|
37440
37595
|
}).strict();
|
|
37441
37596
|
var agentStatusInputSchema = external_exports.object({
|
|
37442
|
-
seat_id:
|
|
37597
|
+
seat_id: uuidSchema21
|
|
37443
37598
|
}).strict();
|
|
37444
37599
|
var agentStatusOutputSchema = external_exports.object({
|
|
37445
|
-
seat_id:
|
|
37600
|
+
seat_id: uuidSchema21,
|
|
37446
37601
|
// DER-786 (C7): `has_agent` is true whenever a setup agent exists for the seat
|
|
37447
37602
|
// — including a draft setup that has no occupancy yet — so it agrees with
|
|
37448
37603
|
// agent_setup.get. `lifecycle` is the shared cross-surface term derived from
|
|
37449
37604
|
// `status` (none | draft_setup | dry_run | live | …).
|
|
37450
37605
|
has_agent: external_exports.boolean(),
|
|
37451
37606
|
lifecycle: agentLifecycleSchema,
|
|
37452
|
-
agent_id:
|
|
37607
|
+
agent_id: uuidSchema21.nullable(),
|
|
37453
37608
|
kind: agentKindSchema2.nullable(),
|
|
37454
37609
|
display_name: external_exports.string().nullable(),
|
|
37455
37610
|
lane: agentLaneSchema3.nullable(),
|
|
@@ -37457,9 +37612,9 @@ var agentStatusOutputSchema = external_exports.object({
|
|
|
37457
37612
|
schedule_cron: external_exports.string().nullable(),
|
|
37458
37613
|
schedule_timezone: external_exports.string().min(1).max(100).nullable(),
|
|
37459
37614
|
live: external_exports.boolean(),
|
|
37460
|
-
charter_version_id:
|
|
37615
|
+
charter_version_id: uuidSchema21.nullable(),
|
|
37461
37616
|
steward_chain: external_exports.array(external_exports.object({
|
|
37462
|
-
seat_id:
|
|
37617
|
+
seat_id: uuidSchema21,
|
|
37463
37618
|
name: external_exports.string()
|
|
37464
37619
|
}).strict()),
|
|
37465
37620
|
steward_chain_resolves_to_human: external_exports.boolean(),
|
|
@@ -37500,7 +37655,7 @@ var fleetWorkEvidenceSchema = external_exports.object({
|
|
|
37500
37655
|
label: external_exports.string(),
|
|
37501
37656
|
detail: external_exports.string(),
|
|
37502
37657
|
href: external_exports.string().nullable(),
|
|
37503
|
-
run_id:
|
|
37658
|
+
run_id: uuidSchema21.nullable(),
|
|
37504
37659
|
linkable_run: external_exports.boolean(),
|
|
37505
37660
|
can_run_now: external_exports.boolean()
|
|
37506
37661
|
}).strict();
|
|
@@ -37514,7 +37669,7 @@ var fleetWorkProgressSchema = external_exports.object({
|
|
|
37514
37669
|
last_durable_activity_at: isoDateTime7.nullable()
|
|
37515
37670
|
}).strict();
|
|
37516
37671
|
var fleetOverviewRowSchema = external_exports.object({
|
|
37517
|
-
seat_id:
|
|
37672
|
+
seat_id: uuidSchema21,
|
|
37518
37673
|
seat_name: external_exports.string(),
|
|
37519
37674
|
seat_path: external_exports.string(),
|
|
37520
37675
|
// DER-2068 (N-2): the seat's immediate parent seat name (null for the root
|
|
@@ -37551,7 +37706,7 @@ var agentListFleetOutputSchema = external_exports.object({
|
|
|
37551
37706
|
agents: external_exports.array(fleetOverviewRowSchema)
|
|
37552
37707
|
}).strict();
|
|
37553
37708
|
var runErrorLogSchema = external_exports.object({
|
|
37554
|
-
error_log_id:
|
|
37709
|
+
error_log_id: uuidSchema21,
|
|
37555
37710
|
source: external_exports.enum(["run", "llm", "tool", "mcp", "runner", "integration", "job", "web"]),
|
|
37556
37711
|
severity: external_exports.enum(["warning", "error", "critical"]),
|
|
37557
37712
|
code: external_exports.string().nullable(),
|
|
@@ -37564,9 +37719,9 @@ var agentFleetDigestInputSchema = external_exports.object({
|
|
|
37564
37719
|
error_limit: external_exports.number().int().min(1).max(100).default(50)
|
|
37565
37720
|
}).strict();
|
|
37566
37721
|
var fleetDigestRunSchema = external_exports.object({
|
|
37567
|
-
run_id:
|
|
37568
|
-
seat_id:
|
|
37569
|
-
agent_id:
|
|
37722
|
+
run_id: uuidSchema21,
|
|
37723
|
+
seat_id: uuidSchema21,
|
|
37724
|
+
agent_id: uuidSchema21,
|
|
37570
37725
|
status: runStatusSchema,
|
|
37571
37726
|
lane: agentLaneSchema3,
|
|
37572
37727
|
model: external_exports.string(),
|
|
@@ -37576,22 +37731,22 @@ var fleetDigestRunSchema = external_exports.object({
|
|
|
37576
37731
|
error_logs: external_exports.array(runErrorLogSchema)
|
|
37577
37732
|
}).strict();
|
|
37578
37733
|
var fleetDigestErrorSchema = runErrorLogSchema.extend({
|
|
37579
|
-
seat_id:
|
|
37580
|
-
agent_id:
|
|
37581
|
-
run_id:
|
|
37734
|
+
seat_id: uuidSchema21.nullable(),
|
|
37735
|
+
agent_id: uuidSchema21.nullable(),
|
|
37736
|
+
run_id: uuidSchema21.nullable(),
|
|
37582
37737
|
disposition: external_exports.enum(["active", "acknowledged", "resolved", "superseded"])
|
|
37583
37738
|
}).strict();
|
|
37584
37739
|
var fleetDigestNotificationErrorSchema = external_exports.object({
|
|
37585
|
-
notification_id:
|
|
37740
|
+
notification_id: uuidSchema21,
|
|
37586
37741
|
kind: external_exports.string(),
|
|
37587
37742
|
channel: external_exports.string(),
|
|
37588
37743
|
status: external_exports.string(),
|
|
37589
37744
|
provider: external_exports.string(),
|
|
37590
37745
|
error_message: external_exports.string().nullable(),
|
|
37591
|
-
error_log_id:
|
|
37746
|
+
error_log_id: uuidSchema21.nullable(),
|
|
37592
37747
|
source: external_exports.enum(["run", "llm", "tool", "mcp", "runner", "integration", "job", "web"]).nullable(),
|
|
37593
|
-
seat_id:
|
|
37594
|
-
run_id:
|
|
37748
|
+
seat_id: uuidSchema21.nullable(),
|
|
37749
|
+
run_id: uuidSchema21.nullable(),
|
|
37595
37750
|
created_at: isoDateTime7
|
|
37596
37751
|
}).strict();
|
|
37597
37752
|
var fleetDigestAgentSchema = fleetOverviewRowSchema.extend({
|
|
@@ -37640,21 +37795,21 @@ var seatTrustSummarySchema = external_exports.object({
|
|
|
37640
37795
|
last_activity_at: isoDateTime7.nullable()
|
|
37641
37796
|
}).strict();
|
|
37642
37797
|
var agentListRunsInputSchema = external_exports.object({
|
|
37643
|
-
seat_id:
|
|
37798
|
+
seat_id: uuidSchema21,
|
|
37644
37799
|
// Conservative, bounded page size; the timeline is a recent-history view.
|
|
37645
37800
|
limit: external_exports.number().int().min(1).max(200).default(50)
|
|
37646
37801
|
}).strict();
|
|
37647
37802
|
var agentGetRunInputSchema = external_exports.object({
|
|
37648
|
-
seat_id:
|
|
37649
|
-
run_id:
|
|
37803
|
+
seat_id: uuidSchema21,
|
|
37804
|
+
run_id: uuidSchema21,
|
|
37650
37805
|
// DER-1661: opt in to the persisted session transcript (`--transcript`). Off by
|
|
37651
37806
|
// default so the diagnostic read stays lean; the (potentially large) transcript body
|
|
37652
37807
|
// loads only when asked.
|
|
37653
37808
|
transcript: external_exports.boolean().default(false)
|
|
37654
37809
|
}).strict();
|
|
37655
37810
|
var seatRunSchema = external_exports.object({
|
|
37656
|
-
run_id:
|
|
37657
|
-
agent_id:
|
|
37811
|
+
run_id: uuidSchema21,
|
|
37812
|
+
agent_id: uuidSchema21,
|
|
37658
37813
|
agent_display_name: external_exports.string().nullable(),
|
|
37659
37814
|
status: runStatusSchema,
|
|
37660
37815
|
lane: agentLaneSchema3,
|
|
@@ -37671,8 +37826,8 @@ var seatRunErrorLogSchema = runErrorLogSchema.extend({
|
|
|
37671
37826
|
error_class: external_exports.string().nullable()
|
|
37672
37827
|
}).strict();
|
|
37673
37828
|
var seatRunDetailSchema = seatRunSchema.extend({
|
|
37674
|
-
task_id:
|
|
37675
|
-
work_order_id:
|
|
37829
|
+
task_id: uuidSchema21.nullable(),
|
|
37830
|
+
work_order_id: uuidSchema21.nullable(),
|
|
37676
37831
|
transcript_ref: external_exports.string(),
|
|
37677
37832
|
// DER-1913: null = usage UNKNOWN — a Codex / read-status / timeout / spawn-error
|
|
37678
37833
|
// runner turn reports no model-usage envelope, so the run records no token count.
|
|
@@ -37682,8 +37837,8 @@ var seatRunDetailSchema = seatRunSchema.extend({
|
|
|
37682
37837
|
outcome: external_exports.record(external_exports.string(), external_exports.unknown()),
|
|
37683
37838
|
error_logs: external_exports.array(seatRunErrorLogSchema),
|
|
37684
37839
|
skill_activations: external_exports.array(external_exports.object({
|
|
37685
|
-
skill_activation_id:
|
|
37686
|
-
skill_version_id:
|
|
37840
|
+
skill_activation_id: uuidSchema21,
|
|
37841
|
+
skill_version_id: uuidSchema21,
|
|
37687
37842
|
slug: external_exports.string().min(1),
|
|
37688
37843
|
name: external_exports.string().min(1),
|
|
37689
37844
|
version: external_exports.number().int().positive(),
|
|
@@ -37700,23 +37855,23 @@ var seatRunDetailSchema = seatRunSchema.extend({
|
|
|
37700
37855
|
transcript: sessionTranscriptReadResultSchema.nullable().optional()
|
|
37701
37856
|
}).strict();
|
|
37702
37857
|
var agentListRunsOutputSchema = external_exports.object({
|
|
37703
|
-
seat_id:
|
|
37858
|
+
seat_id: uuidSchema21,
|
|
37704
37859
|
summary: seatTrustSummarySchema,
|
|
37705
37860
|
runs: external_exports.array(seatRunSchema)
|
|
37706
37861
|
}).strict();
|
|
37707
37862
|
var agentGetRunOutputSchema = external_exports.object({
|
|
37708
|
-
seat_id:
|
|
37863
|
+
seat_id: uuidSchema21,
|
|
37709
37864
|
run: seatRunDetailSchema
|
|
37710
37865
|
}).strict();
|
|
37711
37866
|
var agentListToolCallsInputSchema = external_exports.object({
|
|
37712
|
-
seat_id:
|
|
37867
|
+
seat_id: uuidSchema21,
|
|
37713
37868
|
limit: external_exports.number().int().min(1).max(200).default(50),
|
|
37714
37869
|
// When true, return only HELD (non-allowed) tool calls — the governance view.
|
|
37715
37870
|
held_only: external_exports.boolean().default(false)
|
|
37716
37871
|
}).strict();
|
|
37717
37872
|
var seatToolCallSchema = external_exports.object({
|
|
37718
|
-
tool_call_id:
|
|
37719
|
-
run_id:
|
|
37873
|
+
tool_call_id: uuidSchema21,
|
|
37874
|
+
run_id: uuidSchema21.nullable(),
|
|
37720
37875
|
tool_name: external_exports.string(),
|
|
37721
37876
|
guard_result: guardResultSchema,
|
|
37722
37877
|
manifest_clause: external_exports.string().nullable(),
|
|
@@ -37725,13 +37880,13 @@ var seatToolCallSchema = external_exports.object({
|
|
|
37725
37880
|
finished_at: isoDateTime7.nullable()
|
|
37726
37881
|
}).strict();
|
|
37727
37882
|
var agentListToolCallsOutputSchema = external_exports.object({
|
|
37728
|
-
seat_id:
|
|
37883
|
+
seat_id: uuidSchema21,
|
|
37729
37884
|
summary: seatTrustSummarySchema,
|
|
37730
37885
|
tool_calls: external_exports.array(seatToolCallSchema)
|
|
37731
37886
|
}).strict();
|
|
37732
37887
|
var agentWatchRunInputSchema = external_exports.object({
|
|
37733
|
-
seat_id:
|
|
37734
|
-
run_id:
|
|
37888
|
+
seat_id: uuidSchema21,
|
|
37889
|
+
run_id: uuidSchema21
|
|
37735
37890
|
}).strict();
|
|
37736
37891
|
var runWatchCurrentStateSchema = external_exports.object({
|
|
37737
37892
|
state: workProgressStateSchema,
|
|
@@ -37752,7 +37907,7 @@ var runWatchHeartbeatSchema = external_exports.object({
|
|
|
37752
37907
|
reasons: external_exports.array(external_exports.string())
|
|
37753
37908
|
}).strict();
|
|
37754
37909
|
var agentWatchRunOutputSchema = external_exports.object({
|
|
37755
|
-
seat_id:
|
|
37910
|
+
seat_id: uuidSchema21,
|
|
37756
37911
|
run: seatRunSchema,
|
|
37757
37912
|
// the lean run row (status/lane/model/counts/timestamps)
|
|
37758
37913
|
is_live: external_exports.boolean(),
|
|
@@ -37776,16 +37931,16 @@ var deliverableLinkSchema = external_exports.object({
|
|
|
37776
37931
|
kind: external_exports.enum(["internal", "linear", "github", "external"])
|
|
37777
37932
|
}).strict();
|
|
37778
37933
|
var deliverableIdSchema = external_exports.union([
|
|
37779
|
-
|
|
37934
|
+
uuidSchema21,
|
|
37780
37935
|
external_exports.string().regex(/^run:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i)
|
|
37781
37936
|
]);
|
|
37782
37937
|
var deliverableRowSchema = external_exports.object({
|
|
37783
37938
|
id: deliverableIdSchema,
|
|
37784
|
-
seat_id:
|
|
37785
|
-
agent_id:
|
|
37786
|
-
run_id:
|
|
37787
|
-
task_id:
|
|
37788
|
-
work_order_id:
|
|
37939
|
+
seat_id: uuidSchema21,
|
|
37940
|
+
agent_id: uuidSchema21.nullable(),
|
|
37941
|
+
run_id: uuidSchema21.nullable(),
|
|
37942
|
+
task_id: uuidSchema21.nullable(),
|
|
37943
|
+
work_order_id: uuidSchema21.nullable(),
|
|
37789
37944
|
kind: deliverableKindSchema,
|
|
37790
37945
|
title: external_exports.string(),
|
|
37791
37946
|
summary: external_exports.string().nullable(),
|
|
@@ -37805,13 +37960,13 @@ var deliverableRowSchema = external_exports.object({
|
|
|
37805
37960
|
receipt_presence: receiptPresenceSchema
|
|
37806
37961
|
}).strict();
|
|
37807
37962
|
var deliverableListInputSchema = external_exports.object({
|
|
37808
|
-
seat_id:
|
|
37963
|
+
seat_id: uuidSchema21
|
|
37809
37964
|
}).strict();
|
|
37810
37965
|
var deliverableListOutputSchema = external_exports.object({
|
|
37811
37966
|
deliverables: external_exports.array(deliverableRowSchema)
|
|
37812
37967
|
}).strict();
|
|
37813
37968
|
var deliverableGetInputSchema = external_exports.object({
|
|
37814
|
-
seat_id:
|
|
37969
|
+
seat_id: uuidSchema21,
|
|
37815
37970
|
deliverable_id: deliverableIdSchema
|
|
37816
37971
|
}).strict();
|
|
37817
37972
|
var deliverableGetOutputSchema = external_exports.object({
|
|
@@ -37819,12 +37974,12 @@ var deliverableGetOutputSchema = external_exports.object({
|
|
|
37819
37974
|
}).strict();
|
|
37820
37975
|
var mcpTokenListInputSchema = external_exports.object({
|
|
37821
37976
|
include_revoked: external_exports.boolean().default(false),
|
|
37822
|
-
seat_id:
|
|
37977
|
+
seat_id: uuidSchema21.optional()
|
|
37823
37978
|
}).strict();
|
|
37824
37979
|
var mcpTokenMetadataSchema = external_exports.object({
|
|
37825
|
-
token_id:
|
|
37980
|
+
token_id: uuidSchema21,
|
|
37826
37981
|
scope: mcpScopeSchema,
|
|
37827
|
-
seat_id:
|
|
37982
|
+
seat_id: uuidSchema21.nullable(),
|
|
37828
37983
|
created_at: isoDateTime7,
|
|
37829
37984
|
last_seen_at: isoDateTime7.nullable(),
|
|
37830
37985
|
// DER-830: expires_at is now always present (the column is NOT NULL).
|
|
@@ -37838,29 +37993,29 @@ var mcpTokenListOutputSchema = external_exports.object({
|
|
|
37838
37993
|
tokens: external_exports.array(mcpTokenMetadataSchema)
|
|
37839
37994
|
}).strict();
|
|
37840
37995
|
var errorLogListInputSchema = external_exports.object({
|
|
37841
|
-
seat_id:
|
|
37996
|
+
seat_id: uuidSchema21.optional(),
|
|
37842
37997
|
source: external_exports.enum(["run", "llm", "tool", "mcp", "runner", "integration", "job", "web"]).optional(),
|
|
37843
37998
|
severity: external_exports.enum(["warning", "error", "critical"]).optional(),
|
|
37844
37999
|
resolved: external_exports.enum(["active", "acknowledged", "resolved", "all"]).default("active"),
|
|
37845
38000
|
limit: external_exports.number().int().min(1).max(200).default(50)
|
|
37846
38001
|
}).strict();
|
|
37847
38002
|
var errorLogListItemSchema = external_exports.object({
|
|
37848
|
-
error_log_id:
|
|
38003
|
+
error_log_id: uuidSchema21,
|
|
37849
38004
|
source: external_exports.enum(["run", "llm", "tool", "mcp", "runner", "integration", "job", "web"]),
|
|
37850
38005
|
severity: external_exports.enum(["warning", "error", "critical"]),
|
|
37851
38006
|
code: external_exports.string().nullable(),
|
|
37852
38007
|
message: external_exports.string(),
|
|
37853
|
-
seat_id:
|
|
37854
|
-
agent_id:
|
|
37855
|
-
run_id:
|
|
38008
|
+
seat_id: uuidSchema21.nullable(),
|
|
38009
|
+
agent_id: uuidSchema21.nullable(),
|
|
38010
|
+
run_id: uuidSchema21.nullable(),
|
|
37856
38011
|
disposition: external_exports.enum(["active", "acknowledged", "resolved", "superseded"]),
|
|
37857
38012
|
resolved_at: isoDateTime7.nullable(),
|
|
37858
|
-
resolved_by:
|
|
38013
|
+
resolved_by: uuidSchema21.nullable(),
|
|
37859
38014
|
resolution_reason: external_exports.string().nullable(),
|
|
37860
|
-
linked_task_id:
|
|
37861
|
-
linked_issue_id:
|
|
38015
|
+
linked_task_id: uuidSchema21.nullable(),
|
|
38016
|
+
linked_issue_id: uuidSchema21.nullable(),
|
|
37862
38017
|
linked_pr_ref: external_exports.string().nullable(),
|
|
37863
|
-
superseded_by_id:
|
|
38018
|
+
superseded_by_id: uuidSchema21.nullable(),
|
|
37864
38019
|
created_at: isoDateTime7
|
|
37865
38020
|
}).strict();
|
|
37866
38021
|
var errorLogListOutputSchema = external_exports.object({
|
|
@@ -37868,29 +38023,29 @@ var errorLogListOutputSchema = external_exports.object({
|
|
|
37868
38023
|
total: external_exports.number().int().nonnegative()
|
|
37869
38024
|
}).strict();
|
|
37870
38025
|
var errorLogResolveInputSchema = external_exports.object({
|
|
37871
|
-
error_log_id:
|
|
38026
|
+
error_log_id: uuidSchema21,
|
|
37872
38027
|
reason: external_exports.string().trim().min(1),
|
|
37873
38028
|
disposition: external_exports.enum(["acknowledged", "resolved"]).default("acknowledged"),
|
|
37874
|
-
linked_task_id:
|
|
37875
|
-
linked_issue_id:
|
|
38029
|
+
linked_task_id: uuidSchema21.optional(),
|
|
38030
|
+
linked_issue_id: uuidSchema21.optional(),
|
|
37876
38031
|
linked_pr_ref: external_exports.string().trim().min(1).optional()
|
|
37877
38032
|
}).strict();
|
|
37878
38033
|
var errorLogResolveOutputSchema = external_exports.object({
|
|
37879
|
-
error_log_id:
|
|
38034
|
+
error_log_id: uuidSchema21,
|
|
37880
38035
|
disposition: external_exports.enum(["acknowledged", "resolved"]),
|
|
37881
38036
|
resolved_at: isoDateTime7
|
|
37882
38037
|
}).strict();
|
|
37883
38038
|
var errorLogSupersedeInputSchema = external_exports.object({
|
|
37884
|
-
error_log_id:
|
|
37885
|
-
new_error_log_id:
|
|
38039
|
+
error_log_id: uuidSchema21,
|
|
38040
|
+
new_error_log_id: uuidSchema21,
|
|
37886
38041
|
reason: external_exports.string().trim().min(1),
|
|
37887
|
-
linked_task_id:
|
|
37888
|
-
linked_issue_id:
|
|
38042
|
+
linked_task_id: uuidSchema21.optional(),
|
|
38043
|
+
linked_issue_id: uuidSchema21.optional(),
|
|
37889
38044
|
linked_pr_ref: external_exports.string().trim().min(1).optional()
|
|
37890
38045
|
}).strict();
|
|
37891
38046
|
var errorLogSupersedeOutputSchema = external_exports.object({
|
|
37892
|
-
error_log_id:
|
|
37893
|
-
superseded_by_id:
|
|
38047
|
+
error_log_id: uuidSchema21,
|
|
38048
|
+
superseded_by_id: uuidSchema21,
|
|
37894
38049
|
disposition: external_exports.literal("superseded"),
|
|
37895
38050
|
resolved_at: isoDateTime7
|
|
37896
38051
|
}).strict();
|
|
@@ -37901,17 +38056,17 @@ var staleCandidatesInputSchema = external_exports.object({
|
|
|
37901
38056
|
limit: external_exports.number().int().min(1).max(200).default(50)
|
|
37902
38057
|
}).strict();
|
|
37903
38058
|
var errorLogStaleCandidateSchema = external_exports.object({
|
|
37904
|
-
error_log_id:
|
|
38059
|
+
error_log_id: uuidSchema21,
|
|
37905
38060
|
source: external_exports.enum(["run", "llm", "tool", "mcp", "runner", "integration", "job", "web"]),
|
|
37906
38061
|
severity: external_exports.enum(["warning", "error", "critical"]),
|
|
37907
38062
|
code: external_exports.string().nullable(),
|
|
37908
38063
|
message: external_exports.string(),
|
|
37909
|
-
seat_id:
|
|
38064
|
+
seat_id: uuidSchema21.nullable(),
|
|
37910
38065
|
occurrence_count: external_exports.number().int(),
|
|
37911
38066
|
last_seen_at: isoDateTime7,
|
|
37912
38067
|
created_at: isoDateTime7,
|
|
37913
38068
|
days_stale: external_exports.number().int(),
|
|
37914
|
-
linked_issue_id:
|
|
38069
|
+
linked_issue_id: uuidSchema21.nullable(),
|
|
37915
38070
|
linked_issue_resolved: external_exports.boolean(),
|
|
37916
38071
|
confidence: staleCandidateConfidenceSchema,
|
|
37917
38072
|
evidence: staleCandidateEvidenceSchema
|
|
@@ -37921,8 +38076,8 @@ var errorLogStaleCandidatesOutputSchema = external_exports.object({
|
|
|
37921
38076
|
total: external_exports.number().int().nonnegative()
|
|
37922
38077
|
}).strict();
|
|
37923
38078
|
var escalationStaleCandidateSchema = external_exports.object({
|
|
37924
|
-
escalation_id:
|
|
37925
|
-
seat_id:
|
|
38079
|
+
escalation_id: uuidSchema21,
|
|
38080
|
+
seat_id: uuidSchema21,
|
|
37926
38081
|
seat_name: external_exports.string(),
|
|
37927
38082
|
reason: external_exports.string(),
|
|
37928
38083
|
status: external_exports.literal("open"),
|
|
@@ -37938,14 +38093,14 @@ var escalationStaleCandidatesOutputSchema = external_exports.object({
|
|
|
37938
38093
|
total: external_exports.number().int().nonnegative()
|
|
37939
38094
|
}).strict();
|
|
37940
38095
|
var frictionStaleCandidateSchema = external_exports.object({
|
|
37941
|
-
issue_id:
|
|
38096
|
+
issue_id: uuidSchema21,
|
|
37942
38097
|
summary: external_exports.string(),
|
|
37943
38098
|
severity: external_exports.enum(["low", "med", "high", "critical"]),
|
|
37944
38099
|
status: external_exports.enum(["open", "diagnosing"]),
|
|
37945
38100
|
created_at: isoDateTime7,
|
|
37946
38101
|
updated_at: isoDateTime7,
|
|
37947
38102
|
days_stale: external_exports.number().int(),
|
|
37948
|
-
action_task_id:
|
|
38103
|
+
action_task_id: uuidSchema21.nullable(),
|
|
37949
38104
|
action_task_status: external_exports.string().nullable(),
|
|
37950
38105
|
action_task_done: external_exports.boolean(),
|
|
37951
38106
|
confidence: staleCandidateConfidenceSchema,
|
|
@@ -37956,20 +38111,20 @@ var frictionStaleCandidatesOutputSchema = external_exports.object({
|
|
|
37956
38111
|
total: external_exports.number().int().nonnegative()
|
|
37957
38112
|
}).strict();
|
|
37958
38113
|
var errorLogBulkResolveInputSchema = external_exports.object({
|
|
37959
|
-
error_log_ids: external_exports.array(
|
|
38114
|
+
error_log_ids: external_exports.array(uuidSchema21).min(1).max(200),
|
|
37960
38115
|
reason: external_exports.string().trim().min(1),
|
|
37961
38116
|
disposition: external_exports.enum(["acknowledged", "resolved"]).default("resolved")
|
|
37962
38117
|
}).strict();
|
|
37963
38118
|
var errorLogBulkResolveSkippedSchema = external_exports.object({
|
|
37964
|
-
error_log_id:
|
|
38119
|
+
error_log_id: uuidSchema21,
|
|
37965
38120
|
reason: external_exports.string()
|
|
37966
38121
|
}).strict();
|
|
37967
38122
|
var errorLogBulkResolveFailedSchema = external_exports.object({
|
|
37968
|
-
error_log_id:
|
|
38123
|
+
error_log_id: uuidSchema21,
|
|
37969
38124
|
reason: external_exports.string()
|
|
37970
38125
|
}).strict();
|
|
37971
38126
|
var errorLogBulkResolveOutputSchema = external_exports.object({
|
|
37972
|
-
resolved: external_exports.array(
|
|
38127
|
+
resolved: external_exports.array(uuidSchema21),
|
|
37973
38128
|
skipped: external_exports.array(errorLogBulkResolveSkippedSchema),
|
|
37974
38129
|
failed: external_exports.array(errorLogBulkResolveFailedSchema),
|
|
37975
38130
|
resolved_count: external_exports.number().int().nonnegative(),
|
|
@@ -37978,19 +38133,19 @@ var errorLogBulkResolveOutputSchema = external_exports.object({
|
|
|
37978
38133
|
total: external_exports.number().int().nonnegative()
|
|
37979
38134
|
}).strict();
|
|
37980
38135
|
var escalationBulkResolveInputSchema = external_exports.object({
|
|
37981
|
-
escalation_ids: external_exports.array(
|
|
38136
|
+
escalation_ids: external_exports.array(uuidSchema21).min(1).max(200),
|
|
37982
38137
|
reason: external_exports.string().trim().min(1)
|
|
37983
38138
|
}).strict();
|
|
37984
38139
|
var escalationBulkResolveSkippedSchema = external_exports.object({
|
|
37985
|
-
escalation_id:
|
|
38140
|
+
escalation_id: uuidSchema21,
|
|
37986
38141
|
reason: external_exports.string()
|
|
37987
38142
|
}).strict();
|
|
37988
38143
|
var escalationBulkResolveFailedSchema = external_exports.object({
|
|
37989
|
-
escalation_id:
|
|
38144
|
+
escalation_id: uuidSchema21,
|
|
37990
38145
|
reason: external_exports.string()
|
|
37991
38146
|
}).strict();
|
|
37992
38147
|
var escalationBulkResolveOutputSchema = external_exports.object({
|
|
37993
|
-
resolved: external_exports.array(
|
|
38148
|
+
resolved: external_exports.array(uuidSchema21),
|
|
37994
38149
|
skipped: external_exports.array(escalationBulkResolveSkippedSchema),
|
|
37995
38150
|
failed: external_exports.array(escalationBulkResolveFailedSchema),
|
|
37996
38151
|
resolved_count: external_exports.number().int().nonnegative(),
|
|
@@ -37999,19 +38154,19 @@ var escalationBulkResolveOutputSchema = external_exports.object({
|
|
|
37999
38154
|
total: external_exports.number().int().nonnegative()
|
|
38000
38155
|
}).strict();
|
|
38001
38156
|
var frictionBulkResolveInputSchema = external_exports.object({
|
|
38002
|
-
issue_ids: external_exports.array(
|
|
38157
|
+
issue_ids: external_exports.array(uuidSchema21).min(1).max(200),
|
|
38003
38158
|
root_cause: external_exports.string().trim().min(1)
|
|
38004
38159
|
}).strict();
|
|
38005
38160
|
var frictionBulkResolveSkippedSchema = external_exports.object({
|
|
38006
|
-
issue_id:
|
|
38161
|
+
issue_id: uuidSchema21,
|
|
38007
38162
|
reason: external_exports.string()
|
|
38008
38163
|
}).strict();
|
|
38009
38164
|
var frictionBulkResolveFailedSchema = external_exports.object({
|
|
38010
|
-
issue_id:
|
|
38165
|
+
issue_id: uuidSchema21,
|
|
38011
38166
|
reason: external_exports.string()
|
|
38012
38167
|
}).strict();
|
|
38013
38168
|
var frictionBulkResolveOutputSchema = external_exports.object({
|
|
38014
|
-
resolved: external_exports.array(
|
|
38169
|
+
resolved: external_exports.array(uuidSchema21),
|
|
38015
38170
|
skipped: external_exports.array(frictionBulkResolveSkippedSchema),
|
|
38016
38171
|
failed: external_exports.array(frictionBulkResolveFailedSchema),
|
|
38017
38172
|
resolved_count: external_exports.number().int().nonnegative(),
|
|
@@ -38021,10 +38176,10 @@ var frictionBulkResolveOutputSchema = external_exports.object({
|
|
|
38021
38176
|
}).strict();
|
|
38022
38177
|
var runHeartbeatStateSchema = external_exports.enum(["working", "quiet_healthy", "recovered", "stalled", "unavailable"]);
|
|
38023
38178
|
var agentRunHeartbeatsInputSchema = external_exports.object({
|
|
38024
|
-
seat_ids: external_exports.array(
|
|
38179
|
+
seat_ids: external_exports.array(uuidSchema21).min(1).max(200).optional()
|
|
38025
38180
|
}).strict();
|
|
38026
38181
|
var runHeartbeatSeatRollupSchema = external_exports.object({
|
|
38027
|
-
seat_id:
|
|
38182
|
+
seat_id: uuidSchema21,
|
|
38028
38183
|
state: runHeartbeatStateSchema,
|
|
38029
38184
|
stalled: external_exports.boolean(),
|
|
38030
38185
|
run_count: external_exports.number().int().nonnegative(),
|
|
@@ -38144,13 +38299,13 @@ var runSummaryOutputSchema = external_exports.object({
|
|
|
38144
38299
|
});
|
|
38145
38300
|
|
|
38146
38301
|
// ../../packages/protocol/src/system-health.ts
|
|
38147
|
-
var
|
|
38302
|
+
var uuidSchema22 = external_exports.string().uuid();
|
|
38148
38303
|
var isoDateTime9 = external_exports.string().datetime({ offset: true });
|
|
38149
38304
|
var systemHealthCallerKindSchema = external_exports.enum(["tenant_admin", "member", "seat_token"]);
|
|
38150
38305
|
var systemHealthCallerSchema = external_exports.object({
|
|
38151
38306
|
kind: systemHealthCallerKindSchema,
|
|
38152
|
-
seat_id:
|
|
38153
|
-
seat_ids: external_exports.array(
|
|
38307
|
+
seat_id: uuidSchema22.optional(),
|
|
38308
|
+
seat_ids: external_exports.array(uuidSchema22).min(1).optional()
|
|
38154
38309
|
}).strict();
|
|
38155
38310
|
var systemHealthVerdictSchema = external_exports.enum(["healthy", "degraded", "blocked"]);
|
|
38156
38311
|
var systemHealthSeveritySchema = external_exports.enum(["info", "warning", "critical"]);
|
|
@@ -38188,18 +38343,18 @@ var systemHealthFindingSchema = external_exports.object({
|
|
|
38188
38343
|
summary: external_exports.string().min(1),
|
|
38189
38344
|
detail: external_exports.string().min(1),
|
|
38190
38345
|
remediation: systemHealthActionSchema,
|
|
38191
|
-
seat_id:
|
|
38192
|
-
goal_id:
|
|
38193
|
-
run_id:
|
|
38194
|
-
issue_id:
|
|
38195
|
-
task_id:
|
|
38196
|
-
error_log_id:
|
|
38346
|
+
seat_id: uuidSchema22.nullable(),
|
|
38347
|
+
goal_id: uuidSchema22.nullable(),
|
|
38348
|
+
run_id: uuidSchema22.nullable(),
|
|
38349
|
+
issue_id: uuidSchema22.nullable(),
|
|
38350
|
+
task_id: uuidSchema22.nullable(),
|
|
38351
|
+
error_log_id: uuidSchema22.nullable()
|
|
38197
38352
|
}).strict();
|
|
38198
38353
|
var systemHealthScopeSchema = external_exports.object({
|
|
38199
38354
|
mode: systemHealthScopeModeSchema,
|
|
38200
|
-
root_seat_ids: external_exports.array(
|
|
38201
|
-
included_seat_ids: external_exports.array(
|
|
38202
|
-
requested_seat_id:
|
|
38355
|
+
root_seat_ids: external_exports.array(uuidSchema22),
|
|
38356
|
+
included_seat_ids: external_exports.array(uuidSchema22),
|
|
38357
|
+
requested_seat_id: uuidSchema22.nullable(),
|
|
38203
38358
|
total_seat_count: external_exports.number().int().nonnegative()
|
|
38204
38359
|
}).strict();
|
|
38205
38360
|
var systemHealthFleetSectionSchema = external_exports.object({
|
|
@@ -38256,7 +38411,7 @@ var systemHealthSectionsSchema = external_exports.object({
|
|
|
38256
38411
|
sync: systemHealthSyncSectionSchema
|
|
38257
38412
|
}).strict();
|
|
38258
38413
|
var systemHealthInputSchema = external_exports.object({
|
|
38259
|
-
seat_id:
|
|
38414
|
+
seat_id: uuidSchema22.optional()
|
|
38260
38415
|
}).strict();
|
|
38261
38416
|
var systemHealthCheckInputSchema = systemHealthInputSchema.extend({
|
|
38262
38417
|
caller: systemHealthCallerSchema
|
|
@@ -38283,10 +38438,10 @@ var baserowFilteredCountInputSchema = external_exports.object({
|
|
|
38283
38438
|
}).strict();
|
|
38284
38439
|
|
|
38285
38440
|
// ../../packages/protocol/src/signal-report.ts
|
|
38286
|
-
var
|
|
38441
|
+
var uuidSchema23 = external_exports.string().uuid();
|
|
38287
38442
|
var dateOnlySchema3 = external_exports.string().regex(/^\d{4}-\d{2}-\d{2}$/, "expected YYYY-MM-DD");
|
|
38288
38443
|
var signalReportInputSchema = external_exports.object({
|
|
38289
|
-
measurable_id:
|
|
38444
|
+
measurable_id: uuidSchema23,
|
|
38290
38445
|
value: external_exports.number().finite(),
|
|
38291
38446
|
// Optional; defaults to the measurable's current period (resolved in the
|
|
38292
38447
|
// command against the measurable's own cadence via the canonical bounds).
|
|
@@ -38297,8 +38452,8 @@ var signalReportInputSchema = external_exports.object({
|
|
|
38297
38452
|
confidence: external_exports.enum(["low", "medium", "high"]).optional()
|
|
38298
38453
|
}).strict();
|
|
38299
38454
|
var signalReportOutputSchema = external_exports.object({
|
|
38300
|
-
reading_id:
|
|
38301
|
-
measurable_id:
|
|
38455
|
+
reading_id: uuidSchema23,
|
|
38456
|
+
measurable_id: uuidSchema23,
|
|
38302
38457
|
// Always false: an agent-sourced reading is a draft until a human confirms it.
|
|
38303
38458
|
confirmed: external_exports.literal(false)
|
|
38304
38459
|
}).strict();
|
|
@@ -38329,12 +38484,12 @@ var signalReadingProposalSchema = external_exports.object({
|
|
|
38329
38484
|
});
|
|
38330
38485
|
|
|
38331
38486
|
// ../../packages/protocol/src/signal-draft-first-readings.ts
|
|
38332
|
-
var
|
|
38487
|
+
var uuidSchema24 = external_exports.string().uuid();
|
|
38333
38488
|
var signalDraftFirstReadingsInputSchema = external_exports.object({
|
|
38334
|
-
measurable_id:
|
|
38489
|
+
measurable_id: uuidSchema24
|
|
38335
38490
|
}).strict();
|
|
38336
38491
|
var signalDraftFirstReadingsOutputSchema = external_exports.object({
|
|
38337
|
-
measurable_id:
|
|
38492
|
+
measurable_id: uuidSchema24,
|
|
38338
38493
|
// The live pull outcome, surfaced verbatim so the UI can explain a no-datapoint
|
|
38339
38494
|
// result honestly ("source polled, nothing came back") rather than silently.
|
|
38340
38495
|
outcome: external_exports.enum(["ok", "blocked", "error"]),
|
|
@@ -38342,7 +38497,7 @@ var signalDraftFirstReadingsOutputSchema = external_exports.object({
|
|
|
38342
38497
|
// Never fabricates back-dated history the source cannot actually produce.
|
|
38343
38498
|
drafted: external_exports.number().int().min(0).max(1),
|
|
38344
38499
|
// Present only when drafted === 1.
|
|
38345
|
-
reading_id:
|
|
38500
|
+
reading_id: uuidSchema24.optional(),
|
|
38346
38501
|
value: external_exports.number().finite().optional(),
|
|
38347
38502
|
period_start: external_exports.string().regex(/^\d{4}-\d{2}-\d{2}$/, "expected YYYY-MM-DD").optional(),
|
|
38348
38503
|
// Present only when drafted === 0: a short, non-secret machine reason
|
|
@@ -40050,7 +40205,7 @@ var softwareFactoryBudgetExhaustedEventSchema = external_exports.object({
|
|
|
40050
40205
|
}).strict();
|
|
40051
40206
|
|
|
40052
40207
|
// ../../packages/protocol/src/sync-brief.ts
|
|
40053
|
-
var
|
|
40208
|
+
var uuidSchema25 = external_exports.string().uuid();
|
|
40054
40209
|
var dateSchema = external_exports.string().regex(/^\d{4}-\d{2}-\d{2}$/);
|
|
40055
40210
|
var syncBriefGapSchema = external_exports.object({
|
|
40056
40211
|
section: external_exports.enum(["exceptions", "goal_deltas", "task_review", "friction", "agent_activity"]),
|
|
@@ -40063,8 +40218,8 @@ var sectionSchema = (itemSchema) => external_exports.object({
|
|
|
40063
40218
|
flagged_gaps: external_exports.array(syncBriefGapSchema)
|
|
40064
40219
|
}).strict();
|
|
40065
40220
|
var syncBriefExceptionSchema = external_exports.object({
|
|
40066
|
-
measurable_id:
|
|
40067
|
-
seat_id:
|
|
40221
|
+
measurable_id: uuidSchema25,
|
|
40222
|
+
seat_id: uuidSchema25,
|
|
40068
40223
|
seat_name: external_exports.string().min(1),
|
|
40069
40224
|
name: external_exports.string().min(1),
|
|
40070
40225
|
state: external_exports.enum(["risk", "crit", "pending"]),
|
|
@@ -40075,8 +40230,8 @@ var syncBriefExceptionSchema = external_exports.object({
|
|
|
40075
40230
|
freshness: external_exports.enum(["fresh", "due", "stale", "awaiting_first_reading", "not_expected"]).optional()
|
|
40076
40231
|
}).strict();
|
|
40077
40232
|
var syncBriefGoalDeltaSchema = external_exports.object({
|
|
40078
|
-
goal_id:
|
|
40079
|
-
seat_id:
|
|
40233
|
+
goal_id: uuidSchema25,
|
|
40234
|
+
seat_id: uuidSchema25.nullable(),
|
|
40080
40235
|
seat_name: external_exports.string().nullable(),
|
|
40081
40236
|
title: external_exports.string().min(1),
|
|
40082
40237
|
status: external_exports.enum(["on", "off", "done", "dropped"]),
|
|
@@ -40103,22 +40258,22 @@ var syncBriefTaskReviewSchema = external_exports.object({
|
|
|
40103
40258
|
previous_done_rate: external_exports.number().min(0).max(1),
|
|
40104
40259
|
delta: external_exports.number().min(-1).max(1),
|
|
40105
40260
|
stalled: external_exports.array(external_exports.object({
|
|
40106
|
-
task_id:
|
|
40107
|
-
owner_seat_id:
|
|
40261
|
+
task_id: uuidSchema25,
|
|
40262
|
+
owner_seat_id: uuidSchema25,
|
|
40108
40263
|
owner_seat_name: external_exports.string().min(1),
|
|
40109
40264
|
title: external_exports.string().min(1),
|
|
40110
40265
|
due_on: dateSchema,
|
|
40111
40266
|
stalled_at: external_exports.string().nullable()
|
|
40112
40267
|
}).strict()),
|
|
40113
40268
|
overdue_by_owner: external_exports.array(external_exports.object({
|
|
40114
|
-
owner_seat_id:
|
|
40269
|
+
owner_seat_id: uuidSchema25,
|
|
40115
40270
|
owner_seat_name: external_exports.string().min(1),
|
|
40116
40271
|
overdue_count: external_exports.number().int().nonnegative()
|
|
40117
40272
|
}).strict())
|
|
40118
40273
|
}).strict();
|
|
40119
40274
|
var syncBriefIssueSchema = external_exports.object({
|
|
40120
|
-
issue_id:
|
|
40121
|
-
raised_by_seat_id:
|
|
40275
|
+
issue_id: uuidSchema25,
|
|
40276
|
+
raised_by_seat_id: uuidSchema25,
|
|
40122
40277
|
raised_by_seat_name: external_exports.string().min(1),
|
|
40123
40278
|
summary: external_exports.string().min(1),
|
|
40124
40279
|
severity: external_exports.enum(["low", "med", "high", "critical"]),
|
|
@@ -40135,9 +40290,9 @@ var syncBriefActionItemTrendSchema = external_exports.object({
|
|
|
40135
40290
|
has_prior: external_exports.boolean()
|
|
40136
40291
|
}).strict();
|
|
40137
40292
|
var syncBriefCascadeAtRiskSchema = external_exports.object({
|
|
40138
|
-
goal_id:
|
|
40293
|
+
goal_id: uuidSchema25,
|
|
40139
40294
|
title: external_exports.string().min(1),
|
|
40140
|
-
seat_id:
|
|
40295
|
+
seat_id: uuidSchema25.nullable(),
|
|
40141
40296
|
progress_pct: external_exports.number().int().min(0).max(100),
|
|
40142
40297
|
classification: external_exports.enum(["at_risk", "projected_miss"]),
|
|
40143
40298
|
behind_days: external_exports.number().nullable(),
|
|
@@ -40146,7 +40301,7 @@ var syncBriefCascadeAtRiskSchema = external_exports.object({
|
|
|
40146
40301
|
target_date: external_exports.string().date().nullable().optional()
|
|
40147
40302
|
}).strict();
|
|
40148
40303
|
var syncBriefRunHeartbeatStalledSeatSchema = external_exports.object({
|
|
40149
|
-
seat_id:
|
|
40304
|
+
seat_id: uuidSchema25,
|
|
40150
40305
|
current_phase: external_exports.string().nullable(),
|
|
40151
40306
|
stalled_run_count: external_exports.number().int().nonnegative()
|
|
40152
40307
|
}).strict();
|
|
@@ -40171,8 +40326,8 @@ var syncBriefRunHeartbeatRollupSchema = external_exports.object({
|
|
|
40171
40326
|
stalled_seats: external_exports.array(syncBriefRunHeartbeatStalledSeatSchema)
|
|
40172
40327
|
}).strict();
|
|
40173
40328
|
var syncBriefAgentActivitySchema = external_exports.object({
|
|
40174
|
-
agent_id:
|
|
40175
|
-
seat_id:
|
|
40329
|
+
agent_id: uuidSchema25,
|
|
40330
|
+
seat_id: uuidSchema25,
|
|
40176
40331
|
seat_name: external_exports.string().min(1),
|
|
40177
40332
|
run_count: external_exports.number().int().nonnegative(),
|
|
40178
40333
|
failed_run_count: external_exports.number().int().nonnegative(),
|
|
@@ -40185,11 +40340,11 @@ var syncBriefAgentActivitySchema = external_exports.object({
|
|
|
40185
40340
|
var syncBriefSchema = external_exports.object({
|
|
40186
40341
|
schema_version: external_exports.literal(1),
|
|
40187
40342
|
tenant: external_exports.object({
|
|
40188
|
-
id:
|
|
40343
|
+
id: uuidSchema25,
|
|
40189
40344
|
name: external_exports.string().min(1)
|
|
40190
40345
|
}).strict(),
|
|
40191
40346
|
cluster: external_exports.object({
|
|
40192
|
-
id:
|
|
40347
|
+
id: uuidSchema25,
|
|
40193
40348
|
name: external_exports.string().min(1)
|
|
40194
40349
|
}).strict().nullable(),
|
|
40195
40350
|
period: external_exports.object({
|
|
@@ -40306,11 +40461,11 @@ var usageSnapshotOutputSchema = external_exports.object({
|
|
|
40306
40461
|
}).strict();
|
|
40307
40462
|
|
|
40308
40463
|
// ../../packages/protocol/src/event-payloads.ts
|
|
40309
|
-
var
|
|
40464
|
+
var uuidSchema26 = external_exports.string().uuid();
|
|
40310
40465
|
var evidenceSchema = external_exports.array(external_exports.unknown());
|
|
40311
40466
|
var statusEventPayloadSchema = external_exports.object({
|
|
40312
40467
|
measurables: external_exports.array(external_exports.object({
|
|
40313
|
-
id:
|
|
40468
|
+
id: uuidSchema26,
|
|
40314
40469
|
value: external_exports.number().finite(),
|
|
40315
40470
|
// DER-1045: an optional, non-secret citation for an agent-proposed reading
|
|
40316
40471
|
// (signal.report) — where the number came from + the agent's confidence.
|
|
@@ -40345,7 +40500,7 @@ var statusEventPayloadSchema = external_exports.object({
|
|
|
40345
40500
|
}).strict().optional()
|
|
40346
40501
|
}).strict()).optional(),
|
|
40347
40502
|
goals: external_exports.array(external_exports.object({
|
|
40348
|
-
id:
|
|
40503
|
+
id: uuidSchema26,
|
|
40349
40504
|
state: external_exports.enum(["on", "off"]),
|
|
40350
40505
|
note: external_exports.string().min(1).optional(),
|
|
40351
40506
|
// DER-2214: structured status-event attribution so "deliberately human-pinned"
|
|
@@ -40377,8 +40532,8 @@ var escalationEventPayloadSchema = escalationRaiseInputSchema.extend({
|
|
|
40377
40532
|
}).strict();
|
|
40378
40533
|
var issueEventPayloadSchema = external_exports.object({
|
|
40379
40534
|
summary: external_exports.string().min(1),
|
|
40380
|
-
blocking_goal_id:
|
|
40381
|
-
broken_measurable_id:
|
|
40535
|
+
blocking_goal_id: uuidSchema26.optional(),
|
|
40536
|
+
broken_measurable_id: uuidSchema26.optional(),
|
|
40382
40537
|
evidence: evidenceSchema,
|
|
40383
40538
|
severity: external_exports.enum(["low", "med", "high", "critical"]),
|
|
40384
40539
|
// DER-1978 (S2): an OPTIONAL short human-readable title written at creation.
|
|
@@ -40390,7 +40545,7 @@ var issueEventPayloadSchema = external_exports.object({
|
|
|
40390
40545
|
}).strict();
|
|
40391
40546
|
|
|
40392
40547
|
// ../../packages/protocol/src/event-internal-payloads.ts
|
|
40393
|
-
var
|
|
40548
|
+
var uuidSchema27 = external_exports.string().uuid();
|
|
40394
40549
|
var internalEventObjectSchema = external_exports.record(external_exports.string(), external_exports.unknown()).refine((payload) => !Array.isArray(payload), "Internal event payload must be an object");
|
|
40395
40550
|
var actionEventPayloadSchema = external_exports.object({ action: external_exports.string().min(1) }).passthrough();
|
|
40396
40551
|
function authoritativePrefixUnion(branches, authoritative) {
|
|
@@ -40412,25 +40567,25 @@ function authoritativePrefixUnion(branches, authoritative) {
|
|
|
40412
40567
|
}
|
|
40413
40568
|
var inviteCreatedEventPayloadSchema = external_exports.object({
|
|
40414
40569
|
action: external_exports.literal("invite.created"),
|
|
40415
|
-
invite_id:
|
|
40570
|
+
invite_id: uuidSchema27,
|
|
40416
40571
|
email: external_exports.string().email(),
|
|
40417
40572
|
role: memberRoleSchema,
|
|
40418
40573
|
member_type: memberTypeSchema,
|
|
40419
40574
|
access_profile: memberAccessProfileSchema,
|
|
40420
40575
|
aicos_access_scope: aicosAccessScopeSchema,
|
|
40421
|
-
invited_by:
|
|
40576
|
+
invited_by: uuidSchema27
|
|
40422
40577
|
}).strict();
|
|
40423
40578
|
var inviteRevokedEventPayloadSchema = external_exports.object({
|
|
40424
40579
|
action: external_exports.literal("invite.revoked"),
|
|
40425
|
-
invite_id:
|
|
40426
|
-
revoked_by:
|
|
40580
|
+
invite_id: uuidSchema27,
|
|
40581
|
+
revoked_by: uuidSchema27
|
|
40427
40582
|
}).strict();
|
|
40428
40583
|
var inviteAcceptedEventPayloadSchema = external_exports.object({
|
|
40429
40584
|
action: external_exports.literal("invite.accepted"),
|
|
40430
|
-
invite_id:
|
|
40431
|
-
user_id:
|
|
40432
|
-
membership_id:
|
|
40433
|
-
linked_seat_ids: external_exports.array(
|
|
40585
|
+
invite_id: uuidSchema27,
|
|
40586
|
+
user_id: uuidSchema27,
|
|
40587
|
+
membership_id: uuidSchema27,
|
|
40588
|
+
linked_seat_ids: external_exports.array(uuidSchema27)
|
|
40434
40589
|
}).strict();
|
|
40435
40590
|
var inviteLifecycleEventPayloadSchema = external_exports.union([
|
|
40436
40591
|
inviteCreatedEventPayloadSchema,
|
|
@@ -40495,14 +40650,14 @@ var heldToolActionReplaySchema = external_exports.object({
|
|
|
40495
40650
|
}).strict();
|
|
40496
40651
|
|
|
40497
40652
|
// ../../packages/protocol/src/operating.ts
|
|
40498
|
-
var
|
|
40653
|
+
var uuidSchema28 = external_exports.string().uuid();
|
|
40499
40654
|
var taskListInputSchema = external_exports.object({}).strict();
|
|
40500
40655
|
var operatingTaskSchema = external_exports.object({
|
|
40501
|
-
id:
|
|
40656
|
+
id: uuidSchema28,
|
|
40502
40657
|
title: external_exports.string(),
|
|
40503
40658
|
description: external_exports.string().nullable(),
|
|
40504
|
-
from_seat_id:
|
|
40505
|
-
goal_id:
|
|
40659
|
+
from_seat_id: uuidSchema28.nullable(),
|
|
40660
|
+
goal_id: uuidSchema28.nullable(),
|
|
40506
40661
|
acceptance_criteria: external_exports.unknown(),
|
|
40507
40662
|
due_on: external_exports.string().nullable(),
|
|
40508
40663
|
status: external_exports.string()
|
|
@@ -40511,54 +40666,54 @@ var taskListOutputSchema = external_exports.object({
|
|
|
40511
40666
|
tasks: external_exports.array(operatingTaskSchema)
|
|
40512
40667
|
}).strict();
|
|
40513
40668
|
var taskAcceptInputSchema = external_exports.object({
|
|
40514
|
-
id:
|
|
40669
|
+
id: uuidSchema28
|
|
40515
40670
|
}).strict();
|
|
40516
40671
|
var taskConfirmProposalInputSchema = external_exports.object({
|
|
40517
|
-
id:
|
|
40672
|
+
id: uuidSchema28
|
|
40518
40673
|
}).strict();
|
|
40519
40674
|
var taskMutationOutputSchema = external_exports.object({
|
|
40520
40675
|
task: external_exports.object({
|
|
40521
|
-
id:
|
|
40676
|
+
id: uuidSchema28,
|
|
40522
40677
|
status: external_exports.string()
|
|
40523
40678
|
}).strict()
|
|
40524
40679
|
}).strict();
|
|
40525
40680
|
var taskDeclineInputSchema = external_exports.object({
|
|
40526
|
-
id:
|
|
40681
|
+
id: uuidSchema28,
|
|
40527
40682
|
reason: external_exports.string().min(1)
|
|
40528
40683
|
}).strict();
|
|
40529
40684
|
var taskDeclineOutputSchema = external_exports.object({
|
|
40530
40685
|
task: external_exports.object({
|
|
40531
|
-
id:
|
|
40686
|
+
id: uuidSchema28,
|
|
40532
40687
|
status: external_exports.string(),
|
|
40533
40688
|
decline_reason: external_exports.string()
|
|
40534
40689
|
}).strict()
|
|
40535
40690
|
}).strict();
|
|
40536
40691
|
var taskCompleteInputSchema = external_exports.object({
|
|
40537
|
-
id:
|
|
40692
|
+
id: uuidSchema28,
|
|
40538
40693
|
summary: external_exports.string().min(1),
|
|
40539
40694
|
artifacts: external_exports.unknown().optional()
|
|
40540
40695
|
}).strict();
|
|
40541
40696
|
var taskCompleteOutputSchema = external_exports.object({
|
|
40542
|
-
task_id:
|
|
40543
|
-
event_id:
|
|
40697
|
+
task_id: uuidSchema28,
|
|
40698
|
+
event_id: uuidSchema28,
|
|
40544
40699
|
type: external_exports.literal("handoff")
|
|
40545
40700
|
}).strict();
|
|
40546
40701
|
var statusRecordOutputSchema = external_exports.object({
|
|
40547
|
-
event_id:
|
|
40702
|
+
event_id: uuidSchema28,
|
|
40548
40703
|
type: external_exports.literal("status")
|
|
40549
40704
|
}).strict();
|
|
40550
40705
|
var frictionFileIssueInputSchema = issueEventPayloadSchema.extend({
|
|
40551
40706
|
source_key: external_exports.string().trim().min(1).max(200).optional()
|
|
40552
40707
|
}).strict();
|
|
40553
40708
|
var duplicateFrictionCandidateSchema = external_exports.object({
|
|
40554
|
-
issue_id:
|
|
40709
|
+
issue_id: uuidSchema28,
|
|
40555
40710
|
summary: external_exports.string().min(1),
|
|
40556
40711
|
// pg_trgm similarity in [0, 1]; higher is more similar.
|
|
40557
40712
|
similarity: external_exports.number().min(0).max(1)
|
|
40558
40713
|
}).strict();
|
|
40559
40714
|
var frictionFileIssueOutputSchema = external_exports.object({
|
|
40560
|
-
event_id:
|
|
40561
|
-
issue_id:
|
|
40715
|
+
event_id: uuidSchema28,
|
|
40716
|
+
issue_id: uuidSchema28,
|
|
40562
40717
|
type: external_exports.literal("issue"),
|
|
40563
40718
|
// DER-1522: likely-duplicate candidates detected before creation. Recommend,
|
|
40564
40719
|
// never block — filing always proceeds; empty when nothing crossed the
|
|
@@ -40572,12 +40727,12 @@ var workLogInputSchema = external_exports.object({
|
|
|
40572
40727
|
note: external_exports.string().min(1)
|
|
40573
40728
|
}).strict();
|
|
40574
40729
|
var workLogOutputSchema = external_exports.object({
|
|
40575
|
-
event_id:
|
|
40730
|
+
event_id: uuidSchema28,
|
|
40576
40731
|
type: external_exports.literal("task")
|
|
40577
40732
|
}).strict();
|
|
40578
40733
|
var escalationRaiseOutputSchema = external_exports.object({
|
|
40579
|
-
event_id:
|
|
40580
|
-
escalation_id:
|
|
40734
|
+
event_id: uuidSchema28,
|
|
40735
|
+
escalation_id: uuidSchema28,
|
|
40581
40736
|
type: external_exports.literal("escalation")
|
|
40582
40737
|
}).strict();
|
|
40583
40738
|
var deliverableKindSchema2 = external_exports.enum(["brief", "work_evidence", "artifact", "report", "other"]);
|
|
@@ -40636,7 +40791,7 @@ var deliverableRejectOutputSchema = external_exports.object({
|
|
|
40636
40791
|
}).strict();
|
|
40637
40792
|
|
|
40638
40793
|
// ../../packages/protocol/src/steward.ts
|
|
40639
|
-
var
|
|
40794
|
+
var uuidSchema29 = external_exports.string().uuid();
|
|
40640
40795
|
var escalationStatusSchema = external_exports.enum([
|
|
40641
40796
|
"open",
|
|
40642
40797
|
"approved",
|
|
@@ -40645,18 +40800,18 @@ var escalationStatusSchema = external_exports.enum([
|
|
|
40645
40800
|
]);
|
|
40646
40801
|
var stewardReplayActionSummarySchema = external_exports.object({
|
|
40647
40802
|
tool_name: external_exports.string(),
|
|
40648
|
-
run_id:
|
|
40803
|
+
run_id: uuidSchema29
|
|
40649
40804
|
}).strict();
|
|
40650
40805
|
var stewardProposedToolCallSchema = external_exports.object({
|
|
40651
40806
|
tool_name: external_exports.string(),
|
|
40652
40807
|
args_summary: external_exports.unknown()
|
|
40653
40808
|
}).strict();
|
|
40654
40809
|
var stewardEscalationSchema = external_exports.object({
|
|
40655
|
-
id:
|
|
40656
|
-
seat_id:
|
|
40810
|
+
id: uuidSchema29,
|
|
40811
|
+
seat_id: uuidSchema29,
|
|
40657
40812
|
seat_name: external_exports.string(),
|
|
40658
40813
|
seat_type: external_exports.enum(["human", "agent", "hybrid"]),
|
|
40659
|
-
steward_seat_id:
|
|
40814
|
+
steward_seat_id: uuidSchema29,
|
|
40660
40815
|
steward_seat_name: external_exports.string(),
|
|
40661
40816
|
reason: external_exports.string(),
|
|
40662
40817
|
// DER-1978 (S2): OPTIONAL short headline written at creation; null/absent when unset
|
|
@@ -40679,11 +40834,11 @@ var stewardEscalationSchema = external_exports.object({
|
|
|
40679
40834
|
proposed_tool_call: stewardProposedToolCallSchema.optional(),
|
|
40680
40835
|
recommended_action: external_exports.string().nullable(),
|
|
40681
40836
|
status: escalationStatusSchema,
|
|
40682
|
-
decided_by:
|
|
40837
|
+
decided_by: uuidSchema29.nullable(),
|
|
40683
40838
|
decided_by_name: external_exports.string().nullable(),
|
|
40684
40839
|
decided_at: external_exports.string().nullable(),
|
|
40685
40840
|
decision_note: external_exports.string().nullable(),
|
|
40686
|
-
issue_id:
|
|
40841
|
+
issue_id: uuidSchema29.nullable(),
|
|
40687
40842
|
created_at: external_exports.string(),
|
|
40688
40843
|
updated_at: external_exports.string()
|
|
40689
40844
|
}).strict();
|
|
@@ -40694,27 +40849,27 @@ var escalationListOutputSchema = external_exports.object({
|
|
|
40694
40849
|
escalations: external_exports.array(stewardEscalationSchema)
|
|
40695
40850
|
}).strict();
|
|
40696
40851
|
var escalationGetInputSchema = external_exports.object({
|
|
40697
|
-
id:
|
|
40852
|
+
id: uuidSchema29
|
|
40698
40853
|
}).strict();
|
|
40699
40854
|
var escalationGetOutputSchema = external_exports.object({
|
|
40700
40855
|
escalation: stewardEscalationSchema
|
|
40701
40856
|
}).strict();
|
|
40702
40857
|
var escalationResolveActionSchema = external_exports.enum(["approve", "convert_to_issue"]);
|
|
40703
40858
|
var escalationResolveInputSchema = external_exports.object({
|
|
40704
|
-
id:
|
|
40859
|
+
id: uuidSchema29,
|
|
40705
40860
|
action: escalationResolveActionSchema.optional(),
|
|
40706
40861
|
rationale: external_exports.string().trim().min(1).optional()
|
|
40707
40862
|
}).strict();
|
|
40708
40863
|
var escalationRejectInputSchema = external_exports.object({
|
|
40709
|
-
id:
|
|
40864
|
+
id: uuidSchema29,
|
|
40710
40865
|
rationale: external_exports.string().trim().min(1).optional()
|
|
40711
40866
|
}).strict();
|
|
40712
40867
|
var escalationDecisionOutputSchema = external_exports.object({
|
|
40713
|
-
escalation_id:
|
|
40868
|
+
escalation_id: uuidSchema29,
|
|
40714
40869
|
status: escalationStatusSchema,
|
|
40715
|
-
decision_id:
|
|
40716
|
-
decided_by:
|
|
40717
|
-
issue_id:
|
|
40870
|
+
decision_id: uuidSchema29,
|
|
40871
|
+
decided_by: uuidSchema29,
|
|
40872
|
+
issue_id: uuidSchema29.nullable(),
|
|
40718
40873
|
// DER-1478: true when the resolved escalation carries a durable replay_action
|
|
40719
40874
|
// (an approval-gated connector write) that the approvals path should actuate
|
|
40720
40875
|
// after this decision is recorded. Omitted (not false) for non-connector
|
|
@@ -40895,7 +41050,7 @@ var workDetailsSchemas = {
|
|
|
40895
41050
|
};
|
|
40896
41051
|
|
|
40897
41052
|
// ../../packages/protocol/src/agent-grant-intervention.ts
|
|
40898
|
-
var
|
|
41053
|
+
var uuidSchema30 = external_exports.string().uuid();
|
|
40899
41054
|
var agentGrantBlockerKindSchema = external_exports.enum([
|
|
40900
41055
|
"rost_capability",
|
|
40901
41056
|
"os_permission",
|
|
@@ -40912,16 +41067,16 @@ var agentGrantInterventionStatusSchema = external_exports.enum([
|
|
|
40912
41067
|
]);
|
|
40913
41068
|
var agentGrantKindSchema = external_exports.enum(["allow_once", "permanent"]);
|
|
40914
41069
|
var agentGrantInterventionSchema = external_exports.object({
|
|
40915
|
-
id:
|
|
40916
|
-
seat_id:
|
|
41070
|
+
id: uuidSchema30,
|
|
41071
|
+
seat_id: uuidSchema30,
|
|
40917
41072
|
seat_name: external_exports.string().nullable(),
|
|
40918
|
-
agent_id:
|
|
41073
|
+
agent_id: uuidSchema30.nullable(),
|
|
40919
41074
|
// The source blocked attempt (audit link); null once the run is retention-purged.
|
|
40920
|
-
run_id:
|
|
41075
|
+
run_id: uuidSchema30.nullable(),
|
|
40921
41076
|
// The runner the blocker lives on, for os_permission repairs ("Open on Runner").
|
|
40922
|
-
runner_id:
|
|
41077
|
+
runner_id: uuidSchema30.nullable(),
|
|
40923
41078
|
// The linked continuation attempt, populated when a continuation is enqueued.
|
|
40924
|
-
continuation_run_id:
|
|
41079
|
+
continuation_run_id: uuidSchema30.nullable(),
|
|
40925
41080
|
blocker_kind: agentGrantBlockerKindSchema,
|
|
40926
41081
|
status: agentGrantInterventionStatusSchema,
|
|
40927
41082
|
// The specific capability/scope requested (e.g. "gmail.send"), when applicable.
|
|
@@ -40936,7 +41091,7 @@ var agentGrantInterventionSchema = external_exports.object({
|
|
|
40936
41091
|
// True once the blocked attempt released its lease/compute (AC #2 clean termination).
|
|
40937
41092
|
compute_released: external_exports.boolean(),
|
|
40938
41093
|
grant_kind: agentGrantKindSchema.nullable(),
|
|
40939
|
-
decided_by:
|
|
41094
|
+
decided_by: uuidSchema30.nullable(),
|
|
40940
41095
|
decided_by_name: external_exports.string().nullable(),
|
|
40941
41096
|
decided_at: external_exports.string().nullable(),
|
|
40942
41097
|
expires_at: external_exports.string().nullable(),
|
|
@@ -40945,7 +41100,7 @@ var agentGrantInterventionSchema = external_exports.object({
|
|
|
40945
41100
|
}).strict();
|
|
40946
41101
|
var agentGrantInterventionListInputSchema = external_exports.object({
|
|
40947
41102
|
// Optional seat filter (a seat-scoped caller is additionally clamped to its own seat).
|
|
40948
|
-
seat_id:
|
|
41103
|
+
seat_id: uuidSchema30.optional(),
|
|
40949
41104
|
// When true, include decided/terminal records (declined/resumed/expired) too;
|
|
40950
41105
|
// by default only the actionable open blocked/granted records are returned.
|
|
40951
41106
|
include_decided: external_exports.boolean().optional()
|
|
@@ -40954,14 +41109,14 @@ var agentGrantInterventionListOutputSchema = external_exports.object({
|
|
|
40954
41109
|
interventions: external_exports.array(agentGrantInterventionSchema)
|
|
40955
41110
|
}).strict();
|
|
40956
41111
|
var agentGrantInterventionGetInputSchema = external_exports.object({
|
|
40957
|
-
id:
|
|
41112
|
+
id: uuidSchema30
|
|
40958
41113
|
}).strict();
|
|
40959
41114
|
var agentGrantInterventionGetOutputSchema = external_exports.object({
|
|
40960
41115
|
intervention: agentGrantInterventionSchema
|
|
40961
41116
|
}).strict();
|
|
40962
41117
|
var agentGrantInterventionDecideActionSchema = external_exports.enum(["grant", "decline"]);
|
|
40963
41118
|
var agentGrantInterventionDecideInputSchema = external_exports.object({
|
|
40964
|
-
intervention_id:
|
|
41119
|
+
intervention_id: uuidSchema30,
|
|
40965
41120
|
action: agentGrantInterventionDecideActionSchema,
|
|
40966
41121
|
// Defaults to allow_once. `permanent` never auto-widens — it returns
|
|
40967
41122
|
// requires_charter_resign so the surface routes the human to a Charter re-sign.
|
|
@@ -40973,12 +41128,12 @@ var agentGrantInterventionDecideInputSchema = external_exports.object({
|
|
|
40973
41128
|
rationale: external_exports.string().trim().min(1).max(2e3).optional()
|
|
40974
41129
|
}).strict();
|
|
40975
41130
|
var agentGrantInterventionDecideOutputSchema = external_exports.object({
|
|
40976
|
-
intervention_id:
|
|
41131
|
+
intervention_id: uuidSchema30,
|
|
40977
41132
|
status: agentGrantInterventionStatusSchema,
|
|
40978
|
-
continuation_run_id:
|
|
41133
|
+
continuation_run_id: uuidSchema30.nullable(),
|
|
40979
41134
|
// The human decision row written for a grant/decline (invariant #7). Null only
|
|
40980
41135
|
// when a permanent grant deferred to a Charter re-sign (no one-time decision made).
|
|
40981
|
-
decision_id:
|
|
41136
|
+
decision_id: uuidSchema30.nullable(),
|
|
40982
41137
|
// True when the human chose the permanent option — the surface must route to a
|
|
40983
41138
|
// Charter re-sign; no authority was widened by this call (invariant #10).
|
|
40984
41139
|
requires_charter_resign: external_exports.boolean(),
|
|
@@ -40992,12 +41147,12 @@ var agentGrantInterventionDecideOutputSchema = external_exports.object({
|
|
|
40992
41147
|
enqueue_failed: external_exports.boolean()
|
|
40993
41148
|
}).strict();
|
|
40994
41149
|
var agentGrantInterventionResumeInputSchema = external_exports.object({
|
|
40995
|
-
intervention_id:
|
|
41150
|
+
intervention_id: uuidSchema30
|
|
40996
41151
|
}).strict();
|
|
40997
41152
|
var agentGrantInterventionResumeOutputSchema = external_exports.object({
|
|
40998
|
-
intervention_id:
|
|
41153
|
+
intervention_id: uuidSchema30,
|
|
40999
41154
|
status: agentGrantInterventionStatusSchema,
|
|
41000
|
-
continuation_run_id:
|
|
41155
|
+
continuation_run_id: uuidSchema30.nullable(),
|
|
41001
41156
|
enqueue_failed: external_exports.boolean()
|
|
41002
41157
|
}).strict();
|
|
41003
41158
|
|
|
@@ -41015,7 +41170,7 @@ var eventTypes = [
|
|
|
41015
41170
|
"task"
|
|
41016
41171
|
];
|
|
41017
41172
|
var publicMessageTypes = ["status", "handoff", "escalation", "issue"];
|
|
41018
|
-
var
|
|
41173
|
+
var uuidSchema31 = external_exports.string().uuid();
|
|
41019
41174
|
var evidenceSchema2 = external_exports.array(external_exports.unknown());
|
|
41020
41175
|
var internalEventPayloadSchema = external_exports.record(external_exports.string(), external_exports.unknown()).refine((payload) => !Array.isArray(payload), "Internal event payload must be an object");
|
|
41021
41176
|
var handoffEventPayloadSchema = external_exports.object({
|
|
@@ -41025,24 +41180,24 @@ var handoffEventPayloadSchema = external_exports.object({
|
|
|
41025
41180
|
acceptance_criteria: external_exports.array(external_exports.string().min(1)),
|
|
41026
41181
|
due: external_exports.string().datetime({ offset: true })
|
|
41027
41182
|
}).strict(),
|
|
41028
|
-
to_seat_id:
|
|
41183
|
+
to_seat_id: uuidSchema31
|
|
41029
41184
|
}).strict();
|
|
41030
41185
|
var intakeEventPayloadSchema = external_exports.discriminatedUnion("action", [
|
|
41031
41186
|
external_exports.object({
|
|
41032
41187
|
action: external_exports.literal("uploaded"),
|
|
41033
|
-
document_id:
|
|
41188
|
+
document_id: uuidSchema31,
|
|
41034
41189
|
storage_ref: external_exports.string().min(1)
|
|
41035
41190
|
}).strict(),
|
|
41036
41191
|
external_exports.object({
|
|
41037
41192
|
action: external_exports.literal("parsed"),
|
|
41038
|
-
document_id:
|
|
41193
|
+
document_id: uuidSchema31,
|
|
41039
41194
|
mode: external_exports.enum(["source_tree", "function_first"]),
|
|
41040
41195
|
seat_count: external_exports.number().int().nonnegative(),
|
|
41041
41196
|
edge_count: external_exports.number().int().nonnegative()
|
|
41042
41197
|
}).strict(),
|
|
41043
41198
|
external_exports.object({
|
|
41044
41199
|
action: external_exports.literal("failed"),
|
|
41045
|
-
document_id:
|
|
41200
|
+
document_id: uuidSchema31,
|
|
41046
41201
|
reason: external_exports.string().min(1)
|
|
41047
41202
|
}).strict(),
|
|
41048
41203
|
external_exports.object({
|
|
@@ -41148,9 +41303,9 @@ var publicMessageTypeSchema = external_exports.enum(publicMessageTypes);
|
|
|
41148
41303
|
var eventEnvelopeBaseSchema = external_exports.object({
|
|
41149
41304
|
protocol: external_exports.literal(EVENT_PROTOCOL),
|
|
41150
41305
|
type: eventTypeSchema,
|
|
41151
|
-
seat_id:
|
|
41306
|
+
seat_id: uuidSchema31.nullable(),
|
|
41152
41307
|
occurred_at: external_exports.string().datetime({ offset: true }),
|
|
41153
|
-
goal_ancestry: external_exports.array(
|
|
41308
|
+
goal_ancestry: external_exports.array(uuidSchema31),
|
|
41154
41309
|
// DER-2381: optional so historical rows and every caller that hasn't been
|
|
41155
41310
|
// updated yet keep parsing — but every per-type writer envelope below
|
|
41156
41311
|
// extends THIS base and re-`.strict()`s, so adding it here propagates the
|
|
@@ -51896,7 +52051,7 @@ var referenceDocuments = [
|
|
|
51896
52051
|
order: 10,
|
|
51897
52052
|
title: "{{brand}} implementation method",
|
|
51898
52053
|
summary: "The staged operating-system setup path used by humans, CLI sessions, MCP clients, and in-app agents.",
|
|
51899
|
-
version: "2026-07-29.
|
|
52054
|
+
version: "2026-07-29.4",
|
|
51900
52055
|
public: true,
|
|
51901
52056
|
audiences: ["human", "cli", "mcp", "in_app_agent"],
|
|
51902
52057
|
stages: ["company_setup", "graph_design", "charter_design", "staffing", "operating_rhythm"],
|
|
@@ -51909,6 +52064,7 @@ var referenceDocuments = [
|
|
|
51909
52064
|
"onboarding.create_invite",
|
|
51910
52065
|
"onboarding.setup",
|
|
51911
52066
|
"onboarding.rehearse",
|
|
52067
|
+
"onboarding.activate",
|
|
51912
52068
|
"onboarding.source_ingest",
|
|
51913
52069
|
"seat.create",
|
|
51914
52070
|
"seat.set_type",
|
|
@@ -52024,7 +52180,7 @@ The Compass is drafted, then activated by a human through supersession.
|
|
|
52024
52180
|
|
|
52025
52181
|
\`onboarding.setup\`, \`onboarding.finish\`, \`compass.approve_version\`, \`compass.reject_draft\`, and \`compass.set\` are \`human_required\`. \`onboarding.source_ingest\` is a bootstrap-safe \`none\` prerequisite that retains bounded source bytes encrypted under the exact tenant/run, computes its digest and canonical parser manifest server-side, and remains permanently outside Trusted and Full Operator. \`onboarding.setup\` is the one-approval composite apply: it freezes the complete plan and live proof at staging, then rechecks them and applies Compass, cycle, Responsibility Graph, Charters, staffing, goals, Signals/readings, Frictions, tasks, and Sync scope in one transaction. A failure rolls back the entire application and leaves the confirmation pending.
|
|
52026
52182
|
|
|
52027
|
-
After setup succeeds, call \`onboarding.rehearse\` with the exact setup application, expected setup digest/revision, and a caller idempotency key. This is the implementation principal's one bounded \`execute\` exception: it is ungated because it can run only the setup receipt's exact agents in the sandbox, with no schedule arming, go-live transition, credential access, source mutation, or external communication. It rechecks the current Charter manifest, pinned published Skill versions and content hashes, schedule, execution lane, and canonical configuration digest under the same tenant/run boundary. A complete batch returns an immutable terminal batch receipt plus one immutable per-agent receipt with nonzero checked counts, runtime run ids, bounded tool previews/manifest holds/errors, and \`passed\` or \`failed\` status. Same-key/same-configuration retry returns that terminal evidence; a changed configuration conflicts instead of silently reusing it. The rehearsal never returns an approval URL and never stages activation.
|
|
52183
|
+
After setup succeeds, call \`onboarding.rehearse\` with the exact setup application, expected setup digest/revision, and a caller idempotency key. This is the implementation principal's one bounded \`execute\` exception: it is ungated because it can run only the setup receipt's exact agents in the sandbox, with no schedule arming, go-live transition, credential access, source mutation, or external communication. It rechecks the current Charter manifest, pinned published Skill versions and content hashes, schedule, execution lane, and canonical configuration digest under the same tenant/run boundary. A complete batch returns an immutable terminal batch receipt plus one immutable per-agent receipt with nonzero checked counts, runtime run ids, bounded tool previews/manifest holds/errors, and \`passed\` or \`failed\` status. Same-key/same-configuration retry returns that terminal evidence; a changed configuration conflicts instead of silently reusing it. The rehearsal never returns an approval URL and never stages activation. The later, separate \`onboarding.activate\` command consumes that exact terminal batch and the unique run/configuration evidence for the setup receipt's complete agent set. It stages one owner approval whose durable card shows every agent, Seat, Charter/configuration digest, rehearsal run, effective lane/model, permissions, schedule, warnings, and the onboarding-completion effect. Approval rechecks the full projection, records one composite human decision, makes every agent live, arms eligible schedules, and completes onboarding atomically. Any stale or failed member rolls the transaction back; same-key retry returns the committed receipt without duplicating effects.
|
|
52028
52184
|
|
|
52029
52185
|
\`onboarding.advance_step\`, \`onboarding.create_invite\`, \`onboarding.attach_reference\`, \`compass.answer_gap\`, and drafting a Compass are \`none\` \u2014 none of them returns a pending confirmation. \`none\` is not the same as "agent-callable", though: \`onboarding.create_invite\` and \`compass.answer_gap\` record the human who ran them, so they run as a person, not from an agent session, while advancing a step, attaching a reference, drafting a Compass, and exact-run source ingestion are safe for the bootstrap agent. Approving a version (a supersession) is a human act. The agent drafts and surfaces the approve link. See the confirmations guide.
|
|
52030
52186
|
|
|
@@ -53164,7 +53320,7 @@ External connectors are being rolled out provider by provider, conservatively (r
|
|
|
53164
53320
|
order: 48,
|
|
53165
53321
|
title: "CLI and MCP installation guide",
|
|
53166
53322
|
summary: "Install the public CLI, register remote token-backed MCP clients, and find the full command and tool catalog.",
|
|
53167
|
-
version: "2026-07-29.
|
|
53323
|
+
version: "2026-07-29.2",
|
|
53168
53324
|
public: true,
|
|
53169
53325
|
audiences: ["human", "cli", "mcp", "in_app_agent"],
|
|
53170
53326
|
stages: ["company_setup", "staffing"],
|
|
@@ -53856,6 +54012,7 @@ Several rows here are seat-operating commands (\`task.create\`, the \`signal.*\`
|
|
|
53856
54012
|
| \`rost_ingest_onboarding_source\` | \`onboarding.source_ingest\` | Retain one bounded encrypted onboarding source for the current implementation run or direct owner setup. | Tenant | Call with one source and its declared kind; use the returned logical source key in setup. |
|
|
53857
54013
|
| \`rost_apply_onboarding_setup\` | \`onboarding.setup\` | Stage one atomic company setup proposal for owner review without making agents live. | Tenant | Submit the complete normalized plan; expect one human confirmation. |
|
|
53858
54014
|
| \`rost_rehearse_onboarding_agents\` | \`onboarding.rehearse\` | Run the setup receipt's exact agents in a run-bound sandbox and return the complete immutable terminal batch plus per-agent evidence. It cannot activate agents, arm schedules, use credentials, mutate sources, send externally, or stage a confirmation. | Tenant | Inspect the live command contract, then pass the exact setup application, expected digest/revision, and idempotency key. A retry returns the same terminal evidence only when configuration is unchanged. |
|
|
54015
|
+
| \`rost_activate_onboarding_agents\` | \`onboarding.activate\` | Stage one complete owner approval for the setup receipt's exact all-passed agent set; approval activates the group and completes onboarding atomically. | Tenant | Pass the terminal batch receipt id plus every per-agent rehearsal run and configuration digest returned by \`onboarding.rehearse\`; expect one approval URL. |
|
|
53859
54016
|
| \`rost_onboard_resume\` | \`onboarding.resume\` | Return the machine-readable onboarding resume state (path choice, pending setup, next step). | Tenant | Call with \`{}\`. |
|
|
53860
54017
|
| \`rost_attach_reference_document\` | \`onboarding.attach_reference\` | Attach a company reference document (text/markdown) with title/kind/source so Compass and Charters can cite it. | Tenant | Call with \`text\`, a \`title\`, a \`kind\`, and a \`source\`. |
|
|
53861
54018
|
| \`rost_upload_org_context\` | \`onboarding.upload_context\` | Back-compat alias of \`onboarding.attach_reference\`. | Tenant | Prefer \`rost_attach_reference_document\`; same widened schema. |
|
|
@@ -57833,6 +57990,7 @@ function parseSemver(value) {
|
|
|
57833
57990
|
|
|
57834
57991
|
// src/commands/onboarding.ts
|
|
57835
57992
|
var REHEARSE_USAGE = `${cliBrand.binName} onboard rehearse --setup-application-id <uuid> --expected-input-digest <sha256:digest> --expected-receipt-revision <integer> --idempotency-key <key> [--json]`;
|
|
57993
|
+
var ACTIVATE_USAGE = `${cliBrand.binName} onboard activate --setup-application-id <uuid> --expected-input-digest <sha256:digest> --expected-receipt-revision <integer> --terminal-rehearsal-batch-receipt-id <uuid> --rehearsal-runs '<json-array>' --configuration-digests '<json-array>' --idempotency-key <key> [--json]`;
|
|
57836
57994
|
var OnboardingUsageError = class extends Error {
|
|
57837
57995
|
constructor(message) {
|
|
57838
57996
|
super(message);
|
|
@@ -57873,14 +58031,19 @@ function parseOnboardingInvocation(args) {
|
|
|
57873
58031
|
action
|
|
57874
58032
|
};
|
|
57875
58033
|
}
|
|
57876
|
-
if (action !== "rehearse") {
|
|
58034
|
+
if (action !== "rehearse" && action !== "activate") {
|
|
57877
58035
|
throw new OnboardingUsageError(`Unknown onboard action: ${action ?? "(missing)"}`);
|
|
57878
58036
|
}
|
|
57879
58037
|
const allowed = /* @__PURE__ */ new Set([
|
|
57880
58038
|
"setup-application-id",
|
|
57881
58039
|
"expected-input-digest",
|
|
57882
58040
|
"expected-receipt-revision",
|
|
57883
|
-
"idempotency-key"
|
|
58041
|
+
"idempotency-key",
|
|
58042
|
+
...action === "activate" ? [
|
|
58043
|
+
"terminal-rehearsal-batch-receipt-id",
|
|
58044
|
+
"rehearsal-runs",
|
|
58045
|
+
"configuration-digests"
|
|
58046
|
+
] : []
|
|
57884
58047
|
]);
|
|
57885
58048
|
const values = /* @__PURE__ */ new Map();
|
|
57886
58049
|
let json2 = false;
|
|
@@ -57925,14 +58088,36 @@ function parseOnboardingInvocation(args) {
|
|
|
57925
58088
|
if (!Number.isSafeInteger(expectedReceiptRevision) || expectedReceiptRevision <= 0) {
|
|
57926
58089
|
throw new OnboardingUsageError("--expected-receipt-revision must be a positive integer.");
|
|
57927
58090
|
}
|
|
58091
|
+
const sharedBody = {
|
|
58092
|
+
setup_application_id: setupApplicationId,
|
|
58093
|
+
expected_input_digest: expectedInputDigest,
|
|
58094
|
+
expected_receipt_revision: expectedReceiptRevision,
|
|
58095
|
+
idempotency_key: idempotencyKey
|
|
58096
|
+
};
|
|
58097
|
+
if (action === "activate") {
|
|
58098
|
+
return {
|
|
58099
|
+
commandId: "onboarding.activate",
|
|
58100
|
+
body: {
|
|
58101
|
+
...sharedBody,
|
|
58102
|
+
terminal_rehearsal_batch_receipt_id: requiredValue2(
|
|
58103
|
+
"terminal-rehearsal-batch-receipt-id"
|
|
58104
|
+
),
|
|
58105
|
+
rehearsal_runs: parseJsonArrayFlag(
|
|
58106
|
+
"rehearsal-runs",
|
|
58107
|
+
requiredValue2("rehearsal-runs")
|
|
58108
|
+
),
|
|
58109
|
+
configuration_digests: parseJsonArrayFlag(
|
|
58110
|
+
"configuration-digests",
|
|
58111
|
+
requiredValue2("configuration-digests")
|
|
58112
|
+
)
|
|
58113
|
+
},
|
|
58114
|
+
json: json2,
|
|
58115
|
+
action
|
|
58116
|
+
};
|
|
58117
|
+
}
|
|
57928
58118
|
return {
|
|
57929
58119
|
commandId: "onboarding.rehearse",
|
|
57930
|
-
body:
|
|
57931
|
-
setup_application_id: setupApplicationId,
|
|
57932
|
-
expected_input_digest: expectedInputDigest,
|
|
57933
|
-
expected_receipt_revision: expectedReceiptRevision,
|
|
57934
|
-
idempotency_key: idempotencyKey
|
|
57935
|
-
},
|
|
58120
|
+
body: sharedBody,
|
|
57936
58121
|
json: json2,
|
|
57937
58122
|
action
|
|
57938
58123
|
};
|
|
@@ -57940,19 +58125,55 @@ function parseOnboardingInvocation(args) {
|
|
|
57940
58125
|
function onboardingUsage() {
|
|
57941
58126
|
return [
|
|
57942
58127
|
`Usage: ${cliBrand.binName} onboard status|resume [--json]`,
|
|
57943
|
-
` ${REHEARSE_USAGE}
|
|
58128
|
+
` ${REHEARSE_USAGE}`,
|
|
58129
|
+
` ${ACTIVATE_USAGE}`
|
|
57944
58130
|
].join("\n");
|
|
57945
58131
|
}
|
|
57946
58132
|
function formatOnboardingOutput(action, output) {
|
|
57947
58133
|
if (action === "rehearse") {
|
|
57948
58134
|
return formatRehearsalOutput(output);
|
|
57949
58135
|
}
|
|
58136
|
+
if (action === "activate") {
|
|
58137
|
+
return formatActivationOutput(output);
|
|
58138
|
+
}
|
|
57950
58139
|
const record2 = typeof output === "object" && output !== null ? output : {};
|
|
57951
58140
|
if (typeof record2.summary === "string") {
|
|
57952
58141
|
return record2.summary;
|
|
57953
58142
|
}
|
|
57954
58143
|
return JSON.stringify(output, null, 2);
|
|
57955
58144
|
}
|
|
58145
|
+
function parseJsonArrayFlag(flag, value) {
|
|
58146
|
+
try {
|
|
58147
|
+
const parsed = JSON.parse(value);
|
|
58148
|
+
if (!Array.isArray(parsed)) {
|
|
58149
|
+
throw new Error("not an array");
|
|
58150
|
+
}
|
|
58151
|
+
return parsed;
|
|
58152
|
+
} catch {
|
|
58153
|
+
throw new OnboardingUsageError(`--${flag} must be a valid JSON array.`);
|
|
58154
|
+
}
|
|
58155
|
+
}
|
|
58156
|
+
function formatActivationOutput(output) {
|
|
58157
|
+
const record2 = asRecord(output);
|
|
58158
|
+
const approveVia = asRecord(record2.approveVia);
|
|
58159
|
+
if (typeof approveVia.webUrl === "string") {
|
|
58160
|
+
return [
|
|
58161
|
+
"Onboarding activation approval is ready.",
|
|
58162
|
+
`Approve once: ${approveVia.webUrl}`
|
|
58163
|
+
].join("\n");
|
|
58164
|
+
}
|
|
58165
|
+
const receipt = asRecord(record2.receipt);
|
|
58166
|
+
const agents = Array.isArray(receipt.agents) ? receipt.agents : [];
|
|
58167
|
+
if (record2.status === "activated") {
|
|
58168
|
+
return [
|
|
58169
|
+
"Onboarding activation completed.",
|
|
58170
|
+
`Activation receipt: ${field(receipt, "activation_receipt_id")}`,
|
|
58171
|
+
`Agents live: ${agents.length} of ${agents.length}`,
|
|
58172
|
+
`Onboarding completed: ${field(receipt, "onboarding_completed_at")}`
|
|
58173
|
+
].join("\n");
|
|
58174
|
+
}
|
|
58175
|
+
return JSON.stringify(output, null, 2);
|
|
58176
|
+
}
|
|
57956
58177
|
function formatRehearsalOutput(output) {
|
|
57957
58178
|
const record2 = asRecord(output);
|
|
57958
58179
|
if (record2.status === "in_progress") {
|
|
@@ -58416,6 +58637,7 @@ var COMMAND_MANIFEST = [
|
|
|
58416
58637
|
{ "id": "notification.settings.get", "namespace": "notification", "action": "settings.get", "title": "Get notification settings", "description": "Read tenant notification preferences (escalations, Sync brief, default channel).", "requiredScope": "tenant", "confirmation": "none", "exposeOverMcp": true, "fields": [], "hasComplexInput": false, "help": "Read notification preferences before changing escalation or Sync brief delivery." },
|
|
58417
58638
|
{ "id": "notification.settings.update", "namespace": "notification", "action": "settings.update", "title": "Update notification settings", "description": "Update tenant notification preferences.", "requiredScope": "tenant", "confirmation": "none", "exposeOverMcp": true, "fields": [{ "name": "escalations_enabled", "flag": "escalations-enabled", "type": "boolean", "required": false }, { "name": "sync_brief_enabled", "flag": "sync-brief-enabled", "type": "boolean", "required": false }, { "name": "default_channel", "flag": "default-channel", "type": "enum", "required": false, "enumValues": ["slack", "email", "in_app"] }], "hasComplexInput": false, "help": "Update notification preferences for escalations, Sync briefs, and the default channel." },
|
|
58418
58639
|
{ "id": "notification.test", "namespace": "notification", "action": "test", "title": "Send test notification", "description": "Emit an in-app test notification to the acting human to verify delivery is wired.", "requiredScope": "tenant", "confirmation": "none", "exposeOverMcp": true, "fields": [], "hasComplexInput": false, "help": "Send an in-app test notification to confirm the delivery path is wired." },
|
|
58640
|
+
{ "id": "onboarding.activate", "namespace": "onboarding", "action": "activate", "title": "Activate onboarding agents", "description": "Stage one owner approval to activate every agent in an applied onboarding receipt and complete onboarding atomically.", "requiredScope": "tenant", "confirmation": "human_required", "exposeOverMcp": true, "fields": [{ "name": "idempotency_key", "flag": "idempotency-key", "type": "string", "required": true }, { "name": "setup_application_id", "flag": "setup-application-id", "type": "string", "required": true }, { "name": "expected_input_digest", "flag": "expected-input-digest", "type": "string", "required": true }, { "name": "expected_receipt_revision", "flag": "expected-receipt-revision", "type": "integer", "required": true }, { "name": "terminal_rehearsal_batch_receipt_id", "flag": "terminal-rehearsal-batch-receipt-id", "type": "string", "required": true }], "hasComplexInput": true, "help": "After a terminal all-passed onboarding rehearsal, submit its exact batch receipt, per-agent run IDs, and configuration digests. One owner approval activates the entire group and completes onboarding atomically." },
|
|
58419
58641
|
{ "id": "onboarding.advance_step", "namespace": "onboarding", "action": "advance_step", "title": "Advance onboarding step", "description": "Persist the current onboarding step after server-side validation.", "requiredScope": "tenant", "confirmation": "none", "exposeOverMcp": true, "fields": [{ "name": "step", "flag": "step", "type": "string", "required": true }, { "name": "completed", "flag": "completed", "type": "boolean", "required": false }], "hasComplexInput": true, "help": "Advance onboarding only after the current setup step is represented in the tenant state." },
|
|
58420
58642
|
{ "id": "onboarding.attach_reference", "namespace": "onboarding", "action": "attach_reference", "title": "Attach reference document", "description": "Attach a company reference document (text/markdown) so Compass and Charters can cite it. Reference-only \u2014 it does not build a Compass; convert each meaningful doc to markdown and attach it with a title, kind, and source.", "requiredScope": "tenant", "confirmation": "none", "exposeOverMcp": true, "fields": [{ "name": "text", "flag": "text", "type": "string", "required": true }, { "name": "filename", "flag": "filename", "type": "string", "required": false }, { "name": "mime_type", "flag": "mime-type", "type": "enum", "required": false, "enumValues": ["text/plain", "text/markdown", "text/csv"] }, { "name": "title", "flag": "title", "type": "string", "required": false }, { "name": "kind", "flag": "kind", "type": "enum", "required": false, "enumValues": ["plan", "financial", "org_chart", "process"] }, { "name": "source", "flag": "source", "type": "string", "required": false }], "hasComplexInput": false, "help": "Convert each meaningful company doc to markdown and attach it as a reference (title, kind, source) so Compass and Charters can cite it; this attaches a reference, it does not build a Compass \u2014 author Compass directly.", "example": { "text": "# Company handbook\n\nWe build precision components for the aerospace supply chain.", "filename": "handbook.md", "mime_type": "text/markdown", "title": "Company handbook", "kind": "plan", "source": "handbook/overview.md" } },
|
|
58421
58643
|
{ "id": "onboarding.create_invite", "namespace": "onboarding", "action": "create_invite", "title": "Create onboarding invite", "description": "Create a pending invite for an onboarding team member.", "requiredScope": "tenant", "confirmation": "none", "exposeOverMcp": true, "fields": [{ "name": "email", "flag": "email", "type": "string", "required": true }, { "name": "role", "flag": "role", "type": "enum", "required": false, "enumValues": ["owner", "admin", "steward", "member"] }], "hasComplexInput": true, "help": "Invites should give humans access to the company without assigning work directly to people instead of seats." },
|
|
@@ -67512,7 +67734,7 @@ async function main(argv = process.argv.slice(2), options = {}) {
|
|
|
67512
67734
|
allowDevelopmentAppUrl: process.env[allowInsecureAppUrlEnv] === "1"
|
|
67513
67735
|
});
|
|
67514
67736
|
}
|
|
67515
|
-
if (command === "onboard" && (args[0] === "status" || args[0] === "resume" || args[0] === "rehearse")) {
|
|
67737
|
+
if (command === "onboard" && (args[0] === "status" || args[0] === "resume" || args[0] === "rehearse" || args[0] === "activate")) {
|
|
67516
67738
|
let implCredential = null;
|
|
67517
67739
|
try {
|
|
67518
67740
|
implCredential = await createImplementationCredentialStore().read();
|