exponential-cli 1.27.0 → 1.29.0
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 +661 -0
- package/README.md +37 -2
- package/dist/index.js +355 -67
- package/dist/index.js.map +1 -1
- package/package.json +11 -3
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// src/program.ts
|
|
4
|
-
import { Command as
|
|
4
|
+
import { Command as Command30 } from "commander";
|
|
5
5
|
|
|
6
6
|
// src/commands/auth.ts
|
|
7
7
|
import { Command } from "commander";
|
|
@@ -87,10 +87,11 @@ function handleError(error, json = false) {
|
|
|
87
87
|
suggestion = "Run: exponential auth login --token <new-token> --api-url <url>";
|
|
88
88
|
break;
|
|
89
89
|
case "NOT_FOUND":
|
|
90
|
-
message = "Resource not found";
|
|
90
|
+
message = message || "Resource not found";
|
|
91
91
|
break;
|
|
92
92
|
case "FORBIDDEN":
|
|
93
|
-
message = "Access denied";
|
|
93
|
+
message = message || "Access denied";
|
|
94
|
+
suggestion = "Run `exponential auth whoami` to see which account this token is; that is the account to grant access to.";
|
|
94
95
|
break;
|
|
95
96
|
}
|
|
96
97
|
const property = error.data?.property;
|
|
@@ -154,22 +155,54 @@ function createAuthCommand() {
|
|
|
154
155
|
console.log(chalk2.green("Successfully logged out."));
|
|
155
156
|
console.log(chalk2.gray(`Config cleared from: ${getConfigPath()}`));
|
|
156
157
|
});
|
|
157
|
-
auth.command("whoami").description("Show
|
|
158
|
+
auth.command("whoami").description("Show which account the stored token signs in as, and whether it is an agent").option("--json", "Output as JSON").action(async (options) => {
|
|
158
159
|
if (!isAuthenticated()) {
|
|
159
|
-
|
|
160
|
-
|
|
160
|
+
if (options.json) {
|
|
161
|
+
console.log(JSON.stringify({ error: { code: "UNAUTHENTICATED", message: "Not authenticated" } }, null, 2));
|
|
162
|
+
} else {
|
|
163
|
+
console.log(chalk2.yellow("Not authenticated."));
|
|
164
|
+
console.log(chalk2.gray("Run: exponential auth login --token <jwt> --api-url <url>"));
|
|
165
|
+
}
|
|
161
166
|
process.exit(1);
|
|
162
167
|
}
|
|
163
168
|
try {
|
|
164
169
|
const config = getConfig();
|
|
165
170
|
const client = getClient();
|
|
166
|
-
const workspaces = await
|
|
171
|
+
const [me, workspaces] = await Promise.all([
|
|
172
|
+
client.users.me(),
|
|
173
|
+
client.workspaces.list()
|
|
174
|
+
]);
|
|
175
|
+
const workspaceCount = workspaces.length;
|
|
176
|
+
if (options.json) {
|
|
177
|
+
console.log(JSON.stringify({
|
|
178
|
+
id: me.id,
|
|
179
|
+
name: me.name,
|
|
180
|
+
email: me.email,
|
|
181
|
+
isAgent: me.isAgent,
|
|
182
|
+
agent: me.agent,
|
|
183
|
+
apiUrl: config.apiUrl,
|
|
184
|
+
workspaces: workspaceCount,
|
|
185
|
+
configPath: getConfigPath()
|
|
186
|
+
}, null, 2));
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
167
189
|
console.log(chalk2.green("Authenticated"));
|
|
190
|
+
console.log(`Account: ${chalk2.bold(me.name ?? "(unnamed)")} ${chalk2.gray(`(${me.id})`)}`);
|
|
191
|
+
if (me.email) {
|
|
192
|
+
console.log(chalk2.gray(`Email: ${me.email}`));
|
|
193
|
+
}
|
|
194
|
+
if (me.isAgent) {
|
|
195
|
+
const owner = me.agent?.owner.name ?? me.agent?.owner.id ?? "unknown";
|
|
196
|
+
console.log(`Type: ${chalk2.cyan("External agent")} ${chalk2.gray(`owned by ${owner}`)}`);
|
|
197
|
+
console.log(chalk2.gray("To give this agent a restricted project, add this account on the project's Members tab."));
|
|
198
|
+
} else {
|
|
199
|
+
console.log(`Type: ${chalk2.cyan("Person")}`);
|
|
200
|
+
}
|
|
168
201
|
console.log(chalk2.gray(`API URL: ${config.apiUrl}`));
|
|
169
|
-
console.log(chalk2.gray(`Workspaces: ${
|
|
202
|
+
console.log(chalk2.gray(`Workspaces: ${workspaceCount}`));
|
|
170
203
|
console.log(chalk2.gray(`Config: ${getConfigPath()}`));
|
|
171
204
|
} catch (error) {
|
|
172
|
-
handleError(error);
|
|
205
|
+
handleError(error, options.json);
|
|
173
206
|
}
|
|
174
207
|
});
|
|
175
208
|
auth.command("show").description(
|
|
@@ -299,8 +332,8 @@ function transformWorkspace(workspace) {
|
|
|
299
332
|
};
|
|
300
333
|
}
|
|
301
334
|
function outputActionJson(action) {
|
|
302
|
-
const
|
|
303
|
-
console.log(JSON.stringify(
|
|
335
|
+
const output2 = transformAction(action);
|
|
336
|
+
console.log(JSON.stringify(output2, null, 2));
|
|
304
337
|
}
|
|
305
338
|
function outputActionUpsertJson(result) {
|
|
306
339
|
console.log(JSON.stringify({ outcome: result.outcome, action: transformAction(result.action) }, null, 2));
|
|
@@ -326,12 +359,12 @@ ${statusBadge2} ${chalk3.bold(action.name)}`);
|
|
|
326
359
|
console.log();
|
|
327
360
|
}
|
|
328
361
|
function outputActionsJson(actions, filters = {}) {
|
|
329
|
-
const
|
|
362
|
+
const output2 = {
|
|
330
363
|
actions: actions.map(transformAction),
|
|
331
364
|
total: actions.length,
|
|
332
365
|
filters
|
|
333
366
|
};
|
|
334
|
-
console.log(JSON.stringify(
|
|
367
|
+
console.log(JSON.stringify(output2, null, 2));
|
|
335
368
|
}
|
|
336
369
|
function outputActionsPretty(actions) {
|
|
337
370
|
if (actions.length === 0) {
|
|
@@ -449,11 +482,11 @@ ${chalk3.bold(`${t.loose.length} individually dated`)} ${chalk3.gray("\u2014 rea
|
|
|
449
482
|
console.log();
|
|
450
483
|
}
|
|
451
484
|
function outputProjectsJson(projects) {
|
|
452
|
-
const
|
|
485
|
+
const output2 = {
|
|
453
486
|
projects: projects.map(transformProject),
|
|
454
487
|
total: projects.length
|
|
455
488
|
};
|
|
456
|
-
console.log(JSON.stringify(
|
|
489
|
+
console.log(JSON.stringify(output2, null, 2));
|
|
457
490
|
}
|
|
458
491
|
function outputProjectsPretty(projects) {
|
|
459
492
|
if (projects.length === 0) {
|
|
@@ -483,11 +516,11 @@ ${chalk3.bold(project.name)}`);
|
|
|
483
516
|
console.log();
|
|
484
517
|
}
|
|
485
518
|
function outputWorkspacesJson(workspaces) {
|
|
486
|
-
const
|
|
519
|
+
const output2 = {
|
|
487
520
|
workspaces: workspaces.map(transformWorkspace),
|
|
488
521
|
total: workspaces.length
|
|
489
522
|
};
|
|
490
|
-
console.log(JSON.stringify(
|
|
523
|
+
console.log(JSON.stringify(output2, null, 2));
|
|
491
524
|
}
|
|
492
525
|
function outputWorkspacesPretty(workspaces) {
|
|
493
526
|
if (workspaces.length === 0) {
|
|
@@ -7695,10 +7728,264 @@ ${revision.body}
|
|
|
7695
7728
|
return pages;
|
|
7696
7729
|
}
|
|
7697
7730
|
|
|
7698
|
-
// src/commands/
|
|
7731
|
+
// src/commands/positions.ts
|
|
7699
7732
|
import { Command as Command20 } from "commander";
|
|
7733
|
+
import chalk11 from "chalk";
|
|
7734
|
+
var WORKSPACE_OPTION = ["--workspace <slug|id>", "Workspace (defaults to your default workspace)"];
|
|
7735
|
+
var HOLDER_OPTION_DESCRIPTION = "Holder: a workspace member by name, email, or user id (repeatable)";
|
|
7736
|
+
var HUMAN_ONLY_NOTE = "Writes need your own login (`exponential auth login`); agent keys are refused. Owners and admins can do everything; a member who holds a position may edit its remit.";
|
|
7737
|
+
function pickPosition(positions, ref) {
|
|
7738
|
+
const byId = positions.find((p) => p.id === ref);
|
|
7739
|
+
if (byId) return byId;
|
|
7740
|
+
const needle = ref.trim().toLowerCase();
|
|
7741
|
+
const byTitle = positions.find((p) => p.title.toLowerCase() === needle);
|
|
7742
|
+
if (byTitle) return byTitle;
|
|
7743
|
+
const known = positions.map((p) => `"${p.title}"`).join(", ");
|
|
7744
|
+
throw new Error(`No position matches "${ref}". Positions: ${known || "(none)"}`);
|
|
7745
|
+
}
|
|
7746
|
+
function resolveHolderIds(members, tokens) {
|
|
7747
|
+
return [...new Set(tokens.map((token) => resolveMember(members, token).id))];
|
|
7748
|
+
}
|
|
7749
|
+
async function loadPosition(client, workspaceId, ref) {
|
|
7750
|
+
const { positions } = await client.positions.list(workspaceId);
|
|
7751
|
+
return pickPosition(positions, ref);
|
|
7752
|
+
}
|
|
7753
|
+
function holderLabel(holder) {
|
|
7754
|
+
return `${holder.name ?? holder.userId}${holder.isAgent ? chalk11.gray(" (agent)") : ""}`;
|
|
7755
|
+
}
|
|
7756
|
+
function printPosition(position) {
|
|
7757
|
+
console.log(`${chalk11.bold(position.title)} ${chalk11.gray(`(${position.id})`)}`);
|
|
7758
|
+
console.log(
|
|
7759
|
+
` ${chalk11.gray("Held by:")} ${position.holders.length ? position.holders.map(holderLabel).join(", ") : chalk11.yellow("nobody")}`
|
|
7760
|
+
);
|
|
7761
|
+
console.log(` ${chalk11.gray("Remit:")} ${position.remit.replace(/\n/g, "\n ")}`);
|
|
7762
|
+
if (position.notAccountableFor) {
|
|
7763
|
+
console.log(` ${chalk11.gray("Not accountable for:")} ${position.notAccountableFor.replace(/\n/g, "\n ")}`);
|
|
7764
|
+
}
|
|
7765
|
+
console.log();
|
|
7766
|
+
}
|
|
7767
|
+
function output(position, useJson, verb) {
|
|
7768
|
+
if (useJson) {
|
|
7769
|
+
console.log(JSON.stringify(position, null, 2));
|
|
7770
|
+
return;
|
|
7771
|
+
}
|
|
7772
|
+
console.log(chalk11.green(`${verb}:`));
|
|
7773
|
+
printPosition(position);
|
|
7774
|
+
}
|
|
7775
|
+
function parseImportFile(raw, members) {
|
|
7776
|
+
let parsed;
|
|
7777
|
+
try {
|
|
7778
|
+
parsed = JSON.parse(raw);
|
|
7779
|
+
} catch (error) {
|
|
7780
|
+
throw new Error(`Import file is not valid JSON: ${error.message}`);
|
|
7781
|
+
}
|
|
7782
|
+
const rows = Array.isArray(parsed) ? parsed : parsed?.positions;
|
|
7783
|
+
if (!Array.isArray(rows) || rows.length === 0) {
|
|
7784
|
+
throw new Error('Import file must be a non-empty JSON array of positions (or {"positions": [...]})');
|
|
7785
|
+
}
|
|
7786
|
+
return rows.map((row, index) => {
|
|
7787
|
+
const where = `positions[${index}]`;
|
|
7788
|
+
if (typeof row.title !== "string" || !row.title.trim()) throw new Error(`${where}: "title" is required`);
|
|
7789
|
+
if (typeof row.remit !== "string" || !row.remit.trim()) throw new Error(`${where}: "remit" is required`);
|
|
7790
|
+
if (row.notAccountableFor !== void 0 && typeof row.notAccountableFor !== "string") {
|
|
7791
|
+
throw new Error(`${where}: "notAccountableFor" must be a string`);
|
|
7792
|
+
}
|
|
7793
|
+
const tokens = row.holders ?? row.holderUserIds ?? [];
|
|
7794
|
+
if (!Array.isArray(tokens) || tokens.some((t) => typeof t !== "string")) {
|
|
7795
|
+
throw new Error(`${where}: "holders" must be an array of names, emails or user ids`);
|
|
7796
|
+
}
|
|
7797
|
+
return {
|
|
7798
|
+
title: row.title,
|
|
7799
|
+
remit: row.remit,
|
|
7800
|
+
...row.notAccountableFor !== void 0 && { notAccountableFor: row.notAccountableFor },
|
|
7801
|
+
holderUserIds: resolveHolderIds(members, tokens)
|
|
7802
|
+
};
|
|
7803
|
+
});
|
|
7804
|
+
}
|
|
7805
|
+
function createPositionsCommand() {
|
|
7806
|
+
const positions = new Command20("positions").alias("roles").description(
|
|
7807
|
+
`A workspace's roles & responsibilities (Positions): what each role takes on, what it is not accountable for, and who holds it. Shown on the workspace settings page. ${HUMAN_ONLY_NOTE}`
|
|
7808
|
+
);
|
|
7809
|
+
positions.command("list").description("List positions with their holders").option(...WORKSPACE_OPTION).option("--gaps", "Also list members with no stated remit").action(async (options, cmd) => {
|
|
7810
|
+
const globalOpts = cmd.optsWithGlobals();
|
|
7811
|
+
const useJson = shouldUseJson(globalOpts.json, globalOpts.pretty);
|
|
7812
|
+
try {
|
|
7813
|
+
const client = getClient();
|
|
7814
|
+
const workspaceId = await resolveWorkspaceId(client, options.workspace);
|
|
7815
|
+
const result = await client.positions.list(workspaceId);
|
|
7816
|
+
if (useJson) {
|
|
7817
|
+
console.log(JSON.stringify({ ...result, total: result.positions.length }, null, 2));
|
|
7818
|
+
return;
|
|
7819
|
+
}
|
|
7820
|
+
if (result.positions.length === 0) {
|
|
7821
|
+
console.log(chalk11.gray("No positions yet. Add one with `exponential positions create`."));
|
|
7822
|
+
} else {
|
|
7823
|
+
console.log(chalk11.bold(`
|
|
7824
|
+
Positions (${result.positions.length})
|
|
7825
|
+
`));
|
|
7826
|
+
result.positions.forEach(printPosition);
|
|
7827
|
+
}
|
|
7828
|
+
if (options.gaps) {
|
|
7829
|
+
const gaps = result.members.filter((m) => m.remitGap);
|
|
7830
|
+
if (gaps.length === 0) {
|
|
7831
|
+
console.log(chalk11.gray("Every member has a stated remit."));
|
|
7832
|
+
} else {
|
|
7833
|
+
const roster = await client.workspaces.listMembers(workspaceId);
|
|
7834
|
+
const nameOf = (id) => {
|
|
7835
|
+
const member = roster.find((r) => r.id === id);
|
|
7836
|
+
return member?.name ?? member?.email ?? id;
|
|
7837
|
+
};
|
|
7838
|
+
console.log(chalk11.bold(`No stated remit (${gaps.length}):`));
|
|
7839
|
+
gaps.forEach((g) => console.log(` ${nameOf(g.userId)}`));
|
|
7840
|
+
}
|
|
7841
|
+
}
|
|
7842
|
+
} catch (error) {
|
|
7843
|
+
handleError(error, useJson);
|
|
7844
|
+
}
|
|
7845
|
+
});
|
|
7846
|
+
positions.command("show <position>").description("Show one position, by id or title").option(...WORKSPACE_OPTION).action(async (ref, options, cmd) => {
|
|
7847
|
+
const globalOpts = cmd.optsWithGlobals();
|
|
7848
|
+
const useJson = shouldUseJson(globalOpts.json, globalOpts.pretty);
|
|
7849
|
+
try {
|
|
7850
|
+
const client = getClient();
|
|
7851
|
+
const workspaceId = await resolveWorkspaceId(client, options.workspace);
|
|
7852
|
+
const position = await loadPosition(client, workspaceId, ref);
|
|
7853
|
+
if (useJson) console.log(JSON.stringify(position, null, 2));
|
|
7854
|
+
else printPosition(position);
|
|
7855
|
+
} catch (error) {
|
|
7856
|
+
handleError(error, useJson);
|
|
7857
|
+
}
|
|
7858
|
+
});
|
|
7859
|
+
positions.command("create").description("Create a position").requiredOption("-t, --title <title>", "Title, 1\u201380 characters, unique in the workspace").option("-r, --remit <markdown>", "What its holders take on (Markdown, up to 2000 characters)").option("--remit-file <path>", 'Read the remit from a file ("-" = stdin)').option("-n, --not-accountable-for <markdown>", "What it is explicitly not accountable for").option("--not-accountable-for-file <path>", 'Read "not accountable for" from a file ("-" = stdin)').option("--holder <member>", HOLDER_OPTION_DESCRIPTION, collectMention, []).option(...WORKSPACE_OPTION).action(
|
|
7860
|
+
async (options, cmd) => {
|
|
7861
|
+
const globalOpts = cmd.optsWithGlobals();
|
|
7862
|
+
const useJson = shouldUseJson(globalOpts.json, globalOpts.pretty);
|
|
7863
|
+
try {
|
|
7864
|
+
const remit = readText(options.remit, options.remitFile);
|
|
7865
|
+
if (!remit?.trim()) throw new Error("A remit is required: pass --remit or --remit-file");
|
|
7866
|
+
const notAccountableFor = readText(options.notAccountableFor, options.notAccountableForFile);
|
|
7867
|
+
const client = getClient();
|
|
7868
|
+
const workspaceId = await resolveWorkspaceId(client, options.workspace);
|
|
7869
|
+
const holderUserIds = options.holder.length ? resolveHolderIds(await client.workspaces.listMembers(workspaceId), options.holder) : void 0;
|
|
7870
|
+
const created = await client.positions.create({
|
|
7871
|
+
workspaceId,
|
|
7872
|
+
title: options.title,
|
|
7873
|
+
remit,
|
|
7874
|
+
...notAccountableFor !== void 0 && { notAccountableFor },
|
|
7875
|
+
...holderUserIds && { holderUserIds }
|
|
7876
|
+
});
|
|
7877
|
+
output(created, useJson, "Created");
|
|
7878
|
+
} catch (error) {
|
|
7879
|
+
handleError(error, useJson);
|
|
7880
|
+
}
|
|
7881
|
+
}
|
|
7882
|
+
);
|
|
7883
|
+
positions.command("update <position>").description(`Edit a position, by id or title. --holder replaces the whole holder set.`).option("-t, --title <title>", "New title").option("-r, --remit <markdown>", "New remit").option("--remit-file <path>", 'Read the new remit from a file ("-" = stdin)').option("-n, --not-accountable-for <markdown>", 'New "not accountable for" ("" clears it)').option("--not-accountable-for-file <path>", 'Read "not accountable for" from a file ("-" = stdin)').option("--clear-not-accountable-for", 'Remove "not accountable for"').option("--holder <member>", `${HOLDER_OPTION_DESCRIPTION}; replaces the current holders`, collectMention, []).option("--no-holders", "Remove every holder").option(...WORKSPACE_OPTION).action(
|
|
7884
|
+
async (ref, options, cmd) => {
|
|
7885
|
+
const globalOpts = cmd.optsWithGlobals();
|
|
7886
|
+
const useJson = shouldUseJson(globalOpts.json, globalOpts.pretty);
|
|
7887
|
+
try {
|
|
7888
|
+
if (!options.holders && options.holder.length) {
|
|
7889
|
+
throw new Error("Pass either --holder or --no-holders, not both");
|
|
7890
|
+
}
|
|
7891
|
+
const remit = readText(options.remit, options.remitFile);
|
|
7892
|
+
const notAccountableFor = options.clearNotAccountableFor ? null : readText(options.notAccountableFor, options.notAccountableForFile);
|
|
7893
|
+
const client = getClient();
|
|
7894
|
+
const workspaceId = await resolveWorkspaceId(client, options.workspace);
|
|
7895
|
+
const position = await loadPosition(client, workspaceId, ref);
|
|
7896
|
+
let holderUserIds;
|
|
7897
|
+
if (!options.holders) holderUserIds = [];
|
|
7898
|
+
else if (options.holder.length) {
|
|
7899
|
+
holderUserIds = resolveHolderIds(await client.workspaces.listMembers(workspaceId), options.holder);
|
|
7900
|
+
}
|
|
7901
|
+
const updated = await client.positions.update({
|
|
7902
|
+
workspaceId,
|
|
7903
|
+
positionId: position.id,
|
|
7904
|
+
...options.title !== void 0 && { title: options.title },
|
|
7905
|
+
...remit !== void 0 && { remit },
|
|
7906
|
+
...notAccountableFor !== void 0 && { notAccountableFor },
|
|
7907
|
+
...holderUserIds !== void 0 && { holderUserIds }
|
|
7908
|
+
});
|
|
7909
|
+
output(updated, useJson, "Updated");
|
|
7910
|
+
} catch (error) {
|
|
7911
|
+
handleError(error, useJson);
|
|
7912
|
+
}
|
|
7913
|
+
}
|
|
7914
|
+
);
|
|
7915
|
+
positions.command("delete <position>").description(`Delete a position, by id or title. Its holdings go with it.`).option(...WORKSPACE_OPTION).action(async (ref, options, cmd) => {
|
|
7916
|
+
const globalOpts = cmd.optsWithGlobals();
|
|
7917
|
+
const useJson = shouldUseJson(globalOpts.json, globalOpts.pretty);
|
|
7918
|
+
try {
|
|
7919
|
+
const client = getClient();
|
|
7920
|
+
const workspaceId = await resolveWorkspaceId(client, options.workspace);
|
|
7921
|
+
const position = await loadPosition(client, workspaceId, ref);
|
|
7922
|
+
await client.positions.delete(workspaceId, position.id);
|
|
7923
|
+
if (useJson) console.log(JSON.stringify({ id: position.id, title: position.title, deleted: true }, null, 2));
|
|
7924
|
+
else console.log(chalk11.green(`Deleted "${position.title}"`));
|
|
7925
|
+
} catch (error) {
|
|
7926
|
+
handleError(error, useJson);
|
|
7927
|
+
}
|
|
7928
|
+
});
|
|
7929
|
+
const holders = positions.command("holders").description(`Change who holds a position (owner/admin).`);
|
|
7930
|
+
const holderAction = (mode) => async (ref, members, options, cmd) => {
|
|
7931
|
+
const globalOpts = cmd.optsWithGlobals();
|
|
7932
|
+
const useJson = shouldUseJson(globalOpts.json, globalOpts.pretty);
|
|
7933
|
+
try {
|
|
7934
|
+
const client = getClient();
|
|
7935
|
+
const workspaceId = await resolveWorkspaceId(client, options.workspace);
|
|
7936
|
+
const [position, roster] = await Promise.all([
|
|
7937
|
+
loadPosition(client, workspaceId, ref),
|
|
7938
|
+
client.workspaces.listMembers(workspaceId)
|
|
7939
|
+
]);
|
|
7940
|
+
const named = resolveHolderIds(roster, members);
|
|
7941
|
+
const current = position.holders.map((h) => h.userId);
|
|
7942
|
+
const next = mode === "set" ? named : mode === "add" ? [.../* @__PURE__ */ new Set([...current, ...named])] : current.filter((id) => !named.includes(id));
|
|
7943
|
+
const updated = await client.positions.setHolders(workspaceId, position.id, next);
|
|
7944
|
+
output(updated, useJson, "Holders updated");
|
|
7945
|
+
} catch (error) {
|
|
7946
|
+
handleError(error, useJson);
|
|
7947
|
+
}
|
|
7948
|
+
};
|
|
7949
|
+
holders.command("set <position> [members...]").description("Replace the holders (no members = nobody holds it)").option(...WORKSPACE_OPTION).action(holderAction("set"));
|
|
7950
|
+
holders.command("add <position> <members...>").description("Add holders, by name, email or user id").option(...WORKSPACE_OPTION).action(holderAction("add"));
|
|
7951
|
+
holders.command("remove <position> <members...>").description("Remove holders, by name, email or user id").option(...WORKSPACE_OPTION).action(holderAction("remove"));
|
|
7952
|
+
positions.command("import <file>").description(
|
|
7953
|
+
'Create or update many positions from a JSON file ("-" = stdin): an array of { title, remit, notAccountableFor?, holders?: [name|email|id] }. Matches existing positions by title (case-insensitive); an update replaces the remit and only adds holders. All or nothing.'
|
|
7954
|
+
).option("--dry-run", "Show what would change without writing").option(...WORKSPACE_OPTION).action(async (file, options, cmd) => {
|
|
7955
|
+
const globalOpts = cmd.optsWithGlobals();
|
|
7956
|
+
const useJson = shouldUseJson(globalOpts.json, globalOpts.pretty);
|
|
7957
|
+
try {
|
|
7958
|
+
const raw = readText(void 0, file);
|
|
7959
|
+
const client = getClient();
|
|
7960
|
+
const workspaceId = await resolveWorkspaceId(client, options.workspace);
|
|
7961
|
+
const roster = await client.workspaces.listMembers(workspaceId);
|
|
7962
|
+
const rows = parseImportFile(raw, roster);
|
|
7963
|
+
const result = await client.positions.importMany({
|
|
7964
|
+
workspaceId,
|
|
7965
|
+
dryRun: Boolean(options.dryRun),
|
|
7966
|
+
positions: rows
|
|
7967
|
+
});
|
|
7968
|
+
if (useJson) {
|
|
7969
|
+
console.log(JSON.stringify(result, null, 2));
|
|
7970
|
+
return;
|
|
7971
|
+
}
|
|
7972
|
+
const nameOf = (id) => roster.find((r) => r.id === id)?.name ?? id;
|
|
7973
|
+
console.log(chalk11.bold(result.written ? "\nImported:\n" : "\nDry run \u2014 nothing written:\n"));
|
|
7974
|
+
for (const row of result.results) {
|
|
7975
|
+
const tag = row.outcome === "create" ? chalk11.green("create") : chalk11.yellow("update");
|
|
7976
|
+
console.log(` ${tag} ${chalk11.bold(row.title)} \u2014 ${row.holderUserIds.map(nameOf).join(", ") || "no holders"}`);
|
|
7977
|
+
}
|
|
7978
|
+
} catch (error) {
|
|
7979
|
+
handleError(error, useJson);
|
|
7980
|
+
}
|
|
7981
|
+
});
|
|
7982
|
+
return positions;
|
|
7983
|
+
}
|
|
7984
|
+
|
|
7985
|
+
// src/commands/products.ts
|
|
7986
|
+
import { Command as Command21 } from "commander";
|
|
7700
7987
|
function createProductsCommand() {
|
|
7701
|
-
const products = new
|
|
7988
|
+
const products = new Command21("products").description(
|
|
7702
7989
|
"Manage products. A workspace contains products; a product holds features and tickets."
|
|
7703
7990
|
);
|
|
7704
7991
|
products.command("list").description("List products in a workspace").option("--workspace <slug|id>", "Workspace slug or CUID (defaults to configured workspace)").action(async (options, cmd) => {
|
|
@@ -7839,7 +8126,7 @@ Re-run with --force to delete it anyway.`
|
|
|
7839
8126
|
}
|
|
7840
8127
|
|
|
7841
8128
|
// src/commands/projects.ts
|
|
7842
|
-
import { Command as
|
|
8129
|
+
import { Command as Command22 } from "commander";
|
|
7843
8130
|
var PROJECT_STATUSES = [
|
|
7844
8131
|
"ACTIVE",
|
|
7845
8132
|
"ON_HOLD",
|
|
@@ -7866,7 +8153,7 @@ function validateProjectPriority(value) {
|
|
|
7866
8153
|
return value;
|
|
7867
8154
|
}
|
|
7868
8155
|
function createProjectsCommand() {
|
|
7869
|
-
const projects = new
|
|
8156
|
+
const projects = new Command22("projects").description("Manage projects");
|
|
7870
8157
|
projects.command("list").description("List all projects").option("--workspace <slug|id>", "Workspace slug or CUID").option("--include-actions", "Include actions in output").action(async (options, cmd) => {
|
|
7871
8158
|
const globalOpts = cmd.optsWithGlobals();
|
|
7872
8159
|
const useJson = shouldUseJson(globalOpts.json, globalOpts.pretty);
|
|
@@ -7985,7 +8272,7 @@ Re-run with --force to delete it anyway.`
|
|
|
7985
8272
|
}
|
|
7986
8273
|
|
|
7987
8274
|
// src/commands/resources.ts
|
|
7988
|
-
import { Command as
|
|
8275
|
+
import { Command as Command23 } from "commander";
|
|
7989
8276
|
var STATUS_FILTERS = ["unread", "to_read", "reading", "read", "all"];
|
|
7990
8277
|
function validateStatus(value) {
|
|
7991
8278
|
const v = value ?? "unread";
|
|
@@ -8000,7 +8287,7 @@ function collectTags(value, previous) {
|
|
|
8000
8287
|
}
|
|
8001
8288
|
var TAG_OPTION = "--tag <tag>";
|
|
8002
8289
|
function createResourcesCommand() {
|
|
8003
|
-
const resources = new
|
|
8290
|
+
const resources = new Command23("resources").description(
|
|
8004
8291
|
"Saved links and reference material. `list` defaults to the Reading list (unread); `create --url` saves a link to read later."
|
|
8005
8292
|
);
|
|
8006
8293
|
resources.command("list").description("List resources. Defaults to the Reading list (unread); --status read for what you finished, all for everything.").option("--workspace <slug|id>", "Workspace (defaults to the configured default)").option("--status <status>", `One of: ${STATUS_FILTERS.join(", ")} (default: unread)`).option("--search <text>", "Filter by title/description").option(TAG_OPTION, "Only resources with this tag (repeatable or comma-separated; matches any)", collectTags, []).option("--limit <n>", "Max rows (default 50)", "50").action(
|
|
@@ -8107,7 +8394,7 @@ function createResourcesCommand() {
|
|
|
8107
8394
|
}
|
|
8108
8395
|
|
|
8109
8396
|
// src/commands/runner.ts
|
|
8110
|
-
import { Command as
|
|
8397
|
+
import { Command as Command24 } from "commander";
|
|
8111
8398
|
import { hostname, homedir as homedir2, tmpdir as tmpdir2 } from "os";
|
|
8112
8399
|
import { execFileSync } from "child_process";
|
|
8113
8400
|
import { mkdirSync as mkdirSync3 } from "fs";
|
|
@@ -8559,7 +8846,7 @@ function removeServiceFile(plan) {
|
|
|
8559
8846
|
|
|
8560
8847
|
// src/commands/runner.ts
|
|
8561
8848
|
function createRunnerCommand() {
|
|
8562
|
-
const cmd = new
|
|
8849
|
+
const cmd = new Command24("runner").description(
|
|
8563
8850
|
"Run your Assistant locally: claim its queued runs and work them with Claude Code on this machine"
|
|
8564
8851
|
);
|
|
8565
8852
|
cmd.command("start").description("Poll for queued runs and work them until stopped (Ctrl-C)").option("--runner-id <id>", "Name of this runner, recorded on each run", hostname()).option("--cwd <dir>", "Working directory for the spawned CLI (overrides runner config; never from the server)").option("--interval <seconds>", "Seconds between polls when nothing is queued", "15").option("--once", "Claim at most one run, work it, and exit").option("--no-mcp", "Spawn without the Exponential MCP run tools (progress still streams; the session cannot ask the owner)").action(async (opts) => {
|
|
@@ -8670,8 +8957,8 @@ ${plan.contents}
|
|
|
8670
8957
|
}
|
|
8671
8958
|
|
|
8672
8959
|
// src/commands/search.ts
|
|
8673
|
-
import { Command as
|
|
8674
|
-
import
|
|
8960
|
+
import { Command as Command25 } from "commander";
|
|
8961
|
+
import chalk12 from "chalk";
|
|
8675
8962
|
var KNOWLEDGE_TYPES = ["transcription", "resource", "document", "page"];
|
|
8676
8963
|
function parseTypes(value) {
|
|
8677
8964
|
if (!value) return void 0;
|
|
@@ -8700,7 +8987,7 @@ var TYPE_LABELS = {
|
|
|
8700
8987
|
product: "Products"
|
|
8701
8988
|
};
|
|
8702
8989
|
function createSearchCommand() {
|
|
8703
|
-
const search = new
|
|
8990
|
+
const search = new Command25("search").description(
|
|
8704
8991
|
"Global search across projects, actions, goals, workspaces and more \u2014 same coverage as the app's Cmd+K palette. Matches titles; add --semantic to search meetings, resources, documents and pages by meaning."
|
|
8705
8992
|
).argument("<query>", "Text to search for").option("-w, --workspace <slug>", "Restrict results to one workspace (slug or ID; required with --semantic)").option("-l, --limit <n>", "Max results per entity type (1-25, default 10; 1-20 with --semantic)").option("--semantic", "Search the Knowledge index by meaning instead of matching titles").option("--types <list>", "With --semantic: comma-separated source kinds (transcription,resource,document,page)").action(async (query, options, cmd) => {
|
|
8706
8993
|
const globalOpts = cmd.optsWithGlobals();
|
|
@@ -8714,10 +9001,10 @@ function createSearchCommand() {
|
|
|
8714
9001
|
(w) => w.slug === options.workspace || w.id === options.workspace
|
|
8715
9002
|
);
|
|
8716
9003
|
if (!match) {
|
|
8717
|
-
console.error(
|
|
8718
|
-
console.log(
|
|
9004
|
+
console.error(chalk12.red(`Workspace "${options.workspace}" not found.`));
|
|
9005
|
+
console.log(chalk12.gray("Available workspaces:"));
|
|
8719
9006
|
workspaces.forEach((w) => {
|
|
8720
|
-
console.log(
|
|
9007
|
+
console.log(chalk12.gray(` - ${w.slug} (${w.name})`));
|
|
8721
9008
|
});
|
|
8722
9009
|
process.exit(1);
|
|
8723
9010
|
}
|
|
@@ -8739,16 +9026,16 @@ function createSearchCommand() {
|
|
|
8739
9026
|
return;
|
|
8740
9027
|
}
|
|
8741
9028
|
if (knowledge.results.length === 0) {
|
|
8742
|
-
console.log(
|
|
9029
|
+
console.log(chalk12.gray(`Nothing about "${knowledge.query}" in the Knowledge index.`));
|
|
8743
9030
|
return;
|
|
8744
9031
|
}
|
|
8745
|
-
console.log(
|
|
9032
|
+
console.log(chalk12.bold(`
|
|
8746
9033
|
About "${knowledge.query}"`));
|
|
8747
9034
|
for (const row of knowledge.results) {
|
|
8748
9035
|
console.log(
|
|
8749
|
-
` ${
|
|
9036
|
+
` ${chalk12.white(row.title)} ${chalk12.gray(`\xB7 ${row.sourceType} \xB7 ${Math.round(row.similarity * 100)}%`)}`
|
|
8750
9037
|
);
|
|
8751
|
-
console.log(
|
|
9038
|
+
console.log(chalk12.gray(` ${row.sourceId} ${row.url}`));
|
|
8752
9039
|
if (row.snippet) console.log(` ${row.snippet}`);
|
|
8753
9040
|
}
|
|
8754
9041
|
console.log();
|
|
@@ -8760,7 +9047,7 @@ About "${knowledge.query}"`));
|
|
|
8760
9047
|
return;
|
|
8761
9048
|
}
|
|
8762
9049
|
if (result.results.length === 0) {
|
|
8763
|
-
console.log(
|
|
9050
|
+
console.log(chalk12.gray(`No matches for "${result.query}".`));
|
|
8764
9051
|
return;
|
|
8765
9052
|
}
|
|
8766
9053
|
const byType = /* @__PURE__ */ new Map();
|
|
@@ -8770,14 +9057,14 @@ About "${knowledge.query}"`));
|
|
|
8770
9057
|
byType.set(r.type, bucket);
|
|
8771
9058
|
}
|
|
8772
9059
|
for (const [type, rows] of byType) {
|
|
8773
|
-
console.log(
|
|
9060
|
+
console.log(chalk12.bold(`
|
|
8774
9061
|
${TYPE_LABELS[type] ?? type}`));
|
|
8775
9062
|
for (const row of rows) {
|
|
8776
|
-
const parts = [
|
|
8777
|
-
if (row.subtitle) parts.push(
|
|
8778
|
-
if (row.workspace) parts.push(
|
|
8779
|
-
console.log(` ${parts.join(
|
|
8780
|
-
console.log(
|
|
9063
|
+
const parts = [chalk12.white(row.title)];
|
|
9064
|
+
if (row.subtitle) parts.push(chalk12.gray(row.subtitle));
|
|
9065
|
+
if (row.workspace) parts.push(chalk12.cyan(`@${row.workspace.slug}`));
|
|
9066
|
+
console.log(` ${parts.join(chalk12.gray(" \xB7 "))}`);
|
|
9067
|
+
console.log(chalk12.gray(` ${row.id}${row.url ? ` ${row.url}` : ""}`));
|
|
8781
9068
|
}
|
|
8782
9069
|
}
|
|
8783
9070
|
console.log();
|
|
@@ -8789,7 +9076,7 @@ ${TYPE_LABELS[type] ?? type}`));
|
|
|
8789
9076
|
}
|
|
8790
9077
|
|
|
8791
9078
|
// src/commands/tickets.ts
|
|
8792
|
-
import { Command as
|
|
9079
|
+
import { Command as Command26 } from "commander";
|
|
8793
9080
|
function collectRepeatable(value, previous) {
|
|
8794
9081
|
return [...previous, value];
|
|
8795
9082
|
}
|
|
@@ -8832,7 +9119,7 @@ function validateTicketType(value) {
|
|
|
8832
9119
|
return value;
|
|
8833
9120
|
}
|
|
8834
9121
|
function createTicketsCommand() {
|
|
8835
|
-
const tickets = new
|
|
9122
|
+
const tickets = new Command26("tickets").description(
|
|
8836
9123
|
"Manage product backlog tickets. Tickets live under a product, link to features/epics, depend on each other, and can be implemented via actions."
|
|
8837
9124
|
);
|
|
8838
9125
|
tickets.command("list").description(
|
|
@@ -9201,7 +9488,7 @@ function createTicketsCommand() {
|
|
|
9201
9488
|
handleError(error, useJson);
|
|
9202
9489
|
}
|
|
9203
9490
|
});
|
|
9204
|
-
const comment = new
|
|
9491
|
+
const comment = new Command26("comment").description("Manage comments on a ticket");
|
|
9205
9492
|
comment.command("list").description("List comments on a ticket").requiredOption("--id <id>", "Ticket CUID").action(async (options, cmd) => {
|
|
9206
9493
|
const globalOpts = cmd.optsWithGlobals();
|
|
9207
9494
|
const useJson = shouldUseJson(globalOpts.json, globalOpts.pretty);
|
|
@@ -9293,7 +9580,7 @@ function createTicketsCommand() {
|
|
|
9293
9580
|
}
|
|
9294
9581
|
|
|
9295
9582
|
// src/commands/time.ts
|
|
9296
|
-
import { Command as
|
|
9583
|
+
import { Command as Command27 } from "commander";
|
|
9297
9584
|
import { segmentConversation } from "exponential-sdk";
|
|
9298
9585
|
var SOURCES2 = ["manual", "claude-desktop", "agent-run"];
|
|
9299
9586
|
var STATUSES2 = ["PROPOSED", "CONFIRMED"];
|
|
@@ -9383,7 +9670,7 @@ function batchItemToInput(item, index, defaults) {
|
|
|
9383
9670
|
};
|
|
9384
9671
|
}
|
|
9385
9672
|
function createTimeCommand() {
|
|
9386
|
-
const time = new
|
|
9673
|
+
const time = new Command27("time").description(
|
|
9387
9674
|
`Time entries \u2014 log the day's work and list it. ${OWNERSHIP_NOTE}`
|
|
9388
9675
|
);
|
|
9389
9676
|
time.command("log").description(
|
|
@@ -9553,10 +9840,10 @@ function parseMessagesFile(raw) {
|
|
|
9553
9840
|
}
|
|
9554
9841
|
|
|
9555
9842
|
// src/commands/workspaces.ts
|
|
9556
|
-
import { Command as
|
|
9557
|
-
import
|
|
9843
|
+
import { Command as Command28 } from "commander";
|
|
9844
|
+
import chalk13 from "chalk";
|
|
9558
9845
|
function createWorkspacesCommand() {
|
|
9559
|
-
const workspaces = new
|
|
9846
|
+
const workspaces = new Command28("workspaces").description("Manage workspaces");
|
|
9560
9847
|
workspaces.command("list").description("List all workspaces").action(async (_options, cmd) => {
|
|
9561
9848
|
const globalOpts = cmd.optsWithGlobals();
|
|
9562
9849
|
const useJson = shouldUseJson(globalOpts.json, globalOpts.pretty);
|
|
@@ -9569,7 +9856,7 @@ function createWorkspacesCommand() {
|
|
|
9569
9856
|
const config = getConfig();
|
|
9570
9857
|
outputWorkspacesPretty(workspaces2);
|
|
9571
9858
|
if (config.defaultWorkspaceSlug) {
|
|
9572
|
-
console.log(
|
|
9859
|
+
console.log(chalk13.gray(`Default workspace: ${config.defaultWorkspaceSlug}`));
|
|
9573
9860
|
}
|
|
9574
9861
|
}
|
|
9575
9862
|
} catch (error) {
|
|
@@ -9582,10 +9869,10 @@ function createWorkspacesCommand() {
|
|
|
9582
9869
|
const workspaces2 = await client.workspaces.list();
|
|
9583
9870
|
const workspace = workspaces2.find((w) => w.slug === slug);
|
|
9584
9871
|
if (!workspace) {
|
|
9585
|
-
console.error(
|
|
9586
|
-
console.log(
|
|
9872
|
+
console.error(chalk13.red(`Workspace with slug "${slug}" not found.`));
|
|
9873
|
+
console.log(chalk13.gray("Available workspaces:"));
|
|
9587
9874
|
workspaces2.forEach((w) => {
|
|
9588
|
-
console.log(
|
|
9875
|
+
console.log(chalk13.gray(` - ${w.slug} (${w.name})`));
|
|
9589
9876
|
});
|
|
9590
9877
|
process.exit(1);
|
|
9591
9878
|
}
|
|
@@ -9593,7 +9880,7 @@ function createWorkspacesCommand() {
|
|
|
9593
9880
|
defaultWorkspaceId: workspace.id,
|
|
9594
9881
|
defaultWorkspaceSlug: workspace.slug
|
|
9595
9882
|
});
|
|
9596
|
-
console.log(
|
|
9883
|
+
console.log(chalk13.green(`Default workspace set to: ${workspace.name} (${workspace.slug})`));
|
|
9597
9884
|
} catch (error) {
|
|
9598
9885
|
handleError(error);
|
|
9599
9886
|
}
|
|
@@ -9621,20 +9908,20 @@ function createWorkspacesCommand() {
|
|
|
9621
9908
|
return;
|
|
9622
9909
|
}
|
|
9623
9910
|
if (members.length === 0) {
|
|
9624
|
-
console.log(
|
|
9911
|
+
console.log(chalk13.gray("No members found."));
|
|
9625
9912
|
return;
|
|
9626
9913
|
}
|
|
9627
|
-
console.log(
|
|
9914
|
+
console.log(chalk13.bold(`
|
|
9628
9915
|
Members (${members.length})
|
|
9629
9916
|
`));
|
|
9630
9917
|
for (const m of members) {
|
|
9631
9918
|
const label = m.name ?? m.email ?? m.id;
|
|
9632
|
-
const via = m.source === "team" ?
|
|
9919
|
+
const via = m.source === "team" ? chalk13.gray(
|
|
9633
9920
|
` via team${m.teams.length ? `: ${m.teams.map((t) => t.name).join(", ")}` : ""}` + (m.teamRole ? ` [team ${m.teamRole}]` : "")
|
|
9634
9921
|
) : "";
|
|
9635
|
-
console.log(`${
|
|
9636
|
-
if (m.email) console.log(
|
|
9637
|
-
console.log(
|
|
9922
|
+
console.log(`${chalk13.bold(label)} ${chalk13.gray(`(${m.role})`)}${via}`);
|
|
9923
|
+
if (m.email) console.log(chalk13.gray(` ${m.email}`));
|
|
9924
|
+
console.log(chalk13.gray(` mention: ${m.mentionSyntax}`));
|
|
9638
9925
|
console.log();
|
|
9639
9926
|
}
|
|
9640
9927
|
} catch (error) {
|
|
@@ -9646,7 +9933,7 @@ Members (${members.length})
|
|
|
9646
9933
|
}
|
|
9647
9934
|
|
|
9648
9935
|
// src/commands/goals.ts
|
|
9649
|
-
import { Command as
|
|
9936
|
+
import { Command as Command29 } from "commander";
|
|
9650
9937
|
var GOAL_STATUSES = [
|
|
9651
9938
|
"planned",
|
|
9652
9939
|
"active",
|
|
@@ -9758,7 +10045,7 @@ function validateKeyResultUnit(value) {
|
|
|
9758
10045
|
return value;
|
|
9759
10046
|
}
|
|
9760
10047
|
function createKeyResultsCommand() {
|
|
9761
|
-
const kr = new
|
|
10048
|
+
const kr = new Command29("kr").description(
|
|
9762
10049
|
"Key results on an objective. Ids are CUIDs; --goal takes the objective's integer id."
|
|
9763
10050
|
);
|
|
9764
10051
|
kr.command("list").description("List key results").option("--goal <id>", "Objective ID (a number)").option("-w, --workspace <slug|id>", "Workspace (workspace-wide: every member's KRs)").option("--period <period>", "Period, e.g. Q3-2026").option("--status <status>", `Filter by status: ${KEY_RESULT_STATUSES.join(", ")}`).option("--mine", "Narrow a workspace list to key results you own").action(
|
|
@@ -9961,7 +10248,7 @@ function createKeyResultsCommand() {
|
|
|
9961
10248
|
return kr;
|
|
9962
10249
|
}
|
|
9963
10250
|
function createGoalCommentsCommand() {
|
|
9964
|
-
const comment = new
|
|
10251
|
+
const comment = new Command29("comment").description(
|
|
9965
10252
|
"Read and post comments on a goal. Mention teammates with --mention."
|
|
9966
10253
|
);
|
|
9967
10254
|
comment.command("list").description("List comments on a goal").requiredOption("--goal <id>", "Goal ID (a number)").action(async (options, cmd) => {
|
|
@@ -10056,7 +10343,7 @@ function createGoalCommentsCommand() {
|
|
|
10056
10343
|
return comment;
|
|
10057
10344
|
}
|
|
10058
10345
|
function createGoalsCommand() {
|
|
10059
|
-
const goals = new
|
|
10346
|
+
const goals = new Command29("goals").description(
|
|
10060
10347
|
"Manage goals (objectives) and their key results. Objectives have integer ids; key results are CUIDs."
|
|
10061
10348
|
);
|
|
10062
10349
|
goals.command("list").description(
|
|
@@ -10343,7 +10630,7 @@ Re-run with --with-key-results to go ahead, or move them with \`goals kr update
|
|
|
10343
10630
|
return goals;
|
|
10344
10631
|
}
|
|
10345
10632
|
function createOkrsCommand() {
|
|
10346
|
-
const okrs = new
|
|
10633
|
+
const okrs = new Command29("okrs").description(
|
|
10347
10634
|
"OKRs \u2014 objectives with their key results nested. Manage the parts with `goals` and `goals kr`."
|
|
10348
10635
|
);
|
|
10349
10636
|
okrs.command("list").description(
|
|
@@ -10432,7 +10719,7 @@ function isBareVersionRequest(args) {
|
|
|
10432
10719
|
return args.includes("--version") && args.every((arg) => arg.startsWith("-"));
|
|
10433
10720
|
}
|
|
10434
10721
|
function buildProgram() {
|
|
10435
|
-
const program = new
|
|
10722
|
+
const program = new Command30();
|
|
10436
10723
|
program.name("exponential").description(
|
|
10437
10724
|
[
|
|
10438
10725
|
"CLI to interact with Exponential productivity app.",
|
|
@@ -10463,6 +10750,7 @@ function buildProgram() {
|
|
|
10463
10750
|
program.addCommand(createTicketsCommand());
|
|
10464
10751
|
program.addCommand(createTimeCommand());
|
|
10465
10752
|
program.addCommand(createWorkspacesCommand());
|
|
10753
|
+
program.addCommand(createPositionsCommand());
|
|
10466
10754
|
program.addCommand(createGoalsCommand());
|
|
10467
10755
|
program.addCommand(createOkrsCommand());
|
|
10468
10756
|
return program;
|