@lovrabet/lovrabet-cli 2.1.9-beta.2 → 2.1.9-beta.4
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/NOTICE +5 -0
- package/README.md +156 -0
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +18 -2
package/NOTICE
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
# Lovrabet CLI
|
|
2
|
+
|
|
3
|
+
Lovrabet CLI is the runtime command-line interface for Lovrabet applications. It
|
|
4
|
+
helps developers, delivery teams, operators, and AI agents work with published
|
|
5
|
+
apps, datasets, records, SQL queries, BFF scripts, files, OCR, knowledge bases,
|
|
6
|
+
artifacts, and runtime Skills from a stable terminal surface.
|
|
7
|
+
|
|
8
|
+
The CLI is designed for runtime operations: discover the right app, inspect data
|
|
9
|
+
contracts, query real records, execute approved runtime capabilities, and turn
|
|
10
|
+
repeatable workflows into agent-ready Skills.
|
|
11
|
+
|
|
12
|
+
## Requirements
|
|
13
|
+
|
|
14
|
+
- Node.js 20 or later
|
|
15
|
+
- A Lovrabet account with access to the target runtime app
|
|
16
|
+
- A User Access Key for authenticated commands
|
|
17
|
+
|
|
18
|
+
## Install
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npm install -g @lovrabet/lovrabet-cli@latest
|
|
22
|
+
lovrabet --version
|
|
23
|
+
lovrabet --help
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
You can also run a specific version with npm tooling:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npx @lovrabet/lovrabet-cli@latest --help
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Quick Start
|
|
33
|
+
|
|
34
|
+
Authenticate first:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
lovrabet auth login
|
|
38
|
+
lovrabet auth info --format compress
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
For non-interactive environments, pass an Access Key explicitly:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
lovrabet auth login --access-key <ACCESS_KEY>
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
List available runtime apps:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
lovrabet app list
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Bind the current workspace to an app, or pass `--app` / `--appcode` on each
|
|
54
|
+
command:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
lovrabet workspace init --app <app-name>
|
|
58
|
+
lovrabet workspace init --appcode <app-code>
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Discover a dataset and inspect its contract before querying records:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
lovrabet dataset list --name customer
|
|
65
|
+
lovrabet dataset detail --code <dataset-code>
|
|
66
|
+
lovrabet data filter --code <dataset-code> --params '{"currentPage":1,"pageSize":20}'
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Use `--format pretty` for human-readable output and `--format json` or
|
|
70
|
+
`--format compress` for scripts and agents.
|
|
71
|
+
|
|
72
|
+
## AI Agent Skill
|
|
73
|
+
|
|
74
|
+
If your coding environment supports the `skills` CLI, install the Lovrabet CLI
|
|
75
|
+
Built-in Skill so the agent can follow the correct app resolution, dataset
|
|
76
|
+
inspection, data query, and risk-control workflow:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
lovrabet cli-skill install
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Equivalent direct installation:
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
npx skills add lovrabet/lovrabet-cli -g -y
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
After selecting an app, install app-specific business Skills when available:
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
lovrabet skill install
|
|
92
|
+
lovrabet skill install --scope personal
|
|
93
|
+
lovrabet skill install --scope company
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## Common Commands
|
|
97
|
+
|
|
98
|
+
| Area | Commands |
|
|
99
|
+
| --- | --- |
|
|
100
|
+
| Authentication | `lovrabet auth login`, `lovrabet auth info`, `lovrabet auth logout` |
|
|
101
|
+
| App and workspace | `lovrabet app list`, `lovrabet workspace init`, `lovrabet workspace use` |
|
|
102
|
+
| Dataset discovery | `lovrabet dataset list`, `lovrabet dataset detail`, `lovrabet dataset sdk-doc` |
|
|
103
|
+
| Data operations | `lovrabet data filter`, `lovrabet data getOne`, `lovrabet data create`, `lovrabet data update`, `lovrabet data delete`, `lovrabet data aggregate` |
|
|
104
|
+
| SQL and BFF | `lovrabet sql detail`, `lovrabet sql exec`, `lovrabet bff detail`, `lovrabet bff exec` |
|
|
105
|
+
| Personal assets | `lovrabet personal-bff list`, `lovrabet artifact list`, `lovrabet kb list` |
|
|
106
|
+
| Runtime files and OCR | `lovrabet file upload`, `lovrabet file query-url`, `lovrabet ocr recognize` |
|
|
107
|
+
| Skills | `lovrabet cli-skill install`, `lovrabet skill install`, `lovrabet skill create`, `lovrabet skill validate`, `lovrabet skill push` |
|
|
108
|
+
| Diagnostics | `lovrabet doctor`, `lovrabet schema`, `lovrabet logs show`, `lovrabet update` |
|
|
109
|
+
|
|
110
|
+
Run command-level help for flags and prerequisites:
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
lovrabet <service> --help
|
|
114
|
+
lovrabet <service> <command> --help
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
## Output and Automation
|
|
118
|
+
|
|
119
|
+
Global options are available across commands:
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
lovrabet dataset list --format json
|
|
123
|
+
lovrabet data filter --code <dataset-code> --params '{"currentPage":1,"pageSize":10}' --jq '.data'
|
|
124
|
+
lovrabet data update --code <dataset-code> --params '{"id":1,"status":"done"}' --dry-run
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
Important options:
|
|
128
|
+
|
|
129
|
+
- `--app <name>`: select an app profile by name
|
|
130
|
+
- `--appcode <code>`: override the target app code
|
|
131
|
+
- `--env production|development|daily`: choose the target environment
|
|
132
|
+
- `--format json|pretty|compress`: choose output format
|
|
133
|
+
- `--jq <expr>`: filter JSON output
|
|
134
|
+
- `--dry-run`: preview supported write operations
|
|
135
|
+
- `--yes`: skip confirmation for high-risk writes
|
|
136
|
+
- `--non-interactive`: force CI-friendly behavior
|
|
137
|
+
|
|
138
|
+
## Safety Notes
|
|
139
|
+
|
|
140
|
+
- Inspect dataset contracts with `dataset detail` before writing records.
|
|
141
|
+
- Prefer read commands before write commands when diagnosing data issues.
|
|
142
|
+
- Use `--dry-run` where supported before create, update, delete, artifact,
|
|
143
|
+
personal BFF, or Skill operations.
|
|
144
|
+
- Use `--yes` only when the target app, dataset, parameters, and impact are
|
|
145
|
+
already verified.
|
|
146
|
+
- Do not commit Access Keys, generated credentials, or local user config files.
|
|
147
|
+
|
|
148
|
+
## Documentation
|
|
149
|
+
|
|
150
|
+
- Website: <https://www.lovrabet.com>
|
|
151
|
+
- Developer documentation: <https://open.lovrabet.com/>
|
|
152
|
+
- CLI help: `lovrabet --help`
|
|
153
|
+
|
|
154
|
+
## License
|
|
155
|
+
|
|
156
|
+
Licensed under Apache-2.0. See `LICENSE` and `NOTICE` for details.
|
package/lib/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
(function(
|
|
2
|
+
const a0_0x22aa40=a0_0x33bd;(function(_0x554eb7,_0x5374de){const _0x42e68b=a0_0x33bd,_0x22d8ab=_0x554eb7();while(!![]){try{const _0x183968=-parseInt(_0x42e68b(0x8e))/0x1*(parseInt(_0x42e68b(0x74))/0x2)+parseInt(_0x42e68b(0x70))/0x3+-parseInt(_0x42e68b(0x96))/0x4+parseInt(_0x42e68b(0x95))/0x5*(parseInt(_0x42e68b(0x85))/0x6)+-parseInt(_0x42e68b(0x83))/0x7*(parseInt(_0x42e68b(0x7d))/0x8)+parseInt(_0x42e68b(0x78))/0x9*(-parseInt(_0x42e68b(0x7a))/0xa)+parseInt(_0x42e68b(0x71))/0xb*(parseInt(_0x42e68b(0x76))/0xc);if(_0x183968===_0x5374de)break;else _0x22d8ab['push'](_0x22d8ab['shift']());}catch(_0x26bee6){_0x22d8ab['push'](_0x22d8ab['shift']());}}}(a0_0x30f3,0xcc154));import{jsx as a0_0x3b1486}from'react/jsx-runtime';import a0_0x52cd30 from'meow';import{render}from'ink';import{Help}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{buildConfigFromFlags,initGlobalEnvironment}from'./context.js';import{isKnownService,getServiceEntry,findDefinition,getAllDefinitions}from'./commands/registry.js';import{generateDynamicServiceHelp,resolveDynamicServiceCommand}from'./commands/service/dynamic.js';import{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{buildMeowFlags}from'./constant/cli.js';import{getCliVersionDisplay}from'./utils/version.js';const helpText=generateFullHelp(),cli=a0_0x52cd30(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'version':getCliVersionDisplay()});function a0_0x33bd(_0x5de43a,_0x364c2c){_0x5de43a=_0x5de43a-0x6d;const _0x30f31f=a0_0x30f3();let _0x33bd23=_0x30f31f[_0x5de43a];return _0x33bd23;}function a0_0x30f3(){const _0x178fb3=['808606hvfdWp','help','23160444gDmkYJ','args','417267kZCaPB','flags','130gXZeoU','defaultCommand','definition','24eVWWNv','flatMap','error','Hint:\x20','message','\x0aCancelled.\x0a','2626057phsfhm','[preparse]\x20','1797234CtaLxD','cancelled','./framework/preparse.js','name','unknownCommand','stderr','log','corrected','input','2aRUjwu','catch','write','original','code','assign','hint','10TrJVZH','4959464ykfwlW','slice','Unexpected\x20error:','ERR_USE_AFTER_CLOSE','exit','ERR_STREAM_DESTROYED','460248enHMOd','22rWCJgu','exitCode','handler'];a0_0x30f3=function(){return _0x178fb3;};return a0_0x30f3();}void main()[a0_0x22aa40(0x8f)](handleError);async function main(){try{await run();}catch(_0x5e5053){handleError(_0x5e5053);}}async function run(){const _0x46305d=a0_0x22aa40;let _0x1b9aa3=cli[_0x46305d(0x8d)][0x0],_0x82383a=cli[_0x46305d(0x8d)][0x1];const _0x121a6b=cli[_0x46305d(0x79)];try{const {correctFlags:_0x36ed6a}=await import(_0x46305d(0x87)),_0x2fa189=getAllDefinitions()[_0x46305d(0x7e)](_0x580c2a=>_0x580c2a[_0x46305d(0x79)]??[]),{flags:_0x16c4d0,corrections:_0x421a0e}=_0x36ed6a(_0x121a6b,_0x2fa189);if(_0x421a0e['length']>0x0){for(const _0x14a7ec of _0x421a0e){process[_0x46305d(0x8a)][_0x46305d(0x90)](_0x46305d(0x84)+_0x14a7ec[_0x46305d(0x73)]+':\x20--'+_0x14a7ec[_0x46305d(0x91)]+'\x20->\x20--'+_0x14a7ec[_0x46305d(0x8c)]+'\x0a');}Object[_0x46305d(0x93)](_0x121a6b,_0x16c4d0);}}catch{}if(!_0x1b9aa3){const {waitUntilExit:_0x5acdf8}=render(a0_0x3b1486(Help,{}));await _0x5acdf8();return;}if(!isKnownService(_0x1b9aa3)){const _0x12f307=resolveDynamicServiceCommand(cli[_0x46305d(0x8d)],_0x121a6b);if(_0x12f307){if(_0x121a6b[_0x46305d(0x75)]){console['log'](generateCommandHelp(_0x12f307[_0x46305d(0x7c)]));return;}Object[_0x46305d(0x93)](_0x121a6b,_0x12f307['flags']);const _0x4dc072=buildConfigFromFlags(_0x121a6b);await initGlobalEnvironment(_0x4dc072);const _0x598c3c=createPipelineEnv(_0x4dc072,_0x121a6b);_0x598c3c[_0x46305d(0x77)]=_0x12f307['args'],await runCommand(_0x12f307[_0x46305d(0x7c)],_0x598c3c);return;}if(_0x121a6b[_0x46305d(0x75)]){const _0x404372=generateDynamicServiceHelp(_0x1b9aa3);if(_0x404372){console['log'](_0x404372);return;}}const {waitUntilExit:_0x698a}=render(a0_0x3b1486(Help,{}));await _0x698a();return;}const _0x4e83c0=getServiceEntry(_0x1b9aa3);if(!_0x82383a){if(_0x121a6b[_0x46305d(0x75)]){console[_0x46305d(0x8b)](generateServiceHelp(_0x1b9aa3));return;}if(_0x4e83c0['defaultCommand'])_0x82383a=_0x4e83c0[_0x46305d(0x7b)];else{console[_0x46305d(0x8b)](generateServiceHelp(_0x1b9aa3));return;}}const _0x28623a=findDefinition(_0x1b9aa3,_0x82383a);!_0x28623a&&(console['log'](generateServiceHelp(_0x1b9aa3)),handleError(CliErrors[_0x46305d(0x89)](_0x1b9aa3+'\x20'+_0x82383a)));if(_0x121a6b[_0x46305d(0x75)]){console[_0x46305d(0x8b)](generateCommandHelp(_0x28623a));return;}const _0x5a1eaa=buildConfigFromFlags(_0x121a6b);await initGlobalEnvironment(_0x5a1eaa);const _0x280a59=createPipelineEnv(_0x5a1eaa,_0x121a6b);_0x280a59[_0x46305d(0x77)]=cli[_0x46305d(0x8d)][_0x46305d(0x97)](0x2),await runCommand(_0x28623a,_0x280a59);}function handleError(_0x392cd2){const _0x4b6766=a0_0x22aa40;if(_0x392cd2 instanceof CliError){_0x392cd2[_0x4b6766(0x92)]===_0x4b6766(0x86)&&(process[_0x4b6766(0x8a)][_0x4b6766(0x90)](_0x4b6766(0x82)),process[_0x4b6766(0x6e)](0x0));console[_0x4b6766(0x7f)]('Error:\x20'+_0x392cd2[_0x4b6766(0x81)]);if(_0x392cd2[_0x4b6766(0x94)])console['error'](_0x4b6766(0x80)+_0x392cd2['hint']);process['exit'](_0x392cd2[_0x4b6766(0x72)]);}isUserCancellation(_0x392cd2)&&(process['stderr'][_0x4b6766(0x90)](_0x4b6766(0x82)),process[_0x4b6766(0x6e)](0x0)),console[_0x4b6766(0x7f)](_0x4b6766(0x98),_0x392cd2),process[_0x4b6766(0x6e)](0x1);}function isUserCancellation(_0x2fbdf3){const _0x5e8e63=a0_0x22aa40;if(!(_0x2fbdf3 instanceof Error))return![];if(_0x2fbdf3[_0x5e8e63(0x88)]==='ExitPromptError')return!![];if(_0x2fbdf3['code']===_0x5e8e63(0x6d))return!![];if(_0x2fbdf3[_0x5e8e63(0x92)]===_0x5e8e63(0x6f))return!![];return![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a1_0x1fba45=a1_0x4212;function a1_0x4212(_0x30ee1b,_0x368391){_0x30ee1b=_0x30ee1b-0x83;const _0x606f3f=a1_0x606f();let _0x4212e3=_0x606f3f[_0x30ee1b];return _0x4212e3;}(function(_0x1c7831,_0x2a83dc){const _0x598df0=a1_0x4212,_0x54f41b=_0x1c7831();while(!![]){try{const _0x3450ef=parseInt(_0x598df0(0xa2))/0x1+-parseInt(_0x598df0(0xbc))/0x2+-parseInt(_0x598df0(0xb1))/0x3+-parseInt(_0x598df0(0xcb))/0x4*(-parseInt(_0x598df0(0xd8))/0x5)+parseInt(_0x598df0(0xab))/0x6*(-parseInt(_0x598df0(0xa9))/0x7)+parseInt(_0x598df0(0xf3))/0x8*(parseInt(_0x598df0(0xa5))/0x9)+-parseInt(_0x598df0(0xb7))/0xa*(parseInt(_0x598df0(0xef))/0xb);if(_0x3450ef===_0x2a83dc)break;else _0x54f41b['push'](_0x54f41b['shift']());}catch(_0x433f3f){_0x54f41b['push'](_0x54f41b['shift']());}}}(a1_0x606f,0x96714));import{CliErrors}from'../../errors.js';const CATEGORY_FLAG={'name':a1_0x1fba45(0xed),'type':a1_0x1fba45(0xd1),'description':a1_0x1fba45(0xc9)},KEYWORD_FLAG={'name':a1_0x1fba45(0xae),'type':'string','description':'Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text'},DOC_CODE_FLAG={'name':'code','type':a1_0x1fba45(0xd1),'required':!![],'description':'API\x20doc\x20code,\x20for\x20example\x20dataset_list'},DOCS=[{'code':a1_0x1fba45(0xf4),'category':'dataset','title':a1_0x1fba45(0xea),'method':a1_0x1fba45(0x85),'path':a1_0x1fba45(0x99),'summary':a1_0x1fba45(0x92),'whenToUse':a1_0x1fba45(0xaa),'pathParams':[],'queryParams':[],'bodySchema':a1_0x1fba45(0xb4),'responseHighlights':['tableData\x20contains\x20dataset\x20id/code/name',a1_0x1fba45(0xe8)],'examples':[a1_0x1fba45(0x90)],'notes':[a1_0x1fba45(0xee)],'markdown':[a1_0x1fba45(0xd3),'',a1_0x1fba45(0xa4)]['join']('\x0a')},{'code':'dataset_detail','category':a1_0x1fba45(0xd7),'title':'Dataset\x20detail','method':a1_0x1fba45(0x9c),'path':a1_0x1fba45(0xa0),'summary':'获取数据集详情','whenToUse':a1_0x1fba45(0x93),'pathParams':[],'queryParams':[{'name':a1_0x1fba45(0x9a),'description':a1_0x1fba45(0xad)}],'bodySchema':a1_0x1fba45(0xdb),'responseHighlights':[a1_0x1fba45(0xca),a1_0x1fba45(0xac),a1_0x1fba45(0x8d)],'examples':[a1_0x1fba45(0xf6)],'notes':[a1_0x1fba45(0xbf)],'markdown':[a1_0x1fba45(0xbe),'',a1_0x1fba45(0x95)][a1_0x1fba45(0xa1)]('\x0a')},{'code':a1_0x1fba45(0xda),'category':a1_0x1fba45(0xd7),'title':a1_0x1fba45(0xd5),'method':a1_0x1fba45(0x85),'path':a1_0x1fba45(0xdf),'summary':'条件过滤查询数据','whenToUse':a1_0x1fba45(0xf2),'pathParams':[{'name':'appCode','description':a1_0x1fba45(0xd4)},{'name':a1_0x1fba45(0xb2),'description':a1_0x1fba45(0xad)}],'queryParams':[],'bodySchema':a1_0x1fba45(0xbb),'responseHighlights':[a1_0x1fba45(0xec),a1_0x1fba45(0xdd)],'examples':[a1_0x1fba45(0x97)],'notes':[a1_0x1fba45(0xb0)],'markdown':['##\x20Filter\x20dataset\x20data','',a1_0x1fba45(0x98)]['join']('\x0a')},{'code':a1_0x1fba45(0x89),'category':'dataset','title':'Aggregate\x20dataset\x20data','method':a1_0x1fba45(0x85),'path':a1_0x1fba45(0xe3),'summary':a1_0x1fba45(0x9d),'whenToUse':a1_0x1fba45(0xd6),'pathParams':[{'name':a1_0x1fba45(0xb8),'description':a1_0x1fba45(0xd4)},{'name':a1_0x1fba45(0xb2),'description':a1_0x1fba45(0xad)}],'queryParams':[],'bodySchema':'{\x22aggregate\x22:[{\x22column\x22:\x20\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','responseHighlights':[a1_0x1fba45(0xd2),'where\x20filters\x20before\x20aggregation'],'examples':[a1_0x1fba45(0xd9)],'notes':[a1_0x1fba45(0xa8),'`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.'],'markdown':[a1_0x1fba45(0xe7),'',a1_0x1fba45(0xf0)][a1_0x1fba45(0xa1)]('\x0a')},{'code':a1_0x1fba45(0xc3),'category':a1_0x1fba45(0xd7),'title':a1_0x1fba45(0x96),'method':a1_0x1fba45(0x85),'path':a1_0x1fba45(0xcd),'summary':a1_0x1fba45(0xba),'whenToUse':a1_0x1fba45(0xcf),'pathParams':[{'name':a1_0x1fba45(0xb8),'description':a1_0x1fba45(0xd4)},{'name':a1_0x1fba45(0xb2),'description':a1_0x1fba45(0xad)}],'queryParams':[],'bodySchema':'{\x22id\x22:123}','responseHighlights':['Returns\x20one\x20matching\x20business\x20record'],'examples':['lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27'],'notes':[a1_0x1fba45(0x8f)],'markdown':'##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.'},{'code':a1_0x1fba45(0x84),'category':a1_0x1fba45(0xd7),'title':a1_0x1fba45(0x88),'method':a1_0x1fba45(0x85),'path':a1_0x1fba45(0xb5),'summary':a1_0x1fba45(0xcc),'whenToUse':a1_0x1fba45(0xf7),'pathParams':[{'name':a1_0x1fba45(0xb8),'description':a1_0x1fba45(0xd4)},{'name':a1_0x1fba45(0xb2),'description':a1_0x1fba45(0xad)}],'queryParams':[],'bodySchema':a1_0x1fba45(0xc6),'responseHighlights':['Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result'],'examples':['lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27'],'notes':['This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.'],'markdown':a1_0x1fba45(0xaf)},{'code':a1_0x1fba45(0xa7),'category':'bf','title':a1_0x1fba45(0xb3),'method':a1_0x1fba45(0x9c),'path':a1_0x1fba45(0xce),'summary':a1_0x1fba45(0xf1),'whenToUse':a1_0x1fba45(0xeb),'pathParams':[{'name':'appCode','description':a1_0x1fba45(0xd4)}],'queryParams':[],'bodySchema':a1_0x1fba45(0xdb),'responseHighlights':[a1_0x1fba45(0x9f)],'examples':[a1_0x1fba45(0x8b)],'notes':[a1_0x1fba45(0x83)],'markdown':'##\x20List\x20BF\x20endpoint\x20functions\x0a\x0aDiscover\x20executable\x20endpoint\x20functions.'},{'code':'bf_execute','category':'bf','title':a1_0x1fba45(0x86),'method':'POST','path':a1_0x1fba45(0xc0),'summary':a1_0x1fba45(0xe2),'whenToUse':a1_0x1fba45(0xf5),'pathParams':[{'name':a1_0x1fba45(0xb8),'description':a1_0x1fba45(0xd4)},{'name':a1_0x1fba45(0xdc),'description':a1_0x1fba45(0xe1)}],'queryParams':[],'bodySchema':'{\x22param\x22:\x22value\x22}','responseHighlights':['Returns\x20script\x20business\x20payload'],'examples':['lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27'],'notes':['Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.'],'markdown':a1_0x1fba45(0xe9)},{'code':a1_0x1fba45(0xc7),'category':a1_0x1fba45(0xe4),'title':'Execute\x20custom\x20SQL','method':a1_0x1fba45(0x85),'path':a1_0x1fba45(0x8c),'summary':a1_0x1fba45(0xbd),'whenToUse':'已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','pathParams':[],'queryParams':[],'bodySchema':a1_0x1fba45(0x87),'responseHighlights':[a1_0x1fba45(0xde)],'examples':[a1_0x1fba45(0xc8)],'notes':[a1_0x1fba45(0x94)],'markdown':a1_0x1fba45(0x9b)}];function a1_0x606f(){const _0x1a1bfd=['lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','API\x20doc\x20code\x20not\x20found:\x20','分页获取数据集列表','需要按数据集\x20code\x20获取字段、表信息、关联关系(relations)或操作定义时使用','Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.','Inspect\x20field\x20names,\x20relations,\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.','Get\x20one\x20dataset\x20record','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.','/api/dataset/get-dataset-list-by-app-code','code','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','GET','聚合查询数据集数据','str','Returns\x20endpoint\x20functionName/id/description','/api/dataset/getOneByCode?code={datasetCode}','join','1209892PxNHmG','includes','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.','5103963eIUWJQ','path','bf_function_list','Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.','35qLZVVj','需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','84714UOLzPG','relations\x20contains\x20the\x20object-shaped\x20API\x20relations\x20value\x20when\x20returned','32-character\x20dataset\x20code','keyword','##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.','Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.','2683677ofVgqv','datasetCode','List\x20BF\x20endpoint\x20functions','{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','/api/{appCode}/{datasetCode}/create','toLowerCase','773950OTRQDn','appCode','whenToUse','查询单条数据','{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','1296152gnUujN','执行自定义\x20SQL','##\x20Dataset\x20detail','If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.','/api/endpoint/{appCode}/{scriptName}','trim','filter','dataset_data_get_one','detail','map','{\x22fieldName\x22:\x22value\x22}','custom_sql_execute','lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27','Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset','fields/properties\x20describe\x20data\x20shape','52rGiAXP','创建数据','/api/{appCode}/{datasetCode}/getOne','/api/endpoint/{appCode}/functions','已经知道记录\x20id,需要按数据集读取单条业务数据时使用','api-doc','string','result\x20rows\x20contain\x20aggregate\x20aliases','##\x20List\x20datasets','Current\x20app\x20code','Filter\x20dataset\x20data','需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','dataset','104735zcDsEU','lovrabet\x20data\x20aggregate\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}]}\x27','dataset_data_filter','None','scriptName','paging\x20contains\x20pagination','Returns\x20SQL\x20execution\x20payload','/api/{appCode}/{datasetCode}/filter','method','Endpoint\x20function\x20name','执行指定\x20BF\x20函数','/api/{appCode}/{datasetCode}/aggregate','custom_sql','List\x20available\x20runtime\x20API\x20documentation\x20entries','read','##\x20Aggregate\x20dataset\x20data','paging.totalCount\x20gives\x20total\x20rows','##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.','List\x20datasets','需要先确认当前应用有哪些可执行的\x20BF/ENDPOINT\x20函数,以及收敛可用\x20scriptName\x20时使用','tableData\x20contains\x20records','category','CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.','55rsjHfy','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.','获取应用下可调用的\x20BF\x20函数列表','需要携带\x20where、orderBy、分页等条件读取业务数据时使用','16gFcifm','dataset_list','已经确认目标\x20BF\x20的\x20scriptName,且需要实际调用该\x20ENDPOINT\x20脚本完成业务操作时使用','lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>','需要向指定数据集新增一条业务数据时使用','CLI\x20has\x20typed\x20`bff\x20detail`\x20and\x20`bff\x20exec`\x20commands\x20for\x20endpoint\x20scripts.','dataset_data_create','POST','Execute\x20BF\x20endpoint\x20function','{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','Create\x20dataset\x20record','dataset_data_aggregate','title','lovrabet\x20bff\x20detail\x20--id\x20<scriptId>\x20--appcode\x20<appCode>','/api/custom/executeSql','operations\x20describes\x20runtime\x20APIs','Show\x20runtime\x20API\x20documentation\x20by\x20code','Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.'];a1_0x606f=function(){return _0x1a1bfd;};return a1_0x606f();}function entrySummary(_0x588c9e){const _0xc197b9=a1_0x1fba45;return{'code':_0x588c9e['code'],'category':_0x588c9e[_0xc197b9(0xed)],'method':_0x588c9e['method'],'path':_0x588c9e[_0xc197b9(0xa6)],'summary':_0x588c9e['summary'],'whenToUse':_0x588c9e[_0xc197b9(0xb9)]};}export function listApiDocEntries(_0x164c88={}){const _0x506558=a1_0x1fba45,_0x390f38=String(_0x164c88[_0x506558(0xed)]||'')[_0x506558(0xc1)](),_0x1db4bc=String(_0x164c88[_0x506558(0xae)]||'')[_0x506558(0xc1)]()[_0x506558(0xb6)]();return DOCS[_0x506558(0xc2)](_0x4aed6e=>{const _0xf6cb85=_0x506558;if(_0x390f38&&_0x4aed6e[_0xf6cb85(0xed)]!==_0x390f38)return![];if(!_0x1db4bc)return!![];return[_0x4aed6e[_0xf6cb85(0x9a)],_0x4aed6e['category'],_0x4aed6e[_0xf6cb85(0xe0)],_0x4aed6e[_0xf6cb85(0xa6)],_0x4aed6e['summary'],_0x4aed6e[_0xf6cb85(0xb9)],_0x4aed6e[_0xf6cb85(0x8a)]][_0xf6cb85(0xa1)]('\x20')[_0xf6cb85(0xb6)]()[_0xf6cb85(0xa3)](_0x1db4bc);})[_0x506558(0xc5)](entrySummary);}export function getApiDocDetail(_0x18a54f){const _0x4cc8e3=a1_0x1fba45,_0x5b6852=DOCS['find'](_0x33f317=>_0x33f317['code']===_0x18a54f);if(!_0x5b6852)throw CliErrors['validation'](_0x4cc8e3(0x91)+_0x18a54f);return{..._0x5b6852};}const apiDocList={'service':a1_0x1fba45(0xd0),'command':'list','description':a1_0x1fba45(0xe5),'risk':a1_0x1fba45(0xe6),'requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x4fad37){const _0x582a29=a1_0x1fba45,_0x2c697b=listApiDocEntries({'category':_0x4fad37[_0x582a29(0x9e)](_0x582a29(0xed)),'keyword':_0x4fad37[_0x582a29(0x9e)](_0x582a29(0xae))});return{'ok':!![],'data':{'total':_0x2c697b['length'],'items':_0x2c697b}};}},apiDocDetail={'service':a1_0x1fba45(0xd0),'command':a1_0x1fba45(0xc4),'description':a1_0x1fba45(0x8e),'risk':a1_0x1fba45(0xe6),'requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x185ac5){const _0x49f918=a1_0x1fba45;return{'ok':!![],'data':getApiDocDetail(_0x185ac5[_0x49f918(0x9e)](_0x49f918(0x9a)))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];
|
|
1
|
+
const a1_0x5c75e4=a1_0x2e2a;(function(_0x1b541d,_0x15f603){const _0x4b6a07=a1_0x2e2a,_0x157b32=_0x1b541d();while(!![]){try{const _0x465a67=parseInt(_0x4b6a07(0x1bc))/0x1*(-parseInt(_0x4b6a07(0x1ab))/0x2)+-parseInt(_0x4b6a07(0x1c5))/0x3+-parseInt(_0x4b6a07(0x184))/0x4+parseInt(_0x4b6a07(0x166))/0x5+parseInt(_0x4b6a07(0x1d0))/0x6+parseInt(_0x4b6a07(0x168))/0x7+-parseInt(_0x4b6a07(0x190))/0x8;if(_0x465a67===_0x15f603)break;else _0x157b32['push'](_0x157b32['shift']());}catch(_0x49c790){_0x157b32['push'](_0x157b32['shift']());}}}(a1_0xeeb6,0x85ce0));import{CliErrors}from'../../errors.js';function a1_0x2e2a(_0x2f7131,_0x529d6c){_0x2f7131=_0x2f7131-0x163;const _0xeeb61b=a1_0xeeb6();let _0x2e2acf=_0xeeb61b[_0x2f7131];return _0x2e2acf;}const CATEGORY_FLAG={'name':'category','type':a1_0x5c75e4(0x176),'description':'Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset'},KEYWORD_FLAG={'name':a1_0x5c75e4(0x17e),'type':a1_0x5c75e4(0x176),'description':'Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text'},DOC_CODE_FLAG={'name':a1_0x5c75e4(0x187),'type':a1_0x5c75e4(0x176),'required':!![],'description':a1_0x5c75e4(0x185)},DOCS=[{'code':a1_0x5c75e4(0x17a),'category':a1_0x5c75e4(0x19d),'title':a1_0x5c75e4(0x188),'method':a1_0x5c75e4(0x16f),'path':a1_0x5c75e4(0x1d2),'summary':'分页获取数据集列表','whenToUse':a1_0x5c75e4(0x1cd),'pathParams':[],'queryParams':[],'bodySchema':'{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','responseHighlights':[a1_0x5c75e4(0x1c2),a1_0x5c75e4(0x1ba)],'examples':['lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress'],'notes':['CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.'],'markdown':[a1_0x5c75e4(0x174),'',a1_0x5c75e4(0x18a)][a1_0x5c75e4(0x1b1)]('\x0a')},{'code':a1_0x5c75e4(0x173),'category':a1_0x5c75e4(0x19d),'title':'Dataset\x20detail','method':a1_0x5c75e4(0x19b),'path':'/api/dataset/getOneByCode?code={datasetCode}','summary':a1_0x5c75e4(0x189),'whenToUse':a1_0x5c75e4(0x178),'pathParams':[],'queryParams':[{'name':a1_0x5c75e4(0x187),'description':'32-character\x20dataset\x20code'}],'bodySchema':a1_0x5c75e4(0x1b3),'responseHighlights':[a1_0x5c75e4(0x1a0),a1_0x5c75e4(0x1aa),a1_0x5c75e4(0x1a7)],'examples':['lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>'],'notes':[a1_0x5c75e4(0x1b7)],'markdown':[a1_0x5c75e4(0x1c1),'','Inspect\x20field\x20names,\x20relations,\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.'][a1_0x5c75e4(0x1b1)]('\x0a')},{'code':a1_0x5c75e4(0x1a9),'category':a1_0x5c75e4(0x19d),'title':'Filter\x20dataset\x20data','method':a1_0x5c75e4(0x16f),'path':a1_0x5c75e4(0x18d),'summary':a1_0x5c75e4(0x182),'whenToUse':a1_0x5c75e4(0x16b),'pathParams':[{'name':a1_0x5c75e4(0x1c0),'description':a1_0x5c75e4(0x1bb)},{'name':a1_0x5c75e4(0x175),'description':a1_0x5c75e4(0x19f)}],'queryParams':[],'bodySchema':a1_0x5c75e4(0x17f),'responseHighlights':[a1_0x5c75e4(0x1b0),a1_0x5c75e4(0x17b)],'examples':[a1_0x5c75e4(0x165)],'notes':[a1_0x5c75e4(0x1cc)],'markdown':['##\x20Filter\x20dataset\x20data','','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.'][a1_0x5c75e4(0x1b1)]('\x0a')},{'code':a1_0x5c75e4(0x1b5),'category':a1_0x5c75e4(0x19d),'title':a1_0x5c75e4(0x18f),'method':a1_0x5c75e4(0x16f),'path':a1_0x5c75e4(0x1c8),'summary':a1_0x5c75e4(0x1a5),'whenToUse':a1_0x5c75e4(0x19e),'pathParams':[{'name':a1_0x5c75e4(0x1c0),'description':'Current\x20app\x20code'},{'name':a1_0x5c75e4(0x175),'description':a1_0x5c75e4(0x19f)}],'queryParams':[],'bodySchema':'{\x22aggregate\x22:[{\x22column\x22:\x20\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','responseHighlights':[a1_0x5c75e4(0x196),a1_0x5c75e4(0x1b8)],'examples':[a1_0x5c75e4(0x198)],'notes':[a1_0x5c75e4(0x194),a1_0x5c75e4(0x16c)],'markdown':['##\x20Aggregate\x20dataset\x20data','',a1_0x5c75e4(0x1d5)][a1_0x5c75e4(0x1b1)]('\x0a')},{'code':'dataset_data_get_one','category':a1_0x5c75e4(0x19d),'title':'Get\x20one\x20dataset\x20record','method':a1_0x5c75e4(0x16f),'path':'/api/{appCode}/{datasetCode}/getOne','summary':a1_0x5c75e4(0x1cf),'whenToUse':a1_0x5c75e4(0x183),'pathParams':[{'name':a1_0x5c75e4(0x1c0),'description':a1_0x5c75e4(0x1bb)},{'name':'datasetCode','description':a1_0x5c75e4(0x19f)}],'queryParams':[],'bodySchema':a1_0x5c75e4(0x19a),'responseHighlights':[a1_0x5c75e4(0x1c6)],'examples':['lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27'],'notes':[a1_0x5c75e4(0x195)],'markdown':a1_0x5c75e4(0x169)},{'code':a1_0x5c75e4(0x181),'category':a1_0x5c75e4(0x19d),'title':a1_0x5c75e4(0x1ca),'method':'POST','path':'/api/{appCode}/{datasetCode}/create','summary':'创建数据','whenToUse':'需要向指定数据集新增一条业务数据时使用','pathParams':[{'name':a1_0x5c75e4(0x1c0),'description':a1_0x5c75e4(0x1bb)},{'name':a1_0x5c75e4(0x175),'description':a1_0x5c75e4(0x19f)}],'queryParams':[],'bodySchema':a1_0x5c75e4(0x18c),'responseHighlights':[a1_0x5c75e4(0x1bd)],'examples':[a1_0x5c75e4(0x18e)],'notes':[a1_0x5c75e4(0x1cb)],'markdown':a1_0x5c75e4(0x1bf)},{'code':a1_0x5c75e4(0x1be),'category':'bf','title':a1_0x5c75e4(0x171),'method':'GET','path':a1_0x5c75e4(0x167),'summary':a1_0x5c75e4(0x1c3),'whenToUse':a1_0x5c75e4(0x1ac),'pathParams':[{'name':a1_0x5c75e4(0x1c0),'description':'Current\x20app\x20code'}],'queryParams':[],'bodySchema':a1_0x5c75e4(0x1b3),'responseHighlights':[a1_0x5c75e4(0x1c7)],'examples':[a1_0x5c75e4(0x1c4)],'notes':[a1_0x5c75e4(0x18b)],'markdown':a1_0x5c75e4(0x16e)},{'code':a1_0x5c75e4(0x1ae),'category':'bf','title':a1_0x5c75e4(0x186),'method':a1_0x5c75e4(0x16f),'path':a1_0x5c75e4(0x177),'summary':a1_0x5c75e4(0x17d),'whenToUse':a1_0x5c75e4(0x16d),'pathParams':[{'name':a1_0x5c75e4(0x1c0),'description':a1_0x5c75e4(0x1bb)},{'name':a1_0x5c75e4(0x1a3),'description':a1_0x5c75e4(0x191)}],'queryParams':[],'bodySchema':a1_0x5c75e4(0x163),'responseHighlights':[a1_0x5c75e4(0x197)],'examples':[a1_0x5c75e4(0x1ce)],'notes':[a1_0x5c75e4(0x1d4)],'markdown':a1_0x5c75e4(0x1b9)},{'code':a1_0x5c75e4(0x170),'category':a1_0x5c75e4(0x164),'title':'Execute\x20custom\x20SQL','method':'POST','path':'/api/custom/executeSql','summary':a1_0x5c75e4(0x1d6),'whenToUse':a1_0x5c75e4(0x179),'pathParams':[],'queryParams':[],'bodySchema':'{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','responseHighlights':[a1_0x5c75e4(0x19c)],'examples':[a1_0x5c75e4(0x1d1)],'notes':[a1_0x5c75e4(0x1b2)],'markdown':a1_0x5c75e4(0x180)}];function entrySummary(_0x551b9c){const _0x3ac491=a1_0x5c75e4;return{'code':_0x551b9c[_0x3ac491(0x187)],'category':_0x551b9c[_0x3ac491(0x192)],'method':_0x551b9c['method'],'path':_0x551b9c[_0x3ac491(0x199)],'summary':_0x551b9c[_0x3ac491(0x1a8)],'whenToUse':_0x551b9c['whenToUse']};}export function listApiDocEntries(_0x4bbbf3={}){const _0x356d96=a1_0x5c75e4,_0x4e97a4=String(_0x4bbbf3[_0x356d96(0x192)]||'')['trim'](),_0x5756d9=String(_0x4bbbf3[_0x356d96(0x17e)]||'')[_0x356d96(0x172)]()['toLowerCase']();return DOCS[_0x356d96(0x17c)](_0xd77990=>{const _0xc3d074=_0x356d96;if(_0x4e97a4&&_0xd77990[_0xc3d074(0x192)]!==_0x4e97a4)return![];if(!_0x5756d9)return!![];return[_0xd77990[_0xc3d074(0x187)],_0xd77990[_0xc3d074(0x192)],_0xd77990[_0xc3d074(0x1a6)],_0xd77990[_0xc3d074(0x199)],_0xd77990[_0xc3d074(0x1a8)],_0xd77990['whenToUse'],_0xd77990[_0xc3d074(0x1a2)]][_0xc3d074(0x1b1)]('\x20')[_0xc3d074(0x193)]()[_0xc3d074(0x1c9)](_0x5756d9);})['map'](entrySummary);}export function getApiDocDetail(_0xccd2e6){const _0x4cf47c=a1_0x5c75e4,_0x4fae81=DOCS[_0x4cf47c(0x1ad)](_0xbcf9d8=>_0xbcf9d8[_0x4cf47c(0x187)]===_0xccd2e6);if(!_0x4fae81)throw CliErrors[_0x4cf47c(0x1d3)]('API\x20doc\x20code\x20not\x20found:\x20'+_0xccd2e6);return{..._0x4fae81};}const apiDocList={'service':a1_0x5c75e4(0x1af),'command':a1_0x5c75e4(0x1b6),'description':'List\x20available\x20runtime\x20API\x20documentation\x20entries','risk':'read','requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x533006){const _0x11a452=a1_0x5c75e4,_0x574763=listApiDocEntries({'category':_0x533006['str']('category'),'keyword':_0x533006[_0x11a452(0x16a)](_0x11a452(0x17e))});return{'ok':!![],'data':{'total':_0x574763[_0x11a452(0x1b4)],'items':_0x574763}};}},apiDocDetail={'service':'api-doc','command':a1_0x5c75e4(0x1a4),'description':a1_0x5c75e4(0x1a1),'risk':'read','requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x1c9c2b){const _0x4d37d5=a1_0x5c75e4;return{'ok':!![],'data':getApiDocDetail(_0x1c9c2b['str'](_0x4d37d5(0x187)))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];function a1_0xeeb6(){const _0x56de70=['32-character\x20dataset\x20code','fields/properties\x20describe\x20data\x20shape','Show\x20runtime\x20API\x20documentation\x20by\x20code','title','scriptName','detail','聚合查询数据集数据','method','operations\x20describes\x20runtime\x20APIs','summary','dataset_data_filter','relations\x20contains\x20the\x20object-shaped\x20API\x20relations\x20value\x20when\x20returned','2RUbRdc','需要先确认当前应用有哪些可执行的\x20BF/ENDPOINT\x20函数,以及收敛可用\x20scriptName\x20时使用','find','bf_execute','api-doc','tableData\x20contains\x20records','join','Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.','None','length','dataset_data_aggregate','list','If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.','where\x20filters\x20before\x20aggregation','##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.','paging.totalCount\x20gives\x20total\x20rows','Current\x20app\x20code','539226QIyvLA','Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result','bf_function_list','##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.','appCode','##\x20Dataset\x20detail','tableData\x20contains\x20dataset\x20id/code/name','获取应用下可调用的\x20BF\x20函数列表','lovrabet\x20bff\x20detail\x20--id\x20<scriptId>\x20--appcode\x20<appCode>','272319JPGYvV','Returns\x20one\x20matching\x20business\x20record','Returns\x20endpoint\x20functionName/id/description','/api/{appCode}/{datasetCode}/aggregate','includes','Create\x20dataset\x20record','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.','需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27','查询单条数据','6093984ZcQHyX','lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27','/api/dataset/get-dataset-list-by-app-code','validation','Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.','执行自定义\x20SQL','{\x22param\x22:\x22value\x22}','custom_sql','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27','3464050ZdWTta','/api/endpoint/{appCode}/functions','3383135EAYcRV','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','str','需要携带\x20where、orderBy、分页等条件读取业务数据时使用','`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','已经确认目标\x20BF\x20的\x20scriptName,且需要实际调用该\x20ENDPOINT\x20脚本完成业务操作时使用','##\x20List\x20BF\x20endpoint\x20functions\x0a\x0aDiscover\x20executable\x20endpoint\x20functions.','POST','custom_sql_execute','List\x20BF\x20endpoint\x20functions','trim','dataset_detail','##\x20List\x20datasets','datasetCode','string','/api/endpoint/{appCode}/{scriptName}','需要按数据集\x20code\x20获取字段、表信息、关联关系(relations)或操作定义时使用','已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','dataset_list','paging\x20contains\x20pagination','filter','执行指定\x20BF\x20函数','keyword','{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','dataset_data_create','条件过滤查询数据','已经知道记录\x20id,需要按数据集读取单条业务数据时使用','3147020vPTkvP','API\x20doc\x20code,\x20for\x20example\x20dataset_list','Execute\x20BF\x20endpoint\x20function','code','List\x20datasets','获取数据集详情','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.','CLI\x20has\x20typed\x20`bff\x20detail`\x20and\x20`bff\x20exec`\x20commands\x20for\x20endpoint\x20scripts.','{\x22fieldName\x22:\x22value\x22}','/api/{appCode}/{datasetCode}/filter','lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27','Aggregate\x20dataset\x20data','1815688pgQIWU','Endpoint\x20function\x20name','category','toLowerCase','Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.','Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.','result\x20rows\x20contain\x20aggregate\x20aliases','Returns\x20script\x20business\x20payload','lovrabet\x20data\x20aggregate\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}]}\x27','path','{\x22id\x22:123}','GET','Returns\x20SQL\x20execution\x20payload','dataset','需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用'];a1_0xeeb6=function(){return _0x56de70;};return a1_0xeeb6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x574c30,_0x3659d6){const _0x4a91b9=a2_0x57cb,_0x3bbeb7=_0x574c30();while(!![]){try{const _0x4aacf8=parseInt(_0x4a91b9(0x1cb))/0x1+parseInt(_0x4a91b9(0x1c4))/0x2*(parseInt(_0x4a91b9(0x1c5))/0x3)+-parseInt(_0x4a91b9(0x1bf))/0x4+-parseInt(_0x4a91b9(0x1b4))/0x5*(parseInt(_0x4a91b9(0x1bc))/0x6)+-parseInt(_0x4a91b9(0x1c6))/0x7*(parseInt(_0x4a91b9(0x1c7))/0x8)+-parseInt(_0x4a91b9(0x1bb))/0x9*(parseInt(_0x4a91b9(0x1be))/0xa)+parseInt(_0x4a91b9(0x1b3))/0xb;if(_0x4aacf8===_0x3659d6)break;else _0x3bbeb7['push'](_0x3bbeb7['shift']());}catch(_0x321614){_0x3bbeb7['push'](_0x3bbeb7['shift']());}}}(a2_0x339b,0xc89f9));function a2_0x339b(){const _0x5e6594=['3tAsMbh','14LlMtXJ','906728rjcqge','find','stringify','isArray','260599opkjWr','sha256','ak_','my-apps.json','cache','code','parse','36150851NvjsHu','156905unJLUy','digest','items','appName','unknown','slice','trim','538632cooKNW','198DBpEMI','hex','110UkWCDo','4549280uXWgUe','.tmp','appCode','EXDEV','utf8','665232utwPIQ'];a2_0x339b=function(){return _0x5e6594;};return a2_0x339b();}import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';import{dirname,resolve}from'node:path';import{PRODUCT_CONFIG}from'../../constant/product.js';import{isRuntimeAccessibleApp}from'../../commands/app/eligibility.js';function a2_0x57cb(_0xdc5f2a,_0x24e87b){_0xdc5f2a=_0xdc5f2a-0x1b0;const _0x339b2d=a2_0x339b();let _0x57cb77=_0x339b2d[_0xdc5f2a];return _0x57cb77;}export function fingerprintAccessKey(_0xfbdcb6){const _0x4af812=a2_0x57cb,_0x5f0836=_0xfbdcb6[_0x4af812(0x1ba)](),_0x46f8cc=_0x5f0836['slice'](-0x6)||_0x4af812(0x1b8),_0x14fe9e=createHash(_0x4af812(0x1cc))['update'](_0x5f0836)[_0x4af812(0x1b5)](_0x4af812(0x1bd))[_0x4af812(0x1b9)](0x0,0xc);return _0x4af812(0x1cd)+_0x46f8cc+'_'+_0x14fe9e;}export function getAppCacheFilePath(_0x2de7f8,_0x49939a){const _0x423302=a2_0x57cb;return resolve(homedir(),PRODUCT_CONFIG['homeDirName'],_0x423302(0x1b0),_0x2de7f8,fingerprintAccessKey(_0x49939a),_0x423302(0x1ce));}export function readCachedAppList(_0x5a052b,_0x1f9f96){const _0x2b4e42=a2_0x57cb;if(!_0x1f9f96?.['trim']())return null;const _0x29777d=getAppCacheFilePath(_0x5a052b,_0x1f9f96);if(!existsSync(_0x29777d))return null;try{const _0x43b716=readFileSync(_0x29777d,_0x2b4e42(0x1c3));if(!_0x43b716['trim']())return null;const _0x165d9a=JSON[_0x2b4e42(0x1b2)](_0x43b716);if(!Array[_0x2b4e42(0x1ca)](_0x165d9a['items']))return null;return _0x165d9a;}catch{return null;}}export function writeCachedAppList(_0x15cb97,_0x466d29,_0x2c9ee9){const _0x121614=a2_0x57cb,_0x586b03=getAppCacheFilePath(_0x15cb97,_0x466d29),_0x2a7078=dirname(_0x586b03);!existsSync(_0x2a7078)&&mkdirSync(_0x2a7078,{'recursive':!![]});const _0x4b4256=_0x586b03+_0x121614(0x1c0);try{writeFileSync(_0x4b4256,JSON[_0x121614(0x1c9)](_0x2c9ee9,null,0x2)+'\x0a',{'encoding':_0x121614(0x1c3),'mode':0x180});try{renameSync(_0x4b4256,_0x586b03);}catch(_0x2eb496){if(_0x2eb496[_0x121614(0x1b1)]==='EPERM'||_0x2eb496['code']===_0x121614(0x1c2)||_0x2eb496['code']==='EACCES'){writeFileSync(_0x586b03,JSON[_0x121614(0x1c9)](_0x2c9ee9,null,0x2)+'\x0a',{'encoding':_0x121614(0x1c3)});try{unlinkSync(_0x4b4256);}catch{}}else throw _0x2eb496;}}catch(_0x119ad2){try{unlinkSync(_0x4b4256);}catch{}throw _0x119ad2;}return _0x586b03;}export function resolveCachedAppCode(_0x51459e,_0x4170f5,_0x389b35){const _0x21d956=a2_0x57cb;if(!_0x51459e)return undefined;const _0x2e2301=readCachedAppList(_0x4170f5,_0x389b35),_0x353be1=_0x2e2301?.[_0x21d956(0x1b6)][_0x21d956(0x1c8)](_0x2e35c5=>_0x2e35c5[_0x21d956(0x1b7)]===_0x51459e&&isRuntimeAccessibleApp(_0x2e35c5));return _0x353be1?.[_0x21d956(0x1c1)]?.[_0x21d956(0x1ba)]()||undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x44a92b=a3_0x2957;(function(_0x419fd5,_0x362126){const _0x1027f7=a3_0x2957,_0x2257ab=_0x419fd5();while(!![]){try{const _0x48ff0c=-parseInt(_0x1027f7(0xfa))/0x1+parseInt(_0x1027f7(0x151))/0x2*(parseInt(_0x1027f7(0x125))/0x3)+parseInt(_0x1027f7(0x101))/0x4+parseInt(_0x1027f7(0x150))/0x5+-parseInt(_0x1027f7(0x133))/0x6*(-parseInt(_0x1027f7(0x13f))/0x7)+parseInt(_0x1027f7(0x110))/0x8*(parseInt(_0x1027f7(0x119))/0x9)+-parseInt(_0x1027f7(0x104))/0xa*(parseInt(_0x1027f7(0x11c))/0xb);if(_0x48ff0c===_0x362126)break;else _0x2257ab['push'](_0x2257ab['shift']());}catch(_0x3daee4){_0x2257ab['push'](_0x2257ab['shift']());}}}(a3_0x1a8e,0x4d510));import{CliErrors}from'../../errors.js';import{initCreateFlagDefs,initImportFlagDefs,runInit,runInitImport}from'../../commands/init.js';import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';import{buildAppProfileListFields}from'../../config/schema.js';function a3_0x1a8e(){const _0xf7b634=['\x20is\x20deprecated.\x20Use\x20`','production','198sJPETq','string','Target\x20environment\x20(default:\x20current\x20env)','args','import','`\x20instead.','remote','../../context.js','Available\x20remote\x20apps:\x20','Refreshed\x20app\x20cache\x20with\x20','\x22\x20not\x20found.','../../commands/app/cache.js','15169nLiqgP','Remote\x20app\x20name\x20to\x20activate','appPublishStatus','raw','validation','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','envName','cachePath','defaultApp','read','no-cache','No\x20apps\x20found\x20on\x20the\x20platform.','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','write','Loaded\x20','\x20app\x20','langs','616065TyDngJ','15276lpVwhv','type','mergedCli','\x20workspace\x20use\x20--app\x20<name>\x20[--env\x20daily]','Deprecated:\x20use\x20workspace\x20use\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.','global','258774rMnQdt','\x20app(s)\x20for\x20env=\x22','\x20cached\x20app(s)\x20for\x20env=\x22','items','isArray','Usage:\x20','push','2402260lmHZRR','project-default','Missing\x20app\x20name.','50SLGrAp','Read\x20app\x20list\x20from\x20local\x20cache\x20only','trim','fetchedAt','Deprecated:\x20use\x20workspace\x20init\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','bool','local','cache','length','../../commands/app/remote-source.js','env','2656dgaNrc','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','appcode','Include\x20unpublished\x20apps\x20for\x20diagnostics','config','boolean','enableI18n','appCode','str','1638usALtD','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','Use\x20`','919017gOcMyT','No\x20cached\x20apps\x20found.','Use\x20global\x20config\x20scope','i18nInfo','.appcode\x20to\x20.lovrabet.json.','source','App\x20\x22','\x20app\x20use\x20<name>\x20[--global]','pull','54lKzooB','from','\x20workspace\x20init\x20--appcode\x20<code>\x20[--env\x20daily]','find','use','map','name','include-unpublished','appName','accessKey','nonInteractive','app'];a3_0x1a8e=function(){return _0xf7b634;};return a3_0x1a8e();}import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{filterRuntimeAccessibleApps,findAppByCode,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';function a3_0x2957(_0x3d799b,_0x58682b){_0x3d799b=_0x3d799b-0xf6;const _0x1a8e89=a3_0x1a8e();let _0x2957c9=_0x1a8e89[_0x3d799b];return _0x2957c9;}const GLOBAL_FLAG={'name':'global','type':a3_0x44a92b(0x115),'description':a3_0x44a92b(0x11e),'default':![]};function collectFlags(_0x2c5759,_0x2c7903){const _0x42a0a6=a3_0x44a92b,_0x15b4ee={};for(const _0x294805 of _0x2c7903){const _0xe5016=_0x294805[_0x42a0a6(0x152)]===_0x42a0a6(0x115)?_0x2c5759[_0x42a0a6(0x10a)](_0x294805[_0x42a0a6(0x12b)]):_0x2c5759[_0x42a0a6(0x118)](_0x294805[_0x42a0a6(0x12b)]);if(_0xe5016!==''&&_0xe5016!==![])_0x15b4ee[_0x294805[_0x42a0a6(0x12b)]]=_0xe5016;}if(_0x2c5759[_0x42a0a6(0x12f)])_0x15b4ee[_0x42a0a6(0x12f)]=!![];return _0x15b4ee;}function normalizeLanguages(_0x42f94c){const _0x38f657=a3_0x44a92b;if(!Array[_0x38f657(0xfe)](_0x42f94c))return[];return _0x42f94c['filter'](_0x41962d=>typeof _0x41962d==='string')[_0x38f657(0x12a)](_0x5264f5=>_0x5264f5[_0x38f657(0x106)]())['filter'](Boolean);}function buildRemoteAppI18nFields(_0x58f724){const _0x16fe31=a3_0x44a92b,_0xaa89c4=normalizeLanguages(_0x58f724[_0x16fe31(0x11f)]?.[_0x16fe31(0x14f)]);return{'enableI18n':typeof _0x58f724[_0x16fe31(0x116)]==='boolean'?_0x58f724[_0x16fe31(0x116)]:null,'languages':_0xaa89c4,'i18nInfo':_0x58f724[_0x16fe31(0x11f)]?{..._0x58f724[_0x16fe31(0x11f)],'langs':_0xaa89c4['length']?_0xaa89c4:null}:null};}const initDef={'service':a3_0x44a92b(0x130),'command':'init','description':a3_0x44a92b(0x108),'risk':a3_0x44a92b(0x14c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x1bcbd4){const _0x47cc1d=a3_0x44a92b;return warnDeprecatedAppCommand('init',CLI_BIN_NAME+_0x47cc1d(0x127)),await runInit(collectFlags(_0x1bcbd4,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a3_0x44a92b(0x130),'command':'list','description':a3_0x44a92b(0x144),'risk':a3_0x44a92b(0x148),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a3_0x44a92b(0x10f),'type':'string','description':'Filter\x20by\x20environment\x20(default:\x20current\x20env)','enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x44a92b(0x10b),'type':a3_0x44a92b(0x115),'description':a3_0x44a92b(0x105),'default':![]},{'name':'no-cache','type':a3_0x44a92b(0x115),'description':a3_0x44a92b(0x11a),'default':![]},{'name':'include-unpublished','type':'boolean','description':a3_0x44a92b(0x113),'default':![]}],async 'execute'(_0x52f24c){const _0x5a4349=a3_0x44a92b,_0x2325e8=_0x52f24c[_0x5a4349(0x118)]('env')||_0x52f24c[_0x5a4349(0x145)]||getEnv()||'production',_0x152bf1=_0x52f24c['bool'](_0x5a4349(0x10b)),_0x120061=_0x52f24c[_0x5a4349(0x10a)](_0x5a4349(0x149)),_0x575ee2=_0x52f24c[_0x5a4349(0x10a)](_0x5a4349(0x12c)),{readRawConfigWithLayers:_0x20936c,resolveDefaultAppSource:_0x11b2f4,getLocalAppAliases:_0x15e774}=await import('../../context.js'),{getRemoteAppList:_0xc4666b}=await import(_0x5a4349(0x10e)),{config:_0x504b72,layers:_0x24c0d1}=_0x20936c(),_0x504520=_0x11b2f4(_0x24c0d1),{defaultApp:_0x4b3596}=_0x504b72,_0x135366=await _0xc4666b({'env':_0x2325e8,'accessKey':_0x52f24c[_0x5a4349(0x12e)],'localOnly':_0x152bf1,'noCache':_0x120061}),_0x4a8e69=_0x575ee2?_0x135366[_0x5a4349(0xfd)]:filterRuntimeAccessibleApps(_0x135366['items']),_0xcb6e9a=_0x135366[_0x5a4349(0xfd)]['length']-_0x4a8e69[_0x5a4349(0x10d)],_0x5e84ea=_0x4a8e69['map'](_0xe9051e=>{const _0x1df817=_0x5a4349;return{'name':_0xe9051e[_0x1df817(0x12d)],'appcode':_0xe9051e['appCode'],'named':!![],'definedIn':_0x1df817(0x139),'isDefault':_0xe9051e[_0x1df817(0x12d)]===_0x4b3596,...buildAppProfileListFields(_0x2325e8),...buildRemoteAppI18nFields(_0xe9051e),'source':_0x135366['source'],'owner':_0xe9051e['appOwnerName']??null,'status':_0xe9051e[_0x1df817(0x141)]??null,'cachedAt':_0x135366[_0x1df817(0x107)]};}),_0x5ee33f=_0x15e774(_0x504b72);let _0x5b79f1=0x0;for(const [_0x2de6f5,_0x246aff]of Object['entries'](_0x5ee33f)){const _0xfd62cf=typeof _0x246aff['appcode']===_0x5a4349(0x134)?_0x246aff[_0x5a4349(0x112)][_0x5a4349(0x106)]():'';if(!_0xfd62cf)continue;const _0x4cbd10=findAppByCode(_0x135366['items'],_0xfd62cf);if(!_0x575ee2&&_0x4cbd10&&!isRuntimeAccessibleApp(_0x4cbd10))continue;_0x5b79f1+=0x1,_0x5e84ea[_0x5a4349(0x100)]({'name':_0x2de6f5,'appcode':_0xfd62cf,'named':!![],'definedIn':'local','isDefault':_0x2de6f5===_0x4b3596,...buildAppProfileListFields(_0x2325e8),'source':_0x5a4349(0x114),'owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x5e84ea,_0x52f24c[_0x5a4349(0x153)]);const _0x542435=_0x5e84ea[_0x5a4349(0x128)](_0x53e04e=>_0x53e04e['isCurrent']===!![]),_0xc13055=_0x4b3596??_0x542435?.['name']??null,_0x530d95={'env':_0x2325e8,'source':_0x135366[_0x5a4349(0x121)],'fetchedAt':_0x135366[_0x5a4349(0x107)],'cachePath':_0x135366['cachePath'],'globalPath':_0x24c0d1['globalPath']??null,'projectPath':_0x24c0d1['projectPath']??null,'defaultApp':_0xc13055,'defaultAppSource':_0x4b3596!=null?_0x504520:null,'localAliasCount':_0x5b79f1,'remoteTotal':_0x135366[_0x5a4349(0xfd)]['length'],'hiddenUnpublishedCount':_0xcb6e9a,'includeUnpublished':_0x575ee2};if(_0x5e84ea[_0x5a4349(0x10d)]===0x0)return{'ok':!![],'data':{'items':_0x5e84ea,'meta':_0x530d95},'message':_0x135366[_0x5a4349(0x121)]===_0x5a4349(0x10c)?_0x5a4349(0x11d):_0x5a4349(0x14a)};return{'ok':!![],'data':{'items':_0x5e84ea,'meta':_0x530d95}};}},pullDef={'service':a3_0x44a92b(0x130),'command':a3_0x44a92b(0x124),'description':a3_0x44a92b(0x109),'risk':a3_0x44a92b(0x14c),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a3_0x44a92b(0x10f),'type':a3_0x44a92b(0x134),'description':a3_0x44a92b(0x135),'enum':[...RUNTIME_ENV_VALUES]},{'name':'local','type':a3_0x44a92b(0x115),'description':'Read\x20from\x20local\x20cache\x20only','default':![]},{'name':a3_0x44a92b(0x149),'type':'boolean','description':a3_0x44a92b(0x11a),'default':![]}],async 'execute'(_0x87c60){const _0x2fc0b5=a3_0x44a92b,_0x4f217d=_0x87c60[_0x2fc0b5(0x118)]('env')||_0x87c60[_0x2fc0b5(0x145)]||getEnv()||_0x2fc0b5(0x132),_0x3a3cff=_0x87c60[_0x2fc0b5(0x10a)](_0x2fc0b5(0x10b)),_0x416da4=_0x87c60[_0x2fc0b5(0x10a)]('no-cache'),{getRemoteAppList:_0x4a3877}=await import(_0x2fc0b5(0x10e)),_0x570386=await _0x4a3877({'env':_0x4f217d,'accessKey':_0x87c60[_0x2fc0b5(0x12e)],'localOnly':_0x3a3cff,'noCache':_0x416da4});return{'ok':!![],'data':{'total':_0x570386[_0x2fc0b5(0xfd)][_0x2fc0b5(0x10d)],'env':_0x4f217d,'source':_0x570386[_0x2fc0b5(0x121)],'fetchedAt':_0x570386[_0x2fc0b5(0x107)],'cachePath':_0x570386[_0x2fc0b5(0x146)]},'message':_0x570386['source']===_0x2fc0b5(0x10c)?_0x2fc0b5(0x14d)+_0x570386[_0x2fc0b5(0xfd)][_0x2fc0b5(0x10d)]+_0x2fc0b5(0xfc)+_0x4f217d+'\x22.':_0x2fc0b5(0x13c)+_0x570386['items']['length']+_0x2fc0b5(0xfb)+_0x4f217d+'\x22.'};}},useDef={'service':'app','command':a3_0x44a92b(0x129),'description':a3_0x44a92b(0xf7),'risk':a3_0x44a92b(0x14c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'name','description':a3_0x44a92b(0x140),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x3de318){const _0x583862=a3_0x44a92b;if(!_0x3de318[_0x583862(0x136)][0x0])throw CliErrors[_0x583862(0x143)](_0x583862(0x103),'Usage:\x20'+CLI_BIN_NAME+_0x583862(0x123));},async 'execute'(_0x2a45a5){const _0x3c64e7=a3_0x44a92b;warnDeprecatedAppCommand(_0x3c64e7(0x129),CLI_BIN_NAME+_0x3c64e7(0xf6));const _0xb21944=_0x2a45a5['args'][0x0];if(!_0xb21944)throw CliErrors[_0x3c64e7(0x143)](_0x3c64e7(0x103),_0x3c64e7(0xff)+CLI_BIN_NAME+_0x3c64e7(0x123));const {buildConfigFromFlags:_0x22464d,resolveLocalAppAliasCode:_0x11fdb4}=await import(_0x3c64e7(0x13a)),{readCachedAppList:_0x28acc4}=await import(_0x3c64e7(0x13e)),_0x5b799a=_0x2a45a5['str']('env'),_0xbea4b5=_0x22464d(_0x5b799a?{'env':_0x5b799a}:{}),_0x54315a=_0x28acc4(_0xbea4b5[_0x3c64e7(0x10f)],_0xbea4b5[_0x3c64e7(0x12e)]),_0x475b1f=_0x54315a?.['items'][_0x3c64e7(0x128)](_0x2ab966=>_0x2ab966[_0x3c64e7(0x12d)]===_0xb21944),_0x34f792=_0x11fdb4(_0xbea4b5[_0x3c64e7(0x142)]??{},_0xb21944);if(_0x475b1f&&!isRuntimeAccessibleApp(_0x475b1f))throw runtimeInaccessibleAppError(_0x475b1f,'\x22'+_0xb21944+'\x22');if(_0x34f792){const _0x73894d=_0x54315a?.[_0x3c64e7(0xfd)]['find'](_0x32ec7c=>_0x32ec7c[_0x3c64e7(0x117)]?.[_0x3c64e7(0x106)]()===_0x34f792);if(_0x73894d&&!isRuntimeAccessibleApp(_0x73894d))throw runtimeInaccessibleAppError(_0x73894d,'\x22'+_0xb21944+'\x22');}if(!_0x475b1f&&!_0x34f792&&_0xbea4b5['defaultApp']!==_0xb21944){const _0x4478bb=[..._0x54315a?.[_0x3c64e7(0xfd)][_0x3c64e7(0x12a)](_0x356625=>_0x356625[_0x3c64e7(0x12d)])??[]],_0x56ceda=_0x4478bb[_0x3c64e7(0x10d)]===0x0?_0x3c64e7(0x11b)+CLI_BIN_NAME+_0x3c64e7(0xf8)+_0xb21944+_0x3c64e7(0x120):_0x3c64e7(0x13b)+Array[_0x3c64e7(0x126)](new Set(_0x4478bb))['join'](',\x20')+_0x3c64e7(0x111);throw CliErrors[_0x3c64e7(0x143)](_0x3c64e7(0x122)+_0xb21944+_0x3c64e7(0x13d),_0x56ceda);}const _0x2b7197=_0x2a45a5['bool'](_0x3c64e7(0xf9));let _0x29db79;if(_0x2b7197)_0x29db79={'global':!![]};else{const {isInProject:_0x4efb83}=await import(_0x3c64e7(0x13a)),_0x16e5ed=_0x4efb83();_0x29db79=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x3c64e7(0x102),'inProject':_0x16e5ed}));}const _0x3a1d98=readConfig(_0x29db79);return _0x3a1d98[_0x3c64e7(0x147)]=_0xb21944,writeConfig(_0x3a1d98,_0x29db79),{'ok':!![],'message':'Default\x20app\x20candidate\x20set\x20to\x20\x22'+_0xb21944+'\x22'+scopeLabel(_0x29db79)+'.'};}};function warnDeprecatedAppCommand(_0xdf7669,_0x52e570){const _0x40bcf0=a3_0x44a92b;console['warn'](CLI_BIN_NAME+_0x40bcf0(0x14e)+_0xdf7669+_0x40bcf0(0x131)+_0x52e570+_0x40bcf0(0x138));}const importDef={'service':a3_0x44a92b(0x130),'command':a3_0x44a92b(0x137),'description':a3_0x44a92b(0x14b),'risk':a3_0x44a92b(0x14c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x177473){return await runInitImport(collectFlags(_0x177473,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
|
|
1
|
+
const a3_0x20ddd7=a3_0x3de5;function a3_0x3de5(_0x502e9c,_0x1348de){_0x502e9c=_0x502e9c-0x136;const _0x13bf74=a3_0x13bf();let _0x3de558=_0x13bf74[_0x502e9c];return _0x3de558;}(function(_0x268a0e,_0x4c11cb){const _0x5b637b=a3_0x3de5,_0x29e59d=_0x268a0e();while(!![]){try{const _0x54170d=-parseInt(_0x5b637b(0x160))/0x1*(parseInt(_0x5b637b(0x18c))/0x2)+-parseInt(_0x5b637b(0x15e))/0x3+parseInt(_0x5b637b(0x179))/0x4+-parseInt(_0x5b637b(0x186))/0x5+-parseInt(_0x5b637b(0x13f))/0x6+parseInt(_0x5b637b(0x157))/0x7+-parseInt(_0x5b637b(0x145))/0x8*(-parseInt(_0x5b637b(0x150))/0x9);if(_0x54170d===_0x4c11cb)break;else _0x29e59d['push'](_0x29e59d['shift']());}catch(_0x15b420){_0x29e59d['push'](_0x29e59d['shift']());}}}(a3_0x13bf,0xb0ca4));import{CliErrors}from'../../errors.js';function a3_0x13bf(){const _0x371477=['appPublishStatus','list','\x20app\x20use\x20<name>\x20[--global]','812838ArVuGm','Missing\x20app\x20name.','find','no-cache','defaultApp','../../commands/app/cache.js','2252464wSlPnb','production','../../commands/app/remote-source.js','trim','mergedCli','\x20cached\x20app(s)\x20for\x20env=\x22','Include\x20unpublished\x20apps\x20for\x20diagnostics','raw','\x20workspace\x20use\x20--app\x20<name>\x20[--env\x20daily]','remote','No\x20cached\x20apps\x20found.','99VzIglJ','appName','Use\x20`','source','envName','config','string','4305924zkvWoj','init','boolean','app','enableI18n','isArray','Available\x20remote\x20apps:\x20','4040565WoSNbL','Loaded\x20','82AgMhaZ','App\x20\x22','cachePath','\x20app(s)\x20for\x20env=\x22','nonInteractive','write','cache','appCode','fetchedAt','local','import','appcode','project-default','No\x20apps\x20found\x20on\x20the\x20platform.','type','accessKey','validation','from','map','Target\x20environment\x20(default:\x20current\x20env)','Use\x20global\x20config\x20scope','read','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','929720cAgvnt','global','args','i18nInfo','items','\x20app\x20','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','Read\x20app\x20list\x20from\x20local\x20cache\x20only','name','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','env','filter','use','2989330gawbQQ','bool','join','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','Remote\x20app\x20name\x20to\x20activate','length','27814sFPrZw','isCurrent','Usage:\x20','str','warn','Filter\x20by\x20environment\x20(default:\x20current\x20env)','Deprecated:\x20use\x20workspace\x20use\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','appOwnerName','../../context.js'];a3_0x13bf=function(){return _0x371477;};return a3_0x13bf();}import{initCreateFlagDefs,initImportFlagDefs,runInit,runInitImport}from'../../commands/init.js';import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';import{buildAppProfileListFields}from'../../config/schema.js';import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{filterRuntimeAccessibleApps,findAppByCode,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const GLOBAL_FLAG={'name':'global','type':a3_0x20ddd7(0x159),'description':a3_0x20ddd7(0x174),'default':![]};function collectFlags(_0xb826c1,_0x996d9a){const _0x1f7da0=a3_0x20ddd7,_0x2e7008={};for(const _0x428c4b of _0x996d9a){const _0x49e1a6=_0x428c4b[_0x1f7da0(0x16e)]==='boolean'?_0xb826c1[_0x1f7da0(0x187)](_0x428c4b[_0x1f7da0(0x181)]):_0xb826c1[_0x1f7da0(0x136)](_0x428c4b[_0x1f7da0(0x181)]);if(_0x49e1a6!==''&&_0x49e1a6!==![])_0x2e7008[_0x428c4b[_0x1f7da0(0x181)]]=_0x49e1a6;}if(_0xb826c1[_0x1f7da0(0x164)])_0x2e7008[_0x1f7da0(0x164)]=!![];return _0x2e7008;}function normalizeLanguages(_0x53512a){const _0x4e983b=a3_0x20ddd7;if(!Array[_0x4e983b(0x15c)](_0x53512a))return[];return _0x53512a[_0x4e983b(0x184)](_0x4385b3=>typeof _0x4385b3===_0x4e983b(0x156))[_0x4e983b(0x172)](_0x3cdfdf=>_0x3cdfdf['trim']())[_0x4e983b(0x184)](Boolean);}function buildRemoteAppI18nFields(_0x57a948){const _0x5e7900=a3_0x20ddd7,_0x67609f=normalizeLanguages(_0x57a948['i18nInfo']?.['langs']);return{'enableI18n':typeof _0x57a948[_0x5e7900(0x15b)]==='boolean'?_0x57a948[_0x5e7900(0x15b)]:null,'languages':_0x67609f,'i18nInfo':_0x57a948[_0x5e7900(0x17c)]?{..._0x57a948[_0x5e7900(0x17c)],'langs':_0x67609f[_0x5e7900(0x18b)]?_0x67609f:null}:null};}const initDef={'service':a3_0x20ddd7(0x15a),'command':a3_0x20ddd7(0x158),'description':'Deprecated:\x20use\x20workspace\x20init\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x4468c8){const _0x3d6734=a3_0x20ddd7;return warnDeprecatedAppCommand(_0x3d6734(0x158),CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>\x20[--env\x20daily]'),await runInit(collectFlags(_0x4468c8,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':'app','command':a3_0x20ddd7(0x13d),'description':a3_0x20ddd7(0x176),'risk':a3_0x20ddd7(0x175),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':'env','type':a3_0x20ddd7(0x156),'description':a3_0x20ddd7(0x138),'enum':[...RUNTIME_ENV_VALUES]},{'name':'local','type':'boolean','description':a3_0x20ddd7(0x180),'default':![]},{'name':a3_0x20ddd7(0x142),'type':a3_0x20ddd7(0x159),'description':'Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','default':![]},{'name':'include-unpublished','type':a3_0x20ddd7(0x159),'description':a3_0x20ddd7(0x14b),'default':![]}],async 'execute'(_0x2e7a22){const _0x2f5d13=a3_0x20ddd7,_0x322bff=_0x2e7a22[_0x2f5d13(0x136)](_0x2f5d13(0x183))||_0x2e7a22[_0x2f5d13(0x154)]||getEnv()||_0x2f5d13(0x146),_0x1e8785=_0x2e7a22[_0x2f5d13(0x187)](_0x2f5d13(0x169)),_0x59edb8=_0x2e7a22[_0x2f5d13(0x187)](_0x2f5d13(0x142)),_0x476c6f=_0x2e7a22[_0x2f5d13(0x187)]('include-unpublished'),{readRawConfigWithLayers:_0x3685fd,resolveDefaultAppSource:_0x160ce0,getLocalAppAliases:_0x10b3dd}=await import(_0x2f5d13(0x13b)),{getRemoteAppList:_0x14affd}=await import('../../commands/app/remote-source.js'),{config:_0x18a11d,layers:_0xe79aed}=_0x3685fd(),_0x451837=_0x160ce0(_0xe79aed),{defaultApp:_0x28fc53}=_0x18a11d,_0x565f08=await _0x14affd({'env':_0x322bff,'accessKey':_0x2e7a22[_0x2f5d13(0x16f)],'localOnly':_0x1e8785,'noCache':_0x59edb8}),_0x15f473=_0x476c6f?_0x565f08[_0x2f5d13(0x17d)]:filterRuntimeAccessibleApps(_0x565f08[_0x2f5d13(0x17d)]),_0x2d759f=_0x565f08['items'][_0x2f5d13(0x18b)]-_0x15f473[_0x2f5d13(0x18b)],_0x264ee3=_0x15f473[_0x2f5d13(0x172)](_0x1e857f=>{const _0x28fb2c=_0x2f5d13;return{'name':_0x1e857f['appName'],'appcode':_0x1e857f[_0x28fb2c(0x167)],'named':!![],'definedIn':_0x28fb2c(0x14e),'isDefault':_0x1e857f[_0x28fb2c(0x151)]===_0x28fc53,...buildAppProfileListFields(_0x322bff),...buildRemoteAppI18nFields(_0x1e857f),'source':_0x565f08[_0x28fb2c(0x153)],'owner':_0x1e857f[_0x28fb2c(0x13a)]??null,'status':_0x1e857f[_0x28fb2c(0x13c)]??null,'cachedAt':_0x565f08[_0x28fb2c(0x168)]};}),_0x3c07b3=_0x10b3dd(_0x18a11d);let _0xe27bed=0x0;for(const [_0x235af1,_0x3d3384]of Object['entries'](_0x3c07b3)){const _0x2a9737=typeof _0x3d3384[_0x2f5d13(0x16b)]==='string'?_0x3d3384[_0x2f5d13(0x16b)]['trim']():'';if(!_0x2a9737)continue;const _0x4f1418=findAppByCode(_0x565f08[_0x2f5d13(0x17d)],_0x2a9737);if(!_0x476c6f&&_0x4f1418&&!isRuntimeAccessibleApp(_0x4f1418))continue;_0xe27bed+=0x1,_0x264ee3['push']({'name':_0x235af1,'appcode':_0x2a9737,'named':!![],'definedIn':_0x2f5d13(0x169),'isDefault':_0x235af1===_0x28fc53,...buildAppProfileListFields(_0x322bff),'source':_0x2f5d13(0x155),'owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x264ee3,_0x2e7a22[_0x2f5d13(0x149)]);const _0x28887c=_0x264ee3[_0x2f5d13(0x141)](_0xdc3cc=>_0xdc3cc[_0x2f5d13(0x18d)]===!![]),_0x57866d=_0x28fc53??_0x28887c?.['name']??null,_0x466690={'env':_0x322bff,'source':_0x565f08['source'],'fetchedAt':_0x565f08[_0x2f5d13(0x168)],'cachePath':_0x565f08[_0x2f5d13(0x162)],'globalPath':_0xe79aed['globalPath']??null,'projectPath':_0xe79aed['projectPath']??null,'defaultApp':_0x57866d,'defaultAppSource':_0x28fc53!=null?_0x451837:null,'localAliasCount':_0xe27bed,'remoteTotal':_0x565f08[_0x2f5d13(0x17d)][_0x2f5d13(0x18b)],'hiddenUnpublishedCount':_0x2d759f,'includeUnpublished':_0x476c6f};if(_0x264ee3['length']===0x0)return{'ok':!![],'data':{'items':_0x264ee3,'meta':_0x466690},'message':_0x565f08['source']===_0x2f5d13(0x166)?_0x2f5d13(0x14f):_0x2f5d13(0x16d)};return{'ok':!![],'data':{'items':_0x264ee3,'meta':_0x466690}};}},pullDef={'service':a3_0x20ddd7(0x15a),'command':'pull','description':a3_0x20ddd7(0x182),'risk':'write','requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a3_0x20ddd7(0x183),'type':a3_0x20ddd7(0x156),'description':a3_0x20ddd7(0x173),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x20ddd7(0x169),'type':a3_0x20ddd7(0x159),'description':'Read\x20from\x20local\x20cache\x20only','default':![]},{'name':'no-cache','type':a3_0x20ddd7(0x159),'description':a3_0x20ddd7(0x17f),'default':![]}],async 'execute'(_0x110f68){const _0x31b3b3=a3_0x20ddd7,_0x44effd=_0x110f68[_0x31b3b3(0x136)](_0x31b3b3(0x183))||_0x110f68[_0x31b3b3(0x154)]||getEnv()||_0x31b3b3(0x146),_0x45ee14=_0x110f68[_0x31b3b3(0x187)](_0x31b3b3(0x169)),_0x3c7030=_0x110f68[_0x31b3b3(0x187)](_0x31b3b3(0x142)),{getRemoteAppList:_0x63c76a}=await import(_0x31b3b3(0x147)),_0x39ed94=await _0x63c76a({'env':_0x44effd,'accessKey':_0x110f68[_0x31b3b3(0x16f)],'localOnly':_0x45ee14,'noCache':_0x3c7030});return{'ok':!![],'data':{'total':_0x39ed94[_0x31b3b3(0x17d)][_0x31b3b3(0x18b)],'env':_0x44effd,'source':_0x39ed94[_0x31b3b3(0x153)],'fetchedAt':_0x39ed94['fetchedAt'],'cachePath':_0x39ed94['cachePath']},'message':_0x39ed94[_0x31b3b3(0x153)]===_0x31b3b3(0x166)?_0x31b3b3(0x15f)+_0x39ed94[_0x31b3b3(0x17d)][_0x31b3b3(0x18b)]+_0x31b3b3(0x14a)+_0x44effd+'\x22.':'Refreshed\x20app\x20cache\x20with\x20'+_0x39ed94[_0x31b3b3(0x17d)][_0x31b3b3(0x18b)]+_0x31b3b3(0x163)+_0x44effd+'\x22.'};}},useDef={'service':a3_0x20ddd7(0x15a),'command':a3_0x20ddd7(0x185),'description':a3_0x20ddd7(0x139),'risk':a3_0x20ddd7(0x165),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a3_0x20ddd7(0x181),'description':a3_0x20ddd7(0x18a),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x52ccd1){const _0x31db8c=a3_0x20ddd7;if(!_0x52ccd1[_0x31db8c(0x17b)][0x0])throw CliErrors[_0x31db8c(0x170)](_0x31db8c(0x140),_0x31db8c(0x18e)+CLI_BIN_NAME+_0x31db8c(0x13e));},async 'execute'(_0x334de0){const _0x5a7beb=a3_0x20ddd7;warnDeprecatedAppCommand(_0x5a7beb(0x185),CLI_BIN_NAME+_0x5a7beb(0x14d));const _0x5df053=_0x334de0[_0x5a7beb(0x17b)][0x0];if(!_0x5df053)throw CliErrors[_0x5a7beb(0x170)]('Missing\x20app\x20name.','Usage:\x20'+CLI_BIN_NAME+_0x5a7beb(0x13e));const {buildConfigFromFlags:_0x58dc0e,resolveLocalAppAliasCode:_0x1e5a23}=await import(_0x5a7beb(0x13b)),{readCachedAppList:_0x3240cd}=await import(_0x5a7beb(0x144)),_0x1b79de=_0x334de0[_0x5a7beb(0x136)](_0x5a7beb(0x183)),_0x49745f=_0x58dc0e(_0x1b79de?{'env':_0x1b79de}:{}),_0x1dd9af=_0x3240cd(_0x49745f[_0x5a7beb(0x183)],_0x49745f[_0x5a7beb(0x16f)]),_0xc9fc04=_0x1dd9af?.[_0x5a7beb(0x17d)]['find'](_0x4d9b2f=>_0x4d9b2f[_0x5a7beb(0x151)]===_0x5df053),_0x134aa8=_0x1e5a23(_0x49745f[_0x5a7beb(0x14c)]??{},_0x5df053);if(_0xc9fc04&&!isRuntimeAccessibleApp(_0xc9fc04))throw runtimeInaccessibleAppError(_0xc9fc04,'\x22'+_0x5df053+'\x22');if(_0x134aa8){const _0x10cf4c=_0x1dd9af?.[_0x5a7beb(0x17d)][_0x5a7beb(0x141)](_0x51c299=>_0x51c299[_0x5a7beb(0x167)]?.[_0x5a7beb(0x148)]()===_0x134aa8);if(_0x10cf4c&&!isRuntimeAccessibleApp(_0x10cf4c))throw runtimeInaccessibleAppError(_0x10cf4c,'\x22'+_0x5df053+'\x22');}if(!_0xc9fc04&&!_0x134aa8&&_0x49745f[_0x5a7beb(0x143)]!==_0x5df053){const _0x4cb2b4=[..._0x1dd9af?.[_0x5a7beb(0x17d)]['map'](_0x43ecc4=>_0x43ecc4[_0x5a7beb(0x151)])??[]],_0x4c9321=_0x4cb2b4[_0x5a7beb(0x18b)]===0x0?_0x5a7beb(0x152)+CLI_BIN_NAME+_0x5a7beb(0x177)+_0x5df053+'.appcode\x20to\x20.lovrabet.json.':_0x5a7beb(0x15d)+Array[_0x5a7beb(0x171)](new Set(_0x4cb2b4))[_0x5a7beb(0x188)](',\x20')+_0x5a7beb(0x189);throw CliErrors[_0x5a7beb(0x170)](_0x5a7beb(0x161)+_0x5df053+'\x22\x20not\x20found.',_0x4c9321);}const _0x5d44f2=_0x334de0[_0x5a7beb(0x187)](_0x5a7beb(0x17a));let _0x424ec1;if(_0x5d44f2)_0x424ec1={'global':!![]};else{const {isInProject:_0x2d01d0}=await import(_0x5a7beb(0x13b)),_0x5a5223=_0x2d01d0();_0x424ec1=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x5a7beb(0x16c),'inProject':_0x5a5223}));}const _0x1f1a39=readConfig(_0x424ec1);return _0x1f1a39[_0x5a7beb(0x143)]=_0x5df053,writeConfig(_0x1f1a39,_0x424ec1),{'ok':!![],'message':'Default\x20app\x20candidate\x20set\x20to\x20\x22'+_0x5df053+'\x22'+scopeLabel(_0x424ec1)+'.'};}};function warnDeprecatedAppCommand(_0x319ec1,_0x339495){const _0x5183ed=a3_0x20ddd7;console[_0x5183ed(0x137)](CLI_BIN_NAME+_0x5183ed(0x17e)+_0x319ec1+'\x20is\x20deprecated.\x20Use\x20`'+_0x339495+'`\x20instead.');}const importDef={'service':a3_0x20ddd7(0x15a),'command':a3_0x20ddd7(0x16a),'description':a3_0x20ddd7(0x178),'risk':a3_0x20ddd7(0x165),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x33860a){return await runInitImport(collectFlags(_0x33860a,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a4_0x5ad7(){const _0x2b47c5=['314527PGmfoT','4176784NsMarC','65XjGMAk','string','Current\x20status:\x20','198160YQlxho','find','UNKNOWN','26954785mFkRZM','12DnYJvK','appPublishStatus','toUpperCase','346728CUCwcU','appCode','153tIiLbG','219928oKNJTG','App\x20','trim','23070Yqxcnq','357NUbhrA','filter','21KBickZ','validation','.\x20Publish\x20the\x20app\x20before\x20using\x20','\x20dataset/data/sql/bff\x20commands,\x20or\x20choose\x20a\x20published\x20app.'];a4_0x5ad7=function(){return _0x2b47c5;};return a4_0x5ad7();}(function(_0x388aac,_0x553f99){const _0x515759=a4_0x1062,_0x407dcb=_0x388aac();while(!![]){try{const _0x1bc25e=parseInt(_0x515759(0x15c))/0x1+parseInt(_0x515759(0x16e))/0x2*(-parseInt(_0x515759(0x16f))/0x3)+-parseInt(_0x515759(0x15d))/0x4+parseInt(_0x515759(0x15e))/0x5*(parseInt(_0x515759(0x168))/0x6)+parseInt(_0x515759(0x171))/0x7*(parseInt(_0x515759(0x16b))/0x8)+-parseInt(_0x515759(0x16a))/0x9*(parseInt(_0x515759(0x161))/0xa)+-parseInt(_0x515759(0x164))/0xb*(-parseInt(_0x515759(0x165))/0xc);if(_0x1bc25e===_0x553f99)break;else _0x407dcb['push'](_0x407dcb['shift']());}catch(_0x473157){_0x407dcb['push'](_0x407dcb['shift']());}}}(a4_0x5ad7,0xce492));import{CLI_BIN_NAME}from'../../constant/cli.js';import{RUNTIME_ACCESSIBLE_APP_STATUS}from'../../constant/app.js';import{CliErrors}from'../../errors.js';export function normalizeAppPublishStatus(_0x34f687){const _0x3e784e=a4_0x1062;if(typeof _0x34f687!==_0x3e784e(0x15f))return null;const _0x5f3034=_0x34f687[_0x3e784e(0x16d)]();return _0x5f3034?_0x5f3034[_0x3e784e(0x167)]():null;}function a4_0x1062(_0x38be46,_0x59db6a){_0x38be46=_0x38be46-0x159;const _0x5ad7e7=a4_0x5ad7();let _0x10624d=_0x5ad7e7[_0x38be46];return _0x10624d;}export function isRuntimeAccessibleApp(_0xed2542){const _0x5338a2=a4_0x1062;return normalizeAppPublishStatus(_0xed2542[_0x5338a2(0x166)])===RUNTIME_ACCESSIBLE_APP_STATUS;}export function filterRuntimeAccessibleApps(_0x4f3579){const _0x484a71=a4_0x1062;return _0x4f3579[_0x484a71(0x170)](isRuntimeAccessibleApp);}export function findAppByName(_0x37b0f2,_0x1a5990){const _0x3dfc87=a4_0x1062;return _0x37b0f2[_0x3dfc87(0x162)](_0x339629=>_0x339629['appName']===_0x1a5990);}export function findAppByCode(_0x26187c,_0x386812){const _0x34db64=a4_0x1062,_0x44ac58=_0x386812[_0x34db64(0x16d)]();if(!_0x44ac58)return undefined;return _0x26187c['find'](_0x1a8ed7=>_0x1a8ed7[_0x34db64(0x169)]?.['trim']()===_0x44ac58);}export function runtimeInaccessibleAppError(_0xb7f6c1,_0x4199f7){const _0x8f3ec=a4_0x1062,_0x2d301f=normalizeAppPublishStatus(_0xb7f6c1['appPublishStatus'])??_0x8f3ec(0x163);return CliErrors[_0x8f3ec(0x159)](_0x8f3ec(0x16c)+_0x4199f7+'\x20is\x20not\x20available\x20for\x20runtime\x20AI\x20access.',_0x8f3ec(0x160)+_0x2d301f+_0x8f3ec(0x15a)+CLI_BIN_NAME+_0x8f3ec(0x15b));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4d0a15,_0x106e2c){const _0x401a12=a5_0x5e85,_0x3ca13e=_0x4d0a15();while(!![]){try{const _0x551b40=-parseInt(_0x401a12(0xa8))/0x1+-parseInt(_0x401a12(0xb8))/0x2*(-parseInt(_0x401a12(0xa7))/0x3)+-parseInt(_0x401a12(0xb3))/0x4*(parseInt(_0x401a12(0xac))/0x5)+parseInt(_0x401a12(0xa5))/0x6*(-parseInt(_0x401a12(0xab))/0x7)+parseInt(_0x401a12(0xb6))/0x8*(parseInt(_0x401a12(0xb7))/0x9)+-parseInt(_0x401a12(0xad))/0xa+parseInt(_0x401a12(0xb9))/0xb*(parseInt(_0x401a12(0xaf))/0xc);if(_0x551b40===_0x106e2c)break;else _0x3ca13e['push'](_0x3ca13e['shift']());}catch(_0x5a06d0){_0x3ca13e['push'](_0x3ca13e['shift']());}}}(a5_0x814c,0x8a1a8));import{fileURLToPath}from'url';import{dirname,join}from'path';function a5_0x814c(){const _0xa2f7d2=['4022728IaCnhJ','tableData','parse','1896RXDktk','35325CkJMRo','2gqjgUh','12353sykZtu','6ngGkAH','data','280149Gfvdjf','87741HKZXKX','success','../../../mock/app-list.json','6074838zKmMrT','5BpfgpH','1733180jIcyZx','Mock\x20API\x20error:\x20','17916aKJjOh','errorCode','utf-8','errorMsg'];a5_0x814c=function(){return _0xa2f7d2;};return a5_0x814c();}import{readFileSync}from'fs';function a5_0x5e85(_0x299807,_0x4b6c09){_0x299807=_0x299807-0xa5;const _0x814cdc=a5_0x814c();let _0x5e8573=_0x814cdc[_0x299807];return _0x5e8573;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x1e7449=a5_0x5e85,_0x17303f=join(__dirname,_0x1e7449(0xaa)),_0x462ec0=readFileSync(_0x17303f,_0x1e7449(0xb1));return JSON[_0x1e7449(0xb5)](_0x462ec0);}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x40b365=a5_0x5e85,_0x3cad27=getMockAppList();if(!_0x3cad27[_0x40b365(0xa9)])throw new Error(_0x40b365(0xae)+_0x3cad27[_0x40b365(0xb2)]+'\x20('+_0x3cad27[_0x40b365(0xb0)]+')');return _0x3cad27[_0x40b365(0xa6)][_0x40b365(0xb4)];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a6_0x49cd(_0x49f237,_0x58d368){_0x49f237=_0x49f237-0xf9;const _0x5e2c97=a6_0x5e2c();let _0x49cd49=_0x5e2c97[_0x49f237];return _0x49cd49;}(function(_0x4a08bc,_0x59e051){const _0x129ea0=a6_0x49cd,_0x2d5f06=_0x4a08bc();while(!![]){try{const _0x5ba73f=-parseInt(_0x129ea0(0x106))/0x1*(parseInt(_0x129ea0(0x107))/0x2)+-parseInt(_0x129ea0(0xfd))/0x3+parseInt(_0x129ea0(0x102))/0x4*(parseInt(_0x129ea0(0xfc))/0x5)+parseInt(_0x129ea0(0xfe))/0x6*(-parseInt(_0x129ea0(0x109))/0x7)+parseInt(_0x129ea0(0x104))/0x8*(parseInt(_0x129ea0(0x100))/0x9)+-parseInt(_0x129ea0(0x103))/0xa+parseInt(_0x129ea0(0x10c))/0xb;if(_0x5ba73f===_0x59e051)break;else _0x2d5f06['push'](_0x2d5f06['shift']());}catch(_0x484444){_0x2d5f06['push'](_0x2d5f06['shift']());}}}(a6_0x5e2c,0x47f18));import{getMyApps}from'../../core/api-client.js';function a6_0x5e2c(){const _0x310e2b=['5WsGfMh','467019DNmXDe','36fvNJjr','items','2286VLKcte','APP_LIST_SOURCE','1067204fyIExg','2354900KkcyVT','6128YWFlHk','remote','5TINygW','151480BJVMfU','toISOString','56203zjAnYV','cache','fetchedAt','7164872Vujazo','trim','toLowerCase','mock'];a6_0x5e2c=function(){return _0x310e2b;};return a6_0x5e2c();}import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';import{productEnv}from'../../constant/product.js';export function shouldUseMockRemoteApps(){const _0x42da82=a6_0x49cd,_0x1330e1=(productEnv(_0x42da82(0x101))||'')['trim']()[_0x42da82(0xfa)]();return _0x1330e1===_0x42da82(0xfb);}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x3c2e67){const _0x19eca8=a6_0x49cd,{env:_0x2e3718,accessKey:_0x29b96e,localOnly:localOnly=![],noCache:noCache=![]}=_0x3c2e67,_0x3cb909=readCachedAppList(_0x2e3718,_0x29b96e),_0x1b1a16=_0x29b96e?.[_0x19eca8(0xf9)]()?getAppCacheFilePath(_0x2e3718,_0x29b96e):null;if(localOnly)return{'items':_0x3cb909?.[_0x19eca8(0xff)]??[],'source':'cache','fetchedAt':_0x3cb909?.[_0x19eca8(0x10b)]??null,'cachePath':_0x1b1a16};try{const _0x4979a7=await getRemoteAppItems(),_0x369a1e=shouldUseMockRemoteApps()?_0x19eca8(0xfb):_0x19eca8(0x105),_0x490134=new Date()[_0x19eca8(0x108)](),_0x2b5082=_0x29b96e?.[_0x19eca8(0xf9)]()?writeCachedAppList(_0x2e3718,_0x29b96e,{'env':_0x2e3718,'fetchedAt':_0x490134,'source':_0x369a1e,'items':_0x4979a7}):null;return{'items':_0x4979a7,'source':_0x369a1e,'fetchedAt':_0x490134,'cachePath':_0x2b5082};}catch(_0xe7775e){if(!noCache&&_0x3cb909)return{'items':_0x3cb909[_0x19eca8(0xff)],'source':_0x19eca8(0x10a),'fetchedAt':_0x3cb909[_0x19eca8(0x10b)],'cachePath':_0x1b1a16};throw _0xe7775e;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x26e49a,_0x342801){const _0x3e9676=a7_0x365f,_0x338a27=_0x26e49a();while(!![]){try{const _0xfd52dd=-parseInt(_0x3e9676(0x1f2))/0x1*(-parseInt(_0x3e9676(0x1fc))/0x2)+parseInt(_0x3e9676(0x1f4))/0x3+parseInt(_0x3e9676(0x1f0))/0x4+parseInt(_0x3e9676(0x1f5))/0x5+-parseInt(_0x3e9676(0x1fd))/0x6+-parseInt(_0x3e9676(0x1f3))/0x7*(-parseInt(_0x3e9676(0x202))/0x8)+-parseInt(_0x3e9676(0x1ff))/0x9;if(_0xfd52dd===_0x342801)break;else _0x338a27['push'](_0x338a27['shift']());}catch(_0x315ab8){_0x338a27['push'](_0x338a27['shift']());}}}(a7_0x2372,0x35b11));function a7_0x365f(_0x5c875d,_0x2fc8c7){_0x5c875d=_0x5c875d-0x1ee;const _0x23720c=a7_0x2372();let _0x365f3a=_0x23720c[_0x5c875d];return _0x365f3a;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x2bfcd5,_0x58ce2e){const _0x4be3b5=a7_0x365f;if(!_0x58ce2e)return;const _0x434466=!!(_0x58ce2e[_0x4be3b5(0x201)]??_0x58ce2e[_0x4be3b5(0x1ee)]);for(const _0x443dfc of _0x2bfcd5){_0x443dfc[_0x4be3b5(0x1fa)]=![];}const _0x1715eb=_0x58ce2e[_0x4be3b5(0x1f1)]!=null?String(_0x58ce2e['appCode'])[_0x4be3b5(0x1fb)]():'';if(_0x434466){const _0x53efea=_0x58ce2e['currentApp']??_0x58ce2e[_0x4be3b5(0x1ee)];if(_0x53efea){const _0x260c00=_0x2bfcd5[_0x4be3b5(0x1f8)](_0x56d7b8=>_0x56d7b8[_0x4be3b5(0x200)]===!![]&&_0x56d7b8[_0x4be3b5(0x1f9)]===_0x53efea&&_0x56d7b8[_0x4be3b5(0x1f7)]===_0x4be3b5(0x1f6)),_0x114a01=_0x260c00??_0x2bfcd5[_0x4be3b5(0x1f8)](_0x365495=>_0x365495['named']===!![]&&_0x365495[_0x4be3b5(0x1f9)]===_0x53efea);if(_0x114a01){const _0x20f000=String(_0x114a01[_0x4be3b5(0x1ef)]??'')['trim']();if(!_0x1715eb||_0x20f000===_0x1715eb){_0x114a01[_0x4be3b5(0x1fa)]=!![];return;}}}if(_0x1715eb){const _0x2af1de=_0x2bfcd5['find'](_0x317b2e=>String(_0x317b2e['appcode']??'')['trim']()===_0x1715eb);_0x2af1de&&(_0x2af1de['isCurrent']=!![]);}return;}if(!_0x1715eb)return;for(const _0x3d7297 of _0x2bfcd5){String(_0x3d7297[_0x4be3b5(0x1ef)]??'')[_0x4be3b5(0x1fb)]()===_0x1715eb&&(_0x3d7297[_0x4be3b5(0x1fa)]=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';function a7_0x2372(){const _0x30255=['named','currentApp','582800GULyAK','project','defaultApp','appcode','777932tVIBLS','appCode','31911BSrNHg','28Wxrqdy','1077690JCLTql','1504210FZZeKk','local','definedIn','find','name','isCurrent','trim','24aZGEXJ','1877082FkfGlu','global','8965071XshSBW'];a7_0x2372=function(){return _0x30255;};return a7_0x2372();}export function scopeLabel(_0x454054){const _0x234eba=a7_0x365f;return formatScopeLabel(_0x454054['global']?_0x234eba(0x1fe):_0x234eba(0x203));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a8_0xadb6(_0xcf662e,_0x29a4f1){_0xcf662e=_0xcf662e-0x98;const _0x2fb723=a8_0x2fb7();let _0xadb623=_0x2fb723[_0xcf662e];return _0xadb623;}const a8_0x51adee=a8_0xadb6;(function(_0x3f8ecf,_0x46b0ac){const _0x479d4d=a8_0xadb6,_0x5b1abc=_0x3f8ecf();while(!![]){try{const _0x1bc65e=-parseInt(_0x479d4d(0x98))/0x1*(-parseInt(_0x479d4d(0xa1))/0x2)+-parseInt(_0x479d4d(0xb1))/0x3*(-parseInt(_0x479d4d(0xa4))/0x4)+parseInt(_0x479d4d(0xa0))/0x5+-parseInt(_0x479d4d(0xa2))/0x6*(-parseInt(_0x479d4d(0xa7))/0x7)+-parseInt(_0x479d4d(0x99))/0x8*(-parseInt(_0x479d4d(0x9b))/0x9)+parseInt(_0x479d4d(0xa6))/0xa+-parseInt(_0x479d4d(0xa3))/0xb;if(_0x1bc65e===_0x46b0ac)break;else _0x5b1abc['push'](_0x5b1abc['shift']());}catch(_0x27b9f2){_0x5b1abc['push'](_0x5b1abc['shift']());}}}(a8_0x2fb7,0x39398));import{getRuntimeAppConfigByKey}from'../../core/api-client.js';function a8_0x2fb7(){const _0x5dba10=['8ZGGVtG','get','2513295foiROZ','App\x20config\x20key','Missing\x20app-config\x20key.','Check\x20that\x20the\x20key\x20exists,\x20the\x20current\x20AccessKey\x20has\x20permission,\x20and\x20the\x20runtime\x20read-only\x20app-config\x20endpoint\x20is\x20available.','args','2042290BkTVQZ','12qDFxYK','1114794NjXJpb','20656812htTOwV','1631512ilQiOs','appCode','3897110XlEIut','14kdzxCk','Unable\x20to\x20inspect\x20app-config\x20key\x20status:\x20key=','validation',',\x20appCode=','key','Check\x20whether\x20one\x20runtime\x20app-config\x20key\x20is\x20configured\x20without\x20printing\x20its\x20value','apiError','\x20app-config\x20get\x20<key>','read','Usage:\x20','3tUmwsf','trim','42564HduiyH'];a8_0x2fb7=function(){return _0x5dba10;};return a8_0x2fb7();}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{projectAppConfigVisibilityCheck}from'../../commands/app-config/shared.js';export const appConfigGet={'service':'app-config','command':a8_0x51adee(0x9a),'description':a8_0x51adee(0xac),'risk':a8_0x51adee(0xaf),'args':[{'name':a8_0x51adee(0xab),'description':a8_0x51adee(0x9c),'required':!![]}],'flags':[],async 'execute'(_0x4cab6d){const _0x565f2d=a8_0x51adee,_0x24e3ab=_0x4cab6d[_0x565f2d(0x9f)][0x0]?.[_0x565f2d(0xb2)]();if(!_0x24e3ab)throw CliErrors[_0x565f2d(0xa9)](_0x565f2d(0x9d),_0x565f2d(0xb0)+CLI_BIN_NAME+_0x565f2d(0xae));try{const _0x2f370d=await getRuntimeAppConfigByKey(_0x4cab6d[_0x565f2d(0xa5)],_0x24e3ab);return{'ok':!![],'data':projectAppConfigVisibilityCheck(_0x2f370d,{'appCode':_0x4cab6d[_0x565f2d(0xa5)],'key':_0x24e3ab})};}catch{throw CliErrors[_0x565f2d(0xad)](_0x565f2d(0xa8)+_0x24e3ab+_0x565f2d(0xaa)+_0x4cab6d[_0x565f2d(0xa5)],_0x565f2d(0x9e));}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a9_0xa2f0(){const _0x1a6d94=['793680NPQnEx','36mSoItf','16892XgnGio','117zUKPbg','20346QwQKVX','312516ghwEIP','2065ZmrrDq','10miMwLo','780RcQqEz','172004nUCEpi','6036459aAYtzS','23320BAlLUo','2vuspXk'];a9_0xa2f0=function(){return _0x1a6d94;};return a9_0xa2f0();}function a9_0x52e4(_0x1cac1c,_0x156eb4){_0x1cac1c=_0x1cac1c-0x116;const _0xa2f0e=a9_0xa2f0();let _0x52e494=_0xa2f0e[_0x1cac1c];return _0x52e494;}(function(_0x56eb12,_0x13dcaa){const _0x11542b=a9_0x52e4,_0x525fe7=_0x56eb12();while(!![]){try{const _0x32cacf=-parseInt(_0x11542b(0x119))/0x1*(-parseInt(_0x11542b(0x11c))/0x2)+parseInt(_0x11542b(0x120))/0x3*(parseInt(_0x11542b(0x11f))/0x4)+parseInt(_0x11542b(0x11d))/0x5+-parseInt(_0x11542b(0x121))/0x6*(parseInt(_0x11542b(0x116))/0x7)+parseInt(_0x11542b(0x11b))/0x8*(parseInt(_0x11542b(0x11e))/0x9)+parseInt(_0x11542b(0x117))/0xa*(-parseInt(_0x11542b(0x11a))/0xb)+parseInt(_0x11542b(0x122))/0xc*(parseInt(_0x11542b(0x118))/0xd);if(_0x32cacf===_0x13dcaa)break;else _0x525fe7['push'](_0x525fe7['shift']());}catch(_0x4b60cc){_0x525fe7['push'](_0x525fe7['shift']());}}}(a9_0xa2f0,0x7f173));import{appConfigGet}from'../../commands/app-config/get.js';export const appConfigDefinitions=[appConfigGet];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x439ff7,_0x29fa5a){const _0xfb5ff5=a10_0x5401,_0x4d8094=_0x439ff7();while(!![]){try{const _0x43c6bc=-parseInt(_0xfb5ff5(0x1b7))/0x1+parseInt(_0xfb5ff5(0x1b2))/0x2*(-parseInt(_0xfb5ff5(0x1b5))/0x3)+-parseInt(_0xfb5ff5(0x1a9))/0x4*(parseInt(_0xfb5ff5(0x1b6))/0x5)+-parseInt(_0xfb5ff5(0x1a8))/0x6+parseInt(_0xfb5ff5(0x1b0))/0x7*(parseInt(_0xfb5ff5(0x1c0))/0x8)+parseInt(_0xfb5ff5(0x1ac))/0x9+parseInt(_0xfb5ff5(0x1b8))/0xa;if(_0x43c6bc===_0x29fa5a)break;else _0x4d8094['push'](_0x4d8094['shift']());}catch(_0x2fecb2){_0x4d8094['push'](_0x4d8094['shift']());}}}(a10_0x109d,0x6664d));function normalizeTags(_0x2467df){const _0x171789=a10_0x5401;if(Array[_0x171789(0x1bb)](_0x2467df))return _0x2467df['map'](_0x86b10c=>String(_0x86b10c))['filter'](Boolean);if(typeof _0x2467df!==_0x171789(0x1bc))return[];const _0x47ca0c=_0x2467df[_0x171789(0x1ad)]();if(!_0x47ca0c)return[];try{const _0x2c44b8=JSON[_0x171789(0x1aa)](_0x47ca0c);if(Array[_0x171789(0x1bb)](_0x2c44b8))return _0x2c44b8[_0x171789(0x1bd)](_0x4a20c2=>String(_0x4a20c2))['filter'](Boolean);}catch{}return _0x47ca0c['split'](',')['map'](_0xad32cf=>_0xad32cf[_0x171789(0x1ad)]())[_0x171789(0x1ae)](Boolean);}function a10_0x109d(){const _0x172f57=['isArray','string','map','createTime','appCode','8aEvruE','44844ZGDTVM','33504uhrlEi','parse','gmtCreate','1931256qMbafM','trim','filter','tags','3171049XwWybj','value','2swnPii','length','key','1987905GHYEtz','25JTRhYq','386598AMKNNi','8504010GBlyYA','gmtModified','traceId'];a10_0x109d=function(){return _0x172f57;};return a10_0x109d();}function a10_0x5401(_0x167ed7,_0x241944){_0x167ed7=_0x167ed7-0x1a8;const _0x109d71=a10_0x109d();let _0x5401e8=_0x109d71[_0x167ed7];return _0x5401e8;}export function projectAppConfigVisibilityCheck(_0x1938de,_0x3f8292){const _0x1c6efd=a10_0x5401,_0x1ba392=_0x1938de[_0x1c6efd(0x1b1)],_0x16f975={'appCode':typeof _0x1938de[_0x1c6efd(0x1bf)]===_0x1c6efd(0x1bc)&&_0x1938de[_0x1c6efd(0x1bf)][_0x1c6efd(0x1ad)]()?_0x1938de[_0x1c6efd(0x1bf)]:_0x3f8292[_0x1c6efd(0x1bf)],'key':typeof _0x1938de[_0x1c6efd(0x1b4)]==='string'&&_0x1938de[_0x1c6efd(0x1b4)][_0x1c6efd(0x1ad)]()?_0x1938de['key']:_0x3f8292[_0x1c6efd(0x1b4)],'tags':normalizeTags(_0x1938de[_0x1c6efd(0x1af)]),'hasValue':typeof _0x1ba392===_0x1c6efd(0x1bc)?_0x1ba392[_0x1c6efd(0x1b3)]>0x0:_0x1ba392!=null,'valueRedacted':!![],'gmtModified':_0x1938de[_0x1c6efd(0x1b9)]??_0x1938de['updateTime']??'','gmtCreate':_0x1938de[_0x1c6efd(0x1ab)]??_0x1938de[_0x1c6efd(0x1be)]??''};return typeof _0x1938de[_0x1c6efd(0x1ba)]===_0x1c6efd(0x1bc)&&_0x1938de[_0x1c6efd(0x1ba)][_0x1c6efd(0x1ad)]()&&(_0x16f975[_0x1c6efd(0x1ba)]=_0x1938de['traceId']),_0x16f975;}
|