@ingram-cloud/pulumi 2.1.0 → 2.1.1

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/resources.js CHANGED
@@ -248,7 +248,10 @@ function agentBody(i) {
248
248
  auto_memory: i.autoMemory ?? null,
249
249
  memory_consolidation: i.memoryConsolidation ?? null,
250
250
  variables: i.variables ?? [],
251
- skills: (i.skills ?? []).map((s) => ({
251
+ // Array.isArray, not `?? []`: during preview an unresolved Output (a
252
+ // skill created in the same update) reaches diff as an unknown sentinel,
253
+ // not an array — treat it as empty and let the real values drive `up`.
254
+ skills: (Array.isArray(i.skills) ? i.skills : []).map((s) => ({
252
255
  skill_id: s.skillId,
253
256
  ...(s.version != null ? { version: s.version } : {}),
254
257
  })),
@@ -314,7 +317,10 @@ function inputsToSnapshot(i) {
314
317
  auto_memory: i.autoMemory,
315
318
  memory_consolidation: i.memoryConsolidation,
316
319
  variables: i.variables,
317
- skills: (i.skills ?? []).map((s) => ({
320
+ // Array.isArray, not `?? []`: during preview an unresolved Output (a
321
+ // skill created in the same update) reaches diff as an unknown sentinel,
322
+ // not an array — treat it as empty and let the real values drive `up`.
323
+ skills: (Array.isArray(i.skills) ? i.skills : []).map((s) => ({
318
324
  skill_id: s.skillId,
319
325
  ...(s.version != null ? { version: s.version } : {}),
320
326
  })),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ingram-cloud/pulumi",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Pulumi dynamic resources for the Ingram Cloud /v1 API — projects, project tokens, agents, MCP servers, channels, webhooks, model keys.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://cloud.ingram.tech",