@nexusclawhq/cli 0.3.75 → 0.3.77
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/agent-executable-assets/ai-authoring-context.types.js +5 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/ai-authoring-context.types.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/command-routing.types.d.ts +99 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/command-routing.types.js +3 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/command-routing.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/contract-versions.d.ts +3 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/contract-versions.js +4 -2
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/contract-versions.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/index.d.ts +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/index.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/release-evidence-validation.d.ts +2 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/release-evidence-validation.js +25 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/release-evidence-validation.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/release-evidence.types.d.ts +7 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/workforce-lock.types.d.ts +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-runtime/harness-runtime.types.d.ts +178 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-runtime/harness-runtime.types.js +280 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-runtime/harness-runtime.types.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-runtime/index.d.ts +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-runtime/index.js +18 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-runtime/index.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/index.d.ts +2 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/index.js +2 -0
- 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 +232 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/en-US.js +243 -16
- 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 +464 -2
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/record-type-semantics.d.ts +75 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/record-type-semantics.js +59 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/record-type-semantics.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/zh-CN.d.ts +232 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/zh-CN.js +244 -17
- 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/record-home/duplicate.d.ts +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/duplicate.js +8 -4
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/duplicate.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/formAssist.d.ts +38 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/formAssist.js +81 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/formAssist.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/index.d.ts +2 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/index.js +2 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/index.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/pageComponents.d.ts +24 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/pageComponents.js +66 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/pageComponents.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/recordTypeSemantics.d.ts +0 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/recordTypeSemantics.js +10 -2
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/recordTypeSemantics.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/recordTypes.d.ts +4 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/recordTypes.js +7 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/recordTypes.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/scratch-org-definition.d.ts +9 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/scratch-org-definition.js +21 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/scratch-org-definition.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-metadata-package/governance.d.ts +73 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-metadata-package/governance.js +96 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-metadata-package/governance.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-metadata-package/index.d.ts +173 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-metadata-package/index.js +252 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-metadata-package/index.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-metadata-package/lifecycle.d.ts +25 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-metadata-package/lifecycle.js +24 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-metadata-package/lifecycle.js.map +1 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-regional-settings.d.ts +21 -0
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-regional-settings.js +89 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-regional-settings.js.map +1 -1
- package/dist/nexus-cli/node_modules/@nexusclaw/shared/package.json +12 -0
- package/dist/nexus-cli/src/cli-runner.test.js +36 -0
- package/dist/nexus-cli/src/cli-runner.test.js.map +1 -1
- package/dist/nexus-cli/src/cli.js +47 -1
- package/dist/nexus-cli/src/cli.js.map +1 -1
- package/dist/nexus-cli/src/cli.positional.test.d.ts +1 -0
- package/dist/nexus-cli/src/cli.positional.test.js +33 -0
- package/dist/nexus-cli/src/cli.positional.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/ai/help.d.ts +5 -0
- package/dist/nexus-cli/src/commands/ai/help.js +233 -2
- package/dist/nexus-cli/src/commands/ai/help.js.map +1 -1
- package/dist/nexus-cli/src/commands/ai/help.test.js +68 -4
- package/dist/nexus-cli/src/commands/ai/help.test.js.map +1 -1
- package/dist/nexus-cli/src/commands/ai/index.js +2 -2
- package/dist/nexus-cli/src/commands/ai/index.js.map +1 -1
- 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/data/export-tree.d.ts +2 -0
- package/dist/nexus-cli/src/commands/data/export-tree.js +11 -66
- package/dist/nexus-cli/src/commands/data/export-tree.js.map +1 -1
- package/dist/nexus-cli/src/commands/data/export-tree.test.d.ts +1 -0
- package/dist/nexus-cli/src/commands/data/export-tree.test.js +17 -0
- package/dist/nexus-cli/src/commands/data/export-tree.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/dx-workflows.e2e.test.js +5 -1
- package/dist/nexus-cli/src/commands/dx-workflows.e2e.test.js.map +1 -1
- package/dist/nexus-cli/src/commands/generate/component.js +14 -1
- package/dist/nexus-cli/src/commands/generate/component.js.map +1 -1
- package/dist/nexus-cli/src/commands/org/login-web-terminal.test.js +54 -9
- package/dist/nexus-cli/src/commands/org/login-web-terminal.test.js.map +1 -1
- package/dist/nexus-cli/src/commands/org/login-web.d.ts +11 -0
- package/dist/nexus-cli/src/commands/org/login-web.js +68 -17
- package/dist/nexus-cli/src/commands/org/login-web.js.map +1 -1
- package/dist/nexus-cli/src/commands/org/login-web.test.js +22 -0
- package/dist/nexus-cli/src/commands/org/login-web.test.js.map +1 -1
- package/dist/nexus-cli/src/commands/package/candidate.d.ts +3 -0
- package/dist/nexus-cli/src/commands/package/candidate.js +147 -0
- package/dist/nexus-cli/src/commands/package/candidate.js.map +1 -0
- package/dist/nexus-cli/src/commands/package/index.js +2 -0
- package/dist/nexus-cli/src/commands/package/index.js.map +1 -1
- package/dist/nexus-cli/src/commands/package/install.js +6 -11
- package/dist/nexus-cli/src/commands/package/install.js.map +1 -1
- package/dist/nexus-cli/src/commands/package/package-lifecycle.e2e.test.js +5 -1
- package/dist/nexus-cli/src/commands/package/package-lifecycle.e2e.test.js.map +1 -1
- package/dist/nexus-cli/src/contracts/command-contract-coverage-baseline.json +5 -5
- package/dist/nexus-cli/src/contracts/command-contract.registry.js +47 -2
- package/dist/nexus-cli/src/contracts/command-contract.registry.js.map +1 -1
- package/dist/nexus-cli/src/contracts/command-inventory.d.ts +1 -0
- package/dist/nexus-cli/src/contracts/command-inventory.js +1 -0
- package/dist/nexus-cli/src/contracts/command-inventory.js.map +1 -1
- 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 +5 -1
- 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 +12 -5
- package/dist/nexus-cli/src/contracts/command-policy.validator.test.js.map +1 -1
- package/dist/nexus-cli/src/contracts/command-routing.d.ts +25 -0
- package/dist/nexus-cli/src/contracts/command-routing.js +488 -0
- package/dist/nexus-cli/src/contracts/command-routing.js.map +1 -0
- package/dist/nexus-cli/src/contracts/command-routing.test.d.ts +1 -0
- package/dist/nexus-cli/src/contracts/command-routing.test.js +73 -0
- package/dist/nexus-cli/src/contracts/command-routing.test.js.map +1 -0
- package/dist/nexus-cli/src/contracts/contracts.test.js +1 -1
- package/dist/nexus-cli/src/contracts/index.d.ts +2 -0
- package/dist/nexus-cli/src/contracts/index.js +10 -1
- package/dist/nexus-cli/src/contracts/index.js.map +1 -1
- package/dist/nexus-cli/src/contracts/task-route.registry.d.ts +40 -0
- package/dist/nexus-cli/src/contracts/task-route.registry.js +234 -0
- package/dist/nexus-cli/src/contracts/task-route.registry.js.map +1 -0
- package/dist/nexus-cli/src/contracts/task-route.registry.test.d.ts +1 -0
- package/dist/nexus-cli/src/contracts/task-route.registry.test.js +65 -0
- package/dist/nexus-cli/src/contracts/task-route.registry.test.js.map +1 -0
- package/dist/nexus-cli/src/runtime/failure-normalizer.js +6 -0
- package/dist/nexus-cli/src/runtime/failure-normalizer.js.map +1 -1
- package/dist/nexus-cli/src/services/ai-authoring-context-v2.js +18 -3
- package/dist/nexus-cli/src/services/ai-authoring-context-v2.js.map +1 -1
- package/dist/nexus-cli/src/services/ai-authoring-context-v2.pack.e2e.js +24 -0
- package/dist/nexus-cli/src/services/ai-authoring-context-v2.pack.e2e.js.map +1 -1
- package/dist/nexus-cli/src/services/ai-authoring-context-v2.test.js +8 -0
- package/dist/nexus-cli/src/services/ai-authoring-context-v2.test.js.map +1 -1
- package/dist/nexus-cli/src/services/api-client.d.ts +16 -0
- package/dist/nexus-cli/src/services/api-client.js +19 -8
- package/dist/nexus-cli/src/services/api-client.js.map +1 -1
- package/dist/nexus-cli/src/services/metadata-package-archive.d.ts +8 -0
- package/dist/nexus-cli/src/services/metadata-package-archive.js +36 -0
- package/dist/nexus-cli/src/services/metadata-package-archive.js.map +1 -0
- package/dist/nexus-cli/src/services/metadata-package-archive.test.d.ts +1 -0
- package/dist/nexus-cli/src/services/metadata-package-archive.test.js +169 -0
- package/dist/nexus-cli/src/services/metadata-package-archive.test.js.map +1 -0
- package/dist/nexus-cli/src/services/package-manifest.js +5 -1
- package/dist/nexus-cli/src/services/package-manifest.js.map +1 -1
- package/dist/nexus-cli/src/services/package-pack-inventory.js +11 -2
- package/dist/nexus-cli/src/services/package-pack-inventory.js.map +1 -1
- package/dist/nexus-cli/src/services/target-context.js +10 -7
- package/dist/nexus-cli/src/services/target-context.js.map +1 -1
- package/dist/nexus-cli/src/services/target-context.test.js +7 -0
- package/dist/nexus-cli/src/services/target-context.test.js.map +1 -1
- package/dist/nexus-cli/src/services/workforce-remote-operations.d.ts +1 -0
- package/dist/nexus-cli/src/services/workforce-remote-operations.js +1 -0
- package/dist/nexus-cli/src/services/workforce-remote-operations.js.map +1 -1
- package/dist/nexus-cli/src/services/workforce-test-remote.d.ts +1 -1
- package/dist/nexus-cli/src/services/workforce-test-remote.js +1 -1
- package/dist/nexus-cli/src/services/workspace-metadata-lifecycle.d.ts +21 -0
- package/dist/nexus-cli/src/services/workspace-metadata-lifecycle.js +42 -0
- package/dist/nexus-cli/src/services/workspace-metadata-lifecycle.js.map +1 -0
- package/dist/nexus-cli/src/templates/component.ts.tpl +9 -20
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -2
|
@@ -3,10 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.buildDuplicateRecordInitialValues = void 0;
|
|
4
4
|
const fieldPolicy_1 = require("./fieldPolicy");
|
|
5
5
|
const getEligibleCreateFields = ({ objectMetadataItem, layoutSections, visibleFieldNames, isFieldHidden, isFieldReadonly, }) => {
|
|
6
|
-
let fields = objectMetadataItem.fields.filter((field) =>
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
let fields = objectMetadataItem.fields.filter((field) => {
|
|
7
|
+
const isIdentifier = field.id === objectMetadataItem.labelIdentifierFieldMetadataId;
|
|
8
|
+
return !(0, fieldPolicy_1.isMetadataGeneratedReadOnlyField)(field, { ignoreSystemFlag: isIdentifier }) &&
|
|
9
|
+
(0, fieldPolicy_1.isMetadataDrivenFieldEditable)(isIdentifier ? { ...field, isSystem: false } : field, {
|
|
10
|
+
isHidden: isFieldHidden?.(field.name),
|
|
11
|
+
isReadonly: isFieldReadonly?.(field.name),
|
|
12
|
+
});
|
|
13
|
+
});
|
|
10
14
|
if (layoutSections && layoutSections.length > 0) {
|
|
11
15
|
const sectionFieldIds = new Set(layoutSections.flatMap((section) => section.fields.map((field) => field.fieldMetadataId)));
|
|
12
16
|
return fields.filter((field) => sectionFieldIds.has(field.id));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"duplicate.js","sourceRoot":"","sources":["../../src/record-home/duplicate.ts"],"names":[],"mappings":";;;AAAA,+
|
|
1
|
+
{"version":3,"file":"duplicate.js","sourceRoot":"","sources":["../../src/record-home/duplicate.ts"],"names":[],"mappings":";;;AAAA,+CAAkK;AAGlK,MAAM,uBAAuB,GAAG,CAAC,EAC/B,kBAAkB,EAClB,cAAc,EACd,iBAAiB,EAC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,OAAO,MAAM;aACV,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;aAC7C,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACjG,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAEK,MAAM,iCAAiC,GAAG,CAAC,EAChD,MAAM,EACN,kBAAkB,EAClB,cAAc,EACd,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,cAAc,GAAG,oDAAsC,GASxD,EAAoC,EAAE;IACrC,MAAM,cAAc,GAAG,uBAAuB,CAAC;QAC7C,kBAAkB;QAClB,cAAc;QACd,iBAAiB;QACjB,aAAa;QACb,eAAe;KAChB,CAAC,CAAC;IAEH,OAAO,cAAc,CAAC,MAAM,CAAmC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;QAC/E,MAAM,eAAe,GAAG,cAAc,CACpC,KAAK,EACL,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CACnB,CAAC;QAEF,IAAI,eAAe,KAAK,SAAS,EAAE,CAAC;YAClC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,eAAe,CAAC;QACvC,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC,CAAC;AArCW,QAAA,iCAAiC,qCAqC5C"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export declare const UNSAFE_AI_FIELD_TYPES: Set<string>;
|
|
2
|
+
export interface AssistFieldMetadata {
|
|
3
|
+
id?: string;
|
|
4
|
+
name: string;
|
|
5
|
+
label: string;
|
|
6
|
+
type: string;
|
|
7
|
+
isNullable?: boolean;
|
|
8
|
+
isActive?: boolean;
|
|
9
|
+
isUIReadOnly?: boolean;
|
|
10
|
+
isSystem?: boolean;
|
|
11
|
+
description?: string | null;
|
|
12
|
+
settings?: Record<string, unknown> | null;
|
|
13
|
+
defaultValue?: unknown;
|
|
14
|
+
options?: Array<{
|
|
15
|
+
value: string;
|
|
16
|
+
label?: string | null;
|
|
17
|
+
}> | null;
|
|
18
|
+
}
|
|
19
|
+
export interface AssistFieldSchema {
|
|
20
|
+
key: string;
|
|
21
|
+
name: string;
|
|
22
|
+
label: string;
|
|
23
|
+
type: string;
|
|
24
|
+
required: boolean;
|
|
25
|
+
description?: string | null;
|
|
26
|
+
placeholder?: string;
|
|
27
|
+
defaultValue?: unknown;
|
|
28
|
+
semanticRole?: 'record_label';
|
|
29
|
+
options: Array<{
|
|
30
|
+
value: string;
|
|
31
|
+
label: string | null | undefined;
|
|
32
|
+
}>;
|
|
33
|
+
validation?: Record<string, unknown> | null;
|
|
34
|
+
}
|
|
35
|
+
export declare function buildRecordFormAssistFieldSchema<T extends AssistFieldMetadata>(fields: T[], readonlyFieldNames: string[], labels: Record<string, string>, getOptionLabel: (field: T, value: string) => string | undefined | null, identifierFieldMetadataId?: string | null): AssistFieldSchema[];
|
|
36
|
+
export declare const hasAssistValue: (value: unknown) => boolean;
|
|
37
|
+
export declare function projectRecordFormAssistValues(schema: AssistFieldSchema[], values: unknown): Record<string, unknown>;
|
|
38
|
+
export declare const AI_RECORD_FORM_GENERATE = "mutation AiGenerate($input: AiGenerateGqlInput!) {\n aiGenerate(input: $input) { content model traceId latencyMs tokensUsed { input output } }\n}";
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AI_RECORD_FORM_GENERATE = exports.hasAssistValue = exports.UNSAFE_AI_FIELD_TYPES = void 0;
|
|
4
|
+
exports.buildRecordFormAssistFieldSchema = buildRecordFormAssistFieldSchema;
|
|
5
|
+
exports.projectRecordFormAssistValues = projectRecordFormAssistValues;
|
|
6
|
+
const fieldPolicy_1 = require("./fieldPolicy");
|
|
7
|
+
exports.UNSAFE_AI_FIELD_TYPES = new Set(['RELATION', 'EXTERNAL_LOOKUP', 'GEOLOCATION']);
|
|
8
|
+
// Permission and layout owners supply the fields; never cap their schema.
|
|
9
|
+
function buildRecordFormAssistFieldSchema(fields, readonlyFieldNames, labels, getOptionLabel, identifierFieldMetadataId) {
|
|
10
|
+
return fields.filter(field => field.isActive !== false
|
|
11
|
+
&& !exports.UNSAFE_AI_FIELD_TYPES.has(field.type) && !readonlyFieldNames.includes(field.name)
|
|
12
|
+
&& !(0, fieldPolicy_1.isSystemFieldName)(field.name) && !(0, fieldPolicy_1.isMetadataGeneratedReadOnlyField)(field, {
|
|
13
|
+
ignoreSystemFlag: !!identifierFieldMetadataId && field.id === identifierFieldMetadataId,
|
|
14
|
+
}))
|
|
15
|
+
.map(field => ({ key: field.name, name: field.name, label: labels[field.name] || field.label,
|
|
16
|
+
...(identifierFieldMetadataId && field.id === identifierFieldMetadataId
|
|
17
|
+
? { semanticRole: 'record_label' } : {}),
|
|
18
|
+
type: field.type, required: field.isNullable === false, description: field.description,
|
|
19
|
+
placeholder: typeof field.settings?.placeholder === 'string' ? field.settings.placeholder : undefined,
|
|
20
|
+
options: field.options?.map(option => ({ value: option.value,
|
|
21
|
+
label: getOptionLabel(field, option.value) || option.label })) ?? [],
|
|
22
|
+
defaultValue: field.defaultValue, validation: field.settings, }));
|
|
23
|
+
}
|
|
24
|
+
const hasAssistValue = (value) => value !== undefined && value !== null
|
|
25
|
+
&& (typeof value !== 'string' || value.trim() !== '') && (!Array.isArray(value) || value.length > 0);
|
|
26
|
+
exports.hasAssistValue = hasAssistValue;
|
|
27
|
+
const calendarDate = (value) => /^\d{4}-\d{2}-\d{2}$/.test(value)
|
|
28
|
+
&& !Number.isNaN(Date.parse(value)) && new Date(value).toISOString().slice(0, 10) === value;
|
|
29
|
+
// Project a provider response onto the current schema, never arbitrary keys.
|
|
30
|
+
function projectRecordFormAssistValues(schema, values) {
|
|
31
|
+
if (!values || typeof values !== 'object' || Array.isArray(values))
|
|
32
|
+
return {};
|
|
33
|
+
const source = values;
|
|
34
|
+
return Object.fromEntries(schema.flatMap(field => {
|
|
35
|
+
const value = source[field.name];
|
|
36
|
+
const option = (item) => typeof item === 'string' && field.options.some(o => o.value === item);
|
|
37
|
+
let valid = false;
|
|
38
|
+
switch (field.type) {
|
|
39
|
+
case 'TEXT':
|
|
40
|
+
case 'LONG_TEXT':
|
|
41
|
+
case 'RICH_TEXT':
|
|
42
|
+
case 'EMAIL':
|
|
43
|
+
case 'PHONE':
|
|
44
|
+
case 'LINK':
|
|
45
|
+
case 'URL':
|
|
46
|
+
valid = typeof value === 'string' && value.trim() !== '';
|
|
47
|
+
break;
|
|
48
|
+
case 'NUMBER':
|
|
49
|
+
case 'CURRENCY':
|
|
50
|
+
case 'RATING':
|
|
51
|
+
case 'PERCENT':
|
|
52
|
+
valid = typeof value === 'number' && Number.isFinite(value)
|
|
53
|
+
&& (typeof field.validation?.min !== 'number' || value >= field.validation.min)
|
|
54
|
+
&& (typeof field.validation?.max !== 'number' || value <= field.validation.max)
|
|
55
|
+
&& (field.type !== 'PERCENT' || (value >= 0 && value <= 100));
|
|
56
|
+
break;
|
|
57
|
+
case 'BOOLEAN':
|
|
58
|
+
valid = typeof value === 'boolean';
|
|
59
|
+
break;
|
|
60
|
+
case 'SELECT':
|
|
61
|
+
valid = option(value);
|
|
62
|
+
break;
|
|
63
|
+
case 'MULTI_SELECT':
|
|
64
|
+
valid = Array.isArray(value) && value.length > 0 && value.every(option);
|
|
65
|
+
break;
|
|
66
|
+
case 'DATE':
|
|
67
|
+
valid = typeof value === 'string' && calendarDate(value);
|
|
68
|
+
break;
|
|
69
|
+
case 'DATE_TIME':
|
|
70
|
+
valid = typeof value === 'string' && calendarDate(value.slice(0, 10))
|
|
71
|
+
&& /^\d{4}-\d{2}-\d{2}T(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/.test(value)
|
|
72
|
+
&& !Number.isNaN(Date.parse(value));
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
return valid ? [[field.name, value]] : [];
|
|
76
|
+
}));
|
|
77
|
+
}
|
|
78
|
+
exports.AI_RECORD_FORM_GENERATE = `mutation AiGenerate($input: AiGenerateGqlInput!) {
|
|
79
|
+
aiGenerate(input: $input) { content model traceId latencyMs tokensUsed { input output } }
|
|
80
|
+
}`;
|
|
81
|
+
//# sourceMappingURL=formAssist.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formAssist.js","sourceRoot":"","sources":["../../src/record-home/formAssist.ts"],"names":[],"mappings":";;;AAmBA,4EAmBC;AAQD,sEA2BC;AAzED,+CAAoF;AAEvE,QAAA,qBAAqB,GAAG,IAAI,GAAG,CAAC,CAAC,UAAU,EAAE,iBAAiB,EAAE,aAAa,CAAC,CAAC,CAAC;AAgB7F,0EAA0E;AAC1E,SAAgB,gCAAgC,CAC9C,MAAW,EAAE,kBAA4B,EAAE,MAA8B,EACzE,cAAsE,EACtE,yBAAyC;IAEzC,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,KAAK,KAAK;WACjD,CAAC,6BAAqB,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC;WAClF,CAAC,IAAA,+BAAiB,EAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAA,8CAAgC,EAAC,KAAK,EAAE;QAC5E,gBAAgB,EAAE,CAAC,CAAC,yBAAyB,IAAI,KAAK,CAAC,EAAE,KAAK,yBAAyB;KACxF,CAAC,CAAC;SACF,GAAG,CAAC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AAC;gBAAC,MAAM;QACjD,CAAC;QACD,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC5C,CAAC,CAAC,CAAC,CAAC;AACN,CAAC;AAEY,QAAA,uBAAuB,GAAG;;EAErC,CAAC"}
|
|
@@ -23,4 +23,6 @@ __exportStar(require("./recordTypes"), exports);
|
|
|
23
23
|
__exportStar(require("./recordTypeSemantics"), exports);
|
|
24
24
|
__exportStar(require("./sharing"), exports);
|
|
25
25
|
__exportStar(require("./icons"), exports);
|
|
26
|
+
__exportStar(require("./formAssist"), exports);
|
|
27
|
+
__exportStar(require("./pageComponents"), exports);
|
|
26
28
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/record-home/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,gDAA8B;AAC9B,8CAA4B;AAC5B,+CAA6B;AAC7B,6CAA2B;AAC3B,gDAA8B;AAC9B,wDAAsC;AACtC,4CAA0B;AAC1B,0CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/record-home/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,gDAA8B;AAC9B,8CAA4B;AAC5B,+CAA6B;AAC7B,6CAA2B;AAC3B,gDAA8B;AAC9B,wDAAsC;AACtC,4CAA0B;AAC1B,0CAAwB;AACxB,+CAA6B;AAC7B,mDAAiC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** Dependency declarations for PageDefinition components, shared with the renderer registry.
|
|
2
|
+
* CustomPage's schema/props components have a different owner and are not declared here.
|
|
3
|
+
*/
|
|
4
|
+
export type PageComponentResource = 'report' | 'dashboard' | 'role';
|
|
5
|
+
export interface PageComponentDependencies {
|
|
6
|
+
resources: Readonly<Record<string, PageComponentResource>>;
|
|
7
|
+
objectProperty?: string;
|
|
8
|
+
fieldProperties?: readonly string[];
|
|
9
|
+
fieldArrayProperties?: readonly string[];
|
|
10
|
+
filterProperty?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const PAGE_DEFINITION_COMPONENT_DEPENDENCIES: Readonly<Record<string, PageComponentDependencies>>;
|
|
13
|
+
export declare function pageComponentDependencies(type: string): PageComponentDependencies | undefined;
|
|
14
|
+
export declare function pageComponentHasRoleVisibility(type: string): boolean;
|
|
15
|
+
export interface PortablePageComponent {
|
|
16
|
+
id: string;
|
|
17
|
+
type: string;
|
|
18
|
+
config: Record<string, unknown>;
|
|
19
|
+
/** Keys are renderer config properties; values are stable resource API names, never source IDs. */
|
|
20
|
+
references: Record<string, string | null | string[]>;
|
|
21
|
+
children?: PortablePageComponent[];
|
|
22
|
+
}
|
|
23
|
+
/** Validates the transfer shape, not renderer settings or data permissions. */
|
|
24
|
+
export declare function assertPortablePageComponents(value: unknown, depth?: number, ids?: Set<string>): asserts value is PortablePageComponent[];
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PAGE_DEFINITION_COMPONENT_DEPENDENCIES = void 0;
|
|
4
|
+
exports.pageComponentDependencies = pageComponentDependencies;
|
|
5
|
+
exports.pageComponentHasRoleVisibility = pageComponentHasRoleVisibility;
|
|
6
|
+
exports.assertPortablePageComponents = assertPortablePageComponents;
|
|
7
|
+
const none = { resources: {} };
|
|
8
|
+
exports.PAGE_DEFINITION_COMPONENT_DEPENDENCIES = {
|
|
9
|
+
FIELD_SECTION: { resources: {}, fieldArrayProperties: ['fields'] },
|
|
10
|
+
DETAIL_SECTION: { resources: {}, fieldArrayProperties: ['fields'] },
|
|
11
|
+
RELATED_LIST: { resources: {}, objectProperty: 'objectName', fieldProperties: ['relatedField'] },
|
|
12
|
+
RICH_TEXT: none, TAB_CONTAINER: none, ACCORDION: none, HOME_TEMPLATE_2COL: none,
|
|
13
|
+
METRIC_ROW: none, PAGE_REGION: none, AGENT_WORKFORCE_KPI: none,
|
|
14
|
+
DASHBOARD_ROW: { resources: { visibleToRoleIds: 'role' } },
|
|
15
|
+
DASHBOARD_COLUMN: { resources: { visibleToRoleIds: 'role' } },
|
|
16
|
+
REPORT_CHART: { resources: { reportDefinitionId: 'report' }, fieldProperties: ['contextFilterField'] },
|
|
17
|
+
DASHBOARD_EMBED: { resources: { dashboardId: 'dashboard' } },
|
|
18
|
+
KPI_METRIC: { resources: { visibleToRoleIds: 'role' }, objectProperty: 'objectName', fieldProperties: ['metricField', 'trendDateField'], filterProperty: 'filters' },
|
|
19
|
+
METRIC_CHART: { resources: { visibleToRoleIds: 'role' }, objectProperty: 'objectName', fieldProperties: ['metricField', 'groupByField'], filterProperty: 'filters' },
|
|
20
|
+
};
|
|
21
|
+
function pageComponentDependencies(type) {
|
|
22
|
+
return Object.prototype.hasOwnProperty.call(exports.PAGE_DEFINITION_COMPONENT_DEPENDENCIES, type)
|
|
23
|
+
? exports.PAGE_DEFINITION_COMPONENT_DEPENDENCIES[type] : undefined;
|
|
24
|
+
}
|
|
25
|
+
function pageComponentHasRoleVisibility(type) {
|
|
26
|
+
return pageComponentDependencies(type)?.resources.visibleToRoleIds === 'role';
|
|
27
|
+
}
|
|
28
|
+
/** Validates the transfer shape, not renderer settings or data permissions. */
|
|
29
|
+
function assertPortablePageComponents(value, depth = 0, ids = new Set()) {
|
|
30
|
+
if (!Array.isArray(value) || depth > 10)
|
|
31
|
+
throw new Error('PAGE_COMPONENT_TREE_INVALID');
|
|
32
|
+
for (const node of value) {
|
|
33
|
+
if (!node || typeof node !== 'object' || Array.isArray(node) || typeof node.id !== 'string' || !node.id.trim()
|
|
34
|
+
|| typeof node.type !== 'string' || !node.type.trim() || ids.has(node.id))
|
|
35
|
+
throw new Error('PAGE_COMPONENT_IDENTITY_INVALID');
|
|
36
|
+
ids.add(node.id);
|
|
37
|
+
const declaration = pageComponentDependencies(node.type);
|
|
38
|
+
if (!declaration)
|
|
39
|
+
throw new Error(`PAGE_COMPONENT_DEPENDENCIES_UNREGISTERED: ${node.type}`);
|
|
40
|
+
if (!node.config || typeof node.config !== 'object' || Array.isArray(node.config)
|
|
41
|
+
|| !node.references || typeof node.references !== 'object' || Array.isArray(node.references)
|
|
42
|
+
|| Object.keys(node).some(key => !['id', 'type', 'config', 'references', 'children'].includes(key)))
|
|
43
|
+
throw new Error('PAGE_COMPONENT_TRANSFER_INVALID');
|
|
44
|
+
for (const key of ['reportDefinitionId', 'dashboardId', 'visibleToRoleIds']) {
|
|
45
|
+
if (Object.prototype.hasOwnProperty.call(node.config, key))
|
|
46
|
+
throw new Error('PAGE_COMPONENT_RAW_REFERENCE_FORBIDDEN');
|
|
47
|
+
}
|
|
48
|
+
for (const [key, reference] of Object.entries(node.references)) {
|
|
49
|
+
const kind = Object.prototype.hasOwnProperty.call(declaration.resources, key) ? declaration.resources[key] : undefined;
|
|
50
|
+
if (!kind)
|
|
51
|
+
throw new Error('PAGE_COMPONENT_REFERENCE_UNDECLARED');
|
|
52
|
+
if (kind === 'role') {
|
|
53
|
+
if (reference === null)
|
|
54
|
+
continue;
|
|
55
|
+
if (!Array.isArray(reference) || reference.some(name => typeof name !== 'string' || !name.trim())
|
|
56
|
+
|| new Set(reference).size !== reference.length)
|
|
57
|
+
throw new Error('PAGE_COMPONENT_ROLE_REFERENCES_INVALID');
|
|
58
|
+
}
|
|
59
|
+
else if (reference !== null && typeof reference !== 'string')
|
|
60
|
+
throw new Error('PAGE_COMPONENT_REFERENCE_INVALID');
|
|
61
|
+
}
|
|
62
|
+
if (node.children !== undefined)
|
|
63
|
+
assertPortablePageComponents(node.children, depth + 1, ids);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=pageComponents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pageComponents.js","sourceRoot":"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C,CAAC;YAClE,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;gBACpB,IAAI,SAAS,KAAK,IAAI;oBAAE,SAAS;gBACjC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,IAAI,KAAK,QAAQ,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;uBAC5F,IAAI,GAAG,CAAC,SAAS,CAAC,CAAC,IAAI,KAAK,SAAS,CAAC,MAAM;oBAAE,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;YAC/G,CAAC;iBAAM,IAAI,SAAS,KAAK,IAAI,IAAI,OAAO,SAAS,KAAK,QAAQ;gBAAE,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;QACtH,CAAC;QACD,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS;YAAE,4BAA4B,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC;IAC/F,CAAC;AACH,CAAC"}
|
package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/recordTypeSemantics.d.ts
CHANGED
|
@@ -18,6 +18,5 @@ export interface RecordTypeField {
|
|
|
18
18
|
}
|
|
19
19
|
export declare function recordTypeAllowedValues(fieldId: string, semantics?: RecordTypeSemantics | null): string[] | undefined;
|
|
20
20
|
export declare function applyRecordTypeFieldOptions<T extends RecordTypeField>(fields: T[], semantics?: RecordTypeSemantics | null): T[];
|
|
21
|
-
/** Returns a stable diagnostic; config validation is owned by the backend. */
|
|
22
21
|
export declare function recordTypeConfigurationError(fields: RecordTypeField[], semantics: RecordTypeSemantics): string | undefined;
|
|
23
22
|
export declare function invalidRecordTypeFields(fields: RecordTypeField[], semantics: RecordTypeSemantics | null | undefined, data: Record<string, unknown>, existing?: Record<string, unknown>): string[];
|
package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/recordTypeSemantics.js
CHANGED
|
@@ -28,6 +28,14 @@ function applyRecordTypeFieldOptions(fields, semantics) {
|
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
/** Returns a stable diagnostic; config validation is owned by the backend. */
|
|
31
|
+
function hasConfiguredPicklistValue(options, value) {
|
|
32
|
+
// Read the existing supported storage shapes; do not rewrite persisted metadata or invent options.
|
|
33
|
+
const entries = Array.isArray(options) ? options
|
|
34
|
+
: options && typeof options === 'object' && Array.isArray(options.values)
|
|
35
|
+
? options.values : undefined;
|
|
36
|
+
return entries?.some(option => typeof option === 'string' ? option === value
|
|
37
|
+
: option && typeof option === 'object' && option.value === value) ?? false;
|
|
38
|
+
}
|
|
31
39
|
function recordTypeConfigurationError(fields, semantics) {
|
|
32
40
|
const subsets = semantics.picklistValues;
|
|
33
41
|
if (subsets !== undefined && subsets !== null) {
|
|
@@ -40,7 +48,7 @@ function recordTypeConfigurationError(fields, semantics) {
|
|
|
40
48
|
if (!Array.isArray(values) || values.some(value => typeof value !== 'string') ||
|
|
41
49
|
new Set(values).size !== values.length)
|
|
42
50
|
return 'INVALID_SUBSET_VALUES';
|
|
43
|
-
if (values.some(value => !field.options
|
|
51
|
+
if (values.some(value => !hasConfiguredPicklistValue(field.options, value)))
|
|
44
52
|
return 'UNKNOWN_SUBSET_VALUE';
|
|
45
53
|
if (semantics.businessProcess?.lifecycleFieldMetadataId === id)
|
|
46
54
|
return 'PROCESS_FIELD_SUBSET_CONFLICT';
|
|
@@ -55,7 +63,7 @@ function recordTypeConfigurationError(fields, semantics) {
|
|
|
55
63
|
process.values.some(value => typeof value !== 'string') ||
|
|
56
64
|
new Set(process.values).size !== process.values.length)
|
|
57
65
|
return 'INVALID_PROCESS_VALUES';
|
|
58
|
-
if (process.values.some(value => !field.options
|
|
66
|
+
if (process.values.some(value => !hasConfiguredPicklistValue(field.options, value)))
|
|
59
67
|
return 'UNKNOWN_PROCESS_VALUE';
|
|
60
68
|
}
|
|
61
69
|
return undefined;
|
package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/record-home/recordTypeSemantics.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recordTypeSemantics.js","sourceRoot":"","sources":["../../src/record-home/recordTypeSemantics.ts"],"names":[],"mappings":";;AAkBA,0DAWC;AAED,kEAcC;
|
|
1
|
+
{"version":3,"file":"recordTypeSemantics.js","sourceRoot":"","sources":["../../src/record-home/recordTypeSemantics.ts"],"names":[],"mappings":";;AAkBA,0DAWC;AAED,kEAcC;AAYD,oEA0BC;AAED,0DAgBC;AAnFD,SAAgB,uBAAuB,CACrC,OAAe,EACf,SAAsC;IAEtC,IAAI,SAAS,EAAE,eAAe,EAAE,wBAAwB,KAAK,OAAO,EAAE,CAAC;QACrE,OAAO,SAAS,CAAC,eAAe,CAAC,MAAM,CAAC;IAC1C,CAAC;IACD,MAAM,OAAO,GAAG,SAAS,EAAE,cAAc,CAAC;IAC1C,OAAO,OAAO,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC;QACtE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;QAClB,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC;AAED,SAAgB,2BAA2B,CACzC,MAAW,EACX,SAAsC;IAEtC,IAAI,CAAC,SAAS;QAAE,OAAO,MAAM,CAAC;IAC9B,OAAO,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;QACxB,MAAM,OAAO,GAAG,uBAAuB,CAAC,KAAK,CAAC,EAAE,EAAE,SAAS,CAAC,CAAC;QAC7D,IAAI,OAAO,KAAK,SAAS;YAAE,OAAO,KAAK,CAAC;QACxC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YACtC,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,KA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AAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;IAClF,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAC9B,CAAC"}
|
|
@@ -11,6 +11,10 @@ export interface RecordTypeCreatePermission {
|
|
|
11
11
|
canCreate: boolean;
|
|
12
12
|
isDefault: boolean;
|
|
13
13
|
}
|
|
14
|
+
/** Resolve new/change entry preselection within the active, permitted options. Clones bind the exact source type separately. */
|
|
15
|
+
export declare function resolveRecordTypeEntryInitialId(options: ReadonlyArray<{
|
|
16
|
+
id: string;
|
|
17
|
+
}>, sourceTypeId?: unknown, defaultId?: string): string | undefined;
|
|
14
18
|
export declare const resolveCreateRecordTypeOptions: ({ objectMetadataId, recordTypes, permissions, }: {
|
|
15
19
|
objectMetadataId?: string;
|
|
16
20
|
recordTypes: RecordTypeOptionSource[];
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveCreateRecordTypeOptions = void 0;
|
|
4
|
+
exports.resolveRecordTypeEntryInitialId = resolveRecordTypeEntryInitialId;
|
|
5
|
+
/** Resolve new/change entry preselection within the active, permitted options. Clones bind the exact source type separately. */
|
|
6
|
+
function resolveRecordTypeEntryInitialId(options, sourceTypeId, defaultId) {
|
|
7
|
+
return options.find(option => option.id === sourceTypeId)?.id
|
|
8
|
+
?? options.find(option => option.id === defaultId)?.id
|
|
9
|
+
?? options[0]?.id;
|
|
10
|
+
}
|
|
4
11
|
const resolveCreateRecordTypeOptions = ({ objectMetadataId, recordTypes, permissions, }) => {
|
|
5
12
|
if (!objectMetadataId)
|
|
6
13
|
return { options: [] };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recordTypes.js","sourceRoot":"","sources":["../../src/record-home/recordTypes.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"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;IACxD,MAAM,SAAS,GACb,WAAW,CAAC,IAAI,CACd,CAAC,UAAU,EAAE,EAAE,CACb,UAAU,CAAC,gBAAgB,KAAK,gBAAgB;QAChD,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,GAAG,CAAC,UAAU,CAAC,YAAY,CAAC,CAC1C,EAAE,YAAY;QACf,WAAW,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,SAAS,IAAI,UAAU,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE;QAC3F,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IAEjB,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;AAChC,CAAC,CAAC;AA9BW,QAAA,8BAA8B,kCA8BzC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Stable names for the versioned, allowlisted Scratch Org definition contract. */
|
|
2
|
+
export declare const SCRATCH_DEFINITION_VERSION_V1 = "nexusclaw.scratch-org/v1";
|
|
3
|
+
export declare const SCRATCH_DEFINITION_VERSION_V2 = "nexusclaw.scratch-org/v2";
|
|
4
|
+
export declare const SCRATCH_DEFINITION_VERSION_V3 = "nexusclaw.scratch-org/v3";
|
|
5
|
+
export declare const SCRATCH_DEFINITION_VERSION = "nexusclaw.scratch-org/v3";
|
|
6
|
+
export declare const SUPPORTED_SCRATCH_DEFINITION_VERSIONS: readonly ["nexusclaw.scratch-org/v1", "nexusclaw.scratch-org/v2", "nexusclaw.scratch-org/v3"];
|
|
7
|
+
/** Editions supported without a separate Partner Program entitlement source. */
|
|
8
|
+
export declare const SCRATCH_ORG_EDITIONS: readonly ["Developer", "Enterprise", "Group", "Professional"];
|
|
9
|
+
export type ScratchOrgEdition = (typeof SCRATCH_ORG_EDITIONS)[number];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SCRATCH_ORG_EDITIONS = exports.SUPPORTED_SCRATCH_DEFINITION_VERSIONS = exports.SCRATCH_DEFINITION_VERSION = exports.SCRATCH_DEFINITION_VERSION_V3 = exports.SCRATCH_DEFINITION_VERSION_V2 = exports.SCRATCH_DEFINITION_VERSION_V1 = void 0;
|
|
4
|
+
/** Stable names for the versioned, allowlisted Scratch Org definition contract. */
|
|
5
|
+
exports.SCRATCH_DEFINITION_VERSION_V1 = 'nexusclaw.scratch-org/v1';
|
|
6
|
+
exports.SCRATCH_DEFINITION_VERSION_V2 = 'nexusclaw.scratch-org/v2';
|
|
7
|
+
exports.SCRATCH_DEFINITION_VERSION_V3 = 'nexusclaw.scratch-org/v3';
|
|
8
|
+
exports.SCRATCH_DEFINITION_VERSION = exports.SCRATCH_DEFINITION_VERSION_V3;
|
|
9
|
+
exports.SUPPORTED_SCRATCH_DEFINITION_VERSIONS = [
|
|
10
|
+
exports.SCRATCH_DEFINITION_VERSION_V1,
|
|
11
|
+
exports.SCRATCH_DEFINITION_VERSION_V2,
|
|
12
|
+
exports.SCRATCH_DEFINITION_VERSION_V3,
|
|
13
|
+
];
|
|
14
|
+
/** Editions supported without a separate Partner Program entitlement source. */
|
|
15
|
+
exports.SCRATCH_ORG_EDITIONS = [
|
|
16
|
+
'Developer',
|
|
17
|
+
'Enterprise',
|
|
18
|
+
'Group',
|
|
19
|
+
'Professional',
|
|
20
|
+
];
|
|
21
|
+
//# sourceMappingURL=scratch-org-definition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scratch-org-definition.js","sourceRoot":"","sources":["../src/scratch-org-definition.ts"],"names":[],"mappings":";;;AAAA,mFAAmF;AACtE,QAAA,6BAA6B,GAAG,0BAA0B,CAAC;AAC3D,QAAA,6BAA6B,GAAG,0BAA0B,CAAC;AAC3D,QAAA,6BAA6B,GAAG,0BAA0B,CAAC;AAC3D,QAAA,0BAA0B,GAAG,qCAA6B,CAAC;AAC3D,QAAA,qCAAqC,GAAG;IACnD,qCAA6B;IAC7B,qCAA6B;IAC7B,qCAA6B;CACrB,CAAC;AAEX,gFAAgF;AACnE,QAAA,oBAAoB,GAAG;IAClC,WAAW;IACX,YAAY;IACZ,OAAO;IACP,cAAc;CACN,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { type Sha256Digest } from '../agent-executable-assets';
|
|
2
|
+
import { type WorkspaceMetadataApprovalSubjectV1 } from './index';
|
|
3
|
+
export interface WorkspaceMetadataIsolationScopeV1 {
|
|
4
|
+
domain: 'workspace-metadata';
|
|
5
|
+
workspaceId: string;
|
|
6
|
+
candidateId: string;
|
|
7
|
+
sourceLockDigest: Sha256Digest;
|
|
8
|
+
stageReceiptDigest: Sha256Digest;
|
|
9
|
+
materializedRevisionDigest: Sha256Digest;
|
|
10
|
+
seedPlanDigest: Sha256Digest;
|
|
11
|
+
suiteDigest: Sha256Digest;
|
|
12
|
+
}
|
|
13
|
+
export interface WorkspaceMetadataLeaseV1 {
|
|
14
|
+
schemaVersion: 'nexusclaw.workspace-metadata-lease/v1';
|
|
15
|
+
authorizationId: string;
|
|
16
|
+
authorizationGeneration: string;
|
|
17
|
+
authorizationDigest: Sha256Digest;
|
|
18
|
+
sourceWorkspaceId: string;
|
|
19
|
+
executionWorkspaceId: string;
|
|
20
|
+
scope: WorkspaceMetadataIsolationScopeV1;
|
|
21
|
+
evidenceRunId: string;
|
|
22
|
+
callerId: string;
|
|
23
|
+
issuedAt: string;
|
|
24
|
+
expiresAt: string;
|
|
25
|
+
}
|
|
26
|
+
export interface WorkspaceMetadataIsolationV1 {
|
|
27
|
+
schemaVersion: 'nexusclaw.workspace-metadata-isolation/v1';
|
|
28
|
+
bindingId: string;
|
|
29
|
+
leaseId: string;
|
|
30
|
+
leaseDigest: Sha256Digest;
|
|
31
|
+
sourceWorkspaceId: string;
|
|
32
|
+
executionWorkspaceId: string;
|
|
33
|
+
scope: WorkspaceMetadataIsolationScopeV1;
|
|
34
|
+
principal: {
|
|
35
|
+
kind: 'authenticated_human';
|
|
36
|
+
userId: string;
|
|
37
|
+
roleId: string;
|
|
38
|
+
orgNodeId: string | null;
|
|
39
|
+
};
|
|
40
|
+
suites: Array<{
|
|
41
|
+
id: string;
|
|
42
|
+
kind: 'metadata' | 'permission' | 'mutation' | 'compensation';
|
|
43
|
+
}>;
|
|
44
|
+
issuedBy: string;
|
|
45
|
+
issuedAt: string;
|
|
46
|
+
expiresAt: string;
|
|
47
|
+
}
|
|
48
|
+
export declare function assertWorkspaceMetadataIsolationScope(value: unknown): asserts value is WorkspaceMetadataIsolationScopeV1;
|
|
49
|
+
export declare function assertWorkspaceMetadataLease(value: unknown): asserts value is WorkspaceMetadataLeaseV1;
|
|
50
|
+
export declare function assertWorkspaceMetadataIsolation(value: unknown): asserts value is WorkspaceMetadataIsolationV1;
|
|
51
|
+
export declare function workspaceMetadataGovernanceDigest(value: unknown): Sha256Digest;
|
|
52
|
+
export declare function workspaceMetadataApprovalSubject(scope: WorkspaceMetadataIsolationScopeV1, policyDigest: Sha256Digest): WorkspaceMetadataApprovalSubjectV1;
|
|
53
|
+
/** Exact immutable aggregate preimage; private values and DB-generated time are excluded. */
|
|
54
|
+
export interface WorkspaceMetadataEvidenceContentV1 {
|
|
55
|
+
workspaceId: string;
|
|
56
|
+
candidateId: string;
|
|
57
|
+
sourceLockDigest: Sha256Digest;
|
|
58
|
+
stageReceiptDigest: Sha256Digest;
|
|
59
|
+
materializedRevisionDigest: Sha256Digest;
|
|
60
|
+
seedPlanDigest: Sha256Digest;
|
|
61
|
+
isolationBindingId: string;
|
|
62
|
+
isolationDigest: Sha256Digest;
|
|
63
|
+
suiteDigest: Sha256Digest;
|
|
64
|
+
policyDigest: Sha256Digest;
|
|
65
|
+
approvalSubjectDigest: Sha256Digest;
|
|
66
|
+
result: 'passed' | 'failed';
|
|
67
|
+
rawEvidenceRefs: Array<{
|
|
68
|
+
id: string;
|
|
69
|
+
digest: Sha256Digest;
|
|
70
|
+
}>;
|
|
71
|
+
createdBy: string;
|
|
72
|
+
}
|
|
73
|
+
export declare function workspaceMetadataEvidenceDigest(value: WorkspaceMetadataEvidenceContentV1): Sha256Digest;
|
package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/workspace-metadata-package/governance.js
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assertWorkspaceMetadataIsolationScope = assertWorkspaceMetadataIsolationScope;
|
|
4
|
+
exports.assertWorkspaceMetadataLease = assertWorkspaceMetadataLease;
|
|
5
|
+
exports.assertWorkspaceMetadataIsolation = assertWorkspaceMetadataIsolation;
|
|
6
|
+
exports.workspaceMetadataGovernanceDigest = workspaceMetadataGovernanceDigest;
|
|
7
|
+
exports.workspaceMetadataApprovalSubject = workspaceMetadataApprovalSubject;
|
|
8
|
+
exports.workspaceMetadataEvidenceDigest = workspaceMetadataEvidenceDigest;
|
|
9
|
+
const agent_executable_assets_1 = require("../agent-executable-assets");
|
|
10
|
+
const index_1 = require("./index");
|
|
11
|
+
const UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
|
|
12
|
+
const DIGEST = /^sha256:[0-9a-f]{64}$/;
|
|
13
|
+
function requireValue(condition) {
|
|
14
|
+
if (!condition)
|
|
15
|
+
throw new Error('WORKSPACE_METADATA_GOVERNANCE_CONTRACT_INVALID');
|
|
16
|
+
}
|
|
17
|
+
function exact(value, keys) {
|
|
18
|
+
requireValue(value && typeof value === 'object' && !Array.isArray(value));
|
|
19
|
+
const names = Object.keys(value);
|
|
20
|
+
requireValue(names.length === keys.length && names.every(key => keys.includes(key)));
|
|
21
|
+
}
|
|
22
|
+
function assertWorkspaceMetadataIsolationScope(value) {
|
|
23
|
+
exact(value, ['domain', 'workspaceId', 'candidateId', 'sourceLockDigest', 'stageReceiptDigest', 'materializedRevisionDigest', 'seedPlanDigest', 'suiteDigest']);
|
|
24
|
+
requireValue(value.domain === 'workspace-metadata' && UUID.test(String(value.workspaceId)) && UUID.test(String(value.candidateId)));
|
|
25
|
+
for (const key of ['sourceLockDigest', 'stageReceiptDigest', 'materializedRevisionDigest', 'seedPlanDigest', 'suiteDigest'])
|
|
26
|
+
requireValue(DIGEST.test(String(value[key])));
|
|
27
|
+
}
|
|
28
|
+
function window(issuedAt, expiresAt) {
|
|
29
|
+
requireValue(typeof issuedAt === 'string' && typeof expiresAt === 'string');
|
|
30
|
+
const start = Date.parse(issuedAt);
|
|
31
|
+
const end = Date.parse(expiresAt);
|
|
32
|
+
requireValue(Number.isFinite(start) && Number.isFinite(end) && end > start && end <= start + 7200000);
|
|
33
|
+
requireValue(new Date(start).toISOString() === issuedAt && new Date(end).toISOString() === expiresAt);
|
|
34
|
+
}
|
|
35
|
+
function assertWorkspaceMetadataLease(value) {
|
|
36
|
+
exact(value, ['schemaVersion', 'authorizationId', 'authorizationGeneration', 'authorizationDigest', 'sourceWorkspaceId', 'executionWorkspaceId', 'scope', 'evidenceRunId', 'callerId', 'issuedAt', 'expiresAt']);
|
|
37
|
+
requireValue(value.schemaVersion === 'nexusclaw.workspace-metadata-lease/v1');
|
|
38
|
+
assertWorkspaceMetadataIsolationScope(value.scope);
|
|
39
|
+
(0, index_1.assertWorkspaceMetadataGeneration)(value.authorizationGeneration);
|
|
40
|
+
requireValue(value.authorizationGeneration !== '0' && value.scope.workspaceId === value.sourceWorkspaceId && value.sourceWorkspaceId !== value.executionWorkspaceId);
|
|
41
|
+
for (const key of ['authorizationId', 'sourceWorkspaceId', 'executionWorkspaceId', 'evidenceRunId', 'callerId'])
|
|
42
|
+
requireValue(UUID.test(String(value[key])));
|
|
43
|
+
requireValue(DIGEST.test(String(value.authorizationDigest)));
|
|
44
|
+
window(value.issuedAt, value.expiresAt);
|
|
45
|
+
}
|
|
46
|
+
function assertWorkspaceMetadataIsolation(value) {
|
|
47
|
+
exact(value, ['schemaVersion', 'bindingId', 'leaseId', 'leaseDigest', 'sourceWorkspaceId', 'executionWorkspaceId', 'scope', 'principal', 'suites', 'issuedBy', 'issuedAt', 'expiresAt']);
|
|
48
|
+
requireValue(value.schemaVersion === 'nexusclaw.workspace-metadata-isolation/v1');
|
|
49
|
+
assertWorkspaceMetadataIsolationScope(value.scope);
|
|
50
|
+
requireValue(value.scope.workspaceId === value.sourceWorkspaceId && value.sourceWorkspaceId !== value.executionWorkspaceId);
|
|
51
|
+
for (const key of ['bindingId', 'leaseId', 'sourceWorkspaceId', 'executionWorkspaceId', 'issuedBy'])
|
|
52
|
+
requireValue(UUID.test(String(value[key])));
|
|
53
|
+
requireValue(DIGEST.test(String(value.leaseDigest)));
|
|
54
|
+
window(value.issuedAt, value.expiresAt);
|
|
55
|
+
exact(value.principal, ['kind', 'userId', 'roleId', 'orgNodeId']);
|
|
56
|
+
requireValue(value.principal.kind === 'authenticated_human' && value.principal.userId === value.issuedBy);
|
|
57
|
+
requireValue(UUID.test(String(value.principal.userId)) && UUID.test(String(value.principal.roleId)));
|
|
58
|
+
requireValue(value.principal.orgNodeId === null || UUID.test(String(value.principal.orgNodeId)));
|
|
59
|
+
requireValue(Array.isArray(value.suites) && value.suites.length > 0 && value.suites.length <= 10000);
|
|
60
|
+
const ids = [];
|
|
61
|
+
for (const item of value.suites) {
|
|
62
|
+
exact(item, ['id', 'kind']);
|
|
63
|
+
requireValue(typeof item.id === 'string' && item.id.length > 0 && item.id.length <= 160);
|
|
64
|
+
requireValue(['metadata', 'permission', 'mutation', 'compensation'].includes(String(item.kind)));
|
|
65
|
+
ids.push(item.id);
|
|
66
|
+
}
|
|
67
|
+
requireValue(new Set(ids).size === ids.length && ids.every((id, index) => index === 0 || ids[index - 1] < id));
|
|
68
|
+
requireValue((0, agent_executable_assets_1.canonicalJsonDigest)(value.suites) === value.scope.suiteDigest);
|
|
69
|
+
}
|
|
70
|
+
function workspaceMetadataGovernanceDigest(value) {
|
|
71
|
+
requireValue((0, agent_executable_assets_1.isJsonValue)(value));
|
|
72
|
+
return (0, agent_executable_assets_1.canonicalJsonDigest)(value);
|
|
73
|
+
}
|
|
74
|
+
function workspaceMetadataApprovalSubject(scope, policyDigest) {
|
|
75
|
+
assertWorkspaceMetadataIsolationScope(scope);
|
|
76
|
+
requireValue(DIGEST.test(policyDigest));
|
|
77
|
+
const { domain, workspaceId, candidateId, sourceLockDigest, stageReceiptDigest, materializedRevisionDigest, seedPlanDigest } = scope;
|
|
78
|
+
return { domain, workspaceId, candidateId, sourceLockDigest, stageReceiptDigest, materializedRevisionDigest, seedPlanDigest, policyDigest };
|
|
79
|
+
}
|
|
80
|
+
function workspaceMetadataEvidenceDigest(value) {
|
|
81
|
+
exact(value, ['workspaceId', 'candidateId', 'sourceLockDigest', 'stageReceiptDigest', 'materializedRevisionDigest', 'seedPlanDigest',
|
|
82
|
+
'isolationBindingId', 'isolationDigest', 'suiteDigest', 'policyDigest', 'approvalSubjectDigest', 'result', 'rawEvidenceRefs', 'createdBy']);
|
|
83
|
+
for (const key of ['workspaceId', 'candidateId', 'isolationBindingId', 'createdBy'])
|
|
84
|
+
requireValue(UUID.test(String(value[key])));
|
|
85
|
+
for (const key of ['sourceLockDigest', 'stageReceiptDigest', 'materializedRevisionDigest', 'seedPlanDigest', 'isolationDigest', 'suiteDigest', 'policyDigest', 'approvalSubjectDigest'])
|
|
86
|
+
requireValue(DIGEST.test(String(value[key])));
|
|
87
|
+
requireValue(['passed', 'failed'].includes(value.result) && Array.isArray(value.rawEvidenceRefs) && value.rawEvidenceRefs.length > 0);
|
|
88
|
+
let previous = '';
|
|
89
|
+
for (const ref of value.rawEvidenceRefs) {
|
|
90
|
+
exact(ref, ['id', 'digest']);
|
|
91
|
+
requireValue(UUID.test(ref.id) && DIGEST.test(ref.digest) && ref.id > previous);
|
|
92
|
+
previous = ref.id;
|
|
93
|
+
}
|
|
94
|
+
return workspaceMetadataGovernanceDigest(value);
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=governance.js.map
|