smithers-orchestrator 0.2.7 → 0.2.8
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/src/components/Git/index.js +27 -27
- package/dist/src/components/Hooks/index.js +24 -24
- package/dist/src/components/JJ/index.js +33 -33
- package/dist/src/components/MCP/index.js +3 -3
- package/dist/src/components/index.js +114 -114
- package/dist/src/db/index.js +3 -3
- package/dist/src/hooks/index.js +17 -17
- package/dist/src/index.js +115 -115
- package/dist/src/reactive-sqlite/index.js +3 -3
- package/dist/src/reconciler/index.js +18 -18
- package/package.json +2 -2
|
@@ -396,13 +396,13 @@ function useQueryCache() {
|
|
|
396
396
|
|
|
397
397
|
// src/reactive-sqlite/hooks/context.tsx
|
|
398
398
|
import { createContext, useContext } from "react";
|
|
399
|
-
import {
|
|
399
|
+
import { jsx } from "react/jsx-runtime";
|
|
400
400
|
var DatabaseContext = createContext(null);
|
|
401
401
|
function DatabaseProvider({ db, children }) {
|
|
402
|
-
return /* @__PURE__ */
|
|
402
|
+
return /* @__PURE__ */ jsx(DatabaseContext.Provider, {
|
|
403
403
|
value: db,
|
|
404
404
|
children
|
|
405
|
-
}
|
|
405
|
+
});
|
|
406
406
|
}
|
|
407
407
|
function useDatabaseOptional() {
|
|
408
408
|
return useContext(DatabaseContext);
|
|
@@ -759,7 +759,7 @@ import { createContext as createContext4, useContext as useContext4, useMemo as
|
|
|
759
759
|
|
|
760
760
|
// src/components/PhaseRegistry.tsx
|
|
761
761
|
import { createContext as createContext3, useContext as useContext3, useRef as useRef5, useCallback as useCallback5, useMemo as useMemo2 } from "react";
|
|
762
|
-
import {
|
|
762
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
763
763
|
var PhaseRegistryContext = createContext3(undefined);
|
|
764
764
|
function usePhaseRegistry() {
|
|
765
765
|
const ctx = useContext3(PhaseRegistryContext);
|
|
@@ -816,10 +816,10 @@ function PhaseRegistryProvider(props) {
|
|
|
816
816
|
isPhaseCompleted,
|
|
817
817
|
totalPhases: phasesRef.current.length
|
|
818
818
|
}), [registerPhase, currentPhaseIndex, advancePhase, isPhaseActive, isPhaseCompleted]);
|
|
819
|
-
return /* @__PURE__ */
|
|
819
|
+
return /* @__PURE__ */ jsx2(PhaseRegistryContext.Provider, {
|
|
820
820
|
value,
|
|
821
821
|
children: props.children
|
|
822
|
-
}
|
|
822
|
+
});
|
|
823
823
|
}
|
|
824
824
|
|
|
825
825
|
// src/hooks/useCaptureRenderFrame.ts
|
|
@@ -1100,7 +1100,7 @@ function clearSnapshotCache() {
|
|
|
1100
1100
|
lastFetchTime = 0;
|
|
1101
1101
|
}
|
|
1102
1102
|
// src/components/SmithersProvider.tsx
|
|
1103
|
-
import {
|
|
1103
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
1104
1104
|
var orchestrationControllers = new Map;
|
|
1105
1105
|
var ORCHESTRATION_CLEANUP_TIMEOUT_MS = 3600000;
|
|
1106
1106
|
var cleanupTimeouts = new Map;
|
|
@@ -1167,10 +1167,10 @@ function ExecutionBoundary(props) {
|
|
|
1167
1167
|
...parent,
|
|
1168
1168
|
executionEnabled: parent.executionEnabled && props.enabled
|
|
1169
1169
|
}), [parent, props.enabled]);
|
|
1170
|
-
return /* @__PURE__ */
|
|
1170
|
+
return /* @__PURE__ */ jsx3(SmithersContext.Provider, {
|
|
1171
1171
|
value: scopedValue,
|
|
1172
1172
|
children: props.children
|
|
1173
|
-
}
|
|
1173
|
+
});
|
|
1174
1174
|
}
|
|
1175
1175
|
function SmithersProvider(props) {
|
|
1176
1176
|
const maxIterations = props.maxIterations ?? props.config?.maxIterations ?? 100;
|
|
@@ -1432,18 +1432,18 @@ function SmithersProvider(props) {
|
|
|
1432
1432
|
console.error("[SmithersProvider] Unexpected cleanup error:", err);
|
|
1433
1433
|
});
|
|
1434
1434
|
});
|
|
1435
|
-
return /* @__PURE__ */
|
|
1435
|
+
return /* @__PURE__ */ jsx3(OrchestrationTokenContext.Provider, {
|
|
1436
1436
|
value: orchestrationToken,
|
|
1437
|
-
children: /* @__PURE__ */
|
|
1437
|
+
children: /* @__PURE__ */ jsx3(SmithersContext.Provider, {
|
|
1438
1438
|
value,
|
|
1439
|
-
children: /* @__PURE__ */
|
|
1439
|
+
children: /* @__PURE__ */ jsx3(DatabaseProvider, {
|
|
1440
1440
|
db: reactiveDb,
|
|
1441
|
-
children: /* @__PURE__ */
|
|
1441
|
+
children: /* @__PURE__ */ jsx3(PhaseRegistryProvider, {
|
|
1442
1442
|
children: props.children
|
|
1443
|
-
}
|
|
1444
|
-
}
|
|
1445
|
-
}
|
|
1446
|
-
}
|
|
1443
|
+
})
|
|
1444
|
+
})
|
|
1445
|
+
})
|
|
1446
|
+
});
|
|
1447
1447
|
}
|
|
1448
1448
|
function useRalph() {
|
|
1449
1449
|
const ctx = useSmithers();
|
|
@@ -1477,13 +1477,13 @@ function extractText(node) {
|
|
|
1477
1477
|
|
|
1478
1478
|
// src/components/ExecutionScope.tsx
|
|
1479
1479
|
import { createContext as createContext5, useContext as useContext5 } from "react";
|
|
1480
|
-
import {
|
|
1480
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
1481
1481
|
var ExecutionScopeContext = createContext5({ enabled: true });
|
|
1482
1482
|
function ExecutionScopeProvider(props) {
|
|
1483
|
-
return /* @__PURE__ */
|
|
1483
|
+
return /* @__PURE__ */ jsx4(ExecutionScopeContext.Provider, {
|
|
1484
1484
|
value: { enabled: props.enabled },
|
|
1485
1485
|
children: props.children
|
|
1486
|
-
}
|
|
1486
|
+
});
|
|
1487
1487
|
}
|
|
1488
1488
|
function useExecutionScope() {
|
|
1489
1489
|
return useContext5(ExecutionScopeContext);
|
|
@@ -1497,7 +1497,7 @@ function useExecutionEffect(enabled, effect, deps = []) {
|
|
|
1497
1497
|
}
|
|
1498
1498
|
|
|
1499
1499
|
// src/components/Git/Commit.tsx
|
|
1500
|
-
import {
|
|
1500
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
1501
1501
|
async function generateCommitMessage() {
|
|
1502
1502
|
const diffResult = await Bun.$`git diff --cached --stat`.text();
|
|
1503
1503
|
const diffContent = await Bun.$`git diff --cached`.text();
|
|
@@ -1605,27 +1605,27 @@ function Commit(props) {
|
|
|
1605
1605
|
}
|
|
1606
1606
|
})();
|
|
1607
1607
|
}, [props.all, props.autoGenerate, props.children, props.files, props.message, props.notes, props.onError, props.onFinished, smithers]);
|
|
1608
|
-
return /* @__PURE__ */
|
|
1608
|
+
return /* @__PURE__ */ jsx5("git-commit", {
|
|
1609
1609
|
status,
|
|
1610
1610
|
"commit-hash": result?.commitHash,
|
|
1611
1611
|
message: result?.message,
|
|
1612
1612
|
error,
|
|
1613
1613
|
children: props.children
|
|
1614
|
-
}
|
|
1614
|
+
});
|
|
1615
1615
|
}
|
|
1616
1616
|
// src/components/Git/Notes.tsx
|
|
1617
1617
|
import { useRef as useRef8 } from "react";
|
|
1618
1618
|
|
|
1619
1619
|
// src/components/ExecutionContext.tsx
|
|
1620
1620
|
import { createContext as createContext6, useContext as useContext6 } from "react";
|
|
1621
|
-
import {
|
|
1621
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
1622
1622
|
var ExecutionContext = createContext6({ isActive: true });
|
|
1623
1623
|
function useExecutionContext() {
|
|
1624
1624
|
return useContext6(ExecutionContext);
|
|
1625
1625
|
}
|
|
1626
1626
|
|
|
1627
1627
|
// src/components/Git/Notes.tsx
|
|
1628
|
-
import {
|
|
1628
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
1629
1629
|
function Notes(props) {
|
|
1630
1630
|
const smithers = useSmithers();
|
|
1631
1631
|
const execution = useExecutionContext();
|
|
@@ -1685,11 +1685,11 @@ function Notes(props) {
|
|
|
1685
1685
|
}
|
|
1686
1686
|
})();
|
|
1687
1687
|
}, [props.append, props.commitRef, props.data, props.onError, props.onFinished, smithers]);
|
|
1688
|
-
return /* @__PURE__ */
|
|
1688
|
+
return /* @__PURE__ */ jsx7("git-notes", {
|
|
1689
1689
|
status,
|
|
1690
1690
|
"commit-ref": result?.commitRef,
|
|
1691
1691
|
error
|
|
1692
|
-
}
|
|
1692
|
+
});
|
|
1693
1693
|
}
|
|
1694
1694
|
export {
|
|
1695
1695
|
Notes,
|
|
@@ -396,13 +396,13 @@ function useQueryCache() {
|
|
|
396
396
|
|
|
397
397
|
// src/reactive-sqlite/hooks/context.tsx
|
|
398
398
|
import { createContext, useContext } from "react";
|
|
399
|
-
import {
|
|
399
|
+
import { jsx } from "react/jsx-runtime";
|
|
400
400
|
var DatabaseContext = createContext(null);
|
|
401
401
|
function DatabaseProvider({ db, children }) {
|
|
402
|
-
return /* @__PURE__ */
|
|
402
|
+
return /* @__PURE__ */ jsx(DatabaseContext.Provider, {
|
|
403
403
|
value: db,
|
|
404
404
|
children
|
|
405
|
-
}
|
|
405
|
+
});
|
|
406
406
|
}
|
|
407
407
|
function useDatabaseOptional() {
|
|
408
408
|
return useContext(DatabaseContext);
|
|
@@ -759,7 +759,7 @@ import { createContext as createContext4, useContext as useContext4, useMemo as
|
|
|
759
759
|
|
|
760
760
|
// src/components/PhaseRegistry.tsx
|
|
761
761
|
import { createContext as createContext3, useContext as useContext3, useRef as useRef5, useCallback as useCallback5, useMemo as useMemo2 } from "react";
|
|
762
|
-
import {
|
|
762
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
763
763
|
var PhaseRegistryContext = createContext3(undefined);
|
|
764
764
|
function usePhaseRegistry() {
|
|
765
765
|
const ctx = useContext3(PhaseRegistryContext);
|
|
@@ -816,10 +816,10 @@ function PhaseRegistryProvider(props) {
|
|
|
816
816
|
isPhaseCompleted,
|
|
817
817
|
totalPhases: phasesRef.current.length
|
|
818
818
|
}), [registerPhase, currentPhaseIndex, advancePhase, isPhaseActive, isPhaseCompleted]);
|
|
819
|
-
return /* @__PURE__ */
|
|
819
|
+
return /* @__PURE__ */ jsx2(PhaseRegistryContext.Provider, {
|
|
820
820
|
value,
|
|
821
821
|
children: props.children
|
|
822
|
-
}
|
|
822
|
+
});
|
|
823
823
|
}
|
|
824
824
|
|
|
825
825
|
// src/hooks/useCaptureRenderFrame.ts
|
|
@@ -1100,7 +1100,7 @@ function clearSnapshotCache() {
|
|
|
1100
1100
|
lastFetchTime = 0;
|
|
1101
1101
|
}
|
|
1102
1102
|
// src/components/SmithersProvider.tsx
|
|
1103
|
-
import {
|
|
1103
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
1104
1104
|
var orchestrationControllers = new Map;
|
|
1105
1105
|
var ORCHESTRATION_CLEANUP_TIMEOUT_MS = 3600000;
|
|
1106
1106
|
var cleanupTimeouts = new Map;
|
|
@@ -1167,10 +1167,10 @@ function ExecutionBoundary(props) {
|
|
|
1167
1167
|
...parent,
|
|
1168
1168
|
executionEnabled: parent.executionEnabled && props.enabled
|
|
1169
1169
|
}), [parent, props.enabled]);
|
|
1170
|
-
return /* @__PURE__ */
|
|
1170
|
+
return /* @__PURE__ */ jsx3(SmithersContext.Provider, {
|
|
1171
1171
|
value: scopedValue,
|
|
1172
1172
|
children: props.children
|
|
1173
|
-
}
|
|
1173
|
+
});
|
|
1174
1174
|
}
|
|
1175
1175
|
function SmithersProvider(props) {
|
|
1176
1176
|
const maxIterations = props.maxIterations ?? props.config?.maxIterations ?? 100;
|
|
@@ -1432,18 +1432,18 @@ function SmithersProvider(props) {
|
|
|
1432
1432
|
console.error("[SmithersProvider] Unexpected cleanup error:", err);
|
|
1433
1433
|
});
|
|
1434
1434
|
});
|
|
1435
|
-
return /* @__PURE__ */
|
|
1435
|
+
return /* @__PURE__ */ jsx3(OrchestrationTokenContext.Provider, {
|
|
1436
1436
|
value: orchestrationToken,
|
|
1437
|
-
children: /* @__PURE__ */
|
|
1437
|
+
children: /* @__PURE__ */ jsx3(SmithersContext.Provider, {
|
|
1438
1438
|
value,
|
|
1439
|
-
children: /* @__PURE__ */
|
|
1439
|
+
children: /* @__PURE__ */ jsx3(DatabaseProvider, {
|
|
1440
1440
|
db: reactiveDb,
|
|
1441
|
-
children: /* @__PURE__ */
|
|
1441
|
+
children: /* @__PURE__ */ jsx3(PhaseRegistryProvider, {
|
|
1442
1442
|
children: props.children
|
|
1443
|
-
}
|
|
1444
|
-
}
|
|
1445
|
-
}
|
|
1446
|
-
}
|
|
1443
|
+
})
|
|
1444
|
+
})
|
|
1445
|
+
})
|
|
1446
|
+
});
|
|
1447
1447
|
}
|
|
1448
1448
|
function useRalph() {
|
|
1449
1449
|
const ctx = useSmithers();
|
|
@@ -1457,14 +1457,14 @@ function useRalph() {
|
|
|
1457
1457
|
|
|
1458
1458
|
// src/components/ExecutionContext.tsx
|
|
1459
1459
|
import { createContext as createContext5, useContext as useContext5 } from "react";
|
|
1460
|
-
import {
|
|
1460
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
1461
1461
|
var ExecutionContext = createContext5({ isActive: true });
|
|
1462
1462
|
function useExecutionContext() {
|
|
1463
1463
|
return useContext5(ExecutionContext);
|
|
1464
1464
|
}
|
|
1465
1465
|
|
|
1466
1466
|
// src/components/Hooks/PostCommit.tsx
|
|
1467
|
-
import {
|
|
1467
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
1468
1468
|
async function installPostCommitHook() {
|
|
1469
1469
|
const hookPath = ".git/hooks/post-commit";
|
|
1470
1470
|
const hookContent = `#!/bin/bash
|
|
@@ -1561,7 +1561,7 @@ function PostCommit(props) {
|
|
|
1561
1561
|
clearInterval(pollIntervalRef.current);
|
|
1562
1562
|
}
|
|
1563
1563
|
});
|
|
1564
|
-
return /* @__PURE__ */
|
|
1564
|
+
return /* @__PURE__ */ jsx5("post-commit-hook", {
|
|
1565
1565
|
installed: hookInstalled,
|
|
1566
1566
|
triggered,
|
|
1567
1567
|
"commit-hash": currentTrigger?.commitHash,
|
|
@@ -1569,11 +1569,11 @@ function PostCommit(props) {
|
|
|
1569
1569
|
async: props.async || false,
|
|
1570
1570
|
error,
|
|
1571
1571
|
children: triggered ? props.children : null
|
|
1572
|
-
}
|
|
1572
|
+
});
|
|
1573
1573
|
}
|
|
1574
1574
|
// src/components/Hooks/OnCIFailure.tsx
|
|
1575
1575
|
import { useRef as useRef8 } from "react";
|
|
1576
|
-
import {
|
|
1576
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
1577
1577
|
async function fetchLatestGitHubActionsRun() {
|
|
1578
1578
|
try {
|
|
1579
1579
|
const result = await Bun.$`gh run list --branch main --limit 1 --json status,conclusion,databaseId,name`.json();
|
|
@@ -1700,7 +1700,7 @@ function OnCIFailure(props) {
|
|
|
1700
1700
|
clearInterval(pollIntervalRef.current);
|
|
1701
1701
|
}
|
|
1702
1702
|
});
|
|
1703
|
-
return /* @__PURE__ */
|
|
1703
|
+
return /* @__PURE__ */ jsx6("ci-failure-hook", {
|
|
1704
1704
|
provider: props.provider,
|
|
1705
1705
|
status: ciStatus,
|
|
1706
1706
|
triggered,
|
|
@@ -1710,7 +1710,7 @@ function OnCIFailure(props) {
|
|
|
1710
1710
|
"poll-interval": intervalMs,
|
|
1711
1711
|
error,
|
|
1712
1712
|
children: triggered ? props.children : null
|
|
1713
|
-
}
|
|
1713
|
+
});
|
|
1714
1714
|
}
|
|
1715
1715
|
export {
|
|
1716
1716
|
PostCommit,
|
|
@@ -396,13 +396,13 @@ function useQueryCache() {
|
|
|
396
396
|
|
|
397
397
|
// src/reactive-sqlite/hooks/context.tsx
|
|
398
398
|
import { createContext, useContext } from "react";
|
|
399
|
-
import {
|
|
399
|
+
import { jsx } from "react/jsx-runtime";
|
|
400
400
|
var DatabaseContext = createContext(null);
|
|
401
401
|
function DatabaseProvider({ db, children }) {
|
|
402
|
-
return /* @__PURE__ */
|
|
402
|
+
return /* @__PURE__ */ jsx(DatabaseContext.Provider, {
|
|
403
403
|
value: db,
|
|
404
404
|
children
|
|
405
|
-
}
|
|
405
|
+
});
|
|
406
406
|
}
|
|
407
407
|
function useDatabaseOptional() {
|
|
408
408
|
return useContext(DatabaseContext);
|
|
@@ -759,7 +759,7 @@ import { createContext as createContext4, useContext as useContext4, useMemo as
|
|
|
759
759
|
|
|
760
760
|
// src/components/PhaseRegistry.tsx
|
|
761
761
|
import { createContext as createContext3, useContext as useContext3, useRef as useRef5, useCallback as useCallback5, useMemo as useMemo2 } from "react";
|
|
762
|
-
import {
|
|
762
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
763
763
|
var PhaseRegistryContext = createContext3(undefined);
|
|
764
764
|
function usePhaseRegistry() {
|
|
765
765
|
const ctx = useContext3(PhaseRegistryContext);
|
|
@@ -816,10 +816,10 @@ function PhaseRegistryProvider(props) {
|
|
|
816
816
|
isPhaseCompleted,
|
|
817
817
|
totalPhases: phasesRef.current.length
|
|
818
818
|
}), [registerPhase, currentPhaseIndex, advancePhase, isPhaseActive, isPhaseCompleted]);
|
|
819
|
-
return /* @__PURE__ */
|
|
819
|
+
return /* @__PURE__ */ jsx2(PhaseRegistryContext.Provider, {
|
|
820
820
|
value,
|
|
821
821
|
children: props.children
|
|
822
|
-
}
|
|
822
|
+
});
|
|
823
823
|
}
|
|
824
824
|
|
|
825
825
|
// src/hooks/useCaptureRenderFrame.ts
|
|
@@ -1100,7 +1100,7 @@ function clearSnapshotCache() {
|
|
|
1100
1100
|
lastFetchTime = 0;
|
|
1101
1101
|
}
|
|
1102
1102
|
// src/components/SmithersProvider.tsx
|
|
1103
|
-
import {
|
|
1103
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
1104
1104
|
var orchestrationControllers = new Map;
|
|
1105
1105
|
var ORCHESTRATION_CLEANUP_TIMEOUT_MS = 3600000;
|
|
1106
1106
|
var cleanupTimeouts = new Map;
|
|
@@ -1167,10 +1167,10 @@ function ExecutionBoundary(props) {
|
|
|
1167
1167
|
...parent,
|
|
1168
1168
|
executionEnabled: parent.executionEnabled && props.enabled
|
|
1169
1169
|
}), [parent, props.enabled]);
|
|
1170
|
-
return /* @__PURE__ */
|
|
1170
|
+
return /* @__PURE__ */ jsx3(SmithersContext.Provider, {
|
|
1171
1171
|
value: scopedValue,
|
|
1172
1172
|
children: props.children
|
|
1173
|
-
}
|
|
1173
|
+
});
|
|
1174
1174
|
}
|
|
1175
1175
|
function SmithersProvider(props) {
|
|
1176
1176
|
const maxIterations = props.maxIterations ?? props.config?.maxIterations ?? 100;
|
|
@@ -1432,18 +1432,18 @@ function SmithersProvider(props) {
|
|
|
1432
1432
|
console.error("[SmithersProvider] Unexpected cleanup error:", err);
|
|
1433
1433
|
});
|
|
1434
1434
|
});
|
|
1435
|
-
return /* @__PURE__ */
|
|
1435
|
+
return /* @__PURE__ */ jsx3(OrchestrationTokenContext.Provider, {
|
|
1436
1436
|
value: orchestrationToken,
|
|
1437
|
-
children: /* @__PURE__ */
|
|
1437
|
+
children: /* @__PURE__ */ jsx3(SmithersContext.Provider, {
|
|
1438
1438
|
value,
|
|
1439
|
-
children: /* @__PURE__ */
|
|
1439
|
+
children: /* @__PURE__ */ jsx3(DatabaseProvider, {
|
|
1440
1440
|
db: reactiveDb,
|
|
1441
|
-
children: /* @__PURE__ */
|
|
1441
|
+
children: /* @__PURE__ */ jsx3(PhaseRegistryProvider, {
|
|
1442
1442
|
children: props.children
|
|
1443
|
-
}
|
|
1444
|
-
}
|
|
1445
|
-
}
|
|
1446
|
-
}
|
|
1443
|
+
})
|
|
1444
|
+
})
|
|
1445
|
+
})
|
|
1446
|
+
});
|
|
1447
1447
|
}
|
|
1448
1448
|
function useRalph() {
|
|
1449
1449
|
const ctx = useSmithers();
|
|
@@ -1457,14 +1457,14 @@ function useRalph() {
|
|
|
1457
1457
|
|
|
1458
1458
|
// src/components/ExecutionContext.tsx
|
|
1459
1459
|
import { createContext as createContext5, useContext as useContext5 } from "react";
|
|
1460
|
-
import {
|
|
1460
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
1461
1461
|
var ExecutionContext = createContext5({ isActive: true });
|
|
1462
1462
|
function useExecutionContext() {
|
|
1463
1463
|
return useContext5(ExecutionContext);
|
|
1464
1464
|
}
|
|
1465
1465
|
|
|
1466
1466
|
// src/components/JJ/Snapshot.tsx
|
|
1467
|
-
import {
|
|
1467
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
1468
1468
|
function Snapshot(props) {
|
|
1469
1469
|
const smithers = useSmithers();
|
|
1470
1470
|
const execution = useExecutionContext();
|
|
@@ -1510,17 +1510,17 @@ function Snapshot(props) {
|
|
|
1510
1510
|
}
|
|
1511
1511
|
})();
|
|
1512
1512
|
}, [props.message, smithers]);
|
|
1513
|
-
return /* @__PURE__ */
|
|
1513
|
+
return /* @__PURE__ */ jsx5("jj-snapshot", {
|
|
1514
1514
|
status: statusRef.current,
|
|
1515
1515
|
"change-id": changeIdRef.current,
|
|
1516
1516
|
error: errorRef.current?.message,
|
|
1517
1517
|
message: props.message,
|
|
1518
1518
|
children: props.children
|
|
1519
|
-
}
|
|
1519
|
+
});
|
|
1520
1520
|
}
|
|
1521
1521
|
// src/components/JJ/Commit.tsx
|
|
1522
1522
|
import { useRef as useRef8, useReducer as useReducer2 } from "react";
|
|
1523
|
-
import {
|
|
1523
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
1524
1524
|
function Commit(props) {
|
|
1525
1525
|
const smithers = useSmithers();
|
|
1526
1526
|
const execution = useExecutionContext();
|
|
@@ -1584,7 +1584,7 @@ function Commit(props) {
|
|
|
1584
1584
|
}
|
|
1585
1585
|
})();
|
|
1586
1586
|
}, [props.autoDescribe, props.message, props.notes, smithers]);
|
|
1587
|
-
return /* @__PURE__ */
|
|
1587
|
+
return /* @__PURE__ */ jsx6("jj-commit", {
|
|
1588
1588
|
status: statusRef.current,
|
|
1589
1589
|
"commit-hash": commitHashRef.current,
|
|
1590
1590
|
"change-id": changeIdRef.current,
|
|
@@ -1592,11 +1592,11 @@ function Commit(props) {
|
|
|
1592
1592
|
message: props.message,
|
|
1593
1593
|
"auto-describe": props.autoDescribe,
|
|
1594
1594
|
children: props.children
|
|
1595
|
-
}
|
|
1595
|
+
});
|
|
1596
1596
|
}
|
|
1597
1597
|
// src/components/JJ/Describe.tsx
|
|
1598
1598
|
import { useRef as useRef9, useReducer as useReducer3 } from "react";
|
|
1599
|
-
import {
|
|
1599
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
1600
1600
|
function Describe(props) {
|
|
1601
1601
|
const smithers = useSmithers();
|
|
1602
1602
|
const execution = useExecutionContext();
|
|
@@ -1645,18 +1645,18 @@ function Describe(props) {
|
|
|
1645
1645
|
}
|
|
1646
1646
|
})();
|
|
1647
1647
|
}, [props.template, props.useAgent, smithers]);
|
|
1648
|
-
return /* @__PURE__ */
|
|
1648
|
+
return /* @__PURE__ */ jsx7("jj-describe", {
|
|
1649
1649
|
status: statusRef.current,
|
|
1650
1650
|
description: descriptionRef.current,
|
|
1651
1651
|
error: errorRef.current?.message,
|
|
1652
1652
|
"use-agent": props.useAgent,
|
|
1653
1653
|
template: props.template,
|
|
1654
1654
|
children: props.children
|
|
1655
|
-
}
|
|
1655
|
+
});
|
|
1656
1656
|
}
|
|
1657
1657
|
// src/components/JJ/Status.tsx
|
|
1658
1658
|
import { useRef as useRef10, useReducer as useReducer4 } from "react";
|
|
1659
|
-
import {
|
|
1659
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
1660
1660
|
function Status(props) {
|
|
1661
1661
|
const smithers = useSmithers();
|
|
1662
1662
|
const execution = useExecutionContext();
|
|
@@ -1711,7 +1711,7 @@ function Status(props) {
|
|
|
1711
1711
|
}
|
|
1712
1712
|
})();
|
|
1713
1713
|
}, [props.onClean, props.onDirty, smithers]);
|
|
1714
|
-
return /* @__PURE__ */
|
|
1714
|
+
return /* @__PURE__ */ jsx8("jj-status", {
|
|
1715
1715
|
status: statusRef.current,
|
|
1716
1716
|
"is-dirty": isDirtyRef.current,
|
|
1717
1717
|
modified: fileStatusRef.current?.modified?.join(","),
|
|
@@ -1719,11 +1719,11 @@ function Status(props) {
|
|
|
1719
1719
|
deleted: fileStatusRef.current?.deleted?.join(","),
|
|
1720
1720
|
error: errorRef.current?.message,
|
|
1721
1721
|
children: props.children
|
|
1722
|
-
}
|
|
1722
|
+
});
|
|
1723
1723
|
}
|
|
1724
1724
|
// src/components/JJ/Rebase.tsx
|
|
1725
1725
|
import { useRef as useRef11, useReducer as useReducer5 } from "react";
|
|
1726
|
-
import {
|
|
1726
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
1727
1727
|
function parseConflicts(output) {
|
|
1728
1728
|
const conflicts = [];
|
|
1729
1729
|
const lines = output.split(`
|
|
@@ -1838,14 +1838,14 @@ function Rebase(props) {
|
|
|
1838
1838
|
}
|
|
1839
1839
|
})();
|
|
1840
1840
|
}, [props.destination, props.onConflict, props.source, smithers]);
|
|
1841
|
-
return /* @__PURE__ */
|
|
1841
|
+
return /* @__PURE__ */ jsx9("jj-rebase", {
|
|
1842
1842
|
status: statusRef.current,
|
|
1843
1843
|
destination: props.destination,
|
|
1844
1844
|
source: props.source,
|
|
1845
1845
|
conflicts: conflictsRef.current.join(","),
|
|
1846
1846
|
error: errorRef.current?.message,
|
|
1847
1847
|
children: props.children
|
|
1848
|
-
}
|
|
1848
|
+
});
|
|
1849
1849
|
}
|
|
1850
1850
|
export {
|
|
1851
1851
|
useSnapshot,
|
|
@@ -27,17 +27,17 @@ var __export = (target, all) => {
|
|
|
27
27
|
var __require = import.meta.require;
|
|
28
28
|
|
|
29
29
|
// src/components/MCP/Sqlite.tsx
|
|
30
|
-
import {
|
|
30
|
+
import { jsx } from "react/jsx-runtime";
|
|
31
31
|
function Sqlite(props) {
|
|
32
32
|
const config = JSON.stringify({
|
|
33
33
|
path: props.path,
|
|
34
34
|
readOnly: props.readOnly ?? false
|
|
35
35
|
});
|
|
36
|
-
return /* @__PURE__ */
|
|
36
|
+
return /* @__PURE__ */ jsx("mcp-tool", {
|
|
37
37
|
type: "sqlite",
|
|
38
38
|
config,
|
|
39
39
|
children: props.children
|
|
40
|
-
}
|
|
40
|
+
});
|
|
41
41
|
}
|
|
42
42
|
export {
|
|
43
43
|
Sqlite
|