@aexol/spectral 0.9.229 → 0.9.231
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 +2 -0
- package/dist/auth-helper.d.ts.map +1 -1
- package/dist/auth-helper.js +14 -8
- package/dist/commands/login.d.ts +12 -4
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +36 -15
- package/dist/commands/serve.d.ts.map +1 -1
- package/dist/commands/serve.js +3 -0
- package/dist/config.d.ts +15 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +10 -1
- package/dist/designer/data/skills/blog-post.d.ts +3 -0
- package/dist/designer/data/skills/blog-post.d.ts.map +1 -0
- package/dist/designer/data/skills/blog-post.js +84 -0
- package/dist/designer/data/skills/blog-post.ts +87 -0
- package/dist/designer/data/skills/critique.d.ts +3 -0
- package/dist/designer/data/skills/critique.d.ts.map +1 -0
- package/dist/designer/data/skills/critique.js +109 -0
- package/dist/designer/data/skills/critique.ts +112 -0
- package/dist/designer/data/skills/dashboard.d.ts +3 -0
- package/dist/designer/data/skills/dashboard.d.ts.map +1 -0
- package/dist/designer/data/skills/dashboard.js +165 -0
- package/dist/designer/data/skills/dashboard.ts +168 -0
- package/dist/designer/data/skills/design-brief.d.ts +3 -0
- package/dist/designer/data/skills/design-brief.d.ts.map +1 -0
- package/dist/designer/data/skills/design-brief.js +141 -0
- package/dist/designer/data/skills/design-brief.ts +144 -0
- package/dist/designer/data/skills/design-skill.d.ts +10 -0
- package/dist/designer/data/skills/design-skill.d.ts.map +1 -0
- package/dist/designer/data/skills/design-skill.js +1 -0
- package/dist/designer/data/skills/design-skill.ts +9 -0
- package/dist/designer/data/skills/docs-page.d.ts +3 -0
- package/dist/designer/data/skills/docs-page.d.ts.map +1 -0
- package/dist/designer/data/skills/docs-page.js +68 -0
- package/dist/designer/data/skills/docs-page.ts +71 -0
- package/dist/designer/data/skills/index.d.ts +3 -0
- package/dist/designer/data/skills/index.d.ts.map +1 -0
- package/dist/designer/data/skills/index.js +28 -0
- package/dist/designer/data/skills/index.ts +30 -0
- package/dist/designer/data/skills/magazine-poster.d.ts +3 -0
- package/dist/designer/data/skills/magazine-poster.d.ts.map +1 -0
- package/dist/designer/data/skills/magazine-poster.js +70 -0
- package/dist/designer/data/skills/magazine-poster.ts +73 -0
- package/dist/designer/data/skills/mobile-app.d.ts +3 -0
- package/dist/designer/data/skills/mobile-app.d.ts.map +1 -0
- package/dist/designer/data/skills/mobile-app.js +229 -0
- package/dist/designer/data/skills/mobile-app.ts +232 -0
- package/dist/designer/data/skills/motion-frames.d.ts +3 -0
- package/dist/designer/data/skills/motion-frames.d.ts.map +1 -0
- package/dist/designer/data/skills/motion-frames.js +121 -0
- package/dist/designer/data/skills/motion-frames.ts +124 -0
- package/dist/designer/data/skills/pricing-page.d.ts +3 -0
- package/dist/designer/data/skills/pricing-page.d.ts.map +1 -0
- package/dist/designer/data/skills/pricing-page.js +76 -0
- package/dist/designer/data/skills/pricing-page.ts +79 -0
- package/dist/designer/data/skills/saas-landing.d.ts +3 -0
- package/dist/designer/data/skills/saas-landing.d.ts.map +1 -0
- package/dist/designer/data/skills/saas-landing.js +71 -0
- package/dist/designer/data/skills/saas-landing.ts +74 -0
- package/dist/designer/data/skills/slide-deck.d.ts +3 -0
- package/dist/designer/data/skills/slide-deck.d.ts.map +1 -0
- package/dist/designer/data/skills/slide-deck.js +213 -0
- package/dist/designer/data/skills/slide-deck.ts +216 -0
- package/dist/designer/data/skills/social-carousel.d.ts +3 -0
- package/dist/designer/data/skills/social-carousel.d.ts.map +1 -0
- package/dist/designer/data/skills/social-carousel.js +135 -0
- package/dist/designer/data/skills/social-carousel.ts +138 -0
- package/dist/designer/data/skills/web-prototype.d.ts +3 -0
- package/dist/designer/data/skills/web-prototype.d.ts.map +1 -0
- package/dist/designer/data/skills/web-prototype.js +159 -0
- package/dist/designer/data/skills/web-prototype.ts +162 -0
- package/dist/designer/skills.d.ts +4 -10
- package/dist/designer/skills.d.ts.map +1 -1
- package/dist/designer/skills.js +2 -1643
- package/dist/extensions/wizard/index.js +9 -1
- package/dist/generated/parser/ast/nodes.d.ts +115 -0
- package/dist/generated/parser/ast/nodes.d.ts.map +1 -0
- package/dist/generated/parser/ast/nodes.js +8 -0
- package/dist/generated/parser/lexer/lexer.d.ts +28 -0
- package/dist/generated/parser/lexer/lexer.d.ts.map +1 -0
- package/dist/generated/parser/{lexer.js → lexer/lexer.js} +1 -180
- package/dist/generated/parser/{lexer.d.ts → lexer/tokens.d.ts} +5 -24
- package/dist/generated/parser/lexer/tokens.d.ts.map +1 -0
- package/dist/generated/parser/lexer/tokens.js +187 -0
- package/dist/generated/parser/mod.d.ts +5 -7
- package/dist/generated/parser/mod.d.ts.map +1 -1
- package/dist/generated/parser/mod.js +2 -1
- package/dist/generated/parser/parser/cursor.d.ts +47 -0
- package/dist/generated/parser/parser/cursor.d.ts.map +1 -0
- package/dist/generated/parser/parser/cursor.js +12 -0
- package/dist/generated/parser/parser/definitions.d.ts +16 -0
- package/dist/generated/parser/parser/definitions.d.ts.map +1 -0
- package/dist/generated/parser/parser/definitions.js +353 -0
- package/dist/generated/parser/parser/expressions.d.ts +17 -0
- package/dist/generated/parser/parser/expressions.d.ts.map +1 -0
- package/dist/generated/parser/parser/expressions.js +165 -0
- package/dist/generated/parser/parser.d.ts +18 -133
- package/dist/generated/parser/parser.d.ts.map +1 -1
- package/dist/generated/parser/parser.js +9 -505
- package/dist/generated/parser/tokenizer.d.ts +1 -2
- package/dist/generated/parser/tokenizer.d.ts.map +1 -1
- package/dist/generated/parser/tokenizer.js +2 -1
- package/dist/generated/parser/validator.d.ts +1 -1
- package/dist/generated/parser/validator.d.ts.map +1 -1
- package/dist/generated/zeus/const.d.ts.map +1 -1
- package/dist/generated/zeus/const.js +21 -0
- package/dist/generated/zeus/index.d.ts +98 -0
- package/dist/generated/zeus/index.d.ts.map +1 -1
- package/dist/mcp/glimpse-ui.js +9 -1
- package/dist/relay/dispatcher.d.ts +11 -104
- package/dist/relay/dispatcher.d.ts.map +1 -1
- package/dist/relay/dispatcher.js +10 -1130
- package/dist/relay/registration.d.ts +10 -2
- package/dist/relay/registration.d.ts.map +1 -1
- package/dist/relay/registration.js +32 -3
- package/dist/relay/rest.d.ts +31 -0
- package/dist/relay/rest.d.ts.map +1 -0
- package/dist/relay/rest.js +85 -0
- package/dist/relay/routing.d.ts +109 -0
- package/dist/relay/routing.d.ts.map +1 -0
- package/dist/relay/routing.js +669 -0
- package/dist/relay/wizard-login.d.ts +17 -0
- package/dist/relay/wizard-login.d.ts.map +1 -0
- package/dist/relay/wizard-login.js +419 -0
- package/dist/sdk/agent-core/agent-loop.d.ts +2 -9
- package/dist/sdk/agent-core/agent-loop.d.ts.map +1 -1
- package/dist/sdk/agent-core/agent-loop.js +4 -288
- package/dist/sdk/agent-core/tool-execution.d.ts +33 -0
- package/dist/sdk/agent-core/tool-execution.d.ts.map +1 -0
- package/dist/sdk/agent-core/tool-execution.js +300 -0
- package/dist/sdk/ai/env-api-keys.js +9 -1
- package/dist/sdk/ai/providers/openai/reasoning-replay.d.ts +48 -0
- package/dist/sdk/ai/providers/openai/reasoning-replay.d.ts.map +1 -0
- package/dist/sdk/ai/providers/openai/reasoning-replay.js +209 -0
- package/dist/sdk/ai/providers/openai-completions.d.ts.map +1 -1
- package/dist/sdk/ai/providers/openai-completions.js +1 -203
- package/dist/sdk/coding-agent/core/compaction/compaction.d.ts +6 -118
- package/dist/sdk/coding-agent/core/compaction/compaction.d.ts.map +1 -1
- package/dist/sdk/coding-agent/core/compaction/compaction.js +11 -733
- package/dist/sdk/coding-agent/core/compaction/cut-points.d.ts +58 -0
- package/dist/sdk/coding-agent/core/compaction/cut-points.d.ts.map +1 -0
- package/dist/sdk/coding-agent/core/compaction/cut-points.js +191 -0
- package/dist/sdk/coding-agent/core/compaction/dedupe.d.ts +28 -0
- package/dist/sdk/coding-agent/core/compaction/dedupe.d.ts.map +1 -0
- package/dist/sdk/coding-agent/core/compaction/dedupe.js +156 -0
- package/dist/sdk/coding-agent/core/compaction/summarize.d.ts +21 -0
- package/dist/sdk/coding-agent/core/compaction/summarize.d.ts.map +1 -0
- package/dist/sdk/coding-agent/core/compaction/summarize.js +181 -0
- package/dist/sdk/coding-agent/core/compaction/tokens.d.ts +47 -0
- package/dist/sdk/coding-agent/core/compaction/tokens.d.ts.map +1 -0
- package/dist/sdk/coding-agent/core/compaction/tokens.js +224 -0
- package/dist/sdk/coding-agent/core/extensions/session-events.d.ts +157 -0
- package/dist/sdk/coding-agent/core/extensions/session-events.d.ts.map +1 -0
- package/dist/sdk/coding-agent/core/extensions/session-events.js +13 -0
- package/dist/sdk/coding-agent/core/extensions/types.d.ts +6 -365
- package/dist/sdk/coding-agent/core/extensions/types.d.ts.map +1 -1
- package/dist/sdk/coding-agent/core/extensions/types.js +2 -10
- package/dist/sdk/coding-agent/core/extensions/ui-types.d.ts +219 -0
- package/dist/sdk/coding-agent/core/extensions/ui-types.d.ts.map +1 -0
- package/dist/sdk/coding-agent/core/extensions/ui-types.js +4 -0
- package/dist/sdk/coding-agent/core/package/default-package-manager.d.ts +115 -0
- package/dist/sdk/coding-agent/core/package/default-package-manager.d.ts.map +1 -0
- package/dist/sdk/coding-agent/core/package/default-package-manager.js +1184 -0
- package/dist/sdk/coding-agent/core/package/discovery.d.ts +20 -0
- package/dist/sdk/coding-agent/core/package/discovery.d.ts.map +1 -0
- package/dist/sdk/coding-agent/core/package/discovery.js +283 -0
- package/dist/sdk/coding-agent/core/package/ignore.d.ts +29 -0
- package/dist/sdk/coding-agent/core/package/ignore.d.ts.map +1 -0
- package/dist/sdk/coding-agent/core/package/ignore.js +235 -0
- package/dist/sdk/coding-agent/core/package/types.d.ts +128 -0
- package/dist/sdk/coding-agent/core/package/types.d.ts.map +1 -0
- package/dist/sdk/coding-agent/core/package/types.js +18 -0
- package/dist/sdk/coding-agent/core/package/update-check.d.ts +43 -0
- package/dist/sdk/coding-agent/core/package/update-check.d.ts.map +1 -0
- package/dist/sdk/coding-agent/core/package/update-check.js +253 -0
- package/dist/sdk/coding-agent/core/package-manager.d.ts +2 -188
- package/dist/sdk/coding-agent/core/package-manager.d.ts.map +1 -1
- package/dist/sdk/coding-agent/core/package-manager.js +1 -1940
- package/dist/sdk/coding-agent/core/session/migrate.d.ts +18 -0
- package/dist/sdk/coding-agent/core/session/migrate.d.ts.map +1 -0
- package/dist/sdk/coding-agent/core/session/migrate.js +78 -0
- package/dist/sdk/coding-agent/core/session/types.d.ts +165 -0
- package/dist/sdk/coding-agent/core/session/types.d.ts.map +1 -0
- package/dist/sdk/coding-agent/core/session/types.js +4 -0
- package/dist/sdk/coding-agent/core/session-manager.d.ts +3 -161
- package/dist/sdk/coding-agent/core/session-manager.d.ts.map +1 -1
- package/dist/sdk/coding-agent/core/session-manager.js +4 -72
- package/package.json +2 -2
- package/dist/generated/parser/lexer.d.ts.map +0 -1
|
@@ -5,157 +5,42 @@
|
|
|
5
5
|
* Supports the full Aexol language grammar for capability definitions,
|
|
6
6
|
* workflows, and agent structures.
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
line: number;
|
|
14
|
-
column: number;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export interface Program extends ASTNode {
|
|
18
|
-
type: "Program";
|
|
19
|
-
body: (RoleDefinition | VisitorDefinition | WorkflowDefinition | AgentDefinition | TypeDefinition)[];
|
|
20
|
-
}
|
|
21
|
-
export interface VisitorDefinition extends ASTNode {
|
|
22
|
-
type: "VisitorDefinition";
|
|
23
|
-
name?: string;
|
|
24
|
-
description?: string;
|
|
25
|
-
capabilities: CapabilityNode[];
|
|
26
|
-
}
|
|
27
|
-
export interface CapabilityNode extends ASTNode {
|
|
28
|
-
type: "Capability";
|
|
29
|
-
verb?: "can" | "had" | "must" | "should" | "may" | "will" | "shall" | "cannot";
|
|
30
|
-
action: string;
|
|
31
|
-
description?: string;
|
|
32
|
-
context?: string;
|
|
33
|
-
nested?: CapabilityNode[];
|
|
34
|
-
conditions?: ConditionNode[];
|
|
35
|
-
metadata?: Record<string, unknown>;
|
|
36
|
-
}
|
|
37
|
-
export interface ConditionNode extends ASTNode {
|
|
38
|
-
type: "Condition";
|
|
39
|
-
expression: ExpressionNode;
|
|
40
|
-
}
|
|
41
|
-
export interface ExpressionNode extends ASTNode {
|
|
42
|
-
type: "Expression";
|
|
43
|
-
operator?: string;
|
|
44
|
-
left?: ExpressionNode;
|
|
45
|
-
right?: ExpressionNode;
|
|
46
|
-
value?: string | number | boolean;
|
|
47
|
-
}
|
|
48
|
-
export interface RoleDefinition extends ASTNode {
|
|
49
|
-
type: "RoleDefinition";
|
|
50
|
-
name: string;
|
|
51
|
-
description?: string;
|
|
52
|
-
permissions: PermissionNode[];
|
|
53
|
-
inherits?: string[];
|
|
54
|
-
}
|
|
55
|
-
export interface PermissionNode extends ASTNode {
|
|
56
|
-
type: "Permission";
|
|
57
|
-
resource: string;
|
|
58
|
-
description?: string;
|
|
59
|
-
actions: string[];
|
|
60
|
-
conditions?: ConditionNode[];
|
|
61
|
-
}
|
|
62
|
-
export interface WorkflowDefinition extends ASTNode {
|
|
63
|
-
type: "WorkflowDefinition";
|
|
64
|
-
name: string;
|
|
65
|
-
description?: string;
|
|
66
|
-
steps: WorkflowStep[];
|
|
67
|
-
initialState: string;
|
|
68
|
-
finalStates: string[];
|
|
69
|
-
}
|
|
70
|
-
export interface WorkflowStep extends ASTNode {
|
|
71
|
-
type: "WorkflowStep";
|
|
72
|
-
name: string;
|
|
73
|
-
description?: string;
|
|
74
|
-
action: string;
|
|
75
|
-
transitions: Transition[];
|
|
76
|
-
parallel?: boolean;
|
|
77
|
-
}
|
|
78
|
-
export interface Transition extends ASTNode {
|
|
79
|
-
type: "Transition";
|
|
80
|
-
from: string;
|
|
81
|
-
to: string;
|
|
82
|
-
description?: string;
|
|
83
|
-
condition?: ConditionNode;
|
|
84
|
-
metadata?: Record<string, unknown>;
|
|
85
|
-
}
|
|
86
|
-
export interface AgentDefinition extends ASTNode {
|
|
87
|
-
type: "AgentDefinition";
|
|
88
|
-
name: string;
|
|
89
|
-
description?: string;
|
|
90
|
-
agentKind: "domain" | "builder";
|
|
91
|
-
role: string;
|
|
92
|
-
responsibilities: string[];
|
|
93
|
-
workflow?: string;
|
|
94
|
-
capabilities: CapabilityNode[];
|
|
95
|
-
skills?: string[];
|
|
96
|
-
model?: string;
|
|
97
|
-
maxConcurrent?: number;
|
|
98
|
-
}
|
|
99
|
-
export interface TypeDefinition extends ASTNode {
|
|
100
|
-
type: "TypeDefinition";
|
|
101
|
-
name: string;
|
|
102
|
-
description?: string;
|
|
103
|
-
kind: "type" | "enum" | "interface";
|
|
104
|
-
fields?: TypeField[];
|
|
105
|
-
values?: string[];
|
|
106
|
-
extends?: string[];
|
|
107
|
-
}
|
|
108
|
-
export interface TypeField extends ASTNode {
|
|
109
|
-
type: "TypeField";
|
|
110
|
-
name: string;
|
|
111
|
-
description?: string;
|
|
112
|
-
fieldType: string;
|
|
113
|
-
required: boolean;
|
|
114
|
-
default?: string | number | boolean;
|
|
115
|
-
}
|
|
116
|
-
export declare class Parser {
|
|
8
|
+
import { TokenType } from "./lexer/tokens.js";
|
|
9
|
+
import type { Token } from "./lexer/tokens.js";
|
|
10
|
+
import type { CapabilityNode, Program } from "./ast/nodes.js";
|
|
11
|
+
import type { ParserCursor } from "./parser/cursor.js";
|
|
12
|
+
export declare class Parser implements ParserCursor {
|
|
117
13
|
private tokenizer;
|
|
118
|
-
|
|
14
|
+
currentToken: Token;
|
|
119
15
|
constructor(source: string);
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
16
|
+
advance(): Token;
|
|
17
|
+
check(type: TokenType): boolean;
|
|
18
|
+
checkAny(...types: TokenType[]): boolean;
|
|
19
|
+
consume(type: TokenType, message?: string): Token;
|
|
20
|
+
match(...types: TokenType[]): Token | null;
|
|
21
|
+
consumeIdentifierOrKeyword(message?: string): Token;
|
|
126
22
|
/**
|
|
127
23
|
* Check if the current token is a keyword being used as an identifier in a
|
|
128
24
|
* capability context. Many common English words (import, from, context, etc.)
|
|
129
25
|
* are reserved keywords in the lexer but should be accepted as-is when they
|
|
130
26
|
* appear as unquoted capability names (e.g. "can import catalog").
|
|
131
27
|
*/
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
28
|
+
isKeywordUsedAsIdentifier(): boolean;
|
|
29
|
+
skipNewlines(): void;
|
|
30
|
+
isAtEnd(): boolean;
|
|
135
31
|
/**
|
|
136
32
|
* Check for and consume a description (PROMPT token with triple single-quotes) if present
|
|
137
33
|
*/
|
|
138
|
-
|
|
34
|
+
parseDescriptionIfPresent(): string | undefined;
|
|
139
35
|
private throwUnexpectedTopLevelToken;
|
|
140
36
|
/**
|
|
141
37
|
* Parse the entire program
|
|
142
38
|
*/
|
|
143
39
|
parse(): Program;
|
|
144
|
-
|
|
145
|
-
private parseCapability;
|
|
146
|
-
private parseCondition;
|
|
147
|
-
private parseExpression;
|
|
148
|
-
private parseOrExpression;
|
|
149
|
-
private parseAndExpression;
|
|
150
|
-
private parseComparisonExpression;
|
|
151
|
-
private parsePrimaryExpression;
|
|
152
|
-
private parseRole;
|
|
153
|
-
private parseWorkflow;
|
|
154
|
-
private parseAgent;
|
|
155
|
-
private parseTypeDefinition;
|
|
40
|
+
parseCapability(): CapabilityNode;
|
|
156
41
|
/**
|
|
157
42
|
* Parse string array: [item1, item2, item3]
|
|
158
43
|
*/
|
|
159
|
-
|
|
44
|
+
parseStringArray(): string[];
|
|
160
45
|
}
|
|
161
46
|
//# sourceMappingURL=parser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../src/generated/parser/parser.ts"],"names":[],"mappings":"AACA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../src/generated/parser/parser.ts"],"names":[],"mappings":"AACA;;;;;;GAMG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAiB,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAC7E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAUvD,qBAAa,MAAO,YAAW,YAAY;IACzC,OAAO,CAAC,SAAS,CAAY;IACtB,YAAY,EAAE,KAAK,CAAC;gBAEf,MAAM,EAAE,MAAM;IAKnB,OAAO,IAAI,KAAK;IAOhB,KAAK,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO;IAI/B,QAAQ,CAAC,GAAG,KAAK,EAAE,SAAS,EAAE,GAAG,OAAO;IAIxC,OAAO,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,KAAK;IAUjD,KAAK,CAAC,GAAG,KAAK,EAAE,SAAS,EAAE,GAAG,KAAK,GAAG,IAAI;IAQ1C,0BAA0B,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,KAAK;IAc1D;;;;;OAKG;IACI,yBAAyB,IAAI,OAAO;IAqCpC,YAAY,IAAI,IAAI;IAapB,OAAO,IAAI,OAAO;IAIzB;;OAEG;IACI,yBAAyB,IAAI,MAAM,GAAG,SAAS;IAStD,OAAO,CAAC,4BAA4B;IAWpC;;OAEG;IACI,KAAK,IAAI,OAAO;IA0ChB,eAAe,IAAI,cAAc;IAuFxC;;OAEG;IACI,gBAAgB,IAAI,MAAM,EAAE;CA4BpC"}
|