You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Rename cadl-ranch references to spector and update terminology
- Rename gen-cadl-ranch.js to gen-spector.js
- Rename cadl-ranch-list.js to spector-list.js
- Update all references in package.json scripts, launch.json, CI pipelines,
CONTRIBUTING.md, copilot-instructions.md, and SKILL.md
- Update spector-list.js with latest entries from upstream
- Replace HLC terminology with AutoRest in CI and test docs
- Update README.md option descriptions to remove Modular jargon
Fixes#3792
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Rename Modular to JS Emitter for copilot-instruction
* Revert "Rename Modular to JS Emitter for copilot-instruction"
This reverts commit 9cd1a04.
* Revert Modular terminology changes in README.md
Restore original 'Modular library', 'Modular client', and 'Only for Modular generation' wording. Keeps this PR limited to cadl-ranch -> spector and HLC -> AutoRest renames.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: .github/skills/spector-test-implementer/SKILL.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,9 +35,9 @@ Read `temp/specs/<path>/mockapi.ts`. Extract all scenario names (the `Scenarios.
35
35
36
36
### Step 3: Check Existing Implementation
37
37
38
-
Check whether the path already exists in the `azureModularTsps` array in `test/commands/cadl-ranch-list.js`, and whether a `.spec.ts` file already exists in `test/azureModularIntegration/`.
38
+
Check whether the path already exists in the `azureModularTsps` array in `test/commands/spector-list.js`, and whether a `.spec.ts` file already exists in `test/azureModularIntegration/`.
39
39
40
-
**Important:**`cadl-ranch-list.js` has four arrays in order: `azureRlcTsps`, `rlcTsps`, `azureModularTsps`, `modularTsps`. Verify a match is inside `azureModularTsps` by checking line numbers:
40
+
**Important:**`spector-list.js` has four arrays in order: `azureRlcTsps`, `rlcTsps`, `azureModularTsps`, `modularTsps`. Verify a match is inside `azureModularTsps` by checking line numbers:
41
41
42
42
1. Find the line of `export const azureModularTsps = [` (start)
43
43
2. Find the line of `export const modularTsps = [` (end boundary)
@@ -53,7 +53,7 @@ Then branch:
53
53
54
54
**Case C -- Entry exists but no .spec.ts:** Skip Step 4, go to Step 5.
55
55
56
-
### Step 4: Add Entry to cadl-ranch-list.js
56
+
### Step 4: Add Entry to spector-list.js
57
57
58
58
Add to the `azureModularTsps` array:
59
59
@@ -78,9 +78,9 @@ This step has two phases: first create the config and generate the client, then
78
78
2. Create `test/azureModularIntegration/generated/<path>/.gitignore` with the content shown in [.gitignore template](references/naming-and-templates.md#gitignore-template)
4.**Verify generation succeeded:** Check that `test/azureModularIntegration/generated/<path>/src/index.ts` exists and contains actual client class exports (not empty or placeholder). If the file is missing or empty, **stop** — remove the entry from `cadl-ranch-list.js`, delete the generated directory, and report that generation is not supported for this path.
83
+
4.**Verify generation succeeded:** Check that `test/azureModularIntegration/generated/<path>/src/index.ts` exists and contains actual client class exports (not empty or placeholder). If the file is missing or empty, **stop** — remove the entry from `spector-list.js`, delete the generated directory, and report that generation is not supported for this path.
84
84
5. Read `test/azureModularIntegration/generated/<path>/src/index.ts` to discover the client class name, method signatures, and operation groups.
85
85
86
86
**Phase 2 -- .spec.ts file:**
@@ -157,10 +157,10 @@ For each new test path, these are the files that should be committed:
Copy file name to clipboardExpand all lines: packages/typespec-ts/CONTRIBUTING.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,11 +52,11 @@ npm run smoke-test
52
52
53
53
Whenever you work on adding a feature/fixing a bug, this would probably be your first step. You create a test case and then run it through the generator, see the result, modify the generator, run it again and so on, until you get the desired output.
54
54
55
-
1. Pick up a typespec as your test input in cadl-ranch. Below are some examples
55
+
1. Pick up a typespec as your test input in spector. Below are some examples
56
56
57
-
Let us say your test input is `authentication/api-key/main.tsp` in @azure-tools/cadl-ranch-specs.
57
+
Let us say your test input is `authentication/api-key/main.tsp` in @typespec/http-specs or @azure-tools/azure-http-specs.
58
58
59
-
1. Now add an entry to the TypeSpecRanchConfig to the file [`cadl-ranch-list.ts`](./test/commands/cadl-ranch-list.ts). In the file, add the following to the array.
59
+
1. Now add an entry to the TypeSpecRanchConfig to the file [`spector-list.js`](./test/commands/spector-list.js). In the file, add the following to the array.
Copy file name to clipboardExpand all lines: packages/typespec-ts/package.json
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -45,10 +45,10 @@
45
45
"generate-and-run:modular": "npm run generate-tsp-only:modular && npm run integration-test:alone:modular && npm run stop-test-server -- -p 3002",
46
46
"generate-and-run:azure-modular": "npm run generate-tsp-only:azure-modular && npm run integration-test:alone:azure-modular && npm run stop-test-server -- -p 3002",
47
47
"generate-tsp-only": "npm run generate-tsp-only:azure-rlc && npm run generate-tsp-only:rlc &&npm run generate-tsp-only:azure-modular && npm run generate-tsp-only:modular",
"regen-test-baselines": "npm run generate-tsp-only",
53
53
"integration-test:alone": "npm run integration-test:alone:rlc && npm run integration-test:alone:azure-rlc && npm run integration-test:alone:modular && npm run integration-test:alone:azure-modular",
54
54
"integration-test:alone:rlc": "vitest run --project integration-rlc",
0 commit comments