@revos/cli 0.1.4 → 0.2.1
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/LICENSE +9 -0
- package/README.md +104 -0
- package/dist/adapters/oclif/commands/action-runs/get.d.mts +6 -0
- package/dist/adapters/oclif/commands/action-runs/get.mjs +8 -0
- package/dist/adapters/oclif/commands/action-runs/list.d.mts +6 -0
- package/dist/adapters/oclif/commands/action-runs/list.mjs +8 -0
- package/dist/adapters/oclif/commands/actions/get-input-schema.d.mts +6 -0
- package/dist/adapters/oclif/commands/actions/get-input-schema.mjs +23 -0
- package/dist/adapters/oclif/commands/actions/get-params-schema.d.mts +6 -0
- package/dist/adapters/oclif/commands/actions/get-params-schema.mjs +23 -0
- package/dist/adapters/oclif/commands/actions/get.d.mts +6 -0
- package/dist/adapters/oclif/commands/actions/get.mjs +8 -0
- package/dist/adapters/oclif/commands/actions/list.d.mts +6 -0
- package/dist/adapters/oclif/commands/actions/list.mjs +27 -0
- package/dist/adapters/oclif/commands/ai-instructions/create.d.mts +6 -0
- package/dist/adapters/oclif/commands/ai-instructions/create.mjs +8 -0
- package/dist/adapters/oclif/commands/ai-instructions/delete.d.mts +6 -0
- package/dist/adapters/oclif/commands/ai-instructions/delete.mjs +8 -0
- package/dist/adapters/oclif/commands/ai-instructions/get.d.mts +6 -0
- package/dist/adapters/oclif/commands/ai-instructions/get.mjs +8 -0
- package/dist/adapters/oclif/commands/ai-instructions/list.d.mts +6 -0
- package/dist/adapters/oclif/commands/ai-instructions/list.mjs +8 -0
- package/dist/adapters/oclif/commands/ai-instructions/update.d.mts +6 -0
- package/dist/adapters/oclif/commands/ai-instructions/update.mjs +8 -0
- package/dist/adapters/oclif/commands/auth/login.d.mts +2 -2
- package/dist/adapters/oclif/commands/auth/login.mjs +2 -2
- package/dist/adapters/oclif/commands/auth/logout.d.mts +1 -1
- package/dist/adapters/oclif/commands/auth/logout.mjs +7 -3
- package/dist/adapters/oclif/commands/auth/status.d.mts +2 -2
- package/dist/adapters/oclif/commands/auth/status.mjs +2 -2
- package/dist/adapters/oclif/commands/gservice-account-keys/get.d.mts +6 -0
- package/dist/adapters/oclif/commands/gservice-account-keys/get.mjs +8 -0
- package/dist/adapters/oclif/commands/gservice-account-keys/reveal.d.mts +6 -0
- package/dist/adapters/oclif/commands/gservice-account-keys/reveal.mjs +14 -0
- package/dist/adapters/oclif/commands/gservice-accounts/create.d.mts +6 -0
- package/dist/adapters/oclif/commands/gservice-accounts/create.mjs +8 -0
- package/dist/adapters/oclif/commands/gservice-accounts/delete.d.mts +6 -0
- package/dist/adapters/oclif/commands/gservice-accounts/delete.mjs +8 -0
- package/dist/adapters/oclif/commands/gservice-accounts/get.d.mts +6 -0
- package/dist/adapters/oclif/commands/gservice-accounts/get.mjs +8 -0
- package/dist/adapters/oclif/commands/gservice-accounts/list.d.mts +6 -0
- package/dist/adapters/oclif/commands/gservice-accounts/list.mjs +8 -0
- package/dist/adapters/oclif/commands/init.d.mts +1 -1
- package/dist/adapters/oclif/commands/init.mjs +4 -3
- package/dist/adapters/oclif/commands/integrations/create.d.mts +11 -0
- package/dist/adapters/oclif/commands/integrations/create.mjs +16 -0
- package/dist/adapters/oclif/commands/integrations/get.d.mts +15 -0
- package/dist/adapters/oclif/commands/integrations/get.mjs +21 -0
- package/dist/adapters/oclif/commands/integrations/list.d.mts +11 -0
- package/dist/adapters/oclif/commands/integrations/list.mjs +16 -0
- package/dist/adapters/oclif/commands/integrations/update.d.mts +15 -0
- package/dist/adapters/oclif/commands/integrations/update.mjs +21 -0
- package/dist/adapters/oclif/commands/org/create.d.mts +6 -0
- package/dist/adapters/oclif/commands/org/create.mjs +8 -0
- package/dist/adapters/oclif/commands/org/current.d.mts +2 -2
- package/dist/adapters/oclif/commands/org/current.mjs +2 -2
- package/dist/adapters/oclif/commands/org/get.d.mts +6 -0
- package/dist/adapters/oclif/commands/org/get.mjs +8 -0
- package/dist/adapters/oclif/commands/org/list.d.mts +2 -2
- package/dist/adapters/oclif/commands/org/list.mjs +2 -2
- package/dist/adapters/oclif/commands/org/switch.d.mts +1 -1
- package/dist/adapters/oclif/commands/org/switch.mjs +5 -4
- package/dist/adapters/oclif/commands/overlays/diff.d.mts +2 -2
- package/dist/adapters/oclif/commands/overlays/diff.mjs +5 -5
- package/dist/adapters/oclif/commands/overlays/pull.d.mts +2 -2
- package/dist/adapters/oclif/commands/overlays/pull.mjs +4 -3
- package/dist/adapters/oclif/commands/overlays/push.d.mts +2 -2
- package/dist/adapters/oclif/commands/overlays/push.mjs +2 -2
- package/dist/adapters/oclif/commands/overlays/status.d.mts +2 -2
- package/dist/adapters/oclif/commands/overlays/status.mjs +2 -2
- package/dist/adapters/oclif/commands/score-groups/create.d.mts +6 -0
- package/dist/adapters/oclif/commands/score-groups/create.mjs +8 -0
- package/dist/adapters/oclif/commands/score-groups/delete.d.mts +6 -0
- package/dist/adapters/oclif/commands/score-groups/delete.mjs +8 -0
- package/dist/adapters/oclif/commands/score-groups/get.d.mts +6 -0
- package/dist/adapters/oclif/commands/score-groups/get.mjs +8 -0
- package/dist/adapters/oclif/commands/score-groups/list.d.mts +6 -0
- package/dist/adapters/oclif/commands/score-groups/list.mjs +8 -0
- package/dist/adapters/oclif/commands/score-groups/update.d.mts +6 -0
- package/dist/adapters/oclif/commands/score-groups/update.mjs +8 -0
- package/dist/adapters/oclif/commands/scores/create.d.mts +6 -0
- package/dist/adapters/oclif/commands/scores/create.mjs +8 -0
- package/dist/adapters/oclif/commands/scores/delete.d.mts +6 -0
- package/dist/adapters/oclif/commands/scores/delete.mjs +8 -0
- package/dist/adapters/oclif/commands/scores/list.d.mts +6 -0
- package/dist/adapters/oclif/commands/scores/list.mjs +8 -0
- package/dist/adapters/oclif/commands/scores/update.d.mts +6 -0
- package/dist/adapters/oclif/commands/scores/update.mjs +8 -0
- package/dist/adapters/oclif/commands/segments/create.d.mts +6 -0
- package/dist/adapters/oclif/commands/segments/create.mjs +8 -0
- package/dist/adapters/oclif/commands/segments/delete.d.mts +6 -0
- package/dist/adapters/oclif/commands/segments/delete.mjs +8 -0
- package/dist/adapters/oclif/commands/segments/evaluate.d.mts +6 -0
- package/dist/adapters/oclif/commands/segments/evaluate.mjs +14 -0
- package/dist/adapters/oclif/commands/segments/get-evaluation-history.d.mts +6 -0
- package/dist/adapters/oclif/commands/segments/get-evaluation-history.mjs +14 -0
- package/dist/adapters/oclif/commands/segments/get-version.d.mts +6 -0
- package/dist/adapters/oclif/commands/segments/get-version.mjs +23 -0
- package/dist/adapters/oclif/commands/segments/get.d.mts +6 -0
- package/dist/adapters/oclif/commands/segments/get.mjs +8 -0
- package/dist/adapters/oclif/commands/segments/list-versions.d.mts +6 -0
- package/dist/adapters/oclif/commands/segments/list-versions.mjs +29 -0
- package/dist/adapters/oclif/commands/segments/list.d.mts +6 -0
- package/dist/adapters/oclif/commands/segments/list.mjs +8 -0
- package/dist/adapters/oclif/commands/segments/restore-version.d.mts +6 -0
- package/dist/adapters/oclif/commands/segments/restore-version.mjs +23 -0
- package/dist/adapters/oclif/commands/segments/update.d.mts +6 -0
- package/dist/adapters/oclif/commands/segments/update.mjs +8 -0
- package/dist/adapters/oclif/commands/table-views/create.d.mts +6 -0
- package/dist/adapters/oclif/commands/table-views/create.mjs +8 -0
- package/dist/adapters/oclif/commands/table-views/delete.d.mts +6 -0
- package/dist/adapters/oclif/commands/table-views/delete.mjs +8 -0
- package/dist/adapters/oclif/commands/table-views/list.d.mts +6 -0
- package/dist/adapters/oclif/commands/table-views/list.mjs +8 -0
- package/dist/adapters/oclif/commands/table-views/update.d.mts +6 -0
- package/dist/adapters/oclif/commands/table-views/update.mjs +8 -0
- package/dist/adapters/oclif/commands/tables/create.d.mts +6 -0
- package/dist/adapters/oclif/commands/tables/create.mjs +8 -0
- package/dist/adapters/oclif/commands/tables/delete.d.mts +6 -0
- package/dist/adapters/oclif/commands/tables/delete.mjs +8 -0
- package/dist/adapters/oclif/commands/tables/get.d.mts +6 -0
- package/dist/adapters/oclif/commands/tables/get.mjs +8 -0
- package/dist/adapters/oclif/commands/tables/list.d.mts +6 -0
- package/dist/adapters/oclif/commands/tables/list.mjs +8 -0
- package/dist/adapters/oclif/commands/tables/update.d.mts +6 -0
- package/dist/adapters/oclif/commands/tables/update.mjs +8 -0
- package/dist/{base.command-DlVQ9Cqa.mjs → base.command-YiwlGlKs.mjs} +1 -1
- package/dist/{core-gKJ_V-K5.mjs → core-jpFPylBb.mjs} +31 -7
- package/dist/factory-BrFKT8t-.mjs +90 -0
- package/dist/{index-B8n2GxTc.d.mts → index-DD2Vr-pu.d.mts} +6 -3
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +2 -2
- package/dist/presets-D9b6IWKy.mjs +98 -0
- package/dist/templates/.devcontainer/devcontainer.json +2 -2
- package/dist/templates/AGENTS.md +19 -9
- package/dist/templates/skills/create-dbt-transformations/SKILL.md +21 -13
- package/dist/templates/skills/create-dbt-transformations/references/edge-cases.md +1 -1
- package/dist/templates/skills/create-semantic-model/SKILL.md +11 -11
- package/dist/templates/skills/create-semantic-model/references/cube-examples.md +83 -5
- package/dist/templates/skills/explore-lakehouse/SKILL.md +7 -3
- package/dist/templates/skills/load-sample-data/SKILL.md +119 -0
- package/package.json +8 -3
- /package/dist/{base.command-BjFWMIzL.d.mts → base.command-d7VW6WTp.d.mts} +0 -0
- /package/dist/{types-DmuJzN0Z.d.mts → types-C_p_6rkj.d.mts} +0 -0
- /package/dist/{types-DsQtGF-c.d.mts → types-Y_ht_ja5.d.mts} +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { t as BaseCommand } from "../../../../base.command-d7VW6WTp.mjs";
|
|
2
|
+
import * as _$_oclif_core_interfaces0 from "@oclif/core/interfaces";
|
|
3
|
+
|
|
4
|
+
//#region src/adapters/oclif/commands/integrations/get.d.ts
|
|
5
|
+
declare class IntegrationsGet extends BaseCommand<typeof IntegrationsGet> {
|
|
6
|
+
static description: string;
|
|
7
|
+
static args: {
|
|
8
|
+
id: _$_oclif_core_interfaces0.Arg<string, Record<string, unknown>>;
|
|
9
|
+
};
|
|
10
|
+
run(): Promise<{
|
|
11
|
+
url: string;
|
|
12
|
+
}>;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { IntegrationsGet as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { b as getConfig, h as resolveAppUrl } from "../../../../core-jpFPylBb.mjs";
|
|
2
|
+
import { t as BaseCommand } from "../../../../base.command-YiwlGlKs.mjs";
|
|
3
|
+
import chalk from "chalk";
|
|
4
|
+
import { Args } from "@oclif/core";
|
|
5
|
+
import open from "open";
|
|
6
|
+
//#region src/adapters/oclif/commands/integrations/get.ts
|
|
7
|
+
var IntegrationsGet = class extends BaseCommand {
|
|
8
|
+
static description = "Open a specific integration in the RevOS UI";
|
|
9
|
+
static args = { id: Args.string({
|
|
10
|
+
description: "Integration ID",
|
|
11
|
+
required: true
|
|
12
|
+
}) };
|
|
13
|
+
async run() {
|
|
14
|
+
const url = `${resolveAppUrl((await getConfig()).apiUrl)}/integrations/${this.args.id}`;
|
|
15
|
+
if (!this.jsonEnabled()) this.log(`Opening ${chalk.bold(url)} in your browser...`);
|
|
16
|
+
await open(url);
|
|
17
|
+
return { url };
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { IntegrationsGet as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { t as BaseCommand } from "../../../../base.command-d7VW6WTp.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/adapters/oclif/commands/integrations/list.d.ts
|
|
4
|
+
declare class IntegrationsList extends BaseCommand<typeof IntegrationsList> {
|
|
5
|
+
static description: string;
|
|
6
|
+
run(): Promise<{
|
|
7
|
+
url: string;
|
|
8
|
+
}>;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { IntegrationsList as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { b as getConfig, h as resolveAppUrl } from "../../../../core-jpFPylBb.mjs";
|
|
2
|
+
import { t as BaseCommand } from "../../../../base.command-YiwlGlKs.mjs";
|
|
3
|
+
import chalk from "chalk";
|
|
4
|
+
import open from "open";
|
|
5
|
+
//#region src/adapters/oclif/commands/integrations/list.ts
|
|
6
|
+
var IntegrationsList = class extends BaseCommand {
|
|
7
|
+
static description = "Open the integrations page in the RevOS UI";
|
|
8
|
+
async run() {
|
|
9
|
+
const url = `${resolveAppUrl((await getConfig()).apiUrl)}/integrations`;
|
|
10
|
+
if (!this.jsonEnabled()) this.log(`Opening ${chalk.bold(url)} in your browser...`);
|
|
11
|
+
await open(url);
|
|
12
|
+
return { url };
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { IntegrationsList as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { t as BaseCommand } from "../../../../base.command-d7VW6WTp.mjs";
|
|
2
|
+
import * as _$_oclif_core_interfaces0 from "@oclif/core/interfaces";
|
|
3
|
+
|
|
4
|
+
//#region src/adapters/oclif/commands/integrations/update.d.ts
|
|
5
|
+
declare class IntegrationsUpdate extends BaseCommand<typeof IntegrationsUpdate> {
|
|
6
|
+
static description: string;
|
|
7
|
+
static args: {
|
|
8
|
+
id: _$_oclif_core_interfaces0.Arg<string, Record<string, unknown>>;
|
|
9
|
+
};
|
|
10
|
+
run(): Promise<{
|
|
11
|
+
url: string;
|
|
12
|
+
}>;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { IntegrationsUpdate as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { b as getConfig, h as resolveAppUrl } from "../../../../core-jpFPylBb.mjs";
|
|
2
|
+
import { t as BaseCommand } from "../../../../base.command-YiwlGlKs.mjs";
|
|
3
|
+
import chalk from "chalk";
|
|
4
|
+
import { Args } from "@oclif/core";
|
|
5
|
+
import open from "open";
|
|
6
|
+
//#region src/adapters/oclif/commands/integrations/update.ts
|
|
7
|
+
var IntegrationsUpdate = class extends BaseCommand {
|
|
8
|
+
static description = "Open the RevOS UI to edit an existing integration";
|
|
9
|
+
static args = { id: Args.string({
|
|
10
|
+
description: "Integration ID",
|
|
11
|
+
required: true
|
|
12
|
+
}) };
|
|
13
|
+
async run() {
|
|
14
|
+
const url = `${resolveAppUrl((await getConfig()).apiUrl)}/integrations?action=edit&id=${this.args.id}`;
|
|
15
|
+
if (!this.jsonEnabled()) this.log(`Opening ${chalk.bold(url)} in your browser...`);
|
|
16
|
+
await open(url);
|
|
17
|
+
return { url };
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { IntegrationsUpdate as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { t as createCommand } from "../../../../presets-D9b6IWKy.mjs";
|
|
2
|
+
//#region src/adapters/oclif/commands/org/create.ts
|
|
3
|
+
var create_default = createCommand({
|
|
4
|
+
resource: "organizations",
|
|
5
|
+
description: "Create a new organization"
|
|
6
|
+
});
|
|
7
|
+
//#endregion
|
|
8
|
+
export { create_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as OrganizationInfo } from "../../../../types-
|
|
2
|
-
import { t as BaseCommand } from "../../../../base.command-
|
|
1
|
+
import { s as OrganizationInfo } from "../../../../types-Y_ht_ja5.mjs";
|
|
2
|
+
import { t as BaseCommand } from "../../../../base.command-d7VW6WTp.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/adapters/oclif/commands/org/current.d.ts
|
|
5
5
|
interface CurrentOrgResult {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as BaseCommand } from "../../../../base.command-
|
|
1
|
+
import { N as loadCredentials, b as getConfig, m as unwrap, p as createApiClient } from "../../../../core-jpFPylBb.mjs";
|
|
2
|
+
import { t as BaseCommand } from "../../../../base.command-YiwlGlKs.mjs";
|
|
3
3
|
//#region src/adapters/oclif/commands/org/current.ts
|
|
4
4
|
var OrgCurrent = class extends BaseCommand {
|
|
5
5
|
static description = "Show currently selected organization";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { r as getCommand } from "../../../../presets-D9b6IWKy.mjs";
|
|
2
|
+
//#region src/adapters/oclif/commands/org/get.ts
|
|
3
|
+
var get_default = getCommand({
|
|
4
|
+
resource: "organizations",
|
|
5
|
+
description: "Get an organization by ID"
|
|
6
|
+
});
|
|
7
|
+
//#endregion
|
|
8
|
+
export { get_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as OrgListResult } from "../../../../types-
|
|
2
|
-
import { t as BaseCommand } from "../../../../base.command-
|
|
1
|
+
import { a as OrgListResult } from "../../../../types-Y_ht_ja5.mjs";
|
|
2
|
+
import { t as BaseCommand } from "../../../../base.command-d7VW6WTp.mjs";
|
|
3
3
|
import * as _$_oclif_core_interfaces0 from "@oclif/core/interfaces";
|
|
4
4
|
|
|
5
5
|
//#region src/adapters/oclif/commands/org/list.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as BaseCommand } from "../../../../base.command-
|
|
1
|
+
import { b as getConfig, m as unwrap, p as createApiClient } from "../../../../core-jpFPylBb.mjs";
|
|
2
|
+
import { t as BaseCommand } from "../../../../base.command-YiwlGlKs.mjs";
|
|
3
3
|
import chalk from "chalk";
|
|
4
4
|
import { Flags } from "@oclif/core";
|
|
5
5
|
//#region src/adapters/oclif/commands/org/list.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as BaseCommand } from "../../../../base.command-
|
|
1
|
+
import { t as BaseCommand } from "../../../../base.command-d7VW6WTp.mjs";
|
|
2
2
|
import * as _$_oclif_core_interfaces0 from "@oclif/core/interfaces";
|
|
3
3
|
|
|
4
4
|
//#region src/adapters/oclif/commands/org/switch.d.ts
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as BaseCommand } from "../../../../base.command-
|
|
1
|
+
import { N as loadCredentials, P as saveCredentials, b as getConfig, m as unwrap, n as selectOrganization, p as createApiClient } from "../../../../core-jpFPylBb.mjs";
|
|
2
|
+
import { t as BaseCommand } from "../../../../base.command-YiwlGlKs.mjs";
|
|
3
|
+
import * as os from "os";
|
|
3
4
|
import chalk from "chalk";
|
|
4
5
|
import { Args } from "@oclif/core";
|
|
5
6
|
//#region src/adapters/oclif/commands/org/switch.ts
|
|
@@ -17,8 +18,8 @@ var OrgSwitch = class extends BaseCommand {
|
|
|
17
18
|
if (args.id) {
|
|
18
19
|
selected = organizations.find((o) => o.id === args.id);
|
|
19
20
|
if (!selected) {
|
|
20
|
-
const available = organizations.map((o) => ` ${o.name} (${o.id})`).join(
|
|
21
|
-
this.error(`Organization "${args.id}" not found
|
|
21
|
+
const available = organizations.map((o) => ` ${o.name} (${o.id})`).join(os.EOL);
|
|
22
|
+
this.error(`Organization "${args.id}" not found.${os.EOL}${os.EOL}Available organizations:${os.EOL}${available}`, { exit: 1 });
|
|
22
23
|
}
|
|
23
24
|
} else selected = await selectOrganization(organizations);
|
|
24
25
|
const credentials = loadCredentials();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as DiffResult } from "../../../../types-
|
|
2
|
-
import { t as BaseCommand } from "../../../../base.command-
|
|
1
|
+
import { o as DiffResult } from "../../../../types-C_p_6rkj.mjs";
|
|
2
|
+
import { t as BaseCommand } from "../../../../base.command-d7VW6WTp.mjs";
|
|
3
3
|
import * as _$_oclif_core_interfaces0 from "@oclif/core/interfaces";
|
|
4
4
|
|
|
5
5
|
//#region src/adapters/oclif/commands/overlays/diff.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as BaseCommand } from "../../../../base.command-
|
|
1
|
+
import { b as getConfig, p as createApiClient, r as DiffService } from "../../../../core-jpFPylBb.mjs";
|
|
2
|
+
import { t as BaseCommand } from "../../../../base.command-YiwlGlKs.mjs";
|
|
3
3
|
import chalk from "chalk";
|
|
4
4
|
import { Args, Flags } from "@oclif/core";
|
|
5
5
|
//#region src/adapters/oclif/commands/overlays/diff.ts
|
|
@@ -46,7 +46,7 @@ var OverlaysDiff = class extends BaseCommand {
|
|
|
46
46
|
this.log(chalk.green("+ New overlay (will be created)"));
|
|
47
47
|
for (const change of entry.changes) if (change.field === "data") {
|
|
48
48
|
this.log(chalk.green(` ${change.field}:`));
|
|
49
|
-
for (const line of (change.newValue ?? "").split(
|
|
49
|
+
for (const line of (change.newValue ?? "").split(/\r?\n/)) this.log(chalk.green(` ${line}`));
|
|
50
50
|
} else this.log(chalk.green(` ${change.field}: ${change.newValue}`));
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
@@ -59,8 +59,8 @@ var OverlaysDiff = class extends BaseCommand {
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
renderDataDiff(oldValue, newValue) {
|
|
62
|
-
const oldLines = oldValue.split(
|
|
63
|
-
const newLines = newValue.split(
|
|
62
|
+
const oldLines = oldValue.split(/\r?\n/);
|
|
63
|
+
const newLines = newValue.split(/\r?\n/);
|
|
64
64
|
const maxLines = Math.max(oldLines.length, newLines.length);
|
|
65
65
|
const maxDiffLines = 20;
|
|
66
66
|
let diffCount = 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as PullResult } from "../../../../types-
|
|
2
|
-
import { t as BaseCommand } from "../../../../base.command-
|
|
1
|
+
import { u as PullResult } from "../../../../types-C_p_6rkj.mjs";
|
|
2
|
+
import { t as BaseCommand } from "../../../../base.command-d7VW6WTp.mjs";
|
|
3
3
|
import * as _$_oclif_core_interfaces0 from "@oclif/core/interfaces";
|
|
4
4
|
|
|
5
5
|
//#region src/adapters/oclif/commands/overlays/pull.d.ts
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { a as PullService,
|
|
2
|
-
import { t as BaseCommand } from "../../../../base.command-
|
|
1
|
+
import { a as PullService, b as getConfig, p as createApiClient } from "../../../../core-jpFPylBb.mjs";
|
|
2
|
+
import { t as BaseCommand } from "../../../../base.command-YiwlGlKs.mjs";
|
|
3
|
+
import * as os from "os";
|
|
3
4
|
import chalk from "chalk";
|
|
4
5
|
import { Flags } from "@oclif/core";
|
|
5
6
|
//#region src/adapters/oclif/commands/overlays/pull.ts
|
|
@@ -28,7 +29,7 @@ var OverlaysPull = class extends BaseCommand {
|
|
|
28
29
|
this.warn("No overlays to pull.");
|
|
29
30
|
return result;
|
|
30
31
|
}
|
|
31
|
-
if (result.notFound.length > 0) this.warn(`The following overlays were not found
|
|
32
|
+
if (result.notFound.length > 0) this.warn(`The following overlays were not found:${os.EOL}${result.notFound.map((n) => ` - ${n}`).join(os.EOL)}`);
|
|
32
33
|
for (const item of result.pulled) this.log(chalk.green(`↓ Pulled: ${item.name} → ${item.filePath}`));
|
|
33
34
|
for (const e of result.errors) this.log(chalk.red(`✗ Error saving ${e.name}: ${e.error}`));
|
|
34
35
|
this.log("");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as PushResult } from "../../../../types-
|
|
2
|
-
import { t as BaseCommand } from "../../../../base.command-
|
|
1
|
+
import { d as PushResult } from "../../../../types-C_p_6rkj.mjs";
|
|
2
|
+
import { t as BaseCommand } from "../../../../base.command-d7VW6WTp.mjs";
|
|
3
3
|
import * as _$_oclif_core_interfaces0 from "@oclif/core/interfaces";
|
|
4
4
|
|
|
5
5
|
//#region src/adapters/oclif/commands/overlays/push.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as BaseCommand } from "../../../../base.command-
|
|
1
|
+
import { b as getConfig, o as PushService, p as createApiClient } from "../../../../core-jpFPylBb.mjs";
|
|
2
|
+
import { t as BaseCommand } from "../../../../base.command-YiwlGlKs.mjs";
|
|
3
3
|
import chalk from "chalk";
|
|
4
4
|
import { Args, Flags } from "@oclif/core";
|
|
5
5
|
//#region src/adapters/oclif/commands/overlays/push.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as StatusResult } from "../../../../types-
|
|
2
|
-
import { t as BaseCommand } from "../../../../base.command-
|
|
1
|
+
import { f as StatusResult } from "../../../../types-C_p_6rkj.mjs";
|
|
2
|
+
import { t as BaseCommand } from "../../../../base.command-d7VW6WTp.mjs";
|
|
3
3
|
import * as _$_oclif_core_interfaces0 from "@oclif/core/interfaces";
|
|
4
4
|
|
|
5
5
|
//#region src/adapters/oclif/commands/overlays/status.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as BaseCommand } from "../../../../base.command-
|
|
1
|
+
import { b as getConfig, i as StatusService, p as createApiClient } from "../../../../core-jpFPylBb.mjs";
|
|
2
|
+
import { t as BaseCommand } from "../../../../base.command-YiwlGlKs.mjs";
|
|
3
3
|
import chalk from "chalk";
|
|
4
4
|
import { Args, Flags } from "@oclif/core";
|
|
5
5
|
//#region src/adapters/oclif/commands/overlays/status.ts
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { t as createCommand } from "../../../../presets-D9b6IWKy.mjs";
|
|
2
|
+
//#region src/adapters/oclif/commands/score-groups/create.ts
|
|
3
|
+
var create_default = createCommand({
|
|
4
|
+
resource: "scoreGroups",
|
|
5
|
+
description: "Create a new score group"
|
|
6
|
+
});
|
|
7
|
+
//#endregion
|
|
8
|
+
export { create_default as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { n as deleteCommand } from "../../../../presets-D9b6IWKy.mjs";
|
|
2
|
+
//#region src/adapters/oclif/commands/score-groups/delete.ts
|
|
3
|
+
var delete_default = deleteCommand({
|
|
4
|
+
resource: "scoreGroups",
|
|
5
|
+
description: "Delete a score group"
|
|
6
|
+
});
|
|
7
|
+
//#endregion
|
|
8
|
+
export { delete_default as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { r as getCommand } from "../../../../presets-D9b6IWKy.mjs";
|
|
2
|
+
//#region src/adapters/oclif/commands/score-groups/get.ts
|
|
3
|
+
var get_default = getCommand({
|
|
4
|
+
resource: "scoreGroups",
|
|
5
|
+
description: "Get a score group by ID"
|
|
6
|
+
});
|
|
7
|
+
//#endregion
|
|
8
|
+
export { get_default as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { i as listCommand } from "../../../../presets-D9b6IWKy.mjs";
|
|
2
|
+
//#region src/adapters/oclif/commands/score-groups/list.ts
|
|
3
|
+
var list_default = listCommand({
|
|
4
|
+
resource: "scoreGroups",
|
|
5
|
+
description: "List score groups"
|
|
6
|
+
});
|
|
7
|
+
//#endregion
|
|
8
|
+
export { list_default as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { a as updateCommand } from "../../../../presets-D9b6IWKy.mjs";
|
|
2
|
+
//#region src/adapters/oclif/commands/score-groups/update.ts
|
|
3
|
+
var update_default = updateCommand({
|
|
4
|
+
resource: "scoreGroups",
|
|
5
|
+
description: "Update a score group"
|
|
6
|
+
});
|
|
7
|
+
//#endregion
|
|
8
|
+
export { update_default as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { t as createCommand } from "../../../../presets-D9b6IWKy.mjs";
|
|
2
|
+
//#region src/adapters/oclif/commands/scores/create.ts
|
|
3
|
+
var create_default = createCommand({
|
|
4
|
+
resource: "scores",
|
|
5
|
+
description: "Create a new score"
|
|
6
|
+
});
|
|
7
|
+
//#endregion
|
|
8
|
+
export { create_default as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { n as deleteCommand } from "../../../../presets-D9b6IWKy.mjs";
|
|
2
|
+
//#region src/adapters/oclif/commands/scores/delete.ts
|
|
3
|
+
var delete_default = deleteCommand({
|
|
4
|
+
resource: "scores",
|
|
5
|
+
description: "Delete a score"
|
|
6
|
+
});
|
|
7
|
+
//#endregion
|
|
8
|
+
export { delete_default as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { i as listCommand } from "../../../../presets-D9b6IWKy.mjs";
|
|
2
|
+
//#region src/adapters/oclif/commands/scores/list.ts
|
|
3
|
+
var list_default = listCommand({
|
|
4
|
+
resource: "scores",
|
|
5
|
+
description: "List scores"
|
|
6
|
+
});
|
|
7
|
+
//#endregion
|
|
8
|
+
export { list_default as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { a as updateCommand } from "../../../../presets-D9b6IWKy.mjs";
|
|
2
|
+
//#region src/adapters/oclif/commands/scores/update.ts
|
|
3
|
+
var update_default = updateCommand({
|
|
4
|
+
resource: "scores",
|
|
5
|
+
description: "Update a score"
|
|
6
|
+
});
|
|
7
|
+
//#endregion
|
|
8
|
+
export { update_default as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { t as createCommand } from "../../../../presets-D9b6IWKy.mjs";
|
|
2
|
+
//#region src/adapters/oclif/commands/segments/create.ts
|
|
3
|
+
var create_default = createCommand({
|
|
4
|
+
resource: "segments",
|
|
5
|
+
description: "Create a new segment"
|
|
6
|
+
});
|
|
7
|
+
//#endregion
|
|
8
|
+
export { create_default as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { n as deleteCommand } from "../../../../presets-D9b6IWKy.mjs";
|
|
2
|
+
//#region src/adapters/oclif/commands/segments/delete.ts
|
|
3
|
+
var delete_default = deleteCommand({
|
|
4
|
+
resource: "segments",
|
|
5
|
+
description: "Delete a segment"
|
|
6
|
+
});
|
|
7
|
+
//#endregion
|
|
8
|
+
export { delete_default as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { m as unwrap } from "../../../../core-jpFPylBb.mjs";
|
|
2
|
+
import { n as defineApiCommand } from "../../../../factory-BrFKT8t-.mjs";
|
|
3
|
+
import { Args } from "@oclif/core";
|
|
4
|
+
//#region src/adapters/oclif/commands/segments/evaluate.ts
|
|
5
|
+
var evaluate_default = defineApiCommand({
|
|
6
|
+
description: "Trigger an evaluation of a segment",
|
|
7
|
+
args: { id: Args.string({
|
|
8
|
+
description: "Segment ID",
|
|
9
|
+
required: true
|
|
10
|
+
}) },
|
|
11
|
+
call: async ({ api, args }) => unwrap(await api.segments.evaluate({ id: args.id }))
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { evaluate_default as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { m as unwrap } from "../../../../core-jpFPylBb.mjs";
|
|
2
|
+
import { n as defineApiCommand } from "../../../../factory-BrFKT8t-.mjs";
|
|
3
|
+
import { Args } from "@oclif/core";
|
|
4
|
+
//#region src/adapters/oclif/commands/segments/get-evaluation-history.ts
|
|
5
|
+
var get_evaluation_history_default = defineApiCommand({
|
|
6
|
+
description: "Get the evaluation history for a segment",
|
|
7
|
+
args: { id: Args.string({
|
|
8
|
+
description: "Segment ID",
|
|
9
|
+
required: true
|
|
10
|
+
}) },
|
|
11
|
+
call: async ({ api, args }) => unwrap(await api.segments.getEvaluationHistory({ id: args.id }))
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { get_evaluation_history_default as default };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { m as unwrap } from "../../../../core-jpFPylBb.mjs";
|
|
2
|
+
import { n as defineApiCommand } from "../../../../factory-BrFKT8t-.mjs";
|
|
3
|
+
import { Args } from "@oclif/core";
|
|
4
|
+
//#region src/adapters/oclif/commands/segments/get-version.ts
|
|
5
|
+
var get_version_default = defineApiCommand({
|
|
6
|
+
description: "Get a specific version of a segment",
|
|
7
|
+
args: {
|
|
8
|
+
id: Args.string({
|
|
9
|
+
description: "Segment ID",
|
|
10
|
+
required: true
|
|
11
|
+
}),
|
|
12
|
+
version: Args.integer({
|
|
13
|
+
description: "Version number",
|
|
14
|
+
required: true
|
|
15
|
+
})
|
|
16
|
+
},
|
|
17
|
+
call: async ({ api, args }) => unwrap(await api.segments.getVersion({
|
|
18
|
+
id: args.id,
|
|
19
|
+
version: args.version
|
|
20
|
+
}))
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
export { get_version_default as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { r as getCommand } from "../../../../presets-D9b6IWKy.mjs";
|
|
2
|
+
//#region src/adapters/oclif/commands/segments/get.ts
|
|
3
|
+
var get_default = getCommand({
|
|
4
|
+
resource: "segments",
|
|
5
|
+
description: "Get a segment by ID"
|
|
6
|
+
});
|
|
7
|
+
//#endregion
|
|
8
|
+
export { get_default as default };
|