@maiaos/cli 0.1.0-canary.70 → 0.1.0-canary.72
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/dist/bin/maia.cdx.json +24 -24
- package/dist/bin/maia.mjs +1 -1
- package/dist/cli/cli.js +8 -0
- package/dist/connection/tree/tree.js +56 -0
- package/dist/inbox/client.d.ts +2 -2
- package/dist/integration/client.d.ts +301 -1
- package/dist/integration/client.js +21 -1
- package/dist/integration/commands.d.ts +8 -0
- package/dist/integration/commands.js +40 -0
- package/dist/integration/index.d.ts +1 -1
- package/dist/integration/index.js +1 -1
- package/dist/session/agent-permission.d.ts +2 -2
- package/dist/session/approval/client.d.ts +3 -3
- package/dist/session/client.d.ts +2 -2
- package/package.json +4 -4
package/dist/cli/cli.js
CHANGED
|
@@ -304,6 +304,14 @@ const makeDefaultCliDependencies = (binding) => ({
|
|
|
304
304
|
"statusPiIntegration",
|
|
305
305
|
"applyPiIntegration",
|
|
306
306
|
"removePiIntegration",
|
|
307
|
+
"planAntigravityIntegration",
|
|
308
|
+
"statusAntigravityIntegration",
|
|
309
|
+
"applyAntigravityIntegration",
|
|
310
|
+
"removeAntigravityIntegration",
|
|
311
|
+
"planGrokCliIntegration",
|
|
312
|
+
"statusGrokCliIntegration",
|
|
313
|
+
"applyGrokCliIntegration",
|
|
314
|
+
"removeGrokCliIntegration",
|
|
307
315
|
],
|
|
308
316
|
}),
|
|
309
317
|
...lazyDependencies(loadConnection, (module, node) => module.makeConnectionClient(node), {
|
|
@@ -361,6 +361,62 @@ export const CONNECTION_TREE = {
|
|
|
361
361
|
"Remove the pi integration.",
|
|
362
362
|
{ run: [integration, "runRemovePi"] },
|
|
363
363
|
],
|
|
364
|
+
[
|
|
365
|
+
"integration plan antigravity",
|
|
366
|
+
1,
|
|
367
|
+
"integration.plan.antigravity",
|
|
368
|
+
"Plan approving the agy executable.",
|
|
369
|
+
{ run: [integration, "runPlanAntigravity"] },
|
|
370
|
+
],
|
|
371
|
+
[
|
|
372
|
+
"integration status antigravity",
|
|
373
|
+
1,
|
|
374
|
+
"integration.status.antigravity",
|
|
375
|
+
"Show the antigravity integration status.",
|
|
376
|
+
{ run: [integration, "runStatusAntigravity"] },
|
|
377
|
+
],
|
|
378
|
+
[
|
|
379
|
+
"integration apply antigravity --plan <plan-id> [--command-id <id>]",
|
|
380
|
+
1,
|
|
381
|
+
"integration.apply.antigravity",
|
|
382
|
+
"Approve the agy executable with a plan.",
|
|
383
|
+
{ run: [integration, "runApplyAntigravity"] },
|
|
384
|
+
],
|
|
385
|
+
[
|
|
386
|
+
"integration remove antigravity [--command-id <id>]",
|
|
387
|
+
1,
|
|
388
|
+
"integration.remove.antigravity",
|
|
389
|
+
"Remove the antigravity integration.",
|
|
390
|
+
{ run: [integration, "runRemoveAntigravity"] },
|
|
391
|
+
],
|
|
392
|
+
[
|
|
393
|
+
"integration plan grok-cli",
|
|
394
|
+
1,
|
|
395
|
+
"integration.plan.grok-cli",
|
|
396
|
+
"Plan approving the grok executable.",
|
|
397
|
+
{ run: [integration, "runPlanGrokCli"] },
|
|
398
|
+
],
|
|
399
|
+
[
|
|
400
|
+
"integration status grok-cli",
|
|
401
|
+
1,
|
|
402
|
+
"integration.status.grok-cli",
|
|
403
|
+
"Show the grok-cli integration status.",
|
|
404
|
+
{ run: [integration, "runStatusGrokCli"] },
|
|
405
|
+
],
|
|
406
|
+
[
|
|
407
|
+
"integration apply grok-cli --plan <plan-id> [--command-id <id>]",
|
|
408
|
+
1,
|
|
409
|
+
"integration.apply.grok-cli",
|
|
410
|
+
"Approve the grok executable with a plan.",
|
|
411
|
+
{ run: [integration, "runApplyGrokCli"] },
|
|
412
|
+
],
|
|
413
|
+
[
|
|
414
|
+
"integration remove grok-cli [--command-id <id>]",
|
|
415
|
+
1,
|
|
416
|
+
"integration.remove.grok-cli",
|
|
417
|
+
"Remove the grok-cli integration.",
|
|
418
|
+
{ run: [integration, "runRemoveGrokCli"] },
|
|
419
|
+
],
|
|
364
420
|
[
|
|
365
421
|
"provider pool list",
|
|
366
422
|
1,
|
package/dist/inbox/client.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export declare const makeInboxClient: (node: CliNodeOperations) => {
|
|
|
23
23
|
readonly approval?: {
|
|
24
24
|
readonly approvalId: string;
|
|
25
25
|
readonly createdAt: string;
|
|
26
|
-
readonly executor: "claude-code" | "codex-cli" | "maia-agent" | "pi";
|
|
26
|
+
readonly executor: "antigravity" | "claude-code" | "codex-cli" | "grok-cli" | "maia-agent" | "pi";
|
|
27
27
|
readonly expiresAt: string;
|
|
28
28
|
readonly forSessionOffered: boolean;
|
|
29
29
|
readonly kind: "command" | "file_change" | "question" | "tool";
|
|
@@ -127,7 +127,7 @@ export declare const makeInboxClient: (node: CliNodeOperations) => {
|
|
|
127
127
|
readonly approval: {
|
|
128
128
|
readonly approvalId: string;
|
|
129
129
|
readonly createdAt: string;
|
|
130
|
-
readonly executor: "claude-code" | "codex-cli" | "maia-agent" | "pi";
|
|
130
|
+
readonly executor: "antigravity" | "claude-code" | "codex-cli" | "grok-cli" | "maia-agent" | "pi";
|
|
131
131
|
readonly expiresAt: string;
|
|
132
132
|
readonly forSessionOffered: boolean;
|
|
133
133
|
readonly kind: "command" | "file_change" | "question" | "tool";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type IntegrationApplyClaudeCodeParameters, type IntegrationApplyCodexParameters, type IntegrationApplyMaiaAgentParameters, type IntegrationApplyPiParameters, type IntegrationPlanClaudeCodeParameters, type IntegrationPlanCodexParameters, type IntegrationPlanMaiaAgentParameters, type IntegrationPlanPiParameters, type IntegrationRemoveClaudeCodeParameters, type IntegrationRemoveCodexParameters, type IntegrationRemoveMaiaAgentParameters, type IntegrationRemovePiParameters, type IntegrationStatusClaudeCodeParameters, type IntegrationStatusCodexParameters, type IntegrationStatusMaiaAgentParameters, type IntegrationStatusPiParameters } from "@maiaos/sdk";
|
|
1
|
+
import { type IntegrationApplyAntigravityParameters, type IntegrationApplyClaudeCodeParameters, type IntegrationApplyCodexParameters, type IntegrationApplyGrokCliParameters, type IntegrationApplyMaiaAgentParameters, type IntegrationApplyPiParameters, type IntegrationPlanAntigravityParameters, type IntegrationPlanClaudeCodeParameters, type IntegrationPlanCodexParameters, type IntegrationPlanGrokCliParameters, type IntegrationPlanMaiaAgentParameters, type IntegrationPlanPiParameters, type IntegrationRemoveAntigravityParameters, type IntegrationRemoveClaudeCodeParameters, type IntegrationRemoveCodexParameters, type IntegrationRemoveGrokCliParameters, type IntegrationRemoveMaiaAgentParameters, type IntegrationRemovePiParameters, type IntegrationStatusAntigravityParameters, type IntegrationStatusClaudeCodeParameters, type IntegrationStatusCodexParameters, type IntegrationStatusGrokCliParameters, type IntegrationStatusMaiaAgentParameters, type IntegrationStatusPiParameters } from "@maiaos/sdk";
|
|
2
2
|
import type { CliNodeOperations } from "../local-node/index.js";
|
|
3
3
|
export declare const makeIntegrationClient: (node: CliNodeOperations) => {
|
|
4
4
|
planCodexIntegration: (input: IntegrationPlanCodexParameters) => import("../local-node/client.js").CliNodeEffect<{
|
|
@@ -1585,6 +1585,306 @@ export declare const makeIntegrationClient: (node: CliNodeOperations) => {
|
|
|
1585
1585
|
};
|
|
1586
1586
|
}>;
|
|
1587
1587
|
removePiIntegration: (input: IntegrationRemovePiParameters) => import("../local-node/client.js").CliNodeEffect<import("@maiaos/sdk").IntegrationRemovePiResult>;
|
|
1588
|
+
planAntigravityIntegration: (input: IntegrationPlanAntigravityParameters) => import("../local-node/client.js").CliNodeEffect<{
|
|
1589
|
+
readonly integration: "antigravity";
|
|
1590
|
+
readonly releaseQualified: false;
|
|
1591
|
+
readonly schemaVersion: 1;
|
|
1592
|
+
readonly method: "integration.plan.antigravity";
|
|
1593
|
+
readonly plan: {
|
|
1594
|
+
readonly createdAt: string;
|
|
1595
|
+
readonly expiresAt: string;
|
|
1596
|
+
readonly integration: "antigravity";
|
|
1597
|
+
readonly planBytes: number;
|
|
1598
|
+
readonly planDigest: string;
|
|
1599
|
+
readonly planId: string;
|
|
1600
|
+
readonly target: {
|
|
1601
|
+
readonly adapterVersion: string;
|
|
1602
|
+
readonly executableIdentity: {
|
|
1603
|
+
readonly device: string;
|
|
1604
|
+
readonly inode: string;
|
|
1605
|
+
readonly sizeBytes: string;
|
|
1606
|
+
};
|
|
1607
|
+
readonly executablePath: string;
|
|
1608
|
+
readonly executableSha256: string;
|
|
1609
|
+
readonly sandboxPolicyRevision: string;
|
|
1610
|
+
readonly vouchPolicyRevision: string;
|
|
1611
|
+
readonly adapter: "antigravity";
|
|
1612
|
+
readonly ownerKinds: readonly ["antigravity-session"];
|
|
1613
|
+
};
|
|
1614
|
+
};
|
|
1615
|
+
}>;
|
|
1616
|
+
statusAntigravityIntegration: (input: IntegrationStatusAntigravityParameters) => import("../local-node/client.js").CliNodeEffect<{
|
|
1617
|
+
readonly integration: "antigravity";
|
|
1618
|
+
readonly releaseQualified: false;
|
|
1619
|
+
readonly schemaVersion: 1;
|
|
1620
|
+
readonly items: readonly [{
|
|
1621
|
+
readonly authorizationAvailable: false;
|
|
1622
|
+
readonly nextAction: "plan_and_apply";
|
|
1623
|
+
readonly reason: "no_authorization";
|
|
1624
|
+
} | {
|
|
1625
|
+
readonly activeUnsettledPermits: 0;
|
|
1626
|
+
readonly authorization: {
|
|
1627
|
+
readonly adapterVersion: string;
|
|
1628
|
+
readonly executableSha256: string;
|
|
1629
|
+
readonly planDigest: string;
|
|
1630
|
+
readonly planId: string;
|
|
1631
|
+
readonly revision: string;
|
|
1632
|
+
readonly sandboxPolicyRevision: string;
|
|
1633
|
+
readonly vouchPolicyRevision: string;
|
|
1634
|
+
readonly ownerKinds: readonly ["antigravity-session"];
|
|
1635
|
+
readonly state: "cleanup_unknown";
|
|
1636
|
+
};
|
|
1637
|
+
readonly authorizationAvailable: true;
|
|
1638
|
+
readonly nextAction: "inspect_cleanup_unknown";
|
|
1639
|
+
readonly revokingUnsettledPermits: number;
|
|
1640
|
+
} | {
|
|
1641
|
+
readonly activeUnsettledPermits: 0;
|
|
1642
|
+
readonly authorization: {
|
|
1643
|
+
readonly adapterVersion: string;
|
|
1644
|
+
readonly executableSha256: string;
|
|
1645
|
+
readonly planDigest: string;
|
|
1646
|
+
readonly planId: string;
|
|
1647
|
+
readonly revision: string;
|
|
1648
|
+
readonly sandboxPolicyRevision: string;
|
|
1649
|
+
readonly vouchPolicyRevision: string;
|
|
1650
|
+
readonly ownerKinds: readonly ["antigravity-session"];
|
|
1651
|
+
readonly state: "replaced";
|
|
1652
|
+
} | {
|
|
1653
|
+
readonly adapterVersion: string;
|
|
1654
|
+
readonly executableSha256: string;
|
|
1655
|
+
readonly planDigest: string;
|
|
1656
|
+
readonly planId: string;
|
|
1657
|
+
readonly revision: string;
|
|
1658
|
+
readonly sandboxPolicyRevision: string;
|
|
1659
|
+
readonly vouchPolicyRevision: string;
|
|
1660
|
+
readonly ownerKinds: readonly ["antigravity-session"];
|
|
1661
|
+
readonly state: "revoked";
|
|
1662
|
+
};
|
|
1663
|
+
readonly authorizationAvailable: true;
|
|
1664
|
+
readonly nextAction: "plan_and_apply";
|
|
1665
|
+
readonly revokingUnsettledPermits: 0;
|
|
1666
|
+
} | {
|
|
1667
|
+
readonly activeUnsettledPermits: 0;
|
|
1668
|
+
readonly authorization: {
|
|
1669
|
+
readonly adapterVersion: string;
|
|
1670
|
+
readonly executableSha256: string;
|
|
1671
|
+
readonly planDigest: string;
|
|
1672
|
+
readonly planId: string;
|
|
1673
|
+
readonly revision: string;
|
|
1674
|
+
readonly sandboxPolicyRevision: string;
|
|
1675
|
+
readonly vouchPolicyRevision: string;
|
|
1676
|
+
readonly ownerKinds: readonly ["antigravity-session"];
|
|
1677
|
+
readonly state: "revoking";
|
|
1678
|
+
};
|
|
1679
|
+
readonly authorizationAvailable: true;
|
|
1680
|
+
readonly nextAction: "wait_for_revocation";
|
|
1681
|
+
readonly revokingUnsettledPermits: number;
|
|
1682
|
+
} | {
|
|
1683
|
+
readonly activeUnsettledPermits: number;
|
|
1684
|
+
readonly authorization: {
|
|
1685
|
+
readonly adapterVersion: string;
|
|
1686
|
+
readonly executableSha256: string;
|
|
1687
|
+
readonly planDigest: string;
|
|
1688
|
+
readonly planId: string;
|
|
1689
|
+
readonly revision: string;
|
|
1690
|
+
readonly sandboxPolicyRevision: string;
|
|
1691
|
+
readonly vouchPolicyRevision: string;
|
|
1692
|
+
readonly ownerKinds: readonly ["antigravity-session"];
|
|
1693
|
+
readonly state: "active";
|
|
1694
|
+
};
|
|
1695
|
+
readonly authorizationAvailable: true;
|
|
1696
|
+
readonly nextAction: "none";
|
|
1697
|
+
readonly revokingUnsettledPermits: 0;
|
|
1698
|
+
}];
|
|
1699
|
+
readonly method: "integration.status.antigravity";
|
|
1700
|
+
}>;
|
|
1701
|
+
applyAntigravityIntegration: (input: IntegrationApplyAntigravityParameters) => import("../local-node/client.js").CliNodeEffect<{
|
|
1702
|
+
readonly integration: "antigravity";
|
|
1703
|
+
readonly releaseQualified: false;
|
|
1704
|
+
readonly schemaVersion: 1;
|
|
1705
|
+
readonly authorization: {
|
|
1706
|
+
readonly adapterVersion: string;
|
|
1707
|
+
readonly executableSha256: string;
|
|
1708
|
+
readonly planDigest: string;
|
|
1709
|
+
readonly planId: string;
|
|
1710
|
+
readonly revision: string;
|
|
1711
|
+
readonly sandboxPolicyRevision: string;
|
|
1712
|
+
readonly vouchPolicyRevision: string;
|
|
1713
|
+
readonly ownerKinds: readonly ["antigravity-session"];
|
|
1714
|
+
readonly state: "active";
|
|
1715
|
+
};
|
|
1716
|
+
readonly delivery: "duplicate" | "new";
|
|
1717
|
+
readonly method: "integration.apply.antigravity";
|
|
1718
|
+
readonly outcome: "applied";
|
|
1719
|
+
readonly receipt: {
|
|
1720
|
+
readonly actorId: string;
|
|
1721
|
+
readonly aggregateRevision: string;
|
|
1722
|
+
readonly commandId: string;
|
|
1723
|
+
readonly createdAt: string;
|
|
1724
|
+
readonly eventCursor: string;
|
|
1725
|
+
readonly method: string;
|
|
1726
|
+
readonly proposedBy?: string | undefined;
|
|
1727
|
+
readonly receiptId: string;
|
|
1728
|
+
readonly schemaVersion: 1;
|
|
1729
|
+
readonly state: "succeeded";
|
|
1730
|
+
readonly target: {
|
|
1731
|
+
readonly id: string;
|
|
1732
|
+
readonly type: string;
|
|
1733
|
+
};
|
|
1734
|
+
readonly updatedAt: string;
|
|
1735
|
+
};
|
|
1736
|
+
}>;
|
|
1737
|
+
removeAntigravityIntegration: (input: IntegrationRemoveAntigravityParameters) => import("../local-node/client.js").CliNodeEffect<import("@maiaos/sdk").IntegrationRemoveAntigravityResult>;
|
|
1738
|
+
planGrokCliIntegration: (input: IntegrationPlanGrokCliParameters) => import("../local-node/client.js").CliNodeEffect<{
|
|
1739
|
+
readonly integration: "grok-cli";
|
|
1740
|
+
readonly releaseQualified: false;
|
|
1741
|
+
readonly schemaVersion: 1;
|
|
1742
|
+
readonly method: "integration.plan.grok-cli";
|
|
1743
|
+
readonly plan: {
|
|
1744
|
+
readonly createdAt: string;
|
|
1745
|
+
readonly expiresAt: string;
|
|
1746
|
+
readonly integration: "grok-cli";
|
|
1747
|
+
readonly planBytes: number;
|
|
1748
|
+
readonly planDigest: string;
|
|
1749
|
+
readonly planId: string;
|
|
1750
|
+
readonly target: {
|
|
1751
|
+
readonly adapterVersion: string;
|
|
1752
|
+
readonly executableIdentity: {
|
|
1753
|
+
readonly device: string;
|
|
1754
|
+
readonly inode: string;
|
|
1755
|
+
readonly sizeBytes: string;
|
|
1756
|
+
};
|
|
1757
|
+
readonly executablePath: string;
|
|
1758
|
+
readonly executableSha256: string;
|
|
1759
|
+
readonly sandboxPolicyRevision: string;
|
|
1760
|
+
readonly vouchPolicyRevision: string;
|
|
1761
|
+
readonly adapter: "grok-cli";
|
|
1762
|
+
readonly ownerKinds: readonly ["grok-cli-session"];
|
|
1763
|
+
};
|
|
1764
|
+
};
|
|
1765
|
+
}>;
|
|
1766
|
+
statusGrokCliIntegration: (input: IntegrationStatusGrokCliParameters) => import("../local-node/client.js").CliNodeEffect<{
|
|
1767
|
+
readonly integration: "grok-cli";
|
|
1768
|
+
readonly releaseQualified: false;
|
|
1769
|
+
readonly schemaVersion: 1;
|
|
1770
|
+
readonly items: readonly [{
|
|
1771
|
+
readonly authorizationAvailable: false;
|
|
1772
|
+
readonly nextAction: "plan_and_apply";
|
|
1773
|
+
readonly reason: "no_authorization";
|
|
1774
|
+
} | {
|
|
1775
|
+
readonly activeUnsettledPermits: 0;
|
|
1776
|
+
readonly authorization: {
|
|
1777
|
+
readonly adapterVersion: string;
|
|
1778
|
+
readonly executableSha256: string;
|
|
1779
|
+
readonly planDigest: string;
|
|
1780
|
+
readonly planId: string;
|
|
1781
|
+
readonly revision: string;
|
|
1782
|
+
readonly sandboxPolicyRevision: string;
|
|
1783
|
+
readonly vouchPolicyRevision: string;
|
|
1784
|
+
readonly ownerKinds: readonly ["grok-cli-session"];
|
|
1785
|
+
readonly state: "cleanup_unknown";
|
|
1786
|
+
};
|
|
1787
|
+
readonly authorizationAvailable: true;
|
|
1788
|
+
readonly nextAction: "inspect_cleanup_unknown";
|
|
1789
|
+
readonly revokingUnsettledPermits: number;
|
|
1790
|
+
} | {
|
|
1791
|
+
readonly activeUnsettledPermits: 0;
|
|
1792
|
+
readonly authorization: {
|
|
1793
|
+
readonly adapterVersion: string;
|
|
1794
|
+
readonly executableSha256: string;
|
|
1795
|
+
readonly planDigest: string;
|
|
1796
|
+
readonly planId: string;
|
|
1797
|
+
readonly revision: string;
|
|
1798
|
+
readonly sandboxPolicyRevision: string;
|
|
1799
|
+
readonly vouchPolicyRevision: string;
|
|
1800
|
+
readonly ownerKinds: readonly ["grok-cli-session"];
|
|
1801
|
+
readonly state: "replaced";
|
|
1802
|
+
} | {
|
|
1803
|
+
readonly adapterVersion: string;
|
|
1804
|
+
readonly executableSha256: string;
|
|
1805
|
+
readonly planDigest: string;
|
|
1806
|
+
readonly planId: string;
|
|
1807
|
+
readonly revision: string;
|
|
1808
|
+
readonly sandboxPolicyRevision: string;
|
|
1809
|
+
readonly vouchPolicyRevision: string;
|
|
1810
|
+
readonly ownerKinds: readonly ["grok-cli-session"];
|
|
1811
|
+
readonly state: "revoked";
|
|
1812
|
+
};
|
|
1813
|
+
readonly authorizationAvailable: true;
|
|
1814
|
+
readonly nextAction: "plan_and_apply";
|
|
1815
|
+
readonly revokingUnsettledPermits: 0;
|
|
1816
|
+
} | {
|
|
1817
|
+
readonly activeUnsettledPermits: 0;
|
|
1818
|
+
readonly authorization: {
|
|
1819
|
+
readonly adapterVersion: string;
|
|
1820
|
+
readonly executableSha256: string;
|
|
1821
|
+
readonly planDigest: string;
|
|
1822
|
+
readonly planId: string;
|
|
1823
|
+
readonly revision: string;
|
|
1824
|
+
readonly sandboxPolicyRevision: string;
|
|
1825
|
+
readonly vouchPolicyRevision: string;
|
|
1826
|
+
readonly ownerKinds: readonly ["grok-cli-session"];
|
|
1827
|
+
readonly state: "revoking";
|
|
1828
|
+
};
|
|
1829
|
+
readonly authorizationAvailable: true;
|
|
1830
|
+
readonly nextAction: "wait_for_revocation";
|
|
1831
|
+
readonly revokingUnsettledPermits: number;
|
|
1832
|
+
} | {
|
|
1833
|
+
readonly activeUnsettledPermits: number;
|
|
1834
|
+
readonly authorization: {
|
|
1835
|
+
readonly adapterVersion: string;
|
|
1836
|
+
readonly executableSha256: string;
|
|
1837
|
+
readonly planDigest: string;
|
|
1838
|
+
readonly planId: string;
|
|
1839
|
+
readonly revision: string;
|
|
1840
|
+
readonly sandboxPolicyRevision: string;
|
|
1841
|
+
readonly vouchPolicyRevision: string;
|
|
1842
|
+
readonly ownerKinds: readonly ["grok-cli-session"];
|
|
1843
|
+
readonly state: "active";
|
|
1844
|
+
};
|
|
1845
|
+
readonly authorizationAvailable: true;
|
|
1846
|
+
readonly nextAction: "none";
|
|
1847
|
+
readonly revokingUnsettledPermits: 0;
|
|
1848
|
+
}];
|
|
1849
|
+
readonly method: "integration.status.grok-cli";
|
|
1850
|
+
}>;
|
|
1851
|
+
applyGrokCliIntegration: (input: IntegrationApplyGrokCliParameters) => import("../local-node/client.js").CliNodeEffect<{
|
|
1852
|
+
readonly integration: "grok-cli";
|
|
1853
|
+
readonly releaseQualified: false;
|
|
1854
|
+
readonly schemaVersion: 1;
|
|
1855
|
+
readonly authorization: {
|
|
1856
|
+
readonly adapterVersion: string;
|
|
1857
|
+
readonly executableSha256: string;
|
|
1858
|
+
readonly planDigest: string;
|
|
1859
|
+
readonly planId: string;
|
|
1860
|
+
readonly revision: string;
|
|
1861
|
+
readonly sandboxPolicyRevision: string;
|
|
1862
|
+
readonly vouchPolicyRevision: string;
|
|
1863
|
+
readonly ownerKinds: readonly ["grok-cli-session"];
|
|
1864
|
+
readonly state: "active";
|
|
1865
|
+
};
|
|
1866
|
+
readonly delivery: "duplicate" | "new";
|
|
1867
|
+
readonly method: "integration.apply.grok-cli";
|
|
1868
|
+
readonly outcome: "applied";
|
|
1869
|
+
readonly receipt: {
|
|
1870
|
+
readonly actorId: string;
|
|
1871
|
+
readonly aggregateRevision: string;
|
|
1872
|
+
readonly commandId: string;
|
|
1873
|
+
readonly createdAt: string;
|
|
1874
|
+
readonly eventCursor: string;
|
|
1875
|
+
readonly method: string;
|
|
1876
|
+
readonly proposedBy?: string | undefined;
|
|
1877
|
+
readonly receiptId: string;
|
|
1878
|
+
readonly schemaVersion: 1;
|
|
1879
|
+
readonly state: "succeeded";
|
|
1880
|
+
readonly target: {
|
|
1881
|
+
readonly id: string;
|
|
1882
|
+
readonly type: string;
|
|
1883
|
+
};
|
|
1884
|
+
readonly updatedAt: string;
|
|
1885
|
+
};
|
|
1886
|
+
}>;
|
|
1887
|
+
removeGrokCliIntegration: (input: IntegrationRemoveGrokCliParameters) => import("../local-node/client.js").CliNodeEffect<import("@maiaos/sdk").IntegrationRemoveGrokCliResult>;
|
|
1588
1888
|
};
|
|
1589
1889
|
export type IntegrationCliDependencies = ReturnType<typeof makeIntegrationClient>;
|
|
1590
1890
|
//# sourceMappingURL=client.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { integrationApplyClaudeCodeParametersSchema, integrationApplyCodexParametersSchema, integrationApplyMaiaAgentParametersSchema, integrationApplyPiParametersSchema, integrationPlanClaudeCodeParametersSchema, integrationPlanCodexParametersSchema, integrationPlanMaiaAgentParametersSchema, integrationPlanPiParametersSchema, integrationRemoveClaudeCodeParametersSchema, integrationRemoveCodexParametersSchema, integrationRemoveMaiaAgentParametersSchema, integrationRemovePiParametersSchema, integrationStatusClaudeCodeParametersSchema, integrationStatusCodexParametersSchema, integrationStatusMaiaAgentParametersSchema, integrationStatusPiParametersSchema, } from "@maiaos/sdk";
|
|
1
|
+
import { integrationApplyAntigravityParametersSchema, integrationApplyClaudeCodeParametersSchema, integrationApplyCodexParametersSchema, integrationApplyGrokCliParametersSchema, integrationApplyMaiaAgentParametersSchema, integrationApplyPiParametersSchema, integrationPlanAntigravityParametersSchema, integrationPlanClaudeCodeParametersSchema, integrationPlanCodexParametersSchema, integrationPlanGrokCliParametersSchema, integrationPlanMaiaAgentParametersSchema, integrationPlanPiParametersSchema, integrationRemoveAntigravityParametersSchema, integrationRemoveClaudeCodeParametersSchema, integrationRemoveCodexParametersSchema, integrationRemoveGrokCliParametersSchema, integrationRemoveMaiaAgentParametersSchema, integrationRemovePiParametersSchema, integrationStatusAntigravityParametersSchema, integrationStatusClaudeCodeParametersSchema, integrationStatusCodexParametersSchema, integrationStatusGrokCliParametersSchema, integrationStatusMaiaAgentParametersSchema, integrationStatusPiParametersSchema, } from "@maiaos/sdk";
|
|
2
2
|
const readClient = (node) => ({
|
|
3
3
|
planCodexIntegration: (input) => node.runValidatedNodeOperation(input, integrationPlanCodexParametersSchema, (client, parameters, options) => client.planCodexIntegration(parameters, options)),
|
|
4
4
|
statusCodexIntegration: (input) => node.runValidatedNodeOperation(input, integrationStatusCodexParametersSchema, (client, parameters, options) => client.statusCodexIntegration(parameters, options)),
|
|
@@ -31,6 +31,22 @@ const piMutationClient = (node) => ({
|
|
|
31
31
|
applyPiIntegration: (input) => node.runValidatedNodeOperation(input, integrationApplyPiParametersSchema, (client, parameters, options) => client.applyPiIntegration(parameters, options), { commandId: input.commandId }),
|
|
32
32
|
removePiIntegration: (input) => node.runValidatedNodeOperation(input, integrationRemovePiParametersSchema, (client, parameters, options) => client.removePiIntegration(parameters, options), { commandId: input.commandId }),
|
|
33
33
|
});
|
|
34
|
+
const antigravityReadClient = (node) => ({
|
|
35
|
+
planAntigravityIntegration: (input) => node.runValidatedNodeOperation(input, integrationPlanAntigravityParametersSchema, (client, parameters, options) => client.planAntigravityIntegration(parameters, options)),
|
|
36
|
+
statusAntigravityIntegration: (input) => node.runValidatedNodeOperation(input, integrationStatusAntigravityParametersSchema, (client, parameters, options) => client.statusAntigravityIntegration(parameters, options)),
|
|
37
|
+
});
|
|
38
|
+
const antigravityMutationClient = (node) => ({
|
|
39
|
+
applyAntigravityIntegration: (input) => node.runValidatedNodeOperation(input, integrationApplyAntigravityParametersSchema, (client, parameters, options) => client.applyAntigravityIntegration(parameters, options), { commandId: input.commandId }),
|
|
40
|
+
removeAntigravityIntegration: (input) => node.runValidatedNodeOperation(input, integrationRemoveAntigravityParametersSchema, (client, parameters, options) => client.removeAntigravityIntegration(parameters, options), { commandId: input.commandId }),
|
|
41
|
+
});
|
|
42
|
+
const grokCliReadClient = (node) => ({
|
|
43
|
+
planGrokCliIntegration: (input) => node.runValidatedNodeOperation(input, integrationPlanGrokCliParametersSchema, (client, parameters, options) => client.planGrokCliIntegration(parameters, options)),
|
|
44
|
+
statusGrokCliIntegration: (input) => node.runValidatedNodeOperation(input, integrationStatusGrokCliParametersSchema, (client, parameters, options) => client.statusGrokCliIntegration(parameters, options)),
|
|
45
|
+
});
|
|
46
|
+
const grokCliMutationClient = (node) => ({
|
|
47
|
+
applyGrokCliIntegration: (input) => node.runValidatedNodeOperation(input, integrationApplyGrokCliParametersSchema, (client, parameters, options) => client.applyGrokCliIntegration(parameters, options), { commandId: input.commandId }),
|
|
48
|
+
removeGrokCliIntegration: (input) => node.runValidatedNodeOperation(input, integrationRemoveGrokCliParametersSchema, (client, parameters, options) => client.removeGrokCliIntegration(parameters, options), { commandId: input.commandId }),
|
|
49
|
+
});
|
|
34
50
|
export const makeIntegrationClient = (node) => ({
|
|
35
51
|
...readClient(node),
|
|
36
52
|
...mutationClient(node),
|
|
@@ -40,5 +56,9 @@ export const makeIntegrationClient = (node) => ({
|
|
|
40
56
|
...maiaAgentMutationClient(node),
|
|
41
57
|
...piReadClient(node),
|
|
42
58
|
...piMutationClient(node),
|
|
59
|
+
...antigravityReadClient(node),
|
|
60
|
+
...antigravityMutationClient(node),
|
|
61
|
+
...grokCliReadClient(node),
|
|
62
|
+
...grokCliMutationClient(node),
|
|
43
63
|
});
|
|
44
64
|
//# sourceMappingURL=client.js.map
|
|
@@ -15,4 +15,12 @@ export declare const runPlanPi: (tokens: readonly string[], context: CommandCont
|
|
|
15
15
|
export declare const runStatusPi: (tokens: readonly string[], context: CommandContext) => CommandEffect;
|
|
16
16
|
export declare const runApplyPi: (tokens: readonly string[], context: CommandContext) => CommandEffect;
|
|
17
17
|
export declare const runRemovePi: (tokens: readonly string[], context: CommandContext) => CommandEffect;
|
|
18
|
+
export declare const runPlanAntigravity: (tokens: readonly string[], context: CommandContext) => CommandEffect;
|
|
19
|
+
export declare const runStatusAntigravity: (tokens: readonly string[], context: CommandContext) => CommandEffect;
|
|
20
|
+
export declare const runApplyAntigravity: (tokens: readonly string[], context: CommandContext) => CommandEffect;
|
|
21
|
+
export declare const runRemoveAntigravity: (tokens: readonly string[], context: CommandContext) => CommandEffect;
|
|
22
|
+
export declare const runPlanGrokCli: (tokens: readonly string[], context: CommandContext) => CommandEffect;
|
|
23
|
+
export declare const runStatusGrokCli: (tokens: readonly string[], context: CommandContext) => CommandEffect;
|
|
24
|
+
export declare const runApplyGrokCli: (tokens: readonly string[], context: CommandContext) => CommandEffect;
|
|
25
|
+
export declare const runRemoveGrokCli: (tokens: readonly string[], context: CommandContext) => CommandEffect;
|
|
18
26
|
//# sourceMappingURL=commands.d.ts.map
|
|
@@ -6,6 +6,8 @@ import { formatIntegrationApply, formatIntegrationPlan, formatIntegrationRemove,
|
|
|
6
6
|
const CLAUDE_CODE = EXECUTOR_IDS.claudeCode;
|
|
7
7
|
const MAIA_AGENT = EXECUTOR_IDS.maiaAgent;
|
|
8
8
|
const PI = EXECUTOR_IDS.pi;
|
|
9
|
+
const ANTIGRAVITY = EXECUTOR_IDS.antigravity;
|
|
10
|
+
const GROK_CLI = EXECUTOR_IDS.grokCli;
|
|
9
11
|
const withInput = (operation, input) => operation === undefined ? undefined : () => operation(input);
|
|
10
12
|
const codexOperations = (dependencies, commandId) => ({
|
|
11
13
|
apply: dependencies.applyCodexIntegration,
|
|
@@ -44,6 +46,32 @@ const maiaAgentOperations = (dependencies, commandId) => ({
|
|
|
44
46
|
integration: MAIA_AGENT,
|
|
45
47
|
}),
|
|
46
48
|
});
|
|
49
|
+
const antigravityOperations = (dependencies, commandId) => ({
|
|
50
|
+
apply: dependencies.applyAntigravityIntegration,
|
|
51
|
+
plan: withInput(dependencies.planAntigravityIntegration, {
|
|
52
|
+
integration: ANTIGRAVITY,
|
|
53
|
+
}),
|
|
54
|
+
remove: withInput(dependencies.removeAntigravityIntegration, {
|
|
55
|
+
commandId,
|
|
56
|
+
integration: ANTIGRAVITY,
|
|
57
|
+
}),
|
|
58
|
+
status: withInput(dependencies.statusAntigravityIntegration, {
|
|
59
|
+
integration: ANTIGRAVITY,
|
|
60
|
+
}),
|
|
61
|
+
});
|
|
62
|
+
const grokCliOperations = (dependencies, commandId) => ({
|
|
63
|
+
apply: dependencies.applyGrokCliIntegration,
|
|
64
|
+
plan: withInput(dependencies.planGrokCliIntegration, {
|
|
65
|
+
integration: GROK_CLI,
|
|
66
|
+
}),
|
|
67
|
+
remove: withInput(dependencies.removeGrokCliIntegration, {
|
|
68
|
+
commandId,
|
|
69
|
+
integration: GROK_CLI,
|
|
70
|
+
}),
|
|
71
|
+
status: withInput(dependencies.statusGrokCliIntegration, {
|
|
72
|
+
integration: GROK_CLI,
|
|
73
|
+
}),
|
|
74
|
+
});
|
|
47
75
|
const piOperations = (dependencies, commandId) => ({
|
|
48
76
|
apply: dependencies.applyPiIntegration,
|
|
49
77
|
plan: withInput(dependencies.planPiIntegration, { integration: PI }),
|
|
@@ -63,6 +91,10 @@ const vendorOperations = (dependencies, vendor, commandId) => {
|
|
|
63
91
|
return maiaAgentOperations(dependencies, commandId);
|
|
64
92
|
case PI:
|
|
65
93
|
return piOperations(dependencies, commandId);
|
|
94
|
+
case ANTIGRAVITY:
|
|
95
|
+
return antigravityOperations(dependencies, commandId);
|
|
96
|
+
case GROK_CLI:
|
|
97
|
+
return grokCliOperations(dependencies, commandId);
|
|
66
98
|
}
|
|
67
99
|
};
|
|
68
100
|
const missingClient = (context) => reportError({
|
|
@@ -144,4 +176,12 @@ export const runPlanPi = integrationLeaf("plan", PI);
|
|
|
144
176
|
export const runStatusPi = integrationLeaf("status", PI);
|
|
145
177
|
export const runApplyPi = integrationLeaf("apply", PI);
|
|
146
178
|
export const runRemovePi = integrationLeaf("remove", PI);
|
|
179
|
+
export const runPlanAntigravity = integrationLeaf("plan", ANTIGRAVITY);
|
|
180
|
+
export const runStatusAntigravity = integrationLeaf("status", ANTIGRAVITY);
|
|
181
|
+
export const runApplyAntigravity = integrationLeaf("apply", ANTIGRAVITY);
|
|
182
|
+
export const runRemoveAntigravity = integrationLeaf("remove", ANTIGRAVITY);
|
|
183
|
+
export const runPlanGrokCli = integrationLeaf("plan", GROK_CLI);
|
|
184
|
+
export const runStatusGrokCli = integrationLeaf("status", GROK_CLI);
|
|
185
|
+
export const runApplyGrokCli = integrationLeaf("apply", GROK_CLI);
|
|
186
|
+
export const runRemoveGrokCli = integrationLeaf("remove", GROK_CLI);
|
|
147
187
|
//# sourceMappingURL=commands.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { type IntegrationCliDependencies, makeIntegrationClient, } from "./client.js";
|
|
2
|
-
export { runApplyClaudeCode, runApplyCodex, runApplyMaiaAgent, runApplyPi, runPlanClaudeCode, runPlanCodex, runPlanMaiaAgent, runPlanPi, runRemoveClaudeCode, runRemoveCodex, runRemoveMaiaAgent, runRemovePi, runStatusClaudeCode, runStatusCodex, runStatusMaiaAgent, runStatusPi, } from "./commands.js";
|
|
2
|
+
export { runApplyAntigravity, runApplyClaudeCode, runApplyCodex, runApplyGrokCli, runApplyMaiaAgent, runApplyPi, runPlanAntigravity, runPlanClaudeCode, runPlanCodex, runPlanGrokCli, runPlanMaiaAgent, runPlanPi, runRemoveAntigravity, runRemoveClaudeCode, runRemoveCodex, runRemoveGrokCli, runRemoveMaiaAgent, runRemovePi, runStatusAntigravity, runStatusClaudeCode, runStatusCodex, runStatusGrokCli, runStatusMaiaAgent, runStatusPi, } from "./commands.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { makeIntegrationClient, } from "./client.js";
|
|
2
|
-
export { runApplyClaudeCode, runApplyCodex, runApplyMaiaAgent, runApplyPi, runPlanClaudeCode, runPlanCodex, runPlanMaiaAgent, runPlanPi, runRemoveClaudeCode, runRemoveCodex, runRemoveMaiaAgent, runRemovePi, runStatusClaudeCode, runStatusCodex, runStatusMaiaAgent, runStatusPi, } from "./commands.js";
|
|
2
|
+
export { runApplyAntigravity, runApplyClaudeCode, runApplyCodex, runApplyGrokCli, runApplyMaiaAgent, runApplyPi, runPlanAntigravity, runPlanClaudeCode, runPlanCodex, runPlanGrokCli, runPlanMaiaAgent, runPlanPi, runRemoveAntigravity, runRemoveClaudeCode, runRemoveCodex, runRemoveGrokCli, runRemoveMaiaAgent, runRemovePi, runStatusAntigravity, runStatusClaudeCode, runStatusCodex, runStatusGrokCli, runStatusMaiaAgent, runStatusPi, } from "./commands.js";
|
|
3
3
|
//# sourceMappingURL=index.js.map
|