@manta-eu/client 0.1.4 → 0.1.6
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/generated/graphql.d.ts +158 -7
- package/dist/generated/graphql.d.ts.map +1 -1
- package/dist/generated/graphql.js +96 -2
- package/dist/shared/action-document.d.ts +21 -0
- package/dist/shared/action-document.d.ts.map +1 -0
- package/dist/shared/action-document.js +32 -0
- package/dist/shared/agent-mode.js +1 -1
- package/dist/shared/agent-types.d.ts +1 -1
- package/dist/shared/agent-types.d.ts.map +1 -1
- package/dist/shared/chat-context.d.ts.map +1 -1
- package/dist/shared/chat-context.js +3 -3
- package/dist/shared/chat-manager.d.ts +1 -1
- package/dist/shared/chat-manager.d.ts.map +1 -1
- package/dist/shared/chat-manager.js +1 -1
- package/dist/shared/entity-set.d.ts.map +1 -1
- package/dist/shared/entity-set.js +2 -2
- package/dist/shared/index.d.ts +1 -1
- package/dist/shared/index.d.ts.map +1 -1
- package/dist/shared/message-utils.d.ts +2 -2
- package/dist/shared/message-utils.d.ts.map +1 -1
- package/dist/shared/org-roles.js +1 -1
- package/dist/shared/permissions.d.ts +1 -1
- package/dist/shared/permissions.d.ts.map +1 -1
- package/dist/shared/permissions.js +1 -1
- package/dist/shared/team-filters.d.ts +13 -0
- package/dist/shared/team-filters.d.ts.map +1 -0
- package/dist/shared/team-filters.js +21 -0
- package/dist/shared/team.d.ts +6 -0
- package/dist/shared/team.d.ts.map +1 -1
- package/dist/shared/team.js +2 -0
- package/dist/shared/tools/coercers.d.ts.map +1 -1
- package/dist/shared/tools/metadata.d.ts.map +1 -1
- package/dist/shared/tools/metadata.js +2 -30
- package/dist/shared/tools/types.d.ts +3 -16
- package/dist/shared/tools/types.d.ts.map +1 -1
- package/dist/shared/writable-shape-query.js +1 -1
- package/package.json +14 -8
|
@@ -156,6 +156,7 @@ export var GQLManualActionResolveStatus;
|
|
|
156
156
|
(function (GQLManualActionResolveStatus) {
|
|
157
157
|
GQLManualActionResolveStatus["Completed"] = "COMPLETED";
|
|
158
158
|
GQLManualActionResolveStatus["Rejected"] = "REJECTED";
|
|
159
|
+
GQLManualActionResolveStatus["Retry"] = "RETRY";
|
|
159
160
|
})(GQLManualActionResolveStatus || (GQLManualActionResolveStatus = {}));
|
|
160
161
|
export var GQLMemoryKind;
|
|
161
162
|
(function (GQLMemoryKind) {
|
|
@@ -831,6 +832,23 @@ export const useInitiateUploadMutation = (client, options, headers) => {
|
|
|
831
832
|
...options,
|
|
832
833
|
});
|
|
833
834
|
};
|
|
835
|
+
export const LinkOrganizationToProviderDocument = `
|
|
836
|
+
mutation LinkOrganizationToProvider($organizationId: String!) {
|
|
837
|
+
linkOrganizationToProvider(organizationId: $organizationId) {
|
|
838
|
+
linkEnabled
|
|
839
|
+
linked
|
|
840
|
+
mirrored
|
|
841
|
+
reason
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
`;
|
|
845
|
+
export const useLinkOrganizationToProviderMutation = (client, options, headers) => {
|
|
846
|
+
return useMutation({
|
|
847
|
+
mutationKey: ["LinkOrganizationToProvider"],
|
|
848
|
+
mutationFn: (variables) => fetcher(client, LinkOrganizationToProviderDocument, variables, headers)(),
|
|
849
|
+
...options,
|
|
850
|
+
});
|
|
851
|
+
};
|
|
834
852
|
export const LinkUnlinkedDatastoreDocument = `
|
|
835
853
|
mutation LinkUnlinkedDatastore($input: LinkUnlinkedDatastoreInput!) {
|
|
836
854
|
linkUnlinkedDatastore(input: $input) {
|
|
@@ -839,6 +857,7 @@ export const LinkUnlinkedDatastoreDocument = `
|
|
|
839
857
|
datastoreId
|
|
840
858
|
name
|
|
841
859
|
path
|
|
860
|
+
providerWarning
|
|
842
861
|
}
|
|
843
862
|
}
|
|
844
863
|
`;
|
|
@@ -992,6 +1011,7 @@ export const ProvisionDatastoreDocument = `
|
|
|
992
1011
|
path
|
|
993
1012
|
pending
|
|
994
1013
|
runId
|
|
1014
|
+
providerWarning
|
|
995
1015
|
}
|
|
996
1016
|
}
|
|
997
1017
|
`;
|
|
@@ -1623,6 +1643,9 @@ export const ConnectedAccountsDocument = `
|
|
|
1623
1643
|
id
|
|
1624
1644
|
integration
|
|
1625
1645
|
externalId
|
|
1646
|
+
connectedAt
|
|
1647
|
+
revokedAt
|
|
1648
|
+
grantExpiresAt
|
|
1626
1649
|
includedResources {
|
|
1627
1650
|
id
|
|
1628
1651
|
name
|
|
@@ -1859,6 +1882,7 @@ export const DatastoreTreeDocument = `
|
|
|
1859
1882
|
provisionedAt
|
|
1860
1883
|
provisionedBy
|
|
1861
1884
|
isOrganization
|
|
1885
|
+
mirrored
|
|
1862
1886
|
}
|
|
1863
1887
|
}
|
|
1864
1888
|
`;
|
|
@@ -2407,6 +2431,30 @@ useSuspenseNodeRelationshipsQuery.getKey = (variables) => [
|
|
|
2407
2431
|
"NodeRelationshipsSuspense",
|
|
2408
2432
|
variables,
|
|
2409
2433
|
];
|
|
2434
|
+
export const OrganizationLinkingDocument = `
|
|
2435
|
+
query OrganizationLinking {
|
|
2436
|
+
organizationLinking {
|
|
2437
|
+
pushEnabled
|
|
2438
|
+
linkEnabled
|
|
2439
|
+
}
|
|
2440
|
+
}
|
|
2441
|
+
`;
|
|
2442
|
+
export const useOrganizationLinkingQuery = (client, variables, options, headers) => {
|
|
2443
|
+
return useQuery({
|
|
2444
|
+
queryKey: variables === undefined ? ["OrganizationLinking"] : ["OrganizationLinking", variables],
|
|
2445
|
+
queryFn: fetcher(client, OrganizationLinkingDocument, variables, headers),
|
|
2446
|
+
...options,
|
|
2447
|
+
});
|
|
2448
|
+
};
|
|
2449
|
+
useOrganizationLinkingQuery.getKey = (variables) => variables === undefined ? ["OrganizationLinking"] : ["OrganizationLinking", variables];
|
|
2450
|
+
export const useSuspenseOrganizationLinkingQuery = (client, variables, options, headers) => {
|
|
2451
|
+
return useSuspenseQuery({
|
|
2452
|
+
queryKey: variables === undefined ? ["OrganizationLinkingSuspense"] : ["OrganizationLinkingSuspense", variables],
|
|
2453
|
+
queryFn: fetcher(client, OrganizationLinkingDocument, variables, headers),
|
|
2454
|
+
...options,
|
|
2455
|
+
});
|
|
2456
|
+
};
|
|
2457
|
+
useSuspenseOrganizationLinkingQuery.getKey = (variables) => variables === undefined ? ["OrganizationLinkingSuspense"] : ["OrganizationLinkingSuspense", variables];
|
|
2410
2458
|
export const RulesDocument = `
|
|
2411
2459
|
query Rules($ruleIri: IRI, $filterByOwner: String, $namedGraph: IRI, $typeFilter: [IRI!]) {
|
|
2412
2460
|
rules(
|
|
@@ -2469,6 +2517,8 @@ export const SessionContextDocument = `
|
|
|
2469
2517
|
adminOrgs
|
|
2470
2518
|
memberOrgs
|
|
2471
2519
|
canManageIntegrations
|
|
2520
|
+
canManageStreams
|
|
2521
|
+
canManageSharedMemories
|
|
2472
2522
|
canManageTeam
|
|
2473
2523
|
datastore {
|
|
2474
2524
|
id
|
|
@@ -2679,9 +2729,22 @@ export const useSuspenseTeamGroupsQuery = (client, variables, options, headers)
|
|
|
2679
2729
|
};
|
|
2680
2730
|
useSuspenseTeamGroupsQuery.getKey = (variables) => variables === undefined ? ["TeamGroupsSuspense"] : ["TeamGroupsSuspense", variables];
|
|
2681
2731
|
export const TeamMembersDocument = `
|
|
2682
|
-
query TeamMembers($org: String, $group: String) {
|
|
2683
|
-
teamMembers(
|
|
2732
|
+
query TeamMembers($org: String, $group: String, $first: Int, $max: Int, $search: String, $role: String, $activation: TeamDirectoryActivation, $snapshot: String) {
|
|
2733
|
+
teamMembers(
|
|
2734
|
+
org: $org
|
|
2735
|
+
group: $group
|
|
2736
|
+
first: $first
|
|
2737
|
+
max: $max
|
|
2738
|
+
search: $search
|
|
2739
|
+
role: $role
|
|
2740
|
+
activation: $activation
|
|
2741
|
+
snapshot: $snapshot
|
|
2742
|
+
) {
|
|
2684
2743
|
truncated
|
|
2744
|
+
total
|
|
2745
|
+
unfilteredTotal
|
|
2746
|
+
hasMore
|
|
2747
|
+
snapshot
|
|
2685
2748
|
organization {
|
|
2686
2749
|
alias
|
|
2687
2750
|
name
|
|
@@ -2744,6 +2807,37 @@ export const useSuspenseTeamScopeQuery = (client, variables, options, headers) =
|
|
|
2744
2807
|
});
|
|
2745
2808
|
};
|
|
2746
2809
|
useSuspenseTeamScopeQuery.getKey = (variables) => variables === undefined ? ["TeamScopeSuspense"] : ["TeamScopeSuspense", variables];
|
|
2810
|
+
export const TenantOrganizationDocument = `
|
|
2811
|
+
query TenantOrganization($organizationName: String!) {
|
|
2812
|
+
tenantOrganization(organizationName: $organizationName) {
|
|
2813
|
+
slug
|
|
2814
|
+
exists
|
|
2815
|
+
mirroredBy
|
|
2816
|
+
}
|
|
2817
|
+
}
|
|
2818
|
+
`;
|
|
2819
|
+
export const useTenantOrganizationQuery = (client, variables, options, headers) => {
|
|
2820
|
+
return useQuery({
|
|
2821
|
+
queryKey: ["TenantOrganization", variables],
|
|
2822
|
+
queryFn: fetcher(client, TenantOrganizationDocument, variables, headers),
|
|
2823
|
+
...options,
|
|
2824
|
+
});
|
|
2825
|
+
};
|
|
2826
|
+
useTenantOrganizationQuery.getKey = (variables) => [
|
|
2827
|
+
"TenantOrganization",
|
|
2828
|
+
variables,
|
|
2829
|
+
];
|
|
2830
|
+
export const useSuspenseTenantOrganizationQuery = (client, variables, options, headers) => {
|
|
2831
|
+
return useSuspenseQuery({
|
|
2832
|
+
queryKey: ["TenantOrganizationSuspense", variables],
|
|
2833
|
+
queryFn: fetcher(client, TenantOrganizationDocument, variables, headers),
|
|
2834
|
+
...options,
|
|
2835
|
+
});
|
|
2836
|
+
};
|
|
2837
|
+
useSuspenseTenantOrganizationQuery.getKey = (variables) => [
|
|
2838
|
+
"TenantOrganizationSuspense",
|
|
2839
|
+
variables,
|
|
2840
|
+
];
|
|
2747
2841
|
export const UnlinkedDatastoresDocument = `
|
|
2748
2842
|
query UnlinkedDatastores {
|
|
2749
2843
|
unlinkedDatastores {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type Lens, type Schema } from "ldkit";
|
|
2
|
+
export type DocumentTerm = {
|
|
3
|
+
value: string;
|
|
4
|
+
termType: string;
|
|
5
|
+
};
|
|
6
|
+
export type DocumentQuad = {
|
|
7
|
+
subject: DocumentTerm;
|
|
8
|
+
predicate: {
|
|
9
|
+
value: string;
|
|
10
|
+
};
|
|
11
|
+
object: DocumentTerm & {
|
|
12
|
+
datatype?: {
|
|
13
|
+
value: string;
|
|
14
|
+
};
|
|
15
|
+
language?: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export type InsertEntity<S extends Schema> = Parameters<Lens<S>["insert"]>[number];
|
|
19
|
+
export declare function documentFromQuads(quads: readonly DocumentQuad[], subjectIri: string): Promise<Record<string, unknown>>;
|
|
20
|
+
export declare function entityActionDocument<S extends Schema>(schema: S, entity: InsertEntity<S>): Promise<Record<string, unknown>>;
|
|
21
|
+
//# sourceMappingURL=action-document.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-document.d.ts","sourceRoot":"","sources":["../../src/shared/action-document.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,KAAK,IAAI,EAAE,KAAK,MAAM,EAAE,MAAM,OAAO,CAAC;AAG7D,MAAM,MAAM,YAAY,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAE/D,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,YAAY,CAAC;IACtB,SAAS,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAC7B,MAAM,EAAE,YAAY,GAAG;QAAE,QAAQ,CAAC,EAAE;YAAE,KAAK,EAAE,MAAM,CAAA;SAAE,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC5E,CAAC;AAEF,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,MAAM,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;AA0BnF,wBAAsB,iBAAiB,CACrC,KAAK,EAAE,SAAS,YAAY,EAAE,EAC9B,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAKlC;AAED,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,MAAM,EACnD,MAAM,EAAE,CAAC,EACT,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,GACtB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAIlC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import jsonld from "jsonld";
|
|
2
|
+
import { encodeEntity } from "ldkit";
|
|
3
|
+
import { xsd } from "ldkit/namespaces";
|
|
4
|
+
// jsonld keeps the `_:` prefix in a blank node value
|
|
5
|
+
function jsonldTerm(term) {
|
|
6
|
+
return { termType: term.termType, value: term.termType === "BlankNode" ? `_:${term.value}` : term.value };
|
|
7
|
+
}
|
|
8
|
+
function jsonldQuad(quad) {
|
|
9
|
+
const { subject, predicate, object } = quad;
|
|
10
|
+
return {
|
|
11
|
+
subject: jsonldTerm(subject),
|
|
12
|
+
predicate: { termType: "NamedNode", value: predicate.value },
|
|
13
|
+
object: object.termType === "Literal"
|
|
14
|
+
? {
|
|
15
|
+
termType: "Literal",
|
|
16
|
+
value: object.value,
|
|
17
|
+
language: object.language,
|
|
18
|
+
datatype: { value: object.datatype?.value ?? xsd.string },
|
|
19
|
+
}
|
|
20
|
+
: jsonldTerm(object),
|
|
21
|
+
graph: { termType: "DefaultGraph", value: "" },
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export async function documentFromQuads(quads, subjectIri) {
|
|
25
|
+
const described = quads.filter(({ subject }) => subject.value === subjectIri || subject.termType === "BlankNode");
|
|
26
|
+
const flattened = await jsonld.fromRDF(described.map(jsonldQuad));
|
|
27
|
+
return jsonld.frame(flattened, { "@id": subjectIri, "@embed": "@always" });
|
|
28
|
+
}
|
|
29
|
+
export function entityActionDocument(schema, entity) {
|
|
30
|
+
const quads = encodeEntity(schema, entity).filter((quad) => quad.object.termType !== "Variable");
|
|
31
|
+
return documentFromQuads(quads, entity.$id);
|
|
32
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { baseIri, iriLocalName } from "./rdf-namespaces.js";
|
|
2
1
|
import { splitIdentifierWords } from "@manta-eu/lib/identifier-words";
|
|
2
|
+
import { baseIri, iriLocalName } from "./rdf-namespaces.js";
|
|
3
3
|
export function humanizeEntityName(raw) {
|
|
4
4
|
return splitIdentifierWords(raw);
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-types.d.ts","sourceRoot":"","sources":["../../src/shared/agent-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"agent-types.d.ts","sourceRoot":"","sources":["../../src/shared/agent-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,oBAAY,eAAe;IACzB,QAAQ,cAAc;IACtB,UAAU,gBAAgB;IAC1B,IAAI,SAAS;CACd;AAED,MAAM,MAAM,WAAW,GACnB;IAAE,IAAI,EAAE,eAAe,CAAC,QAAQ,CAAC;IAAC,OAAO,EAAE,GAAG,CAAA;CAAE,GAChD;IAAE,IAAI,EAAE,eAAe,CAAC,UAAU,CAAC;IAAC,QAAQ,EAAE,GAAG,CAAA;CAAE,GACnD;IAAE,IAAI,EAAE,eAAe,CAAC,IAAI,CAAC;IAAC,YAAY,EAAE,GAAG,CAAA;CAAE,CAAC;AAEtD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,WAAW,GAAG,SAAS,GAAG,OAAO,CAE5E;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,WAAW,GAAG,SAAS,GAAG,OAAO,CAEjF;AAED,MAAM,MAAM,0BAA0B,GAAG;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,UAAU,EAAE,0BAA0B,EAAE,CAAC;CAC1C,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,OAAO,EAAE,GAAG,CAAC;IACb,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,EAAE,aAAa,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-context.d.ts","sourceRoot":"","sources":["../../src/shared/chat-context.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"chat-context.d.ts","sourceRoot":"","sources":["../../src/shared/chat-context.ts"],"names":[],"mappings":"AAIA,OAAO,EAAmB,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EAA8B,KAAK,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAUxE,wBAAgB,oBAAoB,IAAI,GAAG,CAE1C;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,CAS5D;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,WAAW,GAAG,GAAG,CAMxD;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,WAAW,CAQlE"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { extractPlanName, humanizeEntityName } from "./agent-mode.js";
|
|
2
|
-
import { ChatContextKind } from "./agent-types.js";
|
|
3
|
-
import { expandPrefix, iriLocalName } from "./rdf-namespaces.js";
|
|
4
1
|
import { match } from "ts-pattern";
|
|
5
2
|
import { v7 as uuidv7 } from "uuid";
|
|
6
3
|
import { z } from "zod";
|
|
4
|
+
import { extractPlanName, humanizeEntityName } from "./agent-mode.js";
|
|
5
|
+
import { ChatContextKind } from "./agent-types.js";
|
|
6
|
+
import { expandPrefix, iriLocalName } from "./rdf-namespaces.js";
|
|
7
7
|
const storedChatContextSchema = z.object({
|
|
8
8
|
kind: z.enum(ChatContextKind),
|
|
9
9
|
iri: z
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ChatContextKind } from "./agent-types.js";
|
|
2
1
|
import { z } from "zod/v4";
|
|
2
|
+
import { ChatContextKind } from "./agent-types.js";
|
|
3
3
|
export declare const chatManagerBasePath = "agents/chat-manager";
|
|
4
4
|
export declare const thinkChatFacetPath = "think-chat";
|
|
5
5
|
export declare const defaultConversationName = "New chat";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-manager.d.ts","sourceRoot":"","sources":["../../src/shared/chat-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"chat-manager.d.ts","sourceRoot":"","sources":["../../src/shared/chat-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAGhD,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,kBAAkB,eAAe,CAAC;AAC/C,eAAO,MAAM,uBAAuB,aAAa,CAAC;AAElD,eAAO,MAAM,sBAAsB;;;;;kBAKjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,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AAC;IACxF,kBAAkB,CAAC,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;CACnF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ChatContextKind } from "./agent-types.js";
|
|
2
1
|
import { z } from "zod/v4";
|
|
2
|
+
import { ChatContextKind } from "./agent-types.js";
|
|
3
3
|
export const chatManagerBasePath = "agents/chat-manager";
|
|
4
4
|
export const thinkChatFacetPath = "think-chat";
|
|
5
5
|
export const defaultConversationName = "New chat";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-set.d.ts","sourceRoot":"","sources":["../../src/shared/entity-set.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"entity-set.d.ts","sourceRoot":"","sources":["../../src/shared/entity-set.ts"],"names":[],"mappings":"AAGA,OAAO,EAA2C,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAGpG,eAAO,MAAM,iBAAiB,UAAoC,CAAC;AAEnE,eAAO,MAAM,gBAAgB,UAAkC,CAAC;AAEhE,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,mBAAmB,yBAU1D;AAED,MAAM,MAAM,eAAe,GAAG;IAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC;AAErE,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,EAAE,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;;;;IAQnG"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { expandPrefix } from "./rdf-namespaces.js";
|
|
2
|
-
import { getJsonLdGraph, getNodeId, getNodeTypes } from "../types/jsonld.js";
|
|
3
1
|
import { isPresent } from "@manta-eu/lib/present";
|
|
4
2
|
import { detailViewTypes, lensViewTypes } from "@manta-eu/rdf-lib/detail-view-types";
|
|
5
3
|
import { groupBy, toPairs } from "ramda";
|
|
4
|
+
import { getJsonLdGraph, getNodeId, getNodeTypes } from "../types/jsonld.js";
|
|
5
|
+
import { expandPrefix } from "./rdf-namespaces.js";
|
|
6
6
|
export const selfFetchingTypes = detailViewTypes.map(expandPrefix);
|
|
7
7
|
export const displayFactTypes = lensViewTypes.map(expandPrefix);
|
|
8
8
|
export function entityTypesByIri(graph) {
|
package/dist/shared/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { PageContext } from "./page-context.js";
|
|
2
1
|
import type { UIMessage } from "ai";
|
|
3
2
|
import type { OperatorAllowedModel } from "./model.js";
|
|
3
|
+
import type { PageContext } from "./page-context.js";
|
|
4
4
|
export declare const APPROVAL: {
|
|
5
5
|
readonly YES: "Yes, confirmed.";
|
|
6
6
|
readonly NO: "No, denied.";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AACpC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD,eAAO,MAAM,QAAQ;;;CAGX,CAAC;AAEX,MAAM,MAAM,sBAAsB,GAAG,aAAa,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEvF,MAAM,MAAM,aAAa,GAAG,SAAS,CAAC;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,sBAAsB,CAAC;IACvC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,KAAK,CAAC,EAAE,oBAAoB,CAAC;CAC9B,CAAC,CAAC;AAEH,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,UAEtC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import type { FileUIPart } from "ai";
|
|
2
|
+
import type { OperatorAllowedModel } from "./model.js";
|
|
1
3
|
import type { PageContext } from "./page-context.js";
|
|
2
4
|
import type { ChatUIMessage } from "./index.js";
|
|
3
|
-
import type { OperatorAllowedModel } from "./model.js";
|
|
4
|
-
import type { FileUIPart } from "ai";
|
|
5
5
|
export type CreateUserMessageArgs = {
|
|
6
6
|
text: string;
|
|
7
7
|
fileParts?: FileUIPart[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-utils.d.ts","sourceRoot":"","sources":["../../src/shared/message-utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"message-utils.d.ts","sourceRoot":"","sources":["../../src/shared/message-utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAErC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,UAAU,EAAE,CAAC;IACzB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,KAAK,CAAC,EAAE,oBAAoB,CAAC;CAC9B,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,qBAAqB,GAAG,aAAa,CAsB5E"}
|
package/dist/shared/org-roles.js
CHANGED
|
@@ -2,7 +2,7 @@ export const orgAdminRole = {
|
|
|
2
2
|
id: "admin",
|
|
3
3
|
groupName: "Admins",
|
|
4
4
|
label: "Admin",
|
|
5
|
-
capabilities: ["team:manage", "org:settings", "org:integrations"],
|
|
5
|
+
capabilities: ["team:manage", "org:settings", "org:integrations", "org:streams", "org:memories"],
|
|
6
6
|
};
|
|
7
7
|
export const plainMemberRole = "user";
|
|
8
8
|
export function findOrgRole(roles, id) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const capabilities: readonly ["team:manage", "org:settings", "org:integrations"];
|
|
1
|
+
export declare const capabilities: readonly ["team:manage", "org:settings", "org:integrations", "org:streams", "org:memories"];
|
|
2
2
|
export type Capability = (typeof capabilities)[number];
|
|
3
3
|
export declare function isCapability(value: string): value is Capability;
|
|
4
4
|
export type CapabilityPrincipal = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../src/shared/permissions.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../src/shared/permissions.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,6FAA8F,CAAC;AAExH,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvD,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,UAAU,CAE/D;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,aAAa,CAAC,SAAS,EAAE,mBAAmB,EAAE,UAAU,EAAE,UAAU,GAAG,OAAO,CAG7F"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { orgAdminRole } from "./org-roles.js";
|
|
2
|
-
export const capabilities = ["team:manage", "org:settings", "org:integrations"];
|
|
2
|
+
export const capabilities = ["team:manage", "org:settings", "org:integrations", "org:streams", "org:memories"];
|
|
3
3
|
export function isCapability(value) {
|
|
4
4
|
return capabilities.some((candidate) => candidate === value);
|
|
5
5
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type OrgRoleDefinition } from "./org-roles.js";
|
|
2
|
+
export declare const allRoles = "all";
|
|
3
|
+
export type RoleFilter = string;
|
|
4
|
+
export type ActivationFilter = "all" | "enabled" | "disabled";
|
|
5
|
+
export declare const activationFilters: readonly ActivationFilter[];
|
|
6
|
+
export declare function matchesActivationFilter(entry: {
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
}, filter: ActivationFilter): boolean;
|
|
9
|
+
export declare function matchesRoleFilter(member: {
|
|
10
|
+
roles: readonly string[];
|
|
11
|
+
}, filter: RoleFilter, roles: readonly OrgRoleDefinition[]): boolean;
|
|
12
|
+
export declare function matchesSearch(haystack: (string | undefined)[], query: string | undefined): boolean;
|
|
13
|
+
//# sourceMappingURL=team-filters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"team-filters.d.ts","sourceRoot":"","sources":["../../src/shared/team-filters.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEtE,eAAO,MAAM,QAAQ,QAAQ,CAAC;AAE9B,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAEhC,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,SAAS,GAAG,UAAU,CAAC;AAE9D,eAAO,MAAM,iBAAiB,EAAE,SAAS,gBAAgB,EAAmC,CAAC;AAE7F,wBAAgB,uBAAuB,CAAC,KAAK,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,EAAE,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAGtG;AAED,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE;IAAE,KAAK,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,EACpC,MAAM,EAAE,UAAU,EAClB,KAAK,EAAE,SAAS,iBAAiB,EAAE,GAClC,OAAO,CAKT;AAED,wBAAgB,aAAa,CAAC,QAAQ,EAAE,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAKlG"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { isPresent } from "@manta-eu/lib/present";
|
|
2
|
+
import { plainMemberRole } from "./org-roles.js";
|
|
3
|
+
export const allRoles = "all";
|
|
4
|
+
export const activationFilters = ["all", "enabled", "disabled"];
|
|
5
|
+
export function matchesActivationFilter(entry, filter) {
|
|
6
|
+
if (filter === "all")
|
|
7
|
+
return true;
|
|
8
|
+
return entry.enabled === (filter === "enabled");
|
|
9
|
+
}
|
|
10
|
+
export function matchesRoleFilter(member, filter, roles) {
|
|
11
|
+
if (filter === allRoles)
|
|
12
|
+
return true;
|
|
13
|
+
const held = roles.some((role) => member.roles.includes(role.id));
|
|
14
|
+
return filter === plainMemberRole ? !held : member.roles.includes(filter);
|
|
15
|
+
}
|
|
16
|
+
export function matchesSearch(haystack, query) {
|
|
17
|
+
if (!isPresent(query))
|
|
18
|
+
return true;
|
|
19
|
+
const needle = query.trim().toLowerCase();
|
|
20
|
+
return haystack.some((value) => (value ?? "").toLowerCase().includes(needle));
|
|
21
|
+
}
|
package/dist/shared/team.d.ts
CHANGED
|
@@ -21,7 +21,13 @@ export type TeamRoster = {
|
|
|
21
21
|
members: TeamMember[];
|
|
22
22
|
truncated: boolean;
|
|
23
23
|
organization?: TeamOrganization;
|
|
24
|
+
total?: number;
|
|
25
|
+
unfilteredTotal?: number;
|
|
26
|
+
hasMore?: boolean;
|
|
27
|
+
snapshot?: string;
|
|
24
28
|
};
|
|
29
|
+
export declare const rosterPageSize = 20;
|
|
30
|
+
export declare const maxRosterPageSize = 100;
|
|
25
31
|
export type TeamGroup = {
|
|
26
32
|
name: string;
|
|
27
33
|
path: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"team.d.ts","sourceRoot":"","sources":["../../src/shared/team.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC;AAE9B,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,mBAAmB,CAAC,EAAE,IAAI,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"team.d.ts","sourceRoot":"","sources":["../../src/shared/team.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC;AAE9B,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM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AAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAErD;AAcD,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AAEF,uFAAuF;AACvF,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAsB1D"}
|
package/dist/shared/team.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coercers.d.ts","sourceRoot":"","sources":["../../../src/shared/tools/coercers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"coercers.d.ts","sourceRoot":"","sources":["../../../src/shared/tools/coercers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EACf,QAAQ,EAER,cAAc,EACf,MAAM,SAAS,CAAC;AAGjB,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,eAAe,CAExE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,iBAAiB,CAS5E;AAyBD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,OAAO,CAAC,kBAAkB,EAAE,eAAe,CAAC,CAQxG;AAWD,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,QAAQ,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,OAAO,GAAG,cAAc,CAAC,CAAC,CAAC,CAajG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../src/shared/tools/metadata.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../src/shared/tools/metadata.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAGrC,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEtD,eAAO,MAAM,YAAY,EAAE,YAiJH,CAAC;AAEzB,wBAAgB,eAAe,CAAC,CAAC,SAAS,QAAQ,EAAE,QAAQ,EAAE,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,CAEhF;AAED,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,QAAQ,IAAI,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAEvG,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,QAAQ,EAAE,QAAQ,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAGzG;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,QAAQ,IAAI,QAAQ,CAEtE;AAED,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,GAAG,SAAS,CAU5E;AAED,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAQjE;AAED,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,IAAI,QAAQ,CAIlF;AAED,eAAO,MAAM,YAAY,EAAE,SAAS,QAAQ,EAA4C,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { iriLocalName } from "../rdf-namespaces.js";
|
|
2
1
|
import { humanCount } from "@manta-eu/lib/humanize";
|
|
3
2
|
import { isPresent } from "@manta-eu/lib/present";
|
|
4
3
|
import { match, P } from "ts-pattern";
|
|
4
|
+
import { iriLocalName } from "../rdf-namespaces.js";
|
|
5
5
|
export const toolMetadata = {
|
|
6
6
|
getRDFoxFacts: {
|
|
7
7
|
name: "getRDFoxFacts",
|
|
@@ -129,27 +129,6 @@ export const toolMetadata = {
|
|
|
129
129
|
return `Showing: ${humanCount(input.entityIris.length, "entity")}`;
|
|
130
130
|
},
|
|
131
131
|
},
|
|
132
|
-
enableAutoPilot: {
|
|
133
|
-
name: "enableAutoPilot",
|
|
134
|
-
category: "auto-pilot",
|
|
135
|
-
humanName: "Enable auto-pilot",
|
|
136
|
-
description: "Enable automatic scheduled execution of an action plan",
|
|
137
|
-
getHumanName: (input) => input?.humanIntent || "Enabling auto-pilot...",
|
|
138
|
-
},
|
|
139
|
-
enableAutoPilotCron: {
|
|
140
|
-
name: "enableAutoPilotCron",
|
|
141
|
-
category: "auto-pilot",
|
|
142
|
-
humanName: "Enable auto-pilot (cron)",
|
|
143
|
-
description: "Enable automatic scheduled execution of an action plan on a cron schedule",
|
|
144
|
-
getHumanName: (input) => input?.humanIntent || "Enabling auto-pilot...",
|
|
145
|
-
},
|
|
146
|
-
disableAutoPilot: {
|
|
147
|
-
name: "disableAutoPilot",
|
|
148
|
-
category: "auto-pilot",
|
|
149
|
-
humanName: "Disable auto-pilot",
|
|
150
|
-
description: "Disable automatic scheduled execution of an action plan",
|
|
151
|
-
getHumanName: (input) => input?.humanIntent || "Disabling auto-pilot...",
|
|
152
|
-
},
|
|
153
132
|
checkAutoPilotStatus: {
|
|
154
133
|
name: "checkAutoPilotStatus",
|
|
155
134
|
category: "auto-pilot",
|
|
@@ -157,18 +136,11 @@ export const toolMetadata = {
|
|
|
157
136
|
description: "Check whether auto-pilot is enabled and review cadence and execution history",
|
|
158
137
|
getHumanName: (input) => input?.humanIntent || "Checking auto-pilot status...",
|
|
159
138
|
},
|
|
160
|
-
setAutoPilotCadence: {
|
|
161
|
-
name: "setAutoPilotCadence",
|
|
162
|
-
category: "auto-pilot",
|
|
163
|
-
humanName: "Update auto-pilot cadence",
|
|
164
|
-
description: "Change the recurrence cadence for an already-enabled auto-pilot plan",
|
|
165
|
-
getHumanName: (input) => input?.humanIntent || "Updating auto-pilot cadence...",
|
|
166
|
-
},
|
|
167
139
|
markAsLowRisk: {
|
|
168
140
|
name: "markAsLowRisk",
|
|
169
141
|
category: "auto-pilot",
|
|
170
142
|
humanName: "Mark as low-risk",
|
|
171
|
-
description: "Mark an action plan as
|
|
143
|
+
description: "Mark an action plan as trusted, so a rule may arm auto-pilot on it",
|
|
172
144
|
getHumanName: (input) => input?.humanIntent || "Marking plan as low-risk...",
|
|
173
145
|
},
|
|
174
146
|
readUploadedFile: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { JsonLdGraphDocument } from "#types/jsonld";
|
|
2
|
-
import type { SparqlBinding, SparqlJsonResults } from "#types/sparql-types";
|
|
3
1
|
import type { DatalogRule, InferenceVerificationResult } from "@manta-eu/datalog-parser";
|
|
4
2
|
import type { z } from "zod/v4";
|
|
5
3
|
import type { TestTripleInput } from "./test-triple.js";
|
|
4
|
+
import type { JsonLdGraphDocument } from "#types/jsonld";
|
|
5
|
+
import type { SparqlBinding, SparqlJsonResults } from "#types/sparql-types";
|
|
6
6
|
export type { SparqlBinding, SparqlJsonResults, SparqlValue } from "#types/sparql-types";
|
|
7
7
|
export type { TestTripleInput };
|
|
8
8
|
export type SparqlJsonBinding = SparqlBinding;
|
|
9
|
-
export type ToolName = "getRDFoxFacts" | "addRDFoxFacts" | "getRDFoxRules" | "explainRDFoxRules" | "scheduleTask" | "listScheduledTasks" | "cancelSchedule" | "generateChart" | "executeActionPlan" | "manageRDFoxRules" | "manageRDFoxFacts" | "actionPlanShowcase" | "showEntities" | "
|
|
9
|
+
export type ToolName = "getRDFoxFacts" | "addRDFoxFacts" | "getRDFoxRules" | "explainRDFoxRules" | "scheduleTask" | "listScheduledTasks" | "cancelSchedule" | "generateChart" | "executeActionPlan" | "manageRDFoxRules" | "manageRDFoxFacts" | "actionPlanShowcase" | "showEntities" | "checkAutoPilotStatus" | "markAsLowRisk" | "readUploadedFile";
|
|
10
10
|
export type ToolCategory = "rdfox" | "scheduler" | "charts" | "action" | "auto-pilot";
|
|
11
11
|
export type ToolInputSchema<T = unknown> = z.ZodSchema<T>;
|
|
12
12
|
export type ToolOutput<T = unknown> = T | ToolErrorResult;
|
|
@@ -176,21 +176,12 @@ export type AutoPilotInput = {
|
|
|
176
176
|
humanIntent: string;
|
|
177
177
|
planId: string;
|
|
178
178
|
};
|
|
179
|
-
export type EnableAutoPilotInput = AutoPilotInput & {
|
|
180
|
-
cadence: string;
|
|
181
|
-
};
|
|
182
|
-
export type EnableAutoPilotCronInput = AutoPilotInput & {
|
|
183
|
-
cron: string;
|
|
184
|
-
timezone?: string;
|
|
185
|
-
};
|
|
186
179
|
export type AutoPilotActionPlan = {
|
|
187
180
|
namedGraphIri: string;
|
|
188
181
|
autoPilotEnabled?: boolean | null;
|
|
189
182
|
scheduledCadence?: string | null;
|
|
190
183
|
scheduledCron?: string | null;
|
|
191
184
|
scheduleTimezone?: string | null;
|
|
192
|
-
autoPilotEnabledAt?: string | null;
|
|
193
|
-
autoPilotEnabledBy?: string | null;
|
|
194
185
|
executionCount?: number | null;
|
|
195
186
|
lastExecutedAt?: string | null;
|
|
196
187
|
hasTrustThreshold?: boolean | null;
|
|
@@ -214,11 +205,7 @@ export type ToolDefinitions = {
|
|
|
214
205
|
manageRDFoxFacts: ToolDefinition<ManageRDFoxFactsInput, ManageRDFoxFactsOutput>;
|
|
215
206
|
actionPlanShowcase: ToolDefinition<ActionPlanShowcaseInput, ActionPlanShowcaseOutput>;
|
|
216
207
|
showEntities: ToolDefinition<ShowEntitiesInput, ShowEntitiesOutput>;
|
|
217
|
-
enableAutoPilot: ToolDefinition<EnableAutoPilotInput, AutoPilotOutput>;
|
|
218
|
-
enableAutoPilotCron: ToolDefinition<EnableAutoPilotCronInput, AutoPilotOutput>;
|
|
219
|
-
disableAutoPilot: ToolDefinition<AutoPilotInput, AutoPilotOutput>;
|
|
220
208
|
checkAutoPilotStatus: ToolDefinition<AutoPilotInput, CheckAutoPilotStatusOutput>;
|
|
221
|
-
setAutoPilotCadence: ToolDefinition<EnableAutoPilotInput, AutoPilotOutput>;
|
|
222
209
|
markAsLowRisk: ToolDefinition<AutoPilotInput, AutoPilotOutput>;
|
|
223
210
|
readUploadedFile: ToolDefinition<ReadUploadedFileInput, ReadUploadedFileOutput>;
|
|
224
211
|
};
|