@akanjs/cli 3.2.0-rc.1 → 3.2.0-rc.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.
- package/.build-stamp +1 -1
- package/{CodeAgent-vmd9k4ak.js → CodeAgent-e9c712an.js} +3 -3
- package/{CodeTui-zka44v52.js → CodeTui-wv9yf7eq.js} +1 -1
- package/TunnelShare-zkfkrw8w.js +14 -0
- package/{agent.command-2f657613.js → agent.command-9erafkcb.js} +17 -17
- package/akanCode.js +3 -3
- package/{application.command-q6skd3am.js → application.command-6515t682.js} +13 -13
- package/{applicationBuildRunner-sctcmkyx.js → applicationBuildRunner-bqbyeg84.js} +6 -6
- package/buildBatch.proc.js +6 -6
- package/{cloud.command-7642pks6.js → cloud.command-32esk0v1.js} +19 -19
- package/cloud.script-arsagnq6.js +30 -0
- package/{code.command-7s4ndq2k.js → code.command-xk7rwq2x.js} +6 -6
- package/{context.command-569z0rqf.js → context.command-jwenkkf0.js} +19 -19
- package/context.runner-mqpp67br.js +29 -0
- package/{devTui-w38ch13a.js → devTui-cd03z4mx.js} +1 -1
- package/{guideline.command-gnv3e8p8.js → guideline.command-w6yqpdec.js} +2 -2
- package/incrementalBuilder.proc.js +7 -7
- package/{index-48d5qsj3.js → index-0ba8nj4d.js} +4 -4
- package/{index-ed6ea0qp.js → index-20wvskt8.js} +1 -1
- package/{index-rc5fvqj2.js → index-2eym1yjb.js} +29 -27
- package/{index-5w9my9qe.js → index-2rqyrvcy.js} +8 -8
- package/{index-93ewzmp6.js → index-386canwe.js} +21 -14
- package/{index-w639tvkd.js → index-39jz41jb.js} +29 -8
- package/{index-vkzfk7qt.js → index-43acpsc7.js} +40 -30
- package/{index-mqntfzv5.js → index-54s6knqe.js} +7 -2
- package/{index-6wpaq392.js → index-6h775rv3.js} +4 -4
- package/{index-aj3ehkcx.js → index-7kmbqp0b.js} +1 -1
- package/{index-1q1cjn8s.js → index-84c2pgak.js} +93 -53
- package/{index-0fb3cpbt.js → index-8gm4yag8.js} +9 -7
- package/{index-sy481q2x.js → index-8jpc5fqv.js} +1 -1
- package/{index-7y5yghjg.js → index-9p260r4e.js} +1000 -409
- package/{index-d4n1wmrz.js → index-bak9f2br.js} +4 -4
- package/{index-8g7tdsk4.js → index-bdmgqzb5.js} +4 -4
- package/{index-abgh0jve.js → index-cmg5ngqa.js} +1 -1
- package/{index-vr68mxj5.js → index-ddk49ypz.js} +14 -10
- package/{index-zpv14wpy.js → index-djc5nxpy.js} +3 -3
- package/{index-s2grpzef.js → index-dpgywgeq.js} +3 -3
- package/{index-drz9e84d.js → index-e22zedc2.js} +2 -2
- package/{index-e3vmjtph.js → index-h0p6n4k1.js} +7 -2
- package/{index-9tbgb4d8.js → index-j1hjb477.js} +1 -1
- package/{index-kpdv34rq.js → index-j4hkbzj6.js} +10 -7
- package/{index-ktb3wcqz.js → index-kcpk2d20.js} +8 -8
- package/{index-thckcabc.js → index-ngpt3zz3.js} +18 -3
- package/{index-8kczhnmv.js → index-qrk06tfp.js} +1 -1
- package/{index-8ts9774g.js → index-s34v3y28.js} +9 -4
- package/{index-23860fej.js → index-sc0g6zbm.js} +2 -0
- package/{index-eajbmk10.js → index-v50xjbbe.js} +1 -1
- package/{index-7xdpww43.js → index-vbhx60x5.js} +323 -129
- package/{index-sr5da35e.js → index-wfmpxke3.js} +2 -2
- package/{index-mmym5xmb.js → index-wr9magsr.js} +5 -3
- package/index-x3x31df8.js +14 -0
- package/{index-8pb9yvp8.js → index-xrmrvafh.js} +54 -17
- package/{index-p6hjwt2d.js → index-y725zb1a.js} +1 -1
- package/{index-hqrkqxx2.js → index-ygrdw6jw.js} +1 -1
- package/{index-a8a9ede9.js → index-ytpmk3pb.js} +4 -4
- package/{index-v4p1zye8.js → index-zcdmnfrf.js} +7 -7
- package/{index-fjr4d6yd.js → index-zhkcab5a.js} +5 -5
- package/index.js +23 -23
- package/{library.command-1gp5qe3r.js → library.command-qs8beggh.js} +4 -4
- package/{localRegistry.command-x7jptkd3.js → localRegistry.command-hz4ged9n.js} +18 -18
- package/{module.command-4xz9he6h.js → module.command-z9js77m2.js} +7 -7
- package/{package.command-s7qpnn1g.js → package.command-zqenq8c0.js} +7 -7
- package/package.json +2 -2
- package/{page.command-fan34c49.js → page.command-t0nx1jat.js} +3 -3
- package/{pipeline.command-ph4fnn9w.js → pipeline.command-2yjeas7m.js} +2 -2
- package/{primitive.command-3fqh8emf.js → primitive.command-v5kypwy4.js} +7 -7
- package/{projectTypecheck-vkb40hjc.js → projectTypecheck-s9hhe5sa.js} +1 -1
- package/{quality.command-ecj6exsh.js → quality.command-q55j2htd.js} +6 -6
- package/{repair.command-fe9jw719.js → repair.command-7ssbbdq2.js} +6 -6
- package/{scalar.command-cnvfhk0n.js → scalar.command-p5jb7z57.js} +6 -6
- package/skills/akan-scaffold/SKILL.md +2 -1
- package/{subspace.command-qw5ddd6y.js → subspace.command-7wxy6ptj.js} +8 -8
- package/{tunnel.command-ggj38mqf.js → tunnel.command-22g11n0x.js} +7 -7
- package/{verify.command-w9ttxkdz.js → verify.command-m0wnndd7.js} +14 -14
- package/{workflow.command-ss8devj0.js → workflow.command-jx8dqs9n.js} +30 -15
- package/{workspace.command-6z2rh8ze.js → workspace.command-ca9kfyt3.js} +38 -34
- package/TunnelShare-k3ja4w9x.js +0 -14
- package/cloud.script-1sfseznn.js +0 -30
- package/context.runner-ms8v1rxy.js +0 -29
|
@@ -1375,8 +1375,8 @@ class StoreBootstrap {
|
|
|
1375
1375
|
const runtime = exports.get("usePage");
|
|
1376
1376
|
const store = exports.get("st");
|
|
1377
1377
|
if (!runtime || runtime.namespace || !store || store.namespace)
|
|
1378
|
-
return
|
|
1379
|
-
return
|
|
1378
|
+
return [specifier];
|
|
1379
|
+
return [...new Set([runtime.subpath, store.subpath])];
|
|
1380
1380
|
}
|
|
1381
1381
|
static #lines(specifiers) {
|
|
1382
1382
|
return specifiers.map((specifier) => `import ${JSON.stringify(specifier)};`);
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
resolveSsrPageEntriesForApp
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-wfmpxke3.js";
|
|
5
5
|
import {
|
|
6
6
|
createBarrelImportsPlugin,
|
|
7
|
+
workspaceBarrels,
|
|
7
8
|
bundleConditions,
|
|
8
9
|
bundleDefine,
|
|
9
10
|
CsrEntryFiles,
|
|
10
11
|
PagesEntrySourceGenerator,
|
|
11
12
|
PagesBundleBuilder
|
|
12
|
-
} from "./index-
|
|
13
|
+
} from "./index-84c2pgak.js";
|
|
13
14
|
|
|
14
15
|
// pkgs/@akanjs/devkit/frontendBuild/csrArtifactBuilder.ts
|
|
15
16
|
import { mkdir as mkdir2, rm as rm2, unlink as unlink2 } from "fs/promises";
|
|
@@ -462,7 +463,8 @@ ${logs}` : ""}`);
|
|
|
462
463
|
};
|
|
463
464
|
}
|
|
464
465
|
static async barrelImportsPlugin(app, pipeAfter) {
|
|
465
|
-
|
|
466
|
+
const barrels = ["akanjs/ui", ...workspaceBarrels((await app.getConfig()).barrelImports)];
|
|
467
|
+
return await createBarrelImportsPlugin(app, { barrels, pipeAfter });
|
|
466
468
|
}
|
|
467
469
|
static publicEnvPath(app) {
|
|
468
470
|
return path4.join(app.dist.cwdPath, ".akan", "artifact", "csr-public-env.json");
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// pkgs/@akanjs/devkit/workflow/plainName.ts
|
|
3
|
+
var sysNamePattern = /^[a-z0-9][a-zA-Z0-9_-]*$/;
|
|
4
|
+
var identifierPattern = /^_{0,2}[a-zA-Z][a-zA-Z0-9_-]*$/;
|
|
5
|
+
var isWorkflowSysName = (value) => typeof value === "string" && sysNamePattern.test(value);
|
|
6
|
+
var isWorkflowModuleName = (value) => typeof value === "string" && identifierPattern.test(value);
|
|
7
|
+
var assertPlainName = (kind, name) => {
|
|
8
|
+
const isSys = kind === "app" || kind === "lib";
|
|
9
|
+
if (isSys ? isWorkflowSysName(name) : isWorkflowModuleName(name))
|
|
10
|
+
return;
|
|
11
|
+
throw new Error(`${JSON.stringify(name)} is no ${kind} name; use letters, digits, - and _, starting with ${isSys ? "a lowercase letter or digit" : "a letter"}`);
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { sysNamePattern, identifierPattern, isWorkflowSysName, isWorkflowModuleName, assertPlainName };
|
|
@@ -2,14 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
AppExecutor,
|
|
4
4
|
LibExecutor
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-wfmpxke3.js";
|
|
6
6
|
import {
|
|
7
7
|
createAst,
|
|
8
8
|
AkanIndex
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-9p260r4e.js";
|
|
10
|
+
import {
|
|
11
|
+
sysNamePattern,
|
|
12
|
+
identifierPattern
|
|
13
|
+
} from "./index-x3x31df8.js";
|
|
10
14
|
import {
|
|
11
15
|
camelToKebabCase
|
|
12
|
-
} from "./index-
|
|
16
|
+
} from "./index-386canwe.js";
|
|
13
17
|
|
|
14
18
|
// pkgs/@akanjs/devkit/workflow/artifacts.ts
|
|
15
19
|
import { capitalize as capitalize2 } from "akanjs/common";
|
|
@@ -216,6 +220,7 @@ var createWorkflowApplyReport = ({
|
|
|
216
220
|
plan
|
|
217
221
|
};
|
|
218
222
|
};
|
|
223
|
+
var withoutApplyHints = (recommendations) => recommendations.filter((recommendation) => recommendation.kind !== "auto-apply" && recommendation.kind !== "validation");
|
|
219
224
|
var resolveWorkflowCommand = (command, plan) => {
|
|
220
225
|
const target = typeof plan.inputs.app === "string" ? plan.inputs.app : "<app-or-lib>";
|
|
221
226
|
return command.replaceAll("<app-or-lib-or-pkg>", target).replaceAll("<app-or-lib>", target).replaceAll("<app-name>", target);
|
|
@@ -455,6 +460,17 @@ var createWorkflowValidationRunReport = async ({
|
|
|
455
460
|
};
|
|
456
461
|
};
|
|
457
462
|
var createDryRunWorkflowApplyReport = (plan) => {
|
|
463
|
+
if (workflowStatus(plan.diagnostics) === "failed")
|
|
464
|
+
return createWorkflowApplyReport({
|
|
465
|
+
workflow: plan.workflow,
|
|
466
|
+
mode: "dry-run",
|
|
467
|
+
changedFiles: [],
|
|
468
|
+
generatedFiles: [],
|
|
469
|
+
diagnostics: [...plan.diagnostics],
|
|
470
|
+
recommendations: withoutApplyHints(plan.recommendations),
|
|
471
|
+
nextActions: [],
|
|
472
|
+
plan
|
|
473
|
+
});
|
|
458
474
|
const changedFiles = plan.predictedChanges.flatMap((change) => {
|
|
459
475
|
if (change.action !== "create" && change.action !== "modify")
|
|
460
476
|
return [];
|
|
@@ -3003,8 +3019,6 @@ class MutationScaffold {
|
|
|
3003
3019
|
// pkgs/@akanjs/devkit/workflow/plan.ts
|
|
3004
3020
|
import { capitalize as capitalize4 } from "akanjs/common";
|
|
3005
3021
|
var surfaceModes = new Set(["infer", "include", "skip"]);
|
|
3006
|
-
var sysNamePattern = /^[a-z0-9][a-zA-Z0-9_-]*$/;
|
|
3007
|
-
var identifierPattern = /^_{0,2}[a-zA-Z][a-zA-Z0-9_-]*$/;
|
|
3008
3022
|
var nameInputPatterns = {
|
|
3009
3023
|
app: sysNamePattern,
|
|
3010
3024
|
module: identifierPattern,
|
|
@@ -3016,8 +3030,6 @@ var nameInputPatterns = {
|
|
|
3016
3030
|
mutation: identifierPattern,
|
|
3017
3031
|
interaction: identifierPattern
|
|
3018
3032
|
};
|
|
3019
|
-
var isWorkflowSysName = (value) => typeof value === "string" && sysNamePattern.test(value);
|
|
3020
|
-
var isWorkflowModuleName = (value) => typeof value === "string" && identifierPattern.test(value);
|
|
3021
3033
|
var parseStringList = (value) => {
|
|
3022
3034
|
if (Array.isArray(value)) {
|
|
3023
3035
|
const values = value.filter((item) => typeof item === "string" && item.trim().length > 0);
|
|
@@ -3397,25 +3409,44 @@ var inspectRenameKeyPlan = async (workspace, plan) => {
|
|
|
3397
3409
|
var syssHolding = async (workspace, module, except) => {
|
|
3398
3410
|
const [apps, libs] = await workspace.getSyss();
|
|
3399
3411
|
const others = await Promise.all([...apps, ...libs].filter((name) => name !== except.name).map(async (name) => await resolveWorkflowSys(workspace, name)));
|
|
3400
|
-
const holding = await Promise.all(others.map(async (other) => other && (await other.
|
|
3412
|
+
const holding = await Promise.all(others.map(async (other) => other && (await other.getDatabaseModules()).includes(module) ? other : null));
|
|
3401
3413
|
return holding.filter((other) => other !== null);
|
|
3402
3414
|
};
|
|
3403
3415
|
var moduleMissing = async (workspace, sys, module) => {
|
|
3404
3416
|
if ((await sys.readdir("lib")).includes(module))
|
|
3405
3417
|
return null;
|
|
3406
3418
|
const root = getSysRoot(sys);
|
|
3407
|
-
const modules =
|
|
3408
|
-
const sameName = modules.find((name) => name.
|
|
3419
|
+
const modules = await sys.getDatabaseModules();
|
|
3420
|
+
const sameName = modules.find((name) => name.toLowerCase() === module.toLowerCase());
|
|
3421
|
+
const service = (await sys.getServiceModules()).find((name) => name.replace(/^_/, "").toLowerCase() === module.replace(/^_/, "").toLowerCase());
|
|
3409
3422
|
const isScalar = (await sys.getScalarModules()).includes(module);
|
|
3410
|
-
const [holder] = sameName || isScalar ? [] : await syssHolding(workspace, module, sys);
|
|
3423
|
+
const [holder] = sameName || service || isScalar ? [] : await syssHolding(workspace, module, sys);
|
|
3411
3424
|
return {
|
|
3412
3425
|
severity: "error",
|
|
3413
3426
|
code: "workflow-module-missing",
|
|
3414
3427
|
input: "module",
|
|
3415
3428
|
message: [
|
|
3416
3429
|
`No module named ${module} in ${root}: ${root}/lib/${module} does not exist.`,
|
|
3417
|
-
modules.length ? `Its modules are ${modules.join(", ")}.` : `${root} has no modules yet.`,
|
|
3418
|
-
sameName ? `Did you mean ${sameName}?` : isScalar ? `${root}/lib/__scalar/${module} is a scalar, and this workflow writes only into a module under ${root}/lib.` : holder ? `${module} is in ${getSysRoot(holder)}, so plan this with --app ${holder.name}.` : `If ${module} is a new model, create it with the create-module workflow first, then plan this again.`
|
|
3430
|
+
modules.length ? `Its database modules are ${modules.join(", ")}.` : `${root} has no database modules yet.`,
|
|
3431
|
+
sameName ? `Did you mean ${sameName}?` : service ? `${root}/lib/${service} is a service module, which stores no model, and this workflow writes only into a database module.` : isScalar ? `${root}/lib/__scalar/${module} is a scalar, and this workflow writes only into a module under ${root}/lib.` : holder ? `${module} is in ${getSysRoot(holder)}, so plan this with --app ${holder.name}.` : `If ${module} is a new model, create it with the create-module workflow first, then plan this again.`
|
|
3432
|
+
].join(" ")
|
|
3433
|
+
};
|
|
3434
|
+
};
|
|
3435
|
+
var moduleNotDatabase = async (sys, spec, module) => {
|
|
3436
|
+
const databaseModules = await sys.getDatabaseModules();
|
|
3437
|
+
if (databaseModules.includes(module))
|
|
3438
|
+
return null;
|
|
3439
|
+
const root = getSysRoot(sys);
|
|
3440
|
+
const isServiceModule = module.startsWith("_") && !module.startsWith("__");
|
|
3441
|
+
return {
|
|
3442
|
+
severity: "error",
|
|
3443
|
+
code: "workflow-module-not-database",
|
|
3444
|
+
input: "module",
|
|
3445
|
+
message: [
|
|
3446
|
+
isServiceModule ? `${module} in ${root} is a service module, which stores no model.` : `${root}/lib/${module} is not a database module: it has no ${module}.constant.ts.`,
|
|
3447
|
+
`${spec.name} needs a database module, one with lib/<model>/<model>.constant.ts.`,
|
|
3448
|
+
databaseModules.length ? `Its database modules are ${databaseModules.join(", ")}.` : `${root} has no database modules yet.`,
|
|
3449
|
+
spec.inputs.field ? "Add the field to one of them, or create its model with the create-module workflow first; a value several models embed is a scalar, made with create-scalar and added to a model as a field of that type." : "Plan this on one of them, or create the model with the create-module workflow first."
|
|
3419
3450
|
].join(" ")
|
|
3420
3451
|
};
|
|
3421
3452
|
};
|
|
@@ -3439,10 +3470,10 @@ var workflowTargetDiagnostics = async (workspace, spec, inputs) => {
|
|
|
3439
3470
|
const moduleSpec = spec.inputs.module;
|
|
3440
3471
|
if (!module || !moduleSpec?.mustExist)
|
|
3441
3472
|
return [];
|
|
3442
|
-
const
|
|
3443
|
-
return
|
|
3473
|
+
const refused = await moduleMissing(workspace, sys, module) ?? await moduleNotDatabase(sys, spec, module);
|
|
3474
|
+
return refused ? [refused] : [];
|
|
3444
3475
|
};
|
|
3445
|
-
var
|
|
3476
|
+
var inspectPlanTarget = async (workspace, spec, plan) => {
|
|
3446
3477
|
const targetDiagnostics = await workflowTargetDiagnostics(workspace, spec, plan.inputs);
|
|
3447
3478
|
if (targetDiagnostics.length)
|
|
3448
3479
|
return {
|
|
@@ -3475,6 +3506,12 @@ var inspectWorkflowPlan = async (workspace, spec, plan) => {
|
|
|
3475
3506
|
recommendations: [...plan.recommendations, ...inspected.recommendations]
|
|
3476
3507
|
};
|
|
3477
3508
|
};
|
|
3509
|
+
var inspectWorkflowPlan = async (workspace, spec, plan) => {
|
|
3510
|
+
const inspected = await inspectPlanTarget(workspace, spec, plan);
|
|
3511
|
+
if (workflowStatus(inspected.diagnostics) === "passed")
|
|
3512
|
+
return inspected;
|
|
3513
|
+
return { ...inspected, recommendations: withoutApplyHints(inspected.recommendations) };
|
|
3514
|
+
};
|
|
3478
3515
|
// pkgs/@akanjs/devkit/workflow/render.ts
|
|
3479
3516
|
var listOr = (items, render, empty = "- none") => items?.length ? items.map(render) : [empty];
|
|
3480
3517
|
var renderDiagnostic = (diagnostic) => `- [${diagnostic.severity}] ${diagnostic.code}: ${diagnostic.message}`;
|
|
@@ -3802,4 +3839,4 @@ for (const candidate of toolingRolloutCandidates) {
|
|
|
3802
3839
|
if (isRestrictedCandidate(candidate))
|
|
3803
3840
|
restrictedCandidates.set(candidate.packageName, candidate);
|
|
3804
3841
|
}
|
|
3805
|
-
export { InteractionScaffold, jsonText, workflowStatus, compactDiagnostics, workflowPlanApproval, createWorkflowApplyReport, workflowCommandsForPlan, workflowPathsForPlan, workflowRunArtifactPath, writeWorkflowRunArtifact, workflowSyncDir, generatedFilePathsForTarget, writeGeneratedSyncState, readWorkflowRunArtifact, createWorkflowBaselineSummary, createWorkflowValidationRunReport, createDryRunWorkflowApplyReport, createRepairReport, sourceFile, moduleComponentName, moduleSourcePaths, generatedFilesForSync, validationCommandsForTarget, nextActionsForTarget, createPrimitiveWriteReport, createPassedPrimitiveReport, scalarChangedFiles, bilingualLabelForField, bilingualDescriptionForField, normalizeFieldType, ensureNamedImport, ensureBaseImport, ensureBaseTypeImport, coerceFieldDefault, fieldExpression, viaBuilderParameterName, insertIntoObject, insertLightProjectionField, insertTemplateField, ensureEnumImport, insertEnumClass, insertDictionaryModelField, hasConstantInputField, hasDictionaryModelField, ensureConstantTypeImport, insertDictionaryEnum, parseValues, hasSourceParseErrors, hasClassMethod, insertClassMethod, hasSignalFactoryEntry, insertSignalFactoryEntry, buildAkanModuleContextIndex, addFieldUiPolicyForType, createWorkflowStepRegistry, WorkflowExecutor, KeyRename, MutationScaffold,
|
|
3842
|
+
export { InteractionScaffold, jsonText, workflowStatus, compactDiagnostics, workflowPlanApproval, createWorkflowApplyReport, workflowCommandsForPlan, workflowPathsForPlan, workflowRunArtifactPath, writeWorkflowRunArtifact, workflowSyncDir, generatedFilePathsForTarget, writeGeneratedSyncState, readWorkflowRunArtifact, createWorkflowBaselineSummary, createWorkflowValidationRunReport, createDryRunWorkflowApplyReport, createRepairReport, sourceFile, moduleComponentName, moduleSourcePaths, generatedFilesForSync, validationCommandsForTarget, nextActionsForTarget, createPrimitiveWriteReport, createPassedPrimitiveReport, scalarChangedFiles, bilingualLabelForField, bilingualDescriptionForField, normalizeFieldType, ensureNamedImport, ensureBaseImport, ensureBaseTypeImport, coerceFieldDefault, fieldExpression, viaBuilderParameterName, insertIntoObject, insertLightProjectionField, insertTemplateField, ensureEnumImport, insertEnumClass, insertDictionaryModelField, hasConstantInputField, hasDictionaryModelField, ensureConstantTypeImport, insertDictionaryEnum, parseValues, hasSourceParseErrors, hasClassMethod, insertClassMethod, hasSignalFactoryEntry, insertSignalFactoryEntry, buildAkanModuleContextIndex, addFieldUiPolicyForType, createWorkflowStepRegistry, WorkflowExecutor, KeyRename, MutationScaffold, listWorkflowSpecs, getWorkflowSpec, compactWorkflowInputs, createWorkflowPlan, workflowTargetDiagnostics, inspectWorkflowPlan, renderWorkflowList, renderWorkflowExplain, renderWorkflowPlan, renderWorkflowApply, renderWorkflowValidation, renderRepairReport, renderWorkflowRunArtifact, renderPrimitiveReport, toolingRolloutGate };
|
|
@@ -14,12 +14,12 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
PreviewView2,
|
|
16
16
|
stripAnsi
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-sc0g6zbm.js";
|
|
18
18
|
import {
|
|
19
19
|
SubagentPool2,
|
|
20
20
|
McpSignIn,
|
|
21
21
|
AkanCodeCompaction2
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-qrk06tfp.js";
|
|
23
23
|
import {
|
|
24
24
|
codeAgentIsLoopback,
|
|
25
25
|
codeAgentHostListed,
|
|
@@ -659,7 +659,7 @@ class AkanToolPack2 {
|
|
|
659
659
|
return { name: "akan-tools", factory: async (pi) => await this.#register(pi) };
|
|
660
660
|
}
|
|
661
661
|
async names() {
|
|
662
|
-
const { ContextRunner } = await import("./context.runner-
|
|
662
|
+
const { ContextRunner } = await import("./context.runner-mqpp67br.js");
|
|
663
663
|
return [
|
|
664
664
|
...new ContextRunner().listMcpTools(this.#options.mode).map((tool) => tool.name),
|
|
665
665
|
AkanToolPack2.verifyToolName
|
|
@@ -667,7 +667,7 @@ class AkanToolPack2 {
|
|
|
667
667
|
}
|
|
668
668
|
static verifyToolName = "akan_verify";
|
|
669
669
|
async#register(pi) {
|
|
670
|
-
const { ContextRunner } = await import("./context.runner-
|
|
670
|
+
const { ContextRunner } = await import("./context.runner-mqpp67br.js");
|
|
671
671
|
const runner = new ContextRunner;
|
|
672
672
|
const guidelineNames = await AkanToolPack2.#guidelineNames();
|
|
673
673
|
for (const tool of runner.listMcpTools(this.#options.mode, { guidelineNames })) {
|
|
@@ -4,27 +4,27 @@ import {
|
|
|
4
4
|
CloudApi,
|
|
5
5
|
CloudUpdates,
|
|
6
6
|
PipelineSecrets
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-e22zedc2.js";
|
|
8
8
|
import {
|
|
9
9
|
PkgExecutor
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-wfmpxke3.js";
|
|
11
11
|
import {
|
|
12
12
|
UpdatePackFolder,
|
|
13
13
|
NativePublicEnv,
|
|
14
14
|
NativeApp
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-djc5nxpy.js";
|
|
16
16
|
import {
|
|
17
17
|
script
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-386canwe.js";
|
|
19
19
|
import {
|
|
20
20
|
ApplicationScript
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-ddk49ypz.js";
|
|
22
22
|
import {
|
|
23
23
|
PackageScript
|
|
24
|
-
} from "./index-
|
|
24
|
+
} from "./index-bak9f2br.js";
|
|
25
25
|
import {
|
|
26
26
|
CloudRunner
|
|
27
|
-
} from "./index-
|
|
27
|
+
} from "./index-6h775rv3.js";
|
|
28
28
|
|
|
29
29
|
// pkgs/@akanjs/cli/cloud/cloud.script.ts
|
|
30
30
|
import { Logger } from "akanjs/common";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
camelToKebabCase,
|
|
4
4
|
runner
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-386canwe.js";
|
|
6
6
|
import {
|
|
7
7
|
FileSys2
|
|
8
8
|
} from "./index-bns3wcpc.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
SysExecutor,
|
|
22
22
|
LibExecutor,
|
|
23
23
|
PkgExecutor
|
|
24
|
-
} from "./index-
|
|
24
|
+
} from "./index-wfmpxke3.js";
|
|
25
25
|
import {
|
|
26
26
|
countBlocking,
|
|
27
27
|
formatStyleContract,
|
|
@@ -32,11 +32,11 @@ import {
|
|
|
32
32
|
} from "./index-ygdbn9jn.js";
|
|
33
33
|
import {
|
|
34
34
|
MaintainabilityBaseline
|
|
35
|
-
} from "./index-
|
|
35
|
+
} from "./index-ygrdw6jw.js";
|
|
36
36
|
import {
|
|
37
37
|
createFactReader,
|
|
38
38
|
createAst
|
|
39
|
-
} from "./index-
|
|
39
|
+
} from "./index-9p260r4e.js";
|
|
40
40
|
import {
|
|
41
41
|
collectRecipeSources2,
|
|
42
42
|
scanRecipes2
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
import {
|
|
49
49
|
sysInputs,
|
|
50
50
|
workflowSpecs
|
|
51
|
-
} from "./index-
|
|
51
|
+
} from "./index-v50xjbbe.js";
|
|
52
52
|
|
|
53
53
|
// pkgs/@akanjs/cli/workspace/workspace.runner.ts
|
|
54
54
|
import { mkdir, writeFile as writeFile2 } from "fs/promises";
|
package/index.js
CHANGED
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
getTargetMetas,
|
|
5
5
|
getTargetCommandNames,
|
|
6
6
|
runCommands
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-386canwe.js";
|
|
8
8
|
import"./index-bns3wcpc.js";
|
|
9
|
-
import"./index-
|
|
9
|
+
import"./index-wfmpxke3.js";
|
|
10
10
|
|
|
11
11
|
// pkgs/@akanjs/cli/bunVersionGuard.ts
|
|
12
12
|
class BunVersionGuard {
|
|
@@ -22,27 +22,27 @@ 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-
|
|
28
|
-
application: async () => (await import("./application.command-
|
|
29
|
-
library: async () => (await import("./library.command-
|
|
30
|
-
localRegistry: async () => (await import("./localRegistry.command-
|
|
31
|
-
package: async () => (await import("./package.command-
|
|
32
|
-
module: async () => (await import("./module.command-
|
|
33
|
-
page: async () => (await import("./page.command-
|
|
34
|
-
context: async () => (await import("./context.command-
|
|
35
|
-
cloud: async () => (await import("./cloud.command-
|
|
36
|
-
subspace: async () => (await import("./subspace.command-
|
|
37
|
-
guideline: async () => (await import("./guideline.command-
|
|
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-
|
|
44
|
-
pipeline: async () => (await import("./pipeline.command-
|
|
45
|
-
tunnel: async () => (await import("./tunnel.command-
|
|
25
|
+
workspace: async () => (await import("./workspace.command-ca9kfyt3.js")).WorkspaceCommand,
|
|
26
|
+
agent: async () => (await import("./agent.command-9erafkcb.js")).AgentCommand,
|
|
27
|
+
code: async () => (await import("./code.command-xk7rwq2x.js")).CodeCommand,
|
|
28
|
+
application: async () => (await import("./application.command-6515t682.js")).ApplicationCommand,
|
|
29
|
+
library: async () => (await import("./library.command-qs8beggh.js")).LibraryCommand,
|
|
30
|
+
localRegistry: async () => (await import("./localRegistry.command-hz4ged9n.js")).LocalRegistryCommand,
|
|
31
|
+
package: async () => (await import("./package.command-zqenq8c0.js")).PackageCommand,
|
|
32
|
+
module: async () => (await import("./module.command-z9js77m2.js")).ModuleCommand,
|
|
33
|
+
page: async () => (await import("./page.command-t0nx1jat.js")).PageCommand,
|
|
34
|
+
context: async () => (await import("./context.command-jwenkkf0.js")).ContextCommand,
|
|
35
|
+
cloud: async () => (await import("./cloud.command-32esk0v1.js")).CloudCommand,
|
|
36
|
+
subspace: async () => (await import("./subspace.command-7wxy6ptj.js")).SubspaceCommand,
|
|
37
|
+
guideline: async () => (await import("./guideline.command-w6yqpdec.js")).GuidelineCommand,
|
|
38
|
+
scalar: async () => (await import("./scalar.command-p5jb7z57.js")).ScalarCommand,
|
|
39
|
+
primitive: async () => (await import("./primitive.command-v5kypwy4.js")).PrimitiveCommand,
|
|
40
|
+
quality: async () => (await import("./quality.command-q55j2htd.js")).QualityCommand,
|
|
41
|
+
verify: async () => (await import("./verify.command-m0wnndd7.js")).VerifyCommand,
|
|
42
|
+
repair: async () => (await import("./repair.command-7ssbbdq2.js")).RepairCommand,
|
|
43
|
+
workflow: async () => (await import("./workflow.command-jx8dqs9n.js")).WorkflowCommand,
|
|
44
|
+
pipeline: async () => (await import("./pipeline.command-2yjeas7m.js")).PipelineCommand,
|
|
45
|
+
tunnel: async () => (await import("./tunnel.command-22g11n0x.js")).TunnelCommand
|
|
46
46
|
};
|
|
47
47
|
var commandModuleIds = Object.keys(commandModules);
|
|
48
48
|
|
|
@@ -3,19 +3,19 @@ import {
|
|
|
3
3
|
Lib,
|
|
4
4
|
Workspace,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-386canwe.js";
|
|
7
7
|
import"./index-bns3wcpc.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-wfmpxke3.js";
|
|
9
9
|
import {
|
|
10
10
|
LibraryScript
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-54s6knqe.js";
|
|
12
12
|
|
|
13
13
|
// pkgs/@akanjs/cli/library/library.command.ts
|
|
14
14
|
class LibraryCommand extends command("library", [LibraryScript], ({ public: target }) => ({
|
|
15
15
|
createLibrary: target({ desc: "Create a new shared library in the workspace" }).arg("libName", String, { desc: "name of library" }).with(Workspace).exec(async function(libName, workspace) {
|
|
16
16
|
await this.libraryScript.createLibrary(libName.toLowerCase().replace(/ /g, "-"), workspace);
|
|
17
17
|
}),
|
|
18
|
-
removeLibrary: target({ desc: "Remove a library from the workspace" }).with(Lib).exec(async function(lib) {
|
|
18
|
+
removeLibrary: target({ desc: "Remove a library from the workspace", destructive: true }).with(Lib).exec(async function(lib) {
|
|
19
19
|
await this.libraryScript.removeLibrary(lib);
|
|
20
20
|
}),
|
|
21
21
|
syncLibrary: target({ desc: "Sync dependencies and configuration for a library" }).with(Lib).exec(async function(lib) {
|
|
@@ -4,41 +4,41 @@ import {
|
|
|
4
4
|
runner,
|
|
5
5
|
script,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-386canwe.js";
|
|
8
8
|
import"./index-bns3wcpc.js";
|
|
9
9
|
import {
|
|
10
10
|
parseEnvFile,
|
|
11
11
|
PkgExecutor
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-wfmpxke3.js";
|
|
13
13
|
import {
|
|
14
14
|
npmRegistryFromEnv,
|
|
15
15
|
warnIgnoredNpmRegistry,
|
|
16
16
|
getNpmRegistryUrl
|
|
17
17
|
} from "./index-ny2k80mv.js";
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
18
|
+
import"./index-y725zb1a.js";
|
|
19
|
+
import"./index-djc5nxpy.js";
|
|
20
|
+
import"./index-20wvskt8.js";
|
|
21
21
|
import"./index-m9jj544v.js";
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
22
|
+
import"./index-84c2pgak.js";
|
|
23
|
+
import"./index-wr9magsr.js";
|
|
24
|
+
import"./index-54s6knqe.js";
|
|
25
|
+
import"./index-kcpk2d20.js";
|
|
26
|
+
import"./index-sc0g6zbm.js";
|
|
27
27
|
import {
|
|
28
28
|
ApplicationScript
|
|
29
|
-
} from "./index-
|
|
30
|
-
import"./index-
|
|
29
|
+
} from "./index-ddk49ypz.js";
|
|
30
|
+
import"./index-e22zedc2.js";
|
|
31
31
|
import {
|
|
32
32
|
CloudRunner
|
|
33
|
-
} from "./index-
|
|
33
|
+
} from "./index-6h775rv3.js";
|
|
34
34
|
import"./index-qd7xn2bk.js";
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
37
|
-
import"./index-
|
|
35
|
+
import"./index-9p260r4e.js";
|
|
36
|
+
import"./index-cmg5ngqa.js";
|
|
37
|
+
import"./index-ygrdw6jw.js";
|
|
38
38
|
import {
|
|
39
39
|
PackageScript
|
|
40
|
-
} from "./index-
|
|
41
|
-
import"./index-
|
|
40
|
+
} from "./index-bak9f2br.js";
|
|
41
|
+
import"./index-8jpc5fqv.js";
|
|
42
42
|
import"./index-9bv479q5.js";
|
|
43
43
|
|
|
44
44
|
// pkgs/@akanjs/cli/localRegistry/localRegistry.runner.ts
|
|
@@ -3,17 +3,17 @@ import {
|
|
|
3
3
|
Sys,
|
|
4
4
|
Module,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-386canwe.js";
|
|
7
7
|
import"./index-bns3wcpc.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-wfmpxke3.js";
|
|
9
9
|
import {
|
|
10
10
|
renderPrimitiveReport
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
11
|
+
} from "./index-xrmrvafh.js";
|
|
12
|
+
import"./index-9p260r4e.js";
|
|
13
|
+
import"./index-7kmbqp0b.js";
|
|
14
14
|
import {
|
|
15
15
|
ModuleScript
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-s34v3y28.js";
|
|
17
17
|
|
|
18
18
|
// pkgs/@akanjs/cli/module/module.command.ts
|
|
19
19
|
import { Logger, lowerlize } from "akanjs/common";
|
|
@@ -23,7 +23,7 @@ class ModuleCommand extends command("module", [ModuleScript], ({ public: target
|
|
|
23
23
|
const report = await this.moduleScript.createModuleTemplate(sys, name, { page });
|
|
24
24
|
Logger.rawLog(renderPrimitiveReport(report, format));
|
|
25
25
|
}),
|
|
26
|
-
removeModule: target({ desc: "Remove a module from an app or library" }).with(Module).exec(async function(module) {
|
|
26
|
+
removeModule: target({ desc: "Remove a module from an app or library", destructive: true }).with(Module).exec(async function(module) {
|
|
27
27
|
await this.moduleScript.removeModule(module);
|
|
28
28
|
}),
|
|
29
29
|
createService: target({ desc: "Create a service module without database files" }).arg("serviceName", String, { desc: "name of service module" }).with(Sys).option("format", String, { flag: "o", desc: "output format", default: "markdown", enum: ["markdown", "json"] }).exec(async function(serviceName, sys, format) {
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
Pkg,
|
|
4
4
|
Workspace,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-386canwe.js";
|
|
7
7
|
import"./index-bns3wcpc.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-wfmpxke3.js";
|
|
9
9
|
import"./index-qd7xn2bk.js";
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
10
|
+
import"./index-9p260r4e.js";
|
|
11
|
+
import"./index-cmg5ngqa.js";
|
|
12
|
+
import"./index-ygrdw6jw.js";
|
|
13
13
|
import {
|
|
14
14
|
PackageScript
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-bak9f2br.js";
|
|
16
16
|
|
|
17
17
|
// pkgs/@akanjs/cli/package/package.command.ts
|
|
18
18
|
class PackageCommand extends command("package", [PackageScript], ({ public: target }) => ({
|
|
@@ -22,7 +22,7 @@ class PackageCommand extends command("package", [PackageScript], ({ public: targ
|
|
|
22
22
|
createPackage: target({ desc: "Create a new package in pkgs/<name>/" }).option("name", String, { desc: "name of package" }).with(Workspace).exec(async function(name, workspace) {
|
|
23
23
|
await this.packageScript.createPackage(workspace, name.toLowerCase().replace(/ /g, "-"));
|
|
24
24
|
}),
|
|
25
|
-
removePackage: target({ desc: "Remove a package from the workspace" }).with(Pkg).exec(async function(pkg) {
|
|
25
|
+
removePackage: target({ desc: "Remove a package from the workspace", destructive: true }).with(Pkg).exec(async function(pkg) {
|
|
26
26
|
await this.packageScript.removePackage(pkg);
|
|
27
27
|
}),
|
|
28
28
|
syncPackage: target({ desc: "Sync dependencies and configuration for a package" }).with(Pkg).exec(async function(pkg) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akanjs/cli",
|
|
3
|
-
"version": "3.2.0-rc.
|
|
3
|
+
"version": "3.2.0-rc.3",
|
|
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.2.0-rc.
|
|
42
|
+
"akanjs": "3.2.0-rc.3",
|
|
43
43
|
"chalk": "^6.0.1",
|
|
44
44
|
"commander": "^15.0.0",
|
|
45
45
|
"dayjs": "^1.11.23",
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
App,
|
|
4
4
|
Module,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-386canwe.js";
|
|
7
7
|
import"./index-bns3wcpc.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-wfmpxke3.js";
|
|
9
9
|
import {
|
|
10
10
|
PageScript
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-7kmbqp0b.js";
|
|
12
12
|
|
|
13
13
|
// pkgs/@akanjs/cli/page/page.command.ts
|
|
14
14
|
class PageCommand extends command("page", [PageScript], ({ public: target }) => ({
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
runner,
|
|
5
5
|
script,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-386canwe.js";
|
|
8
8
|
import {
|
|
9
9
|
FileSys2
|
|
10
10
|
} from "./index-bns3wcpc.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
AkanAppConfig,
|
|
13
13
|
AkanWorkspaceConfig,
|
|
14
14
|
AppExecutor
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-wfmpxke3.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveMobileTargets
|
|
18
18
|
} from "./index-m9jj544v.js";
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Workspace,
|
|
4
4
|
command
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-386canwe.js";
|
|
6
6
|
import"./index-bns3wcpc.js";
|
|
7
|
-
import"./index-
|
|
7
|
+
import"./index-wfmpxke3.js";
|
|
8
8
|
import {
|
|
9
9
|
renderPrimitiveReport
|
|
10
|
-
} from "./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
10
|
+
} from "./index-xrmrvafh.js";
|
|
11
|
+
import"./index-9p260r4e.js";
|
|
12
|
+
import"./index-7kmbqp0b.js";
|
|
13
|
+
import"./index-s34v3y28.js";
|
|
14
14
|
import {
|
|
15
15
|
PrimitiveScript
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-0ba8nj4d.js";
|
|
17
17
|
|
|
18
18
|
// pkgs/@akanjs/cli/primitive/primitive.command.ts
|
|
19
19
|
import { Logger } from "akanjs/common";
|