@hasna/skills 0.2.1 → 0.4.0

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 (37) hide show
  1. package/README.md +192 -44
  2. package/bin/index.js +15778 -24369
  3. package/bin/mcp.js +4802 -13678
  4. package/bin/migrate.js +5 -0
  5. package/bin/server.js +380 -214
  6. package/bin/worker.js +365 -199
  7. package/dist/admin-contract.d.ts +5861 -916
  8. package/dist/admin-contract.js +3611 -13914
  9. package/dist/cli/cli.test-utils.d.ts +14 -0
  10. package/dist/cli/commands/remote-account.d.ts +7 -0
  11. package/dist/index.d.ts +3 -0
  12. package/dist/index.js +5543 -14354
  13. package/dist/lib/api-url.d.ts +32 -23
  14. package/dist/lib/auth-store.d.ts +111 -42
  15. package/dist/lib/config.d.ts +19 -21
  16. package/dist/lib/feedback.d.ts +8 -3
  17. package/dist/lib/fleet-credentials.d.ts +252 -0
  18. package/dist/lib/instance-credentials-race.fixture.d.ts +1 -0
  19. package/dist/lib/instance-credentials.d.ts +13 -0
  20. package/dist/lib/mcp-contracts.d.ts +4 -0
  21. package/dist/lib/portable-skills-files.d.ts +4 -0
  22. package/dist/lib/portable-skills-types.d.ts +2 -0
  23. package/dist/lib/remote-account.d.ts +42 -0
  24. package/dist/lib/remote-auth.d.ts +32 -0
  25. package/dist/lib/remote-client.d.ts +75 -10
  26. package/dist/lib/remote-customer-operations.d.ts +106 -0
  27. package/dist/lib/remote-files.d.ts +21 -0
  28. package/dist/lib/remote-registry.d.ts +31 -11
  29. package/dist/lib/run-routing.d.ts +7 -4
  30. package/dist/lib/run-state.d.ts +3 -0
  31. package/dist/lib/vendor-host-policy.d.ts +31 -0
  32. package/dist/mcp/remote-customer-tools.d.ts +2 -0
  33. package/dist/sdk/index.d.ts +10 -0
  34. package/dist/sdk/index.js +6251 -14621
  35. package/dist/sdk/runs.d.ts +101 -19
  36. package/dist/storage.js +9 -14
  37. package/package.json +4 -3
package/bin/migrate.js CHANGED
@@ -7,6 +7,11 @@ import { join as join6 } from "path";
7
7
 
8
8
  // src/lib/retired-settings.ts
9
9
  var RETIRED_ENV_SUFFIXES = ["_STORAGE_MODE", "_DEPLOYMENT_MODE", "_CLOUD_MODE"];
10
+ var RETIRED_CONFIG_KEY_REASONS = {
11
+ mode: "Deployment modes were removed: a Skills client either resolves a credential " + "or it does not, and that is the whole of it.",
12
+ apiUrl: "The service address is no longer kept in this app's config file: it is read from " + "HASNA_SKILLS_API_URL, then the macOS Keychain item hasna.credentials.skills.api-url, " + "then ~/.hasna/skills/config/credentials, then the fleet gateway."
13
+ };
14
+
10
15
  class RetiredSettingError extends Error {
11
16
  code = "RETIRED_SETTING";
12
17
  setting;