@actions/languageservice 0.3.23 → 0.3.25

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.
@@ -1 +1 @@
1
- {"version":3,"file":"complete.d.ts","sourceRoot":"","sources":["../src/complete.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,aAAa,EAAC,MAAM,iDAAiD,CAAC;AAI9E,OAAO,EAAC,YAAY,EAAC,MAAM,kDAAkD,CAAC;AAC9E,OAAO,EAAC,QAAQ,EAAE,YAAY,EAAC,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAC,cAAc,EAAyD,MAAM,6BAA6B,CAAC;AACnH,OAAO,EAAC,qBAAqB,EAAC,MAAM,4BAA4B,CAAC;AAYjE,OAAO,EAAQ,mBAAmB,EAAC,MAAM,0BAA0B,CAAC;AAIpE,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAUrE;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;IAC9C,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B,CAAC;AAEF,wBAAsB,QAAQ,CAC5B,YAAY,EAAE,YAAY,EAC1B,QAAQ,EAAE,QAAQ,EAClB,MAAM,CAAC,EAAE,gBAAgB,GACxB,OAAO,CAAC,cAAc,EAAE,CAAC,CA2F3B;AA6CD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI,EAAE,MAAM,EAAE,aAAa,2BAkCnF"}
1
+ {"version":3,"file":"complete.d.ts","sourceRoot":"","sources":["../src/complete.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,aAAa,EAAC,MAAM,iDAAiD,CAAC;AAK9E,OAAO,EAAC,YAAY,EAAC,MAAM,kDAAkD,CAAC;AAC9E,OAAO,EAAC,QAAQ,EAAE,YAAY,EAAC,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAC,cAAc,EAAyD,MAAM,6BAA6B,CAAC;AACnH,OAAO,EAAC,qBAAqB,EAAC,MAAM,4BAA4B,CAAC;AAWjE,OAAO,EAAQ,mBAAmB,EAAC,MAAM,0BAA0B,CAAC;AAIpE,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAUrE;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;IAC9C,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B,CAAC;AAEF,wBAAsB,QAAQ,CAC5B,YAAY,EAAE,YAAY,EAC1B,QAAQ,EAAE,QAAQ,EAClB,MAAM,CAAC,EAAE,gBAAgB,GACxB,OAAO,CAAC,cAAc,EAAE,CAAC,CA2F3B;AA6CD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI,EAAE,MAAM,EAAE,aAAa,2BAkCnF"}
package/dist/complete.js CHANGED
@@ -12,7 +12,6 @@ import { isPotentiallyExpression } from "./utils/expression-detection";
12
12
  import { findToken } from "./utils/find-token";
13
13
  import { guessIndentation } from "./utils/indentation-guesser";
14
14
  import { mapRange } from "./utils/range";
15
- import { getRelCharOffset } from "./utils/rel-char-pos";
16
15
  import { isPlaceholder, transform } from "./utils/transform";
17
16
  import { fetchOrConvertWorkflowTemplate, fetchOrParseWorkflow } from "./utils/workflow-cache";
18
17
  import { defaultValueProviders } from "./value-providers/default";
@@ -168,10 +167,10 @@ function getExpressionCompletionItems(token, context, pos) {
168
167
  const stringToken = token.assertString("Expected string token for expression completion");
169
168
  currentInput = stringToken.source || stringToken.value;
170
169
  }
171
- const relCharOffset = getRelCharOffset(token.range, currentInput, pos);
172
- const expressionInput = (getExpressionInput(currentInput, relCharOffset) || "").trim();
170
+ const cursorOffset = getOffsetInContent(token.range, currentInput, pos);
171
+ const expressionInput = (getExpressionInput(currentInput, cursorOffset) || "").trim();
173
172
  try {
174
- return completeExpression(expressionInput, context, [], validatorFunctions).map(item => mapExpressionCompletionItem(item, currentInput[relCharOffset]));
173
+ return completeExpression(expressionInput, context, [], validatorFunctions).map(item => mapExpressionCompletionItem(item, currentInput[cursorOffset]));
175
174
  }
176
175
  catch (e) {
177
176
  error(`Error while completing expression: '${e?.message || "<no details>"}'`);
@@ -200,4 +199,45 @@ function mapExpressionCompletionItem(item, charAfterPos) {
200
199
  kind: item.function ? CompletionItemKind.Function : CompletionItemKind.Variable
201
200
  };
202
201
  }
202
+ /**
203
+ * Converts a document position to an offset within the token's content string.
204
+ */
205
+ function getOffsetInContent(tokenRange, currentInput, pos) {
206
+ const range = mapRange(tokenRange);
207
+ if (range.start.line === range.end.line) {
208
+ // Single-line example:
209
+ // if: github.ref == 'main'
210
+ // ^8 ^15 (cursor)
211
+ // currentInput = "github.ref == 'main'"
212
+ // offset = 15 - 8 = 7
213
+ return pos.character - range.start.character;
214
+ }
215
+ // Multi-line example:
216
+ // if: | <- line 3 (range.start.line)
217
+ // first line <- line 4, content line 0
218
+ // second line <- line 5, content line 1
219
+ // github. <- line 6, content line 2, cursor at index 11
220
+ // ^11 (cursor)
221
+ //
222
+ // currentInput = " first line\n second line\n github."
223
+ // ^0 ^15 ^32 ^43
224
+ // Line index within content.
225
+ // From the example:
226
+ // lineIndexWithinContent = pos.line - range.start.line - 1
227
+ // = 6 - 3 - 1 = 2
228
+ const lineIndexWithinContent = pos.line - range.start.line - 1;
229
+ // Length of content before current line.
230
+ // From the example:
231
+ // lengthOfContentBeforeCurrentLine => 14 + 1 = 15 (after first iteration)
232
+ // => 31 + 1 = 32 (after second iteration)
233
+ let lengthOfContentBeforeCurrentLine = 0;
234
+ for (let i = 0; i < lineIndexWithinContent; i++) {
235
+ lengthOfContentBeforeCurrentLine = currentInput.indexOf("\n", lengthOfContentBeforeCurrentLine) + 1;
236
+ }
237
+ // Final offset within content.
238
+ // From the example:
239
+ // finalOffset = lengthOfContentBeforeCurrentLine + pos.character
240
+ // = 32 + 11 = 43
241
+ return lengthOfContentBeforeCurrentLine + pos.character;
242
+ }
203
243
  //# sourceMappingURL=complete.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"complete.js","sourceRoot":"","sources":["../src/complete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,IAAI,kBAAkB,EAAwB,MAAM,sBAAsB,CAAC;AAE3F,OAAO,EAAC,iBAAiB,EAAE,UAAU,EAAE,QAAQ,EAAC,MAAM,0BAA0B,CAAC;AACjF,OAAO,EAAC,WAAW,EAAC,MAAM,wCAAwC,CAAC;AACnE,OAAO,EAAC,eAAe,EAAC,MAAM,uDAAuD,CAAC;AAGtF,OAAO,EAAC,SAAS,EAAC,MAAM,iDAAiD,CAAC;AAI1E,OAAO,EAAiB,kBAAkB,EAAE,iBAAiB,EAAE,KAAK,EAAE,QAAQ,EAAC,MAAM,6BAA6B,CAAC;AAEnH,OAAO,EAAC,UAAU,EAAE,IAAI,EAAC,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAC,kBAAkB,EAAkB,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAAC,kBAAkB,EAAC,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAC,KAAK,EAAC,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAC,uBAAuB,EAAC,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAC,SAAS,EAAC,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAC,gBAAgB,EAAC,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAC,aAAa,EAAE,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAC,8BAA8B,EAAE,oBAAoB,EAA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D;IAC5D,gFAAgF;IAChF,0BAA0B;IAC1B,EAAE;IACF,gEAAgE;IAChE,kEAAkE;IAElE,6BAA6B;IAC7B,oBAAoB;IACpB,2DAA2D;IAC3D,yCAAyC;IACzC,MAAM,sBAAsB,GAAG,GAAG,CAAC,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC;IAE/D,yCAAyC;IACzC,oBAAoB;IACpB,0EAA0E;IAC1E,2EAA2E;IAC3E,IAAI,gCAAgC,GAAG,CAAC,CAAC;IACzC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,sBAAsB,EAAE,CAAC,EAAE,EAAE;QAC/C,gCAAgC,GAAG,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,gCAAgC,CAAC,GAAG,CAAC,CAAC;KACrG;IAED,+BAA+B;IAC/B,oBAAoB;IACpB,iEAAiE;IACjE,6BAA6B;IAC7B,OAAO,gCAAgC,GAAG,GAAG,CAAC,SAAS,CAAC;AAC1D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../src/context-providers/default.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAE,qBAAqB,EAAC,MAAM,sBAAsB,CAAC;AAEjE,OAAO,EAAC,eAAe,EAAC,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAC,qBAAqB,EAAC,MAAM,UAAU,CAAC;AAe/C,MAAM,MAAM,YAAY,GAAG,qBAAqB,GAAG,IAAI,CAAC,IAAI,CAAC;AAE7D,oBAAY,IAAI;IACd,UAAU,IAAA;IACV,UAAU,IAAA;IACV,KAAK,IAAA;CACN;AAED,wBAAsB,UAAU,CAC9B,KAAK,EAAE,MAAM,EAAE,EACf,MAAM,EAAE,qBAAqB,GAAG,SAAS,EACzC,eAAe,EAAE,eAAe,EAChC,IAAI,EAAE,IAAI,GACT,OAAO,CAAC,qBAAqB,CAAC,CAiBhC"}
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../src/context-providers/default.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAE,qBAAqB,EAAC,MAAM,sBAAsB,CAAC;AAEjE,OAAO,EAAC,eAAe,EAAC,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAC,qBAAqB,EAAC,MAAM,UAAU,CAAC;AAe/C,MAAM,MAAM,YAAY,GAAG,qBAAqB,GAAG,IAAI,CAAC,IAAI,CAAC;AAE7D,oBAAY,IAAI;IACd,UAAU,IAAA;IACV,UAAU,IAAA;IACV,KAAK,IAAA;CACN;AAED,wBAAsB,UAAU,CAC9B,KAAK,EAAE,MAAM,EAAE,EACf,MAAM,EAAE,qBAAqB,GAAG,SAAS,EACzC,eAAe,EAAE,eAAe,EAChC,IAAI,EAAE,IAAI,GACT,OAAO,CAAC,qBAAqB,CAAC,CA0BhC"}
@@ -19,14 +19,24 @@ export var Mode;
19
19
  })(Mode || (Mode = {}));
20
20
  export async function getContext(names, config, workflowContext, mode) {
21
21
  const context = new DescriptionDictionary();
22
- const filteredNames = filterContextNames(names, workflowContext);
23
- for (const contextName of filteredNames) {
22
+ // All context names are valid - strategy and matrix are always available
23
+ // (with default values when no strategy block is defined)
24
+ for (const contextName of names) {
24
25
  let value = getDefaultContext(contextName, workflowContext, mode) || new DescriptionDictionary();
25
26
  if (value.kind === Kind.Null) {
26
27
  context.add(contextName, value);
27
28
  continue;
28
29
  }
29
- value = (await config?.getContext(contextName, value, workflowContext, mode)) || value;
30
+ const remoteValue = await config?.getContext(contextName, value, workflowContext, mode);
31
+ if (remoteValue) {
32
+ value = remoteValue;
33
+ }
34
+ else if (contextName === "secrets" || contextName === "vars") {
35
+ // Without a context provider to fetch remote secrets/vars, we can't know
36
+ // what values exist, so mark the context as incomplete to avoid false
37
+ // "Context access might be invalid" warnings
38
+ value.complete = false;
39
+ }
30
40
  context.add(contextName, value, getDescription(RootContext, contextName));
31
41
  }
32
42
  return context;
@@ -50,11 +60,14 @@ function getDefaultContext(name, workflowContext, mode) {
50
60
  return getNeedsContext(workflowContext);
51
61
  case "runner":
52
62
  return objectToDictionary({
53
- os: "Linux",
54
63
  arch: "X64",
64
+ debug: "1",
65
+ environment: "github-hosted",
55
66
  name: "GitHub Actions 2",
67
+ os: "Linux",
68
+ temp: "/home/runner/work/_temp",
56
69
  tool_cache: "/opt/hostedtoolcache",
57
- temp: "/home/runner/work/_temp"
70
+ workspace: "/home/runner/work/repo"
58
71
  });
59
72
  case "secrets":
60
73
  return getSecretsContext(workflowContext, mode);
@@ -72,17 +85,4 @@ function objectToDictionary(object) {
72
85
  }
73
86
  return dictionary;
74
87
  }
75
- function filterContextNames(contextNames, workflowContext) {
76
- return contextNames.filter(name => {
77
- switch (name) {
78
- case "matrix":
79
- case "strategy":
80
- return hasStrategy(workflowContext);
81
- }
82
- return true;
83
- });
84
- }
85
- function hasStrategy(workflowContext) {
86
- return workflowContext.job?.strategy !== undefined || workflowContext.reusableWorkflowJob?.strategy !== undefined;
87
- }
88
88
  //# sourceMappingURL=default.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"default.js","sourceRoot":"","sources":["../../src/context-providers/default.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAE,qBAAqB,EAAC,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAC,IAAI,EAAC,MAAM,0CAA0C,CAAC;AAG9D,OAAO,EAAC,cAAc,EAAE,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAC,aAAa,EAAC,MAAM,OAAO,CAAC;AACpC,OAAO,EAAC,gBAAgB,EAAC,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAC,gBAAgB,EAAC,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAC,aAAa,EAAC,MAAM,OAAO,CAAC;AACpC,OAAO,EAAC,cAAc,EAAC,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAC,gBAAgB,EAAC,MAAM,UAAU,CAAC;AAC1C,OAAO,E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,KAAK,KAAK;YACR,OAAO,aAAa,CAAC,eAAe,CAAC,CAAC;QAExC,KAAK,MAAM;YACT,OAAO,cAAc,CAAC,eAAe,CAAC,CAAC;QAEzC,KAAK,QAAQ;YACX,OAAO,gBAAgB,CAAC,eAAe,EAAE,IAAI,CAAC,CAAC;QAEjD,KAAK,OAAO;YACV,OAAO,eAAe,CAAC,eAAe,CAAC,CAAC;QAE1C,KAAK,QAAQ;YACX,OAAO,kBAAkB,CAAC;gBACxB,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,GAAG;gBACV,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,kBAAkB;gBACxB,EAAE,EAAE,OAAO;gBACX,IAAI,EAAE,yBAAyB;gBAC/B,UAAU,EAAE,sBAAsB;gBAClC,SAAS,EAAE,wBAAwB;aACpC,CAAC,CAAC;QAEL,KAAK,SAAS;YACZ,OAAO,iBAAiB,CAAC,eAAe,EAAE,IAAI,CAAC,CAAC;QAElD,KAAK,OAAO;YACV,OAAO,eAAe,CAAC,eAAe,CAAC,CAAC;QAE1C,KAAK,UAAU;YACb,OAAO,kBAAkB,CAAC,eAAe,CAAC,CAAC;KAC9C;IAED,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,SAAS,kBAAkB,CAAC,MAA+B;IACzD,MAAM,UAAU,GAAG,IAAI,qBAAqB,EAAE,CAAC;IAE/C,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QACxB,UAAU,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KACvD;IAED,OAAO,UAAU,CAAC;AACpB,CAAC"}
@@ -1 +1 @@
1
- { "$schema": "./descriptionsSchema.json", "root": { "github": { "description": "Information about the workflow run. For more information, see [`github` context](https://docs.github.com/actions/learn-github-actions/contexts#github-context)." }, "env": { "description": "Contains variables set in a workflow, job, or step. For more information, see [`env` context](https://docs.github.com/actions/learn-github-actions/contexts#env-context)." }, "vars": { "description": "Contains variables set at the repository, organization, or environment levels. For more information, see [`vars` context](https://docs.github.com/actions/learn-github-actions/contexts#vars-context)." }, "job": { "description": "Information about the currently running job. For more information, see [`job` context](https://docs.github.com/actions/learn-github-actions/contexts#job-context)." }, "jobs": { "description": "For reusable workflows only, contains outputs of jobs from the reusable workflow. For more information, see [`jobs` context](https://docs.github.com/actions/learn-github-actions/contexts#jobs-context)." }, "steps": { "description": "Information about the steps that have been run in the current job. For more information, see [`steps` context](https://docs.github.com/actions/learn-github-actions/contexts#steps-context)." }, "runner": { "description": "Information about the runner that is running the current job. For more information, see [`runner` context](https://docs.github.com/actions/learn-github-actions/contexts#runner-context)." }, "secrets": { "description": "Contains the names and values of secrets that are available to a workflow run. For more information, see [`secrets` context](https://docs.github.com/actions/learn-github-actions/contexts#secrets-context)." }, "strategy": { "description": "Information about the matrix execution strategy for the current job. For more information, see [`strategy` context](https://docs.github.com/actions/learn-github-actions/contexts#strategy-context)." }, "matrix": { "description": "Contains the matrix properties defined in the workflow that apply to the current job. For more information, see [`matrix` context](https://docs.github.com/actions/learn-github-actions/contexts#matrix-context)." }, "needs": { "description": "Contains the outputs of all jobs that are defined as a dependency of the current job. For more information, see [`needs` context](https://docs.github.com/actions/learn-github-actions/contexts#needs-context)." }, "inputs": { "description": "Contains the inputs of a reusable or manually triggered workflow. For more information, see [`inputs` context](https://docs.github.com/actions/learn-github-actions/contexts#inputs-context)." } }, "functions": { "always": { "description": "Causes the step to always execute, and returns `true`, even when canceled. The `always` expression is best used at the step level or on tasks that you expect to run even when a job is canceled. For example, you can use `always` to send logs even when a job is canceled." }, "cancelled": { "description": "Returns `true` if the workflow was canceled." }, "failure": { "description": "Returns `true` when any previous step of a job fails. If you have a chain of dependent jobs, `failure()` returns `true` if any ancestor job fails." }, "hashFiles": { "description": "Returns a single hash for the set of files that matches the `path` pattern. You can provide a single `path` pattern or multiple `path` patterns separated by commas. The `path` is relative to the `GITHUB_WORKSPACE` directory and can only include files inside of the `GITHUB_WORKSPACE`. This function calculates an individual SHA-256 hash for each matched file, and then uses those hashes to calculate a final SHA-256 hash for the set of files. If the `path` pattern does not match any files, this returns an empty string. For more information about SHA-256, see \"[SHA-2](https://wikipedia.org/wiki/SHA-2).\"\n\nYou can use pattern matching characters to match file names. Pattern matching is case-insensitive on Windows. For more information about supported pattern matching characters, see \"[Workflow syntax for GitHub Actions](https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet).\"" } }, "github": { "action": { "description": "The name of the action currently running, or the [`id`](https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsid) of a step. GitHub removes special characters, and uses the name `__run` when the current step runs a script without an `id`. If you use the same action more than once in the same job, the name will include a suffix with the sequence number with underscore before it. For example, the first script you run will have the name `__run`, and the second script will be named `__run_2`. Similarly, the second invocation of `actions/checkout` will be `actionscheckout2`." }, "action_path": { "description": "The path where an action is located. This property is only supported in composite actions. You can use this path to access files located in the same repository as the action, for example by changing directories to the path: `cd ${{ github.action_path }}`." }, "action_ref": { "description": "For a step executing an action, this is the ref of the action being executed. For example, `v2`." }, "action_repository": { "description": "For a step executing an action, this is the owner and repository name of the action. For example, `actions/checkout`." }, "action_status": { "description": "For a composite action, the current result of the composite action." }, "actor": { "description": "The username of the user that triggered the initial workflow run. If the workflow run is a re-run, this value may differ from `github.triggering_actor`. Any workflow re-runs will use the privileges of `github.actor`, even if the actor initiating the re-run (`github.triggering_actor`) has different privileges." }, "actor_id": { "description": "The account ID of the person or app that triggered the initial workflow run. For example, `1234567`. Note that this is different from the actor username.", "versions": { "ghes": ">=3.9", "ghae": ">=3.9" } }, "api_url": { "description": "The URL of the GitHub REST API." }, "base_ref": { "description": "The `base_ref` or target branch of the pull request in a workflow run. This property is only available when the event that triggers a workflow run is either `pull_request` or `pull_request_target`." }, "env": { "description": "Path on the runner to the file that sets environment variables from workflow commands. This file is unique to the current step and is a different file for each step in a job. For more information, see \"[Workflow commands for GitHub Actions](https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#setting-an-environment-variable).\"" }, "event": { "description": "The full event webhook payload. You can access individual properties of the event using this context. This object is identical to the webhook payload of the event that triggered the workflow run, and is different for each event. The webhooks for each GitHub Actions event is linked in \"[Events that trigger workflows](https://docs.github.com/actions/using-workflows/events-that-trigger-workflows).\" For example, for a workflow run triggered by the [`push` event](https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#push), this object contains the contents of the [push webhook payload](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#push)." }, "event_name": { "description": "The name of the event that triggered the workflow run." }, "event_path": { "description": "The path to the file on the runner that contains the full event webhook payload." }, "graphql_url": { "description": "The URL of the GitHub GraphQL API." }, "head_ref": { "description": "The `head_ref` or source branch of the pull request in a workflow run. This property is only available when the event that triggers a workflow run is either `pull_request` or `pull_request_target`." }, "job": { "description": "The [`job_id`](https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_id) of the current job.\nNote: This context property is set by the Actions runner, and is only available within the execution `steps` of a job. Otherwise, the value of this property will be `null`." }, "job_workflow_sha": { "description": "For jobs using a reusable workflow, the commit SHA for the reusable workflow file.", "versions": { "ghes": ">=3.9", "ghae": ">=3.9" } }, "path": { "description": "Path on the runner to the file that sets system PATH variables from workflow commands. This file is unique to the current step and is a different file for each step in a job. For more information, see \"[Workflow commands for GitHub Actions](https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-system-path).\"" }, "ref": { "description": "The fully-formed ref of the branch or tag that triggered the workflow run. For workflows triggered by `push`, this is the branch or tag ref that was pushed. For workflows triggered by `pull_request`, this is the pull request merge branch. For workflows triggered by `release`, this is the release tag created. For other triggers, this is the branch or tag ref that triggered the workflow run. This is only set if a branch or tag is available for the event type. The ref given is fully-formed, meaning that for branches the format is `refs/heads/<branch_name>`, for pull requests it is `refs/pull/<pr_number>/merge`, and for tags it is `refs/tags/<tag_name>`. For example, `refs/heads/feature-branch-1`." }, "ref_name": { "description": "The short ref name of the branch or tag that triggered the workflow run. This value matches the branch or tag name shown on GitHub. For example, `feature-branch-1`." }, "ref_protected": { "description": "`true` if branch protections are configured for the ref that triggered the workflow run." }, "ref_type": { "description": "The type of ref that triggered the workflow run. Valid values are `branch` or `tag`." }, "repository": { "description": "The owner and repository name. For example, `octocat/Hello-World`." }, "repository_id": { "description": "The ID of the repository. For example, `123456789`. Note that this is different from the repository name.", "versions": { "ghes": ">=3.9", "ghae": ">=3.9" } }, "repository_owner": { "description": "The repository owner's username. For example, `octocat`." }, "repository_owner_id": { "description": "The repository owner's account ID. For example, `1234567`. Note that this is different from the owner's name.", "versions": { "ghes": ">=3.9", "ghae": ">=3.9" } }, "repositoryUrl": { "description": "The Git URL to the repository. For example, `git://github.com/octocat/hello-world.git`." }, "retention_days": { "description": "The number of days that workflow run logs and artifacts are kept." }, "run_id": { "description": "A unique number for each workflow run within a repository. This number does not change if you re-run the workflow run." }, "run_number": { "description": "A unique number for each run of a particular workflow in a repository. This number begins at 1 for the workflow's first run, and increments with each new run. This number does not change if you re-run the workflow run." }, "run_attempt": { "description": "A unique number for each attempt of a particular workflow run in a repository. This number begins at 1 for the workflow run's first attempt, and increments with each re-run." }, "secret_source": { "description": "The source of a secret used in a workflow. Possible values are `None`, `Actions`, `Dependabot`, or `Codespaces`." }, "server_url": { "description": "The URL of the GitHub server. For example: `https://github.com`." }, "sha": { "description": "The commit SHA that triggered the workflow. The value of this commit SHA depends on the event that triggered the workflow. For more information, see \"[Events that trigger workflows](https://docs.github.com/actions/using-workflows/events-that-trigger-workflows).\" For example, `ffac537e6cbbf934b08745a378932722df287a53`." }, "token": { "description": "A token to authenticate on behalf of the GitHub App installed on your repository. This is functionally equivalent to the `GITHUB_TOKEN` secret. For more information, see \"[Automatic token authentication](https://docs.github.com/actions/security-guides/automatic-token-authentication).\"\nNote: This context property is set by the Actions runner, and is only available within the execution `steps` of a job. Otherwise, the value of this property will be `null`." }, "triggering_actor": { "description": "The username of the user that initiated the workflow run. If the workflow run is a re-run, this value may differ from `github.actor`. Any workflow re-runs will use the privileges of `github.actor`, even if the actor initiating the re-run (`github.triggering_actor`) has different privileges." }, "workflow": { "description": "The name of the workflow. If the workflow file doesn't specify a `name`, the value of this property is the full path of the workflow file in the repository." }, "workflow_ref": { "description": "The ref path to the workflow. For example, `octocat/hello-world/.github/workflows/my-workflow.yml@refs/heads/my_branch`.", "versions": { "ghes": ">=3.9", "ghae": ">=3.9" } }, "workflow_sha": { "description": "The commit SHA for the workflow file.", "versions": { "ghes": ">=3.9", "ghae": ">=3.9" } }, "workspace": { "description": "The default working directory on the runner for steps, and the default location of your repository when using the [`checkout`](https://github.com/actions/checkout) action." } }, "secrets": { "GITHUB_TOKEN": { "description": "Automatically created token for each workflow run. For more information, see \"[Automatic token authentication](https://docs.github.com/actions/security-guides/automatic-token-authentication).\"" } }, "jobs": { "outputs": { "description": "The set of outputs of a job in a reusable workflow." }, "result": { "description": "The result of a job in the reusable workflow. Possible values are `success`, `failure`, `cancelled`, or `skipped`." } }, "steps": { "outputs": { "description": "The set of outputs defined for the step. For more information, see \"[Metadata syntax for GitHub Actions](https://docs.github.com/actions/creating-actions/metadata-syntax-for-github-actions#outputs-for-docker-container-and-javascript-actions).\"" }, "conclusion": { "description": "The result of a completed step after [`continue-on-error`](https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepscontinue-on-error) is applied. Possible values are `success`, `failure`, `cancelled`, or `skipped`. When a `continue-on-error` step fails, the `outcome` is `failure`, but the final conclusion is `success`." }, "outcome": { "description": "The result of a completed step before [`continue-on-error`](https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepscontinue-on-error) is applied. Possible values are `success`, `failure`, `cancelled`, or `skipped`. When a `continue-on-error` step fails, the `outcome` is `failure`, but the final conclusion is `success`." } }, "runner": { "name": { "description": "The name of the runner executing the job." }, "os": { "description": "The operating system of the runner executing the job. Possible values are `Linux`, `Windows`, or `macOS`." }, "arch": { "description": "The architecture of the runner executing the job. Possible values are `X86`, `X64`, `ARM`, or `ARM64`." }, "temp": { "description": "The path to a temporary directory on the runner. This directory is emptied at the beginning and end of each job. Note that files will not be removed if the runner's user account does not have permission to delete them." }, "tool_cache": { "description": "The path to the directory containing preinstalled tools for GitHub-hosted runners. For more information, see \"[About GitHub-hosted runners](https://docs.github.com/actions/reference/specifications-for-github-hosted-runners/#supported-software).\"" }, "debug": { "description": "This is set only if [debug logging](https://docs.github.com/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging) is enabled, and always has the value of `1`. It can be useful as an indicator to enable additional debugging or verbose logging in your own job steps." } }, "strategy": { "fail-fast": { "description": "When `true`, all in-progress jobs are canceled if any job in a matrix fails. For more information, see \"[Workflow syntax for GitHub Actions](https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstrategyfail-fast).\"" }, "job-index": { "description": "The index of the current job in the matrix. **Note:** This number is a zero-based number. The first job's index in the matrix is `0`." }, "job-total": { "description": "The total number of jobs in the matrix. **Note:** This number **is not** a zero-based number. For example, for a matrix with four jobs, the value of `job-total` is `4`." }, "max-parallel": { "description": "The maximum number of jobs that can run simultaneously when using a matrix job strategy. For more information, see \"[Workflow syntax for GitHub Actions](https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstrategymax-parallel).\"" } } }
1
+ { "$schema": "./descriptionsSchema.json", "root": { "github": { "description": "Information about the workflow run. For more information, see [`github` context](https://docs.github.com/actions/learn-github-actions/contexts#github-context)." }, "env": { "description": "Contains variables set in a workflow, job, or step. For more information, see [`env` context](https://docs.github.com/actions/learn-github-actions/contexts#env-context)." }, "vars": { "description": "Contains variables set at the repository, organization, or environment levels. For more information, see [`vars` context](https://docs.github.com/actions/learn-github-actions/contexts#vars-context)." }, "job": { "description": "Information about the currently running job. For more information, see [`job` context](https://docs.github.com/actions/learn-github-actions/contexts#job-context)." }, "jobs": { "description": "For reusable workflows only, contains outputs of jobs from the reusable workflow. For more information, see [`jobs` context](https://docs.github.com/actions/learn-github-actions/contexts#jobs-context)." }, "steps": { "description": "Information about the steps that have been run in the current job. For more information, see [`steps` context](https://docs.github.com/actions/learn-github-actions/contexts#steps-context)." }, "runner": { "description": "Information about the runner that is running the current job. For more information, see [`runner` context](https://docs.github.com/actions/learn-github-actions/contexts#runner-context)." }, "secrets": { "description": "Contains the names and values of secrets that are available to a workflow run. For more information, see [`secrets` context](https://docs.github.com/actions/learn-github-actions/contexts#secrets-context)." }, "strategy": { "description": "Information about the matrix execution strategy for the current job. For more information, see [`strategy` context](https://docs.github.com/actions/learn-github-actions/contexts#strategy-context)." }, "matrix": { "description": "Contains the matrix properties defined in the workflow that apply to the current job. For more information, see [`matrix` context](https://docs.github.com/actions/learn-github-actions/contexts#matrix-context)." }, "needs": { "description": "Contains the outputs of all jobs that are defined as a dependency of the current job. For more information, see [`needs` context](https://docs.github.com/actions/learn-github-actions/contexts#needs-context)." }, "inputs": { "description": "Contains the inputs of a reusable or manually triggered workflow. For more information, see [`inputs` context](https://docs.github.com/actions/learn-github-actions/contexts#inputs-context)." } }, "functions": { "always": { "description": "Causes the step to always execute, and returns `true`, even when canceled. The `always` expression is best used at the step level or on tasks that you expect to run even when a job is canceled. For example, you can use `always` to send logs even when a job is canceled." }, "cancelled": { "description": "Returns `true` if the workflow was canceled." }, "failure": { "description": "Returns `true` when any previous step of a job fails. If you have a chain of dependent jobs, `failure()` returns `true` if any ancestor job fails." }, "hashFiles": { "description": "Returns a single hash for the set of files that matches the `path` pattern. You can provide a single `path` pattern or multiple `path` patterns separated by commas. The `path` is relative to the `GITHUB_WORKSPACE` directory and can only include files inside of the `GITHUB_WORKSPACE`. This function calculates an individual SHA-256 hash for each matched file, and then uses those hashes to calculate a final SHA-256 hash for the set of files. If the `path` pattern does not match any files, this returns an empty string. For more information about SHA-256, see \"[SHA-2](https://wikipedia.org/wiki/SHA-2).\"\n\nYou can use pattern matching characters to match file names. Pattern matching is case-insensitive on Windows. For more information about supported pattern matching characters, see \"[Workflow syntax for GitHub Actions](https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet).\"" } }, "github": { "action": { "description": "The name of the action currently running, or the [`id`](https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsid) of a step. GitHub removes special characters, and uses the name `__run` when the current step runs a script without an `id`. If you use the same action more than once in the same job, the name will include a suffix with the sequence number with underscore before it. For example, the first script you run will have the name `__run`, and the second script will be named `__run_2`. Similarly, the second invocation of `actions/checkout` will be `actionscheckout2`." }, "action_path": { "description": "The path where an action is located. This property is only supported in composite actions. You can use this path to access files located in the same repository as the action, for example by changing directories to the path: `cd ${{ github.action_path }}`." }, "action_ref": { "description": "For a step executing an action, this is the ref of the action being executed. For example, `v2`." }, "action_repository": { "description": "For a step executing an action, this is the owner and repository name of the action. For example, `actions/checkout`." }, "action_status": { "description": "For a composite action, the current result of the composite action." }, "actor": { "description": "The username of the user that triggered the initial workflow run. If the workflow run is a re-run, this value may differ from `github.triggering_actor`. Any workflow re-runs will use the privileges of `github.actor`, even if the actor initiating the re-run (`github.triggering_actor`) has different privileges." }, "actor_id": { "description": "The account ID of the person or app that triggered the initial workflow run. For example, `1234567`. Note that this is different from the actor username.", "versions": { "ghes": ">=3.9", "ghae": ">=3.9" } }, "api_url": { "description": "The URL of the GitHub REST API." }, "base_ref": { "description": "The `base_ref` or target branch of the pull request in a workflow run. This property is only available when the event that triggers a workflow run is either `pull_request` or `pull_request_target`." }, "env": { "description": "Path on the runner to the file that sets environment variables from workflow commands. This file is unique to the current step and is a different file for each step in a job. For more information, see \"[Workflow commands for GitHub Actions](https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#setting-an-environment-variable).\"" }, "event": { "description": "The full event webhook payload. You can access individual properties of the event using this context. This object is identical to the webhook payload of the event that triggered the workflow run, and is different for each event. The webhooks for each GitHub Actions event is linked in \"[Events that trigger workflows](https://docs.github.com/actions/using-workflows/events-that-trigger-workflows).\" For example, for a workflow run triggered by the [`push` event](https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#push), this object contains the contents of the [push webhook payload](https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#push)." }, "event_name": { "description": "The name of the event that triggered the workflow run." }, "event_path": { "description": "The path to the file on the runner that contains the full event webhook payload." }, "graphql_url": { "description": "The URL of the GitHub GraphQL API." }, "head_ref": { "description": "The `head_ref` or source branch of the pull request in a workflow run. This property is only available when the event that triggers a workflow run is either `pull_request` or `pull_request_target`." }, "job": { "description": "The [`job_id`](https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_id) of the current job.\nNote: This context property is set by the Actions runner, and is only available within the execution `steps` of a job. Otherwise, the value of this property will be `null`." }, "job_workflow_sha": { "description": "For jobs using a reusable workflow, the commit SHA for the reusable workflow file.", "versions": { "ghes": ">=3.9", "ghae": ">=3.9" } }, "path": { "description": "Path on the runner to the file that sets system PATH variables from workflow commands. This file is unique to the current step and is a different file for each step in a job. For more information, see \"[Workflow commands for GitHub Actions](https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-system-path).\"" }, "ref": { "description": "The fully-formed ref of the branch or tag that triggered the workflow run. For workflows triggered by `push`, this is the branch or tag ref that was pushed. For workflows triggered by `pull_request`, this is the pull request merge branch. For workflows triggered by `release`, this is the release tag created. For other triggers, this is the branch or tag ref that triggered the workflow run. This is only set if a branch or tag is available for the event type. The ref given is fully-formed, meaning that for branches the format is `refs/heads/<branch_name>`, for pull requests it is `refs/pull/<pr_number>/merge`, and for tags it is `refs/tags/<tag_name>`. For example, `refs/heads/feature-branch-1`." }, "ref_name": { "description": "The short ref name of the branch or tag that triggered the workflow run. This value matches the branch or tag name shown on GitHub. For example, `feature-branch-1`." }, "ref_protected": { "description": "`true` if branch protections are configured for the ref that triggered the workflow run." }, "ref_type": { "description": "The type of ref that triggered the workflow run. Valid values are `branch` or `tag`." }, "repository": { "description": "The owner and repository name. For example, `octocat/Hello-World`." }, "repository_id": { "description": "The ID of the repository. For example, `123456789`. Note that this is different from the repository name.", "versions": { "ghes": ">=3.9", "ghae": ">=3.9" } }, "repository_owner": { "description": "The repository owner's username. For example, `octocat`." }, "repository_owner_id": { "description": "The repository owner's account ID. For example, `1234567`. Note that this is different from the owner's name.", "versions": { "ghes": ">=3.9", "ghae": ">=3.9" } }, "repositoryUrl": { "description": "The Git URL to the repository. For example, `git://github.com/octocat/hello-world.git`." }, "retention_days": { "description": "The number of days that workflow run logs and artifacts are kept." }, "run_id": { "description": "A unique number for each workflow run within a repository. This number does not change if you re-run the workflow run." }, "run_number": { "description": "A unique number for each run of a particular workflow in a repository. This number begins at 1 for the workflow's first run, and increments with each new run. This number does not change if you re-run the workflow run." }, "run_attempt": { "description": "A unique number for each attempt of a particular workflow run in a repository. This number begins at 1 for the workflow run's first attempt, and increments with each re-run." }, "secret_source": { "description": "The source of a secret used in a workflow. Possible values are `None`, `Actions`, `Dependabot`, or `Codespaces`." }, "server_url": { "description": "The URL of the GitHub server. For example: `https://github.com`." }, "sha": { "description": "The commit SHA that triggered the workflow. The value of this commit SHA depends on the event that triggered the workflow. For more information, see \"[Events that trigger workflows](https://docs.github.com/actions/using-workflows/events-that-trigger-workflows).\" For example, `ffac537e6cbbf934b08745a378932722df287a53`." }, "token": { "description": "A token to authenticate on behalf of the GitHub App installed on your repository. This is functionally equivalent to the `GITHUB_TOKEN` secret. For more information, see \"[Automatic token authentication](https://docs.github.com/actions/security-guides/automatic-token-authentication).\"\nNote: This context property is set by the Actions runner, and is only available within the execution `steps` of a job. Otherwise, the value of this property will be `null`." }, "triggering_actor": { "description": "The username of the user that initiated the workflow run. If the workflow run is a re-run, this value may differ from `github.actor`. Any workflow re-runs will use the privileges of `github.actor`, even if the actor initiating the re-run (`github.triggering_actor`) has different privileges." }, "workflow": { "description": "The name of the workflow. If the workflow file doesn't specify a `name`, the value of this property is the full path of the workflow file in the repository." }, "workflow_ref": { "description": "The ref path to the workflow. For example, `octocat/hello-world/.github/workflows/my-workflow.yml@refs/heads/my_branch`.", "versions": { "ghes": ">=3.9", "ghae": ">=3.9" } }, "workflow_sha": { "description": "The commit SHA for the workflow file.", "versions": { "ghes": ">=3.9", "ghae": ">=3.9" } }, "workspace": { "description": "The default working directory on the runner for steps, and the default location of your repository when using the [`checkout`](https://github.com/actions/checkout) action." } }, "secrets": { "GITHUB_TOKEN": { "description": "Automatically created token for each workflow run. For more information, see \"[Automatic token authentication](https://docs.github.com/actions/security-guides/automatic-token-authentication).\"" } }, "jobs": { "outputs": { "description": "The set of outputs of a job in a reusable workflow." }, "result": { "description": "The result of a job in the reusable workflow. Possible values are `success`, `failure`, `cancelled`, or `skipped`." } }, "steps": { "outputs": { "description": "The set of outputs defined for the step. For more information, see \"[Metadata syntax for GitHub Actions](https://docs.github.com/actions/creating-actions/metadata-syntax-for-github-actions#outputs-for-docker-container-and-javascript-actions).\"" }, "conclusion": { "description": "The result of a completed step after [`continue-on-error`](https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepscontinue-on-error) is applied. Possible values are `success`, `failure`, `cancelled`, or `skipped`. When a `continue-on-error` step fails, the `outcome` is `failure`, but the final conclusion is `success`." }, "outcome": { "description": "The result of a completed step before [`continue-on-error`](https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepscontinue-on-error) is applied. Possible values are `success`, `failure`, `cancelled`, or `skipped`. When a `continue-on-error` step fails, the `outcome` is `failure`, but the final conclusion is `success`." } }, "runner": { "name": { "description": "The name of the runner executing the job." }, "os": { "description": "The operating system of the runner executing the job. Possible values are `Linux`, `Windows`, or `macOS`." }, "arch": { "description": "The architecture of the runner executing the job. Possible values are `X86`, `X64`, `ARM`, or `ARM64`." }, "temp": { "description": "The path to a temporary directory on the runner. This directory is emptied at the beginning and end of each job. Note that files will not be removed if the runner's user account does not have permission to delete them." }, "tool_cache": { "description": "The path to the directory containing preinstalled tools for GitHub-hosted runners. For more information, see \"[About GitHub-hosted runners](https://docs.github.com/actions/reference/specifications-for-github-hosted-runners/#supported-software).\"" }, "debug": { "description": "This is set only if [`ACTIONS_STEP_DEBUG`](https://docs.github.com/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging) is enabled, and always has the value of `\"1\"`. It can be useful as an indicator to enable additional debugging or verbose logging in your own job steps." }, "environment": { "description": "The environment of the runner executing the job. Possible values are `github-hosted` for GitHub-hosted runners, or `self-hosted` for self-hosted runners." }, "workspace": { "description": "The runner-specific working directory path for the job." } }, "strategy": { "fail-fast": { "description": "When `true`, all in-progress jobs are canceled if any job in a matrix fails. For more information, see \"[Workflow syntax for GitHub Actions](https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstrategyfail-fast).\"" }, "job-index": { "description": "The index of the current job in the matrix. **Note:** This number is a zero-based number. The first job's index in the matrix is `0`." }, "job-total": { "description": "The total number of jobs in the matrix. **Note:** This number **is not** a zero-based number. For example, for a matrix with four jobs, the value of `job-total` is `4`." }, "max-parallel": { "description": "The maximum number of jobs that can run simultaneously when using a matrix job strategy. For more information, see \"[Workflow syntax for GitHub Actions](https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstrategymax-parallel).\"" } } }
@@ -1 +1 @@
1
- {"version":3,"file":"matrix.d.ts","sourceRoot":"","sources":["../../src/context-providers/matrix.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,eAAe,EAAC,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAC,YAAY,EAAE,IAAI,EAAC,MAAM,WAAW,CAAC;AAE7C,wBAAgB,gBAAgB,CAAC,eAAe,EAAE,eAAe,EAAE,IAAI,EAAE,IAAI,GAAG,YAAY,CAkC3F"}
1
+ {"version":3,"file":"matrix.d.ts","sourceRoot":"","sources":["../../src/context-providers/matrix.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,eAAe,EAAC,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAC,YAAY,EAAE,IAAI,EAAC,MAAM,WAAW,CAAC;AAE7C,wBAAgB,gBAAgB,CAAC,eAAe,EAAE,eAAe,EAAE,IAAI,EAAE,IAAI,GAAG,YAAY,CAmC3F"}
@@ -5,7 +5,8 @@ export function getMatrixContext(workflowContext, mode) {
5
5
  // https://docs.github.com/en/actions/learn-github-actions/contexts#matrix-context
6
6
  const strategy = workflowContext.job?.strategy ?? workflowContext.reusableWorkflowJob?.strategy;
7
7
  if (!strategy || !isMapping(strategy)) {
8
- return new DescriptionDictionary();
8
+ // No strategy defined - matrix is null at runtime (not empty object)
9
+ return new data.Null();
9
10
  }
10
11
  const matrix = strategy.find("matrix");
11
12
  if (!matrix || !isMapping(matrix)) {
@@ -1 +1 @@
1
- {"version":3,"file":"matrix.js","sourceRoot":"","sources":["../../src/context-providers/matrix.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAE,qBAAqB,EAAC,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAC,iBAAiB,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAC,MAAM,0BAA0B,CAAC;AAK5F,OAAO,EAAe,IAAI,EAAC,MAAM,WAAW,CAAC;AAE7C,MAAM,UAAU,gBAAgB,CAAC,eAAgC,EAAE,IAAU;IAC3E,kFAAkF;IAClF,MAAM,QAAQ,GAAG,eAAe,CAAC,GAAG,EAAE,QAAQ,IAAI,eAAe,CAAC,mBAAmB,EAAE,QAAQ,CAAC;IAChG,IAAI,CAAC,QAAQ,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE;QACrC,OAAO,IAAI,qBAAqB,EAAE,CAAC;KACpC;IAED,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACvC,IAAI,CAAC,MAAM,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE;QACjC,sEAAsE;QACtE,OAAO,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;KACxB;IAED,MAAM,UAAU,GAAG,gBAAgB,CAAC,MAAM,EAAE,IAAI,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kB;IAChG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;QACvB,OAAO;KACR;IAED,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC;IAC3B,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;IAClE,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;QACxB,IAAI,KAAK,KAAK,SAAS,EAAE;YACvB,UAAU,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;YAC/B,OAAO;SACR;QAED,UAAU,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,GAAG,CAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC9C,OAAO;KACR;IAED,IAAI,KAAK,KAAK,SAAS,EAAE;QACvB,OAAO;KACR;IAED,MAAM,QAAQ,GAAG,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACrC,IAAI,QAAQ,KAAK,SAAS,EAAE;QAC1B,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACpB,OAAO;KACR;IAED,UAAU,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,GAAG,CAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAChD,CAAC"}
@@ -21,7 +21,10 @@ export function getStepsContext(workflowContext) {
21
21
  function stepContext() {
22
22
  // https://docs.github.com/en/actions/learn-github-actions/contexts#steps-context
23
23
  const d = new DescriptionDictionary();
24
- d.add("outputs", new data.Null(), getDescription("steps", "outputs"));
24
+ // Step outputs are dynamic - actions can generate outputs based on their inputs
25
+ const outputs = new DescriptionDictionary();
26
+ outputs.complete = false;
27
+ d.add("outputs", outputs, getDescription("steps", "outputs"));
25
28
  // Can be "success", "failure", "cancelled", or "skipped"
26
29
  d.add("conclusion", new data.Null(), getDescription("steps", "conclusion"));
27
30
  d.add("outcome", new data.Null(), getDescription("steps", "outcome"));
@@ -1 +1 @@
1
- {"version":3,"file":"steps.js","sourceRoot":"","sources":["../../src/context-providers/steps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAE,qBAAqB,EAAC,MAAM,sBAAsB,CAAC;AAGjE,OAAO,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAC;AAE9C,MAAM,UAAU,eAAe,CAAC,eAAgC;IAC9D,MAAM,CAAC,GAAG,IAAI,qBAAqB,EAAE,CAAC;IACtC,IAAI,CAAC,eAAe,CAAC,GAAG,EAAE,KAAK,EAAE;QAC/B,OAAO,CAAC,CAAC;KACV;IAED,MAAM,WAAW,GAAG,eAAe,CAAC,IAAI,EAAE,EAAE,CAAC;IAE7C,KAAK,MAAM,IAAI,IAAI,eAAe,CAAC,GAAG,CAAC,KAAK,EAAE;QAC5C,kEAAkE;QAClE,IAAI,WAAW,IAAI,IAAI,CAAC,EAAE,KAAK,WAAW,EAAE;YAC1C,MAAM;SACP;QAED,IAAI,WAAW,CAAC,IAAI,CAAC,EAAE;YACrB,SAAS;SACV;QAED,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE,WAAW,EAAE,CAAC,CAAC;KAC/B;IAED,OAAO,CAAC,CAAC;AACX,CAAC;AAED,SAAS,WAAW;IAClB,iFAAiF;IACjF,MAAM,CAAC,GAAG,IAAI,qBAAqB,EAAE,CAAC;IAEtC,CAAC,CAAC,GAAG,CAAC,SAAS,EAAE,IAAI,IAAI,CAAC,IAAI,EAAE,EAAE,cAAc,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC;IAEtE,yDAAyD;IACzD,CAAC,CAAC,GAAG,CAAC,YAAY,EAAE,IAAI,IAAI,CAAC,IAAI,EAAE,EAAE,cAAc,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC;IAC5E,CAAC,CAAC,GAAG,CAAC,SAAS,E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,GAAG,CAAC,SAAS,EAAE,OAAO,EAAE,cAAc,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC;IAE9D,yDAAyD;IACzD,CAAC,CAAC,GAAG,CAAC,YAAY,EAAE,IAAI,IAAI,CAAC,IAAI,EAAE,EAAE,cAAc,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC;IAC5E,CAAC,CAAC,GAAG,CAAC,SAAS,EAAE,IAAI,IAAI,CAAC,IAAI,EAAE,EAAE,cAAc,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC;IAEtE,OAAO,CAAC,CAAC;AACX,CAAC;AAED,SAAS,WAAW,CAAC,IAAU;IAC7B,qEAAqE;IACrE,iFAAiF;IACjF,OAAO,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;AAClC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"strategy.d.ts","sourceRoot":"","sources":["../../src/context-providers/strategy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,qBAAqB,EAAC,MAAM,sBAAsB,CAAC;AAEjE,OAAO,EAAC,eAAe,EAAC,MAAM,6BAA6B,CAAC;AAG5D,wBAAgB,kBAAkB,CAAC,eAAe,EAAE,eAAe,GAAG,qBAAqB,CAiC1F"}
1
+ {"version":3,"file":"strategy.d.ts","sourceRoot":"","sources":["../../src/context-providers/strategy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,qBAAqB,EAAC,MAAM,sBAAsB,CAAC;AAEjE,OAAO,EAAC,eAAe,EAAC,MAAM,6BAA6B,CAAC;AAW5D,wBAAgB,kBAAkB,CAAC,eAAe,EAAE,eAAe,GAAG,qBAAqB,CAmC1F"}
@@ -1,13 +1,21 @@
1
1
  import { data, DescriptionDictionary } from "@actions/expressions";
2
2
  import { isMapping, isScalar, isString } from "@actions/workflow-parser";
3
3
  import { scalarToData } from "../utils/scalar-to-data";
4
+ // Default strategy values when no strategy block is defined
5
+ const DEFAULT_STRATEGY = {
6
+ "fail-fast": new data.BooleanData(true),
7
+ "job-index": new data.NumberData(0),
8
+ "job-total": new data.NumberData(1),
9
+ "max-parallel": new data.NumberData(1)
10
+ };
4
11
  export function getStrategyContext(workflowContext) {
5
12
  // https://docs.github.com/en/actions/learn-github-actions/contexts#strategy-context
6
13
  const keys = ["fail-fast", "job-index", "job-total", "max-parallel"];
7
14
  const strategy = workflowContext.job?.strategy ?? workflowContext.reusableWorkflowJob?.strategy;
8
15
  if (!strategy || !isMapping(strategy)) {
16
+ // No strategy defined - return defaults that match runtime behavior
9
17
  return new DescriptionDictionary(...keys.map(key => {
10
- return { key, value: new data.Null() };
18
+ return { key, value: DEFAULT_STRATEGY[key] };
11
19
  }));
12
20
  }
13
21
  const strategyContext = new DescriptionDictionary();
@@ -23,7 +31,8 @@ export function getStrategyContext(workflowContext) {
23
31
  }
24
32
  for (const key of keys) {
25
33
  if (!strategyContext.get(key)) {
26
- strategyContext.add(key, new data.Null());
34
+ // Use default value for missing properties
35
+ strategyContext.add(key, DEFAULT_STRATEGY[key]);
27
36
  }
28
37
  }
29
38
  return strategyContext;
@@ -1 +1 @@
1
- {"version":3,"file":"strategy.js","sourceRoot":"","sources":["../../src/context-providers/strategy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAE,qBAAqB,EAAC,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAC,MAAM,0BAA0B,CAAC;AAEvE,OAAO,EAAC,YAAY,EAAC,MAAM,yBAAyB,CAAC;AAErD,MAAM,UAAU,kBAAkB,CAAC,eAAgC;IACjE,oFAAoF;IACpF,MAAM,IAAI,GAAG,CAAC,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,CAAC,CAAC;IAErE,MAAM,QAAQ,GAAG,eAAe,CAAC,GAAG,EAAE,QAAQ,IAAI,eAAe,CAAC,mBAAmB,EAAE,QAAQ,CAAC;IAChG,IAAI,CAAC,QAAQ,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,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;QAChF,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;KAC5C;IAED,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE;QACtB,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;YAC7B,2CAA2C;YAC3C,eAAe,CAAC,GAAG,CAAC,GAAG,EAAE,gBAAgB,CAAC,GAAoC,CAAC,CAAC,CAAC;SAClF;KACF;IAED,OAAO,eAAe,CAAC;AACzB,CAAC"}
package/dist/validate.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Lexer, Parser, data } from "@actions/expressions";
2
2
  import { FunctionCall, Literal, Logical } from "@actions/expressions/ast";
3
- import { isBasicExpression, isString } from "@actions/workflow-parser";
3
+ import { isBasicExpression, isMapping, isString } from "@actions/workflow-parser";
4
4
  import { ErrorPolicy } from "@actions/workflow-parser/model/convert";
5
5
  import { getCronDescription, hasCronIntervalLessThan5Minutes } from "@actions/workflow-parser/model/converter/cron";
6
6
  import { ensureStatusFunction } from "@actions/workflow-parser/model/converter/if-condition";
@@ -138,6 +138,8 @@ async function additionalValidations(diagnostics, documentUri, template, root, c
138
138
  }
139
139
  }
140
140
  }
141
+ // Validate concurrency deadlock between workflow and job levels
142
+ validateConcurrencyDeadlock(diagnostics, template);
141
143
  }
142
144
  function invalidValue(diagnostics, token, kind) {
143
145
  switch (kind) {
@@ -543,4 +545,63 @@ async function validateExpression(diagnostics, token, allowedContext, contextPro
543
545
  })));
544
546
  }
545
547
  }
548
+ /**
549
+ * Validates that workflow-level and job-level concurrency groups don't match,
550
+ * which would cause a deadlock at runtime.
551
+ */
552
+ function validateConcurrencyDeadlock(diagnostics, template) {
553
+ const workflowGroup = getStaticConcurrencyGroup(template.concurrency);
554
+ if (!workflowGroup) {
555
+ return; // No workflow-level concurrency or it's an expression
556
+ }
557
+ for (const job of template.jobs || []) {
558
+ if (!job.concurrency) {
559
+ continue;
560
+ }
561
+ const jobGroup = getStaticConcurrencyGroup(job.concurrency);
562
+ if (!jobGroup) {
563
+ continue; // Job concurrency is an expression
564
+ }
565
+ if (workflowGroup.value === jobGroup.value) {
566
+ // Error on workflow-level concurrency
567
+ if (template.concurrency.range) {
568
+ diagnostics.push({
569
+ message: `Concurrency group '${workflowGroup.value}' is also used by job '${job.id.value}'. This will cause a deadlock.`,
570
+ range: mapRange(template.concurrency.range),
571
+ severity: DiagnosticSeverity.Error
572
+ });
573
+ }
574
+ // Error on job-level concurrency
575
+ if (job.concurrency.range) {
576
+ diagnostics.push({
577
+ message: `Concurrency group '${jobGroup.value}' is also defined at the workflow level. This will cause a deadlock.`,
578
+ range: mapRange(job.concurrency.range),
579
+ severity: DiagnosticSeverity.Error
580
+ });
581
+ }
582
+ }
583
+ }
584
+ }
585
+ /**
586
+ * Extracts the static concurrency group name from a concurrency token.
587
+ * Returns undefined if the token is an expression or doesn't have a static group.
588
+ */
589
+ function getStaticConcurrencyGroup(token) {
590
+ if (!token || token.isExpression) {
591
+ return undefined;
592
+ }
593
+ // Simple string form: concurrency: "test"
594
+ if (isString(token)) {
595
+ return token;
596
+ }
597
+ // Mapping form: concurrency: { group: "test", cancel-in-progress: true }
598
+ if (isMapping(token)) {
599
+ for (const pair of token) {
600
+ if (isString(pair.key) && pair.key.value === "group" && isString(pair.value) && !pair.value.isExpression) {
601
+ return pair.value;
602
+ }
603
+ }
604
+ }
605
+ return undefined;
606
+ }
546
607
  //# sourceMappingURL=validate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"validate.js","sourceRoot":"","sources":["../src/validate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAC,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAO,YAAY,EAAE,OAAO,EAAE,OAAO,EAAC,MAAM,0BAA0B,CAAC;AAC9E,OA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,EAAE,sBAAsB,aAAa,CAAC,KAAK,0BAA0B,GAAG,CAAC,EAAE,CAAC,KAAK,gCAAgC;oBACxH,KAAK,EAAE,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC;oBAC3C,QAAQ,EAAE,kBAAkB,CAAC,KAAK;iBACnC,CAAC,CAAC;aACJ;YAED,iCAAiC;YACjC,IAAI,GAAG,CAAC,WAAW,CAAC,KAAK,EAAE;gBACzB,WAAW,CAAC,IAAI,CAAC;oBACf,OAAO,EAAE,sBAAsB,QAAQ,CAAC,KAAK,sEAAsE;oBACnH,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,KAAK,CAAC;oBACtC,QAAQ,EAAE,kBAAkB,CAAC,KAAK;iBACnC,CAAC,CAAC;aACJ;SACF;KACF;AACH,CAAC;AAED;;;GAGG;AACH,SAAS,yBAAyB,CAAC,KAAgC;IACjE,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,YAAY,EAAE;QAChC,OAAO,SAAS,CAAC;KAClB;IAED,0CAA0C;IAC1C,IAAI,QAAQ,CAAC,KAAK,CAAC,EAAE;QACnB,OAAO,KAAK,CAAC;KACd;IAED,yEAAyE;IACzE,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE;QACpB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;YACxB,IAAI,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,KAAK,OAAO,IAAI,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE;gBACxG,OAAO,IAAI,CAAC,KAAK,CAAC;aACnB;SACF;KACF;IAED,OAAO,SAAS,CAAC;AACnB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@actions/languageservice",
3
- "version": "0.3.23",
3
+ "version": "0.3.25",
4
4
  "description": "Language service for GitHub Actions",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -47,15 +47,15 @@
47
47
  "watch": "tsc --build tsconfig.build.json --watch"
48
48
  },
49
49
  "dependencies": {
50
- "@actions/expressions": "^0.3.23",
51
- "@actions/workflow-parser": "^0.3.23",
50
+ "@actions/expressions": "^0.3.25",
51
+ "@actions/workflow-parser": "^0.3.25",
52
52
  "vscode-languageserver-textdocument": "^1.0.7",
53
53
  "vscode-languageserver-types": "^3.17.2",
54
54
  "vscode-uri": "^3.0.8",
55
55
  "yaml": "^2.1.1"
56
56
  },
57
57
  "engines": {
58
- "node": ">= 16.15"
58
+ "node": ">= 18"
59
59
  },
60
60
  "files": [
61
61
  "dist/**/*"
@@ -76,5 +76,5 @@
76
76
  "ts-node": "^10.9.1",
77
77
  "typescript": "^4.8.4"
78
78
  },
79
- "gitHead": "7b9adb106ea7a7bdfeef34cee6079b6f3aff7946"
79
+ "gitHead": "742b36d6b7280f43703a6e0f308525d4fd39bfff"
80
80
  }
@@ -1,4 +0,0 @@
1
- import { TokenRange } from "@actions/workflow-parser/templates/tokens/token-range";
2
- import { Position } from "vscode-languageserver-textdocument";
3
- export declare function getRelCharOffset(tokenRange: TokenRange, currentInput: string, pos: Position): number;
4
- //# sourceMappingURL=rel-char-pos.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rel-char-pos.d.ts","sourceRoot":"","sources":["../../src/utils/rel-char-pos.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,uDAAuD,CAAC;AACjF,OAAO,EAAC,QAAQ,EAAC,MAAM,oCAAoC,CAAC;AAG5D,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,GAAG,MAAM,CAUpG"}
@@ -1,14 +0,0 @@
1
- import { mapRange } from "./range";
2
- export function getRelCharOffset(tokenRange, currentInput, pos) {
3
- const range = mapRange(tokenRange);
4
- if (range.start.line !== range.end.line) {
5
- const lines = currentInput.split("\n");
6
- const lineDiff = pos.line - range.start.line - 1;
7
- const linesBeforeCusor = lines.slice(0, lineDiff);
8
- return linesBeforeCusor.join("\n").length + pos.character + 1;
9
- }
10
- else {
11
- return pos.character - range.start.character;
12
- }
13
- }
14
- //# sourceMappingURL=rel-char-pos.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rel-char-pos.js","sourceRoot":"","sources":["../../src/utils/rel-char-pos.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AAEjC,MAAM,UAAU,gBAAgB,CAAC,UAAsB,EAAE,YAAoB,EAAE,GAAa;IAC1F,MAAM,KAAK,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC;IACnC,IAAI,KAAK,CAAC,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE;QACvC,MAAM,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACvC,MAAM,QAAQ,GAAG,GAAG,CAAC,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC;QACjD,MAAM,gBAAgB,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC;QAClD,OAAO,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,GAAG,GAAG,CAAC,SAAS,GAAG,CAAC,CAAC;KAC/D;SAAM;QACL,OAAO,GAAG,CAAC,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC;KAC9C;AACH,CAAC"}