@vellumai/credential-executor 0.10.7 → 0.10.8-dev.202607102228.5945895
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/Dockerfile +1 -1
- package/node_modules/@vellumai/service-contracts/package.json +1 -2
- package/node_modules/@vellumai/service-contracts/src/__tests__/attachment-naming.test.ts +104 -0
- package/node_modules/@vellumai/service-contracts/src/__tests__/contracts.test.ts +0 -2
- package/node_modules/@vellumai/service-contracts/src/attachment-naming.ts +118 -0
- package/node_modules/@vellumai/service-contracts/src/credential-rpc.ts +3 -5
- package/node_modules/@vellumai/service-contracts/src/index.ts +2 -4
- package/node_modules/@vellumai/service-contracts/src/rpc.ts +4 -447
- package/package.json +2 -3
- package/src/__tests__/bulk-set-credentials.test.ts +1 -1
- package/src/__tests__/local-standalone.test.ts +5 -36
- package/src/__tests__/managed-integration.test.ts +112 -91
- package/src/__tests__/managed-reconnect.test.ts +2 -2
- package/src/__tests__/transport.test.ts +23 -27
- package/src/cli.ts +1 -1
- package/src/index.ts +8 -88
- package/src/main.ts +228 -340
- package/src/paths.ts +4 -20
- package/src/server.ts +52 -469
- package/node_modules/@vellumai/service-contracts/src/__tests__/grants.test.ts +0 -686
- package/node_modules/@vellumai/service-contracts/src/grants.ts +0 -184
- package/node_modules/@vellumai/service-contracts/src/rendering.ts +0 -135
- package/src/__tests__/command-executor.test.ts +0 -1879
- package/src/__tests__/command-validator.test.ts +0 -1405
- package/src/__tests__/command-workspace.test.ts +0 -1050
- package/src/__tests__/grant-store.test.ts +0 -689
- package/src/__tests__/http-executor.test.ts +0 -1336
- package/src/__tests__/http-policy.test.ts +0 -1069
- package/src/__tests__/local-materializers.test.ts +0 -860
- package/src/__tests__/local-token-refresh.test.ts +0 -361
- package/src/__tests__/manage-secure-command-tool.test.ts +0 -134
- package/src/__tests__/managed-lazy-getters.test.ts +0 -359
- package/src/__tests__/managed-materializers.test.ts +0 -1028
- package/src/__tests__/managed-rejection.test.ts +0 -43
- package/src/__tests__/toolstore.test.ts +0 -773
- package/src/audit/store.ts +0 -188
- package/src/commands/auth-adapters.ts +0 -169
- package/src/commands/egress-hooks.ts +0 -203
- package/src/commands/executor.ts +0 -1155
- package/src/commands/output-scan.ts +0 -157
- package/src/commands/profiles.ts +0 -286
- package/src/commands/validator.ts +0 -702
- package/src/commands/workspace.ts +0 -550
- package/src/grants/index.ts +0 -17
- package/src/grants/persistent-store.ts +0 -309
- package/src/grants/rpc-handlers.ts +0 -293
- package/src/grants/temporary-store.ts +0 -289
- package/src/http/audit.ts +0 -84
- package/src/http/executor.ts +0 -684
- package/src/http/path-template.ts +0 -245
- package/src/http/policy.ts +0 -238
- package/src/http/response-filter.ts +0 -233
- package/src/managed-errors.ts +0 -9
- package/src/managed-lazy-getters.ts +0 -106
- package/src/managed-main.ts +0 -822
- package/src/materializers/local-oauth-lookup.ts +0 -98
- package/src/materializers/local-token-refresh.ts +0 -287
- package/src/materializers/local.ts +0 -316
- package/src/materializers/managed-platform.ts +0 -295
- package/src/subjects/local.ts +0 -177
- package/src/subjects/managed.ts +0 -311
- package/src/subjects/policy.ts +0 -79
- package/src/toolstore/integrity.ts +0 -94
- package/src/toolstore/manifest.ts +0 -154
- 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
|
-
* managed-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
|
-
});
|