@pikku/inspector 0.12.4 → 0.12.5
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/CHANGELOG.md +10 -0
- package/dist/add/add-credential.d.ts +2 -0
- package/dist/add/add-credential.js +118 -0
- package/dist/add/add-secret.d.ts +1 -3
- package/dist/add/add-secret.js +0 -74
- package/dist/inspector.js +4 -0
- package/dist/types.d.ts +5 -0
- package/dist/utils/serialize-inspector-state.d.ts +4 -0
- package/dist/utils/serialize-inspector-state.js +8 -0
- package/dist/visit.js +3 -2
- package/package.json +2 -2
- package/src/add/add-credential.ts +178 -0
- package/src/add/add-secret.ts +0 -131
- package/src/inspector.ts +4 -0
- package/src/types.ts +5 -0
- package/src/utils/serialize-inspector-state.ts +12 -0
- package/src/visit.ts +3 -2
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -183,6 +183,10 @@ export interface SerializableInspectorState {
|
|
|
183
183
|
definitions: InspectorState['secrets']['definitions']
|
|
184
184
|
files: string[]
|
|
185
185
|
}
|
|
186
|
+
credentials: {
|
|
187
|
+
definitions: InspectorState['credentials']['definitions']
|
|
188
|
+
files: string[]
|
|
189
|
+
}
|
|
186
190
|
variables: {
|
|
187
191
|
definitions: InspectorState['variables']['definitions']
|
|
188
192
|
files: string[]
|
|
@@ -380,6 +384,10 @@ export function serializeInspectorState(
|
|
|
380
384
|
definitions: state.secrets.definitions,
|
|
381
385
|
files: Array.from(state.secrets.files),
|
|
382
386
|
},
|
|
387
|
+
credentials: {
|
|
388
|
+
definitions: state.credentials.definitions,
|
|
389
|
+
files: Array.from(state.credentials.files),
|
|
390
|
+
},
|
|
383
391
|
variables: {
|
|
384
392
|
definitions: state.variables.definitions,
|
|
385
393
|
files: Array.from(state.variables.files),
|
|
@@ -548,6 +556,10 @@ export function deserializeInspectorState(
|
|
|
548
556
|
definitions: data.secrets?.definitions || [],
|
|
549
557
|
files: new Set(data.secrets?.files || []),
|
|
550
558
|
},
|
|
559
|
+
credentials: {
|
|
560
|
+
definitions: data.credentials?.definitions || [],
|
|
561
|
+
files: new Set(data.credentials?.files || []),
|
|
562
|
+
},
|
|
551
563
|
variables: {
|
|
552
564
|
definitions: data.variables?.definitions || [],
|
|
553
565
|
files: new Set(data.variables?.files || []),
|
package/src/visit.ts
CHANGED
|
@@ -22,7 +22,8 @@ import { addWireAddon } from './add/add-wire-addon.js'
|
|
|
22
22
|
import { addMiddleware } from './add/add-middleware.js'
|
|
23
23
|
import { addPermission } from './add/add-permission.js'
|
|
24
24
|
import { addCLI, addCLIRenderers } from './add/add-cli.js'
|
|
25
|
-
import { addSecret
|
|
25
|
+
import { addSecret } from './add/add-secret.js'
|
|
26
|
+
import { addCredential } from './add/add-credential.js'
|
|
26
27
|
import { addVariable } from './add/add-variable.js'
|
|
27
28
|
import { addWorkflowGraph } from './add/add-workflow-graph.js'
|
|
28
29
|
import { addAIAgent } from './add/add-ai-agent.js'
|
|
@@ -105,7 +106,7 @@ export const visitRoutes = (
|
|
|
105
106
|
) => {
|
|
106
107
|
addFunctions(logger, node, checker, state, options)
|
|
107
108
|
addSecret(logger, node, checker, state, options)
|
|
108
|
-
|
|
109
|
+
addCredential(logger, node, checker, state, options)
|
|
109
110
|
addVariable(logger, node, checker, state, options)
|
|
110
111
|
|
|
111
112
|
addHTTPRoute(logger, node, checker, state, options)
|