@canonical/summon 0.15.1 → 0.16.0-experimental.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canonical/summon",
|
|
3
3
|
"description": "A monadic task-centric code generator framework with React Ink CLI.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.16.0-experimental.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "src/index.ts",
|
|
7
7
|
"types": "src/index.ts",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"test:coverage": "vitest run --coverage"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@biomejs/biome": "2.
|
|
43
|
-
"@canonical/biome-config": "^0.
|
|
44
|
-
"@canonical/typescript-config": "^0.
|
|
45
|
-
"@canonical/webarchitect": "^0.
|
|
42
|
+
"@biomejs/biome": "2.4.5",
|
|
43
|
+
"@canonical/biome-config": "^0.16.0-experimental.1",
|
|
44
|
+
"@canonical/typescript-config": "^0.16.0-experimental.1",
|
|
45
|
+
"@canonical/webarchitect": "^0.16.0-experimental.1",
|
|
46
46
|
"@types/bun": "^1.3.8",
|
|
47
47
|
"@types/ejs": "^3.1.5",
|
|
48
48
|
"@types/node": "^24.10.13",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"omelette": "^0.4.17",
|
|
64
64
|
"react": "^19.2.4"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "b29a336dd55f28373a36fe4736f547296c734c3c"
|
|
67
67
|
}
|
package/src/components/App.tsx
CHANGED
|
@@ -223,7 +223,7 @@ const EffectTreeSection = ({
|
|
|
223
223
|
<Box flexDirection="column" marginLeft={1}>
|
|
224
224
|
{effects.map((effect, index) => (
|
|
225
225
|
<EffectTreeRow
|
|
226
|
-
key={`${effect._tag}
|
|
226
|
+
key={`${effect._tag}:${getEffectPayload(effect)}`}
|
|
227
227
|
effect={effect}
|
|
228
228
|
isLast={index === effects.length - 1}
|
|
229
229
|
/>
|
|
@@ -73,7 +73,7 @@ export const FileTreePreview = ({
|
|
|
73
73
|
{title}
|
|
74
74
|
</Text>
|
|
75
75
|
<Box marginLeft={1} flexDirection="column">
|
|
76
|
-
{fileEffects.map((info
|
|
76
|
+
{fileEffects.map((info) => {
|
|
77
77
|
const actionColor =
|
|
78
78
|
info.action === "delete" || info.action === "rmdir"
|
|
79
79
|
? "red"
|
|
@@ -82,7 +82,7 @@ export const FileTreePreview = ({
|
|
|
82
82
|
info.action === "delete" || info.action === "rmdir" ? "-" : "+";
|
|
83
83
|
|
|
84
84
|
return (
|
|
85
|
-
<Box key={
|
|
85
|
+
<Box key={info.path}>
|
|
86
86
|
<Text color={actionColor}>{actionIcon} </Text>
|
|
87
87
|
<Text>{info.path}</Text>
|
|
88
88
|
{info.size !== undefined && (
|