@squidcloud/backend 1.0.482 → 1.0.484
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/actions.d.ts +14 -1
- package/dist/backend/src/cli-agent/claude-code.adapter.d.ts +74 -0
- package/dist/backend/src/cli-agent/cli-agent-adapter.types.d.ts +112 -0
- package/dist/backend/src/cli-agent/cli-agent-process-launcher.d.ts +22 -0
- package/dist/backend/src/cli-agent/cli-agent-process-runner.d.ts +35 -0
- package/dist/backend/src/cli-agent/codex.adapter.d.ts +67 -0
- package/dist/backend/src/cli-agent/index.d.ts +7 -0
- package/dist/backend/src/cli-agent/nsjail-source-process-launcher.d.ts +45 -0
- package/dist/backend/src/cli-agent/workspace.utils.d.ts +20 -0
- package/dist/backend/src/internal/source-code.d.ts +3 -0
- package/dist/backend/src/public-types.d.ts +5 -0
- package/dist/backend/src/source-code/index.d.ts +17 -0
- package/dist/backend/src/source-code/providers/bitbucket-cloud.client.d.ts +20 -0
- package/dist/backend/src/source-code/providers/github-app.client.d.ts +45 -0
- package/dist/backend/src/source-code/providers/index.d.ts +2 -0
- package/dist/backend/src/source-code/restricted-source-runner.d.ts +95 -0
- package/dist/backend/src/source-code/source-analysis-admission-controller.d.ts +35 -0
- package/dist/backend/src/source-code/source-code-analyzer.d.ts +60 -0
- package/dist/backend/src/source-code/source-code-errors.d.ts +13 -0
- package/dist/backend/src/source-code/source-code-limits.d.ts +33 -0
- package/dist/backend/src/source-code/source-code-telemetry.d.ts +35 -0
- package/dist/backend/src/source-code/source-egress-proxy.d.ts +123 -0
- package/dist/backend/src/source-code/source-evidence-verifier.d.ts +30 -0
- package/dist/backend/src/source-code/source-git-command.d.ts +57 -0
- package/dist/backend/src/source-code/source-git-credential-helper.d.ts +5 -0
- package/dist/backend/src/source-code/source-provider-adapter.d.ts +87 -0
- package/dist/backend/src/source-code/source-provider-operation-broker.d.ts +111 -0
- package/dist/backend/src/source-code/source-repository-snapshot.d.ts +15 -0
- package/dist/backend/src/source-code/source-run-filesystem.d.ts +82 -0
- package/dist/backend/src/source-code/source-socket-admission.d.ts +17 -0
- package/dist/backend/src/source-code/source-workspace-manager.d.ts +179 -0
- package/dist/backend/src/source-code/source-workspace-manifest.d.ts +43 -0
- package/dist/backend/src/squid.service.d.ts +16 -0
- package/dist/backend/src/workspace-client.d.ts +126 -8
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/internal/source-code.js +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/internal/source-code.js +1 -0
- package/dist/internal-common/src/public-types-backend/bundle-api.public-types.d.ts +5 -0
- package/dist/internal-common/src/public-types-backend/bundle-data.public-types.d.ts +1 -1
- package/dist/internal-common/src/public-types-backend/langgraph.public-context.d.ts +16 -0
- package/package.json +14 -2
|
@@ -8,6 +8,7 @@ import { ApiCallContext } from './api-call.public-context';
|
|
|
8
8
|
import { DatabaseActionType, MetricActionType, StorageActionType, TopicActionType } from './bundle-data.public-types';
|
|
9
9
|
import { DistributedLockContext } from './distributed-lock.public-context';
|
|
10
10
|
import { GraphqlContext } from './graphql.public-context';
|
|
11
|
+
import { SecureLangGraphContext } from './langgraph.public-context';
|
|
11
12
|
import { McpAuthorizationRequest } from './mcp.public-types';
|
|
12
13
|
import { SecureMetricContext } from './metric.public-context';
|
|
13
14
|
import { MutationContext, MutationType } from './mutation.public-context';
|
|
@@ -48,6 +49,10 @@ export type SecureGraphQLAction = ((context: GraphqlContext) => boolean | Promis
|
|
|
48
49
|
* @category AI
|
|
49
50
|
*/
|
|
50
51
|
export type SecureAiAgentAction = ((context: SecureAiAgentContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
|
|
52
|
+
/**
|
|
53
|
+
* @category AI
|
|
54
|
+
*/
|
|
55
|
+
export type SecureLangGraphAction = ((context: SecureLangGraphContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
|
|
51
56
|
/** A type defining a function that handles changes in client connection state. */
|
|
52
57
|
export type ClientConnectionStateChangeAction = (clientId: ClientId, clientConnectionState: ClientConnectionState) => Promise<void> | void;
|
|
53
58
|
/** A type representing a generic executable function with variable arguments. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Re-exported AI function types from public-types for backwards compatibility. */
|
|
2
|
-
export { AiFunctionAttributes, AiFunctionMetadata, AiFunctionParam, AiFunctionParamType, AiFunctionResponseWithFiles, } from '@squidcloud/client';
|
|
2
|
+
export { AiFunctionAttributes, AiFunctionMetadata, AiFunctionParam, AiFunctionParamType, AiFunctionResponseWithFiles, FUNCTION_AFFINITY_SCOPES, FunctionAffinityScope, } from '@squidcloud/client';
|
|
3
3
|
/** The different types of actions that can be performed on a database. */
|
|
4
4
|
export type DatabaseActionType = 'read' | 'write' | 'update' | 'insert' | 'delete' | 'all';
|
|
5
5
|
/** The different types of actions that can be performed for storage. */
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which client-facing LangGraph action triggered this security check.
|
|
3
|
+
* @category AI
|
|
4
|
+
*/
|
|
5
|
+
export type SecureLangGraphOperation = 'invoke' | 'resume' | 'getState' | 'deleteThread';
|
|
6
|
+
/**
|
|
7
|
+
* Provides context to the security rules of a LangGraph invocation.
|
|
8
|
+
* @category AI
|
|
9
|
+
*/
|
|
10
|
+
export declare class SecureLangGraphContext {
|
|
11
|
+
readonly operation: SecureLangGraphOperation;
|
|
12
|
+
readonly graphId: string;
|
|
13
|
+
readonly threadId?: string;
|
|
14
|
+
readonly input?: Record<string, unknown>;
|
|
15
|
+
readonly resumePayload?: unknown;
|
|
16
|
+
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@squidcloud/backend",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.484",
|
|
4
4
|
"description": "Squid Cloud's backend SDK",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/backend/src/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/backend/src/index.d.ts",
|
|
11
|
+
"require": "./dist/cjs/index.js",
|
|
12
|
+
"import": "./dist/esm/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./internal/source-code": {
|
|
15
|
+
"types": "./dist/backend/src/internal/source-code.d.ts",
|
|
16
|
+
"require": "./dist/cjs/internal/source-code.js",
|
|
17
|
+
"import": "./dist/esm/internal/source-code.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
8
20
|
"scripts": {
|
|
9
21
|
"prebuild": "del-cli dist",
|
|
10
22
|
"build": "webpack --mode=production && npm run keep-only-public-types",
|
|
@@ -35,7 +47,7 @@
|
|
|
35
47
|
"typedoc-plugin-markdown": "^4.8.1"
|
|
36
48
|
},
|
|
37
49
|
"peerDependencies": {
|
|
38
|
-
"@squidcloud/client": "^1.0.
|
|
50
|
+
"@squidcloud/client": "^1.0.484"
|
|
39
51
|
},
|
|
40
52
|
"engines": {
|
|
41
53
|
"node": ">=20.0.0"
|