@akanjs/cli 3.1.2-rc.1 → 3.1.2-rc.2
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/.build-stamp +1 -1
- package/{CodeAgent-dyc45f5w.js → CodeAgent-nkk70v5h.js} +2 -2
- package/{CodeTui-q55b2zrn.js → CodeTui-sdqz2gxb.js} +1 -1
- package/{agent.command-20zaqe60.js → agent.command-5gfrfh8d.js} +7 -7
- package/akanCode.js +2 -2
- package/{code.command-625bg8s8.js → code.command-5djp5c0n.js} +4 -4
- package/{context.command-p6haqjay.js → context.command-5d0bscv6.js} +11 -11
- package/{context.runner-rsnqnk9j.js → context.runner-2v5pq18d.js} +10 -10
- package/{index-hm0tn7qv.js → index-1404hqcj.js} +102 -4
- package/{index-t1t9wq9a.js → index-19cspack.js} +1 -1
- package/{index-a1vb3x7t.js → index-3q4kkyd4.js} +3 -3
- package/{index-cjmjvg4r.js → index-chjaw222.js} +2 -2
- package/{index-j7hwy56s.js → index-dbxac7mz.js} +1 -1
- package/{index-qw6814m4.js → index-f6zrhcnk.js} +7 -5
- package/index-gf4fcw1n.js +876 -0
- package/{index-fbewhg4g.js → index-k64mhwbw.js} +60 -1
- package/{index-2phm56a1.js → index-ms1am2wr.js} +2 -2
- package/{index-raz588b3.js → index-mzjwq4dd.js} +8 -7
- package/{index-jc2zbwra.js → index-pnk67cqd.js} +1 -1
- package/{index-g841cap9.js → index-pqdyyxz0.js} +23 -2
- package/{index-tgqameyb.js → index-q9q6jjk1.js} +3 -3
- package/{index-7apsdr5g.js → index-tw27n941.js} +1 -1
- package/{index-fhw7yq2d.js → index-tyt7cw99.js} +3 -3
- package/{index-1qsd8ft1.js → index-yep9xcz0.js} +1 -1
- package/index.js +11 -11
- package/{module.command-r4sa2khp.js → module.command-myykfb6s.js} +3 -3
- package/package.json +2 -2
- package/{primitive.command-dfsv4mpe.js → primitive.command-eg2c3m97.js} +4 -4
- package/{quality.command-webzxee2.js → quality.command-b840977n.js} +3 -3
- package/{repair.command-3r3j1xre.js → repair.command-r7z709yf.js} +4 -4
- package/{scalar.command-e8y47j6d.js → scalar.command-t6hhty3f.js} +3 -3
- package/skills/akan-scaffold/SKILL.md +1 -0
- package/{verify.command-yyepccbh.js → verify.command-07fqhpak.js} +4 -4
- package/{workflow.command-z5pg9ay0.js → workflow.command-c2jhzf7v.js} +13 -11
- package/{workspace.command-d7x5jttw.js → workspace.command-gv20zq1z.js} +14 -14
- package/index-2nxk8wgs.js +0 -266
|
@@ -575,6 +575,64 @@ var createUiWorkflowSpec = {
|
|
|
575
575
|
completionCriteria: ["Requested UI surface exists.", "UI barrels are refreshed.", "Lint passes."]
|
|
576
576
|
};
|
|
577
577
|
|
|
578
|
+
// pkgs/@akanjs/cli/workflows/renameKey.ts
|
|
579
|
+
var renameKeyWorkflowSpec = {
|
|
580
|
+
schemaVersion: 1,
|
|
581
|
+
name: "rename-key",
|
|
582
|
+
description: "Rename a slice key or a Filter query key together with every name derived from it.",
|
|
583
|
+
whenToUse: "Use when the user renames a slice (inPublic) or a query (byName). A field, method or endpoint keeps its name in every use, so TypeScript's rename covers it.",
|
|
584
|
+
inputs: {
|
|
585
|
+
...sysInputs,
|
|
586
|
+
...moduleInput,
|
|
587
|
+
slice: { type: "string", description: "Slice key to rename; give this or query." },
|
|
588
|
+
query: { type: "string", description: "Filter query key to rename; give this or slice." },
|
|
589
|
+
to: { type: "string", required: true, description: "New key, camelCase." }
|
|
590
|
+
},
|
|
591
|
+
steps: [
|
|
592
|
+
inspectModuleStep("Index the workspace and find the key with every derived name that resolves to it."),
|
|
593
|
+
{
|
|
594
|
+
id: "rename-key",
|
|
595
|
+
title: "Rename key",
|
|
596
|
+
tool: "renameKey",
|
|
597
|
+
description: "Rewrite the key, its derived names in the app and every lib, and its module dictionary entry. A use that could also be another model's is left for the typecheck to report."
|
|
598
|
+
},
|
|
599
|
+
syncGeneratedStep("Refresh generated files after the rename."),
|
|
600
|
+
validateTarget
|
|
601
|
+
],
|
|
602
|
+
predictedChanges: [
|
|
603
|
+
{
|
|
604
|
+
target: "*/lib/<module>/<module>.signal.ts",
|
|
605
|
+
action: "modify",
|
|
606
|
+
applyScope: "auto",
|
|
607
|
+
reason: "The slice key is renamed."
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
target: "*/lib/<module>/<module>.document.ts",
|
|
611
|
+
action: "modify",
|
|
612
|
+
applyScope: "auto",
|
|
613
|
+
reason: "The Filter query key is renamed."
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
target: "*/lib/<module>/<module>.dictionary.ts",
|
|
617
|
+
action: "modify",
|
|
618
|
+
applyScope: "auto",
|
|
619
|
+
reason: "The key's dictionary entry is renamed."
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
target: "{apps,libs}/**/*.{ts,tsx}",
|
|
623
|
+
action: "modify",
|
|
624
|
+
applyScope: "auto",
|
|
625
|
+
reason: "Derived names (initMemoInPublic, listByName) follow the new key."
|
|
626
|
+
},
|
|
627
|
+
{ target: "*/lib/sig.ts", action: "sync", reason: "Generated signal barrel may change after sync." }
|
|
628
|
+
],
|
|
629
|
+
validation: baseValidation,
|
|
630
|
+
completionCriteria: [
|
|
631
|
+
"The key and every derived name use the new key.",
|
|
632
|
+
"Validation passes, so no use the rename left behind still names the old key."
|
|
633
|
+
]
|
|
634
|
+
};
|
|
635
|
+
|
|
578
636
|
// pkgs/@akanjs/cli/workflows/index.ts
|
|
579
637
|
var workflowSpecs = [
|
|
580
638
|
createModuleWorkflowSpec,
|
|
@@ -584,7 +642,8 @@ var workflowSpecs = [
|
|
|
584
642
|
addFieldWorkflowSpec,
|
|
585
643
|
addEnumFieldWorkflowSpec,
|
|
586
644
|
addMutationWorkflowSpec,
|
|
587
|
-
addSliceWorkflowSpec
|
|
645
|
+
addSliceWorkflowSpec,
|
|
646
|
+
renameKeyWorkflowSpec
|
|
588
647
|
];
|
|
589
648
|
|
|
590
649
|
export { sysInputs, workflowSpecs };
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
isWorkflowSysName,
|
|
8
8
|
isWorkflowModuleName,
|
|
9
9
|
renderRepairReport
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-1404hqcj.js";
|
|
11
11
|
import {
|
|
12
12
|
AkanContextAnalyzer
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-dbxac7mz.js";
|
|
14
14
|
import {
|
|
15
15
|
runner
|
|
16
16
|
} from "./index-9zy8479y.js";
|
|
@@ -26,30 +26,30 @@ import {
|
|
|
26
26
|
renderWorkflowApply,
|
|
27
27
|
renderWorkflowValidation,
|
|
28
28
|
renderWorkflowRunArtifact
|
|
29
|
-
} from "./index-
|
|
29
|
+
} from "./index-1404hqcj.js";
|
|
30
30
|
import {
|
|
31
31
|
AkanContextAnalyzer
|
|
32
|
-
} from "./index-
|
|
32
|
+
} from "./index-dbxac7mz.js";
|
|
33
33
|
import {
|
|
34
34
|
CommandContainer,
|
|
35
35
|
runner
|
|
36
36
|
} from "./index-9zy8479y.js";
|
|
37
37
|
import {
|
|
38
38
|
ModuleScript
|
|
39
|
-
} from "./index-
|
|
39
|
+
} from "./index-19cspack.js";
|
|
40
40
|
import {
|
|
41
41
|
PrimitiveScript
|
|
42
|
-
} from "./index-
|
|
42
|
+
} from "./index-pqdyyxz0.js";
|
|
43
43
|
import {
|
|
44
44
|
spawnAkan,
|
|
45
45
|
isWorkspaceTarget
|
|
46
|
-
} from "./index-
|
|
46
|
+
} from "./index-ms1am2wr.js";
|
|
47
47
|
import {
|
|
48
48
|
ScalarScript
|
|
49
|
-
} from "./index-
|
|
49
|
+
} from "./index-pnk67cqd.js";
|
|
50
50
|
import {
|
|
51
51
|
workflowSpecs
|
|
52
|
-
} from "./index-
|
|
52
|
+
} from "./index-k64mhwbw.js";
|
|
53
53
|
|
|
54
54
|
// pkgs/@akanjs/cli/workflow/workflow.runner.ts
|
|
55
55
|
import { mkdir, readFile, writeFile } from "fs/promises";
|
|
@@ -248,6 +248,7 @@ class WorkflowRunner extends runner("workflow") {
|
|
|
248
248
|
addEnumField: (input) => CommandContainer.get(PrimitiveScript).addEnumField(workspace, input),
|
|
249
249
|
addMutation: (input) => CommandContainer.get(PrimitiveScript).addMutation(workspace, input),
|
|
250
250
|
addSlice: (input) => CommandContainer.get(PrimitiveScript).addSlice(workspace, input),
|
|
251
|
+
renameKey: (input) => CommandContainer.get(PrimitiveScript).renameKey(workspace, input),
|
|
251
252
|
createInteraction: (input) => CommandContainer.get(PrimitiveScript).createInteraction(workspace, input)
|
|
252
253
|
});
|
|
253
254
|
}
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
InteractionScaffold,
|
|
12
12
|
workflowStatus,
|
|
13
13
|
compactDiagnostics,
|
|
14
|
+
generatedFilePathsForTarget,
|
|
14
15
|
sourceFile,
|
|
15
16
|
moduleComponentName,
|
|
16
17
|
moduleSourcePaths,
|
|
@@ -42,11 +43,12 @@ import {
|
|
|
42
43
|
hasSignalFactoryEntry,
|
|
43
44
|
insertSignalFactoryEntry,
|
|
44
45
|
addFieldUiPolicyForType,
|
|
46
|
+
KeyRename,
|
|
45
47
|
MutationScaffold
|
|
46
|
-
} from "./index-
|
|
48
|
+
} from "./index-1404hqcj.js";
|
|
47
49
|
import {
|
|
48
50
|
ModuleScript
|
|
49
|
-
} from "./index-
|
|
51
|
+
} from "./index-19cspack.js";
|
|
50
52
|
|
|
51
53
|
// pkgs/@akanjs/cli/primitive/primitive.script.ts
|
|
52
54
|
import { capitalize, lowerlize } from "akanjs/common";
|
|
@@ -323,6 +325,25 @@ class PrimitiveScript extends script("primitive", [ModuleScript]) {
|
|
|
323
325
|
} : null
|
|
324
326
|
});
|
|
325
327
|
}
|
|
328
|
+
async renameKey(workspace, input) {
|
|
329
|
+
const { diagnostics, files } = await KeyRename.build(workspace, input);
|
|
330
|
+
const changedFiles = [];
|
|
331
|
+
if (workflowStatus(diagnostics) === "passed")
|
|
332
|
+
for (const file of files) {
|
|
333
|
+
await workspace.writeFile(file.path, file.content, { silent: true });
|
|
334
|
+
changedFiles.push({ path: file.path, action: file.action, reason: file.reason });
|
|
335
|
+
}
|
|
336
|
+
const targets = KeyRename.targetsOf(changedFiles);
|
|
337
|
+
const names = targets.map((target) => target.slice(target.indexOf("/") + 1));
|
|
338
|
+
return createPrimitiveWriteReport({
|
|
339
|
+
command: "rename-key",
|
|
340
|
+
changedFiles,
|
|
341
|
+
generatedFiles: targets.flatMap((target) => generatedFilePathsForTarget(target, "Generated files may change after sync.")),
|
|
342
|
+
validationCommands: names.flatMap(validationCommandsForTarget),
|
|
343
|
+
diagnostics,
|
|
344
|
+
nextActions: names.flatMap(nextActionsForTarget)
|
|
345
|
+
});
|
|
346
|
+
}
|
|
326
347
|
async#writeServiceSignalEntry(workspace, spec) {
|
|
327
348
|
const sys = await this.resolveSys(workspace, spec.app);
|
|
328
349
|
const diagnostics = compactDiagnostics([
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
jsonText
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-1404hqcj.js";
|
|
5
5
|
import {
|
|
6
6
|
akanMcpInstallTargets
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-dbxac7mz.js";
|
|
8
8
|
import {
|
|
9
9
|
script
|
|
10
10
|
} from "./index-9zy8479y.js";
|
|
11
11
|
import {
|
|
12
12
|
ContextRunner2
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-f6zrhcnk.js";
|
|
14
14
|
|
|
15
15
|
// pkgs/@akanjs/cli/context/context.script.ts
|
|
16
16
|
import { Logger } from "akanjs/common";
|
|
@@ -29,19 +29,19 @@ import {
|
|
|
29
29
|
} from "./index-hj6w4ka1.js";
|
|
30
30
|
import {
|
|
31
31
|
AkanContextAnalyzer
|
|
32
|
-
} from "./index-
|
|
32
|
+
} from "./index-dbxac7mz.js";
|
|
33
33
|
import {
|
|
34
34
|
ApplicationRunner,
|
|
35
35
|
VerifyScope
|
|
36
36
|
} from "./index-2mwjshz5.js";
|
|
37
37
|
import {
|
|
38
38
|
WorkspaceRunner
|
|
39
|
-
} from "./index-
|
|
39
|
+
} from "./index-chjaw222.js";
|
|
40
40
|
import {
|
|
41
41
|
VerifyComments,
|
|
42
42
|
VerifyPipeline,
|
|
43
43
|
VerifyReport
|
|
44
|
-
} from "./index-
|
|
44
|
+
} from "./index-tw27n941.js";
|
|
45
45
|
|
|
46
46
|
// pkgs/@akanjs/cli/agent/agent.script.ts
|
|
47
47
|
import { Logger as Logger3 } from "akanjs/common";
|
|
@@ -157,7 +157,7 @@ class SubagentPool2 {
|
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
async#run(id, kind, prompt, signal) {
|
|
160
|
-
const { CodeAgent } = await import("./CodeAgent-
|
|
160
|
+
const { CodeAgent } = await import("./CodeAgent-nkk70v5h.js");
|
|
161
161
|
const budget = this.#options.parent.tools.subagent;
|
|
162
162
|
const child = SubagentPool2.childOf(this.#options.parent, kind);
|
|
163
163
|
const model = this.#options.model?.();
|
package/index.js
CHANGED
|
@@ -22,25 +22,25 @@ import path from "path";
|
|
|
22
22
|
|
|
23
23
|
// pkgs/@akanjs/cli/commandModules.ts
|
|
24
24
|
var commandModules = {
|
|
25
|
-
workspace: async () => (await import("./workspace.command-
|
|
26
|
-
agent: async () => (await import("./agent.command-
|
|
27
|
-
code: async () => (await import("./code.command-
|
|
25
|
+
workspace: async () => (await import("./workspace.command-gv20zq1z.js")).WorkspaceCommand,
|
|
26
|
+
agent: async () => (await import("./agent.command-5gfrfh8d.js")).AgentCommand,
|
|
27
|
+
code: async () => (await import("./code.command-5djp5c0n.js")).CodeCommand,
|
|
28
28
|
application: async () => (await import("./application.command-nd0fshsk.js")).ApplicationCommand,
|
|
29
29
|
library: async () => (await import("./library.command-63hgt9te.js")).LibraryCommand,
|
|
30
30
|
localRegistry: async () => (await import("./localRegistry.command-g3f8k25t.js")).LocalRegistryCommand,
|
|
31
31
|
package: async () => (await import("./package.command-96eheyvd.js")).PackageCommand,
|
|
32
|
-
module: async () => (await import("./module.command-
|
|
32
|
+
module: async () => (await import("./module.command-myykfb6s.js")).ModuleCommand,
|
|
33
33
|
page: async () => (await import("./page.command-gs6d841d.js")).PageCommand,
|
|
34
|
-
context: async () => (await import("./context.command-
|
|
34
|
+
context: async () => (await import("./context.command-5d0bscv6.js")).ContextCommand,
|
|
35
35
|
cloud: async () => (await import("./cloud.command-8kbddsz9.js")).CloudCommand,
|
|
36
36
|
subspace: async () => (await import("./subspace.command-a1sf9n5a.js")).SubspaceCommand,
|
|
37
37
|
guideline: async () => (await import("./guideline.command-195g0h9a.js")).GuidelineCommand,
|
|
38
|
-
scalar: async () => (await import("./scalar.command-
|
|
39
|
-
primitive: async () => (await import("./primitive.command-
|
|
40
|
-
quality: async () => (await import("./quality.command-
|
|
41
|
-
verify: async () => (await import("./verify.command-
|
|
42
|
-
repair: async () => (await import("./repair.command-
|
|
43
|
-
workflow: async () => (await import("./workflow.command-
|
|
38
|
+
scalar: async () => (await import("./scalar.command-t6hhty3f.js")).ScalarCommand,
|
|
39
|
+
primitive: async () => (await import("./primitive.command-eg2c3m97.js")).PrimitiveCommand,
|
|
40
|
+
quality: async () => (await import("./quality.command-b840977n.js")).QualityCommand,
|
|
41
|
+
verify: async () => (await import("./verify.command-07fqhpak.js")).VerifyCommand,
|
|
42
|
+
repair: async () => (await import("./repair.command-r7z709yf.js")).RepairCommand,
|
|
43
|
+
workflow: async () => (await import("./workflow.command-c2jhzf7v.js")).WorkflowCommand,
|
|
44
44
|
pipeline: async () => (await import("./pipeline.command-wdfvdbfj.js")).PipelineCommand,
|
|
45
45
|
tunnel: async () => (await import("./tunnel.command-dcb0wg93.js")).TunnelCommand
|
|
46
46
|
};
|
|
@@ -8,12 +8,12 @@ import"./index-bns3wcpc.js";
|
|
|
8
8
|
import"./index-g500c5j9.js";
|
|
9
9
|
import {
|
|
10
10
|
renderPrimitiveReport
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
11
|
+
} from "./index-1404hqcj.js";
|
|
12
|
+
import"./index-gf4fcw1n.js";
|
|
13
13
|
import"./index-khk05tsf.js";
|
|
14
14
|
import {
|
|
15
15
|
ModuleScript
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-19cspack.js";
|
|
17
17
|
|
|
18
18
|
// pkgs/@akanjs/cli/module/module.command.ts
|
|
19
19
|
import { Logger, lowerlize } from "akanjs/common";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akanjs/cli",
|
|
3
|
-
"version": "3.1.2-rc.
|
|
3
|
+
"version": "3.1.2-rc.2",
|
|
4
4
|
"sourceType": "module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@earendil-works/pi-tui": "1.3.0",
|
|
40
40
|
"@inquirer/prompts": "^8.7.3",
|
|
41
41
|
"@tailwindcss/node": "^4.3.3",
|
|
42
|
-
"akanjs": "3.1.2-rc.
|
|
42
|
+
"akanjs": "3.1.2-rc.2",
|
|
43
43
|
"chalk": "^6.0.1",
|
|
44
44
|
"commander": "^15.0.0",
|
|
45
45
|
"dayjs": "^1.11.23",
|
|
@@ -7,13 +7,13 @@ import"./index-bns3wcpc.js";
|
|
|
7
7
|
import"./index-g500c5j9.js";
|
|
8
8
|
import {
|
|
9
9
|
renderPrimitiveReport
|
|
10
|
-
} from "./index-
|
|
11
|
-
import"./index-
|
|
10
|
+
} from "./index-1404hqcj.js";
|
|
11
|
+
import"./index-gf4fcw1n.js";
|
|
12
12
|
import"./index-khk05tsf.js";
|
|
13
|
-
import"./index-
|
|
13
|
+
import"./index-19cspack.js";
|
|
14
14
|
import {
|
|
15
15
|
PrimitiveScript
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-pqdyyxz0.js";
|
|
17
17
|
|
|
18
18
|
// pkgs/@akanjs/cli/primitive/primitive.command.ts
|
|
19
19
|
import { Logger } from "akanjs/common";
|
|
@@ -15,12 +15,12 @@ import {
|
|
|
15
15
|
AkanQualityScanner,
|
|
16
16
|
formatQualityScanResult,
|
|
17
17
|
formatSsrScanResult
|
|
18
|
-
} from "./index-
|
|
19
|
-
import"./index-
|
|
18
|
+
} from "./index-chjaw222.js";
|
|
19
|
+
import"./index-gf4fcw1n.js";
|
|
20
20
|
import"./index-62md4dwy.js";
|
|
21
21
|
import"./index-hj6w4ka1.js";
|
|
22
22
|
import"./index-4am4dvmf.js";
|
|
23
|
-
import"./index-
|
|
23
|
+
import"./index-k64mhwbw.js";
|
|
24
24
|
|
|
25
25
|
// pkgs/@akanjs/cli/quality/quality.script.ts
|
|
26
26
|
import { Logger } from "akanjs/common";
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
import"./index-bns3wcpc.js";
|
|
8
8
|
import"./index-g500c5j9.js";
|
|
9
9
|
import"./index-hj6w4ka1.js";
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
10
|
+
import"./index-1404hqcj.js";
|
|
11
|
+
import"./index-gf4fcw1n.js";
|
|
12
|
+
import"./index-dbxac7mz.js";
|
|
13
13
|
import {
|
|
14
14
|
RepairRunner
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-ms1am2wr.js";
|
|
16
16
|
|
|
17
17
|
// pkgs/@akanjs/cli/repair/repair.script.ts
|
|
18
18
|
import { Logger } from "akanjs/common";
|
|
@@ -7,11 +7,11 @@ import"./index-bns3wcpc.js";
|
|
|
7
7
|
import"./index-g500c5j9.js";
|
|
8
8
|
import {
|
|
9
9
|
renderPrimitiveReport
|
|
10
|
-
} from "./index-
|
|
11
|
-
import"./index-
|
|
10
|
+
} from "./index-1404hqcj.js";
|
|
11
|
+
import"./index-gf4fcw1n.js";
|
|
12
12
|
import {
|
|
13
13
|
ScalarScript
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-pnk67cqd.js";
|
|
15
15
|
|
|
16
16
|
// pkgs/@akanjs/cli/scalar/scalar.command.ts
|
|
17
17
|
import { Logger, lowerlize } from "akanjs/common";
|
|
@@ -32,6 +32,7 @@ Then pick the workflow that matches the intent:
|
|
|
32
32
|
| a new field with a closed set of values | `add-enum-field` |
|
|
33
33
|
| a new state-changing action | `add-mutation` |
|
|
34
34
|
| a filtered list, tab, or reusable query | `add-slice` |
|
|
35
|
+
| a slice or query key renamed, with every name derived from it | `rename-key` |
|
|
35
36
|
| a View / Unit / Template / Zone / Util for an existing module | `create-ui` |
|
|
36
37
|
|
|
37
38
|
## The chain
|
|
@@ -21,15 +21,15 @@ import"./index-sveq36gh.js";
|
|
|
21
21
|
import"./index-62md4dwy.js";
|
|
22
22
|
import {
|
|
23
23
|
WorkspaceRunner
|
|
24
|
-
} from "./index-
|
|
25
|
-
import"./index-
|
|
24
|
+
} from "./index-chjaw222.js";
|
|
25
|
+
import"./index-gf4fcw1n.js";
|
|
26
26
|
import"./index-hj6w4ka1.js";
|
|
27
27
|
import"./index-4am4dvmf.js";
|
|
28
|
-
import"./index-
|
|
28
|
+
import"./index-k64mhwbw.js";
|
|
29
29
|
import {
|
|
30
30
|
VerifyPipeline,
|
|
31
31
|
VerifyReport
|
|
32
|
-
} from "./index-
|
|
32
|
+
} from "./index-tw27n941.js";
|
|
33
33
|
import"./index-defp4gmb.js";
|
|
34
34
|
|
|
35
35
|
// pkgs/@akanjs/cli/verify/verify.script.ts
|
|
@@ -7,18 +7,18 @@ import {
|
|
|
7
7
|
import"./index-bns3wcpc.js";
|
|
8
8
|
import"./index-g500c5j9.js";
|
|
9
9
|
import"./index-hj6w4ka1.js";
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
10
|
+
import"./index-1404hqcj.js";
|
|
11
|
+
import"./index-gf4fcw1n.js";
|
|
12
|
+
import"./index-dbxac7mz.js";
|
|
13
13
|
import"./index-khk05tsf.js";
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
14
|
+
import"./index-19cspack.js";
|
|
15
|
+
import"./index-pqdyyxz0.js";
|
|
16
|
+
import"./index-ms1am2wr.js";
|
|
17
|
+
import"./index-pnk67cqd.js";
|
|
18
|
+
import"./index-k64mhwbw.js";
|
|
19
19
|
import {
|
|
20
20
|
WorkflowRunner
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-mzjwq4dd.js";
|
|
22
22
|
|
|
23
23
|
// pkgs/@akanjs/cli/workflow/workflow.script.ts
|
|
24
24
|
import { Logger } from "akanjs/common";
|
|
@@ -79,7 +79,7 @@ class WorkflowCommand extends command("workflow", [WorkflowScript], ({ public: t
|
|
|
79
79
|
flag: "p",
|
|
80
80
|
desc: "add the field to the Light<Model> projection used by lists and cards",
|
|
81
81
|
nullable: true
|
|
82
|
-
}).option("mutation", String, { flag: "n", desc: "mutation name", nullable: true }).option("slice", String, { flag: "i", desc: "slice name", nullable: true }).option("guard", String, { flag: "g", desc: "comma-separated guard class names", nullable: true }).option("with", String, {
|
|
82
|
+
}).option("mutation", String, { flag: "n", desc: "mutation name", nullable: true }).option("slice", String, { flag: "i", desc: "slice name", nullable: true }).option("query", String, { desc: "Filter query key for rename-key", nullable: true }).option("to", String, { flag: "x", desc: "new key name for rename-key", nullable: true }).option("guard", String, { flag: "g", desc: "comma-separated guard class names", nullable: true }).option("with", String, {
|
|
83
83
|
flag: "b",
|
|
84
84
|
desc: "comma-separated <serviceRef>.<method> writes committed with the mutation",
|
|
85
85
|
nullable: true
|
|
@@ -87,7 +87,7 @@ class WorkflowCommand extends command("workflow", [WorkflowScript], ({ public: t
|
|
|
87
87
|
flag: "e",
|
|
88
88
|
desc: "comma-separated <serviceRef>.<method> side effects run after the commit",
|
|
89
89
|
nullable: true
|
|
90
|
-
}).option("interaction", String, { flag: "k", desc: "interaction name", nullable: true }).exec(async function(action, workflow, workspace, format, out, dryRun, app, module, field, typeName, values, defaultValue, scalar, surface, surfaces, includeInLight, mutation, slice, guard, withCalls, after, interaction) {
|
|
90
|
+
}).option("interaction", String, { flag: "k", desc: "interaction name", nullable: true }).exec(async function(action, workflow, workspace, format, out, dryRun, app, module, field, typeName, values, defaultValue, scalar, surface, surfaces, includeInLight, mutation, slice, query, to, guard, withCalls, after, interaction) {
|
|
91
91
|
await this.workflowScript.workflow(action, workflow, {
|
|
92
92
|
app,
|
|
93
93
|
module,
|
|
@@ -101,6 +101,8 @@ class WorkflowCommand extends command("workflow", [WorkflowScript], ({ public: t
|
|
|
101
101
|
includeInLight: includeInLight === null ? null : String(includeInLight),
|
|
102
102
|
mutation,
|
|
103
103
|
slice,
|
|
104
|
+
query,
|
|
105
|
+
to,
|
|
104
106
|
guard,
|
|
105
107
|
with: withCalls,
|
|
106
108
|
after,
|
|
@@ -19,14 +19,14 @@ import"./index-62md4dwy.js";
|
|
|
19
19
|
import {
|
|
20
20
|
defaultMaxDiagnostics,
|
|
21
21
|
WorkspaceRunner
|
|
22
|
-
} from "./index-
|
|
23
|
-
import"./index-
|
|
22
|
+
} from "./index-chjaw222.js";
|
|
23
|
+
import"./index-gf4fcw1n.js";
|
|
24
24
|
import"./index-hj6w4ka1.js";
|
|
25
|
-
import"./index-
|
|
25
|
+
import"./index-k64mhwbw.js";
|
|
26
26
|
import"./index-35j83zkd.js";
|
|
27
27
|
import"./index-j6eeh5d7.js";
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
28
|
+
import"./index-1404hqcj.js";
|
|
29
|
+
import"./index-dbxac7mz.js";
|
|
30
30
|
import"./index-2mwjshz5.js";
|
|
31
31
|
import"./index-p6x5b7hr.js";
|
|
32
32
|
import"./index-sp0qsr7a.js";
|
|
@@ -36,7 +36,7 @@ import"./index-zbrwnmf1.js";
|
|
|
36
36
|
import"./index-sveq36gh.js";
|
|
37
37
|
import {
|
|
38
38
|
AgentScript
|
|
39
|
-
} from "./index-
|
|
39
|
+
} from "./index-tyt7cw99.js";
|
|
40
40
|
import {
|
|
41
41
|
LibraryScript
|
|
42
42
|
} from "./index-y4kcmbt2.js";
|
|
@@ -53,17 +53,17 @@ import"./index-1h2jc0x3.js";
|
|
|
53
53
|
import {
|
|
54
54
|
CloudScript2
|
|
55
55
|
} from "./index-00a7j05x.js";
|
|
56
|
-
import"./index-
|
|
57
|
-
import"./index-
|
|
56
|
+
import"./index-f6zrhcnk.js";
|
|
57
|
+
import"./index-ms1am2wr.js";
|
|
58
58
|
import"./index-khk05tsf.js";
|
|
59
|
-
import"./index-
|
|
60
|
-
import"./index-
|
|
61
|
-
import"./index-
|
|
62
|
-
import"./index-
|
|
59
|
+
import"./index-19cspack.js";
|
|
60
|
+
import"./index-pqdyyxz0.js";
|
|
61
|
+
import"./index-pnk67cqd.js";
|
|
62
|
+
import"./index-mzjwq4dd.js";
|
|
63
63
|
import {
|
|
64
64
|
ContextScript
|
|
65
|
-
} from "./index-
|
|
66
|
-
import"./index-
|
|
65
|
+
} from "./index-q9q6jjk1.js";
|
|
66
|
+
import"./index-tw27n941.js";
|
|
67
67
|
import"./index-defp4gmb.js";
|
|
68
68
|
import"./index-9bv479q5.js";
|
|
69
69
|
|