@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.
@@ -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, addOAuth2Credential } from './add/add-secret.js'
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
- addOAuth2Credential(logger, node, checker, state, options)
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)