@revos/cli 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +289 -77
- package/dist/adapters/oclif/commands/action-runs/get.mjs +1 -1
- package/dist/adapters/oclif/commands/action-runs/list.mjs +8 -2
- package/dist/adapters/oclif/commands/actions/get-input-schema.mjs +2 -2
- package/dist/adapters/oclif/commands/actions/get-params-schema.mjs +2 -2
- package/dist/adapters/oclif/commands/actions/get.mjs +1 -1
- package/dist/adapters/oclif/commands/actions/list.mjs +8 -4
- package/dist/adapters/oclif/commands/ai-instructions/create.mjs +1 -1
- package/dist/adapters/oclif/commands/ai-instructions/delete.mjs +1 -1
- package/dist/adapters/oclif/commands/ai-instructions/get.mjs +1 -1
- package/dist/adapters/oclif/commands/ai-instructions/list.mjs +8 -2
- package/dist/adapters/oclif/commands/ai-instructions/update.mjs +1 -1
- package/dist/adapters/oclif/commands/api.d.mts +11 -0
- package/dist/adapters/oclif/commands/api.mjs +112 -0
- package/dist/adapters/oclif/commands/apply.d.mts +29 -0
- package/dist/adapters/oclif/commands/apply.mjs +77 -0
- package/dist/adapters/oclif/commands/auth/login.d.mts +6 -4
- package/dist/adapters/oclif/commands/auth/login.mjs +23 -11
- package/dist/adapters/oclif/commands/auth/logout.d.mts +2 -1
- package/dist/adapters/oclif/commands/auth/logout.mjs +3 -2
- package/dist/adapters/oclif/commands/auth/status.d.mts +4 -2
- package/dist/adapters/oclif/commands/auth/status.mjs +23 -3
- package/dist/adapters/oclif/commands/connections/create.d.mts +6 -0
- package/dist/adapters/oclif/commands/connections/create.mjs +8 -0
- package/dist/adapters/oclif/commands/connections/delete.d.mts +6 -0
- package/dist/adapters/oclif/commands/connections/delete.mjs +8 -0
- package/dist/adapters/oclif/commands/connections/get.d.mts +6 -0
- package/dist/adapters/oclif/commands/connections/get.mjs +8 -0
- package/dist/adapters/oclif/commands/connections/list.d.mts +6 -0
- package/dist/adapters/oclif/commands/connections/list.mjs +14 -0
- package/dist/adapters/oclif/commands/connections/update.d.mts +6 -0
- package/dist/adapters/oclif/commands/connections/update.mjs +8 -0
- package/dist/adapters/oclif/commands/cubes/create.d.mts +6 -0
- package/dist/adapters/oclif/commands/cubes/create.mjs +8 -0
- package/dist/adapters/oclif/commands/cubes/delete.d.mts +6 -0
- package/dist/adapters/oclif/commands/cubes/delete.mjs +8 -0
- package/dist/adapters/oclif/commands/cubes/get.d.mts +6 -0
- package/dist/adapters/oclif/commands/cubes/get.mjs +8 -0
- package/dist/adapters/oclif/commands/cubes/list.d.mts +6 -0
- package/dist/adapters/oclif/commands/cubes/list.mjs +13 -0
- package/dist/adapters/oclif/commands/cubes/update.d.mts +6 -0
- package/dist/adapters/oclif/commands/cubes/update.mjs +8 -0
- package/dist/adapters/oclif/commands/diff.d.mts +28 -0
- package/dist/adapters/oclif/commands/diff.mjs +66 -0
- package/dist/adapters/oclif/commands/gservice-account-keys/get.mjs +1 -1
- package/dist/adapters/oclif/commands/gservice-account-keys/reveal.mjs +2 -2
- package/dist/adapters/oclif/commands/gservice-accounts/create.mjs +1 -1
- package/dist/adapters/oclif/commands/gservice-accounts/delete.mjs +1 -1
- package/dist/adapters/oclif/commands/gservice-accounts/get.mjs +1 -1
- package/dist/adapters/oclif/commands/gservice-accounts/list.mjs +7 -2
- package/dist/adapters/oclif/commands/init.d.mts +3 -1
- package/dist/adapters/oclif/commands/init.mjs +27 -23
- package/dist/adapters/oclif/commands/org/create.mjs +3 -2
- package/dist/adapters/oclif/commands/org/current.d.mts +12 -3
- package/dist/adapters/oclif/commands/org/current.mjs +27 -2
- package/dist/adapters/oclif/commands/org/get.mjs +3 -2
- package/dist/adapters/oclif/commands/org/list.d.mts +3 -11
- package/dist/adapters/oclif/commands/org/list.mjs +35 -26
- package/dist/adapters/oclif/commands/org/switch.d.mts +4 -2
- package/dist/adapters/oclif/commands/org/switch.mjs +16 -3
- package/dist/adapters/oclif/commands/pull.d.mts +29 -0
- package/dist/adapters/oclif/commands/pull.mjs +88 -0
- package/dist/adapters/oclif/commands/score-groups/create.mjs +3 -2
- package/dist/adapters/oclif/commands/score-groups/delete.mjs +1 -1
- package/dist/adapters/oclif/commands/score-groups/get.mjs +1 -1
- package/dist/adapters/oclif/commands/score-groups/list.mjs +3 -2
- package/dist/adapters/oclif/commands/score-groups/update.mjs +1 -1
- package/dist/adapters/oclif/commands/scores/create.mjs +3 -2
- package/dist/adapters/oclif/commands/scores/delete.mjs +1 -1
- package/dist/adapters/oclif/commands/scores/list.mjs +3 -2
- package/dist/adapters/oclif/commands/scores/update.mjs +1 -1
- package/dist/adapters/oclif/commands/segments/create.mjs +1 -1
- package/dist/adapters/oclif/commands/segments/delete.mjs +1 -1
- package/dist/adapters/oclif/commands/segments/evaluate.mjs +2 -2
- package/dist/adapters/oclif/commands/segments/get-evaluation-history.mjs +2 -2
- package/dist/adapters/oclif/commands/segments/get-version.mjs +2 -2
- package/dist/adapters/oclif/commands/segments/get.mjs +1 -1
- package/dist/adapters/oclif/commands/segments/list-versions.mjs +16 -5
- package/dist/adapters/oclif/commands/segments/list.mjs +9 -2
- package/dist/adapters/oclif/commands/segments/restore-version.mjs +2 -2
- package/dist/adapters/oclif/commands/segments/update.mjs +1 -1
- package/dist/adapters/oclif/commands/sources/create.d.mts +11 -0
- package/dist/adapters/oclif/commands/sources/create.mjs +16 -0
- package/dist/adapters/oclif/commands/sources/delete.d.mts +6 -0
- package/dist/adapters/oclif/commands/sources/delete.mjs +8 -0
- package/dist/adapters/oclif/commands/sources/get.d.mts +6 -0
- package/dist/adapters/oclif/commands/sources/get.mjs +8 -0
- package/dist/adapters/oclif/commands/sources/list-streams.d.mts +6 -0
- package/dist/adapters/oclif/commands/sources/list-streams.mjs +31 -0
- package/dist/adapters/oclif/commands/sources/list.d.mts +6 -0
- package/dist/adapters/oclif/commands/sources/list.mjs +13 -0
- package/dist/adapters/oclif/commands/{integrations/get.d.mts → sources/update.d.mts} +4 -4
- package/dist/adapters/oclif/commands/sources/update.mjs +21 -0
- package/dist/adapters/oclif/commands/status.d.mts +27 -0
- package/dist/adapters/oclif/commands/status.mjs +77 -0
- package/dist/adapters/oclif/commands/table-views/create.mjs +3 -2
- package/dist/adapters/oclif/commands/table-views/delete.mjs +1 -1
- package/dist/adapters/oclif/commands/table-views/list.mjs +3 -2
- package/dist/adapters/oclif/commands/table-views/update.mjs +1 -1
- package/dist/adapters/oclif/commands/tables/create.mjs +1 -1
- package/dist/adapters/oclif/commands/tables/delete.mjs +1 -1
- package/dist/adapters/oclif/commands/tables/get.mjs +1 -1
- package/dist/adapters/oclif/commands/tables/list.mjs +3 -2
- package/dist/adapters/oclif/commands/tables/update.mjs +1 -1
- package/dist/{base.command-d7VW6WTp.d.mts → base.command-BmddDbHa.d.mts} +4 -1
- package/dist/base.command-D8taHOFF.mjs +83 -0
- package/dist/chunk-CfYAbeIz.mjs +13 -0
- package/dist/context-D5uelKLe.d.mts +62 -0
- package/dist/core-B-IdeRNl.mjs +2448 -0
- package/dist/{factory-BrFKT8t-.mjs → factory-CCcimDhl.mjs} +45 -10
- package/dist/iac-render-BSZZEP0n.mjs +17 -0
- package/dist/index-D0ax2I61.d.mts +581 -0
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +2 -2
- package/dist/{presets-D9b6IWKy.mjs → presets-Bb9gwgeh.mjs} +40 -8
- package/dist/templates/.claude/settings.json +39 -0
- package/dist/templates/.devcontainer/Dockerfile +9 -0
- package/dist/templates/.devcontainer/devcontainer.json +4 -1
- package/dist/templates/.devcontainer/setup.sh +3 -0
- package/dist/templates/AGENTS.md +33 -20
- package/dist/templates/dbt/dbt_project.yml +2 -2
- package/dist/templates/gitignore +3 -1
- package/dist/templates/skills/create-connections/SKILL.md +210 -0
- package/dist/templates/skills/create-connections/references/mappers.md +152 -0
- package/dist/templates/skills/{create-semantic-model → create-cubes}/SKILL.md +20 -18
- package/dist/templates/skills/create-cubes/references/bq-pk-fk-conventions.md +183 -0
- package/dist/templates/skills/{create-semantic-model → create-cubes}/references/cube-examples.md +2 -2
- package/dist/templates/skills/create-cubes/references/hubspot-entities.md +289 -0
- package/dist/templates/skills/create-cubes/references/jira-entities.md +201 -0
- package/dist/templates/skills/create-cubes/references/netsuite-entities.md +121 -0
- package/dist/templates/skills/create-cubes/references/stripe-entities.md +114 -0
- package/dist/templates/skills/create-dbt-transformations/SKILL.md +43 -22
- package/dist/templates/skills/create-dbt-transformations/references/edge-cases.md +20 -2
- package/dist/templates/skills/create-dbt-transformations/references/schema-conventions.md +21 -7
- package/dist/templates/skills/create-dbt-transformations/references/sql-templates.md +34 -20
- package/dist/templates/skills/explore-lakehouse/SKILL.md +3 -3
- package/dist/templates/skills/load-sample-data/SKILL.md +1 -1
- package/dist/templates/skills/visualize-semantic-model/SKILL.md +159 -0
- package/dist/templates/skills/visualize-semantic-model/scripts/render_graph.py +186 -0
- package/dist/{types-Y_ht_ja5.d.mts → types-Bk2Cb5yt.d.mts} +9 -0
- package/package.json +44 -7
- package/dist/adapters/oclif/commands/integrations/create.d.mts +0 -11
- package/dist/adapters/oclif/commands/integrations/create.mjs +0 -16
- package/dist/adapters/oclif/commands/integrations/get.mjs +0 -21
- package/dist/adapters/oclif/commands/integrations/list.d.mts +0 -11
- package/dist/adapters/oclif/commands/integrations/list.mjs +0 -16
- package/dist/adapters/oclif/commands/integrations/update.d.mts +0 -15
- package/dist/adapters/oclif/commands/integrations/update.mjs +0 -21
- package/dist/adapters/oclif/commands/overlays/diff.d.mts +0 -19
- package/dist/adapters/oclif/commands/overlays/diff.mjs +0 -80
- package/dist/adapters/oclif/commands/overlays/pull.d.mts +0 -15
- package/dist/adapters/oclif/commands/overlays/pull.mjs +0 -45
- package/dist/adapters/oclif/commands/overlays/push.d.mts +0 -18
- package/dist/adapters/oclif/commands/overlays/push.mjs +0 -59
- package/dist/adapters/oclif/commands/overlays/status.d.mts +0 -18
- package/dist/adapters/oclif/commands/overlays/status.mjs +0 -53
- package/dist/base.command-YiwlGlKs.mjs +0 -62
- package/dist/core-jpFPylBb.mjs +0 -997
- package/dist/index-DD2Vr-pu.d.mts +0 -193
- package/dist/types-C_p_6rkj.d.mts +0 -69
- /package/dist/templates/skills/{create-semantic-model → create-cubes}/references/key-patterns.md +0 -0
- /package/dist/templates/skills/{create-semantic-model → create-cubes}/references/validation-queries.md +0 -0
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { f as StatusResult } from "../../../../types-C_p_6rkj.mjs";
|
|
2
|
-
import { t as BaseCommand } from "../../../../base.command-d7VW6WTp.mjs";
|
|
3
|
-
import * as _$_oclif_core_interfaces0 from "@oclif/core/interfaces";
|
|
4
|
-
|
|
5
|
-
//#region src/adapters/oclif/commands/overlays/status.d.ts
|
|
6
|
-
declare class OverlaysStatus extends BaseCommand<typeof OverlaysStatus> {
|
|
7
|
-
static description: string;
|
|
8
|
-
static flags: {
|
|
9
|
-
dir: _$_oclif_core_interfaces0.OptionFlag<string, _$_oclif_core_interfaces0.CustomOptions>;
|
|
10
|
-
columns: _$_oclif_core_interfaces0.OptionFlag<string | undefined, _$_oclif_core_interfaces0.CustomOptions>;
|
|
11
|
-
};
|
|
12
|
-
static args: {
|
|
13
|
-
files: _$_oclif_core_interfaces0.Arg<string[] | undefined, Record<string, unknown>>;
|
|
14
|
-
};
|
|
15
|
-
run(): Promise<StatusResult>;
|
|
16
|
-
}
|
|
17
|
-
//#endregion
|
|
18
|
-
export { OverlaysStatus as default };
|
|
@@ -1,53 +0,0 @@
|
|
|
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
|
-
import chalk from "chalk";
|
|
4
|
-
import { Args, Flags } from "@oclif/core";
|
|
5
|
-
//#region src/adapters/oclif/commands/overlays/status.ts
|
|
6
|
-
const ALL_COLUMNS = ["name", "status"];
|
|
7
|
-
const STATUS_LABELS = {
|
|
8
|
-
new: chalk.green("new"),
|
|
9
|
-
modified: chalk.blue("modified"),
|
|
10
|
-
conflict: chalk.yellow("conflict"),
|
|
11
|
-
synced: chalk.gray("synced"),
|
|
12
|
-
"remote-only": chalk.red("remote-only")
|
|
13
|
-
};
|
|
14
|
-
var OverlaysStatus = class extends BaseCommand {
|
|
15
|
-
static description = "Show sync status of overlay files";
|
|
16
|
-
static flags = {
|
|
17
|
-
dir: Flags.string({
|
|
18
|
-
char: "d",
|
|
19
|
-
description: "Directory containing overlay files",
|
|
20
|
-
default: "./semantic"
|
|
21
|
-
}),
|
|
22
|
-
columns: Flags.string({
|
|
23
|
-
description: `Columns to display (comma-separated). Available: ${ALL_COLUMNS.join(", ")}`,
|
|
24
|
-
helpValue: "name,status"
|
|
25
|
-
})
|
|
26
|
-
};
|
|
27
|
-
static args = { files: Args.string({
|
|
28
|
-
description: "Specific files to check (optional)",
|
|
29
|
-
required: false,
|
|
30
|
-
multiple: true
|
|
31
|
-
}) };
|
|
32
|
-
async run() {
|
|
33
|
-
const { flags, args } = this;
|
|
34
|
-
const files = args.files ?? [];
|
|
35
|
-
const result = await new StatusService({ api: createApiClient(await getConfig()) }).execute({
|
|
36
|
-
dir: flags.dir,
|
|
37
|
-
files: files.length > 0 ? files : void 0
|
|
38
|
-
});
|
|
39
|
-
if (!this.jsonEnabled()) {
|
|
40
|
-
const cols = flags.columns?.split(",").map((c) => c.trim()).filter((c) => ALL_COLUMNS.includes(c)) ?? [...ALL_COLUMNS];
|
|
41
|
-
const rows = result.statuses.map((s) => ({
|
|
42
|
-
name: s.name,
|
|
43
|
-
status: STATUS_LABELS[s.status] ?? s.status
|
|
44
|
-
}));
|
|
45
|
-
this.table(rows, { columns: cols.map((c) => ({ key: c })) });
|
|
46
|
-
if (result.hasConflicts || result.hasRemoteOnly) this.warn("Run 'revos overlays pull' to resolve remote-only and conflicts.");
|
|
47
|
-
}
|
|
48
|
-
if (result.hasConflicts || result.hasRemoteOnly) this.exit(1);
|
|
49
|
-
return result;
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
//#endregion
|
|
53
|
-
export { OverlaysStatus as default };
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { D as setClerkEnv, F as ApiError } from "./core-jpFPylBb.mjs";
|
|
2
|
-
import { Command, Flags } from "@oclif/core";
|
|
3
|
-
import { makeTable } from "@oclif/table";
|
|
4
|
-
//#region src/adapters/oclif/base.command.ts
|
|
5
|
-
var BaseCommand = class extends Command {
|
|
6
|
-
static enableJsonFlag = true;
|
|
7
|
-
static baseFlags = {
|
|
8
|
-
org: Flags.string({
|
|
9
|
-
char: "o",
|
|
10
|
-
description: "Override organization ID for this command"
|
|
11
|
-
}),
|
|
12
|
-
dev: Flags.boolean({ description: "Use development environment (Clerk + API)" })
|
|
13
|
-
};
|
|
14
|
-
flags;
|
|
15
|
-
args;
|
|
16
|
-
async init() {
|
|
17
|
-
await super.init();
|
|
18
|
-
const { flags, args } = await this.parse({
|
|
19
|
-
flags: this.ctor.flags,
|
|
20
|
-
baseFlags: super.ctor.baseFlags,
|
|
21
|
-
enableJsonFlag: this.ctor.enableJsonFlag,
|
|
22
|
-
args: this.ctor.args,
|
|
23
|
-
strict: this.ctor.strict
|
|
24
|
-
});
|
|
25
|
-
this.flags = flags;
|
|
26
|
-
this.args = args;
|
|
27
|
-
if (this.flags.dev) {
|
|
28
|
-
setClerkEnv("development");
|
|
29
|
-
if (!process.env.REVOS_API_URL) process.env.REVOS_API_URL = "https://api.revos.dev";
|
|
30
|
-
}
|
|
31
|
-
if (this.flags.org) process.env.REVOS_ORG_ID = this.flags.org;
|
|
32
|
-
}
|
|
33
|
-
table(data, options) {
|
|
34
|
-
this.log(makeTable({
|
|
35
|
-
data,
|
|
36
|
-
...options
|
|
37
|
-
}));
|
|
38
|
-
}
|
|
39
|
-
async catch(err) {
|
|
40
|
-
if (err instanceof ApiError) err.message = this.formatApiError(err);
|
|
41
|
-
return super.catch(err);
|
|
42
|
-
}
|
|
43
|
-
formatApiError(err) {
|
|
44
|
-
if (err.status === 401) return "Authentication expired or invalid. Run 'revos auth login' to re-authenticate.";
|
|
45
|
-
if (err.status === 403) return "Access denied. You don't have permission to perform this action.";
|
|
46
|
-
if (err.status === 404) return `Resource not found: ${err.url}`;
|
|
47
|
-
if (err.status === 0) return "Network error: could not reach the API. Check your connection and API URL.";
|
|
48
|
-
if (err.status >= 500) return `Server error (${err.status}): ${err.message}`;
|
|
49
|
-
return err.message;
|
|
50
|
-
}
|
|
51
|
-
toErrorJson(err) {
|
|
52
|
-
if (err instanceof ApiError) return { error: {
|
|
53
|
-
message: err.message,
|
|
54
|
-
status: err.status,
|
|
55
|
-
url: err.url,
|
|
56
|
-
body: err.body
|
|
57
|
-
} };
|
|
58
|
-
return super.toErrorJson(err);
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
//#endregion
|
|
62
|
-
export { BaseCommand as t };
|