@hahnfeld/msrelay-provider 0.1.6 → 0.1.7
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/dist/plugin.js +10 -10
- package/package.json +1 -1
package/dist/plugin.js
CHANGED
|
@@ -85,7 +85,7 @@ export function createRelayPlugin() {
|
|
|
85
85
|
let provider = null;
|
|
86
86
|
return {
|
|
87
87
|
name: "@hahnfeld/msrelay-provider",
|
|
88
|
-
version: "0.1.
|
|
88
|
+
version: "0.1.7",
|
|
89
89
|
description: "Azure Relay Hybrid Connections tunnel provider — private HTTP tunneling via Azure backbone",
|
|
90
90
|
essential: false,
|
|
91
91
|
permissions: [
|
|
@@ -109,7 +109,7 @@ export function createRelayPlugin() {
|
|
|
109
109
|
// ── Step 1: Collect names ──
|
|
110
110
|
const resourceGroup = await terminal.text({
|
|
111
111
|
message: "Azure resource group:",
|
|
112
|
-
|
|
112
|
+
initialValue: existing.resourceGroup ?? undefined,
|
|
113
113
|
validate: (v) => {
|
|
114
114
|
if (!v.trim())
|
|
115
115
|
return "Resource group is required";
|
|
@@ -119,7 +119,7 @@ export function createRelayPlugin() {
|
|
|
119
119
|
const rg = resourceGroup.trim();
|
|
120
120
|
const namespaceInput = await terminal.text({
|
|
121
121
|
message: "Relay namespace name (becomes <name>.servicebus.windows.net):",
|
|
122
|
-
|
|
122
|
+
initialValue: existing.relayNamespace?.replace(".servicebus.windows.net", "") ?? undefined,
|
|
123
123
|
validate: (v) => {
|
|
124
124
|
if (!v.trim())
|
|
125
125
|
return "Namespace is required";
|
|
@@ -133,7 +133,7 @@ export function createRelayPlugin() {
|
|
|
133
133
|
}
|
|
134
134
|
const connectionName = await terminal.text({
|
|
135
135
|
message: "Hybrid Connection name:",
|
|
136
|
-
|
|
136
|
+
initialValue: existing.hybridConnectionName ?? `${nsName}-hybrid`,
|
|
137
137
|
validate: (v) => {
|
|
138
138
|
const trimmed = v.trim();
|
|
139
139
|
if (!trimmed)
|
|
@@ -146,7 +146,7 @@ export function createRelayPlugin() {
|
|
|
146
146
|
const hc = connectionName.trim();
|
|
147
147
|
const keyName = await terminal.text({
|
|
148
148
|
message: "SAS policy name (listen-only auth rule):",
|
|
149
|
-
|
|
149
|
+
initialValue: existing.sasKeyName ?? `${nsName}-hybrid-policy`,
|
|
150
150
|
validate: (v) => {
|
|
151
151
|
if (!v.trim())
|
|
152
152
|
return "Policy name is required";
|
|
@@ -209,7 +209,7 @@ export function createRelayPlugin() {
|
|
|
209
209
|
if (portChoice === "custom") {
|
|
210
210
|
const portStr = await terminal.text({
|
|
211
211
|
message: "Local port to expose:",
|
|
212
|
-
|
|
212
|
+
initialValue: existingPort ? String(existingPort) : undefined,
|
|
213
213
|
validate: (v) => {
|
|
214
214
|
const trimmed = v.trim();
|
|
215
215
|
if (!trimmed)
|
|
@@ -286,7 +286,7 @@ export function createRelayPlugin() {
|
|
|
286
286
|
case "namespace": {
|
|
287
287
|
const val = await terminal.text({
|
|
288
288
|
message: "Azure Relay namespace:",
|
|
289
|
-
|
|
289
|
+
initialValue: current.relayNamespace ?? "",
|
|
290
290
|
validate: (v) => {
|
|
291
291
|
const trimmed = v.trim();
|
|
292
292
|
if (!trimmed)
|
|
@@ -303,7 +303,7 @@ export function createRelayPlugin() {
|
|
|
303
303
|
case "connection": {
|
|
304
304
|
const val = await terminal.text({
|
|
305
305
|
message: "Hybrid Connection name:",
|
|
306
|
-
|
|
306
|
+
initialValue: current.hybridConnectionName ?? "",
|
|
307
307
|
validate: (v) => {
|
|
308
308
|
const trimmed = v.trim();
|
|
309
309
|
if (!trimmed)
|
|
@@ -320,7 +320,7 @@ export function createRelayPlugin() {
|
|
|
320
320
|
case "sasKeyName": {
|
|
321
321
|
const val = await terminal.text({
|
|
322
322
|
message: "SAS policy name:",
|
|
323
|
-
|
|
323
|
+
initialValue: current.sasKeyName ?? "ListenOnly",
|
|
324
324
|
validate: (v) => {
|
|
325
325
|
if (!v.trim())
|
|
326
326
|
return "Required";
|
|
@@ -347,7 +347,7 @@ export function createRelayPlugin() {
|
|
|
347
347
|
case "port": {
|
|
348
348
|
const val = await terminal.text({
|
|
349
349
|
message: "Port:",
|
|
350
|
-
|
|
350
|
+
initialValue: current.port != null ? String(current.port) : "3978",
|
|
351
351
|
validate: (v) => {
|
|
352
352
|
const trimmed = v.trim();
|
|
353
353
|
if (!trimmed)
|