@exulu/backend 5.11.1 → 5.13.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/dist/{chunk-3AEINUGF.js → chunk-URX7KJQV.js} +1699 -370
- package/dist/{convert-exulu-tools-to-ai-sdk-tools-FX6KTVPQ.js → convert-exulu-tools-to-ai-sdk-tools-IYEO2RV6.js} +1 -1
- package/dist/index.cjs +3333 -1337
- package/dist/index.d.cts +42 -2
- package/dist/index.d.ts +42 -2
- package/dist/index.js +1124 -553
- package/ee/invoke-skills/create-sandbox.project-session.test.ts +184 -0
- package/ee/invoke-skills/create-sandbox.project.test.ts +47 -0
- package/ee/invoke-skills/create-sandbox.symlink.test.ts +296 -0
- package/ee/invoke-skills/create-sandbox.ts +146 -37
- package/ee/invoke-skills/project-sync.test.ts +389 -0
- package/ee/invoke-skills/project-sync.ts +306 -0
- package/ee/invoke-skills/safe-fs.test.ts +69 -0
- package/ee/invoke-skills/safe-fs.ts +216 -0
- package/ee/schemas.ts +23 -0
- package/ee/workers.ts +95 -85
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1018,6 +1018,13 @@ declare class ExuluTool {
|
|
|
1018
1018
|
toolCallId: string;
|
|
1019
1019
|
messages: unknown[];
|
|
1020
1020
|
}) => Promise<boolean>;
|
|
1021
|
+
/**
|
|
1022
|
+
* Calls for which approval is ALWAYS asked, even when the user allowed the tool for this
|
|
1023
|
+
* chat (e.g. save_to_project with overwrite: true). Only narrows the shortcut: a call whose
|
|
1024
|
+
* approval was already answered is still honoured by the approval wiring.
|
|
1025
|
+
* Ignored for tools that set `needsApprovalFn` (that check decides every call on its own).
|
|
1026
|
+
*/
|
|
1027
|
+
alwaysAskWhen?: (input: unknown) => boolean;
|
|
1021
1028
|
authentication?: ExuluAuthConfig;
|
|
1022
1029
|
config: {
|
|
1023
1030
|
name: string;
|
|
@@ -1025,7 +1032,7 @@ declare class ExuluTool {
|
|
|
1025
1032
|
type: "boolean" | "string" | "number" | "variable" | "json";
|
|
1026
1033
|
default?: string | boolean | number | object;
|
|
1027
1034
|
}[];
|
|
1028
|
-
constructor({ id, name, description, category, inputSchema, type, execute, config, needsApproval, needsApprovalFn, authentication, }: {
|
|
1035
|
+
constructor({ id, name, description, category, inputSchema, type, execute, config, needsApproval, needsApprovalFn, alwaysAskWhen, authentication, }: {
|
|
1029
1036
|
id: string;
|
|
1030
1037
|
name: string;
|
|
1031
1038
|
description: string;
|
|
@@ -1043,6 +1050,7 @@ declare class ExuluTool {
|
|
|
1043
1050
|
toolCallId: string;
|
|
1044
1051
|
messages: unknown[];
|
|
1045
1052
|
}) => Promise<boolean>;
|
|
1053
|
+
alwaysAskWhen?: (input: unknown) => boolean;
|
|
1046
1054
|
authentication?: ExuluAuthConfig;
|
|
1047
1055
|
execute: (inputs: any, options?: any) => Promise<{
|
|
1048
1056
|
result?: string;
|
|
@@ -1963,6 +1971,38 @@ declare class RecursiveChunker extends BaseChunker {
|
|
|
1963
1971
|
toString(): string;
|
|
1964
1972
|
}
|
|
1965
1973
|
|
|
1974
|
+
/**
|
|
1975
|
+
* The `routine` object a tool's execute receives when its turn is part of a
|
|
1976
|
+
* routine run (spec 2026-11-16-routine-work-status-design): during the
|
|
1977
|
+
* worker's run, and when a person continues that run's session in the chat.
|
|
1978
|
+
* `routine` itself is read-only; everything that writes hangs off
|
|
1979
|
+
* `routine.runs.current`.
|
|
1980
|
+
*/
|
|
1981
|
+
type RoutineRunPatch = {
|
|
1982
|
+
/** Work status: a key from routine.statuses. */
|
|
1983
|
+
status?: string;
|
|
1984
|
+
};
|
|
1985
|
+
type RoutineHandle = {
|
|
1986
|
+
id: string;
|
|
1987
|
+
name: string;
|
|
1988
|
+
/** The routine's configured work statuses; [] when none are configured. */
|
|
1989
|
+
statuses: {
|
|
1990
|
+
key: string;
|
|
1991
|
+
label: string;
|
|
1992
|
+
done?: boolean;
|
|
1993
|
+
}[];
|
|
1994
|
+
runs: {
|
|
1995
|
+
current: {
|
|
1996
|
+
/** job_results id of this run. */
|
|
1997
|
+
id: string;
|
|
1998
|
+
/** Current work status of this run. */
|
|
1999
|
+
status: string | null;
|
|
2000
|
+
/** Updates the run. Only the fields of RoutineRunPatch are accepted. */
|
|
2001
|
+
update(patch: RoutineRunPatch): Promise<void>;
|
|
2002
|
+
};
|
|
2003
|
+
};
|
|
2004
|
+
};
|
|
2005
|
+
|
|
1966
2006
|
interface AuthorizedReadOpts {
|
|
1967
2007
|
itemIds?: string[];
|
|
1968
2008
|
externalIds?: string[];
|
|
@@ -2855,4 +2895,4 @@ declare const ExuluPython: {
|
|
|
2855
2895
|
instructions: typeof getPythonSetupInstructions;
|
|
2856
2896
|
};
|
|
2857
2897
|
|
|
2858
|
-
export { type AuditConfig, type AuditEvent, type AuditLogger, type ChunkerOperation, type ChunkerResponse, type CredentialField, CredentialInvalidError, type JOB_STATUS as EXULU_JOB_STATUS, JOB_STATUS_ENUM as EXULU_JOB_STATUS_ENUM, type STATISTICS_TYPE as EXULU_STATISTICS_TYPE, STATISTICS_TYPE_ENUM as EXULU_STATISTICS_TYPE_ENUM, type ExuluAgent, ExuluApp, type ExuluAuthConfig, ExuluAuthentication, ExuluChunkers, ExuluContext, type ExuluContextEmbedder, type ExuluCredentialsToolContext, ExuluDatabase, ExuluDefaultTools, ExuluDocumentProcessor, ExuluEval, type Item as ExuluItem, ExuluJobs, ExuluModels, type ExuluOauthConfig, type ExuluOauthToolContext, ExuluOtel, ExuluPython, queues as ExuluQueues, ExuluReadApi, ExuluRecall, ExuluReranker, ExuluTool, type ExuluUserCredentialsConfig, ExuluVariables, PROJECTION_VERSION, type VectorSearchChunkResult, backfillCoordinates, checkMemoryBase, defaultChunker, enableLiteLLMClientMode, fitContextProjection, listFittableContexts, postgresClient, recallMemories };
|
|
2898
|
+
export { type AuditConfig, type AuditEvent, type AuditLogger, type ChunkerOperation, type ChunkerResponse, type CredentialField, CredentialInvalidError, type JOB_STATUS as EXULU_JOB_STATUS, JOB_STATUS_ENUM as EXULU_JOB_STATUS_ENUM, type STATISTICS_TYPE as EXULU_STATISTICS_TYPE, STATISTICS_TYPE_ENUM as EXULU_STATISTICS_TYPE_ENUM, type ExuluAgent, ExuluApp, type ExuluAuthConfig, ExuluAuthentication, ExuluChunkers, ExuluContext, type ExuluContextEmbedder, type ExuluCredentialsToolContext, ExuluDatabase, ExuluDefaultTools, ExuluDocumentProcessor, ExuluEval, type Item as ExuluItem, ExuluJobs, ExuluModels, type ExuluOauthConfig, type ExuluOauthToolContext, ExuluOtel, ExuluPython, queues as ExuluQueues, ExuluReadApi, ExuluRecall, ExuluReranker, ExuluTool, type ExuluUserCredentialsConfig, ExuluVariables, PROJECTION_VERSION, type RoutineHandle, type RoutineRunPatch, type VectorSearchChunkResult, backfillCoordinates, checkMemoryBase, defaultChunker, enableLiteLLMClientMode, fitContextProjection, listFittableContexts, postgresClient, recallMemories };
|
package/dist/index.d.ts
CHANGED
|
@@ -1018,6 +1018,13 @@ declare class ExuluTool {
|
|
|
1018
1018
|
toolCallId: string;
|
|
1019
1019
|
messages: unknown[];
|
|
1020
1020
|
}) => Promise<boolean>;
|
|
1021
|
+
/**
|
|
1022
|
+
* Calls for which approval is ALWAYS asked, even when the user allowed the tool for this
|
|
1023
|
+
* chat (e.g. save_to_project with overwrite: true). Only narrows the shortcut: a call whose
|
|
1024
|
+
* approval was already answered is still honoured by the approval wiring.
|
|
1025
|
+
* Ignored for tools that set `needsApprovalFn` (that check decides every call on its own).
|
|
1026
|
+
*/
|
|
1027
|
+
alwaysAskWhen?: (input: unknown) => boolean;
|
|
1021
1028
|
authentication?: ExuluAuthConfig;
|
|
1022
1029
|
config: {
|
|
1023
1030
|
name: string;
|
|
@@ -1025,7 +1032,7 @@ declare class ExuluTool {
|
|
|
1025
1032
|
type: "boolean" | "string" | "number" | "variable" | "json";
|
|
1026
1033
|
default?: string | boolean | number | object;
|
|
1027
1034
|
}[];
|
|
1028
|
-
constructor({ id, name, description, category, inputSchema, type, execute, config, needsApproval, needsApprovalFn, authentication, }: {
|
|
1035
|
+
constructor({ id, name, description, category, inputSchema, type, execute, config, needsApproval, needsApprovalFn, alwaysAskWhen, authentication, }: {
|
|
1029
1036
|
id: string;
|
|
1030
1037
|
name: string;
|
|
1031
1038
|
description: string;
|
|
@@ -1043,6 +1050,7 @@ declare class ExuluTool {
|
|
|
1043
1050
|
toolCallId: string;
|
|
1044
1051
|
messages: unknown[];
|
|
1045
1052
|
}) => Promise<boolean>;
|
|
1053
|
+
alwaysAskWhen?: (input: unknown) => boolean;
|
|
1046
1054
|
authentication?: ExuluAuthConfig;
|
|
1047
1055
|
execute: (inputs: any, options?: any) => Promise<{
|
|
1048
1056
|
result?: string;
|
|
@@ -1963,6 +1971,38 @@ declare class RecursiveChunker extends BaseChunker {
|
|
|
1963
1971
|
toString(): string;
|
|
1964
1972
|
}
|
|
1965
1973
|
|
|
1974
|
+
/**
|
|
1975
|
+
* The `routine` object a tool's execute receives when its turn is part of a
|
|
1976
|
+
* routine run (spec 2026-11-16-routine-work-status-design): during the
|
|
1977
|
+
* worker's run, and when a person continues that run's session in the chat.
|
|
1978
|
+
* `routine` itself is read-only; everything that writes hangs off
|
|
1979
|
+
* `routine.runs.current`.
|
|
1980
|
+
*/
|
|
1981
|
+
type RoutineRunPatch = {
|
|
1982
|
+
/** Work status: a key from routine.statuses. */
|
|
1983
|
+
status?: string;
|
|
1984
|
+
};
|
|
1985
|
+
type RoutineHandle = {
|
|
1986
|
+
id: string;
|
|
1987
|
+
name: string;
|
|
1988
|
+
/** The routine's configured work statuses; [] when none are configured. */
|
|
1989
|
+
statuses: {
|
|
1990
|
+
key: string;
|
|
1991
|
+
label: string;
|
|
1992
|
+
done?: boolean;
|
|
1993
|
+
}[];
|
|
1994
|
+
runs: {
|
|
1995
|
+
current: {
|
|
1996
|
+
/** job_results id of this run. */
|
|
1997
|
+
id: string;
|
|
1998
|
+
/** Current work status of this run. */
|
|
1999
|
+
status: string | null;
|
|
2000
|
+
/** Updates the run. Only the fields of RoutineRunPatch are accepted. */
|
|
2001
|
+
update(patch: RoutineRunPatch): Promise<void>;
|
|
2002
|
+
};
|
|
2003
|
+
};
|
|
2004
|
+
};
|
|
2005
|
+
|
|
1966
2006
|
interface AuthorizedReadOpts {
|
|
1967
2007
|
itemIds?: string[];
|
|
1968
2008
|
externalIds?: string[];
|
|
@@ -2855,4 +2895,4 @@ declare const ExuluPython: {
|
|
|
2855
2895
|
instructions: typeof getPythonSetupInstructions;
|
|
2856
2896
|
};
|
|
2857
2897
|
|
|
2858
|
-
export { type AuditConfig, type AuditEvent, type AuditLogger, type ChunkerOperation, type ChunkerResponse, type CredentialField, CredentialInvalidError, type JOB_STATUS as EXULU_JOB_STATUS, JOB_STATUS_ENUM as EXULU_JOB_STATUS_ENUM, type STATISTICS_TYPE as EXULU_STATISTICS_TYPE, STATISTICS_TYPE_ENUM as EXULU_STATISTICS_TYPE_ENUM, type ExuluAgent, ExuluApp, type ExuluAuthConfig, ExuluAuthentication, ExuluChunkers, ExuluContext, type ExuluContextEmbedder, type ExuluCredentialsToolContext, ExuluDatabase, ExuluDefaultTools, ExuluDocumentProcessor, ExuluEval, type Item as ExuluItem, ExuluJobs, ExuluModels, type ExuluOauthConfig, type ExuluOauthToolContext, ExuluOtel, ExuluPython, queues as ExuluQueues, ExuluReadApi, ExuluRecall, ExuluReranker, ExuluTool, type ExuluUserCredentialsConfig, ExuluVariables, PROJECTION_VERSION, type VectorSearchChunkResult, backfillCoordinates, checkMemoryBase, defaultChunker, enableLiteLLMClientMode, fitContextProjection, listFittableContexts, postgresClient, recallMemories };
|
|
2898
|
+
export { type AuditConfig, type AuditEvent, type AuditLogger, type ChunkerOperation, type ChunkerResponse, type CredentialField, CredentialInvalidError, type JOB_STATUS as EXULU_JOB_STATUS, JOB_STATUS_ENUM as EXULU_JOB_STATUS_ENUM, type STATISTICS_TYPE as EXULU_STATISTICS_TYPE, STATISTICS_TYPE_ENUM as EXULU_STATISTICS_TYPE_ENUM, type ExuluAgent, ExuluApp, type ExuluAuthConfig, ExuluAuthentication, ExuluChunkers, ExuluContext, type ExuluContextEmbedder, type ExuluCredentialsToolContext, ExuluDatabase, ExuluDefaultTools, ExuluDocumentProcessor, ExuluEval, type Item as ExuluItem, ExuluJobs, ExuluModels, type ExuluOauthConfig, type ExuluOauthToolContext, ExuluOtel, ExuluPython, queues as ExuluQueues, ExuluReadApi, ExuluRecall, ExuluReranker, ExuluTool, type ExuluUserCredentialsConfig, ExuluVariables, PROJECTION_VERSION, type RoutineHandle, type RoutineRunPatch, type VectorSearchChunkResult, backfillCoordinates, checkMemoryBase, defaultChunker, enableLiteLLMClientMode, fitContextProjection, listFittableContexts, postgresClient, recallMemories };
|