@ted-galago/wave-cli 0.1.1 → 0.1.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/dist/index.cjs +27 -31
- package/dist/index.js +24 -28
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
// src/index.ts
|
|
5
5
|
var import_commander2 = require("commander");
|
|
6
|
-
var
|
|
6
|
+
var import_zod12 = require("zod");
|
|
7
7
|
|
|
8
8
|
// src/cli.ts
|
|
9
9
|
var import_commander = require("commander");
|
|
@@ -2139,19 +2139,13 @@ function registerOrganizationCommands(program) {
|
|
|
2139
2139
|
}
|
|
2140
2140
|
});
|
|
2141
2141
|
});
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
// src/commands/metaProfiles.ts
|
|
2145
|
-
var import_zod11 = require("zod");
|
|
2146
|
-
var idSchema10 = import_zod11.z.string().min(1);
|
|
2147
|
-
function registerMetaProfileCommands(program) {
|
|
2148
|
-
const organizationMetaProfiles = program.command("organization-meta-profiles").description("Organization meta profile operations");
|
|
2149
|
-
organizationMetaProfiles.command("show").option("--id <id>", "Meta profile ID (optional; defaults to organization_id)").action(async (opts, cmd) => {
|
|
2142
|
+
const metaProfile = organizations.command("meta-profile").description("Organization meta profile operations");
|
|
2143
|
+
metaProfile.command("show").option("--id <id>", "Meta profile ID (defaults to resolved organization context)").action(async (opts, cmd) => {
|
|
2150
2144
|
const globalOpts = cmd.optsWithGlobals();
|
|
2151
2145
|
const organizationId = resolveOrganizationId(globalOpts.organizationId);
|
|
2152
|
-
const id =
|
|
2146
|
+
const id = idSchema9.parse(opts.id ?? organizationId);
|
|
2153
2147
|
await runGraphqlQueryCommand({
|
|
2154
|
-
command: "
|
|
2148
|
+
command: "organizations.meta-profile.show",
|
|
2155
2149
|
runtimeOptions: pickRuntimeOptions(globalOpts),
|
|
2156
2150
|
field: "organization_meta_profile",
|
|
2157
2151
|
variables: {
|
|
@@ -2161,19 +2155,19 @@ function registerMetaProfileCommands(program) {
|
|
|
2161
2155
|
isShow: true
|
|
2162
2156
|
});
|
|
2163
2157
|
});
|
|
2164
|
-
|
|
2158
|
+
metaProfile.command("update").option("--id <id>", "Meta profile ID (defaults to resolved organization context)").requiredOption(
|
|
2165
2159
|
"--data-json <dataJson>",
|
|
2166
2160
|
'JSON object for organization_meta_profile or {"organization_meta_profile": {...}}'
|
|
2167
2161
|
).action(async (opts, cmd) => {
|
|
2168
2162
|
const globalOpts = cmd.optsWithGlobals();
|
|
2169
2163
|
const organizationId = resolveOrganizationId(globalOpts.organizationId);
|
|
2170
|
-
const id =
|
|
2164
|
+
const id = idSchema9.parse(opts.id ?? organizationId);
|
|
2171
2165
|
const body = __testables.normalizeBody(
|
|
2172
2166
|
String(opts.dataJson),
|
|
2173
2167
|
"organization_meta_profile"
|
|
2174
2168
|
);
|
|
2175
2169
|
await runGraphqlMutationCommand({
|
|
2176
|
-
command: "
|
|
2170
|
+
command: "organizations.meta-profile.update",
|
|
2177
2171
|
runtimeOptions: pickRuntimeOptions(globalOpts),
|
|
2178
2172
|
field: "update_organization_meta_profile",
|
|
2179
2173
|
variables: {
|
|
@@ -2183,13 +2177,13 @@ function registerMetaProfileCommands(program) {
|
|
|
2183
2177
|
}
|
|
2184
2178
|
});
|
|
2185
2179
|
});
|
|
2186
|
-
const
|
|
2187
|
-
|
|
2180
|
+
const keyMetricMetaProfile = organizations.command("key-metric-meta-profile").description("Key metric meta profile operations");
|
|
2181
|
+
keyMetricMetaProfile.command("show").option("--id <id>", "Meta profile ID (defaults to resolved organization context)").action(async (opts, cmd) => {
|
|
2188
2182
|
const globalOpts = cmd.optsWithGlobals();
|
|
2189
2183
|
const organizationId = resolveOrganizationId(globalOpts.organizationId);
|
|
2190
|
-
const id =
|
|
2184
|
+
const id = idSchema9.parse(opts.id ?? organizationId);
|
|
2191
2185
|
await runGraphqlQueryCommand({
|
|
2192
|
-
command: "key-metric-meta-
|
|
2186
|
+
command: "organizations.key-metric-meta-profile.show",
|
|
2193
2187
|
runtimeOptions: pickRuntimeOptions(globalOpts),
|
|
2194
2188
|
field: "key_metric_meta_profile",
|
|
2195
2189
|
variables: {
|
|
@@ -2199,16 +2193,19 @@ function registerMetaProfileCommands(program) {
|
|
|
2199
2193
|
isShow: true
|
|
2200
2194
|
});
|
|
2201
2195
|
});
|
|
2202
|
-
|
|
2196
|
+
keyMetricMetaProfile.command("update").option("--id <id>", "Meta profile ID (defaults to resolved organization context)").requiredOption(
|
|
2203
2197
|
"--data-json <dataJson>",
|
|
2204
2198
|
'JSON object for key_metric_meta_profile or {"key_metric_meta_profile": {...}}'
|
|
2205
2199
|
).action(async (opts, cmd) => {
|
|
2206
2200
|
const globalOpts = cmd.optsWithGlobals();
|
|
2207
2201
|
const organizationId = resolveOrganizationId(globalOpts.organizationId);
|
|
2208
|
-
const id =
|
|
2209
|
-
const body = __testables.normalizeBody(
|
|
2202
|
+
const id = idSchema9.parse(opts.id ?? organizationId);
|
|
2203
|
+
const body = __testables.normalizeBody(
|
|
2204
|
+
String(opts.dataJson),
|
|
2205
|
+
"key_metric_meta_profile"
|
|
2206
|
+
);
|
|
2210
2207
|
await runGraphqlMutationCommand({
|
|
2211
|
-
command: "key-metric-meta-
|
|
2208
|
+
command: "organizations.key-metric-meta-profile.update",
|
|
2212
2209
|
runtimeOptions: pickRuntimeOptions(globalOpts),
|
|
2213
2210
|
field: "update_key_metric_meta_profile",
|
|
2214
2211
|
variables: {
|
|
@@ -2221,8 +2218,8 @@ function registerMetaProfileCommands(program) {
|
|
|
2221
2218
|
}
|
|
2222
2219
|
|
|
2223
2220
|
// src/commands/foundation.ts
|
|
2224
|
-
var
|
|
2225
|
-
var
|
|
2221
|
+
var import_zod11 = require("zod");
|
|
2222
|
+
var idSchema10 = import_zod11.z.string().min(1);
|
|
2226
2223
|
function registerFoundationCommands(program) {
|
|
2227
2224
|
const foundation = program.command("foundation").description("Foundation operations");
|
|
2228
2225
|
const strategicPlans = foundation.command("strategic-plans").description("Strategic plan operations");
|
|
@@ -2230,7 +2227,7 @@ function registerFoundationCommands(program) {
|
|
|
2230
2227
|
strategicPlans.command("show").option("--id <id>", "Strategic plan ID (defaults to organization context)").option("--progress-scope <progressScope>").option("--all-progress <allProgress>").option("--all <all>").action(async (opts, cmd) => {
|
|
2231
2228
|
const globalOpts = cmd.optsWithGlobals();
|
|
2232
2229
|
const organizationId = resolveOrganizationId(globalOpts.organizationId);
|
|
2233
|
-
const id =
|
|
2230
|
+
const id = idSchema10.parse(opts.id ?? organizationId);
|
|
2234
2231
|
await runGraphqlQueryCommand({
|
|
2235
2232
|
command: "foundation.strategic-plans.show",
|
|
2236
2233
|
runtimeOptions: pickRuntimeOptions(globalOpts),
|
|
@@ -2251,7 +2248,7 @@ function registerFoundationCommands(program) {
|
|
|
2251
2248
|
).action(async (opts, cmd) => {
|
|
2252
2249
|
const globalOpts = cmd.optsWithGlobals();
|
|
2253
2250
|
const organizationId = resolveOrganizationId(globalOpts.organizationId);
|
|
2254
|
-
const id =
|
|
2251
|
+
const id = idSchema10.parse(opts.id ?? organizationId);
|
|
2255
2252
|
const body = __testables.normalizeBody(String(opts.dataJson), "strategic_plan");
|
|
2256
2253
|
await runGraphqlMutationCommand({
|
|
2257
2254
|
command: "foundation.strategic-plans.update",
|
|
@@ -2267,7 +2264,7 @@ function registerFoundationCommands(program) {
|
|
|
2267
2264
|
strategicObjectives.command("show").option("--id <id>", "Strategic objective ID (defaults to organization context)").option("--progress-scope <progressScope>").option("--all-progress <allProgress>").option("--all <all>").action(async (opts, cmd) => {
|
|
2268
2265
|
const globalOpts = cmd.optsWithGlobals();
|
|
2269
2266
|
const organizationId = resolveOrganizationId(globalOpts.organizationId);
|
|
2270
|
-
const id =
|
|
2267
|
+
const id = idSchema10.parse(opts.id ?? organizationId);
|
|
2271
2268
|
await runGraphqlQueryCommand({
|
|
2272
2269
|
command: "foundation.strategic-objectives.show",
|
|
2273
2270
|
runtimeOptions: pickRuntimeOptions(globalOpts),
|
|
@@ -2288,7 +2285,7 @@ function registerFoundationCommands(program) {
|
|
|
2288
2285
|
).action(async (opts, cmd) => {
|
|
2289
2286
|
const globalOpts = cmd.optsWithGlobals();
|
|
2290
2287
|
const organizationId = resolveOrganizationId(globalOpts.organizationId);
|
|
2291
|
-
const id =
|
|
2288
|
+
const id = idSchema10.parse(opts.id ?? organizationId);
|
|
2292
2289
|
const body = __testables.normalizeBody(
|
|
2293
2290
|
String(opts.dataJson),
|
|
2294
2291
|
"strategic_objective"
|
|
@@ -2348,7 +2345,6 @@ function buildCli() {
|
|
|
2348
2345
|
registerMemberCommands(program);
|
|
2349
2346
|
registerTeamCommands(program);
|
|
2350
2347
|
registerOrganizationCommands(program);
|
|
2351
|
-
registerMetaProfileCommands(program);
|
|
2352
2348
|
registerIssueCommands(program);
|
|
2353
2349
|
registerSystemToolCommands(program);
|
|
2354
2350
|
registerFoundationCommands(program);
|
|
@@ -2400,13 +2396,13 @@ main().catch((error) => {
|
|
|
2400
2396
|
exitCode: EXIT_CODES.invalidArgs
|
|
2401
2397
|
});
|
|
2402
2398
|
}
|
|
2403
|
-
if (error instanceof
|
|
2399
|
+
if (error instanceof import_zod12.ZodError || error instanceof import_commander2.InvalidArgumentError) {
|
|
2404
2400
|
printCliFailure({
|
|
2405
2401
|
status: 400,
|
|
2406
2402
|
code: "invalid_args",
|
|
2407
2403
|
message: "Invalid command arguments.",
|
|
2408
2404
|
details: {
|
|
2409
|
-
issues: error instanceof
|
|
2405
|
+
issues: error instanceof import_zod12.ZodError ? error.issues : [{ message: error.message, code: "invalid_argument" }]
|
|
2410
2406
|
},
|
|
2411
2407
|
exitCode: EXIT_CODES.invalidArgs
|
|
2412
2408
|
});
|
package/dist/index.js
CHANGED
|
@@ -2138,19 +2138,13 @@ function registerOrganizationCommands(program) {
|
|
|
2138
2138
|
}
|
|
2139
2139
|
});
|
|
2140
2140
|
});
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
// src/commands/metaProfiles.ts
|
|
2144
|
-
import { z as z11 } from "zod";
|
|
2145
|
-
var idSchema10 = z11.string().min(1);
|
|
2146
|
-
function registerMetaProfileCommands(program) {
|
|
2147
|
-
const organizationMetaProfiles = program.command("organization-meta-profiles").description("Organization meta profile operations");
|
|
2148
|
-
organizationMetaProfiles.command("show").option("--id <id>", "Meta profile ID (optional; defaults to organization_id)").action(async (opts, cmd) => {
|
|
2141
|
+
const metaProfile = organizations.command("meta-profile").description("Organization meta profile operations");
|
|
2142
|
+
metaProfile.command("show").option("--id <id>", "Meta profile ID (defaults to resolved organization context)").action(async (opts, cmd) => {
|
|
2149
2143
|
const globalOpts = cmd.optsWithGlobals();
|
|
2150
2144
|
const organizationId = resolveOrganizationId(globalOpts.organizationId);
|
|
2151
|
-
const id =
|
|
2145
|
+
const id = idSchema9.parse(opts.id ?? organizationId);
|
|
2152
2146
|
await runGraphqlQueryCommand({
|
|
2153
|
-
command: "
|
|
2147
|
+
command: "organizations.meta-profile.show",
|
|
2154
2148
|
runtimeOptions: pickRuntimeOptions(globalOpts),
|
|
2155
2149
|
field: "organization_meta_profile",
|
|
2156
2150
|
variables: {
|
|
@@ -2160,19 +2154,19 @@ function registerMetaProfileCommands(program) {
|
|
|
2160
2154
|
isShow: true
|
|
2161
2155
|
});
|
|
2162
2156
|
});
|
|
2163
|
-
|
|
2157
|
+
metaProfile.command("update").option("--id <id>", "Meta profile ID (defaults to resolved organization context)").requiredOption(
|
|
2164
2158
|
"--data-json <dataJson>",
|
|
2165
2159
|
'JSON object for organization_meta_profile or {"organization_meta_profile": {...}}'
|
|
2166
2160
|
).action(async (opts, cmd) => {
|
|
2167
2161
|
const globalOpts = cmd.optsWithGlobals();
|
|
2168
2162
|
const organizationId = resolveOrganizationId(globalOpts.organizationId);
|
|
2169
|
-
const id =
|
|
2163
|
+
const id = idSchema9.parse(opts.id ?? organizationId);
|
|
2170
2164
|
const body = __testables.normalizeBody(
|
|
2171
2165
|
String(opts.dataJson),
|
|
2172
2166
|
"organization_meta_profile"
|
|
2173
2167
|
);
|
|
2174
2168
|
await runGraphqlMutationCommand({
|
|
2175
|
-
command: "
|
|
2169
|
+
command: "organizations.meta-profile.update",
|
|
2176
2170
|
runtimeOptions: pickRuntimeOptions(globalOpts),
|
|
2177
2171
|
field: "update_organization_meta_profile",
|
|
2178
2172
|
variables: {
|
|
@@ -2182,13 +2176,13 @@ function registerMetaProfileCommands(program) {
|
|
|
2182
2176
|
}
|
|
2183
2177
|
});
|
|
2184
2178
|
});
|
|
2185
|
-
const
|
|
2186
|
-
|
|
2179
|
+
const keyMetricMetaProfile = organizations.command("key-metric-meta-profile").description("Key metric meta profile operations");
|
|
2180
|
+
keyMetricMetaProfile.command("show").option("--id <id>", "Meta profile ID (defaults to resolved organization context)").action(async (opts, cmd) => {
|
|
2187
2181
|
const globalOpts = cmd.optsWithGlobals();
|
|
2188
2182
|
const organizationId = resolveOrganizationId(globalOpts.organizationId);
|
|
2189
|
-
const id =
|
|
2183
|
+
const id = idSchema9.parse(opts.id ?? organizationId);
|
|
2190
2184
|
await runGraphqlQueryCommand({
|
|
2191
|
-
command: "key-metric-meta-
|
|
2185
|
+
command: "organizations.key-metric-meta-profile.show",
|
|
2192
2186
|
runtimeOptions: pickRuntimeOptions(globalOpts),
|
|
2193
2187
|
field: "key_metric_meta_profile",
|
|
2194
2188
|
variables: {
|
|
@@ -2198,16 +2192,19 @@ function registerMetaProfileCommands(program) {
|
|
|
2198
2192
|
isShow: true
|
|
2199
2193
|
});
|
|
2200
2194
|
});
|
|
2201
|
-
|
|
2195
|
+
keyMetricMetaProfile.command("update").option("--id <id>", "Meta profile ID (defaults to resolved organization context)").requiredOption(
|
|
2202
2196
|
"--data-json <dataJson>",
|
|
2203
2197
|
'JSON object for key_metric_meta_profile or {"key_metric_meta_profile": {...}}'
|
|
2204
2198
|
).action(async (opts, cmd) => {
|
|
2205
2199
|
const globalOpts = cmd.optsWithGlobals();
|
|
2206
2200
|
const organizationId = resolveOrganizationId(globalOpts.organizationId);
|
|
2207
|
-
const id =
|
|
2208
|
-
const body = __testables.normalizeBody(
|
|
2201
|
+
const id = idSchema9.parse(opts.id ?? organizationId);
|
|
2202
|
+
const body = __testables.normalizeBody(
|
|
2203
|
+
String(opts.dataJson),
|
|
2204
|
+
"key_metric_meta_profile"
|
|
2205
|
+
);
|
|
2209
2206
|
await runGraphqlMutationCommand({
|
|
2210
|
-
command: "key-metric-meta-
|
|
2207
|
+
command: "organizations.key-metric-meta-profile.update",
|
|
2211
2208
|
runtimeOptions: pickRuntimeOptions(globalOpts),
|
|
2212
2209
|
field: "update_key_metric_meta_profile",
|
|
2213
2210
|
variables: {
|
|
@@ -2220,8 +2217,8 @@ function registerMetaProfileCommands(program) {
|
|
|
2220
2217
|
}
|
|
2221
2218
|
|
|
2222
2219
|
// src/commands/foundation.ts
|
|
2223
|
-
import { z as
|
|
2224
|
-
var
|
|
2220
|
+
import { z as z11 } from "zod";
|
|
2221
|
+
var idSchema10 = z11.string().min(1);
|
|
2225
2222
|
function registerFoundationCommands(program) {
|
|
2226
2223
|
const foundation = program.command("foundation").description("Foundation operations");
|
|
2227
2224
|
const strategicPlans = foundation.command("strategic-plans").description("Strategic plan operations");
|
|
@@ -2229,7 +2226,7 @@ function registerFoundationCommands(program) {
|
|
|
2229
2226
|
strategicPlans.command("show").option("--id <id>", "Strategic plan ID (defaults to organization context)").option("--progress-scope <progressScope>").option("--all-progress <allProgress>").option("--all <all>").action(async (opts, cmd) => {
|
|
2230
2227
|
const globalOpts = cmd.optsWithGlobals();
|
|
2231
2228
|
const organizationId = resolveOrganizationId(globalOpts.organizationId);
|
|
2232
|
-
const id =
|
|
2229
|
+
const id = idSchema10.parse(opts.id ?? organizationId);
|
|
2233
2230
|
await runGraphqlQueryCommand({
|
|
2234
2231
|
command: "foundation.strategic-plans.show",
|
|
2235
2232
|
runtimeOptions: pickRuntimeOptions(globalOpts),
|
|
@@ -2250,7 +2247,7 @@ function registerFoundationCommands(program) {
|
|
|
2250
2247
|
).action(async (opts, cmd) => {
|
|
2251
2248
|
const globalOpts = cmd.optsWithGlobals();
|
|
2252
2249
|
const organizationId = resolveOrganizationId(globalOpts.organizationId);
|
|
2253
|
-
const id =
|
|
2250
|
+
const id = idSchema10.parse(opts.id ?? organizationId);
|
|
2254
2251
|
const body = __testables.normalizeBody(String(opts.dataJson), "strategic_plan");
|
|
2255
2252
|
await runGraphqlMutationCommand({
|
|
2256
2253
|
command: "foundation.strategic-plans.update",
|
|
@@ -2266,7 +2263,7 @@ function registerFoundationCommands(program) {
|
|
|
2266
2263
|
strategicObjectives.command("show").option("--id <id>", "Strategic objective ID (defaults to organization context)").option("--progress-scope <progressScope>").option("--all-progress <allProgress>").option("--all <all>").action(async (opts, cmd) => {
|
|
2267
2264
|
const globalOpts = cmd.optsWithGlobals();
|
|
2268
2265
|
const organizationId = resolveOrganizationId(globalOpts.organizationId);
|
|
2269
|
-
const id =
|
|
2266
|
+
const id = idSchema10.parse(opts.id ?? organizationId);
|
|
2270
2267
|
await runGraphqlQueryCommand({
|
|
2271
2268
|
command: "foundation.strategic-objectives.show",
|
|
2272
2269
|
runtimeOptions: pickRuntimeOptions(globalOpts),
|
|
@@ -2287,7 +2284,7 @@ function registerFoundationCommands(program) {
|
|
|
2287
2284
|
).action(async (opts, cmd) => {
|
|
2288
2285
|
const globalOpts = cmd.optsWithGlobals();
|
|
2289
2286
|
const organizationId = resolveOrganizationId(globalOpts.organizationId);
|
|
2290
|
-
const id =
|
|
2287
|
+
const id = idSchema10.parse(opts.id ?? organizationId);
|
|
2291
2288
|
const body = __testables.normalizeBody(
|
|
2292
2289
|
String(opts.dataJson),
|
|
2293
2290
|
"strategic_objective"
|
|
@@ -2347,7 +2344,6 @@ function buildCli() {
|
|
|
2347
2344
|
registerMemberCommands(program);
|
|
2348
2345
|
registerTeamCommands(program);
|
|
2349
2346
|
registerOrganizationCommands(program);
|
|
2350
|
-
registerMetaProfileCommands(program);
|
|
2351
2347
|
registerIssueCommands(program);
|
|
2352
2348
|
registerSystemToolCommands(program);
|
|
2353
2349
|
registerFoundationCommands(program);
|