@akanjs/cli 3.0.0-beta.16 → 3.0.0-beta.18
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-zgccwajm.js → CodeAgent-0035exh3.js} +2 -2
- package/{CodeTui-993tx7gf.js → CodeTui-eweg1hep.js} +384 -28
- package/{agent.command-n664dtcv.js → agent.command-65zqfkg0.js} +6 -6
- package/akanCode.js +11 -9
- package/{application.command-t5542jte.js → application.command-2wcj5da3.js} +18 -11
- package/{applicationBuildRunner-x4gbfn7y.js → applicationBuildRunner-m0hhgwsx.js} +6 -5
- package/{applicationReleasePackager-z61ep017.js → applicationReleasePackager-vykfzgx3.js} +1 -1
- package/buildBatch.proc.js +2 -2
- package/{capacitorApp-shv3ajh5.js → capacitorApp-2daqhb5h.js} +2 -2
- package/{cloud.command-4x35k1z6.js → cloud.command-960bgbf4.js} +8 -8
- package/{cloud.script-3k8nbbpn.js → cloud.script-qhcnqt1n.js} +8 -8
- package/{code.command-mrfb7a1g.js → code.command-4feh3ef7.js} +7 -7
- package/{context.command-pqsm5jrk.js → context.command-kzehkx48.js} +14 -14
- package/context.runner-z0rrcz7b.js +22 -0
- package/{devTui-gy6mendg.js → devTui-ffjsarqa.js} +3 -3
- package/{devTuiView-y1548wy6.js → devTuiView-1q1mdgrv.js} +1 -1
- package/{guideline.command-rpc2emw8.js → guideline.command-3w2g20x4.js} +8 -13
- package/guidelines/conventions/conventions.instruction.md +37 -22
- package/guidelines/queryRule/queryRule.instruction.md +1 -1
- package/guidelines/ssrRule/ssrRule.instruction.md +4 -2
- package/guidelines/transportRule/transportRule.instruction.md +10 -8
- package/guidelines/workspaceRecipes/workspaceRecipes.instruction.md +4 -3
- package/incrementalBuilder.proc.js +1 -1
- package/{index-sxg87a8f.js → index-14zrtgfa.js} +164 -98
- package/{index-57p9p179.js → index-3hpxeys1.js} +6 -5
- package/{index-sn7dnzq4.js → index-4r42ext5.js} +1 -1
- package/{index-3mg4h788.js → index-6q589y9t.js} +2 -2
- package/index-9dp031by.js +12 -0
- package/{index-p4p9t45x.js → index-bwxpk2cj.js} +4 -18
- package/{index-g9zghs4h.js → index-cjw1sj1x.js} +12 -12
- package/{index-te0y1c0m.js → index-d9fjz06h.js} +12 -7
- package/{index-4n4821gp.js → index-dw943k93.js} +4 -4
- package/{index-4cvpzkq6.js → index-ef228gzf.js} +3 -3
- package/{index-3cymrzsb.js → index-erfc1x40.js} +17 -3
- package/{index-ns128c4q.js → index-h94faz96.js} +13 -20
- package/index-jd01kj5r.js +656 -0
- package/{index-5405kc0x.js → index-jwexzh42.js} +363 -247
- package/{index-wfwknnje.js → index-jwrpsrg3.js} +8 -6
- package/{index-kvzjda3v.js → index-m41ptvat.js} +5 -5
- package/{index-qh7brn20.js → index-mt2154s2.js} +6 -2
- package/{index-xjc7gg65.js → index-pn8mhpps.js} +23 -33
- package/{index-vpx68e4x.js → index-q9c3c0hy.js} +2 -2
- package/{index-v17gj504.js → index-rpgxs245.js} +2 -2
- package/{index-twq9p2sp.js → index-s5rhm04y.js} +0 -6
- package/{index-018dszb3.js → index-sbfk9daf.js} +10 -3
- package/{index-zg0v1zte.js → index-wcg582a8.js} +5 -5
- package/{index-6na0sd2b.js → index-ycy302an.js} +5 -2
- package/{index-qhtj9y6j.js → index-yw6g3bbv.js} +74 -21
- package/{index-2pm1j01n.js → index-zmj143x7.js} +4 -4
- package/{index-zn8qgeqx.js → index-zq0mr3hh.js} +1 -1
- package/index.js +21 -21
- package/{library.command-m8p2r1dh.js → library.command-fp0nhr62.js} +3 -3
- package/{localRegistry.command-tt00nwwg.js → localRegistry.command-8y0ecxb9.js} +7 -7
- package/{module.command-mfzvqt0n.js → module.command-kqkn48t2.js} +5 -5
- package/{package.command-8sy6jjwy.js → package.command-qverjh22.js} +4 -4
- package/package.json +8 -6
- package/{page.command-taenb02b.js → page.command-94bwhd0g.js} +3 -3
- package/{primitive.command-7kpncmkk.js → primitive.command-2ydvtah2.js} +6 -6
- package/{prompter-9mn3kp36.js → prompter-1f8d9pcc.js} +1 -1
- package/{quality.command-1ar94hrw.js → quality.command-fa0gth4p.js} +3 -4
- package/{repair.command-n08t6j8p.js → repair.command-4qng2hpm.js} +5 -5
- package/{routeSourceValidator-apyqw7wk.js → routeSourceValidator-7ycnfz0e.js} +0 -6
- package/{scalar.command-mq8qfp4t.js → scalar.command-pb2y95sh.js} +4 -4
- package/skills/akan-code/SKILL.md +122 -0
- package/skills/akan-module/SKILL.md +2 -2
- package/skills/akan-store/SKILL.md +6 -2
- package/{subspace.command-x9897gj4.js → subspace.command-vkxmwp74.js} +4 -4
- package/templates/__scalar/__model__/__model__.abstract.md.template +8 -0
- package/templates/appSample/lib/__scalar/workHistory/workHistory.abstract.ts +8 -39
- package/templates/appSample/lib/_noti/noti.abstract.ts +6 -29
- package/templates/appSample/lib/task/task.abstract.ts +12 -32
- package/templates/appSample/lib/task/task.signal.spec.ts +15 -18
- package/templates/appSample/lib/task/task.signal.test.ts +14 -0
- package/templates/appSample/lib/task/task.signal.ts +1 -1
- package/templates/appSample/srvkit/AuthGuard.ts +4 -1
- package/templates/appSample/srvkit/SessionInternalArg.ts +3 -1
- package/templates/crudPages/[__model__Id]/edit/page.tsx +2 -1
- package/templates/crudPages/[__model__Id]/page.tsx +2 -1
- package/templates/crudPages/new/page.tsx +2 -1
- package/templates/crudPages/page.tsx +2 -1
- package/templates/crudSinglePage/page.tsx +2 -1
- package/templates/module/__model__.signal.ts +12 -4
- package/templates/pkgRoot/tsconfig.json.template +2 -7
- package/templates/service/__model__.abstract.md.template +8 -0
- package/{tunnel.command-ht2es78c.js → tunnel.command-02cvp9nf.js} +2 -2
- package/{workflow.command-tvz4nm9n.js → workflow.command-132txnrh.js} +9 -9
- package/{workspace.command-ayqa1rgt.js → workspace.command-d5wkswek.js} +21 -21
- package/context.runner-bys6ykcp.js +0 -22
- package/guidelines/agentRule/agentRule.generate.json +0 -31
- package/guidelines/componentRule/componentRule.generate.json +0 -31
- package/guidelines/conventions/conventions.generate.json +0 -25
- package/guidelines/cssRule/cssRule.generate.json +0 -31
- package/guidelines/docPageRule/docPageRule.generate.json +0 -31
- package/guidelines/docPageRule/docPageRule.instruction.md +0 -25
- package/guidelines/docSyncRule/docSyncRule.generate.json +0 -31
- package/guidelines/docSyncRule/docSyncRule.instruction.md +0 -25
- package/guidelines/enumConstant/enumConstant.generate.json +0 -31
- package/guidelines/enumConstant/enumConstant.instruction.md +0 -28
- package/guidelines/fieldRule/fieldRule.generate.json +0 -31
- package/guidelines/framework/framework.generate.json +0 -32
- package/guidelines/mcpRule/mcpRule.generate.json +0 -35
- package/guidelines/modelConstant/modelConstant.generate.json +0 -32
- package/guidelines/modelDictionary/modelDictionary.generate.json +0 -32
- package/guidelines/modelDocument/modelDocument.generate.json +0 -31
- package/guidelines/modelService/modelService.generate.json +0 -31
- package/guidelines/modelSignal/modelSignal.generate.json +0 -31
- package/guidelines/modelStore/modelStore.generate.json +0 -31
- package/guidelines/modelTemplate/modelTemplate.generate.json +0 -31
- package/guidelines/modelUnit/modelUnit.generate.json +0 -31
- package/guidelines/modelUtil/modelUtil.generate.json +0 -31
- package/guidelines/modelView/modelView.generate.json +0 -31
- package/guidelines/modelZone/modelZone.generate.json +0 -31
- package/guidelines/moduleCodegen/moduleCodegen.generate.json +0 -31
- package/guidelines/moduleCodegen/moduleCodegen.instruction.md +0 -28
- package/guidelines/moduleOverview/moduleOverview.generate.json +0 -31
- package/guidelines/queryRule/queryRule.generate.json +0 -31
- package/guidelines/recipeRule/recipeRule.generate.json +0 -31
- package/guidelines/runtimeRule/runtimeRule.generate.json +0 -25
- package/guidelines/scalarConstant/scalarConstant.generate.json +0 -32
- package/guidelines/scalarDictionary/scalarDictionary.generate.json +0 -32
- package/guidelines/scalarModule/scalarModule.generate.json +0 -31
- package/guidelines/sharedUiUsage/sharedUiUsage.generate.json +0 -31
- package/guidelines/sharedUiUsage/sharedUiUsage.instruction.md +0 -25
- package/guidelines/ssrRule/ssrRule.generate.json +0 -31
- package/guidelines/transportRule/transportRule.generate.json +0 -31
- package/guidelines/utilUiUsage/utilUiUsage.generate.json +0 -31
- package/guidelines/utilUiUsage/utilUiUsage.instruction.md +0 -25
- package/guidelines/workspaceOnboarding/workspaceOnboarding.generate.json +0 -24
- package/guidelines/workspaceRecipes/workspaceRecipes.generate.json +0 -34
- package/index-jgrnpt6y.js +0 -121
- package/templates/__scalar/__model__/__model__.abstract.md +0 -28
- package/templates/module/__model__.abstract.md +0 -28
- package/templates/service/__model__.abstract.md +0 -28
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
writeGeneratedSyncState,
|
|
6
6
|
createRepairReport,
|
|
7
7
|
renderRepairReport
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-yw6g3bbv.js";
|
|
9
9
|
import {
|
|
10
10
|
AkanContextAnalyzer
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-rpgxs245.js";
|
|
12
12
|
import {
|
|
13
13
|
runner
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-ycy302an.js";
|
|
15
15
|
|
|
16
16
|
// pkgs/@akanjs/cli/repair/repair.runner.ts
|
|
17
17
|
var commandForShell = (command) => command.startsWith("akan ") ? `bun run ${command}` : command;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
CommandExecutionError
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-bwxpk2cj.js";
|
|
5
5
|
import {
|
|
6
6
|
resolveMobilePath,
|
|
7
7
|
targetHtmlFilename
|
|
@@ -450,7 +450,7 @@ function classifyIosRunFailure(log) {
|
|
|
450
450
|
return {
|
|
451
451
|
kind: "unknown",
|
|
452
452
|
title: "iOS native run failed.",
|
|
453
|
-
detail: "Review the xcodebuild/devicectl output above. You can retry with --
|
|
453
|
+
detail: "Review the xcodebuild/devicectl output above. You can retry with --no-allow-provisioning-updates to use the conservative path."
|
|
454
454
|
};
|
|
455
455
|
}
|
|
456
456
|
function formatIosRunFailureMessage(input) {
|
|
@@ -528,6 +528,20 @@ function raiseGradleMinSdkVersion(content, floor = ANDROID_MIN_SDK_VERSION) {
|
|
|
528
528
|
return null;
|
|
529
529
|
return content.replace(/(minSdkVersion\s*=\s*)\d+/, `$1${floor}`);
|
|
530
530
|
}
|
|
531
|
+
var iosUsageDescriptionKeys = {
|
|
532
|
+
cameraUsageDescription: ["NSCameraUsageDescription"],
|
|
533
|
+
photoAddUsageDescription: ["NSPhotoLibraryAddUsageDescription"],
|
|
534
|
+
photoUsageDescription: ["NSPhotoLibraryUsageDescription"],
|
|
535
|
+
contactsUsageDescription: ["NSContactsUsageDescription"],
|
|
536
|
+
locationAlwaysUsageDescription: ["NSLocationAlwaysAndWhenInUseUsageDescription", "NSLocationAlwaysUsageDescription"],
|
|
537
|
+
locationWhenInUseUsageDescription: ["NSLocationWhenInUseUsageDescription"],
|
|
538
|
+
microphoneUsageDescription: ["NSMicrophoneUsageDescription"],
|
|
539
|
+
speechRecognitionUsageDescription: ["NSSpeechRecognitionUsageDescription"]
|
|
540
|
+
};
|
|
541
|
+
var toIosInfoPlistUsageDescriptions = (descriptions) => Object.fromEntries(Object.entries(descriptions).flatMap(([key, value]) => {
|
|
542
|
+
const plistKeys = Object.hasOwn(iosUsageDescriptionKeys, key) ? iosUsageDescriptionKeys[key] : [`NS${capitalize(key)}`];
|
|
543
|
+
return plistKeys.map((plistKey) => [plistKey, value]);
|
|
544
|
+
}));
|
|
531
545
|
var mergeAllowNavigation = (configured, localIp) => {
|
|
532
546
|
const values = Array.isArray(configured) ? configured.filter((value) => typeof value === "string") : [];
|
|
533
547
|
if (localIp)
|
|
@@ -1329,7 +1343,7 @@ ${error.message}`;
|
|
|
1329
1343
|
await editor.setContent(next).save();
|
|
1330
1344
|
}
|
|
1331
1345
|
async#setPermissionInIos(permissions) {
|
|
1332
|
-
const updateNs =
|
|
1346
|
+
const updateNs = toIosInfoPlistUsageDescriptions(permissions);
|
|
1333
1347
|
await Promise.all([
|
|
1334
1348
|
this.project.ios.updateInfoPlist(this.iosTargetName, "Debug", updateNs),
|
|
1335
1349
|
this.project.ios.updateInfoPlist(this.iosTargetName, "Release", updateNs)
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
import {
|
|
3
3
|
runner,
|
|
4
4
|
script
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-ycy302an.js";
|
|
6
6
|
import {
|
|
7
7
|
WorkspaceExecutor,
|
|
8
8
|
AppExecutor,
|
|
9
9
|
LibExecutor,
|
|
10
10
|
PkgExecutor
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-bwxpk2cj.js";
|
|
12
12
|
import {
|
|
13
13
|
LibraryScript
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-6q589y9t.js";
|
|
15
15
|
import {
|
|
16
16
|
HmrWatcher,
|
|
17
17
|
WatchRootResolver
|
|
@@ -22,20 +22,13 @@ import {
|
|
|
22
22
|
import {
|
|
23
23
|
SlicePlanner,
|
|
24
24
|
formatSlicePlan
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-4r42ext5.js";
|
|
26
26
|
import {
|
|
27
27
|
resolveMobileTargets
|
|
28
28
|
} from "./index-47pj3aee.js";
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
function openBrowser(url) {
|
|
33
|
-
const command = process.platform === "darwin" ? ["open", url] : process.platform === "win32" ? ["cmd", "/c", "start", "", url] : ["xdg-open", url];
|
|
34
|
-
const child = spawn(command[0], command.slice(1), { detached: true, stdio: "ignore" });
|
|
35
|
-
child.on("error", () => {});
|
|
36
|
-
child.unref();
|
|
37
|
-
return Promise.resolve();
|
|
38
|
-
}
|
|
29
|
+
import {
|
|
30
|
+
openBrowser
|
|
31
|
+
} from "./index-9dp031by.js";
|
|
39
32
|
|
|
40
33
|
// pkgs/@akanjs/devkit/applicationBuildReporter.ts
|
|
41
34
|
import { Logger } from "akanjs/common";
|
|
@@ -1966,9 +1959,9 @@ ${uniqueCandidates.map((candidate) => ` - ${candidate}`).join(`
|
|
|
1966
1959
|
|
|
1967
1960
|
// pkgs/@akanjs/cli/application/application.runner.ts
|
|
1968
1961
|
import { Logger as Logger4 } from "akanjs/common";
|
|
1969
|
-
var loadBuildRunner = async () => (await import("./applicationBuildRunner-
|
|
1970
|
-
var loadReleasePackager = async () => (await import("./applicationReleasePackager-
|
|
1971
|
-
var loadCapacitorApp = async () => (await import("./capacitorApp-
|
|
1962
|
+
var loadBuildRunner = async () => (await import("./applicationBuildRunner-m0hhgwsx.js")).ApplicationBuildRunner;
|
|
1963
|
+
var loadReleasePackager = async () => (await import("./applicationReleasePackager-vykfzgx3.js")).ApplicationReleasePackager;
|
|
1964
|
+
var loadCapacitorApp = async () => (await import("./capacitorApp-2daqhb5h.js")).CapacitorApp;
|
|
1972
1965
|
var loadPrompts = async () => await import("@inquirer/prompts");
|
|
1973
1966
|
|
|
1974
1967
|
class ApplicationRunner extends runner("application") {
|
|
@@ -2083,7 +2076,7 @@ const serverModule = await import(${JSON.stringify(serverPath)});
|
|
|
2083
2076
|
const { assertAkanConsoleAllowed, startAkanConsole } = await import("akanjs/server");
|
|
2084
2077
|
const server = serverModule.server;
|
|
2085
2078
|
if (!server?.start) throw new Error("server.ts must export server with start()");
|
|
2086
|
-
assertAkanConsoleAllowed(
|
|
2079
|
+
assertAkanConsoleAllowed();
|
|
2087
2080
|
await server.start({ listen: false, web: false });
|
|
2088
2081
|
try {
|
|
2089
2082
|
await startAkanConsole(server, {
|
|
@@ -3226,7 +3219,7 @@ class ApplicationScript extends script("application", [ApplicationRunner, Librar
|
|
|
3226
3219
|
throw new Error("No app selected to start");
|
|
3227
3220
|
const startedDatabase = dbup ? await this.#prepareSharedDatabase(apps) : false;
|
|
3228
3221
|
const supervisor = new DevSupervisor({ apps, mode, concurrency, open, write, shares });
|
|
3229
|
-
const view = mode === "tui" ? await (await import("./devTuiView-
|
|
3222
|
+
const view = mode === "tui" ? await (await import("./devTuiView-1q1mdgrv.js")).createDevTuiView(supervisor) : new DevStreamView(apps.map((app) => app.name));
|
|
3230
3223
|
await supervisor.run(view);
|
|
3231
3224
|
if (startedDatabase)
|
|
3232
3225
|
await this.#stopDatabase(workspace);
|
|
@@ -3385,4 +3378,4 @@ class ApplicationScript extends script("application", [ApplicationRunner, Librar
|
|
|
3385
3378
|
}
|
|
3386
3379
|
}
|
|
3387
3380
|
|
|
3388
|
-
export {
|
|
3381
|
+
export { ApplicationScript };
|