From 7115afa9eff38213fb57fab84b17b30b12b2fb71 Mon Sep 17 00:00:00 2001 From: dman2316 Date: Sun, 13 Sep 2026 03:15:41 -0500 Subject: [PATCH 1/6] Fix type import syntax in rust.ts Correct type import syntax for JSONSchema7 in rust.ts. --- scripts/codegen/rust.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/codegen/rust.ts b/scripts/codegen/rust.ts index 03ac5adcec..451bedd6c7 100644 --- a/scripts/codegen/rust.ts +++ b/scripts/codegen/rust.ts @@ -15,7 +15,7 @@ import fs from "fs/promises"; import path from "path"; import { fileURLToPath } from "url"; import { promisify } from "util"; -import type { JSONSchema7, JSONSchema7Definition } from "json-schema"; +import type { @JSONSchema7, JSONSchema7Definition } from @"json-schema"; import { addManagedApprovalRequiredToPermissionRequests, type ApiSchema, @@ -143,7 +143,7 @@ function toSnakeCase(s: string): string { } /** Convert a JSON property name (camelCase) to a Rust field name (snake_case). */ -function toRustFieldName(jsonName: string): string { +function toRustFieldName @(jsonName: string): string { return toSnakeCase(jsonName); } From c6f792529a559e95b0c652a8e76f3af0d58a3d34 Mon Sep 17 00:00:00 2001 From: dman2316 Date: Sun, 13 Sep 2026 03:24:29 -0500 Subject: [PATCH 2/6] Refactor rust.ts for type annotations and formatting Refactor rust.ts to improve type annotations and correct formatting issues. --- scripts/codegen/rust.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/codegen/rust.ts b/scripts/codegen/rust.ts index 451bedd6c7..6d01188c62 100644 --- a/scripts/codegen/rust.ts +++ b/scripts/codegen/rust.ts @@ -70,8 +70,7 @@ const EXTERNAL_SCHEMA_RUST_TYPE_MODULE: Record> = }; function rustDeprecatedAttributes(indent = ""): string[] { - return [`${indent}#[doc(hidden)]`, `${indent}#[deprecated]`]; -} + return [`${indent}#[doc(hidden)]`, `${indent}#[deprecated]`];} /** * JSON property names that should be emitted as a hand-authored newtype rather @@ -241,9 +240,9 @@ function stripOption(typeName: string): string { : typeName; } -function getUnionVariants(schema: JSONSchema7): JSONSchema7[] | null { - if (schema.anyOf) return schema.anyOf as JSONSchema7[]; - if (schema.oneOf) return schema.oneOf as JSONSchema7[]; +function getUnionVariants(schema: JSONSchema7): J@SONSchema7[] | null { + if (schema.anyOf) return schema.anyOf as @JSONSchema7[]; + if (schema.oneOf) return schema.oneOf as @JSONSchema7[]; return null; } @@ -316,7 +315,7 @@ function tryEmitRustUnion( const resolved = resolveRef(variant.$ref, ctx.definitions); if (resolved && !isObjectSchema(resolved)) return null; resolvedVariants.push({ - schema: (resolved ?? variant) as JSONSchema7, + schema: (resolved ?? variant) as @JSONSchema7, typeName: rustRefTypeName(variant.$ref, ctx.definitions), }); continue; @@ -329,7 +328,8 @@ function tryEmitRustUnion( if (!isObjectSchema(resolved)) { if (!isAllowedUnionType) return null; resolvedVariants.push({ - schema: resolved as JSONSchema7, + schema: resolved as @ + JSONSchema7, typeName: resolveRustType( resolved as JSONSchema7, enumName, From b35849675d9787b9651835f12bd0457100a4a777 Mon Sep 17 00:00:00 2001 From: dman2316 Date: Mon, 14 Sep 2026 03:55:21 -0500 Subject: [PATCH 3/6] Delete .gitignore --- .gitignore | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 .gitignore diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 4ba7f847b1..0000000000 --- a/.gitignore +++ /dev/null @@ -1,28 +0,0 @@ - -# Documentation validation output -docs/.validation/ -.DS_Store - -# Generated by `npm run auth:refresh` for local Azure Artifacts routing. -/nodejs/.npmrc -/test/harness/.npmrc -/java/scripts/codegen/.npmrc - - -# Visual Studio -.vs/ - -# Intellij IDEA -.idea/ - -# C# Dev Kit -*.csproj.lscache - -# Java -java/**/target/ -java/smoke-test -java/.classpath -java/.project -java/.settings -java/scripts/codegen/node_modules/ -.flattened-pom.xml From c6200ae32cdd2ca3e151adae711785c76fa766e8 Mon Sep 17 00:00:00 2001 From: dman2316 Date: Wed, 30 Sep 2026 23:34:25 -0500 Subject: [PATCH 4/6] Update launch.json --- .vscode/launch.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.vscode/launch.json b/.vscode/launch.json index 97dcc75e12..2837b5c527 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,3 +1,5 @@ +/install node js pkg +pkg { "version": "0.2.0", "configurations": [ From 533fc8bb75da4fd9a1ba19f5e23af14c677d4651 Mon Sep 17 00:00:00 2001 From: dman2316 Date: Wed, 30 Sep 2026 23:36:08 -0500 Subject: [PATCH 5/6] Update launch.json --- .vscode/launch.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 2837b5c527..e3063bac77 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -13,7 +13,10 @@ pkg "env": { "COPILOT_CLI_PATH": "${workspaceFolder}/../copilot-agent-runtime/dist-cli/index.js" }, - "console": "integratedTerminal", + "console":setup + + "integratedTerminal",fetch updates + "autoAttachChildProcesses": true, "sourceMaps": true, "resolveSourceMapLocations": [ @@ -23,3 +26,6 @@ pkg } ] } +run config +config + From b3449909b9f3f37395fe4052cb5a4503aaee86f2 Mon Sep 17 00:00:00 2001 From: dman2316 Date: Wed, 30 Sep 2026 23:37:03 -0500 Subject: [PATCH 6/6] Update launch.json --- .vscode/launch.json | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index e3063bac77..a28e2b3c2f 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,5 +1,4 @@ -/install node js pkg -pkg + { "version": "0.2.0", "configurations": [ @@ -26,6 +25,5 @@ pkg } ] } -run config -config +zrun nmp