@astrale-os/cli 1.0.0-beta.30 → 1.0.0-beta.32

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 (43) hide show
  1. package/README.md +5 -1
  2. package/dist/astrale.js +178 -57
  3. package/dist/public/connect-core.js +42 -13
  4. package/dist/public/keys/index.js +14 -0
  5. package/dist/public/paths/index.js +14 -0
  6. package/dist/types/connection/auth.d.ts +1 -0
  7. package/dist/types/connection/credential.d.ts +1 -1
  8. package/dist/types/connection/lifetime.d.ts +6 -0
  9. package/dist/types/lib/credential-lifetime.d.ts +3 -0
  10. package/dist/types/lib/idp-session.d.ts +2 -0
  11. package/dist/types/lib/idp.d.ts +1 -1
  12. package/dist/types/state/exchange-credentials.d.ts +1 -1
  13. package/package.json +1 -1
  14. package/src/commands/__tests__/read-commands.test.ts +2 -2
  15. package/src/commands/query.ts +5 -5
  16. package/src/commands/update.ts +3 -2
  17. package/src/connection/.spec/architecture.md +5 -2
  18. package/src/connection/.spec/flows/session.ts +2 -1
  19. package/src/connection/.spec/laws/connection.ts +9 -1
  20. package/src/connection/.spec/layout.ts +1 -0
  21. package/src/connection/__tests__/credential.test.ts +115 -0
  22. package/src/connection/__tests__/exchange.test.ts +94 -9
  23. package/src/connection/auth.ts +20 -4
  24. package/src/connection/credential.ts +29 -8
  25. package/src/connection/exchange.ts +65 -7
  26. package/src/connection/lifetime.ts +25 -0
  27. package/src/graph/.spec/api.d.ts +1 -1
  28. package/src/graph/.spec/laws/documents.ts +7 -7
  29. package/src/graph/__tests__/query.test.ts +12 -5
  30. package/src/graph/query.ts +9 -11
  31. package/src/lib/__tests__/idp-session.driver.ts +10 -3
  32. package/src/lib/__tests__/idp-session.test.ts +25 -0
  33. package/src/lib/__tests__/skills.test.ts +27 -2
  34. package/src/lib/credential-lifetime.ts +24 -0
  35. package/src/lib/idp-session.ts +26 -4
  36. package/src/lib/idp.ts +24 -4
  37. package/src/lib/skills/sync.ts +72 -8
  38. package/src/program/__tests__/program.test.ts +39 -2
  39. package/src/state/__tests__/exchange-credentials.test.ts +112 -5
  40. package/src/state/exchange-credentials.ts +26 -8
  41. package/studio/server/cli-consumers.test.ts +1 -1
  42. package/studio/server/cli.test.ts +2 -2
  43. package/studio/server/views/target.ts +1 -1
@@ -341,7 +341,7 @@ const bundle = {
341
341
 
342
342
  const queryArgs = [
343
343
  'query',
344
- '--definition',
344
+ '--class',
345
345
  '/:issues.example.dev:class.Issue',
346
346
  '--limit',
347
347
  '201',
@@ -45,7 +45,7 @@ test('machine runner uses the exact descriptor, appends json mode, and versions
45
45
  })
46
46
 
47
47
  const result = await runStudioCliJson(
48
- ['query', '--definition', '/:example.dev:class.Issue'],
48
+ ['query', '--class', '/:example.dev:class.Issue'],
49
49
  decodeJsonObject,
50
50
  )
51
51
 
@@ -55,7 +55,7 @@ test('machine runner uses the exact descriptor, appends json mode, and versions
55
55
  exitCode: 0,
56
56
  timedOut: false,
57
57
  data: {
58
- command: ['query', '--definition', '/:example.dev:class.Issue', '--json'],
58
+ command: ['query', '--class', '/:example.dev:class.Issue', '--json'],
59
59
  },
60
60
  })
61
61
  })
@@ -65,7 +65,7 @@ export async function listViewTargets(
65
65
  const result = await runAstraleJson<RawQueryResult>(
66
66
  [
67
67
  'query',
68
- '--definition',
68
+ '--class',
69
69
  definition,
70
70
  '--limit',
71
71
  String(TARGET_LIMIT + 1),