@vellumai/credential-executor 0.10.7-dev.202607092332.9deedf4 → 0.10.7-dev.202607100313.fffdfea

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 (56) hide show
  1. package/node_modules/@vellumai/service-contracts/package.json +0 -2
  2. package/node_modules/@vellumai/service-contracts/src/__tests__/contracts.test.ts +0 -2
  3. package/node_modules/@vellumai/service-contracts/src/credential-rpc.ts +3 -5
  4. package/node_modules/@vellumai/service-contracts/src/index.ts +2 -4
  5. package/node_modules/@vellumai/service-contracts/src/rpc.ts +4 -447
  6. package/package.json +1 -1
  7. package/src/__tests__/managed-integration.test.ts +108 -87
  8. package/src/index.ts +5 -85
  9. package/src/main.ts +79 -549
  10. package/src/paths.ts +0 -15
  11. package/src/server.ts +52 -469
  12. package/node_modules/@vellumai/service-contracts/src/__tests__/grants.test.ts +0 -686
  13. package/node_modules/@vellumai/service-contracts/src/grants.ts +0 -184
  14. package/node_modules/@vellumai/service-contracts/src/rendering.ts +0 -135
  15. package/src/__tests__/command-executor.test.ts +0 -1879
  16. package/src/__tests__/command-validator.test.ts +0 -1405
  17. package/src/__tests__/command-workspace.test.ts +0 -1050
  18. package/src/__tests__/grant-store.test.ts +0 -689
  19. package/src/__tests__/http-executor.test.ts +0 -1336
  20. package/src/__tests__/http-policy.test.ts +0 -1069
  21. package/src/__tests__/local-materializers.test.ts +0 -860
  22. package/src/__tests__/local-token-refresh.test.ts +0 -361
  23. package/src/__tests__/manage-secure-command-tool.test.ts +0 -134
  24. package/src/__tests__/managed-lazy-getters.test.ts +0 -359
  25. package/src/__tests__/managed-materializers.test.ts +0 -1028
  26. package/src/__tests__/managed-rejection.test.ts +0 -43
  27. package/src/__tests__/toolstore.test.ts +0 -773
  28. package/src/audit/store.ts +0 -188
  29. package/src/commands/auth-adapters.ts +0 -169
  30. package/src/commands/egress-hooks.ts +0 -203
  31. package/src/commands/executor.ts +0 -1155
  32. package/src/commands/output-scan.ts +0 -157
  33. package/src/commands/profiles.ts +0 -286
  34. package/src/commands/validator.ts +0 -702
  35. package/src/commands/workspace.ts +0 -550
  36. package/src/grants/index.ts +0 -17
  37. package/src/grants/persistent-store.ts +0 -309
  38. package/src/grants/rpc-handlers.ts +0 -293
  39. package/src/grants/temporary-store.ts +0 -289
  40. package/src/http/audit.ts +0 -84
  41. package/src/http/executor.ts +0 -684
  42. package/src/http/path-template.ts +0 -245
  43. package/src/http/policy.ts +0 -238
  44. package/src/http/response-filter.ts +0 -233
  45. package/src/managed-errors.ts +0 -9
  46. package/src/managed-lazy-getters.ts +0 -106
  47. package/src/materializers/local-oauth-lookup.ts +0 -98
  48. package/src/materializers/local-token-refresh.ts +0 -287
  49. package/src/materializers/local.ts +0 -316
  50. package/src/materializers/managed-platform.ts +0 -295
  51. package/src/subjects/local.ts +0 -177
  52. package/src/subjects/managed.ts +0 -311
  53. package/src/subjects/policy.ts +0 -79
  54. package/src/toolstore/integrity.ts +0 -94
  55. package/src/toolstore/manifest.ts +0 -154
  56. package/src/toolstore/publish.ts +0 -571
@@ -1,43 +0,0 @@
1
- /**
2
- * Managed-mode local_static handle rejection contract tests.
3
- *
4
- * Validates that the MANAGED_LOCAL_STATIC_REJECTION_ERROR constant used by
5
- * main.ts contains the expected contract fragments. These tests
6
- * import the actual production constant (not a test-local copy), so they
7
- * will fail if the error message drifts away from the expected contract.
8
- */
9
-
10
- import { describe, expect, test } from "bun:test";
11
-
12
- import { HandleType, localStaticHandle, parseHandle } from "@vellumai/service-contracts/credential-rpc";
13
-
14
- import { MANAGED_LOCAL_STATIC_REJECTION_ERROR } from "../managed-errors.js";
15
-
16
- describe("managed-mode local_static rejection error", () => {
17
- test("error message references platform_oauth as the alternative", () => {
18
- expect(MANAGED_LOCAL_STATIC_REJECTION_ERROR).toContain("platform_oauth");
19
- });
20
-
21
- test("error message references managed mode", () => {
22
- expect(MANAGED_LOCAL_STATIC_REJECTION_ERROR).toContain("managed");
23
- });
24
-
25
- test("error message mentions local_static handles are not supported", () => {
26
- expect(MANAGED_LOCAL_STATIC_REJECTION_ERROR).toContain(
27
- "local_static credential handles are not supported",
28
- );
29
- });
30
-
31
- test("error message ends with a period", () => {
32
- expect(MANAGED_LOCAL_STATIC_REJECTION_ERROR).toMatch(/\.$/);
33
- });
34
-
35
- test("local_static handle is correctly identified for rejection", () => {
36
- const handle = localStaticHandle("github", "api_key");
37
- const result = parseHandle(handle);
38
- expect(result.ok).toBe(true);
39
- if (result.ok) {
40
- expect(result.handle.type).toBe(HandleType.LocalStatic);
41
- }
42
- });
43
- });