@acorex/platform 0.0.0-ACOREX
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/README.md +7 -0
- package/auth/README.md +3 -0
- package/common/README.md +3 -0
- package/core/README.md +4 -0
- package/fesm2022/acorex-platform-auth.mjs +1362 -0
- package/fesm2022/acorex-platform-auth.mjs.map +1 -0
- package/fesm2022/acorex-platform-common-common-settings.provider-G9XcXXOG.mjs +127 -0
- package/fesm2022/acorex-platform-common-common-settings.provider-G9XcXXOG.mjs.map +1 -0
- package/fesm2022/acorex-platform-common.mjs +4601 -0
- package/fesm2022/acorex-platform-common.mjs.map +1 -0
- package/fesm2022/acorex-platform-core.mjs +4374 -0
- package/fesm2022/acorex-platform-core.mjs.map +1 -0
- package/fesm2022/acorex-platform-domain.mjs +3234 -0
- package/fesm2022/acorex-platform-domain.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-builder.mjs +2847 -0
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-components-binding-expression-editor-popup.component-CXEdvDTf.mjs +121 -0
- package/fesm2022/acorex-platform-layout-components-binding-expression-editor-popup.component-CXEdvDTf.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-components.mjs +8583 -0
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-designer.mjs +2474 -0
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-entity.mjs +19150 -0
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-views.mjs +1468 -0
- package/fesm2022/acorex-platform-layout-views.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-widget-core.mjs +2950 -0
- package/fesm2022/acorex-platform-layout-widget-core.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-widgets-button-widget-designer.component-Dy7jF-oD.mjs +72 -0
- package/fesm2022/acorex-platform-layout-widgets-button-widget-designer.component-Dy7jF-oD.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-widgets-file-list-popup.component-9uCkMxcc.mjs +158 -0
- package/fesm2022/acorex-platform-layout-widgets-file-list-popup.component-9uCkMxcc.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-widgets-image-preview.popup-C_EPAvCU.mjs +29 -0
- package/fesm2022/acorex-platform-layout-widgets-image-preview.popup-C_EPAvCU.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-widgets-page-widget-designer.component-D10yO28c.mjs +172 -0
- package/fesm2022/acorex-platform-layout-widgets-page-widget-designer.component-D10yO28c.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-widgets-repeater-widget-column.component-BGQqY5Mw.mjs +111 -0
- package/fesm2022/acorex-platform-layout-widgets-repeater-widget-column.component-BGQqY5Mw.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-widgets-tabular-data-edit-popup.component-DmzNTYiS.mjs +274 -0
- package/fesm2022/acorex-platform-layout-widgets-tabular-data-edit-popup.component-DmzNTYiS.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-widgets-tabular-data-view-popup.component-BNG_588B.mjs +64 -0
- package/fesm2022/acorex-platform-layout-widgets-tabular-data-view-popup.component-BNG_588B.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-widgets-text-block-widget-designer.component-Vo4fWHtX.mjs +34 -0
- package/fesm2022/acorex-platform-layout-widgets-text-block-widget-designer.component-Vo4fWHtX.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-widgets.mjs +29791 -0
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -0
- package/fesm2022/acorex-platform-native.mjs +155 -0
- package/fesm2022/acorex-platform-native.mjs.map +1 -0
- package/fesm2022/acorex-platform-runtime-catalog-command-definition.mjs +20 -0
- package/fesm2022/acorex-platform-runtime-catalog-command-definition.mjs.map +1 -0
- package/fesm2022/acorex-platform-runtime-catalog-query-definition.mjs +20 -0
- package/fesm2022/acorex-platform-runtime-catalog-query-definition.mjs.map +1 -0
- package/fesm2022/acorex-platform-runtime.mjs +899 -0
- package/fesm2022/acorex-platform-runtime.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-Cvvr4HnL.mjs +160 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-Cvvr4HnL.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-TYoLN1Jq.mjs +120 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-TYoLN1Jq.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-C2z5Lq9y.mjs +237 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-C2z5Lq9y.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-error-401.component-C7EYJzSr.mjs +31 -0
- package/fesm2022/acorex-platform-themes-default-error-401.component-C7EYJzSr.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-error-404.component-7MVLMwIa.mjs +25 -0
- package/fesm2022/acorex-platform-themes-default-error-404.component-7MVLMwIa.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-error-offline.component-DR6G8gPC.mjs +19 -0
- package/fesm2022/acorex-platform-themes-default-error-offline.component-DR6G8gPC.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +2589 -0
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-shared-icon-chooser-column.component-CqkWJYdv.mjs +55 -0
- package/fesm2022/acorex-platform-themes-shared-icon-chooser-column.component-CqkWJYdv.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-shared-icon-chooser-view.component-BOTuLdWN.mjs +57 -0
- package/fesm2022/acorex-platform-themes-shared-icon-chooser-view.component-BOTuLdWN.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-shared-settings.provider-DSs1o1M6.mjs +168 -0
- package/fesm2022/acorex-platform-themes-shared-settings.provider-DSs1o1M6.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-CHfrTtol.mjs +65 -0
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-CHfrTtol.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-view.component-BSmvnUVq.mjs +64 -0
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-view.component-BSmvnUVq.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-shared.mjs +2125 -0
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -0
- package/fesm2022/acorex-platform-workflow.mjs +2501 -0
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -0
- package/fesm2022/acorex-platform.mjs +6 -0
- package/fesm2022/acorex-platform.mjs.map +1 -0
- package/layout/builder/README.md +1578 -0
- package/layout/components/README.md +3 -0
- package/layout/designer/README.md +4 -0
- package/layout/entity/README.md +4 -0
- package/layout/views/README.md +3 -0
- package/layout/widget-core/README.md +4 -0
- package/layout/widgets/README.md +3 -0
- package/native/README.md +4 -0
- package/package.json +103 -0
- package/runtime/README.md +3 -0
- package/themes/default/README.md +3 -0
- package/themes/shared/README.md +3 -0
- package/types/acorex-platform-auth.d.ts +680 -0
- package/types/acorex-platform-common.d.ts +2926 -0
- package/types/acorex-platform-core.d.ts +2896 -0
- package/types/acorex-platform-domain.d.ts +2353 -0
- package/types/acorex-platform-layout-builder.d.ts +926 -0
- package/types/acorex-platform-layout-components.d.ts +2903 -0
- package/types/acorex-platform-layout-designer.d.ts +422 -0
- package/types/acorex-platform-layout-entity.d.ts +3189 -0
- package/types/acorex-platform-layout-views.d.ts +667 -0
- package/types/acorex-platform-layout-widget-core.d.ts +1086 -0
- package/types/acorex-platform-layout-widgets.d.ts +5478 -0
- package/types/acorex-platform-native.d.ts +28 -0
- package/types/acorex-platform-runtime-catalog-command-definition.d.ts +137 -0
- package/types/acorex-platform-runtime-catalog-query-definition.d.ts +125 -0
- package/types/acorex-platform-runtime.d.ts +470 -0
- package/types/acorex-platform-themes-default.d.ts +573 -0
- package/types/acorex-platform-themes-shared.d.ts +170 -0
- package/types/acorex-platform-workflow.d.ts +1806 -0
- package/types/acorex-platform.d.ts +2 -0
- package/workflow/README.md +4 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
|
|
3
|
+
declare class AXPNativeModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPNativeModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXPNativeModule, never, never, never>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXPNativeModule>;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare class AXPNativeService {
|
|
10
|
+
private isDark;
|
|
11
|
+
constructor();
|
|
12
|
+
setDarkMode(isDarkMode: boolean): void;
|
|
13
|
+
checkNetworkStatus(): void;
|
|
14
|
+
getCurrentLocation(): void;
|
|
15
|
+
setPreferredLanguage(language: string): void;
|
|
16
|
+
openExternalLink(url: string): void;
|
|
17
|
+
authenticateBiometric(): void;
|
|
18
|
+
selectImageFromGallery(): void;
|
|
19
|
+
selectImageFromCamera(): void;
|
|
20
|
+
selectVideoFromGallery(): void;
|
|
21
|
+
selectVideoFromCamera(): void;
|
|
22
|
+
selectFile(): void;
|
|
23
|
+
sendMessageToFlutter(message: string): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPNativeService, never>;
|
|
25
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPNativeService>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { AXPNativeModule, AXPNativeService };
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared build-time metadata shapes for command and query catalog definitions.
|
|
3
|
+
* Lives under `shared/` so secondary ng-packagr entries under `commands/` or `queries/` share a common `src/lib` compilation root.
|
|
4
|
+
*/
|
|
5
|
+
/** Command metadata validation: rule key + optional rule options only. */
|
|
6
|
+
interface AXPCommandValidationRuleValue {
|
|
7
|
+
rule: string;
|
|
8
|
+
options?: Record<string, unknown>;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Widget/interface reference for a schema property (name + optional widget options).
|
|
12
|
+
*/
|
|
13
|
+
interface AXPCommandInterfaceDefinitionValue {
|
|
14
|
+
name: string;
|
|
15
|
+
options?: Record<string, unknown>;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* One input/output property description (same structural role as AXPPropertyDefinition).
|
|
19
|
+
*/
|
|
20
|
+
interface AXPCommandSchemaPropertyDefinition {
|
|
21
|
+
name: string;
|
|
22
|
+
title: string;
|
|
23
|
+
description?: string;
|
|
24
|
+
icon?: string;
|
|
25
|
+
defaultValue?: unknown;
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
interface: AXPCommandInterfaceDefinitionValue;
|
|
28
|
+
validations?: AXPCommandValidationRuleValue[];
|
|
29
|
+
}
|
|
30
|
+
/** Structured usage hints for planners and assistants (prefer over duplicating rules only in `description`). */
|
|
31
|
+
interface AXPCommandAiUsageMetadata {
|
|
32
|
+
whenToUse?: string[];
|
|
33
|
+
avoidWhen?: string[];
|
|
34
|
+
/** Registry keys or tool names that commonly follow this command/query. */
|
|
35
|
+
followUpTools?: string[];
|
|
36
|
+
}
|
|
37
|
+
/** Declarative contracts: what the tool provides, who depends on it, and guarantees (not workflow `outcomes`). */
|
|
38
|
+
interface AXPCommandAiContractsMetadata {
|
|
39
|
+
provides?: string[];
|
|
40
|
+
requiredBy?: string[];
|
|
41
|
+
guarantees?: string[];
|
|
42
|
+
}
|
|
43
|
+
type AXPCommandAiSafetyKind = 'read-only' | 'mutating';
|
|
44
|
+
interface AXPCommandAiSafetyMetadata {
|
|
45
|
+
kind?: AXPCommandAiSafetyKind;
|
|
46
|
+
sideEffects?: boolean;
|
|
47
|
+
requiresConfirmation?: boolean;
|
|
48
|
+
}
|
|
49
|
+
type AXPCommandAiPerformanceCost = 'low' | 'medium' | 'high';
|
|
50
|
+
interface AXPCommandAiPerformanceMetadata {
|
|
51
|
+
cost?: AXPCommandAiPerformanceCost;
|
|
52
|
+
cacheable?: boolean;
|
|
53
|
+
}
|
|
54
|
+
interface AXPCommandAiNextStepMetadata {
|
|
55
|
+
when: string;
|
|
56
|
+
action: string;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* How to interpret a successful payload for agents (documentation only; not command workflow outcomes).
|
|
60
|
+
*/
|
|
61
|
+
interface AXPCommandAiResultSemanticsMetadata {
|
|
62
|
+
noMatch?: string;
|
|
63
|
+
exactMatch?: string;
|
|
64
|
+
multipleMatches?: string;
|
|
65
|
+
failed?: string;
|
|
66
|
+
/** Full catalog listing (e.g. no entity filter). */
|
|
67
|
+
catalog?: string;
|
|
68
|
+
}
|
|
69
|
+
interface AXPCommandAiMetadata {
|
|
70
|
+
shortDescription?: string;
|
|
71
|
+
tags?: string[];
|
|
72
|
+
usage?: AXPCommandAiUsageMetadata;
|
|
73
|
+
contracts?: AXPCommandAiContractsMetadata;
|
|
74
|
+
safety?: AXPCommandAiSafetyMetadata;
|
|
75
|
+
performance?: AXPCommandAiPerformanceMetadata;
|
|
76
|
+
nextSteps?: AXPCommandAiNextStepMetadata[];
|
|
77
|
+
resultSemantics?: AXPCommandAiResultSemanticsMetadata;
|
|
78
|
+
/**
|
|
79
|
+
* Default input fragment merged for AI/tool invocations (catalog & tooling).
|
|
80
|
+
* Runtime merge for a given command is applied in the AI module (not the generic command executor).
|
|
81
|
+
*/
|
|
82
|
+
toolInputDefaults?: Record<string, unknown>;
|
|
83
|
+
/**
|
|
84
|
+
* Optional JSON Schema fragment for LLM tool `parameters` (OpenAI-style function calling).
|
|
85
|
+
* Merged over the auto-generated schema from catalog `inputs` (`properties` / `required` deep-merged).
|
|
86
|
+
* Use when widget-to-type inference is insufficient (e.g. `object`, `array`, `enum`, `format`).
|
|
87
|
+
*/
|
|
88
|
+
toolParametersSchema?: Record<string, unknown>;
|
|
89
|
+
}
|
|
90
|
+
type AXPCommandExecutionMode = 'frontend' | 'backend' | 'both';
|
|
91
|
+
/**
|
|
92
|
+
* Where this command is intended to appear in product tooling (AI agents, workflow automation pickers, etc.).
|
|
93
|
+
* Omitted = not declared here; runtimes may fall back to other metadata (e.g. `ai.tags`).
|
|
94
|
+
*/
|
|
95
|
+
type AXPCommandCapability = 'ai' | 'workflow';
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Build-time command metadata for AXPCommand implementations.
|
|
99
|
+
* `inputs` / `outputs` are schema rows (same family as entity optionDefinitions).
|
|
100
|
+
* Validation entries: only `rule` name and optional `options` (no title/message on rules).
|
|
101
|
+
* Do not import from Angular templates; sidecars may import `defineCommand` from `@acorex/platform/runtime`.
|
|
102
|
+
*
|
|
103
|
+
* Query metadata (fetch-only, no outcomes) is defined in `../queries/query-definition.types.ts` with `defineQuery`.
|
|
104
|
+
*/
|
|
105
|
+
|
|
106
|
+
type AXPCommandOutcomeDefinition = {
|
|
107
|
+
mode: 'static';
|
|
108
|
+
values: string[];
|
|
109
|
+
} | {
|
|
110
|
+
mode: 'dynamic';
|
|
111
|
+
summary: string;
|
|
112
|
+
derivesFrom: string;
|
|
113
|
+
examples?: string[];
|
|
114
|
+
};
|
|
115
|
+
interface AXPCommandMetadataDefinition {
|
|
116
|
+
/** Runtime registration key (provideCommand / provideCommandSetups). */
|
|
117
|
+
key: string;
|
|
118
|
+
title: string;
|
|
119
|
+
description: string;
|
|
120
|
+
executionMode: AXPCommandExecutionMode;
|
|
121
|
+
/** Input parameters as schema rows. */
|
|
122
|
+
inputs?: AXPCommandSchemaPropertyDefinition[];
|
|
123
|
+
/** Output shape as schema rows. */
|
|
124
|
+
outputs?: AXPCommandSchemaPropertyDefinition[];
|
|
125
|
+
outcomes: AXPCommandOutcomeDefinition;
|
|
126
|
+
ai?: AXPCommandAiMetadata;
|
|
127
|
+
/** Optional list of surfaces that may list or invoke this command as a tool/activity. */
|
|
128
|
+
capabilities?: AXPCommandCapability[];
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Typed identity helper for command metadata sidecars.
|
|
133
|
+
*/
|
|
134
|
+
declare function defineCommand<T extends AXPCommandMetadataDefinition>(definition: T): T;
|
|
135
|
+
|
|
136
|
+
export { defineCommand };
|
|
137
|
+
export type { AXPCommandAiContractsMetadata, AXPCommandAiMetadata, AXPCommandAiNextStepMetadata, AXPCommandAiPerformanceCost, AXPCommandAiPerformanceMetadata, AXPCommandAiResultSemanticsMetadata, AXPCommandAiSafetyKind, AXPCommandAiSafetyMetadata, AXPCommandAiUsageMetadata, AXPCommandCapability, AXPCommandExecutionMode, AXPCommandInterfaceDefinitionValue, AXPCommandMetadataDefinition, AXPCommandOutcomeDefinition, AXPCommandSchemaPropertyDefinition, AXPCommandValidationRuleValue };
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared build-time metadata shapes for command and query catalog definitions.
|
|
3
|
+
* Lives under `shared/` so secondary ng-packagr entries under `commands/` or `queries/` share a common `src/lib` compilation root.
|
|
4
|
+
*/
|
|
5
|
+
/** Command metadata validation: rule key + optional rule options only. */
|
|
6
|
+
interface AXPCommandValidationRuleValue {
|
|
7
|
+
rule: string;
|
|
8
|
+
options?: Record<string, unknown>;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Widget/interface reference for a schema property (name + optional widget options).
|
|
12
|
+
*/
|
|
13
|
+
interface AXPCommandInterfaceDefinitionValue {
|
|
14
|
+
name: string;
|
|
15
|
+
options?: Record<string, unknown>;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* One input/output property description (same structural role as AXPPropertyDefinition).
|
|
19
|
+
*/
|
|
20
|
+
interface AXPCommandSchemaPropertyDefinition {
|
|
21
|
+
name: string;
|
|
22
|
+
title: string;
|
|
23
|
+
description?: string;
|
|
24
|
+
icon?: string;
|
|
25
|
+
defaultValue?: unknown;
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
interface: AXPCommandInterfaceDefinitionValue;
|
|
28
|
+
validations?: AXPCommandValidationRuleValue[];
|
|
29
|
+
}
|
|
30
|
+
/** Structured usage hints for planners and assistants (prefer over duplicating rules only in `description`). */
|
|
31
|
+
interface AXPCommandAiUsageMetadata {
|
|
32
|
+
whenToUse?: string[];
|
|
33
|
+
avoidWhen?: string[];
|
|
34
|
+
/** Registry keys or tool names that commonly follow this command/query. */
|
|
35
|
+
followUpTools?: string[];
|
|
36
|
+
}
|
|
37
|
+
/** Declarative contracts: what the tool provides, who depends on it, and guarantees (not workflow `outcomes`). */
|
|
38
|
+
interface AXPCommandAiContractsMetadata {
|
|
39
|
+
provides?: string[];
|
|
40
|
+
requiredBy?: string[];
|
|
41
|
+
guarantees?: string[];
|
|
42
|
+
}
|
|
43
|
+
type AXPCommandAiSafetyKind = 'read-only' | 'mutating';
|
|
44
|
+
interface AXPCommandAiSafetyMetadata {
|
|
45
|
+
kind?: AXPCommandAiSafetyKind;
|
|
46
|
+
sideEffects?: boolean;
|
|
47
|
+
requiresConfirmation?: boolean;
|
|
48
|
+
}
|
|
49
|
+
type AXPCommandAiPerformanceCost = 'low' | 'medium' | 'high';
|
|
50
|
+
interface AXPCommandAiPerformanceMetadata {
|
|
51
|
+
cost?: AXPCommandAiPerformanceCost;
|
|
52
|
+
cacheable?: boolean;
|
|
53
|
+
}
|
|
54
|
+
interface AXPCommandAiNextStepMetadata {
|
|
55
|
+
when: string;
|
|
56
|
+
action: string;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* How to interpret a successful payload for agents (documentation only; not command workflow outcomes).
|
|
60
|
+
*/
|
|
61
|
+
interface AXPCommandAiResultSemanticsMetadata {
|
|
62
|
+
noMatch?: string;
|
|
63
|
+
exactMatch?: string;
|
|
64
|
+
multipleMatches?: string;
|
|
65
|
+
failed?: string;
|
|
66
|
+
/** Full catalog listing (e.g. no entity filter). */
|
|
67
|
+
catalog?: string;
|
|
68
|
+
}
|
|
69
|
+
interface AXPCommandAiMetadata {
|
|
70
|
+
shortDescription?: string;
|
|
71
|
+
tags?: string[];
|
|
72
|
+
usage?: AXPCommandAiUsageMetadata;
|
|
73
|
+
contracts?: AXPCommandAiContractsMetadata;
|
|
74
|
+
safety?: AXPCommandAiSafetyMetadata;
|
|
75
|
+
performance?: AXPCommandAiPerformanceMetadata;
|
|
76
|
+
nextSteps?: AXPCommandAiNextStepMetadata[];
|
|
77
|
+
resultSemantics?: AXPCommandAiResultSemanticsMetadata;
|
|
78
|
+
/**
|
|
79
|
+
* Default input fragment merged for AI/tool invocations (catalog & tooling).
|
|
80
|
+
* Runtime merge for a given command is applied in the AI module (not the generic command executor).
|
|
81
|
+
*/
|
|
82
|
+
toolInputDefaults?: Record<string, unknown>;
|
|
83
|
+
/**
|
|
84
|
+
* Optional JSON Schema fragment for LLM tool `parameters` (OpenAI-style function calling).
|
|
85
|
+
* Merged over the auto-generated schema from catalog `inputs` (`properties` / `required` deep-merged).
|
|
86
|
+
* Use when widget-to-type inference is insufficient (e.g. `object`, `array`, `enum`, `format`).
|
|
87
|
+
*/
|
|
88
|
+
toolParametersSchema?: Record<string, unknown>;
|
|
89
|
+
}
|
|
90
|
+
type AXPCommandExecutionMode = 'frontend' | 'backend' | 'both';
|
|
91
|
+
/**
|
|
92
|
+
* Where this command is intended to appear in product tooling (AI agents, workflow automation pickers, etc.).
|
|
93
|
+
* Omitted = not declared here; runtimes may fall back to other metadata (e.g. `ai.tags`).
|
|
94
|
+
*/
|
|
95
|
+
type AXPCommandCapability = 'ai' | 'workflow';
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Build-time query metadata for AXPQuery implementations.
|
|
99
|
+
* Mirrors command metadata shape except there are no `outcomes` (queries only `fetch`).
|
|
100
|
+
* `inputs` / `outputs` are schema rows (same family as entity optionDefinitions).
|
|
101
|
+
*/
|
|
102
|
+
|
|
103
|
+
/** One input/output property description for query definitions (same as command schema rows). */
|
|
104
|
+
type AXPQuerySchemaPropertyDefinition = AXPCommandSchemaPropertyDefinition;
|
|
105
|
+
interface AXPQueryMetadataDefinition {
|
|
106
|
+
/** Runtime registration key (provideQuerySetups). */
|
|
107
|
+
key: string;
|
|
108
|
+
title: string;
|
|
109
|
+
description: string;
|
|
110
|
+
executionMode: AXPCommandExecutionMode;
|
|
111
|
+
/** Query input / filter parameters as schema rows. */
|
|
112
|
+
inputs?: AXPQuerySchemaPropertyDefinition[];
|
|
113
|
+
/** Documented result shape as schema rows. */
|
|
114
|
+
outputs?: AXPQuerySchemaPropertyDefinition[];
|
|
115
|
+
ai?: AXPCommandAiMetadata;
|
|
116
|
+
/** Optional list of surfaces that may list or invoke this query as a tool (e.g. AI assistants). */
|
|
117
|
+
capabilities?: AXPCommandCapability[];
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Typed identity helper for query metadata sidecars.
|
|
122
|
+
*/
|
|
123
|
+
declare function defineQuery<T extends AXPQueryMetadataDefinition>(definition: T): T;
|
|
124
|
+
|
|
125
|
+
export { defineQuery };
|