@velum-labs/cursorkit 0.1.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.
- package/DISCLAIMER.md +12 -0
- package/README.md +157 -0
- package/dist/src/agentTools/diff.d.ts +11 -0
- package/dist/src/agentTools/diff.js +88 -0
- package/dist/src/agentTools/policy.d.ts +3 -0
- package/dist/src/agentTools/policy.js +12 -0
- package/dist/src/agentTools/registry.d.ts +114 -0
- package/dist/src/agentTools/registry.js +663 -0
- package/dist/src/agentTools/results.d.ts +14 -0
- package/dist/src/agentTools/results.js +117 -0
- package/dist/src/agentTools/schemas.d.ts +3 -0
- package/dist/src/agentTools/schemas.js +89 -0
- package/dist/src/agentTools/surface.d.ts +11 -0
- package/dist/src/agentTools/surface.js +251 -0
- package/dist/src/certs.d.ts +8 -0
- package/dist/src/certs.js +34 -0
- package/dist/src/ck.d.ts +2 -0
- package/dist/src/ck.js +6 -0
- package/dist/src/ckLauncher.d.ts +150 -0
- package/dist/src/ckLauncher.js +1496 -0
- package/dist/src/cli.d.ts +2 -0
- package/dist/src/cli.js +265 -0
- package/dist/src/config.d.ts +52 -0
- package/dist/src/config.js +210 -0
- package/dist/src/connectEnvelope.d.ts +16 -0
- package/dist/src/connectEnvelope.js +70 -0
- package/dist/src/desktop.d.ts +19 -0
- package/dist/src/desktop.js +167 -0
- package/dist/src/desktopConnectProxy.d.ts +26 -0
- package/dist/src/desktopConnectProxy.js +175 -0
- package/dist/src/extensions/index.d.ts +2 -0
- package/dist/src/extensions/index.js +1 -0
- package/dist/src/extensions/registry.d.ts +8 -0
- package/dist/src/extensions/registry.js +52 -0
- package/dist/src/extensions/types.d.ts +42 -0
- package/dist/src/extensions/types.js +1 -0
- package/dist/src/fixtures/modelFusion.d.ts +103 -0
- package/dist/src/fixtures/modelFusion.js +404 -0
- package/dist/src/fixtures/replay.d.ts +9 -0
- package/dist/src/fixtures/replay.js +41 -0
- package/dist/src/fixtures/sanitizer.d.ts +9 -0
- package/dist/src/fixtures/sanitizer.js +43 -0
- package/dist/src/fixtures/schema.d.ts +38 -0
- package/dist/src/fixtures/schema.js +33 -0
- package/dist/src/gen/agent/v1/agent_pb.d.ts +21577 -0
- package/dist/src/gen/agent/v1/agent_pb.js +5325 -0
- package/dist/src/gen/aiserver/v1/aiserver_pb.d.ts +135242 -0
- package/dist/src/gen/aiserver/v1/aiserver_pb.js +34430 -0
- package/dist/src/gen/anyrun/v1/anyrun_pb.d.ts +1163 -0
- package/dist/src/gen/anyrun/v1/anyrun_pb.js +374 -0
- package/dist/src/gen/google/protobuf/google_pb.d.ts +142 -0
- package/dist/src/gen/google/protobuf/google_pb.js +54 -0
- package/dist/src/gen/internapi/v1/internapi_pb.d.ts +121 -0
- package/dist/src/gen/internapi/v1/internapi_pb.js +79 -0
- package/dist/src/logger.d.ts +8 -0
- package/dist/src/logger.js +37 -0
- package/dist/src/modelFusion/cursorHarness.d.ts +146 -0
- package/dist/src/modelFusion/cursorHarness.js +647 -0
- package/dist/src/modelFusion/index.d.ts +4 -0
- package/dist/src/modelFusion/index.js +2 -0
- package/dist/src/models/registry.d.ts +22 -0
- package/dist/src/models/registry.js +30 -0
- package/dist/src/proto.d.ts +13 -0
- package/dist/src/proto.js +61 -0
- package/dist/src/providers/openai.d.ts +64 -0
- package/dist/src/providers/openai.js +355 -0
- package/dist/src/redaction.d.ts +4 -0
- package/dist/src/redaction.js +65 -0
- package/dist/src/routeInventory.d.ts +16 -0
- package/dist/src/routeInventory.js +39 -0
- package/dist/src/routes.d.ts +37 -0
- package/dist/src/routes.js +227 -0
- package/dist/src/server.d.ts +50 -0
- package/dist/src/server.js +1353 -0
- package/dist/src/services/agent.d.ts +1 -0
- package/dist/src/services/agent.js +7 -0
- package/dist/src/services/agentRun.d.ts +60 -0
- package/dist/src/services/agentRun.js +391 -0
- package/dist/src/services/chat.d.ts +11 -0
- package/dist/src/services/chat.js +47 -0
- package/dist/src/services/models.d.ts +10 -0
- package/dist/src/services/models.js +216 -0
- package/dist/src/services/serverConfig.d.ts +2 -0
- package/dist/src/services/serverConfig.js +19 -0
- package/dist/src/testing/artifacts.d.ts +14 -0
- package/dist/src/testing/artifacts.js +92 -0
- package/dist/src/testing/cli.d.ts +4 -0
- package/dist/src/testing/cli.js +192 -0
- package/dist/src/testing/localBackend.d.ts +24 -0
- package/dist/src/testing/localBackend.js +310 -0
- package/dist/src/testing/processRunner.d.ts +7 -0
- package/dist/src/testing/processRunner.js +74 -0
- package/dist/src/testing/runner.d.ts +9 -0
- package/dist/src/testing/runner.js +85 -0
- package/dist/src/testing/scenarios.d.ts +3 -0
- package/dist/src/testing/scenarios.js +2535 -0
- package/dist/src/testing/types.d.ts +66 -0
- package/dist/src/testing/types.js +1 -0
- package/dist/src/tools/baselineInventory.d.ts +12 -0
- package/dist/src/tools/baselineInventory.js +680 -0
- package/dist/src/tools/checkModelFusionProtocol.d.ts +1 -0
- package/dist/src/tools/checkModelFusionProtocol.js +274 -0
- package/dist/src/tools/checkReleasePublishConfig.d.ts +1 -0
- package/dist/src/tools/checkReleasePublishConfig.js +99 -0
- package/dist/src/tools/generateProtoInventory.d.ts +1 -0
- package/dist/src/tools/generateProtoInventory.js +89 -0
- package/dist/src/tools/normalizeGeneratedCode.d.ts +1 -0
- package/dist/src/tools/normalizeGeneratedCode.js +18 -0
- package/dist/src/tools/releaseCheck.d.ts +26 -0
- package/dist/src/tools/releaseCheck.js +367 -0
- package/dist/src/trace.d.ts +39 -0
- package/dist/src/trace.js +106 -0
- package/dist/src/translation.d.ts +6 -0
- package/dist/src/translation.js +22 -0
- package/dist/src/upstream.d.ts +20 -0
- package/dist/src/upstream.js +270 -0
- package/docs/configuration.md +55 -0
- package/docs/cursor-app.md +263 -0
- package/docs/implementation-inventory.json +609 -0
- package/docs/learnings.md +363 -0
- package/docs/model-fusion-protocol-origin.json +126 -0
- package/docs/model-fusion-protocol.md +110 -0
- package/docs/plugin-authoring.md +24 -0
- package/docs/proto-inventory.md +1477 -0
- package/docs/protocol-surface-audit.md +92 -0
- package/docs/protocol.md +52 -0
- package/docs/refreshing-protos.md +78 -0
- package/docs/release-gates.md +110 -0
- package/docs/release-summary.json +86 -0
- package/docs/route-contract-manifest.json +288 -0
- package/docs/route-policy.json +133 -0
- package/docs/service-manifest.json +9490 -0
- package/docs/test-manifest.json +155 -0
- package/docs/testing-harness.md +204 -0
- package/docs/troubleshooting.md +36 -0
- package/docs/type-manifest-summary.json +28927 -0
- package/package.json +93 -0
- package/proto/agent/v1/agent.proto +5371 -0
- package/proto/aiserver/v1/aiserver.proto +32944 -0
- package/proto/anyrun/v1/anyrun.proto +294 -0
- package/proto/google/protobuf/google.proto +37 -0
- package/proto/internapi/v1/internapi.proto +32 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export type HarnessSuite = "static" | "bridge-protocol" | "local-backend" | "cursor-agent" | "cursor-agent-traffic" | "cursor-agent-acp-experimental" | "desktop-route" | "desktop-ui-experimental";
|
|
2
|
+
export type HarnessSuiteInput = HarnessSuite | "all" | "acp" | "cli" | "desktop" | "traffic";
|
|
3
|
+
export type ScenarioStatus = "passed" | "failed" | "skipped";
|
|
4
|
+
export type FailureCode = "backend_unreachable" | "bridge_start_failed" | "route_missing" | "model_route_missing" | "extension_host_route_missing" | "desktop_picker_missing" | "desktop_model_selection_missing" | "desktop_prompt_submission_failed" | "desktop_backend_request_missing" | "desktop_visible_response_missing" | "model_metadata_rejected" | "local_completion_failed" | "upstream_passthrough_failed" | "auth_profile_blocked" | "command_failed" | "timeout" | "not_available";
|
|
5
|
+
export interface HarnessOptions {
|
|
6
|
+
suites: HarnessSuiteInput[];
|
|
7
|
+
cwd: string;
|
|
8
|
+
artifactsDir?: string;
|
|
9
|
+
baseUrl: string;
|
|
10
|
+
model: string;
|
|
11
|
+
providerModel: string;
|
|
12
|
+
displayName: string;
|
|
13
|
+
apiKey: string;
|
|
14
|
+
timeoutMs: number;
|
|
15
|
+
useDefaultProfile: boolean;
|
|
16
|
+
includeExperimental: boolean;
|
|
17
|
+
env: NodeJS.ProcessEnv;
|
|
18
|
+
}
|
|
19
|
+
export interface ScenarioResult {
|
|
20
|
+
id: string;
|
|
21
|
+
suite: HarnessSuite;
|
|
22
|
+
status: ScenarioStatus;
|
|
23
|
+
durationMs: number;
|
|
24
|
+
message: string;
|
|
25
|
+
failureCode?: FailureCode;
|
|
26
|
+
artifacts?: Record<string, string>;
|
|
27
|
+
details?: Record<string, unknown>;
|
|
28
|
+
}
|
|
29
|
+
export interface Scenario {
|
|
30
|
+
id: string;
|
|
31
|
+
suite: HarnessSuite;
|
|
32
|
+
description: string;
|
|
33
|
+
run(context: ScenarioContext): Promise<ScenarioResult>;
|
|
34
|
+
}
|
|
35
|
+
export interface ScenarioContext {
|
|
36
|
+
options: HarnessOptions;
|
|
37
|
+
artifacts: ArtifactWriter;
|
|
38
|
+
processRunner: ProcessRunner;
|
|
39
|
+
}
|
|
40
|
+
export interface ArtifactWriter {
|
|
41
|
+
rootDir: string;
|
|
42
|
+
pathFor(name: string): string;
|
|
43
|
+
writeText(name: string, contents: string): string;
|
|
44
|
+
writeJson(name: string, contents: unknown): string;
|
|
45
|
+
}
|
|
46
|
+
export interface ProcessRunOptions {
|
|
47
|
+
command: string;
|
|
48
|
+
args: string[];
|
|
49
|
+
env?: NodeJS.ProcessEnv;
|
|
50
|
+
timeoutMs?: number;
|
|
51
|
+
logName: string;
|
|
52
|
+
}
|
|
53
|
+
export interface ProcessRunResult {
|
|
54
|
+
command: string;
|
|
55
|
+
args: string[];
|
|
56
|
+
exitCode: number | null;
|
|
57
|
+
signal: NodeJS.Signals | null;
|
|
58
|
+
timedOut: boolean;
|
|
59
|
+
durationMs: number;
|
|
60
|
+
stdout: string;
|
|
61
|
+
stderr: string;
|
|
62
|
+
logPath: string;
|
|
63
|
+
}
|
|
64
|
+
export interface ProcessRunner {
|
|
65
|
+
run(options: ProcessRunOptions): Promise<ProcessRunResult>;
|
|
66
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface BaselineArtifacts {
|
|
2
|
+
routeContractManifest: unknown;
|
|
3
|
+
routePolicy: unknown;
|
|
4
|
+
implementationInventory: unknown;
|
|
5
|
+
testManifest: unknown;
|
|
6
|
+
releaseSummary: unknown;
|
|
7
|
+
}
|
|
8
|
+
export declare const BASELINE_ARTIFACT_PATHS: readonly ["docs/route-contract-manifest.json", "docs/route-policy.json", "docs/implementation-inventory.json", "docs/test-manifest.json", "docs/release-summary.json"];
|
|
9
|
+
export declare function writeBaselineArtifacts(repoRoot?: string): Promise<void>;
|
|
10
|
+
export declare function checkBaselineArtifacts(repoRoot?: string): Promise<string[]>;
|
|
11
|
+
export declare function buildBaselineArtifacts(repoRoot?: string): BaselineArtifacts;
|
|
12
|
+
export {};
|