@burdenoff/microfe-botmanor 2026.1201.2 → 2026.1202.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/botlit/BotmanorRootInner.js +2 -1
  2. package/dist/botlit/BotmanorRootInner.js.map +1 -1
  3. package/dist/botlit/components/GettingStartedChecklist.js +1 -1
  4. package/dist/botlit/components/GettingStartedChecklist.js.map +1 -1
  5. package/dist/botlit/components/StewardApprovalsInbox.d.ts +4 -0
  6. package/dist/botlit/components/StewardApprovalsInbox.js +419 -0
  7. package/dist/botlit/components/StewardApprovalsInbox.js.map +1 -0
  8. package/dist/botlit/hooks/useAgentApprovals.js +28 -17
  9. package/dist/botlit/hooks/useAgentApprovals.js.map +1 -1
  10. package/dist/botlit/hooks/useBotAgents.js +15 -11
  11. package/dist/botlit/hooks/useBotAgents.js.map +1 -1
  12. package/dist/botlit/hooks/useBots.js +36 -62
  13. package/dist/botlit/hooks/useBots.js.map +1 -1
  14. package/dist/botlit/hooks/useBuckets.js +31 -24
  15. package/dist/botlit/hooks/useBuckets.js.map +1 -1
  16. package/dist/botlit/hooks/useChannels.js +44 -30
  17. package/dist/botlit/hooks/useChannels.js.map +1 -1
  18. package/dist/botlit/hooks/useLLMProviders.js +8 -6
  19. package/dist/botlit/hooks/useLLMProviders.js.map +1 -1
  20. package/dist/botlit/hooks/useMCPServers.js +21 -17
  21. package/dist/botlit/hooks/useMCPServers.js.map +1 -1
  22. package/dist/botlit/hooks/usePromptTemplates.js +5 -3
  23. package/dist/botlit/hooks/usePromptTemplates.js.map +1 -1
  24. package/dist/botlit/hooks/useStorePublishing.js +20 -10
  25. package/dist/botlit/hooks/useStorePublishing.js.map +1 -1
  26. package/dist/botlit/hooks/useTemplates.js +35 -29
  27. package/dist/botlit/hooks/useTemplates.js.map +1 -1
  28. package/dist/botlit/hooks/useToolApprovals.d.ts +38 -5
  29. package/dist/botlit/hooks/useToolApprovals.js +50 -31
  30. package/dist/botlit/hooks/useToolApprovals.js.map +1 -1
  31. package/dist/botlit/pages/ToolApprovalsPage.js +125 -106
  32. package/dist/botlit/pages/ToolApprovalsPage.js.map +1 -1
  33. package/dist/botlit/permissions/botmanorPermissions.d.ts +1 -0
  34. package/dist/botlit/permissions/botmanorPermissions.js +1 -0
  35. package/dist/botlit/permissions/botmanorPermissions.js.map +1 -1
  36. package/dist/botlit/utils/stewardApprovals.d.ts +80 -0
  37. package/dist/botlit/utils/stewardApprovals.js +90 -0
  38. package/dist/botlit/utils/stewardApprovals.js.map +1 -0
  39. package/dist/generated/global-types.d.ts +7580 -811
  40. package/dist/generated/global-types.js.map +1 -1
  41. package/dist/generated/wspace-operations.d.ts +522 -3
  42. package/dist/generated/wspace-operations.js +281 -15
  43. package/dist/generated/wspace-operations.js.map +1 -1
  44. package/dist/generated/wspace-types.d.ts +9369 -61
  45. package/dist/generated/wspace-types.js.map +1 -1
  46. package/package.json +1 -1
@@ -0,0 +1,80 @@
1
+ /**
2
+ * Steward approval helpers (BOFF-16146 C3.3)
3
+ * @module botlit/utils
4
+ *
5
+ * Pure logic behind the Steward side of the approvals inbox: which approval
6
+ * scopes a reviewer may be offered for a request, how scopes read in plain
7
+ * words, and which fixed defaults can never become a standing rule. The service
8
+ * enforces every one of these rules again in `decideBotmanorToolApproval`; the
9
+ * UI only avoids offering a choice the service would refuse.
10
+ */
11
+ export type ApprovalScope = 'ONCE' | 'RUN' | 'DUTY' | 'TIME_LIMITED' | 'STANDING';
12
+ /** Scopes in the order a reviewer sees them, narrowest first. */
13
+ export declare const APPROVAL_SCOPES: readonly ApprovalScope[];
14
+ /** Days a rule created by a scope lasts (the service sets these). */
15
+ export declare const RULE_SCOPE_DAYS: Readonly<Partial<Record<ApprovalScope, number>>>;
16
+ /** Fixed defaults: calls that always go to a person. */
17
+ export declare const FIXED_DEFAULT_KINDS: readonly ["password-change", "security-setting-change", "payment-entry", "read-one-time-code", "external-message"];
18
+ export interface ScopeSubject {
19
+ /** `STEWARD` for a steward's call, `AGENT_CHAT` for a chat agent's. */
20
+ source?: string | null;
21
+ fixedDefault?: string | null;
22
+ purpose?: string | null;
23
+ riskLevel?: string | null;
24
+ }
25
+ export declare function isRuleScope(scope: ApprovalScope): boolean;
26
+ /**
27
+ * True when the call is a fixed default that can never be waived by a rule.
28
+ * An external message that names a purpose is the one exception: the owner can
29
+ * grant a rule that names that exact recipient and purpose.
30
+ */
31
+ export declare function isNonWaivable(subject: ScopeSubject): boolean;
32
+ /**
33
+ * The scopes a reviewer may pick for a request. Chat-agent requests have no
34
+ * scope at all (an empty list). Non-waivable fixed defaults offer ONCE and RUN
35
+ * only, never a duty, time-limited or standing rule. STANDING is withheld from
36
+ * HIGH-risk (destructive) calls, as the service refuses it there.
37
+ */
38
+ export declare function availableScopes(subject: ScopeSubject): ApprovalScope[];
39
+ /** The scope to preselect: what the steward asked for when it is still allowed, else ONCE. */
40
+ export declare function defaultScope(subject: ScopeSubject, requested?: string | null): ApprovalScope;
41
+ /** Human readable fixed-default names; the key is the service's `fixedDefault` value. */
42
+ export declare const FIXED_DEFAULT_LABELS: Readonly<Record<string, string>>;
43
+ export declare function fixedDefaultLabel(kind: string): string;
44
+ /** Short sha256 prefix for display, e.g. `sha256:3be1a07c…`. */
45
+ export declare function shortHash(hash?: string | null): string | null;
46
+ /** The note a DENY decision needs; approving needs none. */
47
+ export declare function decisionNeedsNote(decision: 'APPROVE' | 'DENY', note: string): boolean;
48
+ export interface SourceCounts {
49
+ all: number;
50
+ agentChat: number;
51
+ steward: number;
52
+ }
53
+ export declare function countBySource(rows: ReadonlyArray<{
54
+ source?: string | null;
55
+ }>): SourceCounts;
56
+ export interface ArgumentLine {
57
+ key: string;
58
+ value: string;
59
+ }
60
+ /**
61
+ * The call's arguments as `key: value` lines for the preview. Long values are
62
+ * cut with their length shown, so a reviewer sees the shape without a wall of
63
+ * text. The text is always rendered as text, never as markup.
64
+ */
65
+ export declare function argumentLines(args: unknown): ArgumentLine[];
66
+ /** Distinct stewards among the rows, for the steward filter (agent name labels them). */
67
+ export declare function stewardOptions(rows: ReadonlyArray<{
68
+ source?: string | null;
69
+ stewardId?: string | null;
70
+ agentName?: string | null;
71
+ agentId: string;
72
+ }>): Array<{
73
+ id: string;
74
+ label: string;
75
+ }>;
76
+ /**
77
+ * Time left until a request expires, in the compact form the inbox shows:
78
+ * `41 min`, `2 h 05 min`, `3 d`. Returns `expired` once the time has passed.
79
+ */
80
+ export declare function timeLeft(expiresAt: string, now?: number): string;
@@ -0,0 +1,90 @@
1
+ // src/botlit/utils/stewardApprovals.ts
2
+ var e = [
3
+ "ONCE",
4
+ "RUN",
5
+ "DUTY",
6
+ "TIME_LIMITED",
7
+ "STANDING"
8
+ ], t = /* @__PURE__ */ new Set([
9
+ "DUTY",
10
+ "TIME_LIMITED",
11
+ "STANDING"
12
+ ]), n = {
13
+ TIME_LIMITED: 7,
14
+ STANDING: 90
15
+ };
16
+ function r(e) {
17
+ return t.has(e);
18
+ }
19
+ function i(e) {
20
+ return e.fixedDefault ? e.fixedDefault !== "external-message" || !e.purpose?.trim() : !1;
21
+ }
22
+ function a(t) {
23
+ return t.source === "STEWARD" ? t.fixedDefault && i(t) ? e.filter((e) => !r(e)) : e.filter((e) => e !== "STANDING" || t.riskLevel !== "HIGH") : [];
24
+ }
25
+ function o(e, t) {
26
+ return a(e).find((e) => e === t) ?? "ONCE";
27
+ }
28
+ var s = {
29
+ "password-change": "Password change",
30
+ "security-setting-change": "Security setting change",
31
+ "payment-entry": "Payment entry",
32
+ "read-one-time-code": "One-time code read",
33
+ "external-message": "Message outside the workspace"
34
+ };
35
+ function c(e) {
36
+ return s[e] ?? e;
37
+ }
38
+ function l(e) {
39
+ return e ? `sha256:${e.slice(0, 8)}…` : null;
40
+ }
41
+ function u(e, t) {
42
+ return e === "DENY" && t.trim().length === 0;
43
+ }
44
+ function d(e) {
45
+ let t = e.filter((e) => e.source === "STEWARD").length;
46
+ return {
47
+ all: e.length,
48
+ steward: t,
49
+ agentChat: e.length - t
50
+ };
51
+ }
52
+ var f = 160;
53
+ function p(e) {
54
+ if (typeof e == "string") return e.length > f ? `${e.slice(0, f)}… (${e.length} chars)` : e;
55
+ try {
56
+ let t = JSON.stringify(e);
57
+ return t === void 0 ? String(e) : t.length > f ? `${t.slice(0, f)}… (${t.length} chars)` : t;
58
+ } catch {
59
+ return String(e);
60
+ }
61
+ }
62
+ function m(e) {
63
+ return typeof e != "object" || !e || Array.isArray(e) ? e == null ? [] : [{
64
+ key: "arguments",
65
+ value: p(e)
66
+ }] : Object.entries(e).map(([e, t]) => ({
67
+ key: e,
68
+ value: p(t)
69
+ }));
70
+ }
71
+ function h(e) {
72
+ let t = /* @__PURE__ */ new Map();
73
+ for (let n of e) n.source === "STEWARD" && n.stewardId && !t.has(n.stewardId) && t.set(n.stewardId, n.agentName ?? n.agentId);
74
+ return [...t].map(([e, t]) => ({
75
+ id: e,
76
+ label: t
77
+ }));
78
+ }
79
+ function g(e, t = Date.now()) {
80
+ let n = new Date(e).getTime() - t;
81
+ if (Number.isNaN(n)) return "";
82
+ if (n <= 0) return "expired";
83
+ let r = Math.max(1, Math.round(n / 6e4));
84
+ if (r < 60) return `${r} min`;
85
+ let i = Math.floor(r / 60);
86
+ return i < 24 ? `${i} h ${String(r % 60).padStart(2, "0")} min` : `${Math.floor(i / 24)} d`;
87
+ }
88
+ export { e as APPROVAL_SCOPES, s as FIXED_DEFAULT_LABELS, n as RULE_SCOPE_DAYS, m as argumentLines, a as availableScopes, d as countBySource, u as decisionNeedsNote, o as defaultScope, c as fixedDefaultLabel, i as isNonWaivable, r as isRuleScope, l as shortHash, h as stewardOptions, g as timeLeft };
89
+
90
+ //# sourceMappingURL=stewardApprovals.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stewardApprovals.js","names":["APPROVAL_SCOPES","RULE_SCOPES","RULE_SCOPE_DAYS","isRuleScope","scope","isNonWaivable","subject","availableScopes","defaultScope","requested","FIXED_DEFAULT_LABELS","fixedDefaultLabel","kind","shortHash","hash","decisionNeedsNote","decision","note","countBySource","steward","rows","row","MAX_ARGUMENT_CHARS","argumentValue","value","text","argumentLines","args","key","stewardOptions","seen","id","label","timeLeft","ms","expiresAt","now","minutes","hours"],"sources":["../../../src/botlit/utils/stewardApprovals.ts"],"sourcesContent":["/**\n * Steward approval helpers (BOFF-16146 C3.3)\n * @module botlit/utils\n *\n * Pure logic behind the Steward side of the approvals inbox: which approval\n * scopes a reviewer may be offered for a request, how scopes read in plain\n * words, and which fixed defaults can never become a standing rule. The service\n * enforces every one of these rules again in `decideBotmanorToolApproval`; the\n * UI only avoids offering a choice the service would refuse.\n */\n\nexport type ApprovalScope = 'ONCE' | 'RUN' | 'DUTY' | 'TIME_LIMITED' | 'STANDING';\n\n/** Scopes in the order a reviewer sees them, narrowest first. */\nexport const APPROVAL_SCOPES: readonly ApprovalScope[] = [\n 'ONCE',\n 'RUN',\n 'DUTY',\n 'TIME_LIMITED',\n 'STANDING',\n];\n\n/** Scopes that create a standing approval rule instead of covering one run. */\nconst RULE_SCOPES: ReadonlySet<ApprovalScope> = new Set(['DUTY', 'TIME_LIMITED', 'STANDING']);\n\n/** Days a rule created by a scope lasts (the service sets these). */\nexport const RULE_SCOPE_DAYS: Readonly<Partial<Record<ApprovalScope, number>>> = {\n TIME_LIMITED: 7,\n STANDING: 90,\n};\n\n/** Fixed defaults: calls that always go to a person. */\nexport const FIXED_DEFAULT_KINDS = [\n 'password-change',\n 'security-setting-change',\n 'payment-entry',\n 'read-one-time-code',\n 'external-message',\n] as const;\n\nexport interface ScopeSubject {\n /** `STEWARD` for a steward's call, `AGENT_CHAT` for a chat agent's. */\n source?: string | null;\n fixedDefault?: string | null;\n purpose?: string | null;\n riskLevel?: string | null;\n}\n\nexport function isRuleScope(scope: ApprovalScope): boolean {\n return RULE_SCOPES.has(scope);\n}\n\n/**\n * True when the call is a fixed default that can never be waived by a rule.\n * An external message that names a purpose is the one exception: the owner can\n * grant a rule that names that exact recipient and purpose.\n */\nexport function isNonWaivable(subject: ScopeSubject): boolean {\n if (!subject.fixedDefault) return false;\n if (subject.fixedDefault === 'external-message') return !subject.purpose?.trim();\n return true;\n}\n\n/**\n * The scopes a reviewer may pick for a request. Chat-agent requests have no\n * scope at all (an empty list). Non-waivable fixed defaults offer ONCE and RUN\n * only, never a duty, time-limited or standing rule. STANDING is withheld from\n * HIGH-risk (destructive) calls, as the service refuses it there.\n */\nexport function availableScopes(subject: ScopeSubject): ApprovalScope[] {\n if (subject.source !== 'STEWARD') return [];\n if (subject.fixedDefault && isNonWaivable(subject)) {\n return APPROVAL_SCOPES.filter((scope) => !isRuleScope(scope));\n }\n return APPROVAL_SCOPES.filter((scope) => !(scope === 'STANDING' && subject.riskLevel === 'HIGH'));\n}\n\n/** The scope to preselect: what the steward asked for when it is still allowed, else ONCE. */\nexport function defaultScope(subject: ScopeSubject, requested?: string | null): ApprovalScope {\n const allowed = availableScopes(subject);\n const match = allowed.find((scope) => scope === requested);\n return match ?? 'ONCE';\n}\n\n/** Human readable fixed-default names; the key is the service's `fixedDefault` value. */\nexport const FIXED_DEFAULT_LABELS: Readonly<Record<string, string>> = {\n 'password-change': 'Password change',\n 'security-setting-change': 'Security setting change',\n 'payment-entry': 'Payment entry',\n 'read-one-time-code': 'One-time code read',\n 'external-message': 'Message outside the workspace',\n};\n\nexport function fixedDefaultLabel(kind: string): string {\n return FIXED_DEFAULT_LABELS[kind] ?? kind;\n}\n\n/** Short sha256 prefix for display, e.g. `sha256:3be1a07c…`. */\nexport function shortHash(hash?: string | null): string | null {\n if (!hash) return null;\n return `sha256:${hash.slice(0, 8)}…`;\n}\n\n/** The note a DENY decision needs; approving needs none. */\nexport function decisionNeedsNote(decision: 'APPROVE' | 'DENY', note: string): boolean {\n return decision === 'DENY' && note.trim().length === 0;\n}\n\nexport interface SourceCounts {\n all: number;\n agentChat: number;\n steward: number;\n}\n\nexport function countBySource(rows: ReadonlyArray<{ source?: string | null }>): SourceCounts {\n const steward = rows.filter((row) => row.source === 'STEWARD').length;\n return { all: rows.length, steward, agentChat: rows.length - steward };\n}\n\nexport interface ArgumentLine {\n key: string;\n value: string;\n}\n\nconst MAX_ARGUMENT_CHARS = 160;\n\nfunction argumentValue(value: unknown): string {\n if (typeof value === 'string') {\n return value.length > MAX_ARGUMENT_CHARS\n ? `${value.slice(0, MAX_ARGUMENT_CHARS)}… (${value.length} chars)`\n : value;\n }\n try {\n const text = JSON.stringify(value);\n if (text === undefined) return String(value);\n return text.length > MAX_ARGUMENT_CHARS\n ? `${text.slice(0, MAX_ARGUMENT_CHARS)}… (${text.length} chars)`\n : text;\n } catch {\n return String(value);\n }\n}\n\n/**\n * The call's arguments as `key: value` lines for the preview. Long values are\n * cut with their length shown, so a reviewer sees the shape without a wall of\n * text. The text is always rendered as text, never as markup.\n */\nexport function argumentLines(args: unknown): ArgumentLine[] {\n if (args === null || typeof args !== 'object' || Array.isArray(args)) {\n return args === undefined || args === null\n ? []\n : [{ key: 'arguments', value: argumentValue(args) }];\n }\n return Object.entries(args as Record<string, unknown>).map(([key, value]) => ({\n key,\n value: argumentValue(value),\n }));\n}\n\n/** Distinct stewards among the rows, for the steward filter (agent name labels them). */\nexport function stewardOptions(\n rows: ReadonlyArray<{\n source?: string | null;\n stewardId?: string | null;\n agentName?: string | null;\n agentId: string;\n }>\n): Array<{ id: string; label: string }> {\n const seen = new Map<string, string>();\n for (const row of rows) {\n if (row.source !== 'STEWARD' || !row.stewardId || seen.has(row.stewardId)) continue;\n seen.set(row.stewardId, row.agentName ?? row.agentId);\n }\n return [...seen].map(([id, label]) => ({ id, label }));\n}\n\n/**\n * Time left until a request expires, in the compact form the inbox shows:\n * `41 min`, `2 h 05 min`, `3 d`. Returns `expired` once the time has passed.\n */\nexport function timeLeft(expiresAt: string, now: number = Date.now()): string {\n const ms = new Date(expiresAt).getTime() - now;\n if (Number.isNaN(ms)) return '';\n if (ms <= 0) return 'expired';\n const minutes = Math.max(1, Math.round(ms / 60_000));\n if (minutes < 60) return `${minutes} min`;\n const hours = Math.floor(minutes / 60);\n if (hours < 24) return `${hours} h ${String(minutes % 60).padStart(2, '0')} min`;\n return `${Math.floor(hours / 24)} d`;\n}\n"],"mappings":";AAcA,IAAaA,IAA4C;CACvD;CACA;CACA;CACA;CACA;AACF,GAGMC,oBAA0C,IAAI,IAAI;CAAC;CAAQ;CAAgB;AAAU,CAAC,GAG/EC,IAAoE;CAC/E,cAAc;CACd,UAAU;AACZ;AAmBA,SAAgBC,EAAY,GAA+B;CACzD,OAAOF,EAAY,IAAIG,CAAK;AAC9B;AAOA,SAAgBC,EAAc,GAAgC;CAG5D,OAFKC,EAAQ,eACTA,EAAQ,iBAAiB,sBAA2B,CAACA,EAAQ,SAAS,KAAK,IAD7C;AAGpC;AAQA,SAAgBC,EAAgB,GAAwC;CAKtE,OAJID,EAAQ,WAAW,YACnBA,EAAQ,gBAAgBD,EAAcC,CAAO,IACxCN,EAAgB,QAAQ,MAAU,CAACG,EAAYC,CAAK,CAAC,IAEvDJ,EAAgB,QAAQ,MAAYI,MAAU,cAAcE,EAAQ,cAAc,MAAO,IAJvD,CAAC;AAK5C;AAGA,SAAgBE,EAAa,GAAuB,GAA0C;CAG5F,OAFgBD,EAAgBD,CAClB,CAAA,CAAQ,MAAM,MAAUF,MAAUK,CACzC,KAAS;AAClB;AAGA,IAAaC,IAAyD;CACpE,mBAAmB;CACnB,2BAA2B;CAC3B,iBAAiB;CACjB,sBAAsB;CACtB,oBAAoB;AACtB;AAEA,SAAgBC,EAAkB,GAAsB;CACtD,OAAOD,EAAqBE,MAASA;AACvC;AAGA,SAAgBC,EAAU,GAAqC;CAE7D,OADKC,IACE,UAAUA,EAAK,MAAM,GAAG,CAAC,EAAE,KADhB;AAEpB;AAGA,SAAgBC,EAAkB,GAA8B,GAAuB;CACrF,OAAOC,MAAa,UAAUC,EAAK,KAAK,CAAC,CAAC,WAAW;AACvD;AAQA,SAAgBC,EAAc,GAA+D;CAC3F,IAAMC,IAAUC,EAAK,QA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