@paperclipai/shared 0.3.1 → 2026.3.17-canary.0

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 (104) hide show
  1. package/dist/constants.d.ts +148 -3
  2. package/dist/constants.d.ts.map +1 -1
  3. package/dist/constants.js +352 -2
  4. package/dist/constants.js.map +1 -1
  5. package/dist/index.d.ts +4 -3
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +3 -2
  8. package/dist/index.js.map +1 -1
  9. package/dist/types/agent.d.ts +3 -1
  10. package/dist/types/agent.d.ts.map +1 -1
  11. package/dist/types/budget.d.ts +86 -0
  12. package/dist/types/budget.d.ts.map +1 -0
  13. package/dist/types/budget.js +2 -0
  14. package/dist/types/budget.js.map +1 -0
  15. package/dist/types/company.d.ts +5 -1
  16. package/dist/types/company.d.ts.map +1 -1
  17. package/dist/types/cost.d.ts +71 -0
  18. package/dist/types/cost.d.ts.map +1 -1
  19. package/dist/types/dashboard.d.ts +6 -0
  20. package/dist/types/dashboard.d.ts.map +1 -1
  21. package/dist/types/finance.d.ts +57 -0
  22. package/dist/types/finance.d.ts.map +1 -0
  23. package/dist/types/finance.js +2 -0
  24. package/dist/types/finance.js.map +1 -0
  25. package/dist/types/index.d.ts +11 -4
  26. package/dist/types/index.d.ts.map +1 -1
  27. package/dist/types/instance.d.ts +10 -0
  28. package/dist/types/instance.d.ts.map +1 -0
  29. package/dist/types/instance.js +2 -0
  30. package/dist/types/instance.js.map +1 -0
  31. package/dist/types/issue.d.ts +48 -1
  32. package/dist/types/issue.d.ts.map +1 -1
  33. package/dist/types/plugin.d.ts +419 -0
  34. package/dist/types/plugin.d.ts.map +1 -0
  35. package/dist/types/plugin.js +2 -0
  36. package/dist/types/plugin.js.map +1 -0
  37. package/dist/types/project.d.ts +26 -1
  38. package/dist/types/project.d.ts.map +1 -1
  39. package/dist/types/quota.d.ts +26 -0
  40. package/dist/types/quota.d.ts.map +1 -0
  41. package/dist/types/quota.js +2 -0
  42. package/dist/types/quota.js.map +1 -0
  43. package/dist/types/work-product.d.ts +27 -0
  44. package/dist/types/work-product.d.ts.map +1 -0
  45. package/dist/types/work-product.js +2 -0
  46. package/dist/types/work-product.js.map +1 -0
  47. package/dist/types/workspace-operation.d.ts +26 -0
  48. package/dist/types/workspace-operation.d.ts.map +1 -0
  49. package/dist/types/workspace-operation.js +2 -0
  50. package/dist/types/workspace-operation.js.map +1 -0
  51. package/dist/types/workspace-runtime.d.ts +35 -3
  52. package/dist/types/workspace-runtime.d.ts.map +1 -1
  53. package/dist/validators/access.d.ts +3 -3
  54. package/dist/validators/agent.d.ts +14 -11
  55. package/dist/validators/agent.d.ts.map +1 -1
  56. package/dist/validators/agent.js +1 -0
  57. package/dist/validators/agent.js.map +1 -1
  58. package/dist/validators/approval.d.ts +3 -3
  59. package/dist/validators/budget.d.ts +56 -0
  60. package/dist/validators/budget.d.ts.map +1 -0
  61. package/dist/validators/budget.js +27 -0
  62. package/dist/validators/budget.js.map +1 -0
  63. package/dist/validators/company-portability.d.ts +144 -144
  64. package/dist/validators/company.d.ts +3 -0
  65. package/dist/validators/company.d.ts.map +1 -1
  66. package/dist/validators/company.js +2 -0
  67. package/dist/validators/company.js.map +1 -1
  68. package/dist/validators/cost.d.ts +45 -1
  69. package/dist/validators/cost.d.ts.map +1 -1
  70. package/dist/validators/cost.js +9 -1
  71. package/dist/validators/cost.js.map +1 -1
  72. package/dist/validators/execution-workspace.d.ts +20 -0
  73. package/dist/validators/execution-workspace.d.ts.map +1 -0
  74. package/dist/validators/execution-workspace.js +15 -0
  75. package/dist/validators/execution-workspace.js.map +1 -0
  76. package/dist/validators/finance.d.ts +129 -0
  77. package/dist/validators/finance.d.ts.map +1 -0
  78. package/dist/validators/finance.js +32 -0
  79. package/dist/validators/finance.js.map +1 -0
  80. package/dist/validators/index.d.ts +7 -1
  81. package/dist/validators/index.d.ts.map +1 -1
  82. package/dist/validators/index.js +7 -1
  83. package/dist/validators/index.js.map +1 -1
  84. package/dist/validators/instance.d.ts +18 -0
  85. package/dist/validators/instance.d.ts.map +1 -0
  86. package/dist/validators/instance.js +6 -0
  87. package/dist/validators/instance.js.map +1 -0
  88. package/dist/validators/issue.d.ts +76 -34
  89. package/dist/validators/issue.d.ts.map +1 -1
  90. package/dist/validators/issue.js +27 -2
  91. package/dist/validators/issue.js.map +1 -1
  92. package/dist/validators/plugin.d.ts +1173 -0
  93. package/dist/validators/plugin.d.ts.map +1 -0
  94. package/dist/validators/plugin.js +547 -0
  95. package/dist/validators/plugin.js.map +1 -0
  96. package/dist/validators/project.d.ts +188 -42
  97. package/dist/validators/project.d.ts.map +1 -1
  98. package/dist/validators/project.js +32 -7
  99. package/dist/validators/project.js.map +1 -1
  100. package/dist/validators/work-product.d.ts +105 -0
  101. package/dist/validators/work-product.d.ts.map +1 -0
  102. package/dist/validators/work-product.js +46 -0
  103. package/dist/validators/work-product.js.map +1 -0
  104. package/package.json +11 -1
@@ -8,7 +8,7 @@ export declare const AUTH_BASE_URL_MODES: readonly ["auto", "explicit"];
8
8
  export type AuthBaseUrlMode = (typeof AUTH_BASE_URL_MODES)[number];
9
9
  export declare const AGENT_STATUSES: readonly ["active", "paused", "idle", "running", "error", "pending_approval", "terminated"];
10
10
  export type AgentStatus = (typeof AGENT_STATUSES)[number];
11
- export declare const AGENT_ADAPTER_TYPES: readonly ["process", "http", "claude_local", "codex_local", "gemini_local", "opencode_local", "pi_local", "cursor", "openclaw_gateway"];
11
+ export declare const AGENT_ADAPTER_TYPES: readonly ["process", "http", "claude_local", "codex_local", "opencode_local", "pi_local", "cursor", "openclaw_gateway", "hermes_local"];
12
12
  export type AgentAdapterType = (typeof AGENT_ADAPTER_TYPES)[number];
13
13
  export declare const AGENT_ROLES: readonly ["ceo", "cto", "cmo", "cfo", "engineer", "designer", "pm", "qa", "devops", "researcher", "general"];
14
14
  export type AgentRole = (typeof AGENT_ROLES)[number];
@@ -25,8 +25,10 @@ export declare const GOAL_STATUSES: readonly ["planned", "active", "achieved", "
25
25
  export type GoalStatus = (typeof GOAL_STATUSES)[number];
26
26
  export declare const PROJECT_STATUSES: readonly ["backlog", "planned", "in_progress", "completed", "cancelled"];
27
27
  export type ProjectStatus = (typeof PROJECT_STATUSES)[number];
28
+ export declare const PAUSE_REASONS: readonly ["manual", "budget", "system"];
29
+ export type PauseReason = (typeof PAUSE_REASONS)[number];
28
30
  export declare const PROJECT_COLORS: readonly ["#6366f1", "#8b5cf6", "#ec4899", "#ef4444", "#f97316", "#eab308", "#22c55e", "#14b8a6", "#06b6d4", "#3b82f6"];
29
- export declare const APPROVAL_TYPES: readonly ["hire_agent", "approve_ceo_strategy"];
31
+ export declare const APPROVAL_TYPES: readonly ["hire_agent", "approve_ceo_strategy", "budget_override_required"];
30
32
  export type ApprovalType = (typeof APPROVAL_TYPES)[number];
31
33
  export declare const APPROVAL_STATUSES: readonly ["pending", "revision_requested", "approved", "rejected", "cancelled"];
32
34
  export type ApprovalStatus = (typeof APPROVAL_STATUSES)[number];
@@ -34,6 +36,26 @@ export declare const SECRET_PROVIDERS: readonly ["local_encrypted", "aws_secrets
34
36
  export type SecretProvider = (typeof SECRET_PROVIDERS)[number];
35
37
  export declare const STORAGE_PROVIDERS: readonly ["local_disk", "s3"];
36
38
  export type StorageProvider = (typeof STORAGE_PROVIDERS)[number];
39
+ export declare const BILLING_TYPES: readonly ["metered_api", "subscription_included", "subscription_overage", "credits", "fixed", "unknown"];
40
+ export type BillingType = (typeof BILLING_TYPES)[number];
41
+ export declare const FINANCE_EVENT_KINDS: readonly ["inference_charge", "platform_fee", "credit_purchase", "credit_refund", "credit_expiry", "byok_fee", "gateway_overhead", "log_storage_charge", "logpush_charge", "provisioned_capacity_charge", "training_charge", "custom_model_import_charge", "custom_model_storage_charge", "manual_adjustment"];
42
+ export type FinanceEventKind = (typeof FINANCE_EVENT_KINDS)[number];
43
+ export declare const FINANCE_DIRECTIONS: readonly ["debit", "credit"];
44
+ export type FinanceDirection = (typeof FINANCE_DIRECTIONS)[number];
45
+ export declare const FINANCE_UNITS: readonly ["input_token", "output_token", "cached_input_token", "request", "credit_usd", "credit_unit", "model_unit_minute", "model_unit_hour", "gb_month", "train_token", "unknown"];
46
+ export type FinanceUnit = (typeof FINANCE_UNITS)[number];
47
+ export declare const BUDGET_SCOPE_TYPES: readonly ["company", "agent", "project"];
48
+ export type BudgetScopeType = (typeof BUDGET_SCOPE_TYPES)[number];
49
+ export declare const BUDGET_METRICS: readonly ["billed_cents"];
50
+ export type BudgetMetric = (typeof BUDGET_METRICS)[number];
51
+ export declare const BUDGET_WINDOW_KINDS: readonly ["calendar_month_utc", "lifetime"];
52
+ export type BudgetWindowKind = (typeof BUDGET_WINDOW_KINDS)[number];
53
+ export declare const BUDGET_THRESHOLD_TYPES: readonly ["soft", "hard"];
54
+ export type BudgetThresholdType = (typeof BUDGET_THRESHOLD_TYPES)[number];
55
+ export declare const BUDGET_INCIDENT_STATUSES: readonly ["open", "resolved", "dismissed"];
56
+ export type BudgetIncidentStatus = (typeof BUDGET_INCIDENT_STATUSES)[number];
57
+ export declare const BUDGET_INCIDENT_RESOLUTION_ACTIONS: readonly ["keep_paused", "raise_budget_and_resume"];
58
+ export type BudgetIncidentResolutionAction = (typeof BUDGET_INCIDENT_RESOLUTION_ACTIONS)[number];
37
59
  export declare const HEARTBEAT_INVOCATION_SOURCES: readonly ["timer", "assignment", "on_demand", "automation"];
38
60
  export type HeartbeatInvocationSource = (typeof HEARTBEAT_INVOCATION_SOURCES)[number];
39
61
  export declare const WAKEUP_TRIGGER_DETAILS: readonly ["manual", "ping", "callback", "system"];
@@ -42,7 +64,7 @@ export declare const WAKEUP_REQUEST_STATUSES: readonly ["queued", "deferred_issu
42
64
  export type WakeupRequestStatus = (typeof WAKEUP_REQUEST_STATUSES)[number];
43
65
  export declare const HEARTBEAT_RUN_STATUSES: readonly ["queued", "running", "succeeded", "failed", "cancelled", "timed_out"];
44
66
  export type HeartbeatRunStatus = (typeof HEARTBEAT_RUN_STATUSES)[number];
45
- export declare const LIVE_EVENT_TYPES: readonly ["heartbeat.run.queued", "heartbeat.run.status", "heartbeat.run.event", "heartbeat.run.log", "agent.status", "activity.logged"];
67
+ export declare const LIVE_EVENT_TYPES: readonly ["heartbeat.run.queued", "heartbeat.run.status", "heartbeat.run.event", "heartbeat.run.log", "agent.status", "activity.logged", "plugin.ui.updated", "plugin.worker.crashed", "plugin.worker.restarted"];
46
68
  export type LiveEventType = (typeof LIVE_EVENT_TYPES)[number];
47
69
  export declare const PRINCIPAL_TYPES: readonly ["user", "agent"];
48
70
  export type PrincipalType = (typeof PRINCIPAL_TYPES)[number];
@@ -60,4 +82,127 @@ export declare const JOIN_REQUEST_STATUSES: readonly ["pending_approval", "appro
60
82
  export type JoinRequestStatus = (typeof JOIN_REQUEST_STATUSES)[number];
61
83
  export declare const PERMISSION_KEYS: readonly ["agents:create", "users:invite", "users:manage_permissions", "tasks:assign", "tasks:assign_scope", "joins:approve"];
62
84
  export type PermissionKey = (typeof PERMISSION_KEYS)[number];
85
+ /**
86
+ * The current version of the Plugin API contract.
87
+ *
88
+ * Increment this value whenever a breaking change is made to the plugin API
89
+ * so that the host can reject incompatible plugin manifests.
90
+ *
91
+ * @see PLUGIN_SPEC.md §4 — Versioning
92
+ */
93
+ export declare const PLUGIN_API_VERSION: 1;
94
+ /**
95
+ * Lifecycle statuses for an installed plugin.
96
+ *
97
+ * State machine: installed → ready | error, ready → disabled | error | upgrade_pending | uninstalled,
98
+ * disabled → ready | uninstalled, error → ready | uninstalled,
99
+ * upgrade_pending → ready | error | uninstalled, uninstalled → installed (reinstall).
100
+ *
101
+ * @see {@link PluginStatus} — inferred union type
102
+ * @see PLUGIN_SPEC.md §21.3 `plugins.status`
103
+ */
104
+ export declare const PLUGIN_STATUSES: readonly ["installed", "ready", "disabled", "error", "upgrade_pending", "uninstalled"];
105
+ export type PluginStatus = (typeof PLUGIN_STATUSES)[number];
106
+ /**
107
+ * Plugin classification categories. A plugin declares one or more categories
108
+ * in its manifest to describe its primary purpose.
109
+ *
110
+ * @see PLUGIN_SPEC.md §6.2
111
+ */
112
+ export declare const PLUGIN_CATEGORIES: readonly ["connector", "workspace", "automation", "ui"];
113
+ export type PluginCategory = (typeof PLUGIN_CATEGORIES)[number];
114
+ /**
115
+ * Named permissions the host grants to a plugin. Plugins declare required
116
+ * capabilities in their manifest; the host enforces them at runtime via the
117
+ * plugin capability validator.
118
+ *
119
+ * Grouped into: Data Read, Data Write, Plugin State, Runtime/Integration,
120
+ * Agent Tools, and UI.
121
+ *
122
+ * @see PLUGIN_SPEC.md §15 — Capability Model
123
+ */
124
+ export declare const PLUGIN_CAPABILITIES: readonly ["companies.read", "projects.read", "project.workspaces.read", "issues.read", "issue.comments.read", "issue.documents.read", "agents.read", "goals.read", "goals.create", "goals.update", "activity.read", "costs.read", "issues.create", "issues.update", "issue.comments.create", "issue.documents.write", "agents.pause", "agents.resume", "agents.invoke", "agent.sessions.create", "agent.sessions.list", "agent.sessions.send", "agent.sessions.close", "activity.log.write", "metrics.write", "plugin.state.read", "plugin.state.write", "events.subscribe", "events.emit", "jobs.schedule", "webhooks.receive", "http.outbound", "secrets.read-ref", "agent.tools.register", "instance.settings.register", "ui.sidebar.register", "ui.page.register", "ui.detailTab.register", "ui.dashboardWidget.register", "ui.commentAnnotation.register", "ui.action.register"];
125
+ export type PluginCapability = (typeof PLUGIN_CAPABILITIES)[number];
126
+ /**
127
+ * UI extension slot types. Each slot type corresponds to a mount point in the
128
+ * Paperclip UI where plugin components can be rendered.
129
+ *
130
+ * @see PLUGIN_SPEC.md §19 — UI Extension Model
131
+ */
132
+ export declare const PLUGIN_UI_SLOT_TYPES: readonly ["page", "detailTab", "taskDetailView", "dashboardWidget", "sidebar", "sidebarPanel", "projectSidebarItem", "globalToolbarButton", "toolbarButton", "contextMenuItem", "commentAnnotation", "commentContextMenuItem", "settingsPage"];
133
+ export type PluginUiSlotType = (typeof PLUGIN_UI_SLOT_TYPES)[number];
134
+ /**
135
+ * Reserved company-scoped route segments that plugin page routes may not claim.
136
+ *
137
+ * These map to first-class host pages under `/:companyPrefix/...`.
138
+ */
139
+ export declare const PLUGIN_RESERVED_COMPANY_ROUTE_SEGMENTS: readonly ["dashboard", "onboarding", "companies", "company", "settings", "plugins", "org", "agents", "projects", "issues", "goals", "approvals", "costs", "activity", "inbox", "design-guide", "tests"];
140
+ export type PluginReservedCompanyRouteSegment = (typeof PLUGIN_RESERVED_COMPANY_ROUTE_SEGMENTS)[number];
141
+ /**
142
+ * Launcher placement zones describe where a plugin-owned launcher can appear
143
+ * in the host UI. These are intentionally aligned with current slot surfaces
144
+ * so manifest authors can describe launch intent without coupling to a single
145
+ * component implementation detail.
146
+ */
147
+ export declare const PLUGIN_LAUNCHER_PLACEMENT_ZONES: readonly ["page", "detailTab", "taskDetailView", "dashboardWidget", "sidebar", "sidebarPanel", "projectSidebarItem", "globalToolbarButton", "toolbarButton", "contextMenuItem", "commentAnnotation", "commentContextMenuItem", "settingsPage"];
148
+ export type PluginLauncherPlacementZone = (typeof PLUGIN_LAUNCHER_PLACEMENT_ZONES)[number];
149
+ /**
150
+ * Launcher action kinds describe what the launcher does when activated.
151
+ */
152
+ export declare const PLUGIN_LAUNCHER_ACTIONS: readonly ["navigate", "openModal", "openDrawer", "openPopover", "performAction", "deepLink"];
153
+ export type PluginLauncherAction = (typeof PLUGIN_LAUNCHER_ACTIONS)[number];
154
+ /**
155
+ * Optional size hints the host can use when rendering plugin-owned launcher
156
+ * destinations such as overlays, drawers, or full page handoffs.
157
+ */
158
+ export declare const PLUGIN_LAUNCHER_BOUNDS: readonly ["inline", "compact", "default", "wide", "full"];
159
+ export type PluginLauncherBounds = (typeof PLUGIN_LAUNCHER_BOUNDS)[number];
160
+ /**
161
+ * Render environments describe the container a launcher expects after it is
162
+ * activated. The current host may map these to concrete UI primitives.
163
+ */
164
+ export declare const PLUGIN_LAUNCHER_RENDER_ENVIRONMENTS: readonly ["hostInline", "hostOverlay", "hostRoute", "external", "iframe"];
165
+ export type PluginLauncherRenderEnvironment = (typeof PLUGIN_LAUNCHER_RENDER_ENVIRONMENTS)[number];
166
+ /**
167
+ * Entity types that a `detailTab` UI slot can attach to.
168
+ *
169
+ * @see PLUGIN_SPEC.md §19.3 — Detail Tabs
170
+ */
171
+ export declare const PLUGIN_UI_SLOT_ENTITY_TYPES: readonly ["project", "issue", "agent", "goal", "run", "comment"];
172
+ export type PluginUiSlotEntityType = (typeof PLUGIN_UI_SLOT_ENTITY_TYPES)[number];
173
+ /**
174
+ * Scope kinds for plugin state storage. Determines the granularity at which
175
+ * a plugin stores key-value state data.
176
+ *
177
+ * @see PLUGIN_SPEC.md §21.3 `plugin_state.scope_kind`
178
+ */
179
+ export declare const PLUGIN_STATE_SCOPE_KINDS: readonly ["instance", "company", "project", "project_workspace", "agent", "issue", "goal", "run"];
180
+ export type PluginStateScopeKind = (typeof PLUGIN_STATE_SCOPE_KINDS)[number];
181
+ /** Statuses for a plugin's scheduled job definition. */
182
+ export declare const PLUGIN_JOB_STATUSES: readonly ["active", "paused", "failed"];
183
+ export type PluginJobStatus = (typeof PLUGIN_JOB_STATUSES)[number];
184
+ /** Statuses for individual job run executions. */
185
+ export declare const PLUGIN_JOB_RUN_STATUSES: readonly ["pending", "queued", "running", "succeeded", "failed", "cancelled"];
186
+ export type PluginJobRunStatus = (typeof PLUGIN_JOB_RUN_STATUSES)[number];
187
+ /** What triggered a particular job run. */
188
+ export declare const PLUGIN_JOB_RUN_TRIGGERS: readonly ["schedule", "manual", "retry"];
189
+ export type PluginJobRunTrigger = (typeof PLUGIN_JOB_RUN_TRIGGERS)[number];
190
+ /** Statuses for inbound webhook deliveries. */
191
+ export declare const PLUGIN_WEBHOOK_DELIVERY_STATUSES: readonly ["pending", "success", "failed"];
192
+ export type PluginWebhookDeliveryStatus = (typeof PLUGIN_WEBHOOK_DELIVERY_STATUSES)[number];
193
+ /**
194
+ * Core domain event types that plugins can subscribe to via the
195
+ * `events.subscribe` capability.
196
+ *
197
+ * @see PLUGIN_SPEC.md §16 — Event System
198
+ */
199
+ export declare const PLUGIN_EVENT_TYPES: readonly ["company.created", "company.updated", "project.created", "project.updated", "project.workspace_created", "project.workspace_updated", "project.workspace_deleted", "issue.created", "issue.updated", "issue.comment.created", "agent.created", "agent.updated", "agent.status_changed", "agent.run.started", "agent.run.finished", "agent.run.failed", "agent.run.cancelled", "goal.created", "goal.updated", "approval.created", "approval.decided", "cost_event.created", "activity.logged"];
200
+ export type PluginEventType = (typeof PLUGIN_EVENT_TYPES)[number];
201
+ /**
202
+ * Error codes returned by the plugin bridge when a UI → worker call fails.
203
+ *
204
+ * @see PLUGIN_SPEC.md §19.7 — Error Propagation Through The Bridge
205
+ */
206
+ export declare const PLUGIN_BRIDGE_ERROR_CODES: readonly ["WORKER_UNAVAILABLE", "CAPABILITY_DENIED", "WORKER_ERROR", "TIMEOUT", "UNKNOWN"];
207
+ export type PluginBridgeErrorCode = (typeof PLUGIN_BRIDGE_ERROR_CODES)[number];
63
208
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,2CAA4C,CAAC;AAC1E,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9D,eAAO,MAAM,gBAAgB,6CAA8C,CAAC;AAC5E,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/D,eAAO,MAAM,oBAAoB,gCAAiC,CAAC;AACnE,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvE,eAAO,MAAM,mBAAmB,+BAAgC,CAAC;AACjE,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnE,eAAO,M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CAAC,MAAM,CAAC,CAAC;AAElF;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,mGAS3B,CAAC;AACX,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7E,wDAAwD;AACxD,eAAO,MAAM,mBAAmB,yCAItB,CAAC;AACX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnE,kDAAkD;AAClD,eAAO,MAAM,uBAAuB,+EAO1B,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1E,2CAA2C;AAC3C,eAAO,MAAM,uBAAuB,0CAI1B,CAAC;AACX,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE3E,+CAA+C;AAC/C,eAAO,MAAM,gCAAgC,2CAInC,CAAC;AACX,MAAM,MAAM,2BAA2B,GAAG,CAAC,OAAO,gCAAgC,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5F;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,0eAwBrB,CAAC;AACX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAElE;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,4FAM5B,CAAC;AACX,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAC"}
package/dist/constants.js CHANGED
@@ -16,11 +16,11 @@ export const AGENT_ADAPTER_TYPES = [
16
16
  "http",
17
17
  "claude_local",
18
18
  "codex_local",
19
- "gemini_local",
20
19
  "opencode_local",
21
20
  "pi_local",
22
21
  "cursor",
23
22
  "openclaw_gateway",
23
+ "hermes_local",
24
24
  ];
25
25
  export const AGENT_ROLES = [
26
26
  "ceo",
@@ -110,6 +110,7 @@ export const PROJECT_STATUSES = [
110
110
  "completed",
111
111
  "cancelled",
112
112
  ];
113
+ export const PAUSE_REASONS = ["manual", "budget", "system"];
113
114
  export const PROJECT_COLORS = [
114
115
  "#6366f1", // indigo
115
116
  "#8b5cf6", // violet
@@ -122,7 +123,7 @@ export const PROJECT_COLORS = [
122
123
  "#06b6d4", // cyan
123
124
  "#3b82f6", // blue
124
125
  ];
125
- export const APPROVAL_TYPES = ["hire_agent", "approve_ceo_strategy"];
126
+ export const APPROVAL_TYPES = ["hire_agent", "approve_ceo_strategy", "budget_override_required"];
126
127
  export const APPROVAL_STATUSES = [
127
128
  "pending",
128
129
  "revision_requested",
@@ -137,6 +138,53 @@ export const SECRET_PROVIDERS = [
137
138
  "vault",
138
139
  ];
139
140
  export const STORAGE_PROVIDERS = ["local_disk", "s3"];
141
+ export const BILLING_TYPES = [
142
+ "metered_api",
143
+ "subscription_included",
144
+ "subscription_overage",
145
+ "credits",
146
+ "fixed",
147
+ "unknown",
148
+ ];
149
+ export const FINANCE_EVENT_KINDS = [
150
+ "inference_charge",
151
+ "platform_fee",
152
+ "credit_purchase",
153
+ "credit_refund",
154
+ "credit_expiry",
155
+ "byok_fee",
156
+ "gateway_overhead",
157
+ "log_storage_charge",
158
+ "logpush_charge",
159
+ "provisioned_capacity_charge",
160
+ "training_charge",
161
+ "custom_model_import_charge",
162
+ "custom_model_storage_charge",
163
+ "manual_adjustment",
164
+ ];
165
+ export const FINANCE_DIRECTIONS = ["debit", "credit"];
166
+ export const FINANCE_UNITS = [
167
+ "input_token",
168
+ "output_token",
169
+ "cached_input_token",
170
+ "request",
171
+ "credit_usd",
172
+ "credit_unit",
173
+ "model_unit_minute",
174
+ "model_unit_hour",
175
+ "gb_month",
176
+ "train_token",
177
+ "unknown",
178
+ ];
179
+ export const BUDGET_SCOPE_TYPES = ["company", "agent", "project"];
180
+ export const BUDGET_METRICS = ["billed_cents"];
181
+ export const BUDGET_WINDOW_KINDS = ["calendar_month_utc", "lifetime"];
182
+ export const BUDGET_THRESHOLD_TYPES = ["soft", "hard"];
183
+ export const BUDGET_INCIDENT_STATUSES = ["open", "resolved", "dismissed"];
184
+ export const BUDGET_INCIDENT_RESOLUTION_ACTIONS = [
185
+ "keep_paused",
186
+ "raise_budget_and_resume",
187
+ ];
140
188
  export const HEARTBEAT_INVOCATION_SOURCES = [
141
189
  "timer",
142
190
  "assignment",
@@ -169,6 +217,9 @@ export const LIVE_EVENT_TYPES = [
169
217
  "heartbeat.run.log",
170
218
  "agent.status",
171
219
  "activity.logged",
220
+ "plugin.ui.updated",
221
+ "plugin.worker.crashed",
222
+ "plugin.worker.restarted",
172
223
  ];
173
224
  export const PRINCIPAL_TYPES = ["user", "agent"];
174
225
  export const MEMBERSHIP_STATUSES = ["pending", "active", "suspended"];
@@ -185,4 +236,303 @@ export const PERMISSION_KEYS = [
185
236
  "tasks:assign_scope",
186
237
  "joins:approve",
187
238
  ];
239
+ // ---------------------------------------------------------------------------
240
+ // Plugin System — see doc/plugins/PLUGIN_SPEC.md for the full specification
241
+ // ---------------------------------------------------------------------------
242
+ /**
243
+ * The current version of the Plugin API contract.
244
+ *
245
+ * Increment this value whenever a breaking change is made to the plugin API
246
+ * so that the host can reject incompatible plugin manifests.
247
+ *
248
+ * @see PLUGIN_SPEC.md §4 — Versioning
249
+ */
250
+ export const PLUGIN_API_VERSION = 1;
251
+ /**
252
+ * Lifecycle statuses for an installed plugin.
253
+ *
254
+ * State machine: installed → ready | error, ready → disabled | error | upgrade_pending | uninstalled,
255
+ * disabled → ready | uninstalled, error → ready | uninstalled,
256
+ * upgrade_pending → ready | error | uninstalled, uninstalled → installed (reinstall).
257
+ *
258
+ * @see {@link PluginStatus} — inferred union type
259
+ * @see PLUGIN_SPEC.md §21.3 `plugins.status`
260
+ */
261
+ export const PLUGIN_STATUSES = [
262
+ "installed",
263
+ "ready",
264
+ "disabled",
265
+ "error",
266
+ "upgrade_pending",
267
+ "uninstalled",
268
+ ];
269
+ /**
270
+ * Plugin classification categories. A plugin declares one or more categories
271
+ * in its manifest to describe its primary purpose.
272
+ *
273
+ * @see PLUGIN_SPEC.md §6.2
274
+ */
275
+ export const PLUGIN_CATEGORIES = [
276
+ "connector",
277
+ "workspace",
278
+ "automation",
279
+ "ui",
280
+ ];
281
+ /**
282
+ * Named permissions the host grants to a plugin. Plugins declare required
283
+ * capabilities in their manifest; the host enforces them at runtime via the
284
+ * plugin capability validator.
285
+ *
286
+ * Grouped into: Data Read, Data Write, Plugin State, Runtime/Integration,
287
+ * Agent Tools, and UI.
288
+ *
289
+ * @see PLUGIN_SPEC.md §15 — Capability Model
290
+ */
291
+ export const PLUGIN_CAPABILITIES = [
292
+ // Data Read
293
+ "companies.read",
294
+ "projects.read",
295
+ "project.workspaces.read",
296
+ "issues.read",
297
+ "issue.comments.read",
298
+ "issue.documents.read",
299
+ "agents.read",
300
+ "goals.read",
301
+ "goals.create",
302
+ "goals.update",
303
+ "activity.read",
304
+ "costs.read",
305
+ // Data Write
306
+ "issues.create",
307
+ "issues.update",
308
+ "issue.comments.create",
309
+ "issue.documents.write",
310
+ "agents.pause",
311
+ "agents.resume",
312
+ "agents.invoke",
313
+ "agent.sessions.create",
314
+ "agent.sessions.list",
315
+ "agent.sessions.send",
316
+ "agent.sessions.close",
317
+ "activity.log.write",
318
+ "metrics.write",
319
+ // Plugin State
320
+ "plugin.state.read",
321
+ "plugin.state.write",
322
+ // Runtime / Integration
323
+ "events.subscribe",
324
+ "events.emit",
325
+ "jobs.schedule",
326
+ "webhooks.receive",
327
+ "http.outbound",
328
+ "secrets.read-ref",
329
+ // Agent Tools
330
+ "agent.tools.register",
331
+ // UI
332
+ "instance.settings.register",
333
+ "ui.sidebar.register",
334
+ "ui.page.register",
335
+ "ui.detailTab.register",
336
+ "ui.dashboardWidget.register",
337
+ "ui.commentAnnotation.register",
338
+ "ui.action.register",
339
+ ];
340
+ /**
341
+ * UI extension slot types. Each slot type corresponds to a mount point in the
342
+ * Paperclip UI where plugin components can be rendered.
343
+ *
344
+ * @see PLUGIN_SPEC.md §19 — UI Extension Model
345
+ */
346
+ export const PLUGIN_UI_SLOT_TYPES = [
347
+ "page",
348
+ "detailTab",
349
+ "taskDetailView",
350
+ "dashboardWidget",
351
+ "sidebar",
352
+ "sidebarPanel",
353
+ "projectSidebarItem",
354
+ "globalToolbarButton",
355
+ "toolbarButton",
356
+ "contextMenuItem",
357
+ "commentAnnotation",
358
+ "commentContextMenuItem",
359
+ "settingsPage",
360
+ ];
361
+ /**
362
+ * Reserved company-scoped route segments that plugin page routes may not claim.
363
+ *
364
+ * These map to first-class host pages under `/:companyPrefix/...`.
365
+ */
366
+ export const PLUGIN_RESERVED_COMPANY_ROUTE_SEGMENTS = [
367
+ "dashboard",
368
+ "onboarding",
369
+ "companies",
370
+ "company",
371
+ "settings",
372
+ "plugins",
373
+ "org",
374
+ "agents",
375
+ "projects",
376
+ "issues",
377
+ "goals",
378
+ "approvals",
379
+ "costs",
380
+ "activity",
381
+ "inbox",
382
+ "design-guide",
383
+ "tests",
384
+ ];
385
+ /**
386
+ * Launcher placement zones describe where a plugin-owned launcher can appear
387
+ * in the host UI. These are intentionally aligned with current slot surfaces
388
+ * so manifest authors can describe launch intent without coupling to a single
389
+ * component implementation detail.
390
+ */
391
+ export const PLUGIN_LAUNCHER_PLACEMENT_ZONES = [
392
+ "page",
393
+ "detailTab",
394
+ "taskDetailView",
395
+ "dashboardWidget",
396
+ "sidebar",
397
+ "sidebarPanel",
398
+ "projectSidebarItem",
399
+ "globalToolbarButton",
400
+ "toolbarButton",
401
+ "contextMenuItem",
402
+ "commentAnnotation",
403
+ "commentContextMenuItem",
404
+ "settingsPage",
405
+ ];
406
+ /**
407
+ * Launcher action kinds describe what the launcher does when activated.
408
+ */
409
+ export const PLUGIN_LAUNCHER_ACTIONS = [
410
+ "navigate",
411
+ "openModal",
412
+ "openDrawer",
413
+ "openPopover",
414
+ "performAction",
415
+ "deepLink",
416
+ ];
417
+ /**
418
+ * Optional size hints the host can use when rendering plugin-owned launcher
419
+ * destinations such as overlays, drawers, or full page handoffs.
420
+ */
421
+ export const PLUGIN_LAUNCHER_BOUNDS = [
422
+ "inline",
423
+ "compact",
424
+ "default",
425
+ "wide",
426
+ "full",
427
+ ];
428
+ /**
429
+ * Render environments describe the container a launcher expects after it is
430
+ * activated. The current host may map these to concrete UI primitives.
431
+ */
432
+ export const PLUGIN_LAUNCHER_RENDER_ENVIRONMENTS = [
433
+ "hostInline",
434
+ "hostOverlay",
435
+ "hostRoute",
436
+ "external",
437
+ "iframe",
438
+ ];
439
+ /**
440
+ * Entity types that a `detailTab` UI slot can attach to.
441
+ *
442
+ * @see PLUGIN_SPEC.md §19.3 — Detail Tabs
443
+ */
444
+ export const PLUGIN_UI_SLOT_ENTITY_TYPES = [
445
+ "project",
446
+ "issue",
447
+ "agent",
448
+ "goal",
449
+ "run",
450
+ "comment",
451
+ ];
452
+ /**
453
+ * Scope kinds for plugin state storage. Determines the granularity at which
454
+ * a plugin stores key-value state data.
455
+ *
456
+ * @see PLUGIN_SPEC.md §21.3 `plugin_state.scope_kind`
457
+ */
458
+ export const PLUGIN_STATE_SCOPE_KINDS = [
459
+ "instance",
460
+ "company",
461
+ "project",
462
+ "project_workspace",
463
+ "agent",
464
+ "issue",
465
+ "goal",
466
+ "run",
467
+ ];
468
+ /** Statuses for a plugin's scheduled job definition. */
469
+ export const PLUGIN_JOB_STATUSES = [
470
+ "active",
471
+ "paused",
472
+ "failed",
473
+ ];
474
+ /** Statuses for individual job run executions. */
475
+ export const PLUGIN_JOB_RUN_STATUSES = [
476
+ "pending",
477
+ "queued",
478
+ "running",
479
+ "succeeded",
480
+ "failed",
481
+ "cancelled",
482
+ ];
483
+ /** What triggered a particular job run. */
484
+ export const PLUGIN_JOB_RUN_TRIGGERS = [
485
+ "schedule",
486
+ "manual",
487
+ "retry",
488
+ ];
489
+ /** Statuses for inbound webhook deliveries. */
490
+ export const PLUGIN_WEBHOOK_DELIVERY_STATUSES = [
491
+ "pending",
492
+ "success",
493
+ "failed",
494
+ ];
495
+ /**
496
+ * Core domain event types that plugins can subscribe to via the
497
+ * `events.subscribe` capability.
498
+ *
499
+ * @see PLUGIN_SPEC.md §16 — Event System
500
+ */
501
+ export const PLUGIN_EVENT_TYPES = [
502
+ "company.created",
503
+ "company.updated",
504
+ "project.created",
505
+ "project.updated",
506
+ "project.workspace_created",
507
+ "project.workspace_updated",
508
+ "project.workspace_deleted",
509
+ "issue.created",
510
+ "issue.updated",
511
+ "issue.comment.created",
512
+ "agent.created",
513
+ "agent.updated",
514
+ "agent.status_changed",
515
+ "agent.run.started",
516
+ "agent.run.finished",
517
+ "agent.run.failed",
518
+ "agent.run.cancelled",
519
+ "goal.created",
520
+ "goal.updated",
521
+ "approval.created",
522
+ "approval.decided",
523
+ "cost_event.created",
524
+ "activity.logged",
525
+ ];
526
+ /**
527
+ * Error codes returned by the plugin bridge when a UI → worker call fails.
528
+ *
529
+ * @see PLUGIN_SPEC.md §19.7 — Error Propagation Through The Bridge
530
+ */
531
+ export const PLUGIN_BRIDGE_ERROR_CODES = [
532
+ "WORKER_UNAVAILABLE",
533
+ "CAPABILITY_DENIED",
534
+ "WORKER_ERROR",
535
+ "TIMEOUT",
536
+ "UNKNOWN",
537
+ ];
188
538
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,UAAU,CAAU,CAAC;AAG1E,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,eAAe,EAAE,eAAe,CAAU,CAAC;AAG5E,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,SAAS,EAAE,QAAQ,CAAU,CAAC;AAGnE,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,MAAM,EAAE,UAAU,CAAU,CAAC;AAGjE,MAAM,CAAC,MAAM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