@squidcloud/backend 1.0.488 → 1.0.490
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/dist/backend/src/internal/source-code.d.ts +0 -2
- package/dist/backend/src/source-code/index.d.ts +1 -17
- package/dist/backend/src/source-code/source-provider-adapter.d.ts +9 -2
- package/dist/backend/src/source-code/trusted-executable.d.ts +3 -0
- package/dist/backend/src/workspace-client.d.ts +5 -4
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/internal/source-code.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/internal/source-code.js +1 -1
- package/dist/internal-common/src/public-types-backend/ai-agent.public-context.d.ts +22 -0
- package/package.json +2 -2
- package/dist/backend/src/cli-agent/claude-code.adapter.d.ts +0 -79
- package/dist/backend/src/cli-agent/cli-agent-adapter.types.d.ts +0 -134
- package/dist/backend/src/cli-agent/cli-agent-process-launcher.d.ts +0 -22
- package/dist/backend/src/cli-agent/cli-agent-process-runner.d.ts +0 -35
- package/dist/backend/src/cli-agent/cli-agent-root-status.d.ts +0 -25
- package/dist/backend/src/cli-agent/cli-agent-status.utils.d.ts +0 -9
- package/dist/backend/src/cli-agent/cli-output-stream.utils.d.ts +0 -1
- package/dist/backend/src/cli-agent/codex.adapter.d.ts +0 -82
- package/dist/backend/src/cli-agent/index.d.ts +0 -10
- package/dist/backend/src/cli-agent/nsjail-source-process-launcher.d.ts +0 -43
- package/dist/backend/src/cli-agent/workspace.utils.d.ts +0 -20
- package/dist/backend/src/source-code/local-source-development-runner.d.ts +0 -10
- package/dist/backend/src/source-code/restricted-source-runner.d.ts +0 -87
- package/dist/backend/src/source-code/source-code-analyzer.d.ts +0 -58
- package/dist/backend/src/source-code/source-code-errors.d.ts +0 -13
- package/dist/backend/src/source-code/source-code-limits.d.ts +0 -23
- package/dist/backend/src/source-code/source-code-telemetry.d.ts +0 -31
- package/dist/backend/src/source-code/source-development-runtime.d.ts +0 -2
- package/dist/backend/src/source-code/source-egress-proxy.d.ts +0 -123
- package/dist/backend/src/source-code/source-evidence-verifier.d.ts +0 -110
- package/dist/backend/src/source-code/source-model-proxy.constants.d.ts +0 -6
- package/dist/backend/src/source-code/source-provider-operation-broker.d.ts +0 -111
- package/dist/backend/src/source-code/source-repository-snapshot.d.ts +0 -15
- package/dist/backend/src/source-code/source-socket-admission.d.ts +0 -17
- package/dist/backend/src/source-code/source-submodule-url.d.ts +0 -10
- package/dist/backend/src/source-code/source-workspace-manager.d.ts +0 -162
- package/dist/backend/src/source-code/source-workspace-manifest.d.ts +0 -43
- package/dist/backend/src/source-code/windows-local-cli-process-launcher.d.ts +0 -13
|
@@ -1,21 +1,5 @@
|
|
|
1
|
-
export * from './local-source-development-runner';
|
|
2
1
|
export * from './providers';
|
|
3
|
-
export * from './restricted-source-runner';
|
|
4
|
-
export * from './source-code-analyzer';
|
|
5
|
-
export * from './source-code-errors';
|
|
6
|
-
export * from './source-code-limits';
|
|
7
|
-
export * from './source-code-telemetry';
|
|
8
|
-
export * from './source-development-runtime';
|
|
9
|
-
export * from './source-egress-proxy';
|
|
10
|
-
export * from './source-evidence-verifier';
|
|
11
2
|
export * from './source-git-command';
|
|
12
3
|
export * from './source-git-credential-helper';
|
|
13
|
-
export * from './source-model-proxy.constants';
|
|
14
4
|
export * from './source-provider-adapter';
|
|
15
|
-
export * from './
|
|
16
|
-
export * from './source-repository-snapshot';
|
|
17
|
-
export * from './source-socket-admission';
|
|
18
|
-
export * from './source-submodule-url';
|
|
19
|
-
export * from './source-workspace-manager';
|
|
20
|
-
export * from './source-workspace-manifest';
|
|
21
|
-
export * from './windows-local-cli-process-launcher';
|
|
5
|
+
export * from './trusted-executable';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntegrationInfo, SourceCodeIntegrationType, SourceControlProvider, SourceRepository } from '@squidcloud/client';
|
|
1
|
+
import type { IntegrationInfo, SourceCodeExecutionMode, SourceCodeIntegrationType, SourceControlProvider, SourceRepository } from '@squidcloud/client';
|
|
2
2
|
/** Lists provider permissions available to source-code orchestration. */
|
|
3
3
|
export type SourceProviderPermission = 'contents:read' | 'metadata:read' | 'contents:write' | 'pull-requests:read' | 'pull-requests:write';
|
|
4
4
|
/** Categorizes provider failures without exposing response bodies or credentials. */
|
|
@@ -31,6 +31,11 @@ export interface SourcePreparationCredentials {
|
|
|
31
31
|
/** Marks when the provider credential expires. */
|
|
32
32
|
expiresAt?: string;
|
|
33
33
|
}
|
|
34
|
+
/** Supplies credentials to a write-enabled source agent for Git and provider-native commands. */
|
|
35
|
+
export interface SourceExecutionCredentials extends SourcePreparationCredentials {
|
|
36
|
+
/** Supplies provider-native environment variables required by the installed CLI. */
|
|
37
|
+
providerEnvironment: Readonly<Record<string, string>>;
|
|
38
|
+
}
|
|
34
39
|
/** Identifies one repository selected in integration configuration without provider I/O. */
|
|
35
40
|
export interface SourceConfiguredRepository {
|
|
36
41
|
/** Supplies the canonical owner and repository name. */
|
|
@@ -62,10 +67,12 @@ export interface SourceProviderAdapter {
|
|
|
62
67
|
getAllowedRepositories(signal: AbortSignal): Promise<readonly SourceRepository[]>;
|
|
63
68
|
/** Creates credentials for trusted Git preparation only. */
|
|
64
69
|
createPreparationCredentials(scope: SourceCredentialScope, signal: AbortSignal): Promise<SourcePreparationCredentials>;
|
|
70
|
+
/** Creates repository-scoped credentials for a write-enabled source agent. */
|
|
71
|
+
createExecutionCredentials(scope: SourceCredentialScope, signal: AbortSignal): Promise<SourceExecutionCredentials>;
|
|
65
72
|
/** Executes one provider-native read through the trusted broker. */
|
|
66
73
|
executeReadOperation(operation: SourceProviderReadOperation, signal: AbortSignal): Promise<unknown>;
|
|
67
74
|
/** Returns fixed provider instructions from the prompt registry. */
|
|
68
|
-
getCliInstructions(): string;
|
|
75
|
+
getCliInstructions(executionMode: SourceCodeExecutionMode): string;
|
|
69
76
|
}
|
|
70
77
|
/** Supplies trusted Git-specific TLS material only around trusted Git children. */
|
|
71
78
|
export interface TrustedGitTlsProvider {
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { Stats } from 'node:fs';
|
|
2
|
+
/** Returns whether a security-boundary executable is a root-owned regular file unavailable for tenant writes. */
|
|
3
|
+
export declare function isTrustedBoundaryExecutable(statistics: Pick<Stats, 'gid' | 'isFile' | 'mode' | 'uid'>): boolean;
|
|
@@ -21,6 +21,8 @@ export interface WorkspaceCreateOptions {
|
|
|
21
21
|
* workspace keeps its stored TTL (or the default — one day — for a new one).
|
|
22
22
|
*/
|
|
23
23
|
idleTtlSeconds?: number;
|
|
24
|
+
/** Reuses an existing pod-local directory without pulling the shared snapshot. */
|
|
25
|
+
localCacheStrategy?: 'refresh' | 'reuse';
|
|
24
26
|
/** Cancels local synchronization before the caller loses ownership. */
|
|
25
27
|
signal?: AbortSignal;
|
|
26
28
|
}
|
|
@@ -62,15 +64,14 @@ export declare class WorkspaceClient {
|
|
|
62
64
|
* prompt). Reusing one keypair across all workspaces/apps is safe: a keypair authorizes nothing on its own
|
|
63
65
|
* — every connection is gated by a fresh, per-workspace certificate.
|
|
64
66
|
*/
|
|
65
|
-
private
|
|
67
|
+
private readonly podKeypairCache;
|
|
66
68
|
private readonly rpcTransport;
|
|
67
69
|
private readonly localCacheRoot;
|
|
68
70
|
/** Creates a workspace client using Squid's RPC transport by default. */
|
|
69
71
|
constructor(options?: WorkspaceClientOptions);
|
|
70
72
|
/**
|
|
71
|
-
* Ensures the workspace directory exists on this pod
|
|
72
|
-
*
|
|
73
|
-
* when there is something to pull, and is a no-op for a brand-new, never-pushed workspace.
|
|
73
|
+
* Ensures the workspace directory exists on this pod, generating a new workspace id when none is given.
|
|
74
|
+
* The default refreshes from the latest push; `localCacheStrategy: 'reuse'` keeps an existing local copy.
|
|
74
75
|
*/
|
|
75
76
|
create(id?: string, options?: WorkspaceCreateOptions): Promise<WorkspaceMetadata>;
|
|
76
77
|
/** Syncs the current state of the workspace directory to the workspace server as the new authoritative state. */
|