@cratis/screenplay-language 1.6.4 → 1.7.0
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/completion-items.ts +45 -3
- package/completion-planner.ts +12 -1
- package/completions.ts +7 -0
- package/dist/completion-items.d.ts +4 -0
- package/dist/completion-items.d.ts.map +1 -1
- package/dist/completion-items.js +41 -3
- package/dist/completion-items.js.map +1 -1
- package/dist/completion-planner.d.ts.map +1 -1
- package/dist/completion-planner.js +12 -1
- package/dist/completion-planner.js.map +1 -1
- package/dist/completions.d.ts.map +1 -1
- package/dist/completions.js +1 -0
- package/dist/completions.js.map +1 -1
- package/dist/hover-content.d.ts.map +1 -1
- package/dist/hover-content.js +18 -1
- package/dist/hover-content.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/keyword-docs.d.ts.map +1 -1
- package/dist/keyword-docs.js +21 -6
- package/dist/keyword-docs.js.map +1 -1
- package/dist/language.d.ts +2 -0
- package/dist/language.d.ts.map +1 -1
- package/dist/language.js +18 -2
- package/dist/language.js.map +1 -1
- package/dist/symbols.d.ts +15 -1
- package/dist/symbols.d.ts.map +1 -1
- package/dist/symbols.js +71 -9
- package/dist/symbols.js.map +1 -1
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +1 -0
- package/dist/tokens.js.map +1 -1
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +50 -3
- package/dist/validation.js.map +1 -1
- package/hover-content.ts +23 -1
- package/index.ts +5 -1
- package/keyword-docs.ts +21 -6
- package/language.ts +20 -2
- package/package.json +1 -1
- package/symbols.ts +94 -10
- package/tokens.ts +1 -0
- package/validation.ts +90 -3
package/completion-items.ts
CHANGED
|
@@ -13,10 +13,23 @@ export const topLevelItems: CompletionEntry[] = [
|
|
|
13
13
|
{ label: 'import', insertText: 'import ${1:Module}.${2:Type}', documentation: 'Imports a type from another module by its qualified name.' },
|
|
14
14
|
{ label: 'concept', insertText: 'concept ${1:Name} : ${2|Uuid,String,Int,Decimal,Bool,Date,DateTime|}', documentation: 'Declares a formalized value type wrapping a primitive.' },
|
|
15
15
|
{ label: 'concept (enum)', insertText: 'concept ${1:Name} : Enum\n ${2:value}', documentation: 'Declares an enumeration concept with a fixed set of values.' },
|
|
16
|
+
{ label: 'concept (@pii with reason)', insertText: 'concept ${1:Name} : ${2|String,Uuid,Int,Decimal,Bool,Date,DateTime|} @pii\n pii reason "${3:why this is personal data, its purpose and lawful basis}"', documentation: 'Declares a personal-data concept together with the reason it is personal data.' },
|
|
17
|
+
{ label: 'type', insertText: 'type ${1:Name}\n ${2:property} ${3:Type}', documentation: 'Declares a composite value type — a named shape built from several properties.' },
|
|
16
18
|
{ label: 'policy', insertText: 'policy ${1:Name}\n require ${2:authenticated}', documentation: 'Declares a named authorization rule for commands and queries.' },
|
|
17
19
|
{ label: 'module', insertText: 'module ${1:Name}\n ', documentation: 'Declares the top-level namespace — maps to a bounded context.' },
|
|
18
20
|
];
|
|
19
21
|
|
|
22
|
+
export const conceptItems: CompletionEntry[] = [
|
|
23
|
+
{ label: 'pii reason', insertText: 'pii reason "${1:why this is personal data, its purpose and lawful basis}"', documentation: 'Records why the `@pii` marker applies — purpose, lawful basis, whose subject it lives under.' },
|
|
24
|
+
{ label: 'sensitive reason', insertText: 'sensitive reason "${1:why this value is sensitive}"', documentation: 'Records why the `@sensitive` marker applies.' },
|
|
25
|
+
{ label: 'validate', insertText: 'validate\n ${1:not empty} message "${2:message}"', documentation: 'Validation rules that travel with the value everywhere it appears.' },
|
|
26
|
+
];
|
|
27
|
+
|
|
28
|
+
export const typeItems: CompletionEntry[] = [
|
|
29
|
+
{ label: 'description', insertText: 'description "${1:what this shape represents}"', documentation: 'A human-readable description of the type.' },
|
|
30
|
+
{ label: 'property', insertText: '${1:property} ${2:Type}', documentation: 'A property of the type — a name and a type reference.' },
|
|
31
|
+
];
|
|
32
|
+
|
|
20
33
|
export const moduleItems: CompletionEntry[] = [
|
|
21
34
|
{ label: 'layout', insertText: 'layout ${1:Name}\n template\n ${2:slot}', documentation: 'Declares a reusable screen template with named slots.' },
|
|
22
35
|
{ label: 'feature', insertText: 'feature ${1:Name}\n ', documentation: 'Groups related slices into a vertical feature.' },
|
|
@@ -42,6 +55,7 @@ export const sliceItems: CompletionEntry[] = [
|
|
|
42
55
|
];
|
|
43
56
|
|
|
44
57
|
export const commandItems: CompletionEntry[] = [
|
|
58
|
+
{ label: 'identifier property', insertText: '${1:property} ${2:Type} identifier', documentation: 'Marks the property a runtime resolves the event source id from. At most one per command.' },
|
|
45
59
|
{ label: 'authorize', insertText: 'authorize ${1:PolicyName}', documentation: 'References the policies that must pass for the command to execute.' },
|
|
46
60
|
{ label: 'validate', insertText: 'validate\n ${1:property} not empty message "${2:message}"', documentation: 'Declarative validation rules with messages.' },
|
|
47
61
|
{ label: 'validate csharp', insertText: `validate ${fenced('csharp')}`, documentation: 'Imperative validation in C#, yielding ValidationError.' },
|
|
@@ -60,9 +74,18 @@ export const handlerItems: CompletionEntry[] = [
|
|
|
60
74
|
];
|
|
61
75
|
|
|
62
76
|
export const queryItems: CompletionEntry[] = [
|
|
77
|
+
{ label: 'description', insertText: 'description "${1:what this query is trying to accomplish}"', documentation: 'What the query is for, in prose — what a generator or reviewer works from.' },
|
|
63
78
|
{ label: 'by', insertText: 'by ${1:param} ${2:Type}', documentation: 'Declares the identifying parameter of the query.' },
|
|
64
|
-
{ label: 'filter', insertText: 'filter ${1:param} ${2:Type}?', documentation: 'Declares an optional filter parameter.' },
|
|
79
|
+
{ label: 'filter', insertText: 'filter ${1:param} ${2:Type}?', documentation: 'Declares an optional filter parameter supplied by the caller.' },
|
|
80
|
+
{ label: 'filter from context', insertText: 'filter ${1:param} ${2:Type} from $context.${3|tenant,causedBy.subject,occurred|}', documentation: 'Declares a parameter filled from the query context instead of the caller.' },
|
|
65
81
|
{ label: 'authorize', insertText: 'authorize ${1:PolicyName}', documentation: 'References the policies that must pass for the query to execute.' },
|
|
82
|
+
{ label: 'performer', insertText: 'performer\n ', documentation: 'The code that performs the query — a file reference or an inline csharp/sql block.' },
|
|
83
|
+
];
|
|
84
|
+
|
|
85
|
+
export const performerItems: CompletionEntry[] = [
|
|
86
|
+
{ label: 'file', insertText: 'file ${1:Path}', documentation: 'Delegates the query implementation to an external file.' },
|
|
87
|
+
{ label: 'csharp', insertText: fenced('csharp'), documentation: 'Inline C# returning the query result, with the QueryContext in scope as context.' },
|
|
88
|
+
{ label: 'sql', insertText: fenced('sql'), documentation: 'Inline SQL returning the query result.' },
|
|
66
89
|
];
|
|
67
90
|
|
|
68
91
|
export const constraintItems: CompletionEntry[] = [
|
|
@@ -72,14 +95,26 @@ export const constraintItems: CompletionEntry[] = [
|
|
|
72
95
|
];
|
|
73
96
|
|
|
74
97
|
export const reactorItems: CompletionEntry[] = [
|
|
75
|
-
{ label: '
|
|
98
|
+
{ label: 'description', insertText: 'description "${1:what this reactor does}"', documentation: 'What the reactor does — a complete statement of intent before any code exists.' },
|
|
99
|
+
{ label: 'on', insertText: 'on ${1:EventType}', documentation: 'Declares the event the reactor reacts to. A trigger needs no body.' },
|
|
76
100
|
];
|
|
77
101
|
|
|
78
102
|
export const reactorOnItems: CompletionEntry[] = [
|
|
103
|
+
{ label: 'description', insertText: 'description "${1:what this reaction does}"', documentation: 'What this particular reaction does — enough on its own, with no file to point at.' },
|
|
79
104
|
{ label: 'file', insertText: 'file ${1:Path}', documentation: 'Delegates the reaction to an external C# file.' },
|
|
80
105
|
{ label: 'csharp', insertText: fenced('csharp'), documentation: 'Inline C# returning event side effects.' },
|
|
81
106
|
];
|
|
82
107
|
|
|
108
|
+
export const specificationItems: CompletionEntry[] = [
|
|
109
|
+
{ label: 'given', insertText: 'given ${1:EventType}\n ${2:property} = ${3:value}', documentation: 'Establishes prior state by replaying an event before the command runs.' },
|
|
110
|
+
{ label: 'given readmodel', insertText: 'given readmodel ${1:ReadModelType}\n ${2:property} = ${3:value}', documentation: 'Establishes prior read model state directly.' },
|
|
111
|
+
{ label: 'when', insertText: 'when ${1:CommandType}\n ${2:property} = ${3:value}', documentation: 'The command being exercised.' },
|
|
112
|
+
{ label: 'then', insertText: 'then ${1:EventType}\n ${2:property} = ${3:value}', documentation: 'An event expected to be produced by the command.' },
|
|
113
|
+
{ label: 'then readmodel', insertText: 'then readmodel ${1:ReadModelType}\n ${2:property} = ${3:value}', documentation: 'The read model state expected after the command.' },
|
|
114
|
+
{ label: 'then error', insertText: 'then error', documentation: 'A rejection, for a reason this specification does not name.' },
|
|
115
|
+
{ label: 'then error "..."', insertText: 'then error "${1:reason}"', documentation: 'A rejection, for the named reason.' },
|
|
116
|
+
];
|
|
117
|
+
|
|
83
118
|
export const policyItems: CompletionEntry[] = [
|
|
84
119
|
{ label: 'require authenticated', insertText: 'require authenticated', documentation: 'Requires an authenticated caller.' },
|
|
85
120
|
{ label: 'require role', insertText: 'require role "${1:role}"', documentation: 'Requires the caller to have a role.' },
|
|
@@ -121,7 +156,14 @@ export const tableItems: CompletionEntry[] = [
|
|
|
121
156
|
];
|
|
122
157
|
|
|
123
158
|
export const contextVariableItems: CompletionEntry[] = [
|
|
124
|
-
{ label: '$context.occurred', insertText: '$context.occurred', documentation: '
|
|
159
|
+
{ label: '$context.occurred', insertText: '$context.occurred', documentation: 'When the command or query was received.' },
|
|
160
|
+
{ label: '$context.tenant', insertText: '$context.tenant', documentation: 'The tenant the command or query is executing for.' },
|
|
161
|
+
{ label: '$context.command.', insertText: '$context.command.${1:property}', documentation: 'A property of the command being handled.' },
|
|
162
|
+
{ label: '$context.arguments.', insertText: '$context.arguments.${1:name}', documentation: 'An argument of the query being performed.' },
|
|
163
|
+
{ label: '$context.causedBy.subject', insertText: '$context.causedBy.subject', documentation: 'Subject of the identity that caused the command or query.' },
|
|
164
|
+
{ label: '$context.causedBy.name', insertText: '$context.causedBy.name', documentation: 'Display name of the identity that caused the command or query.' },
|
|
165
|
+
{ label: '$context.causedBy.userName', insertText: '$context.causedBy.userName', documentation: 'User name of the identity that caused the command or query.' },
|
|
166
|
+
{ label: '$context.causation.type', insertText: '$context.causation.type', documentation: 'What caused this — a command, a reactor, a schedule.' },
|
|
125
167
|
{ label: '$context.identity.id', insertText: '$context.identity.id', documentation: 'Subject of the caller from the auth token.' },
|
|
126
168
|
{ label: '$env.', insertText: '$env.${1:VAR_NAME}', documentation: 'An environment variable.' },
|
|
127
169
|
{ label: '$eventContext.occurred', insertText: '$eventContext.occurred', documentation: 'Timestamp of the event being projected (PDL).' },
|
package/completion-planner.ts
CHANGED
|
@@ -29,6 +29,10 @@ export function completionEntriesFor(chain: string[]): CompletionEntry[] {
|
|
|
29
29
|
return items.featureItems;
|
|
30
30
|
case 'slice':
|
|
31
31
|
return items.sliceItems;
|
|
32
|
+
case 'concept':
|
|
33
|
+
return items.conceptItems;
|
|
34
|
+
case 'type':
|
|
35
|
+
return items.typeItems;
|
|
32
36
|
case 'command':
|
|
33
37
|
return items.commandItems;
|
|
34
38
|
case 'produces':
|
|
@@ -37,12 +41,16 @@ export function completionEntriesFor(chain: string[]): CompletionEntry[] {
|
|
|
37
41
|
return items.handlerItems;
|
|
38
42
|
case 'query':
|
|
39
43
|
return items.queryItems;
|
|
44
|
+
case 'performer':
|
|
45
|
+
return items.performerItems;
|
|
40
46
|
case 'constraint':
|
|
41
47
|
return items.constraintItems;
|
|
42
48
|
case 'reactor':
|
|
43
49
|
return items.reactorItems;
|
|
44
50
|
case 'on':
|
|
45
51
|
return items.reactorOnItems;
|
|
52
|
+
case 'specification':
|
|
53
|
+
return items.specificationItems;
|
|
46
54
|
case 'policy':
|
|
47
55
|
return items.policyItems;
|
|
48
56
|
case 'validate':
|
|
@@ -101,11 +109,14 @@ export function planCompletions(
|
|
|
101
109
|
return { kind: 'queries' };
|
|
102
110
|
}
|
|
103
111
|
if (
|
|
104
|
-
(chain[0] === 'event' || chain[0] === 'command') &&
|
|
112
|
+
(chain[0] === 'event' || chain[0] === 'command' || chain[0] === 'type') &&
|
|
105
113
|
/^\s+[a-z_]\w*\s+[\w[\]?]*$/.test(textBefore)
|
|
106
114
|
) {
|
|
107
115
|
return { kind: 'types' };
|
|
108
116
|
}
|
|
117
|
+
if (chain[0] === 'query' && /^\s+(?:by|filter)\s+[a-z_]\w*\s+[\w[\]?]*$/.test(textBefore)) {
|
|
118
|
+
return { kind: 'types' };
|
|
119
|
+
}
|
|
109
120
|
|
|
110
121
|
return { kind: 'entries', entries: completionEntriesFor(chain) };
|
|
111
122
|
}
|
package/completions.ts
CHANGED
|
@@ -99,6 +99,13 @@ export function createCompletionProvider(monaco: Monaco): languages.CompletionIt
|
|
|
99
99
|
`concept : ${concept.primitive}${concept.attributes.length ? ' ' + concept.attributes.join(' ') : ''}`,
|
|
100
100
|
),
|
|
101
101
|
),
|
|
102
|
+
...symbols.types.map((type) =>
|
|
103
|
+
symbolItem(
|
|
104
|
+
type.name,
|
|
105
|
+
kinds.Struct,
|
|
106
|
+
`type (${type.properties.length} properties)`,
|
|
107
|
+
),
|
|
108
|
+
),
|
|
102
109
|
...primitiveTypes.map((primitive) =>
|
|
103
110
|
symbolItem(primitive, kinds.Struct, 'primitive'),
|
|
104
111
|
),
|
|
@@ -4,6 +4,8 @@ export interface CompletionEntry {
|
|
|
4
4
|
documentation: string;
|
|
5
5
|
}
|
|
6
6
|
export declare const topLevelItems: CompletionEntry[];
|
|
7
|
+
export declare const conceptItems: CompletionEntry[];
|
|
8
|
+
export declare const typeItems: CompletionEntry[];
|
|
7
9
|
export declare const moduleItems: CompletionEntry[];
|
|
8
10
|
export declare const featureItems: CompletionEntry[];
|
|
9
11
|
export declare const sliceItems: CompletionEntry[];
|
|
@@ -11,9 +13,11 @@ export declare const commandItems: CompletionEntry[];
|
|
|
11
13
|
export declare const producesItems: CompletionEntry[];
|
|
12
14
|
export declare const handlerItems: CompletionEntry[];
|
|
13
15
|
export declare const queryItems: CompletionEntry[];
|
|
16
|
+
export declare const performerItems: CompletionEntry[];
|
|
14
17
|
export declare const constraintItems: CompletionEntry[];
|
|
15
18
|
export declare const reactorItems: CompletionEntry[];
|
|
16
19
|
export declare const reactorOnItems: CompletionEntry[];
|
|
20
|
+
export declare const specificationItems: CompletionEntry[];
|
|
17
21
|
export declare const policyItems: CompletionEntry[];
|
|
18
22
|
export declare const validateItems: CompletionEntry[];
|
|
19
23
|
export declare const screenItems: CompletionEntry[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"completion-items.d.ts","sourceRoot":"","sources":["../completion-items.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,eAAe;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;CACzB;AAID,eAAO,MAAM,aAAa,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"completion-items.d.ts","sourceRoot":"","sources":["../completion-items.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,eAAe;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;CACzB;AAID,eAAO,MAAM,aAAa,EAAE,eAAe,EAQ1C,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,eAAe,EAIzC,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,eAAe,EAGtC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,eAAe,EAGxC,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,eAAe,EAMzC,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,eAAe,EASvC,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,eAAe,EAQzC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,eAAe,EAE1C,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,eAAe,EAGzC,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,eAAe,EAOvC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,eAAe,EAI3C,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,eAAe,EAI5C,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,eAAe,EAGzC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,eAAe,EAI3C,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,eAAe,EAQ/C,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,eAAe,EAKxC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,eAAe,EAO1C,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,eAAe,EAYxC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,eAAe,EAGxC,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,eAAe,EAGvC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,eAAe,EAYjD,CAAC"}
|
package/dist/completion-items.js
CHANGED
|
@@ -5,9 +5,20 @@ export const topLevelItems = [
|
|
|
5
5
|
{ label: 'import', insertText: 'import ${1:Module}.${2:Type}', documentation: 'Imports a type from another module by its qualified name.' },
|
|
6
6
|
{ label: 'concept', insertText: 'concept ${1:Name} : ${2|Uuid,String,Int,Decimal,Bool,Date,DateTime|}', documentation: 'Declares a formalized value type wrapping a primitive.' },
|
|
7
7
|
{ label: 'concept (enum)', insertText: 'concept ${1:Name} : Enum\n ${2:value}', documentation: 'Declares an enumeration concept with a fixed set of values.' },
|
|
8
|
+
{ label: 'concept (@pii with reason)', insertText: 'concept ${1:Name} : ${2|String,Uuid,Int,Decimal,Bool,Date,DateTime|} @pii\n pii reason "${3:why this is personal data, its purpose and lawful basis}"', documentation: 'Declares a personal-data concept together with the reason it is personal data.' },
|
|
9
|
+
{ label: 'type', insertText: 'type ${1:Name}\n ${2:property} ${3:Type}', documentation: 'Declares a composite value type — a named shape built from several properties.' },
|
|
8
10
|
{ label: 'policy', insertText: 'policy ${1:Name}\n require ${2:authenticated}', documentation: 'Declares a named authorization rule for commands and queries.' },
|
|
9
11
|
{ label: 'module', insertText: 'module ${1:Name}\n ', documentation: 'Declares the top-level namespace — maps to a bounded context.' },
|
|
10
12
|
];
|
|
13
|
+
export const conceptItems = [
|
|
14
|
+
{ label: 'pii reason', insertText: 'pii reason "${1:why this is personal data, its purpose and lawful basis}"', documentation: 'Records why the `@pii` marker applies — purpose, lawful basis, whose subject it lives under.' },
|
|
15
|
+
{ label: 'sensitive reason', insertText: 'sensitive reason "${1:why this value is sensitive}"', documentation: 'Records why the `@sensitive` marker applies.' },
|
|
16
|
+
{ label: 'validate', insertText: 'validate\n ${1:not empty} message "${2:message}"', documentation: 'Validation rules that travel with the value everywhere it appears.' },
|
|
17
|
+
];
|
|
18
|
+
export const typeItems = [
|
|
19
|
+
{ label: 'description', insertText: 'description "${1:what this shape represents}"', documentation: 'A human-readable description of the type.' },
|
|
20
|
+
{ label: 'property', insertText: '${1:property} ${2:Type}', documentation: 'A property of the type — a name and a type reference.' },
|
|
21
|
+
];
|
|
11
22
|
export const moduleItems = [
|
|
12
23
|
{ label: 'layout', insertText: 'layout ${1:Name}\n template\n ${2:slot}', documentation: 'Declares a reusable screen template with named slots.' },
|
|
13
24
|
{ label: 'feature', insertText: 'feature ${1:Name}\n ', documentation: 'Groups related slices into a vertical feature.' },
|
|
@@ -30,6 +41,7 @@ export const sliceItems = [
|
|
|
30
41
|
{ label: 'constraint', insertText: 'constraint ${1:Name}\n unique ${2:property} on ${3:EventType}', documentation: 'Declares a server-side rule enforced before events are committed.' },
|
|
31
42
|
];
|
|
32
43
|
export const commandItems = [
|
|
44
|
+
{ label: 'identifier property', insertText: '${1:property} ${2:Type} identifier', documentation: 'Marks the property a runtime resolves the event source id from. At most one per command.' },
|
|
33
45
|
{ label: 'authorize', insertText: 'authorize ${1:PolicyName}', documentation: 'References the policies that must pass for the command to execute.' },
|
|
34
46
|
{ label: 'validate', insertText: 'validate\n ${1:property} not empty message "${2:message}"', documentation: 'Declarative validation rules with messages.' },
|
|
35
47
|
{ label: 'validate csharp', insertText: `validate ${fenced('csharp')}`, documentation: 'Imperative validation in C#, yielding ValidationError.' },
|
|
@@ -45,9 +57,17 @@ export const handlerItems = [
|
|
|
45
57
|
{ label: 'csharp', insertText: fenced('csharp'), documentation: 'Inline C# returning the events to append.' },
|
|
46
58
|
];
|
|
47
59
|
export const queryItems = [
|
|
60
|
+
{ label: 'description', insertText: 'description "${1:what this query is trying to accomplish}"', documentation: 'What the query is for, in prose — what a generator or reviewer works from.' },
|
|
48
61
|
{ label: 'by', insertText: 'by ${1:param} ${2:Type}', documentation: 'Declares the identifying parameter of the query.' },
|
|
49
|
-
{ label: 'filter', insertText: 'filter ${1:param} ${2:Type}?', documentation: 'Declares an optional filter parameter.' },
|
|
62
|
+
{ label: 'filter', insertText: 'filter ${1:param} ${2:Type}?', documentation: 'Declares an optional filter parameter supplied by the caller.' },
|
|
63
|
+
{ label: 'filter from context', insertText: 'filter ${1:param} ${2:Type} from $context.${3|tenant,causedBy.subject,occurred|}', documentation: 'Declares a parameter filled from the query context instead of the caller.' },
|
|
50
64
|
{ label: 'authorize', insertText: 'authorize ${1:PolicyName}', documentation: 'References the policies that must pass for the query to execute.' },
|
|
65
|
+
{ label: 'performer', insertText: 'performer\n ', documentation: 'The code that performs the query — a file reference or an inline csharp/sql block.' },
|
|
66
|
+
];
|
|
67
|
+
export const performerItems = [
|
|
68
|
+
{ label: 'file', insertText: 'file ${1:Path}', documentation: 'Delegates the query implementation to an external file.' },
|
|
69
|
+
{ label: 'csharp', insertText: fenced('csharp'), documentation: 'Inline C# returning the query result, with the QueryContext in scope as context.' },
|
|
70
|
+
{ label: 'sql', insertText: fenced('sql'), documentation: 'Inline SQL returning the query result.' },
|
|
51
71
|
];
|
|
52
72
|
export const constraintItems = [
|
|
53
73
|
{ label: 'unique', insertText: 'unique ${1:property} on ${2:EventType}', documentation: 'Enforces a unique property value across an event type.' },
|
|
@@ -55,12 +75,23 @@ export const constraintItems = [
|
|
|
55
75
|
{ label: 'file', insertText: 'file ${1:Path}', documentation: 'Delegates the constraint to a custom C# implementation.' },
|
|
56
76
|
];
|
|
57
77
|
export const reactorItems = [
|
|
58
|
-
{ label: '
|
|
78
|
+
{ label: 'description', insertText: 'description "${1:what this reactor does}"', documentation: 'What the reactor does — a complete statement of intent before any code exists.' },
|
|
79
|
+
{ label: 'on', insertText: 'on ${1:EventType}', documentation: 'Declares the event the reactor reacts to. A trigger needs no body.' },
|
|
59
80
|
];
|
|
60
81
|
export const reactorOnItems = [
|
|
82
|
+
{ label: 'description', insertText: 'description "${1:what this reaction does}"', documentation: 'What this particular reaction does — enough on its own, with no file to point at.' },
|
|
61
83
|
{ label: 'file', insertText: 'file ${1:Path}', documentation: 'Delegates the reaction to an external C# file.' },
|
|
62
84
|
{ label: 'csharp', insertText: fenced('csharp'), documentation: 'Inline C# returning event side effects.' },
|
|
63
85
|
];
|
|
86
|
+
export const specificationItems = [
|
|
87
|
+
{ label: 'given', insertText: 'given ${1:EventType}\n ${2:property} = ${3:value}', documentation: 'Establishes prior state by replaying an event before the command runs.' },
|
|
88
|
+
{ label: 'given readmodel', insertText: 'given readmodel ${1:ReadModelType}\n ${2:property} = ${3:value}', documentation: 'Establishes prior read model state directly.' },
|
|
89
|
+
{ label: 'when', insertText: 'when ${1:CommandType}\n ${2:property} = ${3:value}', documentation: 'The command being exercised.' },
|
|
90
|
+
{ label: 'then', insertText: 'then ${1:EventType}\n ${2:property} = ${3:value}', documentation: 'An event expected to be produced by the command.' },
|
|
91
|
+
{ label: 'then readmodel', insertText: 'then readmodel ${1:ReadModelType}\n ${2:property} = ${3:value}', documentation: 'The read model state expected after the command.' },
|
|
92
|
+
{ label: 'then error', insertText: 'then error', documentation: 'A rejection, for a reason this specification does not name.' },
|
|
93
|
+
{ label: 'then error "..."', insertText: 'then error "${1:reason}"', documentation: 'A rejection, for the named reason.' },
|
|
94
|
+
];
|
|
64
95
|
export const policyItems = [
|
|
65
96
|
{ label: 'require authenticated', insertText: 'require authenticated', documentation: 'Requires an authenticated caller.' },
|
|
66
97
|
{ label: 'require role', insertText: 'require role "${1:role}"', documentation: 'Requires the caller to have a role.' },
|
|
@@ -97,7 +128,14 @@ export const tableItems = [
|
|
|
97
128
|
{ label: 'on row-click', insertText: 'on row-click navigate to ${1:ScreenName} by ${2:param}', documentation: 'Navigates when a row is clicked.' },
|
|
98
129
|
];
|
|
99
130
|
export const contextVariableItems = [
|
|
100
|
-
{ label: '$context.occurred', insertText: '$context.occurred', documentation: '
|
|
131
|
+
{ label: '$context.occurred', insertText: '$context.occurred', documentation: 'When the command or query was received.' },
|
|
132
|
+
{ label: '$context.tenant', insertText: '$context.tenant', documentation: 'The tenant the command or query is executing for.' },
|
|
133
|
+
{ label: '$context.command.', insertText: '$context.command.${1:property}', documentation: 'A property of the command being handled.' },
|
|
134
|
+
{ label: '$context.arguments.', insertText: '$context.arguments.${1:name}', documentation: 'An argument of the query being performed.' },
|
|
135
|
+
{ label: '$context.causedBy.subject', insertText: '$context.causedBy.subject', documentation: 'Subject of the identity that caused the command or query.' },
|
|
136
|
+
{ label: '$context.causedBy.name', insertText: '$context.causedBy.name', documentation: 'Display name of the identity that caused the command or query.' },
|
|
137
|
+
{ label: '$context.causedBy.userName', insertText: '$context.causedBy.userName', documentation: 'User name of the identity that caused the command or query.' },
|
|
138
|
+
{ label: '$context.causation.type', insertText: '$context.causation.type', documentation: 'What caused this — a command, a reactor, a schedule.' },
|
|
101
139
|
{ label: '$context.identity.id', insertText: '$context.identity.id', documentation: 'Subject of the caller from the auth token.' },
|
|
102
140
|
{ label: '$env.', insertText: '$env.${1:VAR_NAME}', documentation: 'An environment variable.' },
|
|
103
141
|
{ label: '$eventContext.occurred', insertText: '$eventContext.occurred', documentation: 'Timestamp of the event being projected (PDL).' },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"completion-items.js","sourceRoot":"","sources":["../completion-items.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAQrG,MAAM,MAAM,GAAG,CAAC,GAAW,EAA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B,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,eAAe,EAAE,CAmDvE;AAID,wBAAgB,eAAe,CAC3B,KAAK,EAAE,MAAM,EAAE,EACf,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,GACnB,cAAc,CA2ChB"}
|
|
@@ -17,6 +17,10 @@ export function completionEntriesFor(chain) {
|
|
|
17
17
|
return items.featureItems;
|
|
18
18
|
case 'slice':
|
|
19
19
|
return items.sliceItems;
|
|
20
|
+
case 'concept':
|
|
21
|
+
return items.conceptItems;
|
|
22
|
+
case 'type':
|
|
23
|
+
return items.typeItems;
|
|
20
24
|
case 'command':
|
|
21
25
|
return items.commandItems;
|
|
22
26
|
case 'produces':
|
|
@@ -25,12 +29,16 @@ export function completionEntriesFor(chain) {
|
|
|
25
29
|
return items.handlerItems;
|
|
26
30
|
case 'query':
|
|
27
31
|
return items.queryItems;
|
|
32
|
+
case 'performer':
|
|
33
|
+
return items.performerItems;
|
|
28
34
|
case 'constraint':
|
|
29
35
|
return items.constraintItems;
|
|
30
36
|
case 'reactor':
|
|
31
37
|
return items.reactorItems;
|
|
32
38
|
case 'on':
|
|
33
39
|
return items.reactorOnItems;
|
|
40
|
+
case 'specification':
|
|
41
|
+
return items.specificationItems;
|
|
34
42
|
case 'policy':
|
|
35
43
|
return items.policyItems;
|
|
36
44
|
case 'validate':
|
|
@@ -81,10 +89,13 @@ export function planCompletions(lines, lineIndex, textBefore) {
|
|
|
81
89
|
if (/\bvia\s+query\s+\w*$/.test(textBefore)) {
|
|
82
90
|
return { kind: 'queries' };
|
|
83
91
|
}
|
|
84
|
-
if ((chain[0] === 'event' || chain[0] === 'command') &&
|
|
92
|
+
if ((chain[0] === 'event' || chain[0] === 'command' || chain[0] === 'type') &&
|
|
85
93
|
/^\s+[a-z_]\w*\s+[\w[\]?]*$/.test(textBefore)) {
|
|
86
94
|
return { kind: 'types' };
|
|
87
95
|
}
|
|
96
|
+
if (chain[0] === 'query' && /^\s+(?:by|filter)\s+[a-z_]\w*\s+[\w[\]?]*$/.test(textBefore)) {
|
|
97
|
+
return { kind: 'types' };
|
|
98
|
+
}
|
|
88
99
|
return { kind: 'entries', entries: completionEntriesFor(chain) };
|
|
89
100
|
}
|
|
90
101
|
//# sourceMappingURL=completion-planner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"completion-planner.js","sourceRoot":"","sources":["../completion-planner.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,KAAK,KAAK,MAAM,oBAAoB,CAAC;AAc5C,MAAM,UAAU,oBAAoB,CAAC,KAAe;IAChD,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IAC3B,IAAI,SAAS,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC,aAAa,CAAC;IACxD,MAAM,WAAW,GAAG,cAAc,CAAC,SAAS,CAAC,CAAC;IAC9C,IAAI,WAAW;QAAE,OAAO,WAAW,CAAC,WAAW,IAAI,EAAE,CAAC;IACtD,QAAQ,SAAS,EAAE,CAAC;QAChB,KAAK,QAAQ;YACT,OAAO,KAAK,CAAC,WAAW,CAAC;QAC7B,KAAK,SAAS;YACV,OAAO,KAAK,CAAC,YAAY,CAAC;QAC9B,KAAK,OAAO;YACR,OAAO,KAAK,CAAC,UAAU,CAAC;QAC5B,KAAK,SAAS;YACV,OAAO,KAAK,CAAC,YAAY,CAAC;QAC9B,KAAK,UAAU;YACX,OAAO,KAAK,CAAC,aAAa,CAAC;QAC/B,KAAK,SAAS;YACV,OAAO,KAAK,CAAC,YAAY,CAAC;QAC9B,KAAK,OAAO;YACR,OAAO,KAAK,CAAC,UAAU,CAAC;QAC5B,KAAK,YAAY;YACb,OAAO,KAAK,CAAC,eAAe,CAA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AI,KAAK,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC;QACvE,4BAA4B,CAAC,IAAI,CAAC,UAAU,CAAC,EAC/C,CAAC;QACC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;IAC7B,CAAC;IACD,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,OAAO,IAAI,4CAA4C,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;QACxF,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;IAC7B,CAAC;IAED,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,oBAAoB,CAAC,KAAK,CAAC,EAAE,CAAC;AACrE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"completions.d.ts","sourceRoot":"","sources":["../completions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAkB,MAAM,YAAY,CAAC;AAKpD,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,sBAAsB,
|
|
1
|
+
{"version":3,"file":"completions.d.ts","sourceRoot":"","sources":["../completions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAkB,MAAM,YAAY,CAAC;AAKpD,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,sBAAsB,CA6GzF"}
|
package/dist/completions.js
CHANGED
|
@@ -66,6 +66,7 @@ export function createCompletionProvider(monaco) {
|
|
|
66
66
|
return {
|
|
67
67
|
suggestions: [
|
|
68
68
|
...symbols.concepts.map((concept) => symbolItem(concept.name, kinds.Class, `concept : ${concept.primitive}${concept.attributes.length ? ' ' + concept.attributes.join(' ') : ''}`)),
|
|
69
|
+
...symbols.types.map((type) => symbolItem(type.name, kinds.Struct, `type (${type.properties.length} properties)`)),
|
|
69
70
|
...primitiveTypes.map((primitive) => symbolItem(primitive, kinds.Struct, 'primitive')),
|
|
70
71
|
],
|
|
71
72
|
};
|
package/dist/completions.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"completions.js","sourceRoot":"","sources":["../completions.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAGrG,OAAO,EAAU,cAAc,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAmB,MAAM,oBAAoB,CAAC;AAE1F,MAAM,UAAU,wBAAwB,CAAC,MAAc;IACnD,OAAO;QACH,iBAAiB,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;QAEvC,sBAAsB,CAAC,KAAK,EAAE,QAAQ;YAClC,MAAM,KAAK,GAAG,KAAK,CAAC,eAAe,EAAE,CAAC;YACtC,MAAM,SAAS,GAAG,QAAQ,CAAC,UAAU,GAAG,CAAC,CAAC;YAC1C,MAAM,WAAW,GAAG,KAAK,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;YAC3C,MAAM,UAAU,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC,EAAE,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;YACjE,MAAM,IAAI,GAAG,eAAe,CAAC,KAAK,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;YAC3D,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM;gBAAE,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC;YAErD,MAAM,OAAO,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;YACpC,MAAM,IAAI,GAAG,KAAK,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC;Y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
|
|
1
|
-
{"version":3,"file":"hover-content.d.ts","sourceRoot":"","sources":["../hover-content.ts"],"names":[],"mappings":"AAWA,wBAAgB,YAAY,CACxB,KAAK,EAAE,MAAM,EAAE,EACf,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,GAClB,MAAM,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"hover-content.d.ts","sourceRoot":"","sources":["../hover-content.ts"],"names":[],"mappings":"AAWA,wBAAgB,YAAY,CACxB,KAAK,EAAE,MAAM,EAAE,EACf,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,GAClB,MAAM,GAAG,IAAI,CAgFf"}
|
package/dist/hover-content.js
CHANGED
|
@@ -34,7 +34,17 @@ export function hoverContent(lines, lineIndex, word, startColumn, endColumn) {
|
|
|
34
34
|
const values = concept.enumValues.length
|
|
35
35
|
? `\n\nValues: ${concept.enumValues.join(', ')}`
|
|
36
36
|
: '';
|
|
37
|
-
|
|
37
|
+
const reasons = Object.entries(concept.attributeReasons)
|
|
38
|
+
.map(([attribute, reason]) => `\n\n**@${attribute}** — ${reason}`)
|
|
39
|
+
.join('');
|
|
40
|
+
return `\`\`\`screenplay\nconcept ${concept.name} : ${concept.primitive}${attributes}\n\`\`\`${reasons}${values}`;
|
|
41
|
+
}
|
|
42
|
+
const type = symbols.types.find((candidate) => candidate.name === word);
|
|
43
|
+
if (type) {
|
|
44
|
+
const properties = type.properties
|
|
45
|
+
.map((property) => `${property.name} ${property.type}`)
|
|
46
|
+
.join('\n');
|
|
47
|
+
return `\`\`\`screenplay\ntype ${type.name}\n${properties}\n\`\`\``;
|
|
38
48
|
}
|
|
39
49
|
const policy = symbols.policies.find((candidate) => candidate.name === word);
|
|
40
50
|
if (policy) {
|
|
@@ -48,6 +58,13 @@ export function hoverContent(lines, lineIndex, word, startColumn, endColumn) {
|
|
|
48
58
|
.join('\n');
|
|
49
59
|
return `\`\`\`screenplay\nevent ${event.name}\n${properties}\n\`\`\``;
|
|
50
60
|
}
|
|
61
|
+
const command = symbols.commands.find((candidate) => candidate.name === word);
|
|
62
|
+
if (command && command.properties.length > 0) {
|
|
63
|
+
const properties = command.properties
|
|
64
|
+
.map((property) => `${property.name} ${property.type}${property.isIdentifier ? ' identifier' : ''}`)
|
|
65
|
+
.join('\n');
|
|
66
|
+
return `\`\`\`screenplay\ncommand ${command.name}\n${properties}\n\`\`\``;
|
|
67
|
+
}
|
|
51
68
|
// Sub-language keywords take precedence inside their construct.
|
|
52
69
|
const chain = enclosingChain(lines, fences, lineIndex, indentOf(line));
|
|
53
70
|
for (const construct of [line.trim().split(/\s+/)[0], ...chain]) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hover-content.js","sourceRoot":"","sources":["../hover-content.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAEjF,2EAA2E;AAC3E,+EAA+E;AAC/E,qEAAqE;AACrE,MAAM,UAAU,YAAY,CACxB,KAAe,EACf,SAAiB,EACjB,IAAY,EACZ,WAAmB,EACnB,SAAiB;IAEjB,MAAM,MAAM,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC/B,IAAI,MAAM,CAAC,SAAS,CAAC;QAAE,OAAO,IAAI,CAAC;IAEnC,MAAM,IAAI,GAAG,KAAK,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IACpC,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CA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AAC,SAAS,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;IAC9E,IAAI,OAAO,IAAI,OAAO,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC3C,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU;aAChC,GAAG,CACA,CAAC,QAAQ,EAAE,EAAE,CACT,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,EAAE,CACvF;aACA,IAAI,CAAC,IAAI,CAAC,CAAC;QAChB,OAAO,6BAA6B,OAAO,CAAC,IAAI,KAAK,UAAU,UAAU,CAAC;IAC9E,CAAC;IAED,gEAAgE;IAChE,MAAM,KAAK,GAAG,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;IACvE,KAAK,MAAM,SAAS,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;QAC9D,MAAM,WAAW,GAAG,cAAc,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC;QACpD,MAAM,GAAG,GAAG,WAAW,EAAE,MAAM,EAAE,CAAC,IAAI,CAAC,CAAC;QACxC,IAAI,GAAG;YAAE,OAAO,GAAG,CAAC;IACxB,CAAC;IAED,MAAM,UAAU,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;IACrC,IAAI,UAAU;QAAE,OAAO,KAAK,IAAI,QAAQ,UAAU,EAAE,CAAC;IAErD,OAAO,IAAI,CAAC;AAChB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Monaco } from './language';
|
|
2
2
|
export declare function ensureBuiltInSubLanguages(): void;
|
|
3
3
|
export declare function register(monaco: Monaco): void;
|
|
4
|
-
export { clauseKeywords, codeBlockTags, conceptAttributes, constructKeywords, languageId, primitiveTypes, sliceTypes, } from './language';
|
|
4
|
+
export { causedByProperties, clauseKeywords, codeBlockTags, conceptAttributes, constructKeywords, contextRoots, languageId, primitiveTypes, sliceTypes, } from './language';
|
|
5
5
|
export type { Monaco } from './language';
|
|
6
6
|
export { getSubLanguage, getSubLanguages, registerSubLanguage } from './sub-language-registry';
|
|
7
7
|
export type { MonarchTokenRules, SubLanguage, SubLanguageCompletion, SubLanguageDefinition, } from './sub-language-registry';
|
|
@@ -10,8 +10,8 @@ export { cdl } from './sub-languages/cdl';
|
|
|
10
10
|
export { screenplayDarkThemeName } from './themes/screenplay-dark';
|
|
11
11
|
export { screenplayLightThemeName } from './themes/screenplay-light';
|
|
12
12
|
export { enclosingChain, fenceMap, firstWord, indentOf } from './document-context';
|
|
13
|
-
export { knownEventNames, scanDocument } from './symbols';
|
|
14
|
-
export type { ConceptSymbol, DocumentSymbols, EventSymbol, ImportSymbol, NamedSymbol, PolicySymbol, PropertySymbol, QuerySymbol, } from './symbols';
|
|
13
|
+
export { knownEventNames, knownTypeNames, scanDocument } from './symbols';
|
|
14
|
+
export type { CommandSymbol, ConceptSymbol, DocumentSymbols, EventSymbol, ImportSymbol, NamedSymbol, PolicySymbol, PropertySymbol, QuerySymbol, TypeSymbol, } from './symbols';
|
|
15
15
|
export { attributeDocs, contextVariableDocs, keywordDocs } from './keyword-docs';
|
|
16
16
|
export { contextVariableItems, producesItems } from './completion-items';
|
|
17
17
|
export type { CompletionEntry } from './completion-items';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAGA,OAAO,EACH,MAAM,EAIT,MAAM,YAAY,CAAC;AA2BpB,wBAAgB,yBAAyB,IAAI,IAAI,CAGhD;AAED,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAA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AW,EACX,qBAAqB,EACrB,qBAAqB,GACxB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC1C,OAAO,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC1C,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACnF,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC1E,YAAY,EACR,aAAa,EACb,aAAa,EACb,eAAe,EACf,WAAW,EACX,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,cAAc,EACd,WAAW,EACX,UAAU,GACb,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACjF,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACzE,YAAY,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC7E,YAAY,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,YAAY,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -38,14 +38,14 @@ export function register(monaco) {
|
|
|
38
38
|
monaco.editor.defineTheme(screenplayLightThemeName, screenplayLight);
|
|
39
39
|
attachDiagnostics(monaco);
|
|
40
40
|
}
|
|
41
|
-
export { clauseKeywords, codeBlockTags, conceptAttributes, constructKeywords, languageId, primitiveTypes, sliceTypes, } from './language';
|
|
41
|
+
export { causedByProperties, clauseKeywords, codeBlockTags, conceptAttributes, constructKeywords, contextRoots, languageId, primitiveTypes, sliceTypes, } from './language';
|
|
42
42
|
export { getSubLanguage, getSubLanguages, registerSubLanguage } from './sub-language-registry';
|
|
43
43
|
export { pdl } from './sub-languages/pdl';
|
|
44
44
|
export { cdl } from './sub-languages/cdl';
|
|
45
45
|
export { screenplayDarkThemeName } from './themes/screenplay-dark';
|
|
46
46
|
export { screenplayLightThemeName } from './themes/screenplay-light';
|
|
47
47
|
export { enclosingChain, fenceMap, firstWord, indentOf } from './document-context';
|
|
48
|
-
export { knownEventNames, scanDocument } from './symbols';
|
|
48
|
+
export { knownEventNames, knownTypeNames, scanDocument } from './symbols';
|
|
49
49
|
export { attributeDocs, contextVariableDocs, keywordDocs } from './keyword-docs';
|
|
50
50
|
export { contextVariableItems, producesItems } from './completion-items';
|
|
51
51
|
export { completionEntriesFor, planCompletions } from './completion-planner';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAEH,qBAAqB,EACrB,sBAAsB,EACtB,UAAU,GACb,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EACH,cAAc,EACd,eAAe,EACf,qBAAqB,EACrB,mBAAmB,GACtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC1C,OAAO,EAAE,GAAG,EAAE,MAA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
|
|
1
|
-
{"version":3,"file":"keyword-docs.d.ts","sourceRoot":"","sources":["../keyword-docs.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"keyword-docs.d.ts","sourceRoot":"","sources":["../keyword-docs.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA0F9C,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAGhD,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAgBtD,CAAC"}
|