@imenam/mcp-feature-analyzer 1.0.31 → 1.0.32
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 +46 -3
- package/dist/shared/labels.d.ts +2 -0
- package/dist/shared/labels.js +2 -0
- package/dist/shared/schemas/analysis.schema.d.ts +34 -0
- package/dist/shared/schemas/analysis.schema.js +16 -0
- package/dist/shared/schemas/api.schema.d.ts +16 -1
- package/dist/shared/schemas/api.schema.js +11 -1
- package/dist/shared/schemas/ipc.schema.d.ts +1 -1
- package/dist/shared/schemas/ipc.schema.js +1 -0
- package/dist/src/core/analysis-store.d.ts +4 -0
- package/dist/src/core/analysis-store.js +9 -5
- package/dist/src/core/invariants.js +7 -0
- package/dist/src/core/migrate.d.ts +2 -0
- package/dist/src/core/migrate.js +11 -0
- package/dist/src/core/notifications.d.ts +67 -0
- package/dist/src/core/notifications.js +273 -0
- package/dist/src/core/review-actions.d.ts +12 -3
- package/dist/src/core/review-actions.js +50 -4
- package/dist/src/gui-worker.js +80 -2
- package/dist/src/index.js +99 -4
- package/dist/src/tools/get-analysis.js +7 -1
- package/dist/src/tools/notifications.d.ts +27 -0
- package/dist/src/tools/notifications.js +137 -0
- package/gui/dist/assets/{angular-html-CmKD3qPJ.js → angular-html-CCsi6pU-.js} +1 -1
- package/gui/dist/assets/{angular-ts-CUV4f-7a.js → angular-ts-D3b0p2ec.js} +1 -1
- package/gui/dist/assets/{apl-DCOueFDH.js → apl-B_lcYoHG.js} +1 -1
- package/gui/dist/assets/{astro-BD_jikG2.js → astro-C8m0ax-G.js} +1 -1
- package/gui/dist/assets/{blade--LKfGpL_.js → blade-BTaoP0KJ.js} +1 -1
- package/gui/dist/assets/{c-C64vu1wx.js → c-SDXfbR0a.js} +1 -1
- package/gui/dist/assets/{chapel-CdXV9nyw.js → chapel-CvA97ZeU.js} +1 -1
- package/gui/dist/assets/{cobol-CIeHGuXr.js → cobol-CVtUeO01.js} +1 -1
- package/gui/dist/assets/{coffee-Bkn2a3NA.js → coffee-hRo5RQ8B.js} +1 -1
- package/gui/dist/assets/{cpp-C3fB8Y2b.js → cpp-BxoU2Hxs.js} +1 -1
- package/gui/dist/assets/{crystal-DAd9h7ft.js → crystal-CcX36hHQ.js} +1 -1
- package/gui/dist/assets/{css-DBARcyqi.js → css-CxWhmvIC.js} +1 -1
- package/gui/dist/assets/{edge-BNZ8haox.js → edge-QJOy4xlO.js} +1 -1
- package/gui/dist/assets/{elixir-D9JArLjY.js → elixir-C9LrWwAh.js} +1 -1
- package/gui/dist/assets/{elm-BdV8wsvX.js → elm-BR3U0yD_.js} +1 -1
- package/gui/dist/assets/{erb-C9NJWWn2.js → erb-CiOJpaDo.js} +1 -1
- package/gui/dist/assets/{git-rebase-C7eVPIjR.js → git-rebase-BYl4P3ox.js} +1 -1
- package/gui/dist/assets/{glimmer-js-BYHDLB8h.js → glimmer-js-Blh2OVv1.js} +1 -1
- package/gui/dist/assets/{glimmer-ts-2zbF0Evu.js → glimmer-ts-DXr9mcSj.js} +1 -1
- package/gui/dist/assets/{glsl-DkVhwxyT.js → glsl-CnZQZULb.js} +1 -1
- package/gui/dist/assets/{graphql-c5VbsYm4.js → graphql-8Rdi2_E3.js} +1 -1
- package/gui/dist/assets/{hack-ZGsLC-jN.js → hack-CKSTrDJQ.js} +1 -1
- package/gui/dist/assets/{haml-CbXyCehf.js → haml-BXUwL6Gi.js} +1 -1
- package/gui/dist/assets/{handlebars-C-NYLeBr.js → handlebars-CoB9_4Wu.js} +1 -1
- package/gui/dist/assets/{html-B0yhsy4d.js → html-B6C5qCrz.js} +1 -1
- package/gui/dist/assets/{html-derivative-VQyqZXW8.js → html-derivative-Bk9jovvn.js} +1 -1
- package/gui/dist/assets/{http-C-aT1t0_.js → http-BjGXUZ-r.js} +1 -1
- package/gui/dist/assets/{hurl-Dl1RZ9Gp.js → hurl-DTlVMspc.js} +1 -1
- package/gui/dist/assets/index-Cr9HJaGX.css +1 -0
- package/gui/dist/assets/{index-DnIoVeij.js → index-dM30WmvE.js} +18 -18
- package/gui/dist/assets/{java-0vBBZHSu.js → java-Bh1jVWfi.js} +1 -1
- package/gui/dist/assets/{javascript-DeblizDv.js → javascript-CAp5Mnzl.js} +1 -1
- package/gui/dist/assets/{jinja-CvT6pZVi.js → jinja-rB-QNUyu.js} +1 -1
- package/gui/dist/assets/{jison-xhWB-hJt.js → jison-VA6AlkMv.js} +1 -1
- package/gui/dist/assets/{json-lrbKMNAx.js → json-D_3nkZlx.js} +1 -1
- package/gui/dist/assets/{jsx-AvOeMWx5.js → jsx-vCtnSopd.js} +1 -1
- package/gui/dist/assets/{julia-CCVS_Afm.js → julia-DzWcxIlS.js} +1 -1
- package/gui/dist/assets/{just-D0rQgjf2.js → just-Cib470fM.js} +1 -1
- package/gui/dist/assets/{latex-DgGx6yXU.js → latex-B9Rt9Nm7.js} +1 -1
- package/gui/dist/assets/{liquid-D95OegEg.js → liquid-CpUpBdB-.js} +1 -1
- package/gui/dist/assets/{lua-5KNos9qZ.js → lua-ABZXQo7L.js} +1 -1
- package/gui/dist/assets/{marko-BpMwNtg_.js → marko-BqS1ITvl.js} +1 -1
- package/gui/dist/assets/{mdc-Dul0I4vt.js → mdc-BU5NTqUw.js} +1 -1
- package/gui/dist/assets/{nginx-B2gDZimP.js → nginx-CPJvj-oD.js} +1 -1
- package/gui/dist/assets/{nim-D9V6BvZF.js → nim-DP5c8JP-.js} +1 -1
- package/gui/dist/assets/{org-BDDVerq9.js → org-z8oygnoy.js} +1 -1
- package/gui/dist/assets/{perl-BeFJyiyg.js → perl-BOKTfCaa.js} +1 -1
- package/gui/dist/assets/{php-ClsyOlLU.js → php-Bxp7SLwc.js} +1 -1
- package/gui/dist/assets/{pug-Bw7ZuWMB.js → pug-YbOie-Gt.js} +1 -1
- package/gui/dist/assets/{qml-VKAIx01f.js → qml-BoW83Fyx.js} +1 -1
- package/gui/dist/assets/{r-BbmN2hL3.js → r-BOTGEI5j.js} +1 -1
- package/gui/dist/assets/{razor-x_jMVj8b.js → razor-Ci4nB3jF.js} +1 -1
- package/gui/dist/assets/{regexp-COLYAzG8.js → regexp-BumEaKrn.js} +1 -1
- package/gui/dist/assets/{rst-Cr40Lerq.js → rst-DtqBiJDu.js} +1 -1
- package/gui/dist/assets/{ruby-CLGGotZ-.js → ruby-D1kPpSHI.js} +1 -1
- package/gui/dist/assets/{sas-DWBWO9Y5.js → sas-14YEmckC.js} +1 -1
- package/gui/dist/assets/{scss-BzKAiQYV.js → scss-DFjEDCH3.js} +1 -1
- package/gui/dist/assets/{shellscript-D2u4cPDX.js → shellscript-DPod_v0w.js} +1 -1
- package/gui/dist/assets/{shellsession-Ccl-2bAD.js → shellsession-tu7P7CZw.js} +1 -1
- package/gui/dist/assets/{soy-iOU5rhs2.js → soy-CGE1c2SC.js} +1 -1
- package/gui/dist/assets/{sql-BEWq1vME.js → sql-CaS7isii.js} +1 -1
- package/gui/dist/assets/{stata-yz3nZ7Wz.js → stata-Q1HKOyRT.js} +1 -1
- package/gui/dist/assets/{surrealql-DQG5rJ06.js → surrealql-BtSPewz7.js} +1 -1
- package/gui/dist/assets/{svelte-CF3TXZKT.js → svelte-U6EZswjv.js} +1 -1
- package/gui/dist/assets/{templ-C4GJOtRU.js → templ-Dv6Hh6ZK.js} +1 -1
- package/gui/dist/assets/{tex-D2FpWKcl.js → tex-FNxy8pwc.js} +1 -1
- package/gui/dist/assets/{ts-tags-CUP-vv3j.js → ts-tags-QwSPCwFk.js} +1 -1
- package/gui/dist/assets/{tsx-dMhwOSyy.js → tsx-DD4r3epl.js} +1 -1
- package/gui/dist/assets/{twig-BTWubnl3.js → twig-CF2Q5rKi.js} +1 -1
- package/gui/dist/assets/{typescript-C8UFvOTX.js → typescript-BH94Wa6R.js} +1 -1
- package/gui/dist/assets/{typst-CJXqwXsh.js → typst-FVLFkJ8V.js} +1 -1
- package/gui/dist/assets/{vue-X9Wwm2mD.js → vue-CgIy39RZ.js} +1 -1
- package/gui/dist/assets/{vue-html-DRPxRQ6-.js → vue-html-BK18RzGS.js} +1 -1
- package/gui/dist/assets/{vue-vine-Bt58w4aD.js → vue-vine-Ca-3XU_O.js} +1 -1
- package/gui/dist/assets/{xml-lUPi6MU7.js → xml-CrlmnYy6.js} +1 -1
- package/gui/dist/assets/{xsl-BieZRR5a.js → xsl-CTdshCNA.js} +1 -1
- package/gui/dist/assets/{yaml-DAVBBHYU.js → yaml-DVKeB6J_.js} +1 -1
- package/gui/dist/index.html +2 -2
- package/package.json +1 -1
- package/gui/dist/assets/index-V1Ga6Ikg.css +0 -1
package/dist/src/index.js
CHANGED
|
@@ -16,9 +16,9 @@ import { DEFAULT_HEAD_REF, localRepo } from "./core/git.js";
|
|
|
16
16
|
import { agentRepo } from "./core/agent-repo.js";
|
|
17
17
|
import { EXEC_ARG, handleAgentExec } from "./core/gateway-exec.js";
|
|
18
18
|
import { resolveRole } from "./core/role.js";
|
|
19
|
-
import { addNote, deleteNote, markProcessedByReviewer, setFileLevel, setFileReviewed, setFindingStatus, submitReview, updateNote, } from "./core/review-actions.js";
|
|
19
|
+
import { addNote, deleteNote, markAnswerSeen, markProcessedByReviewer, setFileLevel, setFileReviewed, setFindingStatus, submitReview, updateNote, } from "./core/review-actions.js";
|
|
20
20
|
import { GUI_REQUEST_TYPES, IPCMessageSchema } from "../shared/schemas/ipc.schema.js";
|
|
21
|
-
import { AddNoteRequestSchema, AnalysisRequestSchema, DeleteNoteRequestSchema, SetFileLevelRequestSchema, SetFileReviewedRequestSchema, SetFindingStatusRequestSchema, SubmitReviewRequestSchema, MarkProcessedRequestSchema, UpdateNoteRequestSchema, } from "../shared/schemas/api.schema.js";
|
|
21
|
+
import { AddNoteRequestSchema, AnalysisRequestSchema, DeleteNoteRequestSchema, MarkAnswerSeenRequestSchema, SetFileLevelRequestSchema, SetFileReviewedRequestSchema, SetFindingStatusRequestSchema, SubmitReviewRequestSchema, MarkProcessedRequestSchema, UpdateNoteRequestSchema, } from "../shared/schemas/api.schema.js";
|
|
22
22
|
import { ANALYSIS_MODES, DIAGRAM_KINDS, EXPLANATION_SIDES, FILE_LEVELS, FINDING_KINDS, NODE_SHAPES, NODE_STATUSES, SEVERITIES, } from "../shared/schemas/analysis.schema.js";
|
|
23
23
|
import { errorResult, textResult } from "./tools/types.js";
|
|
24
24
|
import { createAnalysis } from "./tools/create-analysis.js";
|
|
@@ -40,6 +40,8 @@ import { getReviewFeedback } from "./tools/get-review-feedback.js";
|
|
|
40
40
|
import { markFeedbackProcessed } from "./tools/mark-feedback-processed.js";
|
|
41
41
|
import { analysisLinks } from "./core/follow-ups.js";
|
|
42
42
|
import { deleteAnalysis } from "./tools/delete-analysis.js";
|
|
43
|
+
import { removeOwnHandoffs } from "./core/notifications.js";
|
|
44
|
+
import { DEFAULT_NOTIFICATION_WAIT_SECONDS, MAX_NOTIFICATION_WAIT_SECONDS, WATCH_ARG, answerQuestion, enableNotifications, waitForNotifications, } from "./tools/notifications.js";
|
|
43
45
|
const __filename = fileURLToPath(import.meta.url);
|
|
44
46
|
const __dirname = path.dirname(__filename);
|
|
45
47
|
// Les flags CLI sont traités avant toute initialisation : ils s'exécutent dans le
|
|
@@ -54,6 +56,20 @@ if (process.argv.slice(2).includes("--claude-setup-mcp")) {
|
|
|
54
56
|
}
|
|
55
57
|
process.exit(runSetupMcp({ cwd: process.cwd(), force: argv.includes("--force"), exposure: parsed.exposure }));
|
|
56
58
|
}
|
|
59
|
+
// Veilleur de notifications lancé par l'outil Monitor : il lit son relais, pas l'environnement du MCP.
|
|
60
|
+
const watchIndex = process.argv.indexOf("--watch");
|
|
61
|
+
if (watchIndex !== -1) {
|
|
62
|
+
const key = process.argv[watchIndex + 1];
|
|
63
|
+
const { runWatchMode } = await import("./core/notifications.js");
|
|
64
|
+
try {
|
|
65
|
+
await runWatchMode(key && !key.startsWith("-") ? key : null);
|
|
66
|
+
}
|
|
67
|
+
catch (err) {
|
|
68
|
+
process.stderr.write(`[feature-analyzer] ${err.message}\n`);
|
|
69
|
+
process.exit(1);
|
|
70
|
+
}
|
|
71
|
+
process.exit(0);
|
|
72
|
+
}
|
|
57
73
|
function findProjectRoot(startDir) {
|
|
58
74
|
let current = startDir;
|
|
59
75
|
while (current !== path.dirname(current)) {
|
|
@@ -86,6 +102,13 @@ catch (err) {
|
|
|
86
102
|
process.exit(1);
|
|
87
103
|
}
|
|
88
104
|
const store = new AnalysisStore(dataDir);
|
|
105
|
+
const entryScript = fileURLToPath(import.meta.url).replace(/\\/g, "/");
|
|
106
|
+
const notificationContext = {
|
|
107
|
+
store,
|
|
108
|
+
dataDir,
|
|
109
|
+
watchCommand: (analysisId) => `node "${entryScript}" --watch ${analysisId}`,
|
|
110
|
+
};
|
|
111
|
+
process.on("exit", removeOwnHandoffs);
|
|
89
112
|
/** Présentation du serveur transmise au client MCP : concepts, déroulé et règles. */
|
|
90
113
|
const INSTRUCTIONS = `mcp-feature-analyzer helps a human review a feature you developed. You write the analysis through these tools; the user reviews it in a web GUI and records feedback that you read back.
|
|
91
114
|
|
|
@@ -98,6 +121,8 @@ Concepts:
|
|
|
98
121
|
- An **explanation** describes what a block of added or removed code does and how it works, so that the reviewer understands it before judging it. It is not a finding: it judges nothing and asks for nothing. It is anchored on new-side lines (added code) or old-side lines (removed code), and shown in the diff above the lines it describes.
|
|
99
122
|
- A **diagram** is a flow, layers or mindmap picture of the feature. You give nodes and links only; the GUI lays them out.
|
|
100
123
|
- The **review** belongs to the reviewer: files marked reviewed, findings ignored, notes, and a submitted decision with a prompt for you.
|
|
124
|
+
- A **question** is a note the reviewer sends you right away instead of keeping it for the end of the review. It stays in the review with your answer, but is never part of the submitted feedback: answer it with answer_question as soon as it reaches you.
|
|
125
|
+
- **Notifications**: enable_notifications hands you a watcher to arm with the Monitor tool; it announces the reviewer's questions and the submitted review of one analysis and of its follow-up reviews, and nothing of the other analyses.
|
|
101
126
|
- A **follow-up review** is a new analysis created with follow_up_of: it reviews the fixes for the submitted feedback of an earlier analysis. Each analysis has at most one follow-up, so the rounds form a chain.
|
|
102
127
|
|
|
103
128
|
Workflow:
|
|
@@ -108,7 +133,7 @@ Workflow:
|
|
|
108
133
|
5. add_explanations for the long or complex blocks of added or removed code (see Explanation rules).
|
|
109
134
|
6. add_findings for every problem, including requirement_gap findings for requested behaviour that is missing.
|
|
110
135
|
7. set_diagram when a picture helps (impacted layers, process flow, concept tree).
|
|
111
|
-
8. Tell the user to review the analysis in the GUI (the link is in the tool results).
|
|
136
|
+
8. Tell the user to review the analysis in the GUI (the link is in the tool results), and call enable_notifications for that analysis, once per conversation, then arm the Monitor watcher it returns: the reviewer's questions and the submitted review then reach you on their own. Answer each question with answer_question.
|
|
112
137
|
9. get_review_feedback to read the decision, the selected points and the prompt. list_analyses with review_state "to_process" lists the submitted reviews you have not handled yet; an approved review has nothing to process.
|
|
113
138
|
10. Fix the code, then refresh_analysis to recompute the diff for a new review round; re-anchor or rewrite the outdated findings and explanations. When the fixes are in other commits (typically an analysis of one commit), create their follow-up review instead: create_analysis on the fix commits with follow_up_of set to the analysis you fixed; it marks that feedback processed and shows its points to the reviewer. When nothing needs a new review (answers given in the conversation), call mark_feedback_processed with a note saying how the feedback was handled.
|
|
114
139
|
|
|
@@ -230,6 +255,12 @@ function handleGuiRequest(msg) {
|
|
|
230
255
|
afterUserMutation(analysis.id);
|
|
231
256
|
return { analysis };
|
|
232
257
|
}
|
|
258
|
+
case "MARK_ANSWER_SEEN": {
|
|
259
|
+
const request = parseRequest(MarkAnswerSeenRequestSchema, msg.data);
|
|
260
|
+
const analysis = markAnswerSeen(store, request.analysisId, request.noteId, request.body);
|
|
261
|
+
afterUserMutation(analysis.id);
|
|
262
|
+
return { analysis };
|
|
263
|
+
}
|
|
233
264
|
case "SUBMIT_REVIEW": {
|
|
234
265
|
const request = parseRequest(SubmitReviewRequestSchema, msg.data);
|
|
235
266
|
const analysis = submitReview(store, request.analysisId, request.body);
|
|
@@ -751,6 +782,64 @@ const TOOLS = [
|
|
|
751
782
|
required: ["analysis_id"],
|
|
752
783
|
},
|
|
753
784
|
},
|
|
785
|
+
{
|
|
786
|
+
name: "enable_notifications",
|
|
787
|
+
description: "Get notified of what the reviewer does on one analysis and on its follow-up reviews, including the ones created later, and on nothing else: " +
|
|
788
|
+
"a question the reviewer sends you right away from the GUI, and a review the reviewer submits. " +
|
|
789
|
+
"Returns immediately and hands you the exact Monitor call to make right after: arming that watcher is what delivers the notifications. " +
|
|
790
|
+
"Call it once per conversation, after create_analysis, for the analysis you are working on: its follow-up reviews are covered, never arm a second watcher for them; the host stops the watcher after 30 minutes at most, " +
|
|
791
|
+
"re-arm it with the same Monitor call each time it expires. Works locally and behind mcp-http-gateway.",
|
|
792
|
+
inputSchema: {
|
|
793
|
+
type: "object",
|
|
794
|
+
properties: {
|
|
795
|
+
analysis_id: { type: "string", description: `${ANALYSIS_ID_DOC} Its follow-up reviews are watched too.` },
|
|
796
|
+
[WATCH_ARG]: {
|
|
797
|
+
type: "object",
|
|
798
|
+
description: "Filled in by the mcp-http-gateway relay, never by the agent: the relay will run the watcher and needs a watch specification instead of a local command",
|
|
799
|
+
},
|
|
800
|
+
},
|
|
801
|
+
required: ["analysis_id"],
|
|
802
|
+
},
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
name: "wait_for_notifications",
|
|
806
|
+
description: "Reserved for the notification watcher that the mcp-http-gateway relay runs on the agent's machine: do not call it yourself. " +
|
|
807
|
+
"To be notified, call enable_notifications. " +
|
|
808
|
+
"Blocks until an event of the analysis or of its follow-up reviews happens after the cursor (a question from the reviewer, a submitted review), or until the timeout, " +
|
|
809
|
+
"and returns one line per event with the next cursor.",
|
|
810
|
+
inputSchema: {
|
|
811
|
+
type: "object",
|
|
812
|
+
properties: {
|
|
813
|
+
analysis_id: { type: "string", description: ANALYSIS_ID_DOC },
|
|
814
|
+
cursor: {
|
|
815
|
+
type: "string",
|
|
816
|
+
pattern: "^[0-9]+$",
|
|
817
|
+
description: "Cursor returned by the previous call. Omit to wait for events from now on.",
|
|
818
|
+
},
|
|
819
|
+
timeout_seconds: {
|
|
820
|
+
type: "integer",
|
|
821
|
+
minimum: 1,
|
|
822
|
+
maximum: MAX_NOTIFICATION_WAIT_SECONDS,
|
|
823
|
+
description: `Maximum wait in seconds (default ${DEFAULT_NOTIFICATION_WAIT_SECONDS}).`,
|
|
824
|
+
},
|
|
825
|
+
},
|
|
826
|
+
required: ["analysis_id"],
|
|
827
|
+
},
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
name: "answer_question",
|
|
831
|
+
description: "Answer a question the reviewer sent you right away from the GUI (announced by the notification watcher, listed by get_analysis among the reviewer notes). " +
|
|
832
|
+
"The reviewer reads the answer next to the question in the GUI. A question is answered once; it is never part of the submitted feedback.",
|
|
833
|
+
inputSchema: {
|
|
834
|
+
type: "object",
|
|
835
|
+
properties: {
|
|
836
|
+
analysis_id: { type: "string", description: ANALYSIS_ID_DOC },
|
|
837
|
+
question_id: { type: "string", description: "Id of the question, as given by the notification or get_analysis." },
|
|
838
|
+
answer: { type: "string", description: "Your answer, in the reviewer's language. Plain text; line breaks are kept." },
|
|
839
|
+
},
|
|
840
|
+
required: ["analysis_id", "question_id", "answer"],
|
|
841
|
+
},
|
|
842
|
+
},
|
|
754
843
|
{
|
|
755
844
|
name: "refresh_analysis",
|
|
756
845
|
description: "Recompute the frozen diff with the same repository, mode and refs, after fixing the code. " +
|
|
@@ -789,7 +878,7 @@ function withRepoAccess(exec, fn) {
|
|
|
789
878
|
return fn(localRepo);
|
|
790
879
|
return handleAgentExec(exec, (run) => fn((repoPath) => agentRepo(repoPath, run)));
|
|
791
880
|
}
|
|
792
|
-
server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
881
|
+
server.setRequestHandler(CallToolRequestSchema, async (request, extra) => {
|
|
793
882
|
const { name, arguments: args } = request.params;
|
|
794
883
|
// L'argument réservé du relais agent accompagne tous les appels d'une route listée dans GATEWAY_EXEC_ROUTES.
|
|
795
884
|
const { [EXEC_ARG]: exec, ...params } = (args ?? {});
|
|
@@ -833,6 +922,12 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
833
922
|
return afterMutation(deleteDiagram(store, params));
|
|
834
923
|
case "mark_feedback_processed":
|
|
835
924
|
return afterMutation(markFeedbackProcessed(store, params));
|
|
925
|
+
case "answer_question":
|
|
926
|
+
return afterMutation(answerQuestion(store, params));
|
|
927
|
+
case "enable_notifications":
|
|
928
|
+
return enableNotifications(notificationContext, params);
|
|
929
|
+
case "wait_for_notifications":
|
|
930
|
+
return await waitForNotifications(notificationContext, params, extra.signal);
|
|
836
931
|
case "refresh_analysis":
|
|
837
932
|
return await withRepoAccess(exec, async (repoFor) => afterMutation(await refreshAnalysis(store, params, repoFor)));
|
|
838
933
|
case "delete_analysis": {
|
|
@@ -6,7 +6,13 @@ import { sortBySeverity } from "../../shared/severity.js";
|
|
|
6
6
|
import { classificationLabel, fileLine, explanationLine, fileTotals, findingLine, followUpLines, noteLocationLabel, overviewLines, progressLabel, severityCountsLabel, snapshotLabel, } from "./format.js";
|
|
7
7
|
import { rejectUnknownFields, requireString, textResult } from "./types.js";
|
|
8
8
|
function noteLine(note) {
|
|
9
|
-
|
|
9
|
+
const line = `${note.id} — ${noteLocationLabel(note)} — ${note.text.replace(/\n/g, " / ")}`;
|
|
10
|
+
if (note.question === null)
|
|
11
|
+
return line;
|
|
12
|
+
const answer = note.question.answer;
|
|
13
|
+
return answer === null
|
|
14
|
+
? `${line} — QUESTION sent at ${note.question.askedAt}, not answered yet: answer it with answer_question`
|
|
15
|
+
: `${line} — QUESTION answered at ${answer.at}: ${answer.text.replace(/\n/g, " / ")}`;
|
|
10
16
|
}
|
|
11
17
|
function reviewLines(analysis) {
|
|
12
18
|
const review = analysis.review;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { AnalysisStore } from "../core/analysis-store.js";
|
|
2
|
+
import { type Args, type MutationResult, type ToolResult } from "./types.js";
|
|
3
|
+
/** Argument réservé que le relais de mcp-http-gateway ajoute quand il exécute lui-même le veilleur. */
|
|
4
|
+
export declare const WATCH_ARG = "_gateway_watch";
|
|
5
|
+
export declare const DEFAULT_NOTIFICATION_WAIT_SECONDS = 50;
|
|
6
|
+
export declare const MAX_NOTIFICATION_WAIT_SECONDS = 300;
|
|
7
|
+
/** Ce que les outils de notification lisent du serveur. */
|
|
8
|
+
export interface NotificationContext {
|
|
9
|
+
store: AnalysisStore;
|
|
10
|
+
dataDir: string;
|
|
11
|
+
/** Commande du veilleur local d'une analyse, à passer à l'outil Monitor. */
|
|
12
|
+
watchCommand: (analysisId: string) => string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* `enable_notifications` : dépose le relais de l'analyse et renvoie l'appel Monitor à
|
|
16
|
+
* faire. Derrière mcp-http-gateway, renvoie la spécification de veille que le relais
|
|
17
|
+
* exécute avec `wait_for_notifications`.
|
|
18
|
+
*/
|
|
19
|
+
export declare function enableNotifications(ctx: NotificationContext, args: Args): ToolResult;
|
|
20
|
+
/**
|
|
21
|
+
* `wait_for_notifications` : attend un événement de l'analyse ou de ses revues de suivi postérieur au curseur, ou
|
|
22
|
+
* l'échéance, et renvoie une ligne par événement avec le curseur suivant. Réservé au
|
|
23
|
+
* veilleur du relais de mcp-http-gateway.
|
|
24
|
+
*/
|
|
25
|
+
export declare function waitForNotifications(ctx: NotificationContext, args: Args, signal?: AbortSignal): Promise<ToolResult>;
|
|
26
|
+
/** `answer_question` : enregistre la réponse de l'agent à une question du relecteur. */
|
|
27
|
+
export declare function answerQuestion(store: AnalysisStore, args: Args): MutationResult;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { AnalysisError } from "../core/errors.js";
|
|
2
|
+
import { MONITOR_TIMEOUT_MS, ReviewEventScanner, WATCHER_BEAT_MS, advanceCursor, formatEvent, liveWatcherSince, sleep, writeHandoff, writeWatcherBeat, } from "../core/notifications.js";
|
|
3
|
+
import { answerQuestion as recordAnswer } from "../core/review-actions.js";
|
|
4
|
+
import { noteLocationText } from "../../shared/text.js";
|
|
5
|
+
import { optionalPositiveInt, rejectUnknownFields, requireString, requireText, textResult } from "./types.js";
|
|
6
|
+
/** Argument réservé que le relais de mcp-http-gateway ajoute quand il exécute lui-même le veilleur. */
|
|
7
|
+
export const WATCH_ARG = "_gateway_watch";
|
|
8
|
+
const WATCH_META = "gateway/watch";
|
|
9
|
+
const EVENTS_META = "gateway/events";
|
|
10
|
+
export const DEFAULT_NOTIFICATION_WAIT_SECONDS = 50;
|
|
11
|
+
export const MAX_NOTIFICATION_WAIT_SECONDS = 300;
|
|
12
|
+
const POLL_MS = 1_000;
|
|
13
|
+
/** Analyse existante désignée par `analysis_id`. */
|
|
14
|
+
function requireAnalysis(store, args) {
|
|
15
|
+
return store.get(requireString(args, "analysis_id"));
|
|
16
|
+
}
|
|
17
|
+
function pendingQuestionsNote(scanner, cursor) {
|
|
18
|
+
const pending = scanner.pendingQuestionsUntil(cursor);
|
|
19
|
+
if (pending.length === 0)
|
|
20
|
+
return [];
|
|
21
|
+
return [
|
|
22
|
+
"",
|
|
23
|
+
`${pending.length} question(s) sent before this watcher are still unanswered; the watcher does not announce them:`,
|
|
24
|
+
...pending.map((question) => ` ${question.analysisId} / ${question.questionId}${question.location ? ` (${noteLocationText(question.location)})` : ""}: ${question.text.replace(/\s+/g, " ")}`),
|
|
25
|
+
"Answer them with answer_question.",
|
|
26
|
+
];
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* `enable_notifications` : dépose le relais de l'analyse et renvoie l'appel Monitor à
|
|
30
|
+
* faire. Derrière mcp-http-gateway, renvoie la spécification de veille que le relais
|
|
31
|
+
* exécute avec `wait_for_notifications`.
|
|
32
|
+
*/
|
|
33
|
+
export function enableNotifications(ctx, args) {
|
|
34
|
+
rejectUnknownFields(args, ["analysis_id", WATCH_ARG]);
|
|
35
|
+
const analysis = requireAnalysis(ctx.store, args);
|
|
36
|
+
const description = `feature-analyzer review ${analysis.id}`;
|
|
37
|
+
const scanner = new ReviewEventScanner(ctx.store, analysis.id);
|
|
38
|
+
if (args?.[WATCH_ARG] !== undefined) {
|
|
39
|
+
const cursor = Date.now();
|
|
40
|
+
return {
|
|
41
|
+
content: [{ type: "text", text: ["Watch specification for the mcp-http-gateway relay.", ...pendingQuestionsNote(scanner, cursor)].join("\n") }],
|
|
42
|
+
_meta: {
|
|
43
|
+
[WATCH_META]: {
|
|
44
|
+
tool: "wait_for_notifications",
|
|
45
|
+
arguments: { analysis_id: analysis.id },
|
|
46
|
+
cursor: String(cursor),
|
|
47
|
+
description,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
const cursor = writeHandoff(analysis.id, ctx.dataDir);
|
|
53
|
+
const command = ctx.watchCommand(analysis.id);
|
|
54
|
+
const since = liveWatcherSince(ctx.dataDir, analysis.id);
|
|
55
|
+
if (since) {
|
|
56
|
+
return textResult([
|
|
57
|
+
`Notifications are already live for the review "${analysis.title}" (${analysis.id}) since ${since}: they cover its follow-up reviews too.`,
|
|
58
|
+
"Nothing to do: do not arm a second watcher, you would get every notification twice.",
|
|
59
|
+
"Only if the host just told you your watcher expired or stopped, re-arm it with the same Monitor call:",
|
|
60
|
+
`command \`${command}\`, timeout_ms ${MONITOR_TIMEOUT_MS}.`,
|
|
61
|
+
].join("\n"));
|
|
62
|
+
}
|
|
63
|
+
return textResult([
|
|
64
|
+
`Notifications enabled for the review "${analysis.title}" (${analysis.id}).`,
|
|
65
|
+
"",
|
|
66
|
+
"Last step — call the Monitor tool now, with exactly these arguments:",
|
|
67
|
+
` command: ${command}`,
|
|
68
|
+
` description: ${description}`,
|
|
69
|
+
` timeout_ms: ${MONITOR_TIMEOUT_MS}`,
|
|
70
|
+
"",
|
|
71
|
+
"Until that watcher is armed, nothing will reach you. Once it is, keep working: it covers this review and its follow-up",
|
|
72
|
+
"reviews, including the ones created later — and nothing else: the other reviews are left to their own agents.",
|
|
73
|
+
"When the reviewer sends you a question from the GUI, a line gives the review, the location, the question and its",
|
|
74
|
+
"question_id: answer it right away with answer_question; the reviewer reads the answer in the GUI.",
|
|
75
|
+
"When the reviewer submits the review, a line gives the decision: read the feedback with get_review_feedback.",
|
|
76
|
+
"",
|
|
77
|
+
"The host stops every monitor after 30 minutes at most. Each time it tells you this watcher expired, call",
|
|
78
|
+
"Monitor again right away with the same arguments — do not call enable_notifications again. An event that",
|
|
79
|
+
"happened while no watcher was running is announced as soon as the watcher is back.",
|
|
80
|
+
...pendingQuestionsNote(scanner, cursor),
|
|
81
|
+
].join("\n"));
|
|
82
|
+
}
|
|
83
|
+
const gatewayBeats = new Map();
|
|
84
|
+
/** Battement du veilleur exécuté par le relais : il n'a pas de processus local qui écrive le sien. */
|
|
85
|
+
function beatGatewayWatcher(dataDir, analysisId) {
|
|
86
|
+
const last = gatewayBeats.get(analysisId);
|
|
87
|
+
if (last && Date.now() - last.at < WATCHER_BEAT_MS)
|
|
88
|
+
return;
|
|
89
|
+
const since = last?.since ?? new Date().toISOString();
|
|
90
|
+
writeWatcherBeat(dataDir, analysisId, since);
|
|
91
|
+
gatewayBeats.set(analysisId, { since, at: Date.now() });
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* `wait_for_notifications` : attend un événement de l'analyse ou de ses revues de suivi postérieur au curseur, ou
|
|
95
|
+
* l'échéance, et renvoie une ligne par événement avec le curseur suivant. Réservé au
|
|
96
|
+
* veilleur du relais de mcp-http-gateway.
|
|
97
|
+
*/
|
|
98
|
+
export async function waitForNotifications(ctx, args, signal) {
|
|
99
|
+
rejectUnknownFields(args, ["analysis_id", "cursor", "timeout_seconds"]);
|
|
100
|
+
const analysisId = requireAnalysis(ctx.store, args).id;
|
|
101
|
+
const rawCursor = args?.cursor;
|
|
102
|
+
if (rawCursor !== undefined && (typeof rawCursor !== "string" || !/^\d+$/.test(rawCursor))) {
|
|
103
|
+
throw new AnalysisError(`"cursor" must be the cursor returned by the previous call, a string of digits (got ${JSON.stringify(rawCursor)}).`);
|
|
104
|
+
}
|
|
105
|
+
const timeout = optionalPositiveInt(args, "timeout_seconds") ?? DEFAULT_NOTIFICATION_WAIT_SECONDS;
|
|
106
|
+
if (timeout > MAX_NOTIFICATION_WAIT_SECONDS) {
|
|
107
|
+
throw new AnalysisError(`"timeout_seconds" must be at most ${MAX_NOTIFICATION_WAIT_SECONDS} (got ${timeout}).`);
|
|
108
|
+
}
|
|
109
|
+
const scanner = new ReviewEventScanner(ctx.store, analysisId);
|
|
110
|
+
let cursor = rawCursor === undefined ? Date.now() : Number(rawCursor);
|
|
111
|
+
const deadline = Date.now() + timeout * 1000;
|
|
112
|
+
for (;;) {
|
|
113
|
+
beatGatewayWatcher(ctx.dataDir, analysisId);
|
|
114
|
+
const events = scanner.since(cursor);
|
|
115
|
+
if (events.length > 0 || Date.now() >= deadline || signal?.aborted) {
|
|
116
|
+
cursor = advanceCursor(cursor, events);
|
|
117
|
+
const lines = events.map(formatEvent);
|
|
118
|
+
return {
|
|
119
|
+
content: [{ type: "text", text: JSON.stringify({ received: lines.length, cursor: String(cursor), lines }) }],
|
|
120
|
+
_meta: { [EVENTS_META]: { cursor: String(cursor), lines } },
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
await sleep(Math.min(POLL_MS, Math.max(0, deadline - Date.now())), signal);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
/** `answer_question` : enregistre la réponse de l'agent à une question du relecteur. */
|
|
127
|
+
export function answerQuestion(store, args) {
|
|
128
|
+
rejectUnknownFields(args, ["analysis_id", "question_id", "answer"]);
|
|
129
|
+
const id = requireString(args, "analysis_id");
|
|
130
|
+
const questionId = requireString(args, "question_id");
|
|
131
|
+
const answer = requireText(args, "answer").trim();
|
|
132
|
+
const updated = recordAnswer(store, id, questionId, answer);
|
|
133
|
+
return {
|
|
134
|
+
result: textResult(`Answered question ${questionId} of "${updated.title}" (${updated.id}): the reviewer reads the answer in the GUI.`),
|
|
135
|
+
analysisId: updated.id,
|
|
136
|
+
};
|
|
137
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./index-DnIoVeij.js";import{t}from"./html-B0yhsy4d.js";var n=[Object.freeze(JSON.parse('{"injectionSelector":"L:text.html -comment","name":"angular-expression","patterns":[{"include":"#ngExpression"}],"repository":{"arrayLiteral":{"begin":"\\\\[","beginCaptures":{"0":{"name":"meta.brace.square.ts"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.ts"}},"name":"meta.array.literal.ts","patterns":[{"include":"#ngExpression"},{"include":"#punctuationComma"}]},"booleanLiteral":{"patterns":[{"match":"(?<![$.])\\\\btrue\\\\b(?!\\\\$)","name":"constant.language.boolean.true.ts"},{"match":"(?<![$.])\\\\bfalse\\\\b(?!\\\\$)","name":"constant.language.boolean.false.ts"}]},"expressionOperator":{"patterns":[{"captures":{"1":{"name":"keyword.operator.logical.ts"},"2":{"name":"entity.name.function.pipe.ng"}},"match":"((?<!\\\\|)\\\\|(?!\\\\|))\\\\s?([-$0-9A-Z_a-z]*)"},{"match":"(?<![$.])\\\\b(let)\\\\b(?!\\\\$)","name":"storage.type.ts"},{"match":"(?<![$.])\\\\b(await)\\\\b(?!\\\\$)","name":"keyword.control.flow.ts"},{"match":"(?<![$.])\\\\bdelete\\\\b(?!\\\\$)","name":"keyword.operator.expression.delete.ts"},{"match":"(?<![$.])\\\\bin\\\\b(?!\\\\$)","name":"keyword.operator.expression.in.ts"},{"match":"(?<![$.])\\\\bof\\\\b(?!\\\\$)","name":"keyword.operator.expression.of.ts"},{"match":"(?<![$.])\\\\bif\\\\b(?!\\\\$)","name":"keyword.control.if.ts"},{"match":"(?<![$.])\\\\belse\\\\b(?!\\\\$)","name":"keyword.control.else.ts"},{"match":"(?<![$.])\\\\bthen\\\\b(?!\\\\$)","name":"keyword.control.then.ts"},{"match":"(?<![$.])\\\\binstanceof\\\\b(?!\\\\$)","name":"keyword.operator.expression.instanceof.ts"},{"match":"(?<![$.])\\\\bnew\\\\b(?!\\\\$)","name":"keyword.operator.new.ts"},{"match":"(?<![$.])\\\\bvoid\\\\b(?!\\\\$)","name":"keyword.operator.expression.void.ts"},{"begin":"(?<![$.])\\\\bas\\\\b(?!\\\\$)","beginCaptures":{"0":{"name":"storage.type.as.ts"}},"end":"(?=$|[]\\"\'),:;}])","patterns":[{"include":"#type"}]},{"match":"(?:\\\\*|(?<!\\\\()/|[-%+])=","name":"keyword.operator.assignment.compound.ts"},{"match":"(?:[\\\\&^]|<<|>>>??|\\\\|)=","name":"keyword.operator.assignment.compound.bitwise.ts"},{"match":"<<|>>>?","name":"keyword.operator.bitwise.shift.ts"},{"match":"[!=]==?","name":"keyword.operator.comparison.ts"},{"match":"<=|>=|<>|[<>]","name":"keyword.operator.relational.ts"},{"match":"!|&&|\\\\?\\\\?|\\\\|\\\\|","name":"keyword.operator.logical.ts"},{"match":"[\\\\&^|~]","name":"keyword.operator.bitwise.ts"},{"match":"=","name":"keyword.operator.assignment.ts"},{"match":"--","name":"keyword.operator.decrement.ts"},{"match":"\\\\+\\\\+","name":"keyword.operator.increment.ts"},{"match":"[-%*+/]","name":"keyword.operator.arithmetic.ts"},{"captures":{"1":{"name":"keyword.operator.arithmetic.ts"}},"match":"(?<=[$_[:alnum:]])\\\\s*(/)(?![*/])"},{"include":"#typeofOperator"}]},"functionCall":{"begin":"(?=(\\\\??\\\\.\\\\s*)?([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(<([^<>]|<[^<>]+>)+>\\\\s*)?\\\\()","end":"(?<=\\\\))(?!(\\\\??\\\\.\\\\s*)?([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(<([^<>]|<[^<>]+>)+>\\\\s*)?\\\\()","patterns":[{"match":"\\\\?","name":"punctuation.accessor.ts"},{"match":"\\\\.","name":"punctuation.accessor.ts"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.function.ts"},{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.typeparameters.begin.ts"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.ts"}},"name":"meta.type.parameters.ts","patterns":[{"include":"#type"},{"include":"#punctuationComma"}]},{"include":"#parenExpression"}]},"functionParameters":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.ts"}},"name":"meta.parameters.ts","patterns":[{"include":"#decorator"},{"include":"#parameterName"},{"include":"#variableInitializer"},{"match":",","name":"punctuation.separator.parameter.ts"}]},"identifiers":{"patterns":[{"match":"([$_[:alpha:]][$_[:alnum:]]*)(?=\\\\s*\\\\.\\\\s*prototype\\\\b(?!\\\\$))","name":"support.class.ts"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"constant.other.object.property.ts"},"3":{"name":"variable.other.object.property.ts"}},"match":"([!?]?\\\\.)\\\\s*(?:(\\\\p{upper}[$_\\\\d[:upper:]]*)|([$_[:alpha:]][$_[:alnum:]]*))(?=\\\\s*\\\\.\\\\s*[$_[:alpha:]][$_[:alnum:]]*)"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"entity.name.function.ts"}},"match":"(?:([!?]?\\\\.)\\\\s*)?([$_[:alpha:]][$_[:alnum:]]*)(?=\\\\s*=\\\\s*((async\\\\s+)|(function\\\\s*[(<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)|((<([^<>]|<[^<>]+>)+>\\\\s*)?\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)(\\\\s*:\\\\s*(.)*)?\\\\s*=>)))"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"constant.other.property.ts"}},"match":"([!?]?\\\\.)\\\\s*(\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"variable.other.property.ts"}},"match":"([!?]?\\\\.)\\\\s*([$_[:alpha:]][$_[:alnum:]]*)"},{"captures":{"1":{"name":"constant.other.object.ts"},"2":{"name":"variable.other.object.ts"}},"match":"(?:(\\\\p{upper}[$_\\\\d[:upper:]]*)|([$_[:alpha:]][$_[:alnum:]]*))(?=\\\\s*\\\\.\\\\s*[$_[:alpha:]][$_[:alnum:]]*)"},{"match":"(\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])","name":"constant.character.other"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"variable.other.readwrite.ts"}]},"literal":{"name":"literal.ts","patterns":[{"include":"#numericLiteral"},{"include":"#booleanLiteral"},{"include":"#nullLiteral"},{"include":"#undefinedLiteral"},{"include":"#numericConstantLiteral"},{"include":"#arrayLiteral"},{"include":"#thisLiteral"}]},"ngExpression":{"name":"meta.expression.ng","patterns":[{"include":"#string"},{"include":"#literal"},{"include":"#ternaryExpression"},{"include":"#expressionOperator"},{"include":"#functionCall"},{"include":"#identifiers"},{"include":"#parenExpression"},{"include":"#punctuationComma"},{"include":"#punctuationSemicolon"},{"include":"#punctuationAccessor"}]},"nullLiteral":{"match":"(?<![$.])\\\\bnull\\\\b(?!\\\\$)","name":"constant.language.null.ts"},"numericConstantLiteral":{"patterns":[{"match":"(?<![$.])\\\\bNaN\\\\b(?!\\\\$)","name":"constant.language.nan.ts"},{"match":"(?<![$.])\\\\bInfinity\\\\b(?!\\\\$)","name":"constant.language.infinity.ts"}]},"numericLiteral":{"patterns":[{"match":"\\\\b(?<!\\\\$)0([Xx])\\\\h+\\\\b(?!\\\\$)","name":"constant.numeric.hex.ts"},{"match":"\\\\b(?<!\\\\$)0([Bb])[01]+\\\\b(?!\\\\$)","name":"constant.numeric.binary.ts"},{"match":"\\\\\\\\b(?<!\\\\$)0([Oo])?[0-7]+\\\\b(?!\\\\$)","name":"constant.numeric.octal.ts"},{"captures":{"0":{"name":"constant.numeric.decimal.ts"},"1":{"name":"meta.delimiter.decimal.period.ts"},"2":{"name":"meta.delimiter.decimal.period.ts"},"3":{"name":"meta.delimiter.decimal.period.ts"},"4":{"name":"meta.delimiter.decimal.period.ts"},"5":{"name":"meta.delimiter.decimal.period.ts"},"6":{"name":"meta.delimiter.decimal.period.ts"}},"match":"(?<!\\\\$)(?:\\\\b[0-9]+(\\\\.)[0-9]+[Ee][-+]?[0-9]+\\\\b|\\\\b[0-9]+(\\\\.)[Ee][-+]?[0-9]+\\\\b|\\\\B(\\\\.)[0-9]+[Ee][-+]?[0-9]+\\\\b|\\\\b[0-9]+[Ee][-+]?[0-9]+\\\\b|\\\\b[0-9]+(\\\\.)\\\\B|\\\\B(\\\\.)[0-9]+\\\\b|\\\\b[0-9]+\\\\b(?!\\\\.))(?!\\\\$)"}]},"parameterName":{"patterns":[{"captures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"keyword.operator.rest.ts"},"4":{"name":"entity.name.function.ts"},"5":{"name":"keyword.operator.optional.ts"}},"match":"(?:\\\\s*\\\\b(readonly)\\\\s+)?(?:\\\\s*\\\\b(p(?:ublic|rivate|rotected))\\\\s+)?(\\\\.\\\\.\\\\.)?\\\\s*(?<![:=])([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(\\\\??)(?=\\\\s*(=\\\\s*((async\\\\s+)|(function\\\\s*[(<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)|((<([^<>]|<[^<>]+>)+>\\\\s*)?\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)(\\\\s*:\\\\s*(.)*)?\\\\s*=>)))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>))))))))"},{"captures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"keyword.operator.rest.ts"},"4":{"name":"variable.parameter.ts"},"5":{"name":"keyword.operator.optional.ts"}},"match":"(?:\\\\s*\\\\b(readonly)\\\\s+)?(?:\\\\s*\\\\b(p(?:ublic|rivate|rotected))\\\\s+)?(\\\\.\\\\.\\\\.)?\\\\s*(?<![:=])([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(\\\\??)"}]},"parenExpression":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"#ngExpression"},{"include":"#punctuationComma"}]},"punctuationAccessor":{"match":"(?:\\\\?|!?)\\\\.","name":"punctuation.accessor.ts"},"punctuationComma":{"match":",","name":"punctuation.separator.comma.ts"},"punctuationSemicolon":{"match":";","name":"punctuation.terminator.statement.ts"},"qstringDouble":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ts"}},"end":"(\\")|([^\\\\n\\\\\\\\])$","endCaptures":{"1":{"name":"punctuation.definition.string.end.ts"},"2":{"name":"invalid.illegal.newline.ts"}},"name":"string.quoted.double.ts","patterns":[{"include":"#stringCharacterEscape"}]},"qstringSingle":{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ts"}},"end":"(\')|([^\\\\n\\\\\\\\])$","endCaptures":{"1":{"name":"punctuation.definition.string.end.ts"},"2":{"name":"invalid.illegal.newline.ts"}},"name":"string.quoted.single.ts","patterns":[{"include":"#stringCharacterEscape"}]},"string":{"patterns":[{"include":"#qstringSingle"},{"include":"#qstringDouble"},{"include":"#templateLiteral"}]},"stringCharacterEscape":{"match":"\\\\\\\\(x\\\\h{2}|[012][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.|$)","name":"constant.character.escape.ts"},"templateLiteral":{"patterns":[{"include":"#templateLiteralCall"},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?(`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.ts"},"2":{"name":"string.template.ts punctuation.definition.string.template.begin.ts"}},"contentName":"string.template.ts","end":"`","endCaptures":{"0":{"name":"string.template.ts punctuation.definition.string.template.end.ts"}},"patterns":[{"include":"#templateLiteralSubstitutionElement"},{"include":"#stringCharacterEscape"}]}]},"templateLiteralCall":{"patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*\\\\s*\\\\??\\\\.\\\\s*)*|(\\\\??\\\\.\\\\s*)?)([$_[:alpha:]][$_[:alnum:]]*)(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)?`)","end":"(?=`)","patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*\\\\s*\\\\??\\\\.\\\\s*)*|(\\\\??\\\\.\\\\s*)?)([$_[:alpha:]][$_[:alnum:]]*))","end":"(?=(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)?`)","patterns":[{"include":"#support-function-call-identifiers"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.function.tagged-template.ts"}]},{"include":"#typeArguments"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?\\\\s*(?=(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.ts"}},"end":"(?=`)","patterns":[{"include":"#typeArguments"}]}]},"templateLiteralSubstitutionElement":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.ts"}},"contentName":"meta.embedded.line.ts","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.ts"}},"name":"meta.template.expression.ts","patterns":[{"include":"#ngExpression"}]},"ternaryExpression":{"begin":"(?!\\\\?\\\\.\\\\s*\\\\D)(\\\\?)(?!\\\\?)","beginCaptures":{"1":{"name":"keyword.operator.ternary.ts"}},"end":"\\\\s*(:)","endCaptures":{"1":{"name":"keyword.operator.ternary.ts"}},"patterns":[{"include":"#ngExpression"}]},"thisLiteral":{"match":"(?<![$.])\\\\bthis\\\\b(?!\\\\$)","name":"variable.language.this.ts"},"type":{"name":"meta.type.ts","patterns":[{"include":"#string"},{"include":"#numericLiteral"},{"include":"#typeBuiltinLiterals"},{"include":"#typeTuple"},{"include":"#typeObject"},{"include":"#typeOperators"},{"include":"#typeFnTypeParameters"},{"include":"#typeParenOrFunctionParameters"},{"include":"#typeName"}]},"typeAnnotation":{"begin":":","beginCaptures":{"0":{"name":"keyword.operator.type.annotation.ts"}},"end":"(?=$|[]),;}]|//|\\")|(?==[^>])|(?<=[]$)>_}[:alpha:]])\\\\s*(?=\\\\{)","name":"meta.type.annotation.ts","patterns":[{"include":"#type"}]},"typeArguments":{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.typeparameters.begin.ts"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.ts"}},"name":"meta.type.parameters.ts","patterns":[{"include":"#typeArgumentsBody"}]},"typeArgumentsBody":{"patterns":[{"captures":{"0":{"name":"keyword.operator.type.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(_)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))"},{"include":"#type"},{"include":"#punctuationComma"}]},"typeBuiltinLiterals":{"match":"(?<![$.])\\\\b(this|true|false|undefined|null)\\\\b(?!\\\\$)","name":"support.type.builtin.ts"},"typeFnTypeParameters":{"patterns":[{"captures":{"1":{"name":"keyword.control.new.ts"}},"match":"(?<![$.])\\\\b(new)\\\\b(?=\\\\s*<)","name":"meta.type.constructor.ts"},{"begin":"(?<![$.])\\\\b(new)\\\\b\\\\s*(?=\\\\()","beginCaptures":{"1":{"name":"keyword.control.new.ts"}},"end":"(?<=\\\\))","name":"meta.type.constructor.ts","patterns":[{"include":"#functionParameters"}]},{"begin":"(?<=>)\\\\s*(?=\\\\()","end":"(?<=\\\\))","include":"#typeofOperator","name":"meta.type.function.ts","patterns":[{"include":"#functionParameters"}]},{"begin":"((?=\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>))))))","end":"(?<=\\\\))","name":"meta.type.function.ts","patterns":[{"include":"#functionParameters"}]}]},"typeName":{"patterns":[{"captures":{"1":{"name":"entity.name.type.module.ts"},"2":{"name":"punctuation.accessor.ts"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*([!?]?\\\\.)"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"entity.name.type.ts"}]},"typeObject":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"name":"meta.object.type.ts","patterns":[{"include":"#typeObjectMembers"}]},"typeObjectMembers":{"patterns":[{"include":"#typeAnnotation"},{"include":"#punctuationComma"},{"include":"#punctuationSemicolon"}]},"typeOperators":{"patterns":[{"include":"#typeofOperator"},{"match":"[\\\\&|]","name":"keyword.operator.type.ts"},{"match":"(?<![$.])\\\\bkeyof\\\\b(?!\\\\$)","name":"keyword.operator.expression.keyof.ts"}]},"typeParenOrFunctionParameters":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"name":"meta.type.paren.cover.ts","patterns":[{"include":"#type"},{"include":"#functionParameters"}]},"typeTuple":{"begin":"\\\\[","beginCaptures":{"0":{"name":"meta.brace.square.ts"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.ts"}},"name":"meta.type.tuple.ts","patterns":[{"include":"#type"},{"include":"#punctuationComma"}]},"typeofOperator":{"match":"(?<![$.])\\\\btypeof\\\\b(?!\\\\$)","name":"keyword.operator.expression.typeof.ts"},"undefinedLiteral":{"match":"(?<![$.])\\\\bundefined\\\\b(?!\\\\$)","name":"constant.language.undefined.ts"},"variableInitializer":{"begin":"(?<![!=])(=)(?!=)","beginCaptures":{"1":{"name":"keyword.operator.assignment.ts"}},"end":"(?=$|[]),;}])","patterns":[{"include":"#ngExpression"}]}},"scopeName":"expression.ng"}'))],r=Object.freeze(JSON.parse(`{"injectTo":["text.html.derivative","text.html.derivative.ng","source.ts.ng"],"injectionSelector":"L:text.html -comment -expression.ng -meta.tag -source.css -source.js","name":"angular-let-declaration","patterns":[{"include":"#letDeclaration"}],"repository":{"letDeclaration":{"begin":"(@let)\\\\s+([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(=)?","beginCaptures":{"1":{"name":"storage.type.ng"},"2":{"name":"variable.other.constant.ng"},"3":{"name":"keyword.operator.assignment.ng"}},"end":"(?<=;)","name":"meta.definition.variable.ng","patterns":[{"include":"#letInitializer"}]},"letInitializer":{"begin":"\\\\s*","beginCaptures":{"0":{"name":"keyword.operator.assignment.ng"}},"contentName":"meta.definition.variable.initializer.ng","end":";","endCaptures":{"0":{"name":"punctuation.terminator.statement.ng"}},"patterns":[{"include":"expression.ng"}]}},"scopeName":"template.let.ng","embeddedLangs":["angular-expression"]}`)),i=[...n,r],a=Object.freeze(JSON.parse(`{"injectTo":["text.html.derivative","text.html.derivative.ng","source.ts.ng"],"injectionSelector":"L:text.html -comment","name":"angular-template","patterns":[{"include":"#interpolation"}],"repository":{"interpolation":{"begin":"\\\\{\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"contentName":"expression.ng","end":"}}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"patterns":[{"include":"expression.ng"}]}},"scopeName":"template.ng","embeddedLangs":["angular-expression"]}`)),o=[...n,a],s=Object.freeze(JSON.parse(`{"injectTo":["text.html.derivative","text.html.derivative.ng","source.ts.ng"],"injectionSelector":"L:text.html -comment -expression.ng -meta.tag -source.css -source.js","name":"angular-template-blocks","patterns":[{"include":"#block"}],"repository":{"block":{"begin":"(@)(if|else if|else|defer|placeholder|loading|error|switch|case|default|for|empty)\\\\s*","beginCaptures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.control.block.kind.ng"}},"end":"(?<=})","name":"control.block.ng","patterns":[{"include":"#blockExpression"},{"include":"#blockBody"}]},"blockBody":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"contentName":"control.block.body.ng","end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"patterns":[{"include":"text.html.derivative.ng"},{"include":"template.ng"}]},"blockExpression":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.ts"}},"contentName":"control.block.expression.ng","end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"#blockExpressionOfClause"},{"include":"#blockExpressionLetBinding"},{"include":"#blockExpressionTrackClause"},{"include":"expression.ng"}]},"blockExpressionLetBinding":{"begin":"\\\\blet\\\\b","beginCaptures":{"0":{"name":"storage.type.ng"}},"end":"(?=[$)])|(?<=;)","patterns":[{"include":"expression.ng"}]},"blockExpressionOfClause":{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s+(of)\\\\b","beginCaptures":{"1":{"name":"variable.other.constant.ng"},"2":{"name":"keyword.operator.expression.of.ng"}},"end":"(?=[$)])|(?<=;)","patterns":[{"include":"expression.ng"}]},"blockExpressionTrackClause":{"begin":"\\\\btrack\\\\b","beginCaptures":{"0":{"name":"keyword.control.track.ng"}},"end":"(?=[$)])|(?<=;)","patterns":[{"include":"expression.ng"}]},"transition":{"match":"@","name":"keyword.control.block.transition.ng"}},"scopeName":"template.blocks.ng","embeddedLangs":["angular-expression","angular-template"]}`)),c=[...n,...o,s],l=e({default:()=>d}),u=Object.freeze(JSON.parse(`{"displayName":"Angular HTML","injections":{"R:text.html - (comment.block, text.html meta.embedded, meta.tag.*.*.html, meta.tag.*.*.*.html, meta.tag.*.*.*.*.html)":{"patterns":[{"match":"<","name":"invalid.illegal.bad-angle-bracket.html"}]}},"name":"angular-html","patterns":[{"include":"text.html.basic#core-minus-invalid"},{"begin":"(</?)(\\\\w[^>\\\\s]*)(?<!/)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":"((?: ?/)?>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.unrecognized.html.derivative","patterns":[{"include":"text.html.basic#attribute"}]}],"scopeName":"text.html.derivative.ng","embeddedLangs":["html","angular-expression","angular-let-declaration","angular-template","angular-template-blocks"]}`)),d=[...t,...n,...i,...o,...c,u];export{i as a,o as i,l as n,n as o,c as r,d as t};
|
|
1
|
+
import{t as e}from"./index-dM30WmvE.js";import{t}from"./html-B6C5qCrz.js";var n=[Object.freeze(JSON.parse('{"injectionSelector":"L:text.html -comment","name":"angular-expression","patterns":[{"include":"#ngExpression"}],"repository":{"arrayLiteral":{"begin":"\\\\[","beginCaptures":{"0":{"name":"meta.brace.square.ts"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.ts"}},"name":"meta.array.literal.ts","patterns":[{"include":"#ngExpression"},{"include":"#punctuationComma"}]},"booleanLiteral":{"patterns":[{"match":"(?<![$.])\\\\btrue\\\\b(?!\\\\$)","name":"constant.language.boolean.true.ts"},{"match":"(?<![$.])\\\\bfalse\\\\b(?!\\\\$)","name":"constant.language.boolean.false.ts"}]},"expressionOperator":{"patterns":[{"captures":{"1":{"name":"keyword.operator.logical.ts"},"2":{"name":"entity.name.function.pipe.ng"}},"match":"((?<!\\\\|)\\\\|(?!\\\\|))\\\\s?([-$0-9A-Z_a-z]*)"},{"match":"(?<![$.])\\\\b(let)\\\\b(?!\\\\$)","name":"storage.type.ts"},{"match":"(?<![$.])\\\\b(await)\\\\b(?!\\\\$)","name":"keyword.control.flow.ts"},{"match":"(?<![$.])\\\\bdelete\\\\b(?!\\\\$)","name":"keyword.operator.expression.delete.ts"},{"match":"(?<![$.])\\\\bin\\\\b(?!\\\\$)","name":"keyword.operator.expression.in.ts"},{"match":"(?<![$.])\\\\bof\\\\b(?!\\\\$)","name":"keyword.operator.expression.of.ts"},{"match":"(?<![$.])\\\\bif\\\\b(?!\\\\$)","name":"keyword.control.if.ts"},{"match":"(?<![$.])\\\\belse\\\\b(?!\\\\$)","name":"keyword.control.else.ts"},{"match":"(?<![$.])\\\\bthen\\\\b(?!\\\\$)","name":"keyword.control.then.ts"},{"match":"(?<![$.])\\\\binstanceof\\\\b(?!\\\\$)","name":"keyword.operator.expression.instanceof.ts"},{"match":"(?<![$.])\\\\bnew\\\\b(?!\\\\$)","name":"keyword.operator.new.ts"},{"match":"(?<![$.])\\\\bvoid\\\\b(?!\\\\$)","name":"keyword.operator.expression.void.ts"},{"begin":"(?<![$.])\\\\bas\\\\b(?!\\\\$)","beginCaptures":{"0":{"name":"storage.type.as.ts"}},"end":"(?=$|[]\\"\'),:;}])","patterns":[{"include":"#type"}]},{"match":"(?:\\\\*|(?<!\\\\()/|[-%+])=","name":"keyword.operator.assignment.compound.ts"},{"match":"(?:[\\\\&^]|<<|>>>??|\\\\|)=","name":"keyword.operator.assignment.compound.bitwise.ts"},{"match":"<<|>>>?","name":"keyword.operator.bitwise.shift.ts"},{"match":"[!=]==?","name":"keyword.operator.comparison.ts"},{"match":"<=|>=|<>|[<>]","name":"keyword.operator.relational.ts"},{"match":"!|&&|\\\\?\\\\?|\\\\|\\\\|","name":"keyword.operator.logical.ts"},{"match":"[\\\\&^|~]","name":"keyword.operator.bitwise.ts"},{"match":"=","name":"keyword.operator.assignment.ts"},{"match":"--","name":"keyword.operator.decrement.ts"},{"match":"\\\\+\\\\+","name":"keyword.operator.increment.ts"},{"match":"[-%*+/]","name":"keyword.operator.arithmetic.ts"},{"captures":{"1":{"name":"keyword.operator.arithmetic.ts"}},"match":"(?<=[$_[:alnum:]])\\\\s*(/)(?![*/])"},{"include":"#typeofOperator"}]},"functionCall":{"begin":"(?=(\\\\??\\\\.\\\\s*)?([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(<([^<>]|<[^<>]+>)+>\\\\s*)?\\\\()","end":"(?<=\\\\))(?!(\\\\??\\\\.\\\\s*)?([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(<([^<>]|<[^<>]+>)+>\\\\s*)?\\\\()","patterns":[{"match":"\\\\?","name":"punctuation.accessor.ts"},{"match":"\\\\.","name":"punctuation.accessor.ts"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.function.ts"},{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.typeparameters.begin.ts"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.ts"}},"name":"meta.type.parameters.ts","patterns":[{"include":"#type"},{"include":"#punctuationComma"}]},{"include":"#parenExpression"}]},"functionParameters":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.ts"}},"name":"meta.parameters.ts","patterns":[{"include":"#decorator"},{"include":"#parameterName"},{"include":"#variableInitializer"},{"match":",","name":"punctuation.separator.parameter.ts"}]},"identifiers":{"patterns":[{"match":"([$_[:alpha:]][$_[:alnum:]]*)(?=\\\\s*\\\\.\\\\s*prototype\\\\b(?!\\\\$))","name":"support.class.ts"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"constant.other.object.property.ts"},"3":{"name":"variable.other.object.property.ts"}},"match":"([!?]?\\\\.)\\\\s*(?:(\\\\p{upper}[$_\\\\d[:upper:]]*)|([$_[:alpha:]][$_[:alnum:]]*))(?=\\\\s*\\\\.\\\\s*[$_[:alpha:]][$_[:alnum:]]*)"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"entity.name.function.ts"}},"match":"(?:([!?]?\\\\.)\\\\s*)?([$_[:alpha:]][$_[:alnum:]]*)(?=\\\\s*=\\\\s*((async\\\\s+)|(function\\\\s*[(<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)|((<([^<>]|<[^<>]+>)+>\\\\s*)?\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)(\\\\s*:\\\\s*(.)*)?\\\\s*=>)))"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"constant.other.property.ts"}},"match":"([!?]?\\\\.)\\\\s*(\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"variable.other.property.ts"}},"match":"([!?]?\\\\.)\\\\s*([$_[:alpha:]][$_[:alnum:]]*)"},{"captures":{"1":{"name":"constant.other.object.ts"},"2":{"name":"variable.other.object.ts"}},"match":"(?:(\\\\p{upper}[$_\\\\d[:upper:]]*)|([$_[:alpha:]][$_[:alnum:]]*))(?=\\\\s*\\\\.\\\\s*[$_[:alpha:]][$_[:alnum:]]*)"},{"match":"(\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])","name":"constant.character.other"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"variable.other.readwrite.ts"}]},"literal":{"name":"literal.ts","patterns":[{"include":"#numericLiteral"},{"include":"#booleanLiteral"},{"include":"#nullLiteral"},{"include":"#undefinedLiteral"},{"include":"#numericConstantLiteral"},{"include":"#arrayLiteral"},{"include":"#thisLiteral"}]},"ngExpression":{"name":"meta.expression.ng","patterns":[{"include":"#string"},{"include":"#literal"},{"include":"#ternaryExpression"},{"include":"#expressionOperator"},{"include":"#functionCall"},{"include":"#identifiers"},{"include":"#parenExpression"},{"include":"#punctuationComma"},{"include":"#punctuationSemicolon"},{"include":"#punctuationAccessor"}]},"nullLiteral":{"match":"(?<![$.])\\\\bnull\\\\b(?!\\\\$)","name":"constant.language.null.ts"},"numericConstantLiteral":{"patterns":[{"match":"(?<![$.])\\\\bNaN\\\\b(?!\\\\$)","name":"constant.language.nan.ts"},{"match":"(?<![$.])\\\\bInfinity\\\\b(?!\\\\$)","name":"constant.language.infinity.ts"}]},"numericLiteral":{"patterns":[{"match":"\\\\b(?<!\\\\$)0([Xx])\\\\h+\\\\b(?!\\\\$)","name":"constant.numeric.hex.ts"},{"match":"\\\\b(?<!\\\\$)0([Bb])[01]+\\\\b(?!\\\\$)","name":"constant.numeric.binary.ts"},{"match":"\\\\\\\\b(?<!\\\\$)0([Oo])?[0-7]+\\\\b(?!\\\\$)","name":"constant.numeric.octal.ts"},{"captures":{"0":{"name":"constant.numeric.decimal.ts"},"1":{"name":"meta.delimiter.decimal.period.ts"},"2":{"name":"meta.delimiter.decimal.period.ts"},"3":{"name":"meta.delimiter.decimal.period.ts"},"4":{"name":"meta.delimiter.decimal.period.ts"},"5":{"name":"meta.delimiter.decimal.period.ts"},"6":{"name":"meta.delimiter.decimal.period.ts"}},"match":"(?<!\\\\$)(?:\\\\b[0-9]+(\\\\.)[0-9]+[Ee][-+]?[0-9]+\\\\b|\\\\b[0-9]+(\\\\.)[Ee][-+]?[0-9]+\\\\b|\\\\B(\\\\.)[0-9]+[Ee][-+]?[0-9]+\\\\b|\\\\b[0-9]+[Ee][-+]?[0-9]+\\\\b|\\\\b[0-9]+(\\\\.)\\\\B|\\\\B(\\\\.)[0-9]+\\\\b|\\\\b[0-9]+\\\\b(?!\\\\.))(?!\\\\$)"}]},"parameterName":{"patterns":[{"captures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"keyword.operator.rest.ts"},"4":{"name":"entity.name.function.ts"},"5":{"name":"keyword.operator.optional.ts"}},"match":"(?:\\\\s*\\\\b(readonly)\\\\s+)?(?:\\\\s*\\\\b(p(?:ublic|rivate|rotected))\\\\s+)?(\\\\.\\\\.\\\\.)?\\\\s*(?<![:=])([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(\\\\??)(?=\\\\s*(=\\\\s*((async\\\\s+)|(function\\\\s*[(<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)|((<([^<>]|<[^<>]+>)+>\\\\s*)?\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)(\\\\s*:\\\\s*(.)*)?\\\\s*=>)))|(:\\\\s*((<)|(\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>))))))))"},{"captures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"keyword.operator.rest.ts"},"4":{"name":"variable.parameter.ts"},"5":{"name":"keyword.operator.optional.ts"}},"match":"(?:\\\\s*\\\\b(readonly)\\\\s+)?(?:\\\\s*\\\\b(p(?:ublic|rivate|rotected))\\\\s+)?(\\\\.\\\\.\\\\.)?\\\\s*(?<![:=])([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(\\\\??)"}]},"parenExpression":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"#ngExpression"},{"include":"#punctuationComma"}]},"punctuationAccessor":{"match":"(?:\\\\?|!?)\\\\.","name":"punctuation.accessor.ts"},"punctuationComma":{"match":",","name":"punctuation.separator.comma.ts"},"punctuationSemicolon":{"match":";","name":"punctuation.terminator.statement.ts"},"qstringDouble":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ts"}},"end":"(\\")|([^\\\\n\\\\\\\\])$","endCaptures":{"1":{"name":"punctuation.definition.string.end.ts"},"2":{"name":"invalid.illegal.newline.ts"}},"name":"string.quoted.double.ts","patterns":[{"include":"#stringCharacterEscape"}]},"qstringSingle":{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ts"}},"end":"(\')|([^\\\\n\\\\\\\\])$","endCaptures":{"1":{"name":"punctuation.definition.string.end.ts"},"2":{"name":"invalid.illegal.newline.ts"}},"name":"string.quoted.single.ts","patterns":[{"include":"#stringCharacterEscape"}]},"string":{"patterns":[{"include":"#qstringSingle"},{"include":"#qstringDouble"},{"include":"#templateLiteral"}]},"stringCharacterEscape":{"match":"\\\\\\\\(x\\\\h{2}|[012][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.|$)","name":"constant.character.escape.ts"},"templateLiteral":{"patterns":[{"include":"#templateLiteralCall"},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?(`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.ts"},"2":{"name":"string.template.ts punctuation.definition.string.template.begin.ts"}},"contentName":"string.template.ts","end":"`","endCaptures":{"0":{"name":"string.template.ts punctuation.definition.string.template.end.ts"}},"patterns":[{"include":"#templateLiteralSubstitutionElement"},{"include":"#stringCharacterEscape"}]}]},"templateLiteralCall":{"patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*\\\\s*\\\\??\\\\.\\\\s*)*|(\\\\??\\\\.\\\\s*)?)([$_[:alpha:]][$_[:alnum:]]*)(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)?`)","end":"(?=`)","patterns":[{"begin":"(?=(([$_[:alpha:]][$_[:alnum:]]*\\\\s*\\\\??\\\\.\\\\s*)*|(\\\\??\\\\.\\\\s*)?)([$_[:alpha:]][$_[:alnum:]]*))","end":"(?=(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)?`)","patterns":[{"include":"#support-function-call-identifiers"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.function.tagged-template.ts"}]},{"include":"#typeArguments"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?\\\\s*(?=(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])|(\'([^\'\\\\\\\\]|\\\\\\\\.)*\')|(\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\")|(`([^\\\\\\\\`]|\\\\\\\\.)*`))(?=\\\\s*([,.<>\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\\\s*)`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.ts"}},"end":"(?=`)","patterns":[{"include":"#typeArguments"}]}]},"templateLiteralSubstitutionElement":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.ts"}},"contentName":"meta.embedded.line.ts","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.ts"}},"name":"meta.template.expression.ts","patterns":[{"include":"#ngExpression"}]},"ternaryExpression":{"begin":"(?!\\\\?\\\\.\\\\s*\\\\D)(\\\\?)(?!\\\\?)","beginCaptures":{"1":{"name":"keyword.operator.ternary.ts"}},"end":"\\\\s*(:)","endCaptures":{"1":{"name":"keyword.operator.ternary.ts"}},"patterns":[{"include":"#ngExpression"}]},"thisLiteral":{"match":"(?<![$.])\\\\bthis\\\\b(?!\\\\$)","name":"variable.language.this.ts"},"type":{"name":"meta.type.ts","patterns":[{"include":"#string"},{"include":"#numericLiteral"},{"include":"#typeBuiltinLiterals"},{"include":"#typeTuple"},{"include":"#typeObject"},{"include":"#typeOperators"},{"include":"#typeFnTypeParameters"},{"include":"#typeParenOrFunctionParameters"},{"include":"#typeName"}]},"typeAnnotation":{"begin":":","beginCaptures":{"0":{"name":"keyword.operator.type.annotation.ts"}},"end":"(?=$|[]),;}]|//|\\")|(?==[^>])|(?<=[]$)>_}[:alpha:]])\\\\s*(?=\\\\{)","name":"meta.type.annotation.ts","patterns":[{"include":"#type"}]},"typeArguments":{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.typeparameters.begin.ts"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.ts"}},"name":"meta.type.parameters.ts","patterns":[{"include":"#typeArgumentsBody"}]},"typeArgumentsBody":{"patterns":[{"captures":{"0":{"name":"keyword.operator.type.ts"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(_)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))"},{"include":"#type"},{"include":"#punctuationComma"}]},"typeBuiltinLiterals":{"match":"(?<![$.])\\\\b(this|true|false|undefined|null)\\\\b(?!\\\\$)","name":"support.type.builtin.ts"},"typeFnTypeParameters":{"patterns":[{"captures":{"1":{"name":"keyword.control.new.ts"}},"match":"(?<![$.])\\\\b(new)\\\\b(?=\\\\s*<)","name":"meta.type.constructor.ts"},{"begin":"(?<![$.])\\\\b(new)\\\\b\\\\s*(?=\\\\()","beginCaptures":{"1":{"name":"keyword.control.new.ts"}},"end":"(?<=\\\\))","name":"meta.type.constructor.ts","patterns":[{"include":"#functionParameters"}]},{"begin":"(?<=>)\\\\s*(?=\\\\()","end":"(?<=\\\\))","include":"#typeofOperator","name":"meta.type.function.ts","patterns":[{"include":"#functionParameters"}]},{"begin":"((?=\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>))))))","end":"(?<=\\\\))","name":"meta.type.function.ts","patterns":[{"include":"#functionParameters"}]}]},"typeName":{"patterns":[{"captures":{"1":{"name":"entity.name.type.module.ts"},"2":{"name":"punctuation.accessor.ts"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*([!?]?\\\\.)"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"entity.name.type.ts"}]},"typeObject":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"name":"meta.object.type.ts","patterns":[{"include":"#typeObjectMembers"}]},"typeObjectMembers":{"patterns":[{"include":"#typeAnnotation"},{"include":"#punctuationComma"},{"include":"#punctuationSemicolon"}]},"typeOperators":{"patterns":[{"include":"#typeofOperator"},{"match":"[\\\\&|]","name":"keyword.operator.type.ts"},{"match":"(?<![$.])\\\\bkeyof\\\\b(?!\\\\$)","name":"keyword.operator.expression.keyof.ts"}]},"typeParenOrFunctionParameters":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"name":"meta.type.paren.cover.ts","patterns":[{"include":"#type"},{"include":"#functionParameters"}]},"typeTuple":{"begin":"\\\\[","beginCaptures":{"0":{"name":"meta.brace.square.ts"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.ts"}},"name":"meta.type.tuple.ts","patterns":[{"include":"#type"},{"include":"#punctuationComma"}]},"typeofOperator":{"match":"(?<![$.])\\\\btypeof\\\\b(?!\\\\$)","name":"keyword.operator.expression.typeof.ts"},"undefinedLiteral":{"match":"(?<![$.])\\\\bundefined\\\\b(?!\\\\$)","name":"constant.language.undefined.ts"},"variableInitializer":{"begin":"(?<![!=])(=)(?!=)","beginCaptures":{"1":{"name":"keyword.operator.assignment.ts"}},"end":"(?=$|[]),;}])","patterns":[{"include":"#ngExpression"}]}},"scopeName":"expression.ng"}'))],r=Object.freeze(JSON.parse(`{"injectTo":["text.html.derivative","text.html.derivative.ng","source.ts.ng"],"injectionSelector":"L:text.html -comment -expression.ng -meta.tag -source.css -source.js","name":"angular-let-declaration","patterns":[{"include":"#letDeclaration"}],"repository":{"letDeclaration":{"begin":"(@let)\\\\s+([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(=)?","beginCaptures":{"1":{"name":"storage.type.ng"},"2":{"name":"variable.other.constant.ng"},"3":{"name":"keyword.operator.assignment.ng"}},"end":"(?<=;)","name":"meta.definition.variable.ng","patterns":[{"include":"#letInitializer"}]},"letInitializer":{"begin":"\\\\s*","beginCaptures":{"0":{"name":"keyword.operator.assignment.ng"}},"contentName":"meta.definition.variable.initializer.ng","end":";","endCaptures":{"0":{"name":"punctuation.terminator.statement.ng"}},"patterns":[{"include":"expression.ng"}]}},"scopeName":"template.let.ng","embeddedLangs":["angular-expression"]}`)),i=[...n,r],a=Object.freeze(JSON.parse(`{"injectTo":["text.html.derivative","text.html.derivative.ng","source.ts.ng"],"injectionSelector":"L:text.html -comment","name":"angular-template","patterns":[{"include":"#interpolation"}],"repository":{"interpolation":{"begin":"\\\\{\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"contentName":"expression.ng","end":"}}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"patterns":[{"include":"expression.ng"}]}},"scopeName":"template.ng","embeddedLangs":["angular-expression"]}`)),o=[...n,a],s=Object.freeze(JSON.parse(`{"injectTo":["text.html.derivative","text.html.derivative.ng","source.ts.ng"],"injectionSelector":"L:text.html -comment -expression.ng -meta.tag -source.css -source.js","name":"angular-template-blocks","patterns":[{"include":"#block"}],"repository":{"block":{"begin":"(@)(if|else if|else|defer|placeholder|loading|error|switch|case|default|for|empty)\\\\s*","beginCaptures":{"1":{"patterns":[{"include":"#transition"}]},"2":{"name":"keyword.control.block.kind.ng"}},"end":"(?<=})","name":"control.block.ng","patterns":[{"include":"#blockExpression"},{"include":"#blockBody"}]},"blockBody":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"contentName":"control.block.body.ng","end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"patterns":[{"include":"text.html.derivative.ng"},{"include":"template.ng"}]},"blockExpression":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.ts"}},"contentName":"control.block.expression.ng","end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"#blockExpressionOfClause"},{"include":"#blockExpressionLetBinding"},{"include":"#blockExpressionTrackClause"},{"include":"expression.ng"}]},"blockExpressionLetBinding":{"begin":"\\\\blet\\\\b","beginCaptures":{"0":{"name":"storage.type.ng"}},"end":"(?=[$)])|(?<=;)","patterns":[{"include":"expression.ng"}]},"blockExpressionOfClause":{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s+(of)\\\\b","beginCaptures":{"1":{"name":"variable.other.constant.ng"},"2":{"name":"keyword.operator.expression.of.ng"}},"end":"(?=[$)])|(?<=;)","patterns":[{"include":"expression.ng"}]},"blockExpressionTrackClause":{"begin":"\\\\btrack\\\\b","beginCaptures":{"0":{"name":"keyword.control.track.ng"}},"end":"(?=[$)])|(?<=;)","patterns":[{"include":"expression.ng"}]},"transition":{"match":"@","name":"keyword.control.block.transition.ng"}},"scopeName":"template.blocks.ng","embeddedLangs":["angular-expression","angular-template"]}`)),c=[...n,...o,s],l=e({default:()=>d}),u=Object.freeze(JSON.parse(`{"displayName":"Angular HTML","injections":{"R:text.html - (comment.block, text.html meta.embedded, meta.tag.*.*.html, meta.tag.*.*.*.html, meta.tag.*.*.*.*.html)":{"patterns":[{"match":"<","name":"invalid.illegal.bad-angle-bracket.html"}]}},"name":"angular-html","patterns":[{"include":"text.html.basic#core-minus-invalid"},{"begin":"(</?)(\\\\w[^>\\\\s]*)(?<!/)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":"((?: ?/)?>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.unrecognized.html.derivative","patterns":[{"include":"text.html.basic#attribute"}]}],"scopeName":"text.html.derivative.ng","embeddedLangs":["html","angular-expression","angular-let-declaration","angular-template","angular-template-blocks"]}`)),d=[...t,...n,...i,...o,...c,u];export{i as a,o as i,l as n,n as o,c as r,d as t};
|