akanjs 2.0.7 → 2.1.0-rc.0
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/README.ko.md +4 -4
- package/README.md +4 -4
- package/client/router.ts +10 -3
- package/document/documentSchema.ts +9 -1
- package/index.ts +187 -0
- package/package.json +6 -50
- package/server/akanApp.ts +2 -24
- package/server/akanAppHeaders.ts +30 -0
- package/server/di/predefinedAdaptor.ts +1 -1
- package/types/dictionary/base.dictionary.d.ts +1 -1
- package/types/dictionary/dictionary.d.ts +8 -8
- package/types/document/documentSchema.d.ts +33 -0
- package/types/document/index.d.ts +1 -1
- package/types/document/schema.d.ts +1 -1
- package/types/document/types.d.ts +1 -1
- package/types/{devkit/akanConfig/types.d.ts → index.d.ts} +45 -54
- package/types/server/akanAppHeaders.d.ts +1 -0
- package/types/server/di/predefinedAdaptor.d.ts +1 -1
- package/types/store/baseSt.d.ts +2 -2
- package/ui/Link/SsrLink.tsx +2 -2
- package/webkit/useCodepush.tsx +1 -1
- package/cli/application/application.command.ts +0 -224
- package/cli/application/application.interface.tsx +0 -225
- package/cli/application/application.runner.ts +0 -355
- package/cli/application/application.script.ts +0 -244
- package/cli/build.ts +0 -27
- package/cli/cloud/cloud.command.ts +0 -48
- package/cli/cloud/cloud.runner.ts +0 -157
- package/cli/cloud/cloud.script.ts +0 -40
- package/cli/guideline/guideline.command.ts +0 -31
- package/cli/guideline/guideline.prompt.ts +0 -212
- package/cli/guideline/guideline.runner.ts +0 -53
- package/cli/guideline/guideline.script.ts +0 -33
- package/cli/guidelines/___library/sharedUiStructureDescription.en.md +0 -767
- package/cli/guidelines/___library/utilUiStructureDescription.en.md +0 -395
- package/cli/guidelines/___lint/lintRuleDescription.en.md +0 -64
- package/cli/guidelines/___module/moduleStructureDescription.en.md +0 -80
- package/cli/guidelines/componentRule/componentRule.generate.json +0 -131
- package/cli/guidelines/componentRule/componentRule.instruction.md +0 -637
- package/cli/guidelines/cssRule/cssRule.generate.json +0 -93
- package/cli/guidelines/cssRule/cssRule.instruction.md +0 -435
- package/cli/guidelines/databaseModule/databaseModule.generate.json +0 -51
- package/cli/guidelines/databaseModule/databaseModule.instruction.md +0 -612
- package/cli/guidelines/docPageRule/docPageRule.generate.json +0 -72
- package/cli/guidelines/docPageRule/docPageRule.instruction.md +0 -389
- package/cli/guidelines/enumConstant/enumConstant.generate.json +0 -24
- package/cli/guidelines/enumConstant/enumConstant.instruction.md +0 -232
- package/cli/guidelines/framework/framework.generate.json +0 -119
- package/cli/guidelines/framework/framework.instruction.md +0 -1110
- package/cli/guidelines/howToUseStore/howToUseStore.generate.json +0 -0
- package/cli/guidelines/modelConstant/modelConstant.generate.json +0 -128
- package/cli/guidelines/modelConstant/modelConstant.instruction.md +0 -506
- package/cli/guidelines/modelDictionary/modelDictionary.generate.json +0 -108
- package/cli/guidelines/modelDictionary/modelDictionary.instruction.md +0 -547
- package/cli/guidelines/modelDocument/modelDocument.generate.json +0 -129
- package/cli/guidelines/modelDocument/modelDocument.instruction.md +0 -509
- package/cli/guidelines/modelService/modelService.generate.json +0 -135
- package/cli/guidelines/modelService/modelService.instruction.md +0 -708
- package/cli/guidelines/modelSignal/modelSignal.generate.json +0 -201
- package/cli/guidelines/modelSignal/modelSignal.instruction.md +0 -552
- package/cli/guidelines/modelStore/modelStore.generate.json +0 -130
- package/cli/guidelines/modelStore/modelStore.instruction.md +0 -585
- package/cli/guidelines/modelTemplate/modelTemplate.generate.json +0 -104
- package/cli/guidelines/modelTemplate/modelTemplate.instruction.md +0 -604
- package/cli/guidelines/modelUnit/modelUnit.generate.json +0 -92
- package/cli/guidelines/modelUnit/modelUnit.instruction.md +0 -541
- package/cli/guidelines/modelUtil/modelUtil.generate.json +0 -93
- package/cli/guidelines/modelUtil/modelUtil.instruction.md +0 -752
- package/cli/guidelines/modelView/modelView.generate.json +0 -80
- package/cli/guidelines/modelView/modelView.instruction.md +0 -1005
- package/cli/guidelines/modelZone/modelZone.generate.json +0 -126
- package/cli/guidelines/modelZone/modelZone.instruction.md +0 -528
- package/cli/guidelines/scalarConstant/scalarConstant.generate.json +0 -106
- package/cli/guidelines/scalarConstant/scalarConstant.instruction.md +0 -442
- package/cli/guidelines/scalarDictionary/scalarDictionary.generate.json +0 -83
- package/cli/guidelines/scalarDictionary/scalarDictionary.instruction.md +0 -273
- package/cli/guidelines/scalarModule/scalarModule.generate.json +0 -35
- package/cli/guidelines/scalarModule/scalarModule.instruction.md +0 -81
- package/cli/guidelines/sharedUiUsage/sharedUiUsage.generate.json +0 -108
- package/cli/guidelines/sharedUiUsage/sharedUiUsage.instruction.md +0 -310
- package/cli/guidelines/utilUiUsage/utilUiUsage.generate.json +0 -140
- package/cli/guidelines/utilUiUsage/utilUiUsage.instruction.md +0 -339
- package/cli/index.js +0 -184444
- package/cli/index.ts +0 -24
- package/cli/library/library.command.ts +0 -28
- package/cli/library/library.runner.ts +0 -66
- package/cli/library/library.script.ts +0 -39
- package/cli/module/module.command.ts +0 -35
- package/cli/module/module.prompt.ts +0 -18
- package/cli/module/module.request.ts +0 -319
- package/cli/module/module.runner.ts +0 -76
- package/cli/module/module.script.ts +0 -161
- package/cli/npmRegistry.ts +0 -13
- package/cli/openBrowser.ts +0 -15
- package/cli/package/package.command.ts +0 -32
- package/cli/package/package.runner.ts +0 -94
- package/cli/package/package.script.ts +0 -35
- package/cli/page/page.command.ts +0 -14
- package/cli/page/page.runner.ts +0 -14
- package/cli/page/page.script.ts +0 -12
- package/cli/pluralizeName.ts +0 -5
- package/cli/scalar/scalar.command.ts +0 -21
- package/cli/scalar/scalar.prompt.ts +0 -131
- package/cli/scalar/scalar.runner.ts +0 -38
- package/cli/scalar/scalar.script.ts +0 -16
- package/cli/semver.ts +0 -18
- package/cli/templates/__scalar/__model__/__model__.constant.ts +0 -15
- package/cli/templates/__scalar/__model__/__model__.dictionary.ts +0 -19
- package/cli/templates/__scalar/__model__/__model__.document.ts +0 -15
- package/cli/templates/app/akan.config.ts +0 -14
- package/cli/templates/app/env/env.client.debug.ts.template +0 -7
- package/cli/templates/app/env/env.client.develop.ts.template +0 -7
- package/cli/templates/app/env/env.client.local.ts.template +0 -7
- package/cli/templates/app/env/env.client.main.ts.template +0 -7
- package/cli/templates/app/env/env.client.testing.ts.template +0 -7
- package/cli/templates/app/env/env.client.ts +0 -21
- package/cli/templates/app/env/env.client.type.ts +0 -16
- package/cli/templates/app/env/env.server.debug.ts.template +0 -7
- package/cli/templates/app/env/env.server.develop.ts.template +0 -7
- package/cli/templates/app/env/env.server.local.ts.template +0 -7
- package/cli/templates/app/env/env.server.main.ts.template +0 -7
- package/cli/templates/app/env/env.server.testing.ts.template +0 -6
- package/cli/templates/app/env/env.server.ts +0 -20
- package/cli/templates/app/lib/___appName__/__appName__.dictionary.ts +0 -17
- package/cli/templates/app/lib/___appName__/__appName__.service.ts +0 -13
- package/cli/templates/app/lib/___appName__/__appName__.signal.ts +0 -17
- package/cli/templates/app/lib/___appName__/__appName__.store.ts +0 -15
- package/cli/templates/app/lib/option.ts +0 -17
- package/cli/templates/app/main.ts +0 -16
- package/cli/templates/app/package.json.template +0 -5
- package/cli/templates/app/page/_index.tsx +0 -296
- package/cli/templates/app/page/_layout.tsx +0 -31
- package/cli/templates/app/page/styles.css.template +0 -53
- package/cli/templates/app/public/favicon.ico +0 -0
- package/cli/templates/app/public/logo.png +0 -0
- package/cli/templates/app/tsconfig.json.template +0 -21
- package/cli/templates/client.ts +0 -46
- package/cli/templates/crudPages/[__model__Id]/edit/page.tsx +0 -47
- package/cli/templates/crudPages/[__model__Id]/page.tsx +0 -52
- package/cli/templates/crudPages/new/page.tsx +0 -42
- package/cli/templates/crudPages/page.tsx +0 -43
- package/cli/templates/crudSinglePage/page.tsx +0 -37
- package/cli/templates/env/_env.server.type.ts +0 -16
- package/cli/templates/facetIndex/index.ts +0 -32
- package/cli/templates/index.ts +0 -10
- package/cli/templates/lib/__lib/lib.constant.ts +0 -38
- package/cli/templates/lib/__lib/lib.dictionary.ts +0 -33
- package/cli/templates/lib/__lib/lib.document.ts +0 -35
- package/cli/templates/lib/__lib/lib.service.ts +0 -33
- package/cli/templates/lib/__lib/lib.signal.ts +0 -34
- package/cli/templates/lib/__lib/lib.store.ts +0 -33
- package/cli/templates/lib/cnst.ts +0 -29
- package/cli/templates/lib/db.ts +0 -32
- package/cli/templates/lib/dict.ts +0 -49
- package/cli/templates/lib/sig.ts +0 -60
- package/cli/templates/lib/srv.ts +0 -34
- package/cli/templates/lib/st.ts +0 -31
- package/cli/templates/lib/useClient.ts +0 -19
- package/cli/templates/lib/useServer.ts +0 -7
- package/cli/templates/libRoot/.gitignore.template +0 -16
- package/cli/templates/libRoot/akan.config.ts +0 -12
- package/cli/templates/libRoot/base/baseLogic.ts +0 -10
- package/cli/templates/libRoot/base/index.ts +0 -8
- package/cli/templates/libRoot/common/commonLogic.ts +0 -10
- package/cli/templates/libRoot/common/index.ts +0 -8
- package/cli/templates/libRoot/env/env.server.example.ts.template +0 -6
- package/cli/templates/libRoot/env/env.server.testing.ts.template +0 -6
- package/cli/templates/libRoot/lib/___libName__/__libName__.dictionary.ts +0 -15
- package/cli/templates/libRoot/lib/___libName__/__libName__.service.ts +0 -11
- package/cli/templates/libRoot/lib/___libName__/__libName__.store.ts +0 -13
- package/cli/templates/libRoot/lib/option.ts +0 -17
- package/cli/templates/libRoot/package.json.template +0 -5
- package/cli/templates/libRoot/srvkit/backendLogic.ts +0 -10
- package/cli/templates/libRoot/srvkit/index.ts +0 -8
- package/cli/templates/libRoot/tsconfig.json.template +0 -11
- package/cli/templates/libRoot/ui/index.ts +0 -7
- package/cli/templates/libRoot/webkit/frontendLogic.ts +0 -10
- package/cli/templates/libRoot/webkit/index.ts +0 -8
- package/cli/templates/localDev/docker-compose.yaml.template +0 -37
- package/cli/templates/module/__Model__.Template.tsx +0 -36
- package/cli/templates/module/__Model__.Unit.tsx +0 -26
- package/cli/templates/module/__Model__.Util.tsx +0 -30
- package/cli/templates/module/__Model__.View.tsx +0 -29
- package/cli/templates/module/__Model__.Zone.tsx +0 -43
- package/cli/templates/module/__model__.constant.ts +0 -24
- package/cli/templates/module/__model__.dictionary.ts +0 -30
- package/cli/templates/module/__model__.document.ts +0 -23
- package/cli/templates/module/__model__.service.ts +0 -16
- package/cli/templates/module/__model__.signal.ts +0 -27
- package/cli/templates/module/__model__.store.ts +0 -19
- package/cli/templates/moduleRoot/index.tsx +0 -31
- package/cli/templates/pkgRoot/tsconfig.json.template +0 -10
- package/cli/templates/server.ts +0 -45
- package/cli/templates/workspaceRoot/.env.template +0 -14
- package/cli/templates/workspaceRoot/.gitignore.template +0 -120
- package/cli/templates/workspaceRoot/.vscode/settings.json.template +0 -23
- package/cli/templates/workspaceRoot/biome.json.template +0 -191
- package/cli/templates/workspaceRoot/bunfig.toml +0 -4
- package/cli/templates/workspaceRoot/package.json.template +0 -7
- package/cli/templates/workspaceRoot/tsconfig.json.template +0 -29
- package/cli/testHelpers.ts +0 -171
- package/cli/workspace/workspace.command.ts +0 -55
- package/cli/workspace/workspace.runner.ts +0 -79
- package/cli/workspace/workspace.script.ts +0 -74
- package/devkit/aiEditor.ts +0 -299
- package/devkit/akanApp/akanApp.host.ts +0 -393
- package/devkit/akanApp/index.ts +0 -1
- package/devkit/akanConfig/akanConfig.ts +0 -360
- package/devkit/akanConfig/index.ts +0 -2
- package/devkit/akanConfig/types.ts +0 -187
- package/devkit/applicationBuildReporter.ts +0 -69
- package/devkit/applicationBuildRunner.ts +0 -302
- package/devkit/applicationReleasePackager.ts +0 -205
- package/devkit/artifact/implicitRootLayout.ts +0 -155
- package/devkit/artifact/index.ts +0 -1
- package/devkit/artifact/routeSeedIndex.ts +0 -128
- package/devkit/auth.ts +0 -41
- package/devkit/builder.ts +0 -164
- package/devkit/capacitor.base.config.ts +0 -88
- package/devkit/capacitorApp.ts +0 -443
- package/devkit/commandDecorators/argMeta.ts +0 -102
- package/devkit/commandDecorators/command.ts +0 -340
- package/devkit/commandDecorators/commandBuilder.ts +0 -224
- package/devkit/commandDecorators/commandMeta.ts +0 -6
- package/devkit/commandDecorators/dependencyBuilder.ts +0 -100
- package/devkit/commandDecorators/helpFormatter.ts +0 -220
- package/devkit/commandDecorators/index.ts +0 -8
- package/devkit/commandDecorators/targetMeta.ts +0 -31
- package/devkit/commandDecorators/types.ts +0 -10
- package/devkit/constants.ts +0 -25
- package/devkit/createTunnel.ts +0 -36
- package/devkit/dependencyScanner.ts +0 -339
- package/devkit/executors.ts +0 -1362
- package/devkit/extractDeps.ts +0 -85
- package/devkit/fileEditor.ts +0 -106
- package/devkit/fileSys.ts +0 -39
- package/devkit/frontendBuild/allRoutesBuilder.ts +0 -103
- package/devkit/frontendBuild/clientBuildTypes.ts +0 -114
- package/devkit/frontendBuild/clientEntriesBundler.ts +0 -300
- package/devkit/frontendBuild/clientEntryDiscovery.ts +0 -196
- package/devkit/frontendBuild/csrArtifactBuilder.ts +0 -237
- package/devkit/frontendBuild/cssCompiler.ts +0 -285
- package/devkit/frontendBuild/cssImportResolver.ts +0 -116
- package/devkit/frontendBuild/fontOptimizer.ts +0 -427
- package/devkit/frontendBuild/hmrChangeClassifier.ts +0 -28
- package/devkit/frontendBuild/hmrWatcher.ts +0 -101
- package/devkit/frontendBuild/index.ts +0 -18
- package/devkit/frontendBuild/pagesBundleBuilder.ts +0 -137
- package/devkit/frontendBuild/pagesEntrySourceGenerator.ts +0 -37
- package/devkit/frontendBuild/precompressArtifacts.ts +0 -59
- package/devkit/frontendBuild/routeClientBuilder.ts +0 -290
- package/devkit/frontendBuild/routesManifestArtifactSerializer.ts +0 -62
- package/devkit/frontendBuild/ssrBaseArtifactBuilder.ts +0 -139
- package/devkit/frontendBuild/vendorSpecifiers.ts +0 -16
- package/devkit/frontendBuild/watchRootResolver.ts +0 -28
- package/devkit/getCredentials.ts +0 -19
- package/devkit/getDirname.ts +0 -3
- package/devkit/getModelFileData.ts +0 -59
- package/devkit/getRelatedCnsts.ts +0 -300
- package/devkit/guideline.ts +0 -19
- package/devkit/incrementalBuilder/incrementalBuilder.host.ts +0 -152
- package/devkit/incrementalBuilder/incrementalBuilder.proc.ts +0 -331
- package/devkit/incrementalBuilder/index.ts +0 -1
- package/devkit/index.ts +0 -36
- package/devkit/lint/no-deep-internal-import.grit +0 -25
- package/devkit/lint/no-import-client-functions.grit +0 -32
- package/devkit/lint/no-import-external-library.grit +0 -21
- package/devkit/lint/no-js-private-class-method.grit +0 -42
- package/devkit/lint/no-use-client-in-server.grit +0 -7
- package/devkit/lint/non-scalar-props-restricted.grit +0 -13
- package/devkit/linter.ts +0 -248
- package/devkit/mobile/index.ts +0 -1
- package/devkit/mobile/mobileTarget.ts +0 -88
- package/devkit/prompter.ts +0 -71
- package/devkit/scanInfo.ts +0 -606
- package/devkit/selectModel.ts +0 -11
- package/devkit/spinner.ts +0 -54
- package/devkit/src/capacitorApp.ts +0 -277
- package/devkit/sshTunnel.ts +0 -151
- package/devkit/streamAi.ts +0 -45
- package/devkit/transforms/barrelAnalyzer.ts +0 -249
- package/devkit/transforms/barrelImportsPlugin.ts +0 -457
- package/devkit/transforms/externalizeFrameworkPlugin.ts +0 -159
- package/devkit/transforms/index.ts +0 -5
- package/devkit/transforms/rscUseClientTransform.ts +0 -52
- package/devkit/transforms/useClientBundlePlugin.ts +0 -47
- package/devkit/typeChecker.ts +0 -260
- package/devkit/types.ts +0 -44
- package/devkit/ui/MultiScrollList.tsx +0 -228
- package/devkit/ui/ScrollList.tsx +0 -106
- package/devkit/ui/index.ts +0 -2
- package/devkit/uploadRelease.ts +0 -95
- package/devkit/useStdoutDimensions.ts +0 -20
- package/types/cli/application/application.command.d.ts +0 -7
- package/types/cli/application/application.interface.d.ts +0 -40
- package/types/cli/application/application.runner.d.ts +0 -66
- package/types/cli/application/application.script.d.ts +0 -72
- package/types/cli/build.d.ts +0 -1
- package/types/cli/cloud/cloud.command.d.ts +0 -7
- package/types/cli/cloud/cloud.runner.d.ts +0 -13
- package/types/cli/cloud/cloud.script.d.ts +0 -23
- package/types/cli/guideline/guideline.command.d.ts +0 -7
- package/types/cli/guideline/guideline.prompt.d.ts +0 -29
- package/types/cli/guideline/guideline.runner.d.ts +0 -21
- package/types/cli/guideline/guideline.script.d.ts +0 -16
- package/types/cli/index.d.ts +0 -2
- package/types/cli/library/library.command.d.ts +0 -7
- package/types/cli/library/library.runner.d.ts +0 -11
- package/types/cli/library/library.script.d.ts +0 -13
- package/types/cli/module/module.command.d.ts +0 -7
- package/types/cli/module/module.prompt.d.ts +0 -13
- package/types/cli/module/module.request.d.ts +0 -63
- package/types/cli/module/module.runner.d.ts +0 -55
- package/types/cli/module/module.script.d.ts +0 -22
- package/types/cli/npmRegistry.d.ts +0 -1
- package/types/cli/openBrowser.d.ts +0 -1
- package/types/cli/package/package.command.d.ts +0 -7
- package/types/cli/package/package.runner.d.ts +0 -13
- package/types/cli/package/package.script.d.ts +0 -18
- package/types/cli/page/page.command.d.ts +0 -7
- package/types/cli/page/page.runner.d.ts +0 -10
- package/types/cli/page/page.script.d.ts +0 -13
- package/types/cli/pluralizeName.d.ts +0 -1
- package/types/cli/scalar/scalar.command.d.ts +0 -7
- package/types/cli/scalar/scalar.prompt.d.ts +0 -23
- package/types/cli/scalar/scalar.runner.d.ts +0 -16
- package/types/cli/scalar/scalar.script.d.ts +0 -11
- package/types/cli/semver.d.ts +0 -1
- package/types/cli/templates/__scalar/__model__/__model__.constant.d.ts +0 -7
- package/types/cli/templates/__scalar/__model__/__model__.dictionary.d.ts +0 -7
- package/types/cli/templates/__scalar/__model__/__model__.document.d.ts +0 -7
- package/types/cli/templates/app/akan.config.d.ts +0 -6
- package/types/cli/templates/app/env/env.client.d.ts +0 -6
- package/types/cli/templates/app/env/env.client.type.d.ts +0 -6
- package/types/cli/templates/app/env/env.server.d.ts +0 -6
- package/types/cli/templates/app/lib/___appName__/__appName__.dictionary.d.ts +0 -7
- package/types/cli/templates/app/lib/___appName__/__appName__.service.d.ts +0 -7
- package/types/cli/templates/app/lib/___appName__/__appName__.signal.d.ts +0 -7
- package/types/cli/templates/app/lib/___appName__/__appName__.store.d.ts +0 -7
- package/types/cli/templates/app/lib/option.d.ts +0 -6
- package/types/cli/templates/app/main.d.ts +0 -6
- package/types/cli/templates/app/page/_index.d.ts +0 -9
- package/types/cli/templates/app/page/_layout.d.ts +0 -11
- package/types/cli/templates/client.d.ts +0 -4
- package/types/cli/templates/crudPages/[__model__Id]/edit/page.d.ts +0 -11
- package/types/cli/templates/crudPages/[__model__Id]/page.d.ts +0 -11
- package/types/cli/templates/crudPages/new/page.d.ts +0 -11
- package/types/cli/templates/crudPages/page.d.ts +0 -11
- package/types/cli/templates/crudSinglePage/page.d.ts +0 -11
- package/types/cli/templates/env/_env.server.type.d.ts +0 -7
- package/types/cli/templates/facetIndex/index.d.ts +0 -13
- package/types/cli/templates/facetIndex.d.ts +0 -1
- package/types/cli/templates/index.d.ts +0 -6
- package/types/cli/templates/lib/__lib/lib.constant.d.ts +0 -4
- package/types/cli/templates/lib/__lib/lib.dictionary.d.ts +0 -4
- package/types/cli/templates/lib/__lib/lib.document.d.ts +0 -4
- package/types/cli/templates/lib/__lib/lib.service.d.ts +0 -4
- package/types/cli/templates/lib/__lib/lib.signal.d.ts +0 -4
- package/types/cli/templates/lib/__lib/lib.store.d.ts +0 -4
- package/types/cli/templates/lib/cnst.d.ts +0 -4
- package/types/cli/templates/lib/db.d.ts +0 -4
- package/types/cli/templates/lib/dict.d.ts +0 -4
- package/types/cli/templates/lib/sig.d.ts +0 -4
- package/types/cli/templates/lib/srv.d.ts +0 -4
- package/types/cli/templates/lib/st.d.ts +0 -4
- package/types/cli/templates/lib/useClient.d.ts +0 -4
- package/types/cli/templates/lib/useServer.d.ts +0 -4
- package/types/cli/templates/libRoot/akan.config.d.ts +0 -5
- package/types/cli/templates/libRoot/base/baseLogic.d.ts +0 -5
- package/types/cli/templates/libRoot/base/index.d.ts +0 -5
- package/types/cli/templates/libRoot/base.d.ts +0 -1
- package/types/cli/templates/libRoot/common/commonLogic.d.ts +0 -5
- package/types/cli/templates/libRoot/common/index.d.ts +0 -5
- package/types/cli/templates/libRoot/common.d.ts +0 -1
- package/types/cli/templates/libRoot/lib/___libName__/__libName__.dictionary.d.ts +0 -6
- package/types/cli/templates/libRoot/lib/___libName__/__libName__.service.d.ts +0 -6
- package/types/cli/templates/libRoot/lib/___libName__/__libName__.store.d.ts +0 -6
- package/types/cli/templates/libRoot/lib/option.d.ts +0 -6
- package/types/cli/templates/libRoot/srvkit/backendLogic.d.ts +0 -5
- package/types/cli/templates/libRoot/srvkit/index.d.ts +0 -5
- package/types/cli/templates/libRoot/srvkit.d.ts +0 -1
- package/types/cli/templates/libRoot/ui/index.d.ts +0 -5
- package/types/cli/templates/libRoot/ui.d.ts +0 -1
- package/types/cli/templates/libRoot/webkit/frontendLogic.d.ts +0 -5
- package/types/cli/templates/libRoot/webkit/index.d.ts +0 -5
- package/types/cli/templates/libRoot/webkit.d.ts +0 -1
- package/types/cli/templates/module/__Model__.Template.d.ts +0 -11
- package/types/cli/templates/module/__Model__.Unit.d.ts +0 -11
- package/types/cli/templates/module/__Model__.Util.d.ts +0 -11
- package/types/cli/templates/module/__Model__.View.d.ts +0 -11
- package/types/cli/templates/module/__Model__.Zone.d.ts +0 -11
- package/types/cli/templates/module/__model__.constant.d.ts +0 -8
- package/types/cli/templates/module/__model__.dictionary.d.ts +0 -8
- package/types/cli/templates/module/__model__.document.d.ts +0 -8
- package/types/cli/templates/module/__model__.service.d.ts +0 -8
- package/types/cli/templates/module/__model__.signal.d.ts +0 -9
- package/types/cli/templates/module/__model__.store.d.ts +0 -8
- package/types/cli/templates/moduleRoot/index.d.ts +0 -11
- package/types/cli/templates/moduleRoot.d.ts +0 -1
- package/types/cli/templates/server.d.ts +0 -4
- package/types/cli/templates.d.ts +0 -1
- package/types/cli/testHelpers.d.ts +0 -64
- package/types/cli/workspace/workspace.command.d.ts +0 -7
- package/types/cli/workspace/workspace.runner.d.ts +0 -14
- package/types/cli/workspace/workspace.script.d.ts +0 -29
- package/types/cli.d.ts +0 -1
- package/types/devkit/aiEditor.d.ts +0 -50
- package/types/devkit/akanApp/akanApp.host.d.ts +0 -16
- package/types/devkit/akanApp/index.d.ts +0 -1
- package/types/devkit/akanApp.d.ts +0 -1
- package/types/devkit/akanConfig/akanConfig.d.ts +0 -36
- package/types/devkit/akanConfig/index.d.ts +0 -2
- package/types/devkit/akanConfig.d.ts +0 -1
- package/types/devkit/applicationBuildReporter.d.ts +0 -25
- package/types/devkit/applicationBuildRunner.d.ts +0 -29
- package/types/devkit/applicationReleasePackager.d.ts +0 -17
- package/types/devkit/artifact/implicitRootLayout.d.ts +0 -17
- package/types/devkit/artifact/index.d.ts +0 -1
- package/types/devkit/artifact/routeSeedIndex.d.ts +0 -38
- package/types/devkit/artifact.d.ts +0 -1
- package/types/devkit/auth.d.ts +0 -9
- package/types/devkit/builder.d.ts +0 -18
- package/types/devkit/capacitor.base.config.d.ts +0 -3
- package/types/devkit/capacitorApp.d.ts +0 -58
- package/types/devkit/commandDecorators/argMeta.d.ts +0 -68
- package/types/devkit/commandDecorators/command.d.ts +0 -2
- package/types/devkit/commandDecorators/commandBuilder.d.ts +0 -60
- package/types/devkit/commandDecorators/commandMeta.d.ts +0 -2
- package/types/devkit/commandDecorators/dependencyBuilder.d.ts +0 -22
- package/types/devkit/commandDecorators/helpFormatter.d.ts +0 -3
- package/types/devkit/commandDecorators/index.d.ts +0 -8
- package/types/devkit/commandDecorators/targetMeta.d.ts +0 -21
- package/types/devkit/commandDecorators/types.d.ts +0 -8
- package/types/devkit/commandDecorators.d.ts +0 -1
- package/types/devkit/constants.d.ts +0 -25
- package/types/devkit/createTunnel.d.ts +0 -8
- package/types/devkit/dependencyScanner.d.ts +0 -33
- package/types/devkit/executors.d.ts +0 -320
- package/types/devkit/extractDeps.d.ts +0 -7
- package/types/devkit/fileEditor.d.ts +0 -16
- package/types/devkit/fileSys.d.ts +0 -12
- package/types/devkit/frontendBuild/allRoutesBuilder.d.ts +0 -18
- package/types/devkit/frontendBuild/clientBuildTypes.d.ts +0 -107
- package/types/devkit/frontendBuild/clientEntriesBundler.d.ts +0 -12
- package/types/devkit/frontendBuild/clientEntryDiscovery.d.ts +0 -19
- package/types/devkit/frontendBuild/csrArtifactBuilder.d.ts +0 -16
- package/types/devkit/frontendBuild/cssCompiler.d.ts +0 -25
- package/types/devkit/frontendBuild/cssImportResolver.d.ts +0 -9
- package/types/devkit/frontendBuild/fontOptimizer.d.ts +0 -14
- package/types/devkit/frontendBuild/hmrChangeClassifier.d.ts +0 -5
- package/types/devkit/frontendBuild/hmrWatcher.d.ts +0 -21
- package/types/devkit/frontendBuild/index.d.ts +0 -18
- package/types/devkit/frontendBuild/pagesBundleBuilder.d.ts +0 -28
- package/types/devkit/frontendBuild/pagesEntrySourceGenerator.d.ts +0 -9
- package/types/devkit/frontendBuild/precompressArtifacts.d.ts +0 -7
- package/types/devkit/frontendBuild/routeClientBuilder.d.ts +0 -50
- package/types/devkit/frontendBuild/routesManifestArtifactSerializer.d.ts +0 -12
- package/types/devkit/frontendBuild/ssrBaseArtifactBuilder.d.ts +0 -16
- package/types/devkit/frontendBuild/vendorSpecifiers.d.ts +0 -2
- package/types/devkit/frontendBuild/watchRootResolver.d.ts +0 -6
- package/types/devkit/frontendBuild.d.ts +0 -1
- package/types/devkit/getCredentials.d.ts +0 -12
- package/types/devkit/getDirname.d.ts +0 -1
- package/types/devkit/getModelFileData.d.ts +0 -16
- package/types/devkit/getRelatedCnsts.d.ts +0 -53
- package/types/devkit/guideline.d.ts +0 -19
- package/types/devkit/incrementalBuilder/incrementalBuilder.host.d.ts +0 -30
- package/types/devkit/incrementalBuilder/incrementalBuilder.proc.d.ts +0 -1
- package/types/devkit/incrementalBuilder/index.d.ts +0 -1
- package/types/devkit/incrementalBuilder.d.ts +0 -1
- package/types/devkit/index.d.ts +0 -36
- package/types/devkit/linter.d.ts +0 -108
- package/types/devkit/mobile/index.d.ts +0 -1
- package/types/devkit/mobile/mobileTarget.d.ts +0 -14
- package/types/devkit/mobile.d.ts +0 -1
- package/types/devkit/prompter.d.ts +0 -15
- package/types/devkit/scanInfo.d.ts +0 -82
- package/types/devkit/selectModel.d.ts +0 -1
- package/types/devkit/spinner.d.ts +0 -20
- package/types/devkit/src/capacitorApp.d.ts +0 -39
- package/types/devkit/sshTunnel.d.ts +0 -14
- package/types/devkit/streamAi.d.ts +0 -6
- package/types/devkit/transforms/barrelAnalyzer.d.ts +0 -27
- package/types/devkit/transforms/barrelImportsPlugin.d.ts +0 -26
- package/types/devkit/transforms/externalizeFrameworkPlugin.d.ts +0 -49
- package/types/devkit/transforms/index.d.ts +0 -5
- package/types/devkit/transforms/rscUseClientTransform.d.ts +0 -10
- package/types/devkit/transforms/useClientBundlePlugin.d.ts +0 -19
- package/types/devkit/transforms.d.ts +0 -1
- package/types/devkit/typeChecker.d.ts +0 -62
- package/types/devkit/types.d.ts +0 -43
- package/types/devkit/ui/MultiScrollList.d.ts +0 -13
- package/types/devkit/ui/ScrollList.d.ts +0 -7
- package/types/devkit/ui/index.d.ts +0 -2
- package/types/devkit/ui.d.ts +0 -1
- package/types/devkit/uploadRelease.d.ts +0 -10
- package/types/devkit/useStdoutDimensions.d.ts +0 -1
- package/types/devkit.d.ts +0 -1
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { Box, Text, useInput } from "ink";
|
|
3
|
-
import { useEffect, useState } from "react";
|
|
4
|
-
import { useStdoutDimensions } from "../useStdoutDimensions";
|
|
5
|
-
|
|
6
|
-
interface MultiScrollListProps {
|
|
7
|
-
logList: {
|
|
8
|
-
title: string;
|
|
9
|
-
logs: {
|
|
10
|
-
type: string;
|
|
11
|
-
content: string;
|
|
12
|
-
}[];
|
|
13
|
-
color: string;
|
|
14
|
-
}[];
|
|
15
|
-
|
|
16
|
-
maxLength?: number;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* @param logList 로그 목록
|
|
21
|
-
* @param maxLength 최대 로그 길이 (기본 100)
|
|
22
|
-
*/
|
|
23
|
-
const HEADER_HEIGHT = 1;
|
|
24
|
-
const FOOTER_HEIGHT = 1;
|
|
25
|
-
const OUTER_BORDER_HEIGHT = 2;
|
|
26
|
-
const BORDER_HEIGHT = 2;
|
|
27
|
-
const ANSI_ESCAPE_RE = new RegExp(`${String.fromCharCode(27)}(?:[@-Z\\\\-_]|\\[[\\s\\S]*?[@-~])`, "g");
|
|
28
|
-
|
|
29
|
-
export const MultiScrollList = ({ logList, maxLength = 100 }: MultiScrollListProps) => {
|
|
30
|
-
|
|
31
|
-
const [width, height] = useStdoutDimensions();
|
|
32
|
-
|
|
33
|
-
const [focusLog, setFocusLog] = useState<{ type: string; content: string }[]>([]);
|
|
34
|
-
|
|
35
|
-
const [lengthMap, setLengthMap] = useState<Map<number, number>>(new Map());
|
|
36
|
-
|
|
37
|
-
const [scrollPos, setScrollPos] = useState(0);
|
|
38
|
-
|
|
39
|
-
const [tabIndex, setTabIndex] = useState<number>(0);
|
|
40
|
-
|
|
41
|
-
const [isRunning, setIsRunning] = useState(false);
|
|
42
|
-
|
|
43
|
-
const [boxHeight, setBoxHeight] = useState(
|
|
44
|
-
height - HEADER_HEIGHT - OUTER_BORDER_HEIGHT - FOOTER_HEIGHT - BORDER_HEIGHT,
|
|
45
|
-
);
|
|
46
|
-
const boxWidth = width - 27;
|
|
47
|
-
|
|
48
|
-
const getLimitedLogs = (logs: { type: string; content: string }[]) => {
|
|
49
|
-
const sortedLogs = logs.reduce<{ type: string; content: string }[]>((acc, log) => {
|
|
50
|
-
|
|
51
|
-
const content = log.content.replace(ANSI_ESCAPE_RE, "");
|
|
52
|
-
if (content.length > boxWidth) {
|
|
53
|
-
const lines = Math.ceil(content.length / boxWidth);
|
|
54
|
-
for (let i = 0; i < lines; i++) {
|
|
55
|
-
acc.push({ type: log.type, content: content.slice(i * boxWidth, (i + 1) * boxWidth) });
|
|
56
|
-
}
|
|
57
|
-
} else {
|
|
58
|
-
acc.push(log);
|
|
59
|
-
}
|
|
60
|
-
return acc;
|
|
61
|
-
}, []);
|
|
62
|
-
return sortedLogs.length > maxLength ? sortedLogs.slice(sortedLogs.length - maxLength) : sortedLogs;
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
useInput((input, key) => {
|
|
66
|
-
|
|
67
|
-
if (key.tab) {
|
|
68
|
-
setTabIndex((prev: number) => (prev + 1) % logList.length);
|
|
69
|
-
setScrollPos(0);
|
|
70
|
-
setIsRunning(false);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
if (key.escape) {
|
|
74
|
-
setScrollPos(0);
|
|
75
|
-
setIsRunning(false);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
if (input === " ") {
|
|
79
|
-
setScrollPos(0);
|
|
80
|
-
setIsRunning(false);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
if (key.downArrow && scrollPos > 0) {
|
|
84
|
-
if (key.shift) {
|
|
85
|
-
const newScrollPos = scrollPos - 10;
|
|
86
|
-
|
|
87
|
-
if (newScrollPos < 0) {
|
|
88
|
-
setScrollPos(0);
|
|
89
|
-
} else {
|
|
90
|
-
setScrollPos(newScrollPos);
|
|
91
|
-
}
|
|
92
|
-
} else {
|
|
93
|
-
const newScrollPos = scrollPos - 1;
|
|
94
|
-
setScrollPos(newScrollPos);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
if (key.upArrow && scrollPos < logList[tabIndex].logs.length - boxHeight) {
|
|
99
|
-
const limitedLogs = getLimitedLogs(logList[tabIndex].logs);
|
|
100
|
-
if (scrollPos < limitedLogs.length - boxHeight) {
|
|
101
|
-
|
|
102
|
-
if (key.shift) {
|
|
103
|
-
const newScrollPos = scrollPos + 10;
|
|
104
|
-
|
|
105
|
-
if (newScrollPos > limitedLogs.length - boxHeight) {
|
|
106
|
-
setScrollPos(limitedLogs.length - boxHeight);
|
|
107
|
-
} else {
|
|
108
|
-
setScrollPos(newScrollPos);
|
|
109
|
-
}
|
|
110
|
-
} else {
|
|
111
|
-
setScrollPos(scrollPos + 1);
|
|
112
|
-
}
|
|
113
|
-
if (!isRunning) setIsRunning(true);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
|
-
|
|
118
|
-
useEffect(() => {
|
|
119
|
-
|
|
120
|
-
const getLogsToRender = (logs: { type: string; content: string }[], index: number) => {
|
|
121
|
-
|
|
122
|
-
const limitedLogs = getLimitedLogs(logs);
|
|
123
|
-
|
|
124
|
-
if (scrollPos > 0 && tabIndex === index) {
|
|
125
|
-
return limitedLogs.slice(limitedLogs.length - boxHeight - scrollPos, limitedLogs.length - scrollPos);
|
|
126
|
-
}
|
|
127
|
-
else if (limitedLogs.length > boxHeight) {
|
|
128
|
-
return limitedLogs.slice(limitedLogs.length - boxHeight, limitedLogs.length);
|
|
129
|
-
}
|
|
130
|
-
else {
|
|
131
|
-
return limitedLogs;
|
|
132
|
-
}
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
if (isRunning) {
|
|
136
|
-
|
|
137
|
-
if (lengthMap.has(tabIndex)) {
|
|
138
|
-
const tabLength = lengthMap.get(tabIndex);
|
|
139
|
-
const limitedLogsLength = Math.min(logList[tabIndex].logs.length, maxLength);
|
|
140
|
-
if (tabLength && tabLength < limitedLogsLength) {
|
|
141
|
-
setScrollPos(scrollPos + 1);
|
|
142
|
-
lengthMap.set(tabIndex, limitedLogsLength);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
setFocusLog(getLogsToRender(logList[tabIndex].logs, tabIndex));
|
|
147
|
-
}
|
|
148
|
-
else {
|
|
149
|
-
|
|
150
|
-
setFocusLog(getLogsToRender(logList[tabIndex].logs, tabIndex));
|
|
151
|
-
}
|
|
152
|
-
}, [logList, isRunning, scrollPos, tabIndex, boxHeight, maxLength]);
|
|
153
|
-
|
|
154
|
-
useEffect(() => {
|
|
155
|
-
setBoxHeight(height - HEADER_HEIGHT - OUTER_BORDER_HEIGHT - FOOTER_HEIGHT - BORDER_HEIGHT);
|
|
156
|
-
}, [height]);
|
|
157
|
-
|
|
158
|
-
useEffect(() => {
|
|
159
|
-
setLengthMap(new Map(logList.map((log, index) => [index, Math.min(log.logs.length, maxLength)])));
|
|
160
|
-
}, [logList, maxLength]);
|
|
161
|
-
|
|
162
|
-
return (
|
|
163
|
-
<Box width={width} height={height} borderStyle="round" borderColor="blackBright" flexDirection="column">
|
|
164
|
-
<Box width={"100%"} height={boxHeight + BORDER_HEIGHT + HEADER_HEIGHT} flexDirection="row">
|
|
165
|
-
<Box width={30} height="100%" flexDirection="column">
|
|
166
|
-
<Box>
|
|
167
|
-
<Text>
|
|
168
|
-
List {tabIndex + 1}/{logList.length}
|
|
169
|
-
</Text>
|
|
170
|
-
</Box>
|
|
171
|
-
<Box borderStyle="round" borderColor="blackBright" width={"100%"} height="100%" flexDirection="column">
|
|
172
|
-
{logList.map((log, index) => {
|
|
173
|
-
return (
|
|
174
|
-
<Text key={index} color={index === tabIndex ? "green" : "white"}>
|
|
175
|
-
<Text>●</Text>
|
|
176
|
-
{log.title.length > 25 ? `${log.title.slice(0, 25)}...` : log.title}
|
|
177
|
-
</Text>
|
|
178
|
-
);
|
|
179
|
-
})}
|
|
180
|
-
</Box>
|
|
181
|
-
</Box>
|
|
182
|
-
<Box width={"100%"} height="100%" flexDirection="column">
|
|
183
|
-
<Box height={1}>
|
|
184
|
-
<Text color={logList[tabIndex].color}>
|
|
185
|
-
{logList[tabIndex].title} {logList[tabIndex].logs.length}
|
|
186
|
-
</Text>
|
|
187
|
-
</Box>
|
|
188
|
-
<Box
|
|
189
|
-
borderStyle={isRunning ? "double" : "round"}
|
|
190
|
-
flexDirection="column"
|
|
191
|
-
borderColor={logList[tabIndex].color}
|
|
192
|
-
width="100%"
|
|
193
|
-
height="100%"
|
|
194
|
-
>
|
|
195
|
-
{scrollPos > 0 ? (
|
|
196
|
-
<>
|
|
197
|
-
{focusLog.slice(0, focusLog.length - 1).map((log, index) => {
|
|
198
|
-
return (
|
|
199
|
-
<Text underline={false} color={log.type === "error" ? "red" : "white"} key={index}>
|
|
200
|
-
{log.content}
|
|
201
|
-
</Text>
|
|
202
|
-
);
|
|
203
|
-
})}
|
|
204
|
-
<Text underline={false} backgroundColor="green">
|
|
205
|
-
Scrolling... +{scrollPos}
|
|
206
|
-
</Text>
|
|
207
|
-
</>
|
|
208
|
-
) : (
|
|
209
|
-
focusLog.map((log, index) => {
|
|
210
|
-
return (
|
|
211
|
-
<Text underline={false} color={log.type === "error" ? "red" : "white"} key={index}>
|
|
212
|
-
{log.content}
|
|
213
|
-
</Text>
|
|
214
|
-
);
|
|
215
|
-
})
|
|
216
|
-
)}
|
|
217
|
-
</Box>
|
|
218
|
-
</Box>
|
|
219
|
-
</Box>
|
|
220
|
-
{/* <Text>{renderMultiLogs[tabIndex][0]}</Text> */}
|
|
221
|
-
<Box width={"100%"} height={FOOTER_HEIGHT}>
|
|
222
|
-
<Text dimColor={true}>
|
|
223
|
-
Tab : switch tab | Up / Down(shift : x10) : scroll | Space : back last position | Esc : stop scrolling
|
|
224
|
-
</Text>
|
|
225
|
-
</Box>
|
|
226
|
-
</Box>
|
|
227
|
-
);
|
|
228
|
-
};
|
package/devkit/ui/ScrollList.tsx
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { Box, type BoxProps, Newline, Text, useInput } from "ink";
|
|
3
|
-
import { type ReactNode, useEffect, useState } from "react";
|
|
4
|
-
import { useStdoutDimensions } from "../useStdoutDimensions";
|
|
5
|
-
|
|
6
|
-
interface ScrollListProps extends BoxProps {
|
|
7
|
-
list: ReactNode[];
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export const ScrollList = ({ list, ...props }: ScrollListProps) => {
|
|
11
|
-
const [renderLogs, setRenderLogs] = useState<ReactNode[]>(list);
|
|
12
|
-
const [width, height] = useStdoutDimensions();
|
|
13
|
-
const [scrollPos, setScrollPos] = useState(0);
|
|
14
|
-
const [isRunning, setIsRunning] = useState(false);
|
|
15
|
-
const [boxHeight, setBoxHeight] = useState(height - 3);
|
|
16
|
-
|
|
17
|
-
useInput((input, key) => {
|
|
18
|
-
if (key.escape) {
|
|
19
|
-
setIsRunning(false);
|
|
20
|
-
setScrollPos(0);
|
|
21
|
-
}
|
|
22
|
-
if (input === " " && isRunning) {
|
|
23
|
-
setIsRunning(false);
|
|
24
|
-
setScrollPos(0);
|
|
25
|
-
}
|
|
26
|
-
if (key.downArrow && scrollPos > 0) {
|
|
27
|
-
if (key.shift) {
|
|
28
|
-
setScrollPos(scrollPos - 10);
|
|
29
|
-
} else {
|
|
30
|
-
setScrollPos(scrollPos - 1);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
if (key.upArrow && scrollPos < list.length - boxHeight) {
|
|
34
|
-
if (key.shift) {
|
|
35
|
-
setScrollPos(scrollPos + 10);
|
|
36
|
-
} else {
|
|
37
|
-
setScrollPos(scrollPos + 1);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
useEffect(() => {
|
|
43
|
-
|
|
44
|
-
if (isRunning) {
|
|
45
|
-
setScrollPos(scrollPos + 1);
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
if (list.length > boxHeight) {
|
|
49
|
-
setRenderLogs(list.slice(list.length - boxHeight, list.length));
|
|
50
|
-
} else {
|
|
51
|
-
setRenderLogs(list);
|
|
52
|
-
}
|
|
53
|
-
}, [list, isRunning]);
|
|
54
|
-
|
|
55
|
-
useEffect(() => {
|
|
56
|
-
setBoxHeight(Math.floor(height * 0.9));
|
|
57
|
-
}, [height]);
|
|
58
|
-
|
|
59
|
-
useEffect(() => {
|
|
60
|
-
if (scrollPos > 0) {
|
|
61
|
-
setRenderLogs(list.slice(list.length - boxHeight - scrollPos, list.length - scrollPos));
|
|
62
|
-
setIsRunning(true);
|
|
63
|
-
} else {
|
|
64
|
-
setRenderLogs(list.slice(list.length - boxHeight, list.length));
|
|
65
|
-
setIsRunning(false);
|
|
66
|
-
}
|
|
67
|
-
}, [scrollPos]);
|
|
68
|
-
|
|
69
|
-
return (
|
|
70
|
-
<Box {...props} width={width} height={"100%"} flexDirection="column">
|
|
71
|
-
<Box borderStyle="round" width={width} height={height - 3}>
|
|
72
|
-
<Newline />
|
|
73
|
-
<Text>
|
|
74
|
-
{isRunning ? (
|
|
75
|
-
<>
|
|
76
|
-
{renderLogs.slice(0, renderLogs.length - 1).map((log, index) => (
|
|
77
|
-
<>
|
|
78
|
-
<Text key={index}>{log}</Text>
|
|
79
|
-
<Newline />
|
|
80
|
-
</>
|
|
81
|
-
))}
|
|
82
|
-
<Text backgroundColor="green">scrolling... + {scrollPos}</Text>
|
|
83
|
-
</>
|
|
84
|
-
) : (
|
|
85
|
-
<>
|
|
86
|
-
{renderLogs.map((log, index) => (
|
|
87
|
-
<>
|
|
88
|
-
<Text key={index}>{log}</Text>
|
|
89
|
-
<Newline />
|
|
90
|
-
</>
|
|
91
|
-
))}
|
|
92
|
-
</>
|
|
93
|
-
)}
|
|
94
|
-
</Text>
|
|
95
|
-
</Box>
|
|
96
|
-
<Box>
|
|
97
|
-
<Text dimColor={true}>
|
|
98
|
-
You can use the following shortcuts:
|
|
99
|
-
<Newline />* <Text backgroundColor="green">up</Text> and <Text backgroundColor="green">down</Text> to scroll.{" "}
|
|
100
|
-
<Text backgroundColor="green">shift</Text> to scroll faster.
|
|
101
|
-
<Newline />* <Text backgroundColor="green">escape</Text> to stop scrolling.
|
|
102
|
-
</Text>
|
|
103
|
-
</Box>
|
|
104
|
-
</Box>
|
|
105
|
-
);
|
|
106
|
-
};
|
package/devkit/ui/index.ts
DELETED
package/devkit/uploadRelease.ts
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { HttpClient, Logger } from "akanjs/common";
|
|
2
|
-
|
|
3
|
-
import { Spinner } from "./spinner";
|
|
4
|
-
|
|
5
|
-
const spinning = (message: string) => {
|
|
6
|
-
const spinner = new Spinner(message, { prefix: message, enableSpin: true }).start();
|
|
7
|
-
return spinner;
|
|
8
|
-
};
|
|
9
|
-
export const uploadRelease = async (
|
|
10
|
-
appName: string,
|
|
11
|
-
{
|
|
12
|
-
workspaceRoot,
|
|
13
|
-
environment,
|
|
14
|
-
buildNum,
|
|
15
|
-
platformVersion,
|
|
16
|
-
os,
|
|
17
|
-
local,
|
|
18
|
-
}: {
|
|
19
|
-
workspaceRoot: string;
|
|
20
|
-
environment: string;
|
|
21
|
-
buildNum: number;
|
|
22
|
-
platformVersion?: string;
|
|
23
|
-
os?: "android" | "ios";
|
|
24
|
-
local?: boolean;
|
|
25
|
-
},
|
|
26
|
-
) => {
|
|
27
|
-
const logger = new Logger("uploadRelease");
|
|
28
|
-
const basePath = local ? "http://localhost:8282/backend" : "https://cloud.akanjs.com/backend";
|
|
29
|
-
const httpClient = new HttpClient(basePath);
|
|
30
|
-
const buildPath = `${workspaceRoot}/releases/builds/${appName}-release.tar.gz`;
|
|
31
|
-
const appBuildPath = `${workspaceRoot}/releases/builds/${appName}-appBuild.zip`;
|
|
32
|
-
const sourcePath = `${workspaceRoot}/releases/sources/${appName}-source.tar.gz`;
|
|
33
|
-
|
|
34
|
-
const readingFilesSpinner = spinning("Reading files...");
|
|
35
|
-
try {
|
|
36
|
-
const buildFile = Bun.file(buildPath);
|
|
37
|
-
const sourceFile = Bun.file(sourcePath);
|
|
38
|
-
const appBuildFile = Bun.file(appBuildPath);
|
|
39
|
-
const buildStat = { mtime: new Date(buildFile.lastModified), size: buildFile.size };
|
|
40
|
-
const sourceStat = { mtime: new Date(sourceFile.lastModified), size: sourceFile.size };
|
|
41
|
-
const appBuildStat = { mtime: new Date(appBuildFile.lastModified), size: appBuildFile.size };
|
|
42
|
-
readingFilesSpinner.succeed("Reading files... done");
|
|
43
|
-
|
|
44
|
-
const preparingFormSpinner = spinning("Preparing form data...");
|
|
45
|
-
const formData = new FormData();
|
|
46
|
-
formData.append("files", buildFile, `${appName}-release.tar.gz`);
|
|
47
|
-
formData.append("files", sourceFile, `${appName}-source.tar.gz`);
|
|
48
|
-
formData.append("files", appBuildFile, `${appName}-appBuild.zip`);
|
|
49
|
-
formData.append(
|
|
50
|
-
"metas",
|
|
51
|
-
JSON.stringify([
|
|
52
|
-
{ lastModifiedAt: buildStat.mtime, size: buildStat.size },
|
|
53
|
-
{ lastModifiedAt: sourceStat.mtime, size: sourceStat.size },
|
|
54
|
-
{ lastModifiedAt: appBuildStat.mtime, size: appBuildStat.size },
|
|
55
|
-
]),
|
|
56
|
-
);
|
|
57
|
-
formData.append("type", "release");
|
|
58
|
-
preparingFormSpinner.succeed("Preparing form data... done");
|
|
59
|
-
|
|
60
|
-
try {
|
|
61
|
-
const uploadingFilesSpinner = spinning("Uploading files to server...");
|
|
62
|
-
const [buildFile, sourceFile, appBuildFile] = await httpClient.post<
|
|
63
|
-
[{ id: string }, { id: string }, { id: string }]
|
|
64
|
-
>("/file/addFilesRestApi", formData);
|
|
65
|
-
uploadingFilesSpinner.succeed("Uploading files to server... done");
|
|
66
|
-
|
|
67
|
-
const fetchingAppSpinner = spinning(`Fetching dev app information for ${appName}...`);
|
|
68
|
-
const major = platformVersion ? parseInt(platformVersion.split(".")[0]) : 1;
|
|
69
|
-
const minor = platformVersion ? parseInt(platformVersion.split(".")[1]) : 0;
|
|
70
|
-
const patch = platformVersion ? parseInt(platformVersion.split(".")[2]) : 0;
|
|
71
|
-
|
|
72
|
-
const devApp = await httpClient.get<{ id: string }>(`/devApp/devAppInName/${appName}`);
|
|
73
|
-
fetchingAppSpinner.succeed(`Fetching dev app information for ${appName}... done`);
|
|
74
|
-
|
|
75
|
-
const pushingReleaseSpinner = spinning(`Pushing release to ${environment} environment...`);
|
|
76
|
-
const release = await httpClient.post<{ id: string }>(
|
|
77
|
-
`/release/pushRelease/${devApp.id}/${environment}/${major}/${minor}/${patch}/${sourceFile.id}/${buildFile.id}/${appBuildFile.id}${os ? `/${os}` : ""}`,
|
|
78
|
-
);
|
|
79
|
-
pushingReleaseSpinner.succeed(`Pushing release to ${environment} environment... done`);
|
|
80
|
-
new Spinner(`Successfully pushed release to ${appName}-${environment} server. `, {
|
|
81
|
-
prefix: `Successfully pushed release to ${appName}-${environment} server. `,
|
|
82
|
-
enableSpin: false,
|
|
83
|
-
}).succeed(`Successfully pushed release to ${appName}-${environment} server. `);
|
|
84
|
-
return release;
|
|
85
|
-
} catch (e) {
|
|
86
|
-
const errorMessage = e instanceof Error ? e.message : "Unknown error";
|
|
87
|
-
logger.error(`Upload release failed: ${errorMessage}`);
|
|
88
|
-
return null;
|
|
89
|
-
}
|
|
90
|
-
} catch (e) {
|
|
91
|
-
const errorMessage = e instanceof Error ? e.message : "Unknown error";
|
|
92
|
-
readingFilesSpinner.fail(`Reading files failed: ${errorMessage}`);
|
|
93
|
-
return null;
|
|
94
|
-
}
|
|
95
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { useStdout } from "ink";
|
|
3
|
-
import { useEffect, useState } from "react";
|
|
4
|
-
|
|
5
|
-
export const useStdoutDimensions = (): [number, number] => {
|
|
6
|
-
const { stdout } = useStdout();
|
|
7
|
-
const [dimensions, setDimensions] = useState<[number, number]>([stdout.columns, stdout.rows]);
|
|
8
|
-
|
|
9
|
-
useEffect(() => {
|
|
10
|
-
const handler = () => {
|
|
11
|
-
setDimensions([stdout.columns, stdout.rows]);
|
|
12
|
-
};
|
|
13
|
-
stdout.on("resize", handler);
|
|
14
|
-
return () => {
|
|
15
|
-
stdout.off("resize", handler);
|
|
16
|
-
};
|
|
17
|
-
}, [stdout]);
|
|
18
|
-
|
|
19
|
-
return dimensions;
|
|
20
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ApplicationScript } from "./application.script";
|
|
2
|
-
declare const ApplicationCommand_base: import("akanjs/devkit").CommandCls<{
|
|
3
|
-
applicationScript: ApplicationScript;
|
|
4
|
-
}, "applicationCommand">;
|
|
5
|
-
export declare class ApplicationCommand extends ApplicationCommand_base {
|
|
6
|
-
}
|
|
7
|
-
export {};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { ChildProcess } from "node:child_process";
|
|
2
|
-
import type EventEmitter from "node:events";
|
|
3
|
-
import { type App as AppType } from "akanjs/devkit";
|
|
4
|
-
export declare const Interface: {
|
|
5
|
-
/**
|
|
6
|
-
* Akan CSR 실행 컴포넌트
|
|
7
|
-
*
|
|
8
|
-
* @param app 앱 정보
|
|
9
|
-
* @param event CSR 이벤트 발생기
|
|
10
|
-
* @param onExit 종료 함수
|
|
11
|
-
*/
|
|
12
|
-
Csr: (app: AppType, event: EventEmitter, onExit: () => void) => import("ink").Instance;
|
|
13
|
-
/**
|
|
14
|
-
* Akan Backend 실행 컴포넌트
|
|
15
|
-
*
|
|
16
|
-
* @param appName 앱 이름
|
|
17
|
-
* @param childProcess 백엔드 차일드 프로세스
|
|
18
|
-
* @param onExit 종료 함수
|
|
19
|
-
*/
|
|
20
|
-
Backend: (appName: string, childProcess: ChildProcess, onExit: () => void) => import("ink").Instance;
|
|
21
|
-
/**
|
|
22
|
-
* Akan Frontend 실행 컴포넌트
|
|
23
|
-
*
|
|
24
|
-
* @param appName 앱 이름
|
|
25
|
-
* @param childProcess 프론트엔드 차일드 프로세스
|
|
26
|
-
* @param onExit 종료 함수
|
|
27
|
-
*/
|
|
28
|
-
Frontend: (appName: string, childProcess: ChildProcess, onExit: () => void) => import("ink").Instance;
|
|
29
|
-
/**
|
|
30
|
-
* Akan application 통합 실행 컴포넌트 (백엔드, 프론트엔드, React(CSR))
|
|
31
|
-
*
|
|
32
|
-
* @param maxLength 로그 최대 길이
|
|
33
|
-
* @param appName 앱 이름
|
|
34
|
-
* @param bcp 백엔드 차일드 프로세스
|
|
35
|
-
* @param fcp 프론트엔드 차일드 프로세스
|
|
36
|
-
* @param csr CSR 이벤트 발생기
|
|
37
|
-
* @param onExit 종료 함수
|
|
38
|
-
*/
|
|
39
|
-
Start: (appName: string, bcp: ChildProcess) => import("ink").Instance;
|
|
40
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { AkanAppHost, type App, AppExecutor, type BuildProgressReporter, type BuildResult, type DatabaseMode, type Exec, type MobileEnv, type ReleaseSourceOptions, type TypecheckOptions, type Workspace } from "akanjs/devkit";
|
|
2
|
-
declare const ApplicationRunner_base: import("akanjs/devkit").DependencyCls<{}, "applicationRunner">;
|
|
3
|
-
export declare class ApplicationRunner extends ApplicationRunner_base {
|
|
4
|
-
#private;
|
|
5
|
-
createApplication(appName: string, workspace: Workspace, libs?: string[]): Promise<AppExecutor>;
|
|
6
|
-
removeApplication(app: App): Promise<void>;
|
|
7
|
-
getConfig(app: App): Promise<import("akanjs/devkit").AkanAppConfig>;
|
|
8
|
-
getScriptFilename(app: App): Promise<string>;
|
|
9
|
-
runScript(app: App, filename: string): Promise<void>;
|
|
10
|
-
typecheck(app: App, options?: TypecheckOptions): Promise<void>;
|
|
11
|
-
test(exec: Exec): Promise<void>;
|
|
12
|
-
build(app: App, { fast, reporter, spinner, }?: {
|
|
13
|
-
fast?: boolean;
|
|
14
|
-
reporter?: BuildProgressReporter;
|
|
15
|
-
spinner?: boolean;
|
|
16
|
-
}): Promise<BuildResult>;
|
|
17
|
-
start(app: App, { open, onStart, withInk }?: {
|
|
18
|
-
open?: boolean;
|
|
19
|
-
onStart?: () => void;
|
|
20
|
-
withInk?: boolean;
|
|
21
|
-
}): Promise<AkanAppHost>;
|
|
22
|
-
buildIos(app: App, { target, env, regenerate }?: {
|
|
23
|
-
target?: string;
|
|
24
|
-
env?: MobileEnv;
|
|
25
|
-
regenerate?: boolean;
|
|
26
|
-
}): Promise<void>;
|
|
27
|
-
startIos(app: App, { open, operation, env, target, regenerate, }?: {
|
|
28
|
-
open?: boolean;
|
|
29
|
-
operation?: "local" | "release";
|
|
30
|
-
env?: MobileEnv;
|
|
31
|
-
target?: string;
|
|
32
|
-
regenerate?: boolean;
|
|
33
|
-
}): Promise<void>;
|
|
34
|
-
releaseIos(app: App, { target, env, regenerate }?: {
|
|
35
|
-
target?: string;
|
|
36
|
-
env?: MobileEnv;
|
|
37
|
-
regenerate?: boolean;
|
|
38
|
-
}): Promise<void>;
|
|
39
|
-
buildAndroid(app: App, { target, env, regenerate }?: {
|
|
40
|
-
target?: string;
|
|
41
|
-
env?: MobileEnv;
|
|
42
|
-
regenerate?: boolean;
|
|
43
|
-
}): Promise<void>;
|
|
44
|
-
startAndroid(app: App, { open, operation, env, target, regenerate, }?: {
|
|
45
|
-
open?: boolean;
|
|
46
|
-
operation?: "local" | "release";
|
|
47
|
-
env?: MobileEnv;
|
|
48
|
-
target?: string;
|
|
49
|
-
regenerate?: boolean;
|
|
50
|
-
}): Promise<void>;
|
|
51
|
-
releaseAndroid(app: App, assembleType: "apk" | "aab", { target, env, regenerate }?: {
|
|
52
|
-
target?: string;
|
|
53
|
-
env?: MobileEnv;
|
|
54
|
-
regenerate?: boolean;
|
|
55
|
-
}): Promise<void>;
|
|
56
|
-
codepush(app: App, os: "ios" | "android"): Promise<void>;
|
|
57
|
-
dbup(workspace: Workspace, mode?: DatabaseMode): Promise<boolean>;
|
|
58
|
-
dbdown(workspace: Workspace): Promise<void>;
|
|
59
|
-
configureApp(app: App): Promise<void>;
|
|
60
|
-
releaseSource(app: App, { rebuild, buildNum, environment, local }?: ReleaseSourceOptions): Promise<void>;
|
|
61
|
-
createApplicationTemplate(workspace: Workspace, appName: string): Promise<void>;
|
|
62
|
-
compressProjectFiles(app: App, { rebuild, buildNum, environment, local }?: ReleaseSourceOptions): Promise<void>;
|
|
63
|
-
generateApplicationTemplate(app: App): Promise<void>;
|
|
64
|
-
testApplication(app: App): Promise<void>;
|
|
65
|
-
}
|
|
66
|
-
export {};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { type App, type DatabaseMode, type Exec, type MobileEnv, type ReleaseSourceOptions, type Sys, type TypecheckOptions, type Workspace } from "akanjs/devkit";
|
|
2
|
-
import { LibraryScript } from "../library/library.script";
|
|
3
|
-
import { ApplicationRunner } from "./application.runner";
|
|
4
|
-
type MobileOperation = "local" | "release";
|
|
5
|
-
type MobileCommandOptions = {
|
|
6
|
-
target?: string;
|
|
7
|
-
env?: MobileEnv;
|
|
8
|
-
write?: boolean;
|
|
9
|
-
regenerate?: boolean;
|
|
10
|
-
};
|
|
11
|
-
type MobileReleaseOptions = MobileCommandOptions & {
|
|
12
|
-
allowLocalRelease?: boolean;
|
|
13
|
-
};
|
|
14
|
-
declare const ApplicationScript_base: import("akanjs/devkit").DependencyCls<{
|
|
15
|
-
libraryScript: LibraryScript;
|
|
16
|
-
} & {
|
|
17
|
-
applicationRunner: ApplicationRunner;
|
|
18
|
-
}, "applicationScript">;
|
|
19
|
-
export declare class ApplicationScript extends ApplicationScript_base {
|
|
20
|
-
createApplication(appName: string, workspace: Workspace, { start, libs }?: {
|
|
21
|
-
start?: boolean;
|
|
22
|
-
libs?: string[];
|
|
23
|
-
}): Promise<void>;
|
|
24
|
-
removeApplication(app: App): Promise<void>;
|
|
25
|
-
sync(sys: Sys): Promise<void>;
|
|
26
|
-
script(app: App, filename: string | null): Promise<void>;
|
|
27
|
-
build(app: App, { write, fast, quiet }?: {
|
|
28
|
-
write?: boolean;
|
|
29
|
-
fast?: boolean;
|
|
30
|
-
quiet?: boolean;
|
|
31
|
-
}): Promise<void>;
|
|
32
|
-
typecheck(app: App, { write, clean, incremental }?: TypecheckOptions & {
|
|
33
|
-
write?: boolean;
|
|
34
|
-
}): Promise<void>;
|
|
35
|
-
test(exec: Exec, { write }?: {
|
|
36
|
-
write?: boolean;
|
|
37
|
-
}): Promise<void>;
|
|
38
|
-
start(app: App, { open, dbup, withInk, write, }?: {
|
|
39
|
-
open?: boolean;
|
|
40
|
-
dbup?: boolean;
|
|
41
|
-
withInk?: boolean;
|
|
42
|
-
write?: boolean;
|
|
43
|
-
}): Promise<import("akanjs/devkit").AkanAppHost>;
|
|
44
|
-
buildIos(app: App, { write, target, env, regenerate }?: MobileCommandOptions): Promise<void>;
|
|
45
|
-
startIos(app: App, { open, operation, env, write, target, regenerate, }?: {
|
|
46
|
-
operation?: MobileOperation;
|
|
47
|
-
env?: MobileEnv;
|
|
48
|
-
open?: boolean;
|
|
49
|
-
write?: boolean;
|
|
50
|
-
target?: string;
|
|
51
|
-
regenerate?: boolean;
|
|
52
|
-
}): Promise<void>;
|
|
53
|
-
releaseIos(app: App, { write, target, env, regenerate, allowLocalRelease }?: MobileReleaseOptions): Promise<void>;
|
|
54
|
-
buildAndroid(app: App, { write, target, env, regenerate }?: MobileCommandOptions): Promise<void>;
|
|
55
|
-
startAndroid(app: App, { open, operation, env, write, target, regenerate, }?: {
|
|
56
|
-
open?: boolean;
|
|
57
|
-
env?: MobileEnv;
|
|
58
|
-
operation?: MobileOperation;
|
|
59
|
-
write?: boolean;
|
|
60
|
-
target?: string;
|
|
61
|
-
regenerate?: boolean;
|
|
62
|
-
}): Promise<void>;
|
|
63
|
-
releaseAndroid(app: App, assembleType: "apk" | "aab", { write, target, env, regenerate, allowLocalRelease }?: MobileReleaseOptions): Promise<void>;
|
|
64
|
-
configureApp(app: App): Promise<void>;
|
|
65
|
-
releaseSource(app: App, options: ReleaseSourceOptions): Promise<void>;
|
|
66
|
-
codepush(app: App, os: "ios" | "android"): Promise<void>;
|
|
67
|
-
dbup(workspace: Workspace, mode?: DatabaseMode): Promise<boolean>;
|
|
68
|
-
dbdown(workspace: Workspace): Promise<void>;
|
|
69
|
-
testSys(sys: Sys): Promise<void>;
|
|
70
|
-
testApplication(app: App): Promise<void>;
|
|
71
|
-
}
|
|
72
|
-
export {};
|
package/types/cli/build.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type Workspace } from "akanjs/devkit";
|
|
2
|
-
declare const CloudRunner_base: import("akanjs/devkit").DependencyCls<{}, "cloudRunner">;
|
|
3
|
-
export declare class CloudRunner extends CloudRunner_base {
|
|
4
|
-
#private;
|
|
5
|
-
login(): Promise<boolean>;
|
|
6
|
-
logout(): Promise<void>;
|
|
7
|
-
setLlm(): Promise<void>;
|
|
8
|
-
resetLlm(): void;
|
|
9
|
-
getAkanPkgs(workspace: Workspace): Promise<("akanjs" | "create-akan-workspace")[]>;
|
|
10
|
-
deployAkan(workspace: Workspace, akanPkgs: string[]): Promise<void>;
|
|
11
|
-
update(workspace: Workspace, tag?: string): Promise<void>;
|
|
12
|
-
}
|
|
13
|
-
export {};
|