@muxoai/platform 1.4.1 → 1.4.3

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 (53) hide show
  1. package/.agents/plugins/marketplace.json +1 -1
  2. package/.claude-plugin/marketplace.json +2 -2
  3. package/README.md +1 -1
  4. package/dist/cli.js +94 -3
  5. package/dist/composio-catalog.d.ts +177 -1
  6. package/dist/composio-catalog.js +1427 -7
  7. package/dist/config.d.ts +6 -0
  8. package/dist/config.js +11 -1
  9. package/dist/durable-workflow.d.ts +71 -4
  10. package/dist/durable-workflow.js +199 -5
  11. package/dist/engine.d.ts +82 -3
  12. package/dist/engine.js +406 -41
  13. package/dist/index.d.ts +3 -0
  14. package/dist/index.js +3 -0
  15. package/dist/mcp-schema.d.ts +162 -1
  16. package/dist/mcp-schema.js +1544 -40
  17. package/dist/mcp.d.ts +2 -2
  18. package/dist/mcp.js +474 -26
  19. package/dist/memory-graph.d.ts +26 -2
  20. package/dist/memory-graph.js +127 -7
  21. package/dist/oss-suite.d.ts +217 -0
  22. package/dist/oss-suite.js +836 -0
  23. package/dist/policy.d.ts +108 -1
  24. package/dist/policy.js +406 -1
  25. package/dist/providers/composio-instant.js +38 -3
  26. package/dist/providers/composio-sdk.d.ts +59 -2
  27. package/dist/providers/composio-sdk.js +273 -59
  28. package/dist/providers/stripe-projects.d.ts +4 -0
  29. package/dist/providers/stripe-projects.js +548 -126
  30. package/dist/sdk.d.ts +24 -1
  31. package/dist/sdk.js +53 -2
  32. package/dist/server.js +659 -64
  33. package/dist/store.js +2 -0
  34. package/dist/types.d.ts +34 -1
  35. package/dist/ui/console-html.d.ts +31 -1
  36. package/dist/ui/console-html.js +922 -368
  37. package/dist/ui/design-tokens.js +1 -1
  38. package/dist/version.d.ts +1 -1
  39. package/dist/version.js +1 -1
  40. package/package.json +3 -2
  41. package/plugins/muxo/.claude-plugin/plugin.json +2 -2
  42. package/plugins/muxo/.codex-plugin/plugin.json +15 -8
  43. package/plugins/muxo/.cursor-plugin/plugin.json +30 -0
  44. package/plugins/muxo/hooks/session-start.sh +15 -3
  45. package/plugins/muxo/hooks/user-prompt-submit.sh +14 -1
  46. package/plugins/muxo/mcp.json +0 -10
  47. package/plugins/muxo/plugin.json +4 -4
  48. package/plugins/muxo/skills/muxo/SKILL.md +25 -16
  49. package/plugins/muxo/skills/muxo/references/cli.md +5 -1
  50. package/plugins/muxo/skills/muxo/references/mcp.md +11 -6
  51. package/plugins/muxo/skills/muxo-activity-summary/SKILL.md +81 -0
  52. package/plugins/muxo/skills/setup/SKILL.md +1 -1
  53. package/src/catalogues/stripe-projects-catalog.json +140 -0
package/dist/store.js CHANGED
@@ -63,11 +63,13 @@ export class MuxoStore {
63
63
  vaultKey;
64
64
  constructor(dbPath, vaultKey) {
65
65
  this.db = new DatabaseSync(dbPath);
66
+ this.db.exec("PRAGMA busy_timeout = 10000;");
66
67
  this.vaultKey = vaultKey;
67
68
  this.initSchema();
68
69
  }
69
70
  initSchema() {
70
71
  this.db.exec(`
72
+ PRAGMA busy_timeout = 10000;
71
73
  PRAGMA journal_mode = WAL;
72
74
  PRAGMA foreign_keys = ON;
73
75
 
package/dist/types.d.ts CHANGED
@@ -33,10 +33,12 @@ export interface HumanFriendlyExplanation {
33
33
  */
34
34
  export interface HumanHandoff {
35
35
  kind: "approval" | "oauth" | "byok";
36
+ brand?: string;
36
37
  url: string | null;
37
38
  ctaLabel: string;
38
39
  headline: string;
39
40
  instructions: string;
41
+ markdownForUser?: string;
40
42
  planId?: string;
41
43
  provider?: string;
42
44
  }
@@ -314,6 +316,9 @@ export interface TemporalGraphFact {
314
316
  confidence: number;
315
317
  validFrom: string;
316
318
  validTo: string | null;
319
+ transactionFrom?: string;
320
+ transactionTo?: string | null;
321
+ episodeId?: string | null;
317
322
  supersededById?: string | null;
318
323
  sourceKind: MemoryRecordKind | "system" | "manual";
319
324
  sourceReferenceId?: string | null;
@@ -322,10 +327,11 @@ export interface TemporalGraphFact {
322
327
  }
323
328
  export interface MemoryGraphNode {
324
329
  id: string;
325
- kind: "workspace" | "entity" | "preference" | "guardrail" | "connection" | "resource" | "tool" | "memory";
330
+ kind: "workspace" | "entity" | "preference" | "guardrail" | "connection" | "resource" | "tool" | "memory" | "episode";
326
331
  label: string;
327
332
  summary: string;
328
333
  status: "active" | "historical";
334
+ hopDistance?: number;
329
335
  metadata?: Record<string, unknown>;
330
336
  }
331
337
  export interface MemoryGraphEdge {
@@ -340,6 +346,9 @@ export interface MemoryGraphEdge {
340
346
  status: "active" | "historical";
341
347
  validFrom: string;
342
348
  validTo: string | null;
349
+ transactionFrom?: string;
350
+ transactionTo?: string | null;
351
+ episodeId?: string | null;
343
352
  supersededById: string | null;
344
353
  sourceKind: TemporalGraphFact["sourceKind"];
345
354
  sourceReferenceId: string | null;
@@ -349,11 +358,21 @@ export interface MemoryKnowledgeGraph {
349
358
  workspaceSlug: string;
350
359
  namespace: string;
351
360
  generatedAt: string;
361
+ asOf?: string | null;
362
+ focalEntity?: string | null;
363
+ maxHops?: number;
352
364
  query: string | null;
353
365
  nodes: MemoryGraphNode[];
354
366
  edges: MemoryGraphEdge[];
355
367
  activeEdges: MemoryGraphEdge[];
356
368
  historicalEdges: MemoryGraphEdge[];
369
+ subgraph?: {
370
+ focalEntity: string;
371
+ maxHops: number;
372
+ nodes: MemoryGraphNode[];
373
+ edges: MemoryGraphEdge[];
374
+ hopDistances: Record<string, number>;
375
+ } | null;
357
376
  stats: {
358
377
  nodesCount: number;
359
378
  activeEdgesCount: number;
@@ -361,6 +380,7 @@ export interface MemoryKnowledgeGraph {
361
380
  memoriesCount: number;
362
381
  resourcesCount: number;
363
382
  connectionsCount: number;
383
+ episodesCount?: number;
364
384
  };
365
385
  mermaid: string;
366
386
  explanation: HumanFriendlyExplanation;
@@ -497,6 +517,19 @@ export interface ActionPlan {
497
517
  decisionRecord?: GovernanceDecisionRecord | null;
498
518
  memoryContext?: MemoryContextSummary | null;
499
519
  supplierSettlement?: SupplierSettlement | null;
520
+ surfaceVersion?: string;
521
+ surfaceAudience?: string;
522
+ surfaceConnectionId?: string | null;
523
+ surfaceContext?: Array<{
524
+ recordId: string;
525
+ revision: number;
526
+ contentHash: string;
527
+ }>;
528
+ surfaceFunding?: {
529
+ resource_id: string;
530
+ mode: "customer_funded" | "muxo_funded";
531
+ } | null;
532
+ surfaceOperationId?: string;
500
533
  createdAt: string;
501
534
  expiresAt: string;
502
535
  }
@@ -1,4 +1,4 @@
1
- export type ConsoleView = "overview" | "setup" | "activity" | "billing" | "login" | "signup";
1
+ export type ConsoleView = "overview" | "catalog" | "setup" | "workspaces" | "activity" | "billing" | "login" | "signup";
2
2
  /** Every path that serves the console shell, mapped to the view it opens. */
3
3
  export declare const CONSOLE_ROUTES: Readonly<Record<string, ConsoleView>>;
4
4
  export declare function isConsolePath(pathname: string): boolean;
@@ -32,3 +32,33 @@ export interface ApprovalPageOptions {
32
32
  }
33
33
  /** One-click approval screen for plans held by workspace guardrails (`/approve/:planId`). */
34
34
  export declare function renderApprovalPageHtml(opts: ApprovalPageOptions): string;
35
+ export interface OAuthConnectPageField {
36
+ name: string;
37
+ type?: string;
38
+ label?: string;
39
+ description?: string;
40
+ required?: boolean;
41
+ default?: string | null;
42
+ }
43
+ export interface OAuthConnectPageOptions {
44
+ token: string;
45
+ toolkitSlug: string;
46
+ toolkitName: string;
47
+ workspaceId?: string;
48
+ authMode?: string;
49
+ status?: string;
50
+ callbackUrl?: string | null;
51
+ expectedInputFields?: OAuthConnectPageField[];
52
+ error?: string | null;
53
+ }
54
+ /** Muxo-branded OAuth connection handoff screen (`/oauth/connect/:token`). */
55
+ export declare function renderOAuthConnectPageHtml(opts: OAuthConnectPageOptions): string;
56
+ export interface OAuthCallbackPageOptions {
57
+ providerSlug: string;
58
+ providerName: string;
59
+ status: string;
60
+ workspaceId: string;
61
+ externalAccountId?: string | null;
62
+ }
63
+ /** Muxo-branded OAuth callback completion screen (`/oauth/callback`). */
64
+ export declare function renderOAuthCallbackPageHtml(opts: OAuthCallbackPageOptions): string;