@uipath/orchestrator-tool 1.207.0 → 1.208.0-preview.410
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/bundle-publish-5zv9m4j9.js +13 -0
- package/dist/{bundle-workspace-4eetm20d.js → bundle-workspace-fk6zkcqd.js} +5 -8
- package/dist/{connections-enpe5p0d.js → connections-eke6a1v8.js} +5 -7
- package/dist/{index-3b7n9344.js → index-2s4ngbj7.js} +1 -1
- package/dist/{index-cj32bnen.js → index-tma6ps52.js} +10 -6
- package/dist/index.js +5 -7
- package/dist/{kb-k7qrr2f9.js → kb-qz0daftp.js} +40 -40
- package/dist/{knowledge-bundle-content-7wrwyewq.js → knowledge-bundle-content-qcq33qft.js} +4 -7
- package/dist/{skill-bundles-ahy25bvs.js → skill-bundles-4svqq6jm.js} +40 -37
- package/dist/{tool-mf90tzef.js → tool-1w0jh6kt.js} +1 -1
- package/dist/{tool-mn2kvs93.js → tool-990adpfc.js} +1 -1
- package/dist/{tool-x8dsz8c6.js → tool-afmw3cc4.js} +51 -31
- package/dist/{tool-hp40ahgc.js → tool-d95qndpx.js} +12400 -4651
- package/dist/{tool-rsmy37w5.js → tool-hf26vzy2.js} +471 -32
- package/dist/{tool-0q209cx8.js → tool-hgckx60v.js} +1066 -420
- package/dist/{tool-se2gdbg9.js → tool-jpjx1qh6.js} +9 -9
- package/dist/{tool-c2gx2k38.js → tool-xtghg4s1.js} +6 -8
- package/dist/tool.js +5 -7
- package/package.json +2 -2
- package/dist/bundle-publish-zhv332wg.js +0 -16
- package/dist/tool-7p157r8x.js +0 -7377
- package/dist/tool-y0b5ktbt.js +0 -298
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
validateInitialBundleSource2,
|
|
3
|
+
commitWithObjects2
|
|
4
|
+
} from "./tool-jpjx1qh6.js";
|
|
5
|
+
import"./tool-xtghg4s1.js";
|
|
6
|
+
import"./tool-hf26vzy2.js";
|
|
7
|
+
import"./tool-afmw3cc4.js";
|
|
8
|
+
export {
|
|
9
|
+
commitWithObjects2 as commitWithObjects,
|
|
10
|
+
validateInitialBundleSource2 as validateInitialBundleSource
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
//# debugId=39014549318B837064756E2164756E21
|
|
@@ -3,13 +3,10 @@ import {
|
|
|
3
3
|
formatEntryRow2,
|
|
4
4
|
formatHistoryRow2,
|
|
5
5
|
classifyWorkspace2
|
|
6
|
-
} from "./tool-
|
|
7
|
-
import"./tool-
|
|
8
|
-
import"./tool-
|
|
9
|
-
import"./tool-
|
|
10
|
-
import"./tool-7p157r8x.js";
|
|
11
|
-
import"./tool-y0b5ktbt.js";
|
|
12
|
-
import"./tool-x8dsz8c6.js";
|
|
6
|
+
} from "./tool-990adpfc.js";
|
|
7
|
+
import"./tool-xtghg4s1.js";
|
|
8
|
+
import"./tool-hf26vzy2.js";
|
|
9
|
+
import"./tool-afmw3cc4.js";
|
|
13
10
|
export {
|
|
14
11
|
classifyWorkspace2 as classifyWorkspace,
|
|
15
12
|
formatEntryRow2 as formatEntryRow,
|
|
@@ -17,4 +14,4 @@ export {
|
|
|
17
14
|
formatVersionRow2 as formatVersionRow
|
|
18
15
|
};
|
|
19
16
|
|
|
20
|
-
//# debugId=
|
|
17
|
+
//# debugId=27F03B3BDEFC348F64756E2164756E21
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getSdkUserAgentToken,
|
|
3
3
|
addSdkUserAgentHeader,
|
|
4
|
-
installSdkUserAgentHeader
|
|
5
|
-
} from "./tool-y0b5ktbt.js";
|
|
6
|
-
import {
|
|
4
|
+
installSdkUserAgentHeader,
|
|
7
5
|
getAuthContext
|
|
8
|
-
} from "./tool-
|
|
9
|
-
import"./tool-
|
|
6
|
+
} from "./tool-hf26vzy2.js";
|
|
7
|
+
import"./tool-afmw3cc4.js";
|
|
10
8
|
|
|
11
9
|
// ../integrationservice-sdk/generated/connections/src/runtime.ts
|
|
12
10
|
var BASE_PATH = "https://alpha.uipath.com/entity/Azure/connections_".replace(/\/+$/, "");
|
|
@@ -768,7 +766,7 @@ var package_default = {
|
|
|
768
766
|
name: "@uipath/integrationservice-sdk",
|
|
769
767
|
author: "UiPath",
|
|
770
768
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
771
|
-
version: "1.
|
|
769
|
+
version: "1.208.0-preview.410",
|
|
772
770
|
repository: {
|
|
773
771
|
type: "git",
|
|
774
772
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -6610,4 +6608,4 @@ export {
|
|
|
6610
6608
|
refreshUserFolderAccess
|
|
6611
6609
|
};
|
|
6612
6610
|
|
|
6613
|
-
//# debugId=
|
|
6611
|
+
//# debugId=D252141666A1060D64756E2164756E21
|
|
@@ -1629,6 +1629,9 @@ import {
|
|
|
1629
1629
|
createApiClient2,
|
|
1630
1630
|
createOrchestratorConfigFromConnection2,
|
|
1631
1631
|
describeResponseError2,
|
|
1632
|
+
folderAccessModeFor2,
|
|
1633
|
+
getFolderAccessMode2,
|
|
1634
|
+
tenantScopeNote2,
|
|
1632
1635
|
resolveFolder2,
|
|
1633
1636
|
requireFolder2,
|
|
1634
1637
|
findFoldersByName2,
|
|
@@ -1666,11 +1669,9 @@ import {
|
|
|
1666
1669
|
RoiConfigurationApi2,
|
|
1667
1670
|
listSkillBundleWindow2,
|
|
1668
1671
|
resolveSkillBundle2
|
|
1669
|
-
} from "./tool-
|
|
1670
|
-
import"./tool-
|
|
1671
|
-
import"./tool-
|
|
1672
|
-
import"./tool-y0b5ktbt.js";
|
|
1673
|
-
import"./tool-x8dsz8c6.js";
|
|
1672
|
+
} from "./tool-d95qndpx.js";
|
|
1673
|
+
import"./tool-hf26vzy2.js";
|
|
1674
|
+
import"./tool-afmw3cc4.js";
|
|
1674
1675
|
export {
|
|
1675
1676
|
AccessibleFoldersDtoFromJSON2 as AccessibleFoldersDtoFromJSON,
|
|
1676
1677
|
AccessibleFoldersDtoFromJSONTyped2 as AccessibleFoldersDtoFromJSONTyped,
|
|
@@ -3053,7 +3054,9 @@ export {
|
|
|
3053
3054
|
encodeKnowledgeBundlePath2 as encodeKnowledgeBundlePath,
|
|
3054
3055
|
exists2 as exists,
|
|
3055
3056
|
findFoldersByName2 as findFoldersByName,
|
|
3057
|
+
folderAccessModeFor2 as folderAccessModeFor,
|
|
3056
3058
|
folderRuntimeTypesFor2 as folderRuntimeTypesFor,
|
|
3059
|
+
getFolderAccessMode2 as getFolderAccessMode,
|
|
3057
3060
|
getKnowledgeBundleFileHistory2 as getKnowledgeBundleFileHistory,
|
|
3058
3061
|
hashKnowledgeBundleObject2 as hashKnowledgeBundleObject,
|
|
3059
3062
|
inlinePartFramingBound2 as inlinePartFramingBound,
|
|
@@ -3334,6 +3337,7 @@ export {
|
|
|
3334
3337
|
resolveRelease2 as resolveRelease,
|
|
3335
3338
|
resolveReleaseReference2 as resolveReleaseReference,
|
|
3336
3339
|
resolveSkillBundle2 as resolveSkillBundle,
|
|
3340
|
+
tenantScopeNote2 as tenantScopeNote,
|
|
3337
3341
|
toProcessType2 as toProcessType,
|
|
3338
3342
|
updateKnowledgeBundleProposalWithObjects2 as updateKnowledgeBundleProposalWithObjects,
|
|
3339
3343
|
uploadJobAttachment2 as uploadJobAttachment,
|
|
@@ -3341,4 +3345,4 @@ export {
|
|
|
3341
3345
|
usableFolderRuntimes2 as usableFolderRuntimes
|
|
3342
3346
|
};
|
|
3343
3347
|
|
|
3344
|
-
//# debugId=
|
|
3348
|
+
//# debugId=974C41DBB4D9D70964756E2164756E21
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
import {
|
|
3
3
|
Command
|
|
4
|
-
} from "./tool-
|
|
5
|
-
import"./tool-
|
|
6
|
-
import"./tool-
|
|
7
|
-
import"./tool-hp40ahgc.js";
|
|
8
|
-
import"./tool-rsmy37w5.js";
|
|
4
|
+
} from "./tool-d95qndpx.js";
|
|
5
|
+
import"./tool-afmw3cc4.js";
|
|
6
|
+
import"./tool-hf26vzy2.js";
|
|
9
7
|
import {
|
|
10
8
|
metadata2,
|
|
11
9
|
registerCommands2
|
|
12
|
-
} from "./tool-
|
|
10
|
+
} from "./tool-hgckx60v.js";
|
|
13
11
|
|
|
14
12
|
// src/index.ts
|
|
15
13
|
var program = new Command;
|
|
@@ -17,4 +15,4 @@ program.name(metadata2.commandPrefix).description(metadata2.description).version
|
|
|
17
15
|
await registerCommands2(program);
|
|
18
16
|
program.parse(process.argv);
|
|
19
17
|
|
|
20
|
-
//# debugId=
|
|
18
|
+
//# debugId=F6ED916B204CC9FD64756E2164756E21
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./tool-x8dsz8c6.js";
|
|
4
|
-
import"./tool-y0b5ktbt.js";
|
|
5
|
-
import {
|
|
2
|
+
InvalidArgumentError,
|
|
6
3
|
catchError,
|
|
7
4
|
RESULTS,
|
|
8
5
|
classifiedFailure,
|
|
9
|
-
InvalidArgumentError,
|
|
10
6
|
Pagination,
|
|
11
7
|
OutputFormatter,
|
|
12
8
|
processContext,
|
|
@@ -16,10 +12,8 @@ import {
|
|
|
16
12
|
parseLimit,
|
|
17
13
|
parseOffset,
|
|
18
14
|
parseBoundedInt,
|
|
15
|
+
parseFilterValue,
|
|
19
16
|
ScreenLogger,
|
|
20
|
-
reportFailure2
|
|
21
|
-
} from "./tool-7p157r8x.js";
|
|
22
|
-
import {
|
|
23
17
|
BundlesApi2,
|
|
24
18
|
ChangeProposalCommentsApi2,
|
|
25
19
|
ChangeProposalsApi2,
|
|
@@ -33,9 +27,15 @@ import {
|
|
|
33
27
|
getKnowledgeBundleFileHistory2,
|
|
34
28
|
publishKnowledgeBundleVersionWithObjects2,
|
|
35
29
|
createKnowledgeBundleProposalWithObjects2,
|
|
36
|
-
updateKnowledgeBundleProposalWithObjects2
|
|
37
|
-
|
|
38
|
-
|
|
30
|
+
updateKnowledgeBundleProposalWithObjects2,
|
|
31
|
+
reportFailure2,
|
|
32
|
+
parseFolderKey,
|
|
33
|
+
parseFolderPath
|
|
34
|
+
} from "./tool-d95qndpx.js";
|
|
35
|
+
import {
|
|
36
|
+
getFileSystem2
|
|
37
|
+
} from "./tool-afmw3cc4.js";
|
|
38
|
+
import"./tool-hf26vzy2.js";
|
|
39
39
|
import {
|
|
40
40
|
collectLocalFiles2,
|
|
41
41
|
toEntries2,
|
|
@@ -51,21 +51,21 @@ import {
|
|
|
51
51
|
isContentHash2,
|
|
52
52
|
parseJson2,
|
|
53
53
|
diffAgainstBase2
|
|
54
|
-
} from "./tool-
|
|
54
|
+
} from "./tool-xtghg4s1.js";
|
|
55
55
|
import {
|
|
56
56
|
validateInitialBundleSource2,
|
|
57
57
|
commitWithObjects2
|
|
58
|
-
} from "./tool-
|
|
58
|
+
} from "./tool-jpjx1qh6.js";
|
|
59
59
|
import {
|
|
60
60
|
formatVersionRow2,
|
|
61
61
|
formatEntryRow2,
|
|
62
62
|
formatHistoryRow2,
|
|
63
63
|
classifyWorkspace2
|
|
64
|
-
} from "./tool-
|
|
64
|
+
} from "./tool-990adpfc.js";
|
|
65
65
|
import {
|
|
66
66
|
requireBundleKind,
|
|
67
67
|
initialPublishFailureReporter
|
|
68
|
-
} from "./tool-
|
|
68
|
+
} from "./tool-1w0jh6kt.js";
|
|
69
69
|
|
|
70
70
|
// src/utils/knowledge-bundle-folder.ts
|
|
71
71
|
async function resolveFolderIds(folders, options) {
|
|
@@ -1245,7 +1245,7 @@ async function buildChangeSet(input) {
|
|
|
1245
1245
|
}
|
|
1246
1246
|
var registerKbCommand = (program) => {
|
|
1247
1247
|
const bundles = program.command("kb").alias("knowledge-bundle").description("Manage knowledge bundles — versioned document sets an agent reads from. " + "Bundles are folder-scoped, so every command takes --folder-path or --folder-key. " + "A version is an immutable snapshot: version 1 comes from 'create --input' or " + "'publish', every version after it from merging a change proposal " + "('change-proposal'). Reads accept a version number or 'latest'.");
|
|
1248
|
-
bundles.command("list").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')").option("--folder-key <key>", "Folder key (GUID)").description("List the knowledge bundles in a folder. Returns Key, Name, Description, " + "LatestVersion and LastPublishedAt; pass --all-fields for the raw DTO.").option("--search <text>", "Filter by name (contains match)").option("-l, --limit <number>", "Number of items to return", parseLimit, DEFAULT_PAGE_SIZE).option("--offset <number>", "Number of items to skip", parseOffset, 0).option("--all-fields", "Return all fields from the API response (default: curated subset)").examples(LIST_EXAMPLES).trackedAction(processContext, async (options) => {
|
|
1248
|
+
bundles.command("list").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).description("List the knowledge bundles in a folder. Returns Key, Name, Description, " + "LatestVersion and LastPublishedAt; pass --all-fields for the raw DTO.").option("--search <text>", "Filter by name (contains match)", parseFilterValue).option("-l, --limit <number>", "Number of items to return", parseLimit, DEFAULT_PAGE_SIZE).option("--offset <number>", "Number of items to skip", parseOffset, 0).option("--all-fields", "Return all fields from the API response (default: curated subset)").examples(LIST_EXAMPLES).trackedAction(processContext, async (options) => {
|
|
1249
1249
|
const scope = await resolveFolderScope({
|
|
1250
1250
|
failureMessage: "Error listing knowledge bundles",
|
|
1251
1251
|
options,
|
|
@@ -1286,7 +1286,7 @@ var registerKbCommand = (program) => {
|
|
|
1286
1286
|
Data: options.allFields ? items : items.map(formatBundleRow)
|
|
1287
1287
|
});
|
|
1288
1288
|
});
|
|
1289
|
-
bundles.command("get").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')").option("--folder-key <key>", "Folder key (GUID)").description("Get one knowledge bundle by its key (GUID).").argument("[bundle-key]", "Bundle key (GUID) — use 'kb list' to find keys").option("--all-fields", "Return all fields from the API response (default: curated subset)").examples(GET_EXAMPLES).trackedAction(processContext, async (bundleArg, options) => {
|
|
1289
|
+
bundles.command("get").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).description("Get one knowledge bundle by its key (GUID).").argument("[bundle-key]", "Bundle key (GUID) — use 'kb list' to find keys").option("--all-fields", "Return all fields from the API response (default: curated subset)").examples(GET_EXAMPLES).trackedAction(processContext, async (bundleArg, options) => {
|
|
1290
1290
|
const scope = await resolveScope({
|
|
1291
1291
|
failureMessage: "Error getting knowledge bundle",
|
|
1292
1292
|
options,
|
|
@@ -1317,7 +1317,7 @@ var registerKbCommand = (program) => {
|
|
|
1317
1317
|
Data: options.allFields ? bundle : formatBundleDetail(bundle)
|
|
1318
1318
|
});
|
|
1319
1319
|
});
|
|
1320
|
-
bundles.command("create").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')").option("--folder-key <key>", "Folder key (GUID)").description("Create a knowledge bundle. With --input its content is published as version 1 in the " + "same step; without it the bundle starts empty and 'publish' fills it later. " + "Storage defaults to Orchestrator-hosted when no provider is given.").argument("<name>", "Bundle name, unique within the folder").option("-d, --description <text>", "Bundle description").option("-i, --input <directory>", "Directory of OKF files to publish as version 1").option("-m, --message <text>", "Version message for the content published from --input", "Initial content").option("--include-hidden", "Include dot-prefixed files and directories (skipped by default)").option("--encrypted", "Encrypt the bundle's content with the tenant's customer-managed key. " + "Requires the CMK entitlement and Orchestrator-hosted storage.").option("--storage-provider <provider>", "Storage provider name (e.g., 'Azure', 'Amazon', 'Minio', 'S3Compatible', 'FileSystem').").option("--storage-parameters <params>", "Provider-specific connection string.").option("--storage-container <container>", "Provider-specific container name.").examples(CREATE_EXAMPLES).trackedAction(processContext, async (name, options) => {
|
|
1320
|
+
bundles.command("create").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).description("Create a knowledge bundle. With --input its content is published as version 1 in the " + "same step; without it the bundle starts empty and 'publish' fills it later. " + "Storage defaults to Orchestrator-hosted when no provider is given.").argument("<name>", "Bundle name, unique within the folder").option("-d, --description <text>", "Bundle description").option("-i, --input <directory>", "Directory of OKF files to publish as version 1").option("-m, --message <text>", "Version message for the content published from --input", "Initial content").option("--include-hidden", "Include dot-prefixed files and directories (skipped by default)").option("--encrypted", "Encrypt the bundle's content with the tenant's customer-managed key. " + "Requires the CMK entitlement and Orchestrator-hosted storage.").option("--storage-provider <provider>", "Storage provider name (e.g., 'Azure', 'Amazon', 'Minio', 'S3Compatible', 'FileSystem').").option("--storage-parameters <params>", "Provider-specific connection string.").option("--storage-container <container>", "Provider-specific container name.").examples(CREATE_EXAMPLES).trackedAction(processContext, async (name, options) => {
|
|
1321
1321
|
const scope = await resolveFolderScope({
|
|
1322
1322
|
failureMessage: "Error creating knowledge bundle",
|
|
1323
1323
|
options,
|
|
@@ -1410,7 +1410,7 @@ var registerKbCommand = (program) => {
|
|
|
1410
1410
|
return;
|
|
1411
1411
|
}
|
|
1412
1412
|
});
|
|
1413
|
-
bundles.command("update").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')").option("--folder-key <key>", "Folder key (GUID)").description("Rename a bundle or change its description. Content is untouched.").argument("[bundle-key]", "Bundle key (GUID) — use 'kb list' to find keys").option("-n, --name <name>", "New bundle name").option("-d, --description <text>", "New bundle description").examples(UPDATE_EXAMPLES).trackedAction(processContext, async (bundleArg, options) => {
|
|
1413
|
+
bundles.command("update").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).description("Rename a bundle or change its description. Content is untouched.").argument("[bundle-key]", "Bundle key (GUID) — use 'kb list' to find keys").option("-n, --name <name>", "New bundle name").option("-d, --description <text>", "New bundle description").examples(UPDATE_EXAMPLES).trackedAction(processContext, async (bundleArg, options) => {
|
|
1414
1414
|
const scope = await resolveScope({
|
|
1415
1415
|
failureMessage: "Error updating knowledge bundle",
|
|
1416
1416
|
options,
|
|
@@ -1463,7 +1463,7 @@ var registerKbCommand = (program) => {
|
|
|
1463
1463
|
Data: formatBundleRow(bundle)
|
|
1464
1464
|
});
|
|
1465
1465
|
});
|
|
1466
|
-
bundles.command("delete").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')").option("--folder-key <key>", "Folder key (GUID)").description("Remove the bundle from this folder. The bundle itself is deleted once no folder holds it, " + "which takes its versions and proposals with it.").argument("[bundle-key]", "Bundle key (GUID) — use 'kb list' to find keys").option("-y, --yes", "Skip the confirmation prompt").examples(DELETE_EXAMPLES).trackedAction(processContext, async (bundleArg, options) => {
|
|
1466
|
+
bundles.command("delete").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).description("Remove the bundle from this folder. The bundle itself is deleted once no folder holds it, " + "which takes its versions and proposals with it.").argument("[bundle-key]", "Bundle key (GUID) — use 'kb list' to find keys").option("-y, --yes", "Skip the confirmation prompt").examples(DELETE_EXAMPLES).trackedAction(processContext, async (bundleArg, options) => {
|
|
1467
1467
|
const scope = await resolveScope({
|
|
1468
1468
|
failureMessage: "Error deleting knowledge bundle",
|
|
1469
1469
|
options,
|
|
@@ -1499,7 +1499,7 @@ var registerKbCommand = (program) => {
|
|
|
1499
1499
|
}
|
|
1500
1500
|
});
|
|
1501
1501
|
});
|
|
1502
|
-
bundles.command("share").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')").option("--folder-key <key>", "Folder key (GUID)").description("Share the bundle into other folders, or remove it from some. " + "Folders are given as paths or keys (GUIDs) and both lists apply in one call.").argument("[bundle-key]", "Bundle key (GUID) — use 'kb list' to find keys").option("--add-folders <folders...>", "Folder paths or keys to share the bundle into").option("--remove-folders <folders...>", "Folder paths or keys to remove the bundle from").examples(SHARE_EXAMPLES).trackedAction(processContext, async (bundleArg, options) => {
|
|
1502
|
+
bundles.command("share").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).description("Share the bundle into other folders, or remove it from some. " + "Folders are given as paths or keys (GUIDs) and both lists apply in one call.").argument("[bundle-key]", "Bundle key (GUID) — use 'kb list' to find keys").option("--add-folders <folders...>", "Folder paths or keys to share the bundle into").option("--remove-folders <folders...>", "Folder paths or keys to remove the bundle from").examples(SHARE_EXAMPLES).trackedAction(processContext, async (bundleArg, options) => {
|
|
1503
1503
|
const scope = await resolveScope({
|
|
1504
1504
|
failureMessage: "Error sharing knowledge bundle",
|
|
1505
1505
|
options,
|
|
@@ -1559,7 +1559,7 @@ var registerKbCommand = (program) => {
|
|
|
1559
1559
|
}
|
|
1560
1560
|
});
|
|
1561
1561
|
});
|
|
1562
|
-
bundles.command("versions").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')").option("--folder-key <key>", "Folder key (GUID)").description("List a bundle's versions, newest first.").argument("[bundle-key]", "Bundle key (GUID) — use 'kb list' to find keys").option("-l, --limit <number>", "Number of items to return", parseLimit, DEFAULT_PAGE_SIZE).option("--offset <number>", "Number of items to skip", parseOffset, 0).option("--all-fields", "Return all fields from the API response (default: curated subset)").examples(VERSIONS_EXAMPLES).trackedAction(processContext, async (bundleArg, options) => {
|
|
1562
|
+
bundles.command("versions").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).description("List a bundle's versions, newest first.").argument("[bundle-key]", "Bundle key (GUID) — use 'kb list' to find keys").option("-l, --limit <number>", "Number of items to return", parseLimit, DEFAULT_PAGE_SIZE).option("--offset <number>", "Number of items to skip", parseOffset, 0).option("--all-fields", "Return all fields from the API response (default: curated subset)").examples(VERSIONS_EXAMPLES).trackedAction(processContext, async (bundleArg, options) => {
|
|
1563
1563
|
const scope = await resolveScope({
|
|
1564
1564
|
failureMessage: "Error listing versions",
|
|
1565
1565
|
options,
|
|
@@ -1601,7 +1601,7 @@ var registerKbCommand = (program) => {
|
|
|
1601
1601
|
Data: versionRows
|
|
1602
1602
|
});
|
|
1603
1603
|
});
|
|
1604
|
-
bundles.command("publish").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')").option("--folder-key <key>", "Folder key (GUID)").description("Publish a local directory as version 1 of an empty bundle. Hashes every file and " + "publishes the manifest with the files inside the same request; a file too large to " + "travel that way is uploaded on its own first. Later versions come from merging a " + "change proposal — see 'kb change-proposal'. Use 'create --input' to create a " + "bundle and publish its content in one step.").argument("[bundle-key]", "Bundle key (GUID) — use 'kb list' to find keys").requiredOption("-i, --input <directory>", "Directory whose contents become version 1").requiredOption("-m, --message <text>", "Version message").option("--include-hidden", "Include dot-prefixed files and directories (skipped by default)").examples(PUBLISH_EXAMPLES).trackedAction(processContext, async (bundleArg, options) => {
|
|
1604
|
+
bundles.command("publish").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).description("Publish a local directory as version 1 of an empty bundle. Hashes every file and " + "publishes the manifest with the files inside the same request; a file too large to " + "travel that way is uploaded on its own first. Later versions come from merging a " + "change proposal — see 'kb change-proposal'. Use 'create --input' to create a " + "bundle and publish its content in one step.").argument("[bundle-key]", "Bundle key (GUID) — use 'kb list' to find keys").requiredOption("-i, --input <directory>", "Directory whose contents become version 1").requiredOption("-m, --message <text>", "Version message").option("--include-hidden", "Include dot-prefixed files and directories (skipped by default)").examples(PUBLISH_EXAMPLES).trackedAction(processContext, async (bundleArg, options) => {
|
|
1605
1605
|
const scope = await resolveScope({
|
|
1606
1606
|
failureMessage: "Error publishing version",
|
|
1607
1607
|
options,
|
|
@@ -1627,7 +1627,7 @@ var registerKbCommand = (program) => {
|
|
|
1627
1627
|
successCode: "KnowledgeBundleVersionPublished"
|
|
1628
1628
|
});
|
|
1629
1629
|
});
|
|
1630
|
-
bundles.command("download").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')").option("--folder-key <key>", "Folder key (GUID)").description("Unpack a version into a local workspace: the version archive, whose `.okf/workspace.json` " + "marker records the bundle, the version and its manifest. A change proposal is " + "then the local edits diffed against that marker.").argument("[bundle-key]", "Bundle key (GUID) — use 'kb list' to find keys").option("--version <version>", "Version number, or 'latest' for the newest published version", parseVersionSelector, LATEST).requiredOption("-d, --destination <directory>", "Directory to unpack into").examples(DOWNLOAD_EXAMPLES).trackedAction(processContext, async (bundleArg, options) => {
|
|
1630
|
+
bundles.command("download").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).description("Unpack a version into a local workspace: the version archive, whose `.okf/workspace.json` " + "marker records the bundle, the version and its manifest. A change proposal is " + "then the local edits diffed against that marker.").argument("[bundle-key]", "Bundle key (GUID) — use 'kb list' to find keys").option("--version <version>", "Version number, or 'latest' for the newest published version", parseVersionSelector, LATEST).requiredOption("-d, --destination <directory>", "Directory to unpack into").examples(DOWNLOAD_EXAMPLES).trackedAction(processContext, async (bundleArg, options) => {
|
|
1631
1631
|
const scope = await resolveScope({
|
|
1632
1632
|
failureMessage: "Error downloading version",
|
|
1633
1633
|
options,
|
|
@@ -1723,7 +1723,7 @@ var registerKbCommand = (program) => {
|
|
|
1723
1723
|
}
|
|
1724
1724
|
});
|
|
1725
1725
|
});
|
|
1726
|
-
bundles.command("archive").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')").option("--folder-key <key>", "Folder key (GUID)").description("Download a version as a single zip archive.").argument("[bundle-key]", "Bundle key (GUID) — use 'kb list' to find keys").option("--version <version>", "Version number, or 'latest' for the newest published version", parseVersionSelector, LATEST).requiredOption("-d, --destination <file>", "Zip file to write").examples(ARCHIVE_EXAMPLES).trackedAction(processContext, async (bundleArg, options) => {
|
|
1726
|
+
bundles.command("archive").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).description("Download a version as a single zip archive.").argument("[bundle-key]", "Bundle key (GUID) — use 'kb list' to find keys").option("--version <version>", "Version number, or 'latest' for the newest published version", parseVersionSelector, LATEST).requiredOption("-d, --destination <file>", "Zip file to write").examples(ARCHIVE_EXAMPLES).trackedAction(processContext, async (bundleArg, options) => {
|
|
1727
1727
|
const scope = await resolveScope({
|
|
1728
1728
|
failureMessage: "Error downloading archive",
|
|
1729
1729
|
options,
|
|
@@ -1768,7 +1768,7 @@ var registerKbCommand = (program) => {
|
|
|
1768
1768
|
}
|
|
1769
1769
|
});
|
|
1770
1770
|
});
|
|
1771
|
-
bundles.command("file").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')").option("--folder-key <key>", "Folder key (GUID)").description("Read one file of a version. Without --destination the content is returned inline when it " + "decodes as UTF-8 text; binary content has to be written to a file.").argument("[bundle-key]", "Bundle key (GUID) — use 'kb list' to find keys").requiredOption("--path <path>", "Bundle-relative file path (e.g. 'concepts/queues.md')").option("--version <version>", "Version number, or 'latest' for the newest published version", parseVersionSelector, LATEST).option("-d, --destination <file>", "Write the content to this file instead").examples(FILE_EXAMPLES).trackedAction(processContext, async (bundleArg, options) => {
|
|
1771
|
+
bundles.command("file").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).description("Read one file of a version. Without --destination the content is returned inline when it " + "decodes as UTF-8 text; binary content has to be written to a file.").argument("[bundle-key]", "Bundle key (GUID) — use 'kb list' to find keys").requiredOption("--path <path>", "Bundle-relative file path (e.g. 'concepts/queues.md')").option("--version <version>", "Version number, or 'latest' for the newest published version", parseVersionSelector, LATEST).option("-d, --destination <file>", "Write the content to this file instead").examples(FILE_EXAMPLES).trackedAction(processContext, async (bundleArg, options) => {
|
|
1772
1772
|
const path = options.path;
|
|
1773
1773
|
if (refusedUnsafePath({
|
|
1774
1774
|
value: path,
|
|
@@ -1817,7 +1817,7 @@ var registerKbCommand = (program) => {
|
|
|
1817
1817
|
failureMessage: "Error reading file"
|
|
1818
1818
|
});
|
|
1819
1819
|
});
|
|
1820
|
-
bundles.command("history").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')").option("--folder-key <key>", "Folder key (GUID)").description("Trace one file through the bundle's history: when it was added, changed or deleted, " + "and which proposal did it.").argument("[bundle-key]", "Bundle key (GUID) — use 'kb list' to find keys").requiredOption("--path <path>", "Bundle-relative file path").option("-l, --limit <number>", "Number of items to return", parseLimit, DEFAULT_PAGE_SIZE).option("--offset <number>", "Number of items to skip", parseOffset, 0).option("--all-fields", "Return all fields from the API response (default: curated subset)").examples(HISTORY_EXAMPLES).trackedAction(processContext, async (bundleArg, options) => {
|
|
1820
|
+
bundles.command("history").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).description("Trace one file through the bundle's history: when it was added, changed or deleted, " + "and which proposal did it.").argument("[bundle-key]", "Bundle key (GUID) — use 'kb list' to find keys").requiredOption("--path <path>", "Bundle-relative file path").option("-l, --limit <number>", "Number of items to return", parseLimit, DEFAULT_PAGE_SIZE).option("--offset <number>", "Number of items to skip", parseOffset, 0).option("--all-fields", "Return all fields from the API response (default: curated subset)").examples(HISTORY_EXAMPLES).trackedAction(processContext, async (bundleArg, options) => {
|
|
1821
1821
|
const path = options.path;
|
|
1822
1822
|
if (refusedUnsafePath({
|
|
1823
1823
|
value: path,
|
|
@@ -1864,7 +1864,7 @@ var registerKbCommand = (program) => {
|
|
|
1864
1864
|
Data: historyRows
|
|
1865
1865
|
});
|
|
1866
1866
|
});
|
|
1867
|
-
bundles.command("build").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')").option("--folder-key <key>", "Folder key (GUID)").description("Read a version's derived artifact, such as the concept graph. Artifacts are built on " + "first request when a merge has not produced them yet.").argument("[bundle-key]", "Bundle key (GUID) — use 'kb list' to find keys").requiredOption("--artifact <name>", "Artifact name (e.g. 'graph.json')").option("--version <version>", "Version number, or 'latest' for the newest published version", parseVersionSelector, LATEST).option("-d, --destination <file>", "Write the artifact to this file instead").examples(BUILD_EXAMPLES).trackedAction(processContext, async (bundleArg, options) => {
|
|
1867
|
+
bundles.command("build").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).description("Read a version's derived artifact, such as the concept graph. Artifacts are built on " + "first request when a merge has not produced them yet.").argument("[bundle-key]", "Bundle key (GUID) — use 'kb list' to find keys").requiredOption("--artifact <name>", "Artifact name (e.g. 'graph.json')").option("--version <version>", "Version number, or 'latest' for the newest published version", parseVersionSelector, LATEST).option("-d, --destination <file>", "Write the artifact to this file instead").examples(BUILD_EXAMPLES).trackedAction(processContext, async (bundleArg, options) => {
|
|
1868
1868
|
const artifact = options.artifact;
|
|
1869
1869
|
if (refusedUnsafePath({
|
|
1870
1870
|
value: artifact,
|
|
@@ -1964,7 +1964,7 @@ var registerKbCommand = (program) => {
|
|
|
1964
1964
|
}
|
|
1965
1965
|
});
|
|
1966
1966
|
});
|
|
1967
|
-
bundles.command("sync").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')").option("--folder-key <key>", "Folder key (GUID)").description("Report what a checkout needs to match a published version. It compares the files the " + "workspace marker lists — what this copy holds of the bundle — so files of your own " + "in the same directory are not part of it. Both lists are things to do, not a " + "history: 'Changed' names the entries to download, 'Deleted' the paths this version " + "no longer carries. The comparison is by content hash, so a large working copy " + "updates by transferring only the delta.").argument("[bundle-key]", "Bundle key (GUID) — use 'kb list' to find keys").option("-i, --input <directory>", "Local directory to compare against the version (default: the workspace found from the working directory)").option("--version <version>", "Version number, or 'latest' for the newest published version", parseVersionSelector, LATEST).option("--include-hidden", "Include dot-prefixed files and directories (skipped by default)").option(REFRESH_FLAG, REFRESH_DESCRIPTION).examples(SYNC_EXAMPLES).trackedAction(processContext, async (bundleArg, options) => {
|
|
1967
|
+
bundles.command("sync").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).description("Report what a checkout needs to match a published version. It compares the files the " + "workspace marker lists — what this copy holds of the bundle — so files of your own " + "in the same directory are not part of it. Both lists are things to do, not a " + "history: 'Changed' names the entries to download, 'Deleted' the paths this version " + "no longer carries. The comparison is by content hash, so a large working copy " + "updates by transferring only the delta.").argument("[bundle-key]", "Bundle key (GUID) — use 'kb list' to find keys").option("-i, --input <directory>", "Local directory to compare against the version (default: the workspace found from the working directory)").option("--version <version>", "Version number, or 'latest' for the newest published version", parseVersionSelector, LATEST).option("--include-hidden", "Include dot-prefixed files and directories (skipped by default)").option(REFRESH_FLAG, REFRESH_DESCRIPTION).examples(SYNC_EXAMPLES).trackedAction(processContext, async (bundleArg, options) => {
|
|
1968
1968
|
const directory = await workspaceDirectory({
|
|
1969
1969
|
input: options.input,
|
|
1970
1970
|
failureMessage: "Error syncing version",
|
|
@@ -2076,7 +2076,7 @@ var registerKbCommand = (program) => {
|
|
|
2076
2076
|
});
|
|
2077
2077
|
});
|
|
2078
2078
|
const proposals = bundles.command("change-proposal").description("Review and merge changes to a bundle's content. A proposal carries the complete new " + "content of the files it changes, never a patch, and merging one publishes the next " + "version. Comments are part of the permanent review record.");
|
|
2079
|
-
proposals.command("list").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')").option("--folder-key <key>", "Folder key (GUID)").description("List a bundle's change proposals.").option("--bundle-key <key>", "The bundle the proposal belongs to — use 'kb list' to find keys").option("--status <status>", "Filter by status: open, merged, closed or conflicted").option("--mine", "Only proposals opened by the calling identity").option("-l, --limit <number>", "Number of items to return", parseLimit, DEFAULT_PAGE_SIZE).option("--offset <number>", "Number of items to skip", parseOffset, 0).option("--all-fields", "Return all fields from the API response (default: curated subset)").examples(PROPOSAL_LIST_EXAMPLES).trackedAction(processContext, async (options) => {
|
|
2079
|
+
proposals.command("list").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).description("List a bundle's change proposals.").option("--bundle-key <key>", "The bundle the proposal belongs to — use 'kb list' to find keys").option("--status <status>", "Filter by status: open, merged, closed or conflicted", parseFilterValue).option("--mine", "Only proposals opened by the calling identity").option("-l, --limit <number>", "Number of items to return", parseLimit, DEFAULT_PAGE_SIZE).option("--offset <number>", "Number of items to skip", parseOffset, 0).option("--all-fields", "Return all fields from the API response (default: curated subset)").examples(PROPOSAL_LIST_EXAMPLES).trackedAction(processContext, async (options) => {
|
|
2080
2080
|
const scope = await resolveScope({
|
|
2081
2081
|
failureMessage: "Error listing proposals",
|
|
2082
2082
|
options,
|
|
@@ -2114,7 +2114,7 @@ var registerKbCommand = (program) => {
|
|
|
2114
2114
|
Data: proposalRows
|
|
2115
2115
|
});
|
|
2116
2116
|
});
|
|
2117
|
-
proposals.command("get").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')").option("--folder-key <key>", "Folder key (GUID)").description("Get one change proposal with its current change set.").option("--bundle-key <key>", "The bundle the proposal belongs to — use 'kb list' to find keys").argument("<proposal-id>", "Proposal id — use 'change-proposal list'").option("--all-fields", "Return all fields from the API response (default: curated subset)").examples(PROPOSAL_GET_EXAMPLES).trackedAction(processContext, async (proposalId, options) => {
|
|
2117
|
+
proposals.command("get").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).description("Get one change proposal with its current change set.").option("--bundle-key <key>", "The bundle the proposal belongs to — use 'kb list' to find keys").argument("<proposal-id>", "Proposal id — use 'change-proposal list'").option("--all-fields", "Return all fields from the API response (default: curated subset)").examples(PROPOSAL_GET_EXAMPLES).trackedAction(processContext, async (proposalId, options) => {
|
|
2118
2118
|
if (refusedProposalId({
|
|
2119
2119
|
value: proposalId,
|
|
2120
2120
|
failureMessage: "Error getting proposal"
|
|
@@ -2154,7 +2154,7 @@ var registerKbCommand = (program) => {
|
|
|
2154
2154
|
Data: options.allFields ? proposal : formatProposalDetail(proposal)
|
|
2155
2155
|
});
|
|
2156
2156
|
});
|
|
2157
|
-
proposals.command("create").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')").option("--folder-key <key>", "Folder key (GUID)").description("Open a proposal from an edited workspace. Diffs the directory against the marker a " + "'kb download' wrote and sends the change set with the changed files' content " + "inside the same request, plus the paths that disappeared.").option("--bundle-key <key>", "The bundle the proposal belongs to — use 'kb list' to find keys").option("-i, --input <directory>", "Workspace directory a 'kb download' produced (default: the workspace found from the working directory)").requiredOption("--title <text>", "Proposal title").option("-d, --description <text>", "Why the change is proposed").option("--include-hidden", "Include dot-prefixed files and directories (skipped by default)").option(REFRESH_FLAG, REFRESH_DESCRIPTION).examples(PROPOSAL_CREATE_EXAMPLES).trackedAction(processContext, async (options) => {
|
|
2157
|
+
proposals.command("create").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).description("Open a proposal from an edited workspace. Diffs the directory against the marker a " + "'kb download' wrote and sends the change set with the changed files' content " + "inside the same request, plus the paths that disappeared.").option("--bundle-key <key>", "The bundle the proposal belongs to — use 'kb list' to find keys").option("-i, --input <directory>", "Workspace directory a 'kb download' produced (default: the workspace found from the working directory)").requiredOption("--title <text>", "Proposal title").option("-d, --description <text>", "Why the change is proposed").option("--include-hidden", "Include dot-prefixed files and directories (skipped by default)").option(REFRESH_FLAG, REFRESH_DESCRIPTION).examples(PROPOSAL_CREATE_EXAMPLES).trackedAction(processContext, async (options) => {
|
|
2158
2158
|
const directory = await workspaceDirectory({
|
|
2159
2159
|
input: options.input,
|
|
2160
2160
|
failureMessage: "Error creating proposal",
|
|
@@ -2234,7 +2234,7 @@ var registerKbCommand = (program) => {
|
|
|
2234
2234
|
}
|
|
2235
2235
|
});
|
|
2236
2236
|
});
|
|
2237
|
-
proposals.command("update").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')").option("--folder-key <key>", "Folder key (GUID)").description("Replace an open proposal's change set with a new revision, in response to review. The " + "previous change set is kept so reviewers can diff any two revisions.").option("--bundle-key <key>", "The bundle the proposal belongs to — use 'kb list' to find keys").argument("<proposal-id>", "Proposal id — use 'change-proposal list'").option("-i, --input <directory>", "Workspace directory a 'kb download' produced (default: the workspace found from the working directory)").option("--include-hidden", "Include dot-prefixed files and directories (skipped by default)").option(REFRESH_FLAG, REFRESH_DESCRIPTION).examples(PROPOSAL_UPDATE_EXAMPLES).trackedAction(processContext, async (proposalId, options) => {
|
|
2237
|
+
proposals.command("update").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).description("Replace an open proposal's change set with a new revision, in response to review. The " + "previous change set is kept so reviewers can diff any two revisions.").option("--bundle-key <key>", "The bundle the proposal belongs to — use 'kb list' to find keys").argument("<proposal-id>", "Proposal id — use 'change-proposal list'").option("-i, --input <directory>", "Workspace directory a 'kb download' produced (default: the workspace found from the working directory)").option("--include-hidden", "Include dot-prefixed files and directories (skipped by default)").option(REFRESH_FLAG, REFRESH_DESCRIPTION).examples(PROPOSAL_UPDATE_EXAMPLES).trackedAction(processContext, async (proposalId, options) => {
|
|
2238
2238
|
if (refusedProposalId({
|
|
2239
2239
|
value: proposalId,
|
|
2240
2240
|
failureMessage: "Error updating proposal"
|
|
@@ -2320,7 +2320,7 @@ var registerKbCommand = (program) => {
|
|
|
2320
2320
|
}
|
|
2321
2321
|
});
|
|
2322
2322
|
});
|
|
2323
|
-
proposals.command("diff").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')").option("--folder-key <key>", "Folder key (GUID)").description("Diff a proposal. Without --from-revision this is the change against the base version; " + "with one it is the interdiff between two revisions — what the author changed in " + "response to feedback.").option("--bundle-key <key>", "The bundle the proposal belongs to — use 'kb list' to find keys").argument("<proposal-id>", "Proposal id — use 'change-proposal list'").option("--from-revision <number>", "The revision to compare from", parseCounter("--from-revision")).option("--to-revision <number>", "The revision to compare to (defaults to the current one)", parseCounter("--to-revision")).examples(PROPOSAL_DIFF_EXAMPLES).trackedAction(processContext, async (proposalId, options) => {
|
|
2323
|
+
proposals.command("diff").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).description("Diff a proposal. Without --from-revision this is the change against the base version; " + "with one it is the interdiff between two revisions — what the author changed in " + "response to feedback.").option("--bundle-key <key>", "The bundle the proposal belongs to — use 'kb list' to find keys").argument("<proposal-id>", "Proposal id — use 'change-proposal list'").option("--from-revision <number>", "The revision to compare from", parseCounter("--from-revision")).option("--to-revision <number>", "The revision to compare to (defaults to the current one)", parseCounter("--to-revision")).examples(PROPOSAL_DIFF_EXAMPLES).trackedAction(processContext, async (proposalId, options) => {
|
|
2324
2324
|
if (refusedProposalId({
|
|
2325
2325
|
value: proposalId,
|
|
2326
2326
|
failureMessage: "Error diffing proposal"
|
|
@@ -2368,7 +2368,7 @@ var registerKbCommand = (program) => {
|
|
|
2368
2368
|
}
|
|
2369
2369
|
});
|
|
2370
2370
|
});
|
|
2371
|
-
proposals.command("merge").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')").option("--folder-key <key>", "Folder key (GUID)").description("Merge a proposal, publishing the next version. A proposal whose files changed " + "underneath it is marked conflicted instead; recovery is to re-download, re-apply " + "the edit and run 'change-proposal update' on the same proposal, which keeps its " + "review thread.").option("--bundle-key <key>", "The bundle the proposal belongs to — use 'kb list' to find keys").argument("<proposal-id>", "Proposal id — use 'change-proposal list'").examples(PROPOSAL_MERGE_EXAMPLES).trackedAction(processContext, async (proposalId, options) => {
|
|
2371
|
+
proposals.command("merge").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).description("Merge a proposal, publishing the next version. A proposal whose files changed " + "underneath it is marked conflicted instead; recovery is to re-download, re-apply " + "the edit and run 'change-proposal update' on the same proposal, which keeps its " + "review thread.").option("--bundle-key <key>", "The bundle the proposal belongs to — use 'kb list' to find keys").argument("<proposal-id>", "Proposal id — use 'change-proposal list'").examples(PROPOSAL_MERGE_EXAMPLES).trackedAction(processContext, async (proposalId, options) => {
|
|
2372
2372
|
if (refusedProposalId({
|
|
2373
2373
|
value: proposalId,
|
|
2374
2374
|
failureMessage: "Error merging proposal"
|
|
@@ -2432,7 +2432,7 @@ var registerKbCommand = (program) => {
|
|
|
2432
2432
|
}
|
|
2433
2433
|
});
|
|
2434
2434
|
});
|
|
2435
|
-
proposals.command("close").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')").option("--folder-key <key>", "Folder key (GUID)").description("Close a proposal without merging it.").option("--bundle-key <key>", "The bundle the proposal belongs to — use 'kb list' to find keys").argument("<proposal-id>", "Proposal id — use 'change-proposal list'").examples(PROPOSAL_CLOSE_EXAMPLES).trackedAction(processContext, async (proposalId, options) => {
|
|
2435
|
+
proposals.command("close").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).description("Close a proposal without merging it.").option("--bundle-key <key>", "The bundle the proposal belongs to — use 'kb list' to find keys").argument("<proposal-id>", "Proposal id — use 'change-proposal list'").examples(PROPOSAL_CLOSE_EXAMPLES).trackedAction(processContext, async (proposalId, options) => {
|
|
2436
2436
|
if (refusedProposalId({
|
|
2437
2437
|
value: proposalId,
|
|
2438
2438
|
failureMessage: "Error closing proposal"
|
|
@@ -2472,7 +2472,7 @@ var registerKbCommand = (program) => {
|
|
|
2472
2472
|
Data: formatProposalRow(proposal)
|
|
2473
2473
|
});
|
|
2474
2474
|
});
|
|
2475
|
-
proposals.command("add-comment").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')").option("--folder-key <key>", "Folder key (GUID)").description("Add review feedback to a proposal, optionally anchored to a file and line, or replying " + "to another comment.").option("--bundle-key <key>", "The bundle the proposal belongs to — use 'kb list' to find keys").argument("<proposal-id>", "Proposal id — use 'change-proposal list'").requiredOption("-b, --body <text>", "The comment text").option("--path <path>", "Anchor the comment to this bundle-relative file").option("--line <number>", "Anchor the comment to this line of --path (the proposal's new side)", parseCounter("--line")).option("--reply-to <comment-id>", "Reply to this comment").examples(PROPOSAL_ADD_COMMENT_EXAMPLES).trackedAction(processContext, async (proposalId, options) => {
|
|
2475
|
+
proposals.command("add-comment").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).description("Add review feedback to a proposal, optionally anchored to a file and line, or replying " + "to another comment.").option("--bundle-key <key>", "The bundle the proposal belongs to — use 'kb list' to find keys").argument("<proposal-id>", "Proposal id — use 'change-proposal list'").requiredOption("-b, --body <text>", "The comment text").option("--path <path>", "Anchor the comment to this bundle-relative file").option("--line <number>", "Anchor the comment to this line of --path (the proposal's new side)", parseCounter("--line")).option("--reply-to <comment-id>", "Reply to this comment").examples(PROPOSAL_ADD_COMMENT_EXAMPLES).trackedAction(processContext, async (proposalId, options) => {
|
|
2476
2476
|
if (refusedProposalId({
|
|
2477
2477
|
value: proposalId,
|
|
2478
2478
|
failureMessage: "Error adding comment"
|
|
@@ -2531,7 +2531,7 @@ var registerKbCommand = (program) => {
|
|
|
2531
2531
|
Data: formatCommentRow(comment)
|
|
2532
2532
|
});
|
|
2533
2533
|
});
|
|
2534
|
-
proposals.command("list-comments").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')").option("--folder-key <key>", "Folder key (GUID)").description("List a proposal's comments in creation order. Poll with --since and the last id seen " + "to pick up only what is new — the ids sort chronologically.").option("--bundle-key <key>", "The bundle the proposal belongs to — use 'kb list' to find keys").argument("<proposal-id>", "Proposal id — use 'change-proposal list'").option("--since <comment-id>", "Only comments newer than this id").option("--unresolved", "Only comments in threads that are not resolved").option("-l, --limit <number>", "Number of items to return", parseLimit, DEFAULT_PAGE_SIZE).option("--offset <number>", "Number of items to skip", parseOffset, 0).option("--all-fields", "Return all fields from the API response (default: curated subset)").examples(PROPOSAL_LIST_COMMENTS_EXAMPLES).trackedAction(processContext, async (proposalId, options) => {
|
|
2534
|
+
proposals.command("list-comments").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).description("List a proposal's comments in creation order. Poll with --since and the last id seen " + "to pick up only what is new — the ids sort chronologically.").option("--bundle-key <key>", "The bundle the proposal belongs to — use 'kb list' to find keys").argument("<proposal-id>", "Proposal id — use 'change-proposal list'").option("--since <comment-id>", "Only comments newer than this id", parseFilterValue).option("--unresolved", "Only comments in threads that are not resolved").option("-l, --limit <number>", "Number of items to return", parseLimit, DEFAULT_PAGE_SIZE).option("--offset <number>", "Number of items to skip", parseOffset, 0).option("--all-fields", "Return all fields from the API response (default: curated subset)").examples(PROPOSAL_LIST_COMMENTS_EXAMPLES).trackedAction(processContext, async (proposalId, options) => {
|
|
2535
2535
|
if (refusedProposalId({
|
|
2536
2536
|
value: proposalId,
|
|
2537
2537
|
failureMessage: "Error listing comments"
|
|
@@ -2576,7 +2576,7 @@ var registerKbCommand = (program) => {
|
|
|
2576
2576
|
Data: commentRows
|
|
2577
2577
|
});
|
|
2578
2578
|
});
|
|
2579
|
-
proposals.command("resolve-thread").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')").option("--folder-key <key>", "Folder key (GUID)").description("Mark a comment thread resolved. Resolution is itself a comment, so it carries a body " + "saying what changed, and a later reply reopens the thread.").option("--bundle-key <key>", "The bundle the proposal belongs to — use 'kb list' to find keys").argument("<thread-id>", "The thread's root comment id — use 'change-proposal list-comments'").requiredOption("--proposal <id>", "The proposal the thread is on — use 'change-proposal list'").requiredOption("-b, --body <text>", "What addressed the feedback, e.g. 'Fixed in rev 2'").examples(PROPOSAL_RESOLVE_EXAMPLES).trackedAction(processContext, async (threadId, options) => {
|
|
2579
|
+
proposals.command("resolve-thread").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-path <path>", "Folder path (e.g., 'Shared')", parseFolderPath).option("--folder-key <key>", "Folder key (GUID)", parseFolderKey).description("Mark a comment thread resolved. Resolution is itself a comment, so it carries a body " + "saying what changed, and a later reply reopens the thread.").option("--bundle-key <key>", "The bundle the proposal belongs to — use 'kb list' to find keys").argument("<thread-id>", "The thread's root comment id — use 'change-proposal list-comments'").requiredOption("--proposal <id>", "The proposal the thread is on — use 'change-proposal list'").requiredOption("-b, --body <text>", "What addressed the feedback, e.g. 'Fixed in rev 2'").examples(PROPOSAL_RESOLVE_EXAMPLES).trackedAction(processContext, async (threadId, options) => {
|
|
2580
2580
|
const proposalId = options.proposal;
|
|
2581
2581
|
if (refusedProposalId({
|
|
2582
2582
|
value: proposalId,
|
|
@@ -2626,4 +2626,4 @@ export {
|
|
|
2626
2626
|
registerKbCommand
|
|
2627
2627
|
};
|
|
2628
2628
|
|
|
2629
|
-
//# debugId=
|
|
2629
|
+
//# debugId=2D287ADB73B8F72C64756E2164756E21
|
|
@@ -15,12 +15,9 @@ import {
|
|
|
15
15
|
isContentHash2,
|
|
16
16
|
parseJson2,
|
|
17
17
|
diffAgainstBase2
|
|
18
|
-
} from "./tool-
|
|
19
|
-
import"./tool-
|
|
20
|
-
import"./tool-
|
|
21
|
-
import"./tool-7p157r8x.js";
|
|
22
|
-
import"./tool-y0b5ktbt.js";
|
|
23
|
-
import"./tool-x8dsz8c6.js";
|
|
18
|
+
} from "./tool-xtghg4s1.js";
|
|
19
|
+
import"./tool-hf26vzy2.js";
|
|
20
|
+
import"./tool-afmw3cc4.js";
|
|
24
21
|
export {
|
|
25
22
|
RESERVED_DIRECTORIES2 as RESERVED_DIRECTORIES,
|
|
26
23
|
collectLocalFiles2 as collectLocalFiles,
|
|
@@ -40,4 +37,4 @@ export {
|
|
|
40
37
|
writeWorkspaceMarker2 as writeWorkspaceMarker
|
|
41
38
|
};
|
|
42
39
|
|
|
43
|
-
//# debugId=
|
|
40
|
+
//# debugId=07B638A49709AEE864756E2164756E21
|