@picassohq/cli 1.0.1 → 1.0.2

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.
Files changed (28) hide show
  1. package/dist/build-info.json +1 -1
  2. package/dist/index.js +1291 -1257
  3. package/package.json +1 -1
  4. package/runtime/engine-manifest.json +10 -9
  5. package/runtime/packages/picasso-lean-context/index.js +238 -7
  6. package/runtime/packages/picasso-lean-context/read-image-recovery.js +306 -0
  7. package/runtime/packages/picasso-lean-context/timeline.js +4 -3
  8. package/runtime/packages/picasso-model-router/connections.js +17 -0
  9. package/runtime/packages/picasso-model-router/index.js +2 -0
  10. package/runtime/packages/picasso-sdk-server/aside.js +15 -1
  11. package/runtime/packages/picasso-sdk-server/index.js +6 -1
  12. package/runtime/packages/picasso-web-search/backends.js +71 -9
  13. package/runtime/packages/picasso-web-search/failure.js +9 -4
  14. package/runtime/packages/picasso-web-search/format.js +13 -6
  15. package/runtime/packages/picasso-web-search/index.js +9 -4
  16. package/runtime/packages/picasso-web-search/router.js +3 -2
  17. package/runtime/plugins/picasso-lean-context/index.js +238 -7
  18. package/runtime/plugins/picasso-lean-context/read-image-recovery.js +306 -0
  19. package/runtime/plugins/picasso-lean-context/timeline.js +4 -3
  20. package/runtime/plugins/picasso-model-router/connections.js +17 -0
  21. package/runtime/plugins/picasso-model-router/index.js +2 -0
  22. package/runtime/plugins/picasso-web-search/backends.js +71 -9
  23. package/runtime/plugins/picasso-web-search/failure.js +9 -4
  24. package/runtime/plugins/picasso-web-search/format.js +13 -6
  25. package/runtime/plugins/picasso-web-search/index.js +9 -4
  26. package/runtime/plugins/picasso-web-search/router.js +3 -2
  27. package/runtime/relay/main.mjs +2403 -1075
  28. package/runtime/relay/versions-routes.mjs +218 -16
@@ -121,7 +121,8 @@ export function createRouter({ ctx, readConfig, backends, sleep = defaultSleep,
121
121
  continue;
122
122
  }
123
123
  if (step.role === 'native' && !(await backend.configured(call))) {
124
- attempts.push({ name: backend.name, reason: new BackendFailure('credentials').reason });
124
+ const ref = await backend.keyRef?.(call);
125
+ attempts.push({ name: backend.name, reason: new BackendFailure('credentials', { ref }).reason });
125
126
  continue;
126
127
  }
127
128
  try {
@@ -134,7 +135,7 @@ export function createRouter({ ctx, readConfig, backends, sleep = defaultSleep,
134
135
  if (error.permanent) state.dead.set(step.id, error.reason);
135
136
  }
136
137
  }
137
- throw Object.assign(new Error(formatUnavailable(attempts)), { code: UNAVAILABLE_CODE, attempts });
138
+ throw Object.assign(new Error(formatUnavailable(attempts, { route })), { code: UNAVAILABLE_CODE, attempts });
138
139
  },
139
140
 
140
141
  /**