@nexusclawhq/cli 0.3.38 → 0.3.39
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/CHANGELOG.md +10 -0
- package/dist/build-info.json +4 -4
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/community-capabilities.d.ts +27 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/community-capabilities.js +32 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/community-capabilities.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/types.d.ts +1 -2
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/types.js +12 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/types.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/index.d.ts +1 -3
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/index.js +1 -3
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/index.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/en-US.d.ts +19 -3
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/en-US.js +12 -5
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/en-US.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/index.d.ts +38 -6
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/zh-CN.d.ts +19 -3
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/zh-CN.js +13 -6
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/zh-CN.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/platform-admin-route-readiness/index.js +2 -2
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/platform-admin-route-readiness/index.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/system-object-persistence.js +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/system-object-persistence.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/package.json +0 -12
- package/dist/nexus-cli/src/cli.d.ts +4 -1
- package/dist/nexus-cli/src/cli.js +8 -1
- package/dist/nexus-cli/src/cli.js.map +1 -1
- package/dist/nexus-cli/src/cli.test.js +6 -0
- package/dist/nexus-cli/src/cli.test.js.map +1 -1
- package/dist/nexus-cli/src/commands/ai/help.test.js +4 -4
- package/dist/nexus-cli/src/commands/commands.test.js +1 -1
- package/dist/nexus-cli/src/commands/commands.test.js.map +1 -1
- package/dist/nexus-cli/src/commands/workforce/curated-exemplar.d.ts +2 -0
- package/dist/nexus-cli/src/commands/workforce/curated-exemplar.js +51 -0
- package/dist/nexus-cli/src/commands/workforce/curated-exemplar.js.map +1 -0
- package/dist/nexus-cli/src/commands/workforce/index.js +2 -0
- package/dist/nexus-cli/src/commands/workforce/index.js.map +1 -1
- package/dist/nexus-cli/src/contracts/command-contract-matrix.generated.test.js +5 -5
- package/dist/nexus-cli/src/contracts/command-inventory.test.js +4 -4
- package/dist/nexus-cli/src/contracts/command-policy.exporter.test.js +2 -2
- package/dist/nexus-cli/src/contracts/command-policy.registry.js +2 -2
- package/dist/nexus-cli/src/contracts/command-policy.registry.js.map +1 -1
- package/dist/nexus-cli/src/contracts/command-policy.registry.test.js +4 -4
- package/dist/nexus-cli/src/contracts/command-policy.validator.test.js +3 -3
- package/dist/nexus-cli/src/services/curated-exemplar-remote.d.ts +32 -0
- package/dist/nexus-cli/src/services/curated-exemplar-remote.js +50 -0
- package/dist/nexus-cli/src/services/curated-exemplar-remote.js.map +1 -0
- package/dist/nexus-cli/src/services/workforce-bundle-archive.d.ts +1 -1
- package/dist/nexus-cli/src/services/workforce-bundle-remote.d.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface CuratedExemplarView {
|
|
2
|
+
id: string;
|
|
3
|
+
scenarioCode: string;
|
|
4
|
+
roleCodes: string[];
|
|
5
|
+
content: string;
|
|
6
|
+
scope: string;
|
|
7
|
+
orgNodeId?: string | null;
|
|
8
|
+
reviewStatus: string;
|
|
9
|
+
privacyReviewStatus: string;
|
|
10
|
+
label?: string | null;
|
|
11
|
+
contentDigest: string;
|
|
12
|
+
embedded: boolean;
|
|
13
|
+
accessLevel: string;
|
|
14
|
+
title?: string;
|
|
15
|
+
createdAt?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function ingestCuratedScenarioExemplarRemote(options: {
|
|
18
|
+
targetOrg: string;
|
|
19
|
+
scenarioCode: string;
|
|
20
|
+
roleCodes: string[];
|
|
21
|
+
content: string;
|
|
22
|
+
scope: 'orgSubtree' | 'workspace';
|
|
23
|
+
orgNodeId?: string;
|
|
24
|
+
label?: 'positive' | 'negative';
|
|
25
|
+
reviewStatus?: 'pending' | 'approved' | 'rejected';
|
|
26
|
+
privacyReviewStatus?: 'pending' | 'approved' | 'rejected';
|
|
27
|
+
title?: string;
|
|
28
|
+
}): Promise<CuratedExemplarView>;
|
|
29
|
+
export declare function listCuratedScenarioExemplarsRemote(options: {
|
|
30
|
+
targetOrg: string;
|
|
31
|
+
scenarioCode?: string;
|
|
32
|
+
}): Promise<CuratedExemplarView[]>;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ingestCuratedScenarioExemplarRemote = ingestCuratedScenarioExemplarRemote;
|
|
4
|
+
exports.listCuratedScenarioExemplarsRemote = listCuratedScenarioExemplarsRemote;
|
|
5
|
+
const api_client_1 = require("./api-client");
|
|
6
|
+
const INGEST_CURATED_EXEMPLAR = `
|
|
7
|
+
mutation IngestCuratedScenarioExemplar($input: IngestCuratedScenarioExemplarInput!) {
|
|
8
|
+
ingestCuratedScenarioExemplar(input: $input) {
|
|
9
|
+
id scenarioCode roleCodes content scope orgNodeId reviewStatus privacyReviewStatus
|
|
10
|
+
label contentDigest embedded accessLevel title createdAt
|
|
11
|
+
}
|
|
12
|
+
}`;
|
|
13
|
+
const LIST_CURATED_EXEMPLARS = `
|
|
14
|
+
query CuratedScenarioExemplars($scenarioCode: String) {
|
|
15
|
+
curatedScenarioExemplars(scenarioCode: $scenarioCode) {
|
|
16
|
+
id scenarioCode roleCodes content scope orgNodeId reviewStatus privacyReviewStatus
|
|
17
|
+
label contentDigest embedded accessLevel title createdAt
|
|
18
|
+
}
|
|
19
|
+
}`;
|
|
20
|
+
async function ingestCuratedScenarioExemplarRemote(options) {
|
|
21
|
+
const client = (0, api_client_1.createApiClient)(options.targetOrg);
|
|
22
|
+
const scopeInput = { scope: options.scope };
|
|
23
|
+
if (options.orgNodeId !== undefined)
|
|
24
|
+
scopeInput.orgNodeId = options.orgNodeId;
|
|
25
|
+
const input = {
|
|
26
|
+
scenarioCode: options.scenarioCode,
|
|
27
|
+
roleCodes: options.roleCodes,
|
|
28
|
+
content: options.content,
|
|
29
|
+
scope: scopeInput,
|
|
30
|
+
};
|
|
31
|
+
if (options.label !== undefined)
|
|
32
|
+
input.label = options.label;
|
|
33
|
+
if (options.reviewStatus !== undefined)
|
|
34
|
+
input.reviewStatus = options.reviewStatus;
|
|
35
|
+
if (options.privacyReviewStatus !== undefined)
|
|
36
|
+
input.privacyReviewStatus = options.privacyReviewStatus;
|
|
37
|
+
if (options.title !== undefined)
|
|
38
|
+
input.title = options.title;
|
|
39
|
+
const data = await client.graphql(INGEST_CURATED_EXEMPLAR, { input });
|
|
40
|
+
return data.ingestCuratedScenarioExemplar;
|
|
41
|
+
}
|
|
42
|
+
async function listCuratedScenarioExemplarsRemote(options) {
|
|
43
|
+
const client = (0, api_client_1.createApiClient)(options.targetOrg);
|
|
44
|
+
const variables = {};
|
|
45
|
+
if (options.scenarioCode !== undefined)
|
|
46
|
+
variables.scenarioCode = options.scenarioCode;
|
|
47
|
+
const data = await client.graphql(LIST_CURATED_EXEMPLARS, variables);
|
|
48
|
+
return data.curatedScenarioExemplars;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=curated-exemplar-remote.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"curated-exemplar-remote.js","sourceRoot":"","sources":["../../../../src/services/curated-exemplar-remote.ts"],"names":[],"mappings":";;AA4CA,kFA8BC;AAED,gFAYC;AAxFD,6CAA+C;AA4B/C,MAAM,uBAAuB,GAAG;;;;;;EAM9B,CAAC;AAEH,MAAM,sBAAsB,GAAG;;;;;;EAM7B,CAAC;AAEI,KAAK,UAAU,mCAAmC,CAAC,OAWzD;IACC,MAAM,MAAM,GAAG,IAAA,4BAAe,EAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAClD,MAAM,UAAU,GAA4B,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC;IACrE,IAAI,OAAO,CAAC,SAAS,KAAK,SAAS;QAAE,UAAU,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAC9E,MAAM,KAAK,GAA4B;QACrC,YAAY,EAAE,OAAO,CAAC,YAAY;QAClC,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,KAAK,EAAE,UAAU;KAClB,CAAC;IACF,IAAI,OAAO,CAAC,KAAK,KAAK,SAAS;QAAE,KAAK,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;IAC7D,IAAI,OAAO,CAAC,YAAY,KAAK,SAAS;QAAE,KAAK,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAClF,IAAI,OAAO,CAAC,mBAAmB,KAAK,SAAS;QAAE,KAAK,CAAC,mBAAmB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IACvG,IAAI,OAAO,CAAC,KAAK,KAAK,SAAS;QAAE,KAAK,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;IAC7D,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,OAAO,CAC/B,uBAAuB,EACvB,EAAE,KAAK,EAAE,CACV,CAAC;IACF,OAAO,IAAI,CAAC,6BAA6B,CAAC;AAC5C,CAAC;AAEM,KAAK,UAAU,kCAAkC,CAAC,OAGxD;IACC,MAAM,MAAM,GAAG,IAAA,4BAAe,EAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAClD,MAAM,SAAS,GAA4B,EAAE,CAAC;IAC9C,IAAI,OAAO,CAAC,YAAY,KAAK,SAAS;QAAE,SAAS,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IACtF,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,OAAO,CAC/B,sBAAsB,EACtB,SAAS,CACV,CAAC;IACF,OAAO,IAAI,CAAC,wBAAwB,CAAC;AACvC,CAAC"}
|
|
@@ -8,5 +8,5 @@ export declare function buildCanonicalWorkforceBundleArchive(options: {
|
|
|
8
8
|
portableBundleDigest: `sha256:${string}`;
|
|
9
9
|
runtimeBindingsDigest: `sha256:${string}`;
|
|
10
10
|
fileCount: number;
|
|
11
|
-
declaredSurfaces: ("
|
|
11
|
+
declaredSurfaces: ("code" | "flow" | "employee")[];
|
|
12
12
|
}>;
|
|
@@ -15,7 +15,7 @@ export declare function prepareRemoteWorkforceBundle(options: {
|
|
|
15
15
|
portableBundleDigest: `sha256:${string}`;
|
|
16
16
|
runtimeBindingsDigest: `sha256:${string}`;
|
|
17
17
|
fileCount: number;
|
|
18
|
-
declaredSurfaces: ("
|
|
18
|
+
declaredSurfaces: ("code" | "flow" | "employee")[];
|
|
19
19
|
};
|
|
20
20
|
sealed: import("./api-client").SealedExecutablePackageArtifact;
|
|
21
21
|
artifactInput: {
|