@lovrabet/lovrabet-cli 2.1.17 → 2.1.18-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.d.ts +21 -0
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.d.ts +38 -0
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.d.ts +61 -0
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.d.ts +26 -0
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.d.ts +16 -0
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.d.ts +41 -0
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.d.ts +66 -0
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.d.ts +38 -0
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.d.ts +2 -0
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.d.ts +2 -0
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/artifact/index.d.ts +9 -0
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.d.ts +31 -0
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.d.ts +23 -0
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.d.ts +33 -0
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.d.ts +8 -0
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.d.ts +19 -0
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.d.ts +15 -0
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.d.ts +9 -0
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.d.ts +80 -0
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.d.ts +67 -0
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.d.ts +41 -0
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.d.ts +6 -0
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.d.ts +21 -0
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/shared.d.ts +17 -0
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.d.ts +27 -0
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.d.ts +26 -0
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.d.ts +10 -0
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.d.ts +18 -0
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.d.ts +6 -0
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.d.ts +23 -0
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.d.ts +2 -0
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.d.ts +32 -0
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.d.ts +8 -0
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.d.ts +20 -0
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/ocr/index.d.ts +2 -0
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/personal-bff/index.d.ts +5 -0
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.d.ts +56 -0
- package/lib/commands/registry.js +1 -1
- package/lib/commands/schedule/index.d.ts +2 -0
- package/lib/commands/schedule/index.js +1 -0
- package/lib/commands/schema.d.ts +18 -0
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.d.ts +18 -0
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.d.ts +13 -0
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.d.ts +2 -0
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.d.ts +102 -0
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.d.ts +2 -0
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/install.d.ts +2 -0
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.d.ts +2 -0
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.d.ts +2 -0
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.d.ts +2 -0
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/flags.d.ts +13 -0
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.d.ts +9 -0
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.d.ts +5 -0
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.d.ts +49 -0
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.d.ts +80 -0
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.d.ts +9 -0
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.d.ts +13 -0
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.d.ts +6 -0
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.d.ts +23 -0
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.d.ts +20 -0
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.d.ts +13 -0
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.d.ts +21 -0
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.d.ts +9 -0
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.d.ts +10 -0
- package/lib/commands/update.js +1 -1
- package/lib/commands/workspace/index.d.ts +10 -0
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/schema.d.ts +108 -0
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.d.ts +13 -0
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.d.ts +28 -0
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.d.ts +86 -0
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.d.ts +45 -0
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.d.ts +12 -0
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.d.ts +57 -0
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.d.ts +56 -0
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.d.ts +13 -0
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.d.ts +79 -0
- package/lib/constant/product.js +1 -1
- package/lib/constant/risk.d.ts +14 -0
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.d.ts +14 -0
- package/lib/constant/url.js +1 -1
- package/lib/context.d.ts +287 -0
- package/lib/context.js +1 -1
- package/lib/core/api-client.d.ts +451 -0
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.d.ts +39 -0
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.d.ts +62 -0
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.d.ts +25 -0
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.d.ts +24 -0
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.d.ts +64 -0
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.d.ts +19 -0
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.d.ts +21 -0
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.d.ts +10 -0
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.d.ts +10 -0
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.d.ts +64 -0
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.d.ts +10 -0
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/response.d.ts +10 -0
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.d.ts +46 -0
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.d.ts +28 -0
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.d.ts +102 -0
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.d.ts +29 -0
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.d.ts +4 -0
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.d.ts +108 -0
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -0
- package/lib/generated/build-info.js +1 -1
- package/lib/help.d.ts +25 -0
- package/lib/help.js +1 -1
- package/lib/runtime/event.d.ts +16 -0
- package/lib/runtime/event.js +1 -0
- package/lib/runtime/index.d.ts +13 -0
- package/lib/runtime/index.js +1 -0
- package/lib/runtime/queue.d.ts +6 -0
- package/lib/runtime/queue.js +1 -0
- package/lib/runtime/resolve.d.ts +14 -0
- package/lib/runtime/resolve.js +1 -0
- package/lib/runtime/types.d.ts +59 -0
- package/lib/runtime/types.js +1 -0
- package/lib/skills/npx-skills-add.d.ts +42 -0
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.d.ts +4 -0
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.d.ts +21 -0
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.d.ts +9 -0
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/links.d.ts +18 -0
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.d.ts +3 -0
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.d.ts +25 -0
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.d.ts +11 -0
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.d.ts +7 -0
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.d.ts +11 -0
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.d.ts +33 -0
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.d.ts +5 -0
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/types.d.ts +105 -0
- package/lib/skills/runtime-skill-sync/zip-codec.d.ts +9 -0
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.d.ts +15 -0
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.d.ts +15 -0
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/utils/apply-jq-filter.d.ts +25 -0
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.d.ts +73 -0
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.d.ts +21 -0
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.d.ts +65 -0
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.d.ts +17 -0
- package/lib/utils/platform.js +1 -1
- package/lib/utils/update-notice.d.ts +10 -0
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.d.ts +18 -0
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.d.ts +6 -0
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +9 -1
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { type NormalizedServiceTree, type ServiceTreeManifest, type ServiceTreeValidationReport } from "@lovrabet/cli-framework";
|
|
2
|
+
export declare const SERVICE_REGISTRY_SCHEMA_VERSION = 1;
|
|
3
|
+
export declare const SERVICE_REGISTRY_FILE_NAME = "service.json";
|
|
4
|
+
export interface ServiceSourceInfo {
|
|
5
|
+
type: "file";
|
|
6
|
+
path: string;
|
|
7
|
+
hash: string;
|
|
8
|
+
}
|
|
9
|
+
export interface LocalServiceEntry {
|
|
10
|
+
serviceCode: string;
|
|
11
|
+
version: string;
|
|
12
|
+
importedAt: string;
|
|
13
|
+
source: ServiceSourceInfo;
|
|
14
|
+
manifest: ServiceTreeManifest;
|
|
15
|
+
normalizedManifest: NormalizedServiceTree;
|
|
16
|
+
}
|
|
17
|
+
export interface LocalServiceRegistry {
|
|
18
|
+
schemaVersion: 1;
|
|
19
|
+
updatedAt?: string;
|
|
20
|
+
services: LocalServiceEntry[];
|
|
21
|
+
}
|
|
22
|
+
export interface ServiceRegistryOptions {
|
|
23
|
+
homeDir?: string;
|
|
24
|
+
now?: () => Date;
|
|
25
|
+
}
|
|
26
|
+
export interface LoadServiceManifestResult {
|
|
27
|
+
filePath: string;
|
|
28
|
+
hash: string;
|
|
29
|
+
kind: "manifest" | "registry";
|
|
30
|
+
manifest: ServiceTreeManifest;
|
|
31
|
+
report: ServiceTreeValidationReport;
|
|
32
|
+
normalizedManifest?: NormalizedServiceTree;
|
|
33
|
+
manifests: LoadedServiceManifest[];
|
|
34
|
+
}
|
|
35
|
+
export interface LoadedServiceManifest {
|
|
36
|
+
manifest: ServiceTreeManifest;
|
|
37
|
+
report: ServiceTreeValidationReport;
|
|
38
|
+
normalizedManifest?: NormalizedServiceTree;
|
|
39
|
+
sourceHash: string;
|
|
40
|
+
registryIndex?: number;
|
|
41
|
+
registryServiceCode?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface ImportServiceResult {
|
|
44
|
+
registryPath: string;
|
|
45
|
+
entry: LocalServiceEntry;
|
|
46
|
+
replaced: boolean;
|
|
47
|
+
entries: LocalServiceEntry[];
|
|
48
|
+
imported: number;
|
|
49
|
+
updated: number;
|
|
50
|
+
serviceCount: number;
|
|
51
|
+
}
|
|
52
|
+
export interface ExportServiceResult {
|
|
53
|
+
registryPath: string;
|
|
54
|
+
filePath: string;
|
|
55
|
+
entry: LocalServiceEntry;
|
|
56
|
+
}
|
|
57
|
+
export interface RemoveServiceResult {
|
|
58
|
+
registryPath: string;
|
|
59
|
+
entry: LocalServiceEntry;
|
|
60
|
+
serviceCount: number;
|
|
61
|
+
}
|
|
62
|
+
export interface ServiceRegistrySummaryCommand {
|
|
63
|
+
path: string;
|
|
64
|
+
description?: string;
|
|
65
|
+
risk: string;
|
|
66
|
+
targetKind?: string;
|
|
67
|
+
targetCommand?: string;
|
|
68
|
+
}
|
|
69
|
+
export interface ServiceRegistrySummaryService {
|
|
70
|
+
serviceCode: string;
|
|
71
|
+
name?: string;
|
|
72
|
+
description?: string;
|
|
73
|
+
version: string;
|
|
74
|
+
importedAt: string;
|
|
75
|
+
source: ServiceSourceInfo;
|
|
76
|
+
commandCount: number;
|
|
77
|
+
commands: ServiceRegistrySummaryCommand[];
|
|
78
|
+
}
|
|
79
|
+
export interface ServiceRegistryInspection {
|
|
80
|
+
registryPath: string;
|
|
81
|
+
exists: boolean;
|
|
82
|
+
status: "missing" | "empty" | "ok" | "invalid";
|
|
83
|
+
schemaVersion?: number;
|
|
84
|
+
updatedAt?: string;
|
|
85
|
+
serviceCount: number;
|
|
86
|
+
commandCount: number;
|
|
87
|
+
services: ServiceRegistrySummaryService[];
|
|
88
|
+
message?: string;
|
|
89
|
+
}
|
|
90
|
+
export declare function getServiceRegistryPath(options?: ServiceRegistryOptions): string;
|
|
91
|
+
export declare function emptyServiceRegistry(): LocalServiceRegistry;
|
|
92
|
+
export declare function readServiceRegistry(options?: ServiceRegistryOptions): LocalServiceRegistry;
|
|
93
|
+
export declare function writeServiceRegistry(registry: LocalServiceRegistry, options?: ServiceRegistryOptions): string;
|
|
94
|
+
export declare function loadServiceManifestFromFile(filePath: string): LoadServiceManifestResult;
|
|
95
|
+
export declare function importServiceManifest(filePath: string, options?: ServiceRegistryOptions): ImportServiceResult;
|
|
96
|
+
export declare function exportServiceManifest(serviceCode: string, filePath: string, options?: ServiceRegistryOptions): ExportServiceResult;
|
|
97
|
+
export declare function removeServiceManifest(serviceCode: string, options?: ServiceRegistryOptions): RemoveServiceResult;
|
|
98
|
+
export declare function listLocalServices(options?: ServiceRegistryOptions): LocalServiceEntry[];
|
|
99
|
+
export declare function getLocalServiceEntry(serviceCode: string, options?: ServiceRegistryOptions): LocalServiceEntry | undefined;
|
|
100
|
+
export declare function listLocalServiceTrees(options?: ServiceRegistryOptions): NormalizedServiceTree[];
|
|
101
|
+
export declare function inspectServiceRegistry(options?: ServiceRegistryOptions): ServiceRegistryInspection;
|
|
102
|
+
export declare function formatValidationFailure(report: ServiceTreeValidationReport): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x2f6a97,_0x2f0396){const _0x2a591c=a41_0x3f56,_0x713f83=_0x2f6a97();while(!![]){try{const _0x55d9e7=parseInt(_0x2a591c(0xf3))/0x1*(parseInt(_0x2a591c(0x127))/0x2)+-parseInt(_0x2a591c(0x135))/0x3+-parseInt(_0x2a591c(0x131))/0x4*(-parseInt(_0x2a591c(0x138))/0x5)+-parseInt(_0x2a591c(0x12b))/0x6+-parseInt(_0x2a591c(0x10a))/0x7*(parseInt(_0x2a591c(0x11d))/0x8)+-parseInt(_0x2a591c(0xf5))/0x9+-parseInt(_0x2a591c(0xfc))/0xa*(-parseInt(_0x2a591c(0x119))/0xb);if(_0x55d9e7===_0x2f0396)break;else _0x713f83['push'](_0x713f83['shift']());}catch(_0x1e88cc){_0x713f83['push'](_0x713f83['shift']());}}}(a41_0x17f8,0x9c0d7));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{normalizeServiceTreeManifest,validateServiceTreeManifest}from'@lovrabet/cli-framework';import{PRODUCT_CONFIG}from'../../constant/product.js';import{CliErrors}from'../../errors.js';import{adaptServiceTreeManifestForLegacyFramework}from'../../commands/service/function-name-adapter.js';export const SERVICE_REGISTRY_SCHEMA_VERSION=0x1;export const SERVICE_REGISTRY_FILE_NAME='service.json';export function getServiceRegistryPath(_0x39092c={}){const _0x259484=a41_0x3f56;return resolve(_0x39092c[_0x259484(0xfe)]??homedir(),PRODUCT_CONFIG[_0x259484(0x11e)],SERVICE_REGISTRY_FILE_NAME);}export function emptyServiceRegistry(){return{'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'services':[]};}export function readServiceRegistry(_0x3af88d={}){const _0x222656=a41_0x3f56,_0x274ebe=getServiceRegistryPath(_0x3af88d);if(!existsSync(_0x274ebe))return emptyServiceRegistry();try{const _0x1ef9da=readFileSync(_0x274ebe,_0x222656(0x10c));if(!_0x1ef9da[_0x222656(0xfd)]())return emptyServiceRegistry();const _0xa4a612=JSON[_0x222656(0x104)](_0x1ef9da);if(_0xa4a612[_0x222656(0x11a)]!==SERVICE_REGISTRY_SCHEMA_VERSION)throw CliErrors[_0x222656(0x112)]('Unsupported\x20service\x20registry\x20schemaVersion:\x20'+String(_0xa4a612[_0x222656(0x11a)]),_0x222656(0x144)+_0x274ebe+'.');if(!Array[_0x222656(0x128)](_0xa4a612[_0x222656(0x13d)]))return emptyServiceRegistry();return{'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0xa4a612[_0x222656(0x113)],'services':_0xa4a612[_0x222656(0x13d)]};}catch(_0x2a00b1){if(_0x2a00b1 instanceof Error&&_0x2a00b1[_0x222656(0x134)]===_0x222656(0x132))throw _0x2a00b1;throw CliErrors['validation'](_0x222656(0x100)+_0x274ebe,_0x222656(0x10f));}}export function writeServiceRegistry(_0x43a10b,_0x222812={}){const _0x5bbd25=a41_0x3f56,_0x5a7423=getServiceRegistryPath(_0x222812),_0x57fdaa=dirname(_0x5a7423);!existsSync(_0x57fdaa)&&mkdirSync(_0x57fdaa,{'recursive':!![]});const _0x5c799d=_0x5a7423+'.tmp';try{writeFileSync(_0x5c799d,JSON[_0x5bbd25(0x109)](_0x43a10b,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180}),renameSync(_0x5c799d,_0x5a7423);}catch(_0x15a5d5){try{unlinkSync(_0x5c799d);}catch{}if(_0x15a5d5?.[_0x5bbd25(0x125)]===_0x5bbd25(0x10b))throw CliErrors[_0x5bbd25(0x112)](_0x5bbd25(0x130)+_0x5a7423);throw _0x15a5d5;}return _0x5a7423;}export function loadServiceManifestFromFile(_0x2be9dc){const _0x3aa0a8=a41_0x3f56,_0x41646d=resolve(_0x2be9dc);if(!existsSync(_0x41646d))throw CliErrors['validation']('Service\x20manifest\x20file\x20not\x20found:\x20'+_0x2be9dc);let _0x5051e1;const _0x575b3d=readFileSync(_0x41646d,_0x3aa0a8(0x10c));try{_0x5051e1=JSON['parse'](_0x575b3d);}catch{throw CliErrors[_0x3aa0a8(0x112)](_0x3aa0a8(0x13e)+_0x2be9dc,_0x3aa0a8(0xf0));}const _0xe1b3e0=sha256(_0x575b3d),_0x42b33c=extractLoadedServiceManifests(_0x5051e1,_0xe1b3e0),_0x2fd8c2=aggregateValidationReports(_0x42b33c),_0x7c2853=_0x42b33c[0x0];return{'filePath':_0x41646d,'hash':_0xe1b3e0,'kind':isServiceRegistryLike(_0x5051e1)?_0x3aa0a8(0x116):'manifest','manifest':_0x7c2853?.['manifest']??_0x5051e1,'report':_0x2fd8c2,'normalizedManifest':_0x42b33c[_0x3aa0a8(0x118)]===0x1?_0x7c2853?.[_0x3aa0a8(0xf4)]:undefined,'manifests':_0x42b33c};}export function importServiceManifest(_0x32e479,_0x53a9f6={}){const _0x281e44=a41_0x3f56,_0xc9bab5=loadServiceManifestFromFile(_0x32e479);if(!_0xc9bab5[_0x281e44(0x137)]['ok'])throw CliErrors[_0x281e44(0x112)](formatValidationFailure(_0xc9bab5[_0x281e44(0x137)]),_0x281e44(0x121));if(_0xc9bab5[_0x281e44(0xee)][_0x281e44(0x118)]===0x0)throw CliErrors['validation'](_0x281e44(0x103),_0x281e44(0xf9));const _0x2bc6e2=readServiceRegistry(_0x53a9f6),_0x54a92d=(_0x53a9f6['now']??(()=>new Date()))()[_0x281e44(0xef)](),_0x4874af=[];let _0x527602=0x0,_0x4eefc2=0x0;for(const _0x3c9b1a of _0xc9bab5[_0x281e44(0xee)]){if(!_0x3c9b1a[_0x281e44(0xf4)])continue;const _0x3832f4=_0x3c9b1a[_0x281e44(0xf4)][_0x281e44(0xff)][_0x281e44(0x125)],_0x36c91d={'serviceCode':_0x3832f4,'version':_0x3c9b1a['normalizedManifest']['version'],'importedAt':_0x54a92d,'source':{'type':_0x281e44(0x13a),'path':_0xc9bab5[_0x281e44(0xfb)],'hash':_0x3c9b1a[_0x281e44(0x143)]},'manifest':_0x3c9b1a[_0x281e44(0x120)],'normalizedManifest':_0x3c9b1a[_0x281e44(0xf4)]},_0x34ccae=_0x2bc6e2['services'][_0x281e44(0x13b)](_0x22c419=>_0x22c419['serviceCode']===_0x3832f4);_0x34ccae>=0x0?(_0x2bc6e2[_0x281e44(0x13d)][_0x34ccae]=_0x36c91d,_0x4eefc2++):(_0x2bc6e2[_0x281e44(0x13d)]['push'](_0x36c91d),_0x527602++),_0x4874af[_0x281e44(0x11b)](_0x36c91d);}_0x2bc6e2[_0x281e44(0x13d)][_0x281e44(0x139)]((_0x2f94ab,_0xc8ea67)=>_0x2f94ab['serviceCode'][_0x281e44(0x110)](_0xc8ea67[_0x281e44(0x122)])),_0x2bc6e2[_0x281e44(0x113)]=_0x54a92d;const _0x543ae5=writeServiceRegistry(_0x2bc6e2,_0x53a9f6);return{'registryPath':_0x543ae5,'entry':_0x4874af[0x0],'replaced':_0x4874af[_0x281e44(0x118)]===0x1?_0x4eefc2===0x1:_0x4eefc2>0x0,'entries':_0x4874af,'imported':_0x527602,'updated':_0x4eefc2,'serviceCount':_0x2bc6e2[_0x281e44(0x13d)][_0x281e44(0x118)]};}export function exportServiceManifest(_0x2afc5b,_0x177349,_0x5eb2e3={}){const _0x53a700=a41_0x3f56,_0x49c273=getServiceRegistryPath(_0x5eb2e3),_0x33732d=getLocalServiceEntry(_0x2afc5b,_0x5eb2e3);if(!_0x33732d)throw CliErrors[_0x53a700(0x112)]('Local\x20service\x20not\x20found:\x20'+_0x2afc5b,_0x53a700(0x136));const _0x3508af=resolve(_0x177349),_0x453adc=dirname(_0x3508af);return!existsSync(_0x453adc)&&mkdirSync(_0x453adc,{'recursive':!![]}),writeFileSync(_0x3508af,JSON['stringify'](_0x33732d[_0x53a700(0x120)],null,0x2)+'\x0a',{'encoding':_0x53a700(0x10c),'mode':0x180}),{'registryPath':_0x49c273,'filePath':_0x3508af,'entry':_0x33732d};}export function removeServiceManifest(_0x577176,_0x18c50a={}){const _0x2a5540=a41_0x3f56,_0x35de59=readServiceRegistry(_0x18c50a),_0x3853c4=_0x577176[_0x2a5540(0xfd)](),_0x3d270a=_0x35de59['services'][_0x2a5540(0x13b)](_0x5907b7=>_0x5907b7[_0x2a5540(0x122)]===_0x3853c4);if(_0x3d270a<0x0)throw CliErrors[_0x2a5540(0x112)]('Local\x20service\x20not\x20found:\x20'+_0x3853c4,_0x2a5540(0x136));const [_0xec3968]=_0x35de59[_0x2a5540(0x13d)][_0x2a5540(0x11c)](_0x3d270a,0x1),_0x5d5b40=(_0x18c50a[_0x2a5540(0x12d)]??(()=>new Date()))()[_0x2a5540(0xef)]();_0x35de59[_0x2a5540(0x113)]=_0x5d5b40;const _0x1bb00f=writeServiceRegistry(_0x35de59,_0x18c50a);return{'registryPath':_0x1bb00f,'entry':_0xec3968,'serviceCount':_0x35de59['services'][_0x2a5540(0x118)]};}export function listLocalServices(_0x11a918={}){return readServiceRegistry(_0x11a918)['services'];}export function getLocalServiceEntry(_0x277958,_0x57f33f={}){const _0xef0f16=a41_0x3f56;return readServiceRegistry(_0x57f33f)[_0xef0f16(0x13d)][_0xef0f16(0x102)](_0x1ad526=>_0x1ad526['serviceCode']===_0x277958[_0xef0f16(0xfd)]());}export function listLocalServiceTrees(_0x153e2c={}){const _0x54c9ed=a41_0x3f56;return readServiceRegistry(_0x153e2c)['services'][_0x54c9ed(0xf1)](_0x33ec14=>_0x33ec14['normalizedManifest']);}function a41_0x3f56(_0x10cbc5,_0x5a83d6){_0x10cbc5=_0x10cbc5-0xee;const _0x17f891=a41_0x17f8();let _0x3f5675=_0x17f891[_0x10cbc5];return _0x3f5675;}function a41_0x17f8(){const _0x63309b=['].manifest','reduce','Cannot\x20write\x20service\x20registry:\x20','148aSEhKv','CliError','message','name','3082230duHvKl','Run\x20lovrabet\x20service\x20list\x20to\x20see\x20imported\x20services.','report','73265GxmVue','sort','file','findIndex','$.services[','services','Invalid\x20service\x20manifest\x20JSON:\x20','importedAt','string','path','bff\x20target\x20requires\x20functionName.','sourceHash','Remove\x20or\x20migrate\x20','manifests','toISOString','Fix\x20the\x20JSON\x20syntax\x20and\x20run\x20service\x20validate\x20again.','map','missing','64496PSUEKL','normalizedManifest','8777862WACfKn','sha256','warnings','source','Add\x20at\x20least\x20one\x20service\x20manifest,\x20then\x20run\x20service\x20import\x20again.','services\x20must\x20be\x20an\x20array','filePath','110010xxgBLG','trim','homeDir','service','Invalid\x20service\x20registry\x20JSON:\x20','kind','find','Service\x20registry\x20has\x20no\x20services\x20to\x20import.','parse','commands','startsWith','command','digest','stringify','10213gBkPhs','ENOENT','utf8','registryIndex','Unsupported\x20schemaVersion:\x20','Fix\x20the\x20JSON\x20file\x20or\x20move\x20it\x20aside\x20and\x20import\x20services\x20again.','localeCompare','risk','validation','updatedAt','Service\x20manifest\x20validation\x20failed:\x0a','target','registry','errors','length','2519URythq','schemaVersion','push','splice','5232SbvSAT','homeDirName','join','manifest','Fix\x20the\x20service\x20manifest\x20and\x20run\x20service\x20validate\x20again.','serviceCode','bff\x20target\x20requires\x20bffCode,\x20bffId,\x20or\x20scriptName.','].manifest.','code','description','28pdMtLH','isArray','invalid','hex','2209374poIGzl','slice','now'];a41_0x17f8=function(){return _0x63309b;};return a41_0x17f8();}export function inspectServiceRegistry(_0x1bab46={}){const _0x4a2152=a41_0x3f56,_0x44e817=getServiceRegistryPath(_0x1bab46);if(!existsSync(_0x44e817))return emptyServiceRegistryInspection(_0x44e817,_0x4a2152(0xf2),![]);try{const _0x161261=readFileSync(_0x44e817,_0x4a2152(0x10c));if(!_0x161261[_0x4a2152(0xfd)]())return emptyServiceRegistryInspection(_0x44e817,'empty',!![]);const _0x5e5fe9=JSON[_0x4a2152(0x104)](_0x161261);if(_0x5e5fe9[_0x4a2152(0x11a)]!==SERVICE_REGISTRY_SCHEMA_VERSION)return{...emptyServiceRegistryInspection(_0x44e817,'invalid',!![]),'schemaVersion':_0x5e5fe9[_0x4a2152(0x11a)],'message':_0x4a2152(0x10e)+String(_0x5e5fe9[_0x4a2152(0x11a)])};if(!Array[_0x4a2152(0x128)](_0x5e5fe9[_0x4a2152(0x13d)]))return{...emptyServiceRegistryInspection(_0x44e817,_0x4a2152(0x129),!![]),'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x5e5fe9[_0x4a2152(0x113)],'message':_0x4a2152(0xfa)};const _0x50df05=_0x5e5fe9[_0x4a2152(0x13d)]['map'](summarizeLocalServiceEntry);return{'registryPath':_0x44e817,'exists':!![],'status':'ok','schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x5e5fe9[_0x4a2152(0x113)],'serviceCount':_0x50df05[_0x4a2152(0x118)],'commandCount':_0x50df05[_0x4a2152(0x12f)]((_0x20e052,_0xbb2a8f)=>_0x20e052+_0xbb2a8f['commandCount'],0x0),'services':_0x50df05};}catch(_0xf8ac00){return{...emptyServiceRegistryInspection(_0x44e817,'invalid',!![]),'message':_0xf8ac00 instanceof Error?_0xf8ac00[_0x4a2152(0x133)]:String(_0xf8ac00)};}}export function formatValidationFailure(_0x471b5e){const _0x2921f3=a41_0x3f56,_0x3cde15=_0x471b5e[_0x2921f3(0x117)][_0x2921f3(0xf1)](_0x4802a3=>_0x4802a3[_0x2921f3(0x141)]+':\x20'+_0x4802a3[_0x2921f3(0x133)]);return _0x2921f3(0x114)+_0x3cde15[_0x2921f3(0x11f)]('\x0a');}function extractLoadedServiceManifests(_0x35a91f,_0x5582e1){const _0x41cf62=a41_0x3f56;if(!isServiceRegistryLike(_0x35a91f)){const _0x5165e8=_0x35a91f,{manifest:_0x2f114b,errors:_0x5a9127}=adaptServiceTreeManifestForLegacyFramework(_0x5165e8),_0x94ed0c=validateServiceTreeManifest(_0x2f114b),_0x403e1f=mergeValidationErrors(_0x94ed0c,_0x5a9127);return[{'manifest':_0x5165e8,'report':_0x403e1f,'normalizedManifest':_0x403e1f['ok']?normalizeServiceTreeManifest(_0x2f114b):undefined,'sourceHash':_0x5582e1}];}return _0x35a91f[_0x41cf62(0x13d)][_0x41cf62(0xf1)]((_0x1bf835,_0x4d2d82)=>{const _0x481d5c=_0x41cf62,_0x8e2a8=isObjectRecord(_0x1bf835)?_0x1bf835[_0x481d5c(0x120)]:undefined,{manifest:_0x151012,errors:_0xd1a1d0}=adaptServiceTreeManifestForLegacyFramework(_0x8e2a8),_0x3dc192=validateServiceTreeManifest(_0x151012),_0x538d52=mergeValidationErrors(_0x3dc192,_0xd1a1d0),_0xba6bc3=isObjectRecord(_0x1bf835)&&typeof _0x1bf835[_0x481d5c(0x122)]===_0x481d5c(0x140)?_0x1bf835['serviceCode']:undefined;return{'manifest':_0x8e2a8,'report':_0x538d52,'normalizedManifest':_0x538d52['ok']?normalizeServiceTreeManifest(_0x151012):undefined,'sourceHash':sha256(JSON[_0x481d5c(0x109)](_0x8e2a8,null,0x2)+'\x0a'),'registryIndex':_0x4d2d82,'registryServiceCode':_0xba6bc3};});}function mergeValidationErrors(_0x3661c4,_0x2ff411){const _0x537089=a41_0x3f56,_0x4dd0d5=_0x3661c4[_0x537089(0x117)][_0x537089(0xf1)](_0x4a49f4=>_0x4a49f4['message']===_0x537089(0x123)?{..._0x4a49f4,'message':_0x537089(0x142)}:_0x4a49f4),_0x1e46e3=[..._0x2ff411,..._0x4dd0d5];return{'ok':_0x1e46e3[_0x537089(0x118)]===0x0,'errors':_0x1e46e3,'warnings':_0x3661c4[_0x537089(0xf7)]};}function aggregateValidationReports(_0x169def){const _0x1ab082=a41_0x3f56,_0x5afa23=_0x169def['flatMap'](_0x556214=>_0x556214[_0x1ab082(0x10d)]===undefined?_0x556214[_0x1ab082(0x137)]['errors']:_0x556214[_0x1ab082(0x137)][_0x1ab082(0x117)]['map'](_0x1e4d14=>({..._0x1e4d14,'path':prefixRegistryIssuePath(_0x556214[_0x1ab082(0x10d)],_0x1e4d14[_0x1ab082(0x141)])}))),_0xeaa2e2=_0x169def['flatMap'](_0x5084b3=>_0x5084b3['registryIndex']===undefined?_0x5084b3['report']['warnings']:_0x5084b3[_0x1ab082(0x137)][_0x1ab082(0xf7)][_0x1ab082(0xf1)](_0x149b5e=>({..._0x149b5e,'path':prefixRegistryIssuePath(_0x5084b3['registryIndex'],_0x149b5e[_0x1ab082(0x141)])})));return{'ok':_0x5afa23[_0x1ab082(0x118)]===0x0,'errors':_0x5afa23,'warnings':_0xeaa2e2};}function prefixRegistryIssuePath(_0x506634,_0x2b9f90){const _0x38b439=a41_0x3f56;if(_0x2b9f90==='$')return _0x38b439(0x13c)+_0x506634+_0x38b439(0x12e);if(_0x2b9f90[_0x38b439(0x106)]('$.'))return _0x38b439(0x13c)+_0x506634+_0x38b439(0x12e)+_0x2b9f90[_0x38b439(0x12c)](0x1);if(_0x2b9f90[_0x38b439(0x106)]('$['))return _0x38b439(0x13c)+_0x506634+_0x38b439(0x12e)+_0x2b9f90[_0x38b439(0x12c)](0x1);return _0x38b439(0x13c)+_0x506634+_0x38b439(0x124)+_0x2b9f90;}function isServiceRegistryLike(_0x43eac2){const _0x590d30=a41_0x3f56;return isObjectRecord(_0x43eac2)&&_0x43eac2[_0x590d30(0x11a)]===SERVICE_REGISTRY_SCHEMA_VERSION&&Array[_0x590d30(0x128)](_0x43eac2[_0x590d30(0x13d)]);}function isObjectRecord(_0x2dc63b){const _0xfd5a6d=a41_0x3f56;return Boolean(_0x2dc63b)&&typeof _0x2dc63b==='object'&&!Array[_0xfd5a6d(0x128)](_0x2dc63b);}function emptyServiceRegistryInspection(_0x13b73f,_0x2f4016,_0x476af1){return{'registryPath':_0x13b73f,'exists':_0x476af1,'status':_0x2f4016,'serviceCount':0x0,'commandCount':0x0,'services':[]};}function summarizeLocalServiceEntry(_0x24db5d){const _0x270f0a=a41_0x3f56,_0x2077aa=_0x24db5d[_0x270f0a(0xf4)],_0x8a64f3=_0x2077aa[_0x270f0a(0x105)][_0x270f0a(0xf1)](_0x1bbe99=>({'path':_0x1bbe99['cliPath'],'description':_0x1bbe99['description'],'risk':_0x1bbe99[_0x270f0a(0x111)],'targetKind':_0x1bbe99[_0x270f0a(0x115)][_0x270f0a(0x101)],'targetCommand':_0x1bbe99[_0x270f0a(0x115)][_0x270f0a(0x107)]}));return{'serviceCode':_0x24db5d[_0x270f0a(0x122)],'name':_0x2077aa[_0x270f0a(0xff)]['name'],'description':_0x2077aa[_0x270f0a(0xff)][_0x270f0a(0x126)],'version':_0x24db5d['version'],'importedAt':_0x24db5d[_0x270f0a(0x13f)],'source':_0x24db5d[_0x270f0a(0xf8)],'commandCount':_0x8a64f3[_0x270f0a(0x118)],'commands':_0x8a64f3};}function sha256(_0x5830e3){const _0x3ee3a5=a41_0x3f56;return createHash(_0x3ee3a5(0xf6))['update'](_0x5830e3)[_0x3ee3a5(0x108)](_0x3ee3a5(0x12a));}
|
|
1
|
+
(function(_0x4f182a,_0xd4fccb){const _0x181ace=a42_0x2c60,_0x3a863d=_0x4f182a();while(!![]){try{const _0x94692=parseInt(_0x181ace(0x1c5))/0x1+parseInt(_0x181ace(0x1fd))/0x2*(-parseInt(_0x181ace(0x1e7))/0x3)+-parseInt(_0x181ace(0x1f6))/0x4+-parseInt(_0x181ace(0x1d9))/0x5*(-parseInt(_0x181ace(0x1e4))/0x6)+parseInt(_0x181ace(0x1d1))/0x7+-parseInt(_0x181ace(0x1cd))/0x8+parseInt(_0x181ace(0x1de))/0x9;if(_0x94692===_0xd4fccb)break;else _0x3a863d['push'](_0x3a863d['shift']());}catch(_0x39537){_0x3a863d['push'](_0x3a863d['shift']());}}}(a42_0xee3d,0x34f7a));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{normalizeServiceTreeManifest,validateServiceTreeManifest}from'@lovrabet/cli-framework';import{PRODUCT_CONFIG}from'../../constant/product.js';import{CliErrors}from'../../errors.js';import{adaptServiceTreeManifestForLegacyFramework}from'../../commands/service/function-name-adapter.js';function a42_0x2c60(_0x3583b2,_0x3402f0){_0x3583b2=_0x3583b2-0x1bd;const _0xee3d8f=a42_0xee3d();let _0x2c60e3=_0xee3d8f[_0x3583b2];return _0x2c60e3;}export const SERVICE_REGISTRY_SCHEMA_VERSION=0x1;function a42_0xee3d(){const _0x4cbbc7=['Invalid\x20service\x20manifest\x20JSON:\x20','utf8','Run\x20lovrabet\x20service\x20list\x20to\x20see\x20imported\x20services.','Service\x20registry\x20has\x20no\x20services\x20to\x20import.','missing','$.services[','join','1253664qfUXWZ','manifests','schemaVersion','filePath','2768073Eijlqv','map','warnings','object','manifest','Unsupported\x20service\x20registry\x20schemaVersion:\x20','Invalid\x20service\x20registry\x20JSON:\x20','trim','459605ToUtQI','].manifest','validation','commandCount','updatedAt','1770921mTWzig','path','hex','digest','sort','update','12zZkRZt','errors','startsWith','3GaYywQ','serviceCode','CliError','now','Local\x20service\x20not\x20found:\x20','name','source','Cannot\x20write\x20service\x20registry:\x20','findIndex','code','services\x20must\x20be\x20an\x20array','services','.tmp','service','Add\x20at\x20least\x20one\x20service\x20manifest,\x20then\x20run\x20service\x20import\x20again.','1589264DKJAbM','slice','parse','stringify','splice','message','homeDirName','670756oOhnDA','length','isArray','Fix\x20the\x20JSON\x20syntax\x20and\x20run\x20service\x20validate\x20again.','Fix\x20the\x20JSON\x20file\x20or\x20move\x20it\x20aside\x20and\x20import\x20services\x20again.','target','version','registryIndex','ENOENT','invalid','string','report','sha256','push','homeDir','find','sourceHash','commands','normalizedManifest','command','330306UVSJMp'];a42_0xee3d=function(){return _0x4cbbc7;};return a42_0xee3d();}export const SERVICE_REGISTRY_FILE_NAME='service.json';export function getServiceRegistryPath(_0x3a5832={}){const _0x1845e0=a42_0x2c60;return resolve(_0x3a5832[_0x1845e0(0x1bf)]??homedir(),PRODUCT_CONFIG[_0x1845e0(0x1fc)],SERVICE_REGISTRY_FILE_NAME);}export function emptyServiceRegistry(){return{'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'services':[]};}export function readServiceRegistry(_0x4b5d64={}){const _0x5dc79c=a42_0x2c60,_0x28614d=getServiceRegistryPath(_0x4b5d64);if(!existsSync(_0x28614d))return emptyServiceRegistry();try{const _0x468f05=readFileSync(_0x28614d,_0x5dc79c(0x1c7));if(!_0x468f05[_0x5dc79c(0x1d8)]())return emptyServiceRegistry();const _0x7afbc9=JSON['parse'](_0x468f05);if(_0x7afbc9[_0x5dc79c(0x1cf)]!==SERVICE_REGISTRY_SCHEMA_VERSION)throw CliErrors[_0x5dc79c(0x1db)](_0x5dc79c(0x1d6)+String(_0x7afbc9[_0x5dc79c(0x1cf)]),'Remove\x20or\x20migrate\x20'+_0x28614d+'.');if(!Array[_0x5dc79c(0x1ff)](_0x7afbc9[_0x5dc79c(0x1f2)]))return emptyServiceRegistry();return{'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x7afbc9[_0x5dc79c(0x1dd)],'services':_0x7afbc9[_0x5dc79c(0x1f2)]};}catch(_0x3b6d87){if(_0x3b6d87 instanceof Error&&_0x3b6d87['name']===_0x5dc79c(0x1e9))throw _0x3b6d87;throw CliErrors['validation'](_0x5dc79c(0x1d7)+_0x28614d,_0x5dc79c(0x201));}}export function writeServiceRegistry(_0x3c4995,_0x2cc3e9={}){const _0x2f5683=a42_0x2c60,_0x6410a8=getServiceRegistryPath(_0x2cc3e9),_0x3a7015=dirname(_0x6410a8);!existsSync(_0x3a7015)&&mkdirSync(_0x3a7015,{'recursive':!![]});const _0x31f64d=_0x6410a8+_0x2f5683(0x1f3);try{writeFileSync(_0x31f64d,JSON[_0x2f5683(0x1f9)](_0x3c4995,null,0x2)+'\x0a',{'encoding':_0x2f5683(0x1c7),'mode':0x180}),renameSync(_0x31f64d,_0x6410a8);}catch(_0x3b636e){try{unlinkSync(_0x31f64d);}catch{}if(_0x3b636e?.[_0x2f5683(0x1f0)]===_0x2f5683(0x205))throw CliErrors['validation'](_0x2f5683(0x1ee)+_0x6410a8);throw _0x3b636e;}return _0x6410a8;}export function loadServiceManifestFromFile(_0x367002){const _0x316ba1=a42_0x2c60,_0x43378e=resolve(_0x367002);if(!existsSync(_0x43378e))throw CliErrors['validation']('Service\x20manifest\x20file\x20not\x20found:\x20'+_0x367002);let _0x4d504b;const _0x5d66c8=readFileSync(_0x43378e,'utf8');try{_0x4d504b=JSON[_0x316ba1(0x1f8)](_0x5d66c8);}catch{throw CliErrors[_0x316ba1(0x1db)](_0x316ba1(0x1c6)+_0x367002,_0x316ba1(0x200));}const _0x52db55=sha256(_0x5d66c8),_0x5ea301=extractLoadedServiceManifests(_0x4d504b,_0x52db55),_0x11fba1=aggregateValidationReports(_0x5ea301),_0x48c2ef=_0x5ea301[0x0];return{'filePath':_0x43378e,'hash':_0x52db55,'kind':isServiceRegistryLike(_0x4d504b)?'registry':_0x316ba1(0x1d5),'manifest':_0x48c2ef?.['manifest']??_0x4d504b,'report':_0x11fba1,'normalizedManifest':_0x5ea301['length']===0x1?_0x48c2ef?.[_0x316ba1(0x1c3)]:undefined,'manifests':_0x5ea301};}export function importServiceManifest(_0x1dc23f,_0xe6e995={}){const _0x2f591d=a42_0x2c60,_0x5e27bf=loadServiceManifestFromFile(_0x1dc23f);if(!_0x5e27bf[_0x2f591d(0x208)]['ok'])throw CliErrors[_0x2f591d(0x1db)](formatValidationFailure(_0x5e27bf[_0x2f591d(0x208)]),'Fix\x20the\x20service\x20manifest\x20and\x20run\x20service\x20validate\x20again.');if(_0x5e27bf[_0x2f591d(0x1ce)]['length']===0x0)throw CliErrors[_0x2f591d(0x1db)](_0x2f591d(0x1c9),_0x2f591d(0x1f5));const _0x2c0d4e=readServiceRegistry(_0xe6e995),_0x5d9e3c=(_0xe6e995['now']??(()=>new Date()))()['toISOString'](),_0x3d5893=[];let _0x16f798=0x0,_0x32d4ea=0x0;for(const _0x5b724b of _0x5e27bf[_0x2f591d(0x1ce)]){if(!_0x5b724b['normalizedManifest'])continue;const _0x171e44=_0x5b724b[_0x2f591d(0x1c3)][_0x2f591d(0x1f4)][_0x2f591d(0x1f0)],_0xa03b04={'serviceCode':_0x171e44,'version':_0x5b724b[_0x2f591d(0x1c3)][_0x2f591d(0x203)],'importedAt':_0x5d9e3c,'source':{'type':'file','path':_0x5e27bf[_0x2f591d(0x1d0)],'hash':_0x5b724b[_0x2f591d(0x1c1)]},'manifest':_0x5b724b[_0x2f591d(0x1d5)],'normalizedManifest':_0x5b724b[_0x2f591d(0x1c3)]},_0x5b884d=_0x2c0d4e[_0x2f591d(0x1f2)]['findIndex'](_0x427785=>_0x427785[_0x2f591d(0x1e8)]===_0x171e44);_0x5b884d>=0x0?(_0x2c0d4e[_0x2f591d(0x1f2)][_0x5b884d]=_0xa03b04,_0x32d4ea++):(_0x2c0d4e[_0x2f591d(0x1f2)]['push'](_0xa03b04),_0x16f798++),_0x3d5893[_0x2f591d(0x1be)](_0xa03b04);}_0x2c0d4e[_0x2f591d(0x1f2)][_0x2f591d(0x1e2)]((_0x191dc7,_0x234831)=>_0x191dc7[_0x2f591d(0x1e8)]['localeCompare'](_0x234831[_0x2f591d(0x1e8)])),_0x2c0d4e[_0x2f591d(0x1dd)]=_0x5d9e3c;const _0x4f7849=writeServiceRegistry(_0x2c0d4e,_0xe6e995);return{'registryPath':_0x4f7849,'entry':_0x3d5893[0x0],'replaced':_0x3d5893[_0x2f591d(0x1fe)]===0x1?_0x32d4ea===0x1:_0x32d4ea>0x0,'entries':_0x3d5893,'imported':_0x16f798,'updated':_0x32d4ea,'serviceCount':_0x2c0d4e[_0x2f591d(0x1f2)][_0x2f591d(0x1fe)]};}export function exportServiceManifest(_0x41d4e4,_0x36b84c,_0x5d77cd={}){const _0x304260=a42_0x2c60,_0x538231=getServiceRegistryPath(_0x5d77cd),_0x2912ca=getLocalServiceEntry(_0x41d4e4,_0x5d77cd);if(!_0x2912ca)throw CliErrors['validation'](_0x304260(0x1eb)+_0x41d4e4,_0x304260(0x1c8));const _0x17a613=resolve(_0x36b84c),_0xbe939d=dirname(_0x17a613);return!existsSync(_0xbe939d)&&mkdirSync(_0xbe939d,{'recursive':!![]}),writeFileSync(_0x17a613,JSON[_0x304260(0x1f9)](_0x2912ca['manifest'],null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180}),{'registryPath':_0x538231,'filePath':_0x17a613,'entry':_0x2912ca};}export function removeServiceManifest(_0x3465e6,_0x359b82={}){const _0x57a9a1=a42_0x2c60,_0x50bd71=readServiceRegistry(_0x359b82),_0x470b9f=_0x3465e6[_0x57a9a1(0x1d8)](),_0x2826eb=_0x50bd71[_0x57a9a1(0x1f2)][_0x57a9a1(0x1ef)](_0x43a2d0=>_0x43a2d0[_0x57a9a1(0x1e8)]===_0x470b9f);if(_0x2826eb<0x0)throw CliErrors[_0x57a9a1(0x1db)](_0x57a9a1(0x1eb)+_0x470b9f,_0x57a9a1(0x1c8));const [_0xa248c6]=_0x50bd71['services'][_0x57a9a1(0x1fa)](_0x2826eb,0x1),_0xb6934=(_0x359b82[_0x57a9a1(0x1ea)]??(()=>new Date()))()['toISOString']();_0x50bd71['updatedAt']=_0xb6934;const _0x20383e=writeServiceRegistry(_0x50bd71,_0x359b82);return{'registryPath':_0x20383e,'entry':_0xa248c6,'serviceCount':_0x50bd71[_0x57a9a1(0x1f2)][_0x57a9a1(0x1fe)]};}export function listLocalServices(_0x3bf593={}){return readServiceRegistry(_0x3bf593)['services'];}export function getLocalServiceEntry(_0x128e2e,_0x4da0a7={}){const _0x571408=a42_0x2c60;return readServiceRegistry(_0x4da0a7)[_0x571408(0x1f2)][_0x571408(0x1c0)](_0x2d97bf=>_0x2d97bf[_0x571408(0x1e8)]===_0x128e2e['trim']());}export function listLocalServiceTrees(_0x3b4367={}){const _0x92fc9a=a42_0x2c60;return readServiceRegistry(_0x3b4367)[_0x92fc9a(0x1f2)][_0x92fc9a(0x1d2)](_0x1b6cdd=>_0x1b6cdd[_0x92fc9a(0x1c3)]);}export function inspectServiceRegistry(_0x4c40b5={}){const _0x2cbd3b=a42_0x2c60,_0x19dfdb=getServiceRegistryPath(_0x4c40b5);if(!existsSync(_0x19dfdb))return emptyServiceRegistryInspection(_0x19dfdb,_0x2cbd3b(0x1ca),![]);try{const _0x3afa6f=readFileSync(_0x19dfdb,_0x2cbd3b(0x1c7));if(!_0x3afa6f[_0x2cbd3b(0x1d8)]())return emptyServiceRegistryInspection(_0x19dfdb,'empty',!![]);const _0x73446a=JSON['parse'](_0x3afa6f);if(_0x73446a['schemaVersion']!==SERVICE_REGISTRY_SCHEMA_VERSION)return{...emptyServiceRegistryInspection(_0x19dfdb,_0x2cbd3b(0x206),!![]),'schemaVersion':_0x73446a[_0x2cbd3b(0x1cf)],'message':'Unsupported\x20schemaVersion:\x20'+String(_0x73446a[_0x2cbd3b(0x1cf)])};if(!Array['isArray'](_0x73446a['services']))return{...emptyServiceRegistryInspection(_0x19dfdb,'invalid',!![]),'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x73446a[_0x2cbd3b(0x1dd)],'message':_0x2cbd3b(0x1f1)};const _0x927cda=_0x73446a[_0x2cbd3b(0x1f2)]['map'](summarizeLocalServiceEntry);return{'registryPath':_0x19dfdb,'exists':!![],'status':'ok','schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x73446a[_0x2cbd3b(0x1dd)],'serviceCount':_0x927cda[_0x2cbd3b(0x1fe)],'commandCount':_0x927cda['reduce']((_0x1c56d5,_0x42e6b0)=>_0x1c56d5+_0x42e6b0[_0x2cbd3b(0x1dc)],0x0),'services':_0x927cda};}catch(_0x220c58){return{...emptyServiceRegistryInspection(_0x19dfdb,_0x2cbd3b(0x206),!![]),'message':_0x220c58 instanceof Error?_0x220c58[_0x2cbd3b(0x1fb)]:String(_0x220c58)};}}export function formatValidationFailure(_0x526247){const _0x32d482=a42_0x2c60,_0x577df7=_0x526247[_0x32d482(0x1e5)][_0x32d482(0x1d2)](_0x2d0fd4=>_0x2d0fd4[_0x32d482(0x1df)]+':\x20'+_0x2d0fd4['message']);return'Service\x20manifest\x20validation\x20failed:\x0a'+_0x577df7[_0x32d482(0x1cc)]('\x0a');}function extractLoadedServiceManifests(_0x121320,_0x263dad){const _0x25a350=a42_0x2c60;if(!isServiceRegistryLike(_0x121320)){const _0x6d882d=_0x121320,{manifest:_0x9d983e,errors:_0x46c7f8}=adaptServiceTreeManifestForLegacyFramework(_0x6d882d),_0x334cdc=validateServiceTreeManifest(_0x9d983e),_0x4df0d8=mergeValidationErrors(_0x334cdc,_0x46c7f8);return[{'manifest':_0x6d882d,'report':_0x4df0d8,'normalizedManifest':_0x4df0d8['ok']?normalizeServiceTreeManifest(_0x9d983e):undefined,'sourceHash':_0x263dad}];}return _0x121320[_0x25a350(0x1f2)][_0x25a350(0x1d2)]((_0x25bfd4,_0x373fb0)=>{const _0x1b6b6e=_0x25a350,_0x2b50f3=isObjectRecord(_0x25bfd4)?_0x25bfd4[_0x1b6b6e(0x1d5)]:undefined,{manifest:_0x23eb74,errors:_0x435eb4}=adaptServiceTreeManifestForLegacyFramework(_0x2b50f3),_0x202adc=validateServiceTreeManifest(_0x23eb74),_0x37fb62=mergeValidationErrors(_0x202adc,_0x435eb4),_0xf88d85=isObjectRecord(_0x25bfd4)&&typeof _0x25bfd4[_0x1b6b6e(0x1e8)]===_0x1b6b6e(0x207)?_0x25bfd4[_0x1b6b6e(0x1e8)]:undefined;return{'manifest':_0x2b50f3,'report':_0x37fb62,'normalizedManifest':_0x37fb62['ok']?normalizeServiceTreeManifest(_0x23eb74):undefined,'sourceHash':sha256(JSON['stringify'](_0x2b50f3,null,0x2)+'\x0a'),'registryIndex':_0x373fb0,'registryServiceCode':_0xf88d85};});}function mergeValidationErrors(_0x3e5615,_0xe12dd7){const _0x5bd784=a42_0x2c60,_0x24206e=_0x3e5615[_0x5bd784(0x1e5)]['map'](_0x2ae10d=>_0x2ae10d[_0x5bd784(0x1fb)]==='bff\x20target\x20requires\x20bffCode,\x20bffId,\x20or\x20scriptName.'?{..._0x2ae10d,'message':'bff\x20target\x20requires\x20functionName.'}:_0x2ae10d),_0x1cd8cb=[..._0xe12dd7,..._0x24206e];return{'ok':_0x1cd8cb['length']===0x0,'errors':_0x1cd8cb,'warnings':_0x3e5615[_0x5bd784(0x1d3)]};}function aggregateValidationReports(_0x3cdb51){const _0xc42f75=a42_0x2c60,_0x3f5ebd=_0x3cdb51['flatMap'](_0x110214=>_0x110214[_0xc42f75(0x204)]===undefined?_0x110214[_0xc42f75(0x208)][_0xc42f75(0x1e5)]:_0x110214[_0xc42f75(0x208)][_0xc42f75(0x1e5)]['map'](_0x4e9791=>({..._0x4e9791,'path':prefixRegistryIssuePath(_0x110214[_0xc42f75(0x204)],_0x4e9791['path'])}))),_0x4377de=_0x3cdb51['flatMap'](_0x18810c=>_0x18810c[_0xc42f75(0x204)]===undefined?_0x18810c[_0xc42f75(0x208)][_0xc42f75(0x1d3)]:_0x18810c[_0xc42f75(0x208)][_0xc42f75(0x1d3)][_0xc42f75(0x1d2)](_0x203035=>({..._0x203035,'path':prefixRegistryIssuePath(_0x18810c['registryIndex'],_0x203035['path'])})));return{'ok':_0x3f5ebd[_0xc42f75(0x1fe)]===0x0,'errors':_0x3f5ebd,'warnings':_0x4377de};}function prefixRegistryIssuePath(_0x2f5ca0,_0x421baf){const _0x821bd6=a42_0x2c60;if(_0x421baf==='$')return _0x821bd6(0x1cb)+_0x2f5ca0+'].manifest';if(_0x421baf['startsWith']('$.'))return _0x821bd6(0x1cb)+_0x2f5ca0+_0x821bd6(0x1da)+_0x421baf['slice'](0x1);if(_0x421baf[_0x821bd6(0x1e6)]('$['))return _0x821bd6(0x1cb)+_0x2f5ca0+'].manifest'+_0x421baf[_0x821bd6(0x1f7)](0x1);return _0x821bd6(0x1cb)+_0x2f5ca0+'].manifest.'+_0x421baf;}function isServiceRegistryLike(_0x8558aa){const _0x5265e3=a42_0x2c60;return isObjectRecord(_0x8558aa)&&_0x8558aa[_0x5265e3(0x1cf)]===SERVICE_REGISTRY_SCHEMA_VERSION&&Array['isArray'](_0x8558aa[_0x5265e3(0x1f2)]);}function isObjectRecord(_0x239f06){const _0x2eea5f=a42_0x2c60;return Boolean(_0x239f06)&&typeof _0x239f06===_0x2eea5f(0x1d4)&&!Array[_0x2eea5f(0x1ff)](_0x239f06);}function emptyServiceRegistryInspection(_0x374bac,_0x32675d,_0x4ea5bc){return{'registryPath':_0x374bac,'exists':_0x4ea5bc,'status':_0x32675d,'serviceCount':0x0,'commandCount':0x0,'services':[]};}function summarizeLocalServiceEntry(_0x3d656a){const _0x4b5756=a42_0x2c60,_0x5a4bab=_0x3d656a['normalizedManifest'],_0xc84c1e=_0x5a4bab[_0x4b5756(0x1c2)][_0x4b5756(0x1d2)](_0x416e7a=>({'path':_0x416e7a['cliPath'],'description':_0x416e7a['description'],'risk':_0x416e7a['risk'],'targetKind':_0x416e7a[_0x4b5756(0x202)]['kind'],'targetCommand':_0x416e7a['target'][_0x4b5756(0x1c4)]}));return{'serviceCode':_0x3d656a[_0x4b5756(0x1e8)],'name':_0x5a4bab[_0x4b5756(0x1f4)][_0x4b5756(0x1ec)],'description':_0x5a4bab['service']['description'],'version':_0x3d656a[_0x4b5756(0x203)],'importedAt':_0x3d656a['importedAt'],'source':_0x3d656a[_0x4b5756(0x1ed)],'commandCount':_0xc84c1e[_0x4b5756(0x1fe)],'commands':_0xc84c1e};}function sha256(_0x40263d){const _0x36e666=a42_0x2c60;return createHash(_0x36e666(0x1bd))[_0x36e666(0x1e3)](_0x40263d)[_0x36e666(0x1e1)](_0x36e666(0x1e0));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a43_0x442b47=a43_0x357d;(function(_0x2da796,_0x28e757){const _0x4c05f9=a43_0x357d,_0x588ec8=_0x2da796();while(!![]){try{const _0x13100b=-parseInt(_0x4c05f9(0x96))/0x1*(-parseInt(_0x4c05f9(0xaa))/0x2)+-parseInt(_0x4c05f9(0xac))/0x3*(parseInt(_0x4c05f9(0xa6))/0x4)+-parseInt(_0x4c05f9(0x95))/0x5*(-parseInt(_0x4c05f9(0xb8))/0x6)+-parseInt(_0x4c05f9(0xa0))/0x7+-parseInt(_0x4c05f9(0xab))/0x8*(parseInt(_0x4c05f9(0xb0))/0x9)+-parseInt(_0x4c05f9(0x9f))/0xa*(parseInt(_0x4c05f9(0xa8))/0xb)+parseInt(_0x4c05f9(0xb3))/0xc;if(_0x13100b===_0x28e757)break;else _0x588ec8['push'](_0x588ec8['shift']());}catch(_0x467f95){_0x588ec8['push'](_0x588ec8['shift']());}}}(a43_0x101e,0xc945e));import{existsSync,lstatSync,mkdirSync,writeFileSync}from'node:fs';import{dirname,resolve}from'node:path';import{CliErrors}from'../../../errors.js';import{writeCliSideChannelLine}from'../../../utils/write-cli-side-channel.js';function a43_0x101e(){const _0x1bad5c=['100nkCPbj','2003218xtmpAM','target','Refusing\x20to\x20overwrite\x20symlink:\x20','Pass\x20--force\x20to\x20overwrite\x20generated\x20template\x20files.','skillDir','str','5147072mhgtOh','Skill\x20path\x20already\x20exists\x20and\x20is\x20not\x20a\x20writable\x20directory:\x20','367312PYFJjs','map','87616yajBFX','494680EUaaUf','3uoPZFm','write','skill','trim','63WZYvVM','WRITE','Omitting\x20--type\x20is\x20deprecated;\x20defaulting\x20to\x20write\x20for\x20compatibility.\x20Pass\x20--type\x20read\x20or\x20--type\x20write\x20explicitly.','18126516XWipOx','Created\x20local\x20Skill\x20draft\x20','Create\x20a\x20local\x20runtime\x20Skill\x20draft\x20without\x20uploading\x20or\x20publishing\x20it.','files','content','2595102waMndq','path','create','name','skillName','10aJCOXg','18SFUlGI','rendered','type','validation','Skill\x20directory\x20already\x20exists:\x20','Create\x20a\x20local\x20self-contained\x20runtime\x20Skill\x20draft','force','isSymbolicLink','utf8'];a43_0x101e=function(){return _0x1bad5c;};return a43_0x101e();}import{CREATE_NAME_FLAG,FORCE_FLAG,TARGET_FLAG,TYPE_FLAG}from'../flags.js';import{DEFAULT_SKILL_TARGET,renderSkillTemplate}from'../templates.js';export const createCommand={'service':a43_0x442b47(0xae),'command':a43_0x442b47(0x92),'description':a43_0x442b47(0x9b),'risk':a43_0x442b47(0xad),'requiresAuth':![],'requiresAppCode':![],'flags':[CREATE_NAME_FLAG,TYPE_FLAG,TARGET_FLAG,FORCE_FLAG],async 'dryRun'(_0x461b47){const _0x528d24=a43_0x442b47,_0x18b945=buildSkillCreatePlan(_0x461b47[_0x528d24(0xa5)]('name'),_0x461b47['str'](_0x528d24(0x98)),_0x461b47[_0x528d24(0xa5)](_0x528d24(0xa1)));return{'method':_0x528d24(0xb1),'url':_0x18b945[_0x528d24(0xa4)],'body':{'skillName':_0x18b945[_0x528d24(0x97)]['skillName'],'type':_0x18b945[_0x528d24(0x97)][_0x528d24(0x98)],'selfContained':!![],'files':_0x18b945[_0x528d24(0x97)][_0x528d24(0xb6)][_0x528d24(0xa9)](_0x4261cf=>_0x4261cf['path'])},'description':_0x528d24(0xb5)};},async 'execute'(_0x2298c7){const _0x217e15=a43_0x442b47,_0x4776d3=buildSkillCreatePlan(_0x2298c7[_0x217e15(0xa5)](_0x217e15(0x93)),_0x2298c7[_0x217e15(0xa5)](_0x217e15(0x98)),_0x2298c7['str']('target'));return writeSkillDraft(_0x4776d3,_0x2298c7['bool'](_0x217e15(0x9c))),{'ok':!![],'data':{'skillName':_0x4776d3[_0x217e15(0x97)][_0x217e15(0x94)],'type':_0x4776d3[_0x217e15(0x97)][_0x217e15(0x98)],'dir':_0x4776d3[_0x217e15(0xa4)],'files':_0x4776d3[_0x217e15(0x97)][_0x217e15(0xb6)][_0x217e15(0xa9)](_0x29eb57=>_0x29eb57[_0x217e15(0xb9)])},'message':_0x217e15(0xb4)+_0x4776d3[_0x217e15(0x97)][_0x217e15(0x94)]};}};function a43_0x357d(_0x4006b5,_0x581842){_0x4006b5=_0x4006b5-0x92;const _0x101ef2=a43_0x101e();let _0x357dd9=_0x101ef2[_0x4006b5];return _0x357dd9;}function buildSkillCreatePlan(_0x39853f,_0x294f19,_0x2b0a83){const _0xb32b47=a43_0x442b47,_0x366086=_0x294f19[_0xb32b47(0xaf)](),_0x379cb6=renderSkillTemplate({'skillName':_0x39853f,'type':_0x366086});!_0x366086&&writeCliSideChannelLine(_0xb32b47(0xb2));const _0x1f39c7=resolve(normalizeSkillTarget(_0x2b0a83));return{'rendered':_0x379cb6,'targetRoot':_0x1f39c7,'skillDir':resolve(_0x1f39c7,_0x379cb6['skillName'])};}function normalizeSkillTarget(_0xb1892b){const _0x516107=a43_0x442b47;return(_0xb1892b||DEFAULT_SKILL_TARGET)[_0x516107(0xaf)]()||DEFAULT_SKILL_TARGET;}function writeSkillDraft(_0x52433e,_0x28dcc9){const _0x1cda2d=a43_0x442b47;if(existsSync(_0x52433e[_0x1cda2d(0xa4)])){const _0x52b1e5=lstatSync(_0x52433e[_0x1cda2d(0xa4)]);if(!_0x52b1e5['isDirectory']()||_0x52b1e5[_0x1cda2d(0x9d)]())throw CliErrors[_0x1cda2d(0x99)](_0x1cda2d(0xa7)+_0x52433e[_0x1cda2d(0xa4)]);if(!_0x28dcc9)throw CliErrors['validation'](_0x1cda2d(0x9a)+_0x52433e[_0x1cda2d(0xa4)],_0x1cda2d(0xa3));}for(const _0x5d8fad of _0x52433e['rendered']['files']){const _0x50a7e9=resolve(_0x52433e[_0x1cda2d(0xa4)],_0x5d8fad[_0x1cda2d(0xb9)]),_0x2b6c75=dirname(_0x50a7e9);mkdirSync(_0x2b6c75,{'recursive':!![]});if(existsSync(_0x50a7e9)&&lstatSync(_0x50a7e9)[_0x1cda2d(0x9d)]())throw CliErrors['validation'](_0x1cda2d(0xa2)+_0x50a7e9);writeFileSync(_0x50a7e9,_0x5d8fad[_0x1cda2d(0xb7)],_0x1cda2d(0x9e));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a44_0x264615=a44_0x1516;(function(_0x1e921f,_0x4a4da8){const _0x344309=a44_0x1516,_0x372281=_0x1e921f();while(!![]){try{const _0x3fe4cd=parseInt(_0x344309(0x1e1))/0x1+parseInt(_0x344309(0x1cc))/0x2+-parseInt(_0x344309(0x1ca))/0x3+-parseInt(_0x344309(0x1c2))/0x4*(-parseInt(_0x344309(0x1d4))/0x5)+-parseInt(_0x344309(0x1d9))/0x6+-parseInt(_0x344309(0x1e3))/0x7*(parseInt(_0x344309(0x1ce))/0x8)+parseInt(_0x344309(0x1c5))/0x9*(-parseInt(_0x344309(0x1e2))/0xa);if(_0x3fe4cd===_0x4a4da8)break;else _0x372281['push'](_0x372281['shift']());}catch(_0x1e3df8){_0x372281['push'](_0x372281['shift']());}}}(a44_0x36e7,0x25242));function a44_0x1516(_0x2c5de8,_0x439b53){_0x2c5de8=_0x2c5de8-0x1bf;const _0x36e709=a44_0x36e7();let _0x151699=_0x36e709[_0x2c5de8];return _0x151699;}import{CliErrors}from'../../../errors.js';import{CODE_FLAG,FORCE_FLAG,SCOPE_FLAG}from'../flags.js';import{normalizeSyncScopes}from'../scopes.js';function a44_0x36e7(){const _0x4a5bb5=['code','updated','10oTWVKW','action','personal','push','includes','39942xuIUbO','company','write','trim','version','str','Business\x20Skill\x20installation\x20requires\x20authentication.\x20Run\x20`lovrabet\x20auth\x20login`,\x20or\x20use\x20`lovrabet\x20cli-skill\x20install`\x20for\x20CLI\x20Built-in\x20Skill\x20setup.','force','253823CGhSEN','625990cgIuZe','2933JysOsC','flatMap','map','authRequired','bool','skill','removed','453828jxOyko','length','\x20personal\x20and\x20','27NRxQvY','scope','created','envName','filter','828567DrGPqE','Install\x20current-app\x20business\x20Skills\x20into\x20user-level\x20Agent\x20skill\x20directories','429884JsMtpo','../../../core/api-client.js','1392yJauFC','appCode','skillCode','install'];a44_0x36e7=function(){return _0x4a5bb5;};return a44_0x36e7();}import{summarizeRuntimeSkill}from'../summary.js';export const installCommand={'service':a44_0x264615(0x1c0),'command':a44_0x264615(0x1d1),'description':a44_0x264615(0x1cb),'risk':a44_0x264615(0x1db),'requiresAuth':!![],'requiresAppCode':!![],'hasFormat':![],'flags':[CODE_FLAG,SCOPE_FLAG,FORCE_FLAG],async 'execute'(_0x631da8){return syncRuntimeSkills(_0x631da8);}};async function syncRuntimeSkills(_0x42fff5){const _0x14b00a=a44_0x264615,{downloadRuntimeSkillPackage:_0x49543b,listRuntimeSkills:_0x45aebe}=await import(_0x14b00a(0x1cd)),{linkEffectiveRuntimeSkills:_0x20cdec,materializeRuntimeSkill:_0x42f08b,pruneStaleRuntimeSkillCache:_0x2481a7,pruneStaleRuntimeSkillLinks:_0x4da632}=await import('../../../skills/runtime-skill-sync.js'),_0x4ea3e8=_0x42fff5[_0x14b00a(0x1de)](_0x14b00a(0x1d2)),_0x51ca1c=normalizeSyncScopes(_0x42fff5[_0x14b00a(0x1de)](_0x14b00a(0x1c6))),_0x2934c5=_0x42fff5[_0x14b00a(0x1c8)]??'production',_0x39b81d=_0x42fff5['accessKey'],_0x3b915d=_0x42fff5[_0x14b00a(0x1bf)](_0x14b00a(0x1e0));if(!_0x39b81d)throw CliErrors[_0x14b00a(0x1e6)](_0x14b00a(0x1df));const _0x402c21=await Promise['all'](_0x51ca1c[_0x14b00a(0x1e5)](_0x46283c=>_0x45aebe({'appCode':_0x42fff5[_0x14b00a(0x1cf)],'scope':_0x46283c,'code':_0x4ea3e8['trim']()||undefined}))),_0x52a94a=_0x51ca1c['includes'](_0x14b00a(0x1d6))?_0x402c21[_0x14b00a(0x1e4)]((_0x5ba2e8,_0x5007c5)=>_0x51ca1c[_0x5007c5]===_0x14b00a(0x1d6)?_0x5ba2e8[_0x14b00a(0x1d6)]:[]):[],_0x40cad6=_0x51ca1c[_0x14b00a(0x1d8)](_0x14b00a(0x1da))?_0x402c21[_0x14b00a(0x1e4)]((_0x8bf316,_0x82277b)=>_0x51ca1c[_0x82277b]==='company'?_0x8bf316[_0x14b00a(0x1da)]:[]):[],_0x537728=new Set([..._0x52a94a['map'](_0x4cdaaa=>_0x4cdaaa[_0x14b00a(0x1d0)]?.[_0x14b00a(0x1dc)]())[_0x14b00a(0x1c9)](_0x4ebde0=>Boolean(_0x4ebde0)),..._0x40cad6[_0x14b00a(0x1e5)](_0x3aef9a=>_0x3aef9a['skillCode']?.[_0x14b00a(0x1dc)]())['filter'](_0x5b156f=>Boolean(_0x5b156f))]),_0x361bac=_0x4ea3e8[_0x14b00a(0x1dc)]()?[_0x4ea3e8[_0x14b00a(0x1dc)]()]:undefined,_0x181c58=_0x51ca1c[_0x14b00a(0x1c3)]===0x2&&_0x51ca1c[_0x14b00a(0x1d8)](_0x14b00a(0x1d6))&&_0x51ca1c[_0x14b00a(0x1d8)](_0x14b00a(0x1da)),_0x1c1418=_0x181c58?_0x4da632(_0x42fff5[_0x14b00a(0x1cf)],_0x537728,{},_0x361bac):[],_0x1955bf=_0x2481a7({'env':_0x2934c5,'accessKey':_0x39b81d,'appCode':_0x42fff5[_0x14b00a(0x1cf)],'activeSkillCodes':_0x537728,'pruneSkillCodes':_0x361bac,'scopes':_0x51ca1c}),_0x4fdada=[];for(const _0x399540 of _0x52a94a){_0x4fdada[_0x14b00a(0x1d7)](_0x42f08b(_0x399540,_0x14b00a(0x1d6),{'env':_0x2934c5,'accessKey':_0x39b81d,'appCode':_0x42fff5[_0x14b00a(0x1cf)],'force':_0x3b915d,'packageBytes':await downloadSkillPackage(_0x399540,_0x14b00a(0x1d6),_0x42fff5[_0x14b00a(0x1cf)],_0x49543b)}));}for(const _0x109053 of _0x40cad6){_0x4fdada['push'](_0x42f08b(_0x109053,_0x14b00a(0x1da),{'env':_0x2934c5,'accessKey':_0x39b81d,'appCode':_0x42fff5[_0x14b00a(0x1cf)],'force':_0x3b915d,'packageBytes':await downloadSkillPackage(_0x109053,_0x14b00a(0x1da),_0x42fff5['appCode'],_0x49543b)}));}const _0x19d335=_0x20cdec(_0x4fdada,_0x42fff5[_0x14b00a(0x1cf)]),_0x2ab0a1=countLinkActions(_0x19d335);return{'ok':!![],'data':{'appCode':_0x42fff5[_0x14b00a(0x1cf)],'personal':_0x52a94a[_0x14b00a(0x1c3)],'company':_0x40cad6[_0x14b00a(0x1c3)],'materialized':_0x4fdada[_0x14b00a(0x1c3)],'links':{'total':_0x19d335[_0x14b00a(0x1c3)],'created':_0x2ab0a1[_0x14b00a(0x1c7)]??0x0,'updated':_0x2ab0a1[_0x14b00a(0x1d3)]??0x0,'unchanged':_0x2ab0a1['unchanged']??0x0,'skipped':0x0,'conflicted':0x0},'pruned':{'links':_0x1c1418[_0x14b00a(0x1c9)](_0x1367fd=>_0x1367fd[_0x14b00a(0x1d5)]===_0x14b00a(0x1c1))[_0x14b00a(0x1c3)],'cacheDirs':_0x1955bf[_0x14b00a(0x1c9)](_0x6ee3c3=>_0x6ee3c3[_0x14b00a(0x1d5)]===_0x14b00a(0x1c1))[_0x14b00a(0x1c3)],'skipped':[..._0x1c1418,..._0x1955bf][_0x14b00a(0x1c9)](_0x4dfe90=>_0x4dfe90[_0x14b00a(0x1d5)]==='skipped')[_0x14b00a(0x1c3)]},'skills':{'personal':_0x52a94a[_0x14b00a(0x1e5)](summarizeRuntimeSkill),'company':_0x40cad6[_0x14b00a(0x1e5)](summarizeRuntimeSkill)}},'message':'Installed\x20'+_0x52a94a[_0x14b00a(0x1c3)]+_0x14b00a(0x1c4)+_0x40cad6['length']+'\x20company\x20Skill(s).'};}async function downloadSkillPackage(_0x1c1647,_0x451536,_0xaee3f1,_0x123fa6){const _0x238b5e=a44_0x264615,_0x30a913=_0x1c1647[_0x238b5e(0x1dd)]?.[_0x238b5e(0x1dc)]();return _0x30a913?_0x123fa6(_0x451536,_0x1c1647[_0x238b5e(0x1d0)],_0xaee3f1,_0x30a913):_0x123fa6(_0x451536,_0x1c1647[_0x238b5e(0x1d0)],_0xaee3f1);}function countLinkActions(_0x519c04){return _0x519c04['reduce']((_0x4bd528,_0x3ea0c2)=>{const _0x3778a9=a44_0x1516;return _0x4bd528[_0x3ea0c2['action']]=(_0x4bd528[_0x3ea0c2[_0x3778a9(0x1d5)]]??0x0)+0x1,_0x4bd528;},{});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45_0x4882de=a45_0x54ec;(function(_0x1e9299,_0x1aa435){const _0x3c23a2=a45_0x54ec,_0x510d99=_0x1e9299();while(!![]){try{const _0x45b82f=parseInt(_0x3c23a2(0x13d))/0x1+-parseInt(_0x3c23a2(0x13c))/0x2*(-parseInt(_0x3c23a2(0x130))/0x3)+parseInt(_0x3c23a2(0x137))/0x4*(-parseInt(_0x3c23a2(0x138))/0x5)+-parseInt(_0x3c23a2(0x131))/0x6*(parseInt(_0x3c23a2(0x12f))/0x7)+-parseInt(_0x3c23a2(0x141))/0x8+-parseInt(_0x3c23a2(0x143))/0x9+parseInt(_0x3c23a2(0x133))/0xa*(parseInt(_0x3c23a2(0x144))/0xb);if(_0x45b82f===_0x1aa435)break;else _0x510d99['push'](_0x510d99['shift']());}catch(_0x146a23){_0x510d99['push'](_0x510d99['shift']());}}}(a45_0x3bd7,0x90aff));function a45_0x54ec(_0x1671ce,_0x2f3dd6){_0x1671ce=_0x1671ce-0x12a;const _0x3bd7ba=a45_0x3bd7();let _0x54ecb0=_0x3bd7ba[_0x1671ce];return _0x54ecb0;}import{CliErrors}from'../../../errors.js';function a45_0x3bd7(){const _0x86dde8=['local','7658904XTeWqN','builtin','2025702OZeMhX','319BwrpkB','accessKey','skill','filter','map','production','appCode','code','length','company','str','scope','108430RYYLiZ','3HKJRUF','102RDvVDN','\x20remote\x20Skill(s).','497190pSQGoo','Listed\x20','personal','envName','24972ZlvCtv','65hTocfA','bool','read','list','808804ptHOrS','273316EXEmBI','trim','../../../skills/runtime-skill-sync.js'];a45_0x3bd7=function(){return _0x86dde8;};return a45_0x3bd7();}import{CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG}from'../flags.js';import{listScopeToRemoteScope,listScopeToRuntimeScopes,normalizeListScope,shouldListScope}from'../scopes.js';import{summarizeLocalRuntimeSkill,summarizeRuntimeSkill}from'../summary.js';export const listCommand={'service':a45_0x4882de(0x146),'command':a45_0x4882de(0x13b),'description':'List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','risk':a45_0x4882de(0x13a),'flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG],async 'execute'(_0x408a9f){const _0x4a57c2=a45_0x4882de,_0x3bdbac=_0x408a9f[_0x4a57c2(0x12d)](_0x4a57c2(0x12a)),_0x35b5ad=normalizeListScope(_0x408a9f[_0x4a57c2(0x12d)](_0x4a57c2(0x12e)));if(_0x408a9f[_0x4a57c2(0x139)]('local')){const _0x19b605=_0x408a9f[_0x4a57c2(0x145)];if(!_0x19b605)throw CliErrors['authRequired']();const {listLocalRuntimeSkills:_0x90ad18}=await import(_0x4a57c2(0x13f)),_0x1a74ad=_0x90ad18({'env':_0x408a9f[_0x4a57c2(0x136)]??_0x4a57c2(0x149),'accessKey':_0x19b605,'appCode':_0x408a9f[_0x4a57c2(0x14a)],'scopes':listScopeToRuntimeScopes(_0x35b5ad),'code':_0x3bdbac[_0x4a57c2(0x13e)]()||undefined}),_0x1a4348=groupLocalRuntimeSkills(_0x1a74ad);return{'ok':!![],'data':{'appCode':_0x408a9f[_0x4a57c2(0x14a)],'source':_0x4a57c2(0x140),'scope':_0x35b5ad,'total':_0x1a74ad['length'],'personal':_0x1a4348[_0x4a57c2(0x135)][_0x4a57c2(0x12b)],'company':_0x1a4348[_0x4a57c2(0x12c)][_0x4a57c2(0x12b)],'items':_0x1a74ad[_0x4a57c2(0x148)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x1a4348[_0x4a57c2(0x135)][_0x4a57c2(0x148)](summarizeLocalRuntimeSkill),'company':_0x1a4348[_0x4a57c2(0x12c)]['map'](summarizeLocalRuntimeSkill)}},'message':_0x4a57c2(0x134)+_0x1a74ad[_0x4a57c2(0x12b)]+'\x20local\x20Skill(s).'};}const {listRuntimeSkills:_0x2016b4}=await import('../../../core/api-client.js'),_0x449424=await _0x2016b4({'appCode':_0x408a9f[_0x4a57c2(0x14a)],'scope':listScopeToRemoteScope(_0x35b5ad),'code':_0x3bdbac[_0x4a57c2(0x13e)]()||undefined}),_0x20323d=shouldListScope(_0x35b5ad,_0x4a57c2(0x135))?_0x449424[_0x4a57c2(0x135)]??[]:[],_0x5077ed=shouldListScope(_0x35b5ad,'company')?_0x449424[_0x4a57c2(0x12c)]??[]:[],_0x5aee49=[..._0x20323d,..._0x5077ed];return{'ok':!![],'data':{'appCode':_0x408a9f[_0x4a57c2(0x14a)],'source':'remote','scope':_0x35b5ad,'total':_0x5aee49['length'],'personal':_0x20323d[_0x4a57c2(0x12b)],'company':_0x5077ed[_0x4a57c2(0x12b)],'items':_0x5aee49['map'](summarizeRuntimeSkill),'skills':{'personal':_0x20323d[_0x4a57c2(0x148)](summarizeRuntimeSkill),'company':_0x5077ed[_0x4a57c2(0x148)](summarizeRuntimeSkill)}},'message':_0x4a57c2(0x134)+_0x5aee49[_0x4a57c2(0x12b)]+_0x4a57c2(0x132)};}};function groupLocalRuntimeSkills(_0x38789a){const _0x242b3a=a45_0x4882de;return{'personal':_0x38789a['filter'](_0x351012=>_0x351012[_0x242b3a(0x12e)]===_0x242b3a(0x135)),'company':_0x38789a['filter'](_0x4c5365=>_0x4c5365['scope']==='company'),'builtin':_0x38789a[_0x242b3a(0x147)](_0x5dd183=>_0x5dd183[_0x242b3a(0x12e)]===_0x242b3a(0x142))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a46_0x72cd(_0x341c4e,_0x27b096){_0x341c4e=_0x341c4e-0xb2;const _0x1ef164=a46_0x1ef1();let _0x72cd68=_0x1ef164[_0x341c4e];return _0x72cd68;}function a46_0x1ef1(){const _0x10d27b=['162ZZdPFC','1030472LdVIrs','913240DGGYrU','9eCTKwY','2576541ByeRms','12tHmAvb','2481518nGTWin','36frTqCU','13215HESKlb','push','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope\x20or\x20submit\x20company\x20scope\x20for\x20review','1359850Bdurhc','21AdlmEG','320OZHJvS','272VGwtxQ'];a46_0x1ef1=function(){return _0x10d27b;};return a46_0x1ef1();}const a46_0x40e73a=a46_0x72cd;(function(_0xe49b82,_0x49af9c){const _0x3cb4da=a46_0x72cd,_0x3a84be=_0xe49b82();while(!![]){try{const _0x17c31a=-parseInt(_0x3cb4da(0xbc))/0x1*(-parseInt(_0x3cb4da(0xbd))/0x2)+parseInt(_0x3cb4da(0xb6))/0x3*(-parseInt(_0x3cb4da(0xbb))/0x4)+-parseInt(_0x3cb4da(0xbf))/0x5*(-parseInt(_0x3cb4da(0xb3))/0x6)+parseInt(_0x3cb4da(0xba))/0x7*(parseInt(_0x3cb4da(0xbe))/0x8)+-parseInt(_0x3cb4da(0xc0))/0x9*(-parseInt(_0x3cb4da(0xb9))/0xa)+parseInt(_0x3cb4da(0xb2))/0xb+-parseInt(_0x3cb4da(0xb5))/0xc*(parseInt(_0x3cb4da(0xb4))/0xd);if(_0x17c31a===_0x49af9c)break;else _0x3a84be['push'](_0x3a84be['shift']());}catch(_0x410bce){_0x3a84be['push'](_0x3a84be['shift']());}}}(a46_0x1ef1,0x35721));import{CONFIRM_WARNINGS_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';import{skillPushDryRun,skillPushExecute}from'../push-execute.js';export const pushCommand={'service':'skill','command':a46_0x40e73a(0xb7),'description':a46_0x40e73a(0xb8),'risk':'write','flags':[DIR_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a47_0x2c7186=a47_0x2289;function a47_0x2289(_0xc601db,_0x46ff1e){_0xc601db=_0xc601db-0x1b7;const _0x348ad4=a47_0x348a();let _0x228958=_0x348ad4[_0xc601db];return _0x228958;}(function(_0x2bb2a5,_0x26f434){const _0x49d162=a47_0x2289,_0x343955=_0x2bb2a5();while(!![]){try{const _0x802f98=parseInt(_0x49d162(0x1bb))/0x1+parseInt(_0x49d162(0x1b8))/0x2+-parseInt(_0x49d162(0x1bf))/0x3+parseInt(_0x49d162(0x1ca))/0x4*(-parseInt(_0x49d162(0x1b9))/0x5)+parseInt(_0x49d162(0x1c9))/0x6+parseInt(_0x49d162(0x1c7))/0x7*(-parseInt(_0x49d162(0x1c3))/0x8)+-parseInt(_0x49d162(0x1be))/0x9*(parseInt(_0x49d162(0x1c1))/0xa);if(_0x802f98===_0x26f434)break;else _0x343955['push'](_0x343955['shift']());}catch(_0x15cefe){_0x343955['push'](_0x343955['shift']());}}}(a47_0x348a,0x729ba));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';function a47_0x348a(){const _0x47edca=['1272308NUJzaT','985VfTBPl','read','209384nJVZzK','validate','errors','5291523coodYX','70140VAUScq','type','10OpaJNK','dir','194320kGMQQW','warnings','skill','str','112MsuhWa','bool','4610766eqOjyc','2936tCxyQH','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package'];a47_0x348a=function(){return _0x47edca;};return a47_0x348a();}export const validateCommand={'service':a47_0x2c7186(0x1c5),'command':a47_0x2c7186(0x1bc),'description':a47_0x2c7186(0x1b7),'risk':a47_0x2c7186(0x1ba),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0xf1355d){const _0x5dd257=a47_0x2c7186,_0x1b24bd=_0xf1355d[_0x5dd257(0x1c8)]('strict'),_0x312c65=validateSkillDirectory(_0xf1355d[_0x5dd257(0x1c6)](_0x5dd257(0x1c2)),{'strict':_0x1b24bd});return throwIfSkillValidationFailed(_0x312c65,_0x1b24bd),{'ok':!![],'data':{'dir':_0x312c65[_0x5dd257(0x1c2)],'type':_0x312c65[_0x5dd257(0x1c0)],'errors':_0x312c65[_0x5dd257(0x1bd)],'warnings':_0x312c65[_0x5dd257(0x1c4)]},'message':'Skill\x20validation\x20passed.'};}};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { FlagDef } from "../../framework/types.js";
|
|
2
|
+
export declare const CODE_FLAG: FlagDef;
|
|
3
|
+
export declare const SCOPE_FLAG: FlagDef;
|
|
4
|
+
export declare const PUSH_SCOPE_FLAG: FlagDef;
|
|
5
|
+
export declare const LIST_SCOPE_FLAG: FlagDef;
|
|
6
|
+
export declare const LOCAL_FLAG: FlagDef;
|
|
7
|
+
export declare const DIR_FLAG: FlagDef;
|
|
8
|
+
export declare const CREATE_NAME_FLAG: FlagDef;
|
|
9
|
+
export declare const TYPE_FLAG: FlagDef;
|
|
10
|
+
export declare const TARGET_FLAG: FlagDef;
|
|
11
|
+
export declare const FORCE_FLAG: FlagDef;
|
|
12
|
+
export declare const CONFIRM_WARNINGS_FLAG: FlagDef;
|
|
13
|
+
export declare const STRICT_FLAG: FlagDef;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a48_0x47fa70=a48_0x1aa1;(function(_0x1c455a,_0x355967){const _0x2c1eb3=a48_0x1aa1,_0x47c8f1=_0x1c455a();while(!![]){try{const _0x4ec511=-parseInt(_0x2c1eb3(0x1e5))/0x1*(parseInt(_0x2c1eb3(0x1ec))/0x2)+-parseInt(_0x2c1eb3(0x1e6))/0x3+-parseInt(_0x2c1eb3(0x1cf))/0x4*(parseInt(_0x2c1eb3(0x1dc))/0x5)+-parseInt(_0x2c1eb3(0x1d1))/0x6+-parseInt(_0x2c1eb3(0x1e4))/0x7*(-parseInt(_0x2c1eb3(0x1d3))/0x8)+parseInt(_0x2c1eb3(0x1d7))/0x9*(parseInt(_0x2c1eb3(0x1ee))/0xa)+parseInt(_0x2c1eb3(0x1e7))/0xb;if(_0x4ec511===_0x355967)break;else _0x47c8f1['push'](_0x47c8f1['shift']());}catch(_0x861bbd){_0x47c8f1['push'](_0x47c8f1['shift']());}}}(a48_0x306c,0x85fc6));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';function a48_0x1aa1(_0xb51186,_0x2e55b6){_0xb51186=_0xb51186-0x1cf;const _0x306c9d=a48_0x306c();let _0x1aa155=_0x306c9d[_0xb51186];return _0x1aa155;}export const CODE_FLAG={'name':a48_0x47fa70(0x1ea),'type':a48_0x47fa70(0x1e2),'description':a48_0x47fa70(0x1dd)};export const SCOPE_FLAG={'name':a48_0x47fa70(0x1d9),'type':a48_0x47fa70(0x1e2),'description':a48_0x47fa70(0x1d2),'enum':[a48_0x47fa70(0x1df),a48_0x47fa70(0x1eb),'company']};export const PUSH_SCOPE_FLAG={'name':a48_0x47fa70(0x1d9),'type':'string','description':a48_0x47fa70(0x1e0),'default':a48_0x47fa70(0x1eb),'enum':[a48_0x47fa70(0x1eb),a48_0x47fa70(0x1d8)]};export const LIST_SCOPE_FLAG={'name':'scope','type':a48_0x47fa70(0x1e2),'description':a48_0x47fa70(0x1f0),'enum':[a48_0x47fa70(0x1df),a48_0x47fa70(0x1eb),a48_0x47fa70(0x1d8)]};export const LOCAL_FLAG={'name':a48_0x47fa70(0x1e1),'type':'boolean','description':'Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists'};export const DIR_FLAG={'name':a48_0x47fa70(0x1ed),'type':a48_0x47fa70(0x1e2),'required':!![],'description':'Local\x20Skill\x20directory\x20containing\x20SKILL.md'};function a48_0x306c(){const _0x1f35cc=['543157LgpmFu','1884120Iuvkeg','25082189cVAAvJ','Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings','confirm-warnings','code','personal','2YRMAcJ','dir','510sIzFoy','name','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','boolean','Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','65708LzXYtL','type','5509062fOgQCj','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','40maHCZB','target','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists','51579YaCqek','company','scope','strict','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','75UFXFpT','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','all','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','local','string','force','436947JbQCPo'];a48_0x306c=function(){return _0x1f35cc;};return a48_0x306c();}export const CREATE_NAME_FLAG={'name':a48_0x47fa70(0x1ef),'type':a48_0x47fa70(0x1e2),'required':!![],'description':a48_0x47fa70(0x1d5),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a48_0x47fa70(0x1de)}};export const TYPE_FLAG={'name':a48_0x47fa70(0x1d0),'type':'string','description':a48_0x47fa70(0x1f2),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a48_0x47fa70(0x1d4),'type':'string','description':a48_0x47fa70(0x1db),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a48_0x47fa70(0x1e3),'type':a48_0x47fa70(0x1f1),'description':a48_0x47fa70(0x1d6)};export const CONFIRM_WARNINGS_FLAG={'name':a48_0x47fa70(0x1e9),'type':'boolean','description':a48_0x47fa70(0x1e8)};export const STRICT_FLAG={'name':a48_0x47fa70(0x1da),'type':'boolean','description':'Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled'};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Runtime business Skill command definitions.
|
|
3
|
+
*
|
|
4
|
+
* `skill install` is the consumer-facing business Skill installer. CLI runtime
|
|
5
|
+
* built-in Skill setup lives under `cli-skill install`.
|
|
6
|
+
*/
|
|
7
|
+
import type { CommandDefinition } from "../../framework/types.js";
|
|
8
|
+
/** Declarative definitions for the `skill` service. */
|
|
9
|
+
export declare const skillDefinitions: CommandDefinition[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xfdade9,_0x23dedc){const _0x5c7d40=a49_0x3a42,_0x1f79fd=_0xfdade9();while(!![]){try{const _0x191341=parseInt(_0x5c7d40(0x92))/0x1*(-parseInt(_0x5c7d40(0x93))/0x2)+parseInt(_0x5c7d40(0x98))/0x3*(-parseInt(_0x5c7d40(0x94))/0x4)+-parseInt(_0x5c7d40(0x95))/0x5*(parseInt(_0x5c7d40(0x9a))/0x6)+-parseInt(_0x5c7d40(0x99))/0x7+parseInt(_0x5c7d40(0x9b))/0x8+parseInt(_0x5c7d40(0x97))/0x9+parseInt(_0x5c7d40(0x96))/0xa;if(_0x191341===_0x23dedc)break;else _0x1f79fd['push'](_0x1f79fd['shift']());}catch(_0x40d16f){_0x1f79fd['push'](_0x1f79fd['shift']());}}}(a49_0x191b,0x8c93b));import{createCommand}from'./commands/create.js';function a49_0x3a42(_0x2e408d,_0x4a600c){_0x2e408d=_0x2e408d-0x92;const _0x191bb4=a49_0x191b();let _0x3a42bc=_0x191bb4[_0x2e408d];return _0x3a42bc;}import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';import{pushCommand}from'./commands/push.js';import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand];function a49_0x191b(){const _0x1b68af=['1516992pqgyxd','1huajay','930838PJKZrJ','185648URAocT','5JqMwck','23998360PboiAV','4139460cmykeK','6cjJHLT','5657491uiaayr','6642846sCcixi'];a49_0x191b=function(){return _0x1b68af;};return a49_0x191b();}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { RuntimeSkillFilesManifest, RuntimeSkillItem } from "../../core/api-client.js";
|
|
2
|
+
/** Checks whether a backend files payload points to a stored Skill package. */
|
|
3
|
+
export declare function isPackageBackedManifest(files: RuntimeSkillItem["files"]): files is RuntimeSkillFilesManifest;
|
|
4
|
+
/** Checks whether a files manifest contains entries beyond the root SKILL.md. */
|
|
5
|
+
export declare function isMultiFileManifest(files: RuntimeSkillItem["files"]): files is RuntimeSkillFilesManifest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3257d7,_0x1a44e3){var _0x9e3481=a50_0x2351,_0x3ac9a2=_0x3257d7();while(!![]){try{var _0x456eb7=-parseInt(_0x9e3481(0x183))/0x1+-parseInt(_0x9e3481(0x17f))/0x2+parseInt(_0x9e3481(0x17e))/0x3*(-parseInt(_0x9e3481(0x17d))/0x4)+-parseInt(_0x9e3481(0x17b))/0x5+-parseInt(_0x9e3481(0x181))/0x6+parseInt(_0x9e3481(0x186))/0x7+parseInt(_0x9e3481(0x18b))/0x8*(parseInt(_0x9e3481(0x180))/0x9);if(_0x456eb7===_0x1a44e3)break;else _0x3ac9a2['push'](_0x3ac9a2['shift']());}catch(_0x251c7f){_0x3ac9a2['push'](_0x3ac9a2['shift']());}}}(a50_0x43ab,0xb14c5));function a50_0x2351(_0x4ee5c6,_0x376f43){_0x4ee5c6=_0x4ee5c6-0x17b;var _0x43ab60=a50_0x43ab();var _0x2351d7=_0x43ab60[_0x4ee5c6];return _0x2351d7;}function a50_0x43ab(){var _0x53239f=['1362418PXvUEM','22923bSeaHT','1571832aFmdTx','SKILL.md','602619Mgashz','object','files','365876uabEcR','some','isArray','path','string','11976OrMwbD','length','5720945IugpYj','ossPath','1795700IlipWY','3NAxhXX'];a50_0x43ab=function(){return _0x53239f;};return a50_0x43ab();}export function isPackageBackedManifest(_0xa3963f){var _0x285db3=a50_0x2351;return!!_0xa3963f&&typeof _0xa3963f==='object'&&!Array[_0x285db3(0x188)](_0xa3963f)&&typeof _0xa3963f[_0x285db3(0x17c)]===_0x285db3(0x18a)&&_0xa3963f[_0x285db3(0x17c)][_0x285db3(0x18c)]>0x0&&Array['isArray'](_0xa3963f[_0x285db3(0x185)]);}export function isMultiFileManifest(_0x3fe665){var _0x5c13d0=a50_0x2351;return!!_0x3fe665&&typeof _0x3fe665===_0x5c13d0(0x184)&&!Array[_0x5c13d0(0x188)](_0x3fe665)&&Array['isArray'](_0x3fe665[_0x5c13d0(0x185)])&&_0x3fe665[_0x5c13d0(0x185)][_0x5c13d0(0x187)](_0x3710fa=>_0x3710fa[_0x5c13d0(0x189)]!==_0x5c13d0(0x182));}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { RuntimeContext } from "../../framework/types.js";
|
|
2
|
+
import type { RuntimeSkillContentScope } from "./push-flow-helpers.js";
|
|
3
|
+
import type { SkillValidationIssue } from "./validate.js";
|
|
4
|
+
/** Previews a Skill push without creating a remote version. */
|
|
5
|
+
export declare function skillPushDryRun(ctx: RuntimeContext): Promise<{
|
|
6
|
+
method: string;
|
|
7
|
+
url: string;
|
|
8
|
+
body: {
|
|
9
|
+
skillCode: string;
|
|
10
|
+
visibility: string;
|
|
11
|
+
valid: boolean;
|
|
12
|
+
errors: string[];
|
|
13
|
+
warnings: string[];
|
|
14
|
+
resolvedSlug: string | undefined;
|
|
15
|
+
resolvedVersion: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
description: string;
|
|
18
|
+
}>;
|
|
19
|
+
/** Executes a personal Skill push or a company review submission. */
|
|
20
|
+
export declare function skillPushExecute(ctx: RuntimeContext): Promise<{
|
|
21
|
+
ok: boolean;
|
|
22
|
+
data: {
|
|
23
|
+
alreadyPublished: boolean;
|
|
24
|
+
contentIdentical: boolean;
|
|
25
|
+
warnings?: SkillValidationIssue[] | undefined;
|
|
26
|
+
scope: RuntimeSkillContentScope;
|
|
27
|
+
};
|
|
28
|
+
message: string;
|
|
29
|
+
} | {
|
|
30
|
+
ok: boolean;
|
|
31
|
+
data: {
|
|
32
|
+
scope: string;
|
|
33
|
+
reviewState: string;
|
|
34
|
+
submittedForReview: boolean;
|
|
35
|
+
validation: {
|
|
36
|
+
warnings: string[];
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
message: string;
|
|
40
|
+
} | {
|
|
41
|
+
ok: boolean;
|
|
42
|
+
data: {
|
|
43
|
+
warnings: SkillValidationIssue[];
|
|
44
|
+
validation: {
|
|
45
|
+
warnings: string[];
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
message: string;
|
|
49
|
+
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x18739f,_0xf80199){const _0x4ee05c=a50_0x3fc8,_0x29921d=_0x18739f();while(!![]){try{const _0x6b9eeb=parseInt(_0x4ee05c(0x1b6))/0x1*(-parseInt(_0x4ee05c(0x1a3))/0x2)+-parseInt(_0x4ee05c(0x18e))/0x3*(parseInt(_0x4ee05c(0x19e))/0x4)+-parseInt(_0x4ee05c(0x183))/0x5+-parseInt(_0x4ee05c(0x190))/0x6*(-parseInt(_0x4ee05c(0x186))/0x7)+-parseInt(_0x4ee05c(0x180))/0x8+parseInt(_0x4ee05c(0x19a))/0x9*(parseInt(_0x4ee05c(0x191))/0xa)+parseInt(_0x4ee05c(0x1a0))/0xb*(parseInt(_0x4ee05c(0x1a6))/0xc);if(_0x6b9eeb===_0xf80199)break;else _0x29921d['push'](_0x29921d['shift']());}catch(_0x36acce){_0x29921d['push'](_0x29921d['shift']());}}}(a50_0x4606,0x71258));import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';import{allowRetargetArgs,buildRetargetWarning,remoteFirstMetadataOptions,resolvePushScope,runRemoteContentPreflight,throwIfBuiltinPushTarget,throwIfUnconfirmedPublishWarnings,throwIfPublishValidationFailed}from'./push-flow-helpers.js';import{withRetargetExistingMetadata}from'./push-retarget.js';import{summarizeRuntimeSkill}from'./summary.js';function a50_0x3fc8(_0x28dc6b,_0x1a980c){_0x28dc6b=_0x28dc6b-0x180;const _0x46068b=a50_0x4606();let _0x3fc880=_0x46068b[_0x28dc6b];return _0x3fc880;}import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x38ce1e){const _0x3ee0e0=a50_0x3fc8,{getRuntimeSkillByCode:_0x142a5d,validateRuntimeSkillPublish:_0x9a4a0f}=await import(_0x3ee0e0(0x19c)),{readPushDirectory:_0x2548f6,resolvePushDirectoryIdentity:_0x1d4516}=await import(_0x3ee0e0(0x1a9));if(!_0x38ce1e['accessKey'])throw CliErrors[_0x3ee0e0(0x18f)]();const _0x217c53=resolvePushScope(_0x38ce1e),_0x1c65e=validateSkillDirectory(_0x38ce1e['str']('dir'));throwIfSkillValidationFailed(_0x1c65e);const _0x303581=_0x1d4516(_0x1c65e[_0x3ee0e0(0x1ad)],_0x38ce1e[_0x3ee0e0(0x192)],remoteFirstMetadataOptions()),_0x55ee3e=await _0x142a5d(_0x38ce1e[_0x3ee0e0(0x192)],_0x303581[_0x3ee0e0(0x184)]);throwIfBuiltinPushTarget(_0x55ee3e);if(_0x217c53===_0x3ee0e0(0x1a2)){const _0x4e1af0=_0x2548f6(_0x1c65e[_0x3ee0e0(0x1ad)],_0x38ce1e[_0x3ee0e0(0x192)],remoteMissingCompanyReadOptions()),_0x39f03b=await _0x9a4a0f(_0x38ce1e['appCode'],_0x4e1af0[_0x3ee0e0(0x1ab)],{'visibility':_0x3ee0e0(0x1bd)});return{'method':'POST','url':_0x3ee0e0(0x1b4)+_0x38ce1e['appCode']+_0x3ee0e0(0x185),'body':{'skillCode':_0x4e1af0[_0x3ee0e0(0x184)],'visibility':'NAMESPACE_ONLY','valid':_0x39f03b['valid'],'errors':_0x39f03b[_0x3ee0e0(0x19d)],'warnings':_0x39f03b[_0x3ee0e0(0x198)],'resolvedSlug':_0x39f03b['resolvedSlug'],'resolvedVersion':_0x39f03b[_0x3ee0e0(0x1aa)]},'description':_0x3ee0e0(0x1ae)};}if(_0x55ee3e&&_0x55ee3e[_0x3ee0e0(0x1b8)]!==_0x3ee0e0(0x18d))throw CliErrors[_0x3ee0e0(0x181)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20'+_0x303581['skillCode']+_0x3ee0e0(0x1b7)+(_0x55ee3e[_0x3ee0e0(0x1b8)]??_0x3ee0e0(0x18a))+'\x22.');const _0x22c2f1=_0x2548f6(_0x1c65e['dir'],_0x38ce1e[_0x3ee0e0(0x192)],_0x55ee3e?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions()),_0x4676b4=await _0x9a4a0f(_0x38ce1e[_0x3ee0e0(0x192)],_0x22c2f1[_0x3ee0e0(0x1ab)],{'visibility':_0x3ee0e0(0x1a8)});return{'method':_0x3ee0e0(0x1af),'url':_0x3ee0e0(0x1b4)+_0x38ce1e['appCode']+'/publish/validate','body':{'skillCode':_0x22c2f1[_0x3ee0e0(0x184)],'visibility':_0x3ee0e0(0x1a8),'valid':_0x4676b4[_0x3ee0e0(0x1ba)],'errors':_0x4676b4[_0x3ee0e0(0x19d)],'warnings':_0x4676b4['warnings'],'resolvedSlug':_0x4676b4[_0x3ee0e0(0x18c)],'resolvedVersion':_0x4676b4[_0x3ee0e0(0x1aa)]},'description':'Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.'};}function a50_0x4606(){const _0x5b0f88=['input','confirmWarnings','dir','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','POST','Personal','existing','bool','savedSkill','/api/cli/v1/skills/','Updated\x20personal\x20Skill\x20','968MAJLze','\x20has\x20scope=\x22','scope','confirm-warnings','valid','appcode','remoteForPreflight','NAMESPACE_ONLY','str','1141192rfigsj','validation','publishInput','2354335qKgpAN','skillCode','/publish/validate','280mxIpYy','\x20for\x20review','files','version','unknown','\x20Skill\x20','resolvedSlug','personal','27129BiizVd','authRequired','54066OREXBa','708060QhfLTr','appCode','Submitted\x20company\x20Skill\x20','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','identical','accessKey','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','warnings','frontmatterDisplayName','45IYGetQ','(unknown)','../../core/api-client.js','errors','236zIemeM','Created\x20personal\x20Skill\x20','4345bSqbWi','payload','company','686KTogge','metadata','\x20version\x20','37308vfWwoX','trim','PRIVATE','../../skills/runtime-skill-sync.js','resolvedVersion'];a50_0x4606=function(){return _0x5b0f88;};return a50_0x4606();}export async function skillPushExecute(_0xec8101){const _0x2fd13c=a50_0x3fc8,{createPersonalRuntimeSkill:_0x3f632d,downloadRuntimeSkillPackage:_0x5be923,getRuntimeSkillByCode:_0x3c7b63,publishCompanyRuntimeSkill:_0x368ba6,updatePersonalRuntimeSkill:_0x456bed,validateRuntimeSkillPublish:_0x2fc328}=await import(_0x2fd13c(0x19c)),{verifyRuntimeSkillPackage:_0x27162c,verifyRuntimeSkillBundle:_0x51bb8b,readPushDirectory:_0x3b560a,refreshPushDirectoryMetadataFromRemote:_0x3ec925,recordPushedRuntimeSkill:_0x25e6d0,resolvePushDirectoryIdentity:_0x32882a}=await import(_0x2fd13c(0x1a9));if(!_0xec8101[_0x2fd13c(0x196)])throw CliErrors[_0x2fd13c(0x18f)]();const _0x24513f=resolvePushScope(_0xec8101),_0x5589d9=_0xec8101[_0x2fd13c(0x1b2)](_0x2fd13c(0x1b9))||_0xec8101[_0x2fd13c(0x1b2)](_0x2fd13c(0x1ac)),_0x2fc098=validateSkillDirectory(_0xec8101['str'](_0x2fd13c(0x1ad)));throwIfSkillValidationFailed(_0x2fc098);const _0x4ec139=_0x2fc098[_0x2fd13c(0x1ad)];let _0x32647a;if(_0x24513f==='company'){const _0x59ed1a=_0x32882a(_0x4ec139,_0xec8101[_0x2fd13c(0x192)],remoteFirstMetadataOptions()),_0x1c97b7=await _0x3c7b63(_0xec8101[_0x2fd13c(0x192)],_0x59ed1a['skillCode']);throwIfBuiltinPushTarget(_0x1c97b7);if(_0x1c97b7)_0x3ec925(_0x4ec139,_0x1c97b7,_0xec8101[_0x2fd13c(0x192)]);const _0x3306fe=_0x3b560a(_0x4ec139,_0xec8101[_0x2fd13c(0x192)],_0x1c97b7?{'targetScope':_0x2fd13c(0x1a2),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions());_0x32647a={'scope':_0x2fd13c(0x1a2),'payload':_0x3306fe,'publishInput':_0x3306fe[_0x2fd13c(0x1ab)],'remoteForPreflight':_0x1c97b7,'warnings':[]};}else{const _0x5872af=_0xec8101[_0x2fd13c(0x1be)](_0x2fd13c(0x1bb))[_0x2fd13c(0x1a7)](),_0x92f5c2=Boolean(_0x5872af),_0xf77371=allowRetargetArgs(_0x92f5c2),_0xd04fbc=_0x32882a(_0x4ec139,_0xec8101[_0x2fd13c(0x192)],{...remoteFirstMetadataOptions(),..._0xf77371[0x0]}),_0x945a76=await _0x3c7b63(_0xec8101['appCode'],_0xd04fbc[_0x2fd13c(0x184)]);throwIfBuiltinPushTarget(_0x945a76);if(_0x945a76){if(_0x945a76[_0x2fd13c(0x1b8)]!==_0x2fd13c(0x18d)){if(_0x92f5c2)throw CliErrors[_0x2fd13c(0x181)](_0x2fd13c(0x194)+_0xd04fbc[_0x2fd13c(0x184)]+_0x2fd13c(0x1b7)+(_0x945a76[_0x2fd13c(0x1b8)]??_0x2fd13c(0x18a))+'\x22.');_0x3ec925(_0x4ec139,_0x945a76,_0xec8101[_0x2fd13c(0x192)]);}else!_0x92f5c2&&_0x3ec925(_0x4ec139,_0x945a76,_0xec8101['appCode']);}const _0xab64ab=_0x3b560a(_0x4ec139,_0xec8101['appCode'],_0x945a76?remotePersonalReadOptions(_0x92f5c2,_0xf77371[0x0]):remoteMissingPersonalReadOptions(_0xf77371[0x0])),_0x49a23e=_0x945a76?.[_0x2fd13c(0x1b8)]==='personal'&&_0x945a76[_0x2fd13c(0x184)]===_0xab64ab[_0x2fd13c(0x184)]?_0x945a76:undefined,_0x548843=_0x92f5c2&&_0x49a23e?withRetargetExistingMetadata(_0xab64ab[_0x2fd13c(0x1ab)],_0x49a23e,{'preferInputSkillName':Boolean(_0xab64ab[_0x2fd13c(0x199)])}):_0xab64ab[_0x2fd13c(0x1ab)],_0x109352=_0x92f5c2?buildRetargetWarning(_0xd04fbc[_0x2fd13c(0x1a4)],_0xec8101[_0x2fd13c(0x192)]):[];_0x32647a={'scope':_0x2fd13c(0x18d),'payload':_0xab64ab,'publishInput':_0x548843,'remoteForPreflight':_0x49a23e,'existing':_0x49a23e,'warnings':[..._0x2fc098['warnings'],..._0x109352]};}const _0x25753d=await runRemoteContentPreflight({'scope':_0x32647a[_0x2fd13c(0x1b8)],'remote':_0x32647a[_0x2fd13c(0x1bc)],'publishInput':_0x32647a['publishInput'],'skillCode':_0x32647a[_0x2fd13c(0x1a1)][_0x2fd13c(0x184)],'appCode':_0xec8101[_0x2fd13c(0x192)],'downloadRuntimeSkillPackage':_0x5be923,'verifyRuntimeSkillBundle':_0x51bb8b});if(_0x25753d['status']===_0x2fd13c(0x195))return _0x32647a[_0x2fd13c(0x1b8)]===_0x2fd13c(0x1a2)?_0x25e6d0(_0x4ec139,_0x25753d[_0x2fd13c(0x1b3)],_0xec8101[_0x2fd13c(0x192)],{'scope':_0x2fd13c(0x1a2)}):_0x25e6d0(_0x4ec139,_0x25753d['savedSkill'],_0xec8101[_0x2fd13c(0x192)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x25753d[_0x2fd13c(0x1b3)]),'scope':_0x32647a[_0x2fd13c(0x1b8)],..._0x32647a[_0x2fd13c(0x1b8)]===_0x2fd13c(0x18d)?{'warnings':_0x32647a[_0x2fd13c(0x198)]}:{},'alreadyPublished':!![],'contentIdentical':!![]},'message':scopeLabel(_0x32647a[_0x2fd13c(0x1b8)])+_0x2fd13c(0x18b)+_0x32647a[_0x2fd13c(0x1a1)][_0x2fd13c(0x184)]+_0x2fd13c(0x197)};if(_0x32647a[_0x2fd13c(0x1b8)]===_0x2fd13c(0x1a2)){const _0x4facbd=await _0x2fc328(_0xec8101[_0x2fd13c(0x192)],_0x32647a[_0x2fd13c(0x182)],{'visibility':_0x2fd13c(0x1bd)});throwIfPublishValidationFailed(_0x2fd13c(0x1a2),_0x32647a[_0x2fd13c(0x1a1)][_0x2fd13c(0x184)],_0x4facbd),throwIfUnconfirmedPublishWarnings(_0x2fd13c(0x1a2),_0x32647a['payload'][_0x2fd13c(0x184)],_0x4facbd[_0x2fd13c(0x198)],_0x5589d9);const _0x521c96=await _0x368ba6(_0xec8101['appCode'],_0x32647a[_0x2fd13c(0x182)],{'confirmWarnings':_0x5589d9});return _0x25e6d0(_0x4ec139,{..._0x521c96,'files':_0x32647a[_0x2fd13c(0x182)][_0x2fd13c(0x188)]},_0xec8101[_0x2fd13c(0x192)],{'scope':'company'}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x521c96),'scope':_0x2fd13c(0x1a2),'reviewState':'submitted','submittedForReview':!![],'validation':{'warnings':_0x4facbd[_0x2fd13c(0x198)]}},'message':_0x2fd13c(0x193)+_0x32647a[_0x2fd13c(0x1a1)][_0x2fd13c(0x184)]+_0x2fd13c(0x1a5)+(_0x521c96[_0x2fd13c(0x189)]??_0x2fd13c(0x19b))+_0x2fd13c(0x187)};}const _0x3d6482=await _0x2fc328(_0xec8101[_0x2fd13c(0x192)],_0x32647a['publishInput'],{'visibility':_0x2fd13c(0x1a8)});throwIfPublishValidationFailed(_0x2fd13c(0x18d),_0x32647a[_0x2fd13c(0x1a1)][_0x2fd13c(0x184)],_0x3d6482),throwIfUnconfirmedPublishWarnings(_0x2fd13c(0x18d),_0x32647a[_0x2fd13c(0x1a1)][_0x2fd13c(0x184)],_0x3d6482[_0x2fd13c(0x198)],_0x5589d9);const _0x222ba4={'confirmWarnings':_0x5589d9},_0x5db171=_0x32647a[_0x2fd13c(0x1b1)]?await _0x456bed(_0x32647a['payload']['skillCode'],_0xec8101['appCode'],_0x32647a['publishInput'],_0x222ba4):await _0x3f632d(_0xec8101[_0x2fd13c(0x192)],_0x32647a['publishInput'],_0x222ba4);let _0x477e76=_0x5db171;if(isMultiFileManifest(_0x32647a['publishInput'][_0x2fd13c(0x188)])){const _0x12049a=await _0x5be923(_0x2fd13c(0x18d),_0x5db171[_0x2fd13c(0x184)]||_0x32647a[_0x2fd13c(0x1a1)][_0x2fd13c(0x184)],_0xec8101['appCode']);_0x51bb8b(_0x32647a[_0x2fd13c(0x182)][_0x2fd13c(0x188)],_0x12049a),_0x477e76={..._0x5db171,'files':_0x32647a[_0x2fd13c(0x182)][_0x2fd13c(0x188)]};}else{if(isPackageBackedManifest(_0x5db171[_0x2fd13c(0x188)])){const _0x4a26b9=await _0x5be923('personal',_0x5db171[_0x2fd13c(0x184)]||_0x32647a['payload'][_0x2fd13c(0x184)],_0xec8101['appCode']);_0x27162c(_0x5db171[_0x2fd13c(0x188)],_0x4a26b9);}}return _0x25e6d0(_0x4ec139,_0x477e76,_0xec8101[_0x2fd13c(0x192)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x5db171),'warnings':_0x32647a[_0x2fd13c(0x198)],'validation':{'warnings':_0x3d6482[_0x2fd13c(0x198)]}},'message':_0x32647a[_0x2fd13c(0x1b1)]?_0x2fd13c(0x1b5)+_0x32647a[_0x2fd13c(0x1a1)][_0x2fd13c(0x184)]:_0x2fd13c(0x19f)+_0x32647a[_0x2fd13c(0x1a1)][_0x2fd13c(0x184)]};}function scopeLabel(_0x53afb2){const _0x41adb5=a50_0x3fc8;return _0x53afb2===_0x41adb5(0x1a2)?'Company':_0x41adb5(0x1b0);}
|
|
1
|
+
function a51_0x3998(_0x3e88b7,_0x2f5d25){_0x3e88b7=_0x3e88b7-0x185;const _0xf223f7=a51_0xf223();let _0x39986d=_0xf223f7[_0x3e88b7];return _0x39986d;}(function(_0x1f6122,_0x2f2bc5){const _0x8e4bd5=a51_0x3998,_0xb5d85d=_0x1f6122();while(!![]){try{const _0x147d42=-parseInt(_0x8e4bd5(0x18d))/0x1*(parseInt(_0x8e4bd5(0x18c))/0x2)+parseInt(_0x8e4bd5(0x187))/0x3+-parseInt(_0x8e4bd5(0x18b))/0x4+-parseInt(_0x8e4bd5(0x188))/0x5*(-parseInt(_0x8e4bd5(0x1ae))/0x6)+parseInt(_0x8e4bd5(0x1b9))/0x7*(-parseInt(_0x8e4bd5(0x1ad))/0x8)+parseInt(_0x8e4bd5(0x1bc))/0x9+-parseInt(_0x8e4bd5(0x1b3))/0xa*(-parseInt(_0x8e4bd5(0x190))/0xb);if(_0x147d42===_0x2f2bc5)break;else _0xb5d85d['push'](_0xb5d85d['shift']());}catch(_0x5b6158){_0xb5d85d['push'](_0xb5d85d['shift']());}}}(a51_0xf223,0x91cd3));import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';function a51_0xf223(){const _0x342db2=['3790vHafNH','company','resolvedVersion','appcode','appCode','confirm-warnings','4905047UJZXeR','PRIVATE','existing','1090530lgcQCm','personal','\x20version\x20','valid','/api/cli/v1/skills/','934857bdkOSN','5PUbDPm','../../skills/runtime-skill-sync.js','../../core/api-client.js','2709436ySVZaw','1488rLVaHR','59GFCAkn','payload','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','40403DtpUhc','str','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','warnings','\x20has\x20scope=\x22','publishInput','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','submitted','bool','resolvedSlug','status','accessKey','POST','identical','trim','\x20Skill\x20','skillCode','confirmWarnings','(unknown)','scope','Updated\x20personal\x20Skill\x20','validation','dir','savedSkill','unknown','Personal','files','authRequired','NAMESPACE_ONLY','8sZcryk','1165938bMIwcw','version','Created\x20personal\x20Skill\x20','input','remoteForPreflight'];a51_0xf223=function(){return _0x342db2;};return a51_0xf223();}import{allowRetargetArgs,buildRetargetWarning,remoteFirstMetadataOptions,resolvePushScope,runRemoteContentPreflight,throwIfBuiltinPushTarget,throwIfUnconfirmedPublishWarnings,throwIfPublishValidationFailed}from'./push-flow-helpers.js';import{withRetargetExistingMetadata}from'./push-retarget.js';import{summarizeRuntimeSkill}from'./summary.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x5f3c33){const _0x45d190=a51_0x3998,{getRuntimeSkillByCode:_0x17bfbe,validateRuntimeSkillPublish:_0x257f32}=await import(_0x45d190(0x18a)),{readPushDirectory:_0x303f0d,resolvePushDirectoryIdentity:_0x23164f}=await import(_0x45d190(0x189));if(!_0x5f3c33[_0x45d190(0x19b)])throw CliErrors['authRequired']();const _0x1bcc4e=resolvePushScope(_0x5f3c33),_0x1bd45c=validateSkillDirectory(_0x5f3c33['str'](_0x45d190(0x1a6)));throwIfSkillValidationFailed(_0x1bd45c);const _0x3ea791=_0x23164f(_0x1bd45c[_0x45d190(0x1a6)],_0x5f3c33['appCode'],remoteFirstMetadataOptions()),_0x25959e=await _0x17bfbe(_0x5f3c33[_0x45d190(0x1b7)],_0x3ea791[_0x45d190(0x1a0)]);throwIfBuiltinPushTarget(_0x25959e);if(_0x1bcc4e===_0x45d190(0x1b4)){const _0xdaf8f7=_0x303f0d(_0x1bd45c[_0x45d190(0x1a6)],_0x5f3c33[_0x45d190(0x1b7)],remoteMissingCompanyReadOptions()),_0x5bfbcd=await _0x257f32(_0x5f3c33['appCode'],_0xdaf8f7[_0x45d190(0x1b1)],{'visibility':_0x45d190(0x1ac)});return{'method':'POST','url':_0x45d190(0x186)+_0x5f3c33[_0x45d190(0x1b7)]+'/publish/validate','body':{'skillCode':_0xdaf8f7[_0x45d190(0x1a0)],'visibility':_0x45d190(0x1ac),'valid':_0x5bfbcd[_0x45d190(0x185)],'errors':_0x5bfbcd['errors'],'warnings':_0x5bfbcd[_0x45d190(0x193)],'resolvedSlug':_0x5bfbcd[_0x45d190(0x199)],'resolvedVersion':_0x5bfbcd[_0x45d190(0x1b5)]},'description':_0x45d190(0x196)};}if(_0x25959e&&_0x25959e[_0x45d190(0x1a3)]!==_0x45d190(0x1bd))throw CliErrors[_0x45d190(0x1a5)](_0x45d190(0x192)+_0x3ea791['skillCode']+_0x45d190(0x194)+(_0x25959e[_0x45d190(0x1a3)]??_0x45d190(0x1a8))+'\x22.');const _0x565c76=_0x303f0d(_0x1bd45c[_0x45d190(0x1a6)],_0x5f3c33[_0x45d190(0x1b7)],_0x25959e?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions()),_0x563cf0=await _0x257f32(_0x5f3c33['appCode'],_0x565c76['input'],{'visibility':'PRIVATE'});return{'method':_0x45d190(0x19c),'url':_0x45d190(0x186)+_0x5f3c33[_0x45d190(0x1b7)]+'/publish/validate','body':{'skillCode':_0x565c76[_0x45d190(0x1a0)],'visibility':_0x45d190(0x1ba),'valid':_0x563cf0[_0x45d190(0x185)],'errors':_0x563cf0['errors'],'warnings':_0x563cf0['warnings'],'resolvedSlug':_0x563cf0[_0x45d190(0x199)],'resolvedVersion':_0x563cf0[_0x45d190(0x1b5)]},'description':_0x45d190(0x18f)};}export async function skillPushExecute(_0x5f1414){const _0x145f17=a51_0x3998,{createPersonalRuntimeSkill:_0x4b299e,downloadRuntimeSkillPackage:_0x2bfdf5,getRuntimeSkillByCode:_0x56129a,publishCompanyRuntimeSkill:_0x158d94,updatePersonalRuntimeSkill:_0x16e2c9,validateRuntimeSkillPublish:_0x5dd172}=await import(_0x145f17(0x18a)),{verifyRuntimeSkillPackage:_0x1095f1,verifyRuntimeSkillBundle:_0x1f117c,readPushDirectory:_0x267167,refreshPushDirectoryMetadataFromRemote:_0x277533,recordPushedRuntimeSkill:_0x2b596d,resolvePushDirectoryIdentity:_0x203d99}=await import(_0x145f17(0x189));if(!_0x5f1414[_0x145f17(0x19b)])throw CliErrors[_0x145f17(0x1ab)]();const _0x2fa04b=resolvePushScope(_0x5f1414),_0x55f4e8=_0x5f1414[_0x145f17(0x198)](_0x145f17(0x1b8))||_0x5f1414['bool'](_0x145f17(0x1a1)),_0x27d98d=validateSkillDirectory(_0x5f1414['str'](_0x145f17(0x1a6)));throwIfSkillValidationFailed(_0x27d98d);const _0x464f64=_0x27d98d[_0x145f17(0x1a6)];let _0x569beb;if(_0x2fa04b===_0x145f17(0x1b4)){const _0x24079b=_0x203d99(_0x464f64,_0x5f1414[_0x145f17(0x1b7)],remoteFirstMetadataOptions()),_0xefd262=await _0x56129a(_0x5f1414[_0x145f17(0x1b7)],_0x24079b['skillCode']);throwIfBuiltinPushTarget(_0xefd262);if(_0xefd262)_0x277533(_0x464f64,_0xefd262,_0x5f1414[_0x145f17(0x1b7)]);const _0x4fb54f=_0x267167(_0x464f64,_0x5f1414['appCode'],_0xefd262?{'targetScope':_0x145f17(0x1b4),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions());_0x569beb={'scope':'company','payload':_0x4fb54f,'publishInput':_0x4fb54f[_0x145f17(0x1b1)],'remoteForPreflight':_0xefd262,'warnings':[]};}else{const _0x56e59d=_0x5f1414[_0x145f17(0x191)](_0x145f17(0x1b6))[_0x145f17(0x19e)](),_0x1be998=Boolean(_0x56e59d),_0x14c479=allowRetargetArgs(_0x1be998),_0x1d6c3b=_0x203d99(_0x464f64,_0x5f1414[_0x145f17(0x1b7)],{...remoteFirstMetadataOptions(),..._0x14c479[0x0]}),_0x3095e3=await _0x56129a(_0x5f1414[_0x145f17(0x1b7)],_0x1d6c3b['skillCode']);throwIfBuiltinPushTarget(_0x3095e3);if(_0x3095e3){if(_0x3095e3['scope']!==_0x145f17(0x1bd)){if(_0x1be998)throw CliErrors['validation'](_0x145f17(0x192)+_0x1d6c3b[_0x145f17(0x1a0)]+_0x145f17(0x194)+(_0x3095e3[_0x145f17(0x1a3)]??_0x145f17(0x1a8))+'\x22.');_0x277533(_0x464f64,_0x3095e3,_0x5f1414[_0x145f17(0x1b7)]);}else!_0x1be998&&_0x277533(_0x464f64,_0x3095e3,_0x5f1414[_0x145f17(0x1b7)]);}const _0x41f085=_0x267167(_0x464f64,_0x5f1414[_0x145f17(0x1b7)],_0x3095e3?remotePersonalReadOptions(_0x1be998,_0x14c479[0x0]):remoteMissingPersonalReadOptions(_0x14c479[0x0])),_0x481b0b=_0x3095e3?.[_0x145f17(0x1a3)]===_0x145f17(0x1bd)&&_0x3095e3[_0x145f17(0x1a0)]===_0x41f085[_0x145f17(0x1a0)]?_0x3095e3:undefined,_0x6165f3=_0x1be998&&_0x481b0b?withRetargetExistingMetadata(_0x41f085['input'],_0x481b0b,{'preferInputSkillName':Boolean(_0x41f085['frontmatterDisplayName'])}):_0x41f085[_0x145f17(0x1b1)],_0x54fffa=_0x1be998?buildRetargetWarning(_0x1d6c3b['metadata'],_0x5f1414[_0x145f17(0x1b7)]):[];_0x569beb={'scope':_0x145f17(0x1bd),'payload':_0x41f085,'publishInput':_0x6165f3,'remoteForPreflight':_0x481b0b,'existing':_0x481b0b,'warnings':[..._0x27d98d[_0x145f17(0x193)],..._0x54fffa]};}const _0x5e3175=await runRemoteContentPreflight({'scope':_0x569beb[_0x145f17(0x1a3)],'remote':_0x569beb[_0x145f17(0x1b2)],'publishInput':_0x569beb[_0x145f17(0x195)],'skillCode':_0x569beb[_0x145f17(0x18e)][_0x145f17(0x1a0)],'appCode':_0x5f1414['appCode'],'downloadRuntimeSkillPackage':_0x2bfdf5,'verifyRuntimeSkillBundle':_0x1f117c});if(_0x5e3175[_0x145f17(0x19a)]===_0x145f17(0x19d))return _0x569beb['scope']===_0x145f17(0x1b4)?_0x2b596d(_0x464f64,_0x5e3175[_0x145f17(0x1a7)],_0x5f1414['appCode'],{'scope':'company'}):_0x2b596d(_0x464f64,_0x5e3175[_0x145f17(0x1a7)],_0x5f1414['appCode']),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x5e3175['savedSkill']),'scope':_0x569beb['scope'],..._0x569beb[_0x145f17(0x1a3)]==='personal'?{'warnings':_0x569beb[_0x145f17(0x193)]}:{},'alreadyPublished':!![],'contentIdentical':!![]},'message':scopeLabel(_0x569beb[_0x145f17(0x1a3)])+_0x145f17(0x19f)+_0x569beb[_0x145f17(0x18e)][_0x145f17(0x1a0)]+'\x20is\x20already\x20published\x20and\x20content\x20is\x20identical'};if(_0x569beb['scope']==='company'){const _0x5adda6=await _0x5dd172(_0x5f1414[_0x145f17(0x1b7)],_0x569beb['publishInput'],{'visibility':_0x145f17(0x1ac)});throwIfPublishValidationFailed(_0x145f17(0x1b4),_0x569beb[_0x145f17(0x18e)][_0x145f17(0x1a0)],_0x5adda6),throwIfUnconfirmedPublishWarnings('company',_0x569beb['payload'][_0x145f17(0x1a0)],_0x5adda6[_0x145f17(0x193)],_0x55f4e8);const _0x110017=await _0x158d94(_0x5f1414[_0x145f17(0x1b7)],_0x569beb[_0x145f17(0x195)],{'confirmWarnings':_0x55f4e8});return _0x2b596d(_0x464f64,{..._0x110017,'files':_0x569beb[_0x145f17(0x195)][_0x145f17(0x1aa)]},_0x5f1414[_0x145f17(0x1b7)],{'scope':'company'}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x110017),'scope':_0x145f17(0x1b4),'reviewState':_0x145f17(0x197),'submittedForReview':!![],'validation':{'warnings':_0x5adda6[_0x145f17(0x193)]}},'message':'Submitted\x20company\x20Skill\x20'+_0x569beb[_0x145f17(0x18e)][_0x145f17(0x1a0)]+_0x145f17(0x1be)+(_0x110017[_0x145f17(0x1af)]??_0x145f17(0x1a2))+'\x20for\x20review'};}const _0x157ead=await _0x5dd172(_0x5f1414[_0x145f17(0x1b7)],_0x569beb[_0x145f17(0x195)],{'visibility':_0x145f17(0x1ba)});throwIfPublishValidationFailed(_0x145f17(0x1bd),_0x569beb[_0x145f17(0x18e)][_0x145f17(0x1a0)],_0x157ead),throwIfUnconfirmedPublishWarnings(_0x145f17(0x1bd),_0x569beb[_0x145f17(0x18e)]['skillCode'],_0x157ead[_0x145f17(0x193)],_0x55f4e8);const _0x50d71c={'confirmWarnings':_0x55f4e8},_0x2c1bc2=_0x569beb[_0x145f17(0x1bb)]?await _0x16e2c9(_0x569beb['payload'][_0x145f17(0x1a0)],_0x5f1414[_0x145f17(0x1b7)],_0x569beb[_0x145f17(0x195)],_0x50d71c):await _0x4b299e(_0x5f1414[_0x145f17(0x1b7)],_0x569beb[_0x145f17(0x195)],_0x50d71c);let _0x35a92b=_0x2c1bc2;if(isMultiFileManifest(_0x569beb[_0x145f17(0x195)][_0x145f17(0x1aa)])){const _0x38822a=await _0x2bfdf5(_0x145f17(0x1bd),_0x2c1bc2[_0x145f17(0x1a0)]||_0x569beb[_0x145f17(0x18e)][_0x145f17(0x1a0)],_0x5f1414[_0x145f17(0x1b7)]);_0x1f117c(_0x569beb[_0x145f17(0x195)][_0x145f17(0x1aa)],_0x38822a),_0x35a92b={..._0x2c1bc2,'files':_0x569beb[_0x145f17(0x195)][_0x145f17(0x1aa)]};}else{if(isPackageBackedManifest(_0x2c1bc2[_0x145f17(0x1aa)])){const _0x3f8d45=await _0x2bfdf5('personal',_0x2c1bc2[_0x145f17(0x1a0)]||_0x569beb[_0x145f17(0x18e)][_0x145f17(0x1a0)],_0x5f1414[_0x145f17(0x1b7)]);_0x1095f1(_0x2c1bc2['files'],_0x3f8d45);}}return _0x2b596d(_0x464f64,_0x35a92b,_0x5f1414[_0x145f17(0x1b7)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x2c1bc2),'warnings':_0x569beb['warnings'],'validation':{'warnings':_0x157ead[_0x145f17(0x193)]}},'message':_0x569beb[_0x145f17(0x1bb)]?_0x145f17(0x1a4)+_0x569beb[_0x145f17(0x18e)][_0x145f17(0x1a0)]:_0x145f17(0x1b0)+_0x569beb[_0x145f17(0x18e)][_0x145f17(0x1a0)]};}function scopeLabel(_0x2fb3fd){const _0x4938ea=a51_0x3998;return _0x2fb3fd===_0x4938ea(0x1b4)?'Company':_0x4938ea(0x1a9);}
|