@ai-ecoverse/slicc-agent 7.34.4 → 7.35.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/README.md +23 -9
- package/dist/agent.js +4 -0
- package/dist/agent.js.map +2 -2
- package/dist/approvals/index.js +4 -1
- package/dist/approvals/index.js.map +2 -2
- package/dist/approvals/judge.js +2 -1
- package/dist/approvals/judge.js.map +2 -2
- package/dist/approvals/owner-tools.js +165 -0
- package/dist/approvals/owner-tools.js.map +7 -0
- package/dist/approvals/policy.js +22 -3
- package/dist/approvals/policy.js.map +2 -2
- package/dist/approvals/record.js +1 -1
- package/dist/approvals/record.js.map +2 -2
- package/dist/control.js.map +2 -2
- package/dist/freezer/v6.js +3 -2
- package/dist/freezer/v6.js.map +2 -2
- package/dist/guests/guard.js +12 -8
- package/dist/guests/guard.js.map +2 -2
- package/dist/host.js +5 -1
- package/dist/host.js.map +2 -2
- package/dist/index.js.map +2 -2
- package/dist/local.js +159 -0
- package/dist/local.js.map +7 -0
- package/dist/main.js +9 -3
- package/dist/main.js.map +2 -2
- package/dist/providers.js +29 -1
- package/dist/providers.js.map +2 -2
- package/dist/secrets/credentials.js +4 -2
- package/dist/secrets/credentials.js.map +2 -2
- package/dist/services.js +4 -0
- package/dist/services.js.map +2 -2
- package/dist/settings.js +50 -13
- package/dist/settings.js.map +2 -2
- package/dist/spectrum/approvals-port.js +4 -1
- package/dist/spectrum/approvals-port.js.map +2 -2
- package/dist/types/agent.d.ts +2 -0
- package/dist/types/approvals/judge.d.ts +3 -3
- package/dist/types/approvals/owner-tools.d.ts +39 -0
- package/dist/types/approvals/policy.d.ts +6 -0
- package/dist/types/approvals/record.d.ts +7 -3
- package/dist/types/control.d.ts +1 -1
- package/dist/types/guests/guard.d.ts +3 -0
- package/dist/types/index.d.ts +2 -2
- package/dist/types/local.d.ts +38 -0
- package/dist/types/main.d.ts +20 -0
- package/dist/types/providers.d.ts +3 -1
- package/dist/types/secrets/credentials.d.ts +1 -1
- package/dist/types/services.d.ts +6 -2
- package/dist/types/settings.d.ts +1 -0
- package/dist/types/spectrum/approvals-port.d.ts +1 -0
- package/package.json +2 -2
package/dist/types/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { ADOBE, ADOBE_PROXY, type AdobeConfig, type AdobeModelInfo, adobeClassifiers, adobeConfig, adobeIdentity, adobeModel, adobeProvider, adobeUsage, type Budget, SESSION_HEADER, VERSION_HEADER, withAdobeIdentity, } from './adobe.ts';
|
|
2
2
|
export { type Agent, type AgentOptions, answerText, openAgent } from './agent.ts';
|
|
3
3
|
export { APPROVAL_MS, type Approval, type ApprovalAnswer, type ApprovalDecided, type ApprovalDecision, type ApprovalDraft, type ApprovalJudge, type ApprovalKind, type ApprovalRequester, type ApprovalState, type Approvals, ApprovalsDoc, type ApprovalTier, type ApprovalVerdict, ASK_MIN_MS, approvalJudge, attachApprovals, type CaptureApproval, type CaptureDetail, DEFAULT_POLICY, type DecidedBy, type Decider, JUDGE_ALLOW, JUDGE_KIND, JUDGE_MODEL, JUDGE_QUESTIONS, type Judgement, judgeModelOf, judgeSpender, judgeState, type OwnerIntent, ownerIntent, POLICY_FILE, REASONS, route, seedPolicy, VERDICT_REASONS, verdictOf, verdictRecorder, } from './approvals/index.ts';
|
|
4
|
-
export { type ApprovalPolicy, type ApprovalPolicyChange, type ApprovalPolicySet, DEFAULT_APPROVAL_POLICY, type RunLatePolicy, type SudoPolicy, type SudoPolicyChange, } from './approvals/policy.ts';
|
|
5
|
-
export type { SudoFile, SudoReplay, SudoRun, SudoRunState } from './approvals/record.ts';
|
|
4
|
+
export { type ApprovalPolicy, type ApprovalPolicyChange, type ApprovalPolicySet, DEFAULT_APPROVAL_POLICY, type OwnerPolicy, type OwnerTools, type RunLatePolicy, type SudoPolicy, type SudoPolicyChange, } from './approvals/policy.ts';
|
|
5
|
+
export type { OwnerToolApproval, SudoFile, SudoReplay, SudoRun, SudoRunState, } from './approvals/record.ts';
|
|
6
6
|
export { RUN_ERRORS, type RunAnswer, SUDO_RUN_TASK, } from './approvals/run.ts';
|
|
7
7
|
export { NOTICE_LIMITS, NOTICE_REASONS, type NoticeAnswer, type RunNotice, } from './approvals/run-notice.ts';
|
|
8
8
|
export { RUN_REASONS, type RunGates, type Runnable, runnable, SUDO_RUN_PROTOCOL, } from './approvals/runnable.ts';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { ClassifierModel, Model, Provider } from '@earendil-works/pi-ai';
|
|
2
|
+
export declare const LOCAL = "local";
|
|
3
|
+
export declare const LOCAL_BASE = "LOCAL_BASE_URL";
|
|
4
|
+
export declare const LOCAL_CONTEXT = "LOCAL_CONTEXT_WINDOW";
|
|
5
|
+
export declare const DEFAULT_CONTEXT = 32768;
|
|
6
|
+
export declare const SMALL_CONTEXT = 16384;
|
|
7
|
+
export declare const DECISIONS_API: 'typesafe-system-one';
|
|
8
|
+
type Fetch = typeof fetch;
|
|
9
|
+
export interface ListedModel {
|
|
10
|
+
id: string;
|
|
11
|
+
context_length?: number;
|
|
12
|
+
max_context_length?: number;
|
|
13
|
+
meta?: {
|
|
14
|
+
n_ctx?: number;
|
|
15
|
+
};
|
|
16
|
+
architecture?: {
|
|
17
|
+
input_modalities?: string[];
|
|
18
|
+
output_modalities?: string[];
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export declare const KEY_OVER_HTTP = "Seven\u2019s vault sends keys over https:// only, so this http:// endpoint can\u2019t take a key yet. Remove the account and add it again without a key, or use an https:// endpoint.";
|
|
22
|
+
export declare const ORIGINS_HINT = "If the server is running, let seven reach it: OLLAMA_ORIGINS=https://seven.sliccy.ai for Ollama, Enable CORS in LM Studio, --allowed-origins for vLLM, ORTLLAMA_ORIGINS for ortllama, or link slicc.";
|
|
23
|
+
export declare function localBase(value: string): string | {
|
|
24
|
+
problem: string;
|
|
25
|
+
};
|
|
26
|
+
export declare function localEndpoint(value: string): Record<string, string> | string;
|
|
27
|
+
export declare function localContext(value: string): Record<string, string> | string;
|
|
28
|
+
export declare function contextOf(model: ListedModel, fallback?: number): number;
|
|
29
|
+
export declare function localModel(model: ListedModel, baseUrl: string, fallback?: number): Model<'openai-completions'> | ClassifierModel<typeof DECISIONS_API>;
|
|
30
|
+
export declare function listLocal(base: string, { key, fetch: fetcher, signal }: {
|
|
31
|
+
key?: string;
|
|
32
|
+
fetch: Fetch;
|
|
33
|
+
signal?: AbortSignal;
|
|
34
|
+
}): Promise<ListedModel[]>;
|
|
35
|
+
export declare function localProvider({ fetch: fetcher, }?: {
|
|
36
|
+
fetch?: Fetch;
|
|
37
|
+
}): Provider;
|
|
38
|
+
export {};
|
package/dist/types/main.d.ts
CHANGED
|
@@ -4,10 +4,12 @@ import { type ModelRef, type Storage, type ToolRegistration } from '@earendil-wo
|
|
|
4
4
|
import { codemodeTool } from './codemode/index.ts';
|
|
5
5
|
import { type AgentHost, type RunTimes } from './host.ts';
|
|
6
6
|
import type { KernelClient } from './kernel/client.ts';
|
|
7
|
+
import { SliccKernelEnv } from './kernel/env.ts';
|
|
7
8
|
import { type UserClients } from './kernel/users.ts';
|
|
8
9
|
import { type Transport } from './net.ts';
|
|
9
10
|
import { type Assets } from './scoops/index.ts';
|
|
10
11
|
import { type ModelBases } from './secrets/endpoints.ts';
|
|
12
|
+
import { type VaultRecords } from './secrets/records.ts';
|
|
11
13
|
import { type PlainStore } from './secrets/store.ts';
|
|
12
14
|
import { Vault } from './secrets/vault.ts';
|
|
13
15
|
import { createSliccModels } from './settings.ts';
|
|
@@ -50,6 +52,24 @@ export declare function seesImages(models: Pick<Models, 'getModel'>, ref: ModelR
|
|
|
50
52
|
export declare const MCP_CALLBACK = "oauth/mcp-callback";
|
|
51
53
|
export declare function mcpRedirect({ origin, href }: AgentWorkerScope['location']): string;
|
|
52
54
|
export declare function modelBases(providers: readonly Provider[], models: Pick<ReturnType<typeof createSliccModels>, 'getModels'>, env?: (providerId: string) => Readonly<Record<string, string>> | undefined): ModelBases[];
|
|
55
|
+
export declare function modelsOf(scope: AgentWorkerScope, options: AgentWorkerOptions, given: {
|
|
56
|
+
vault: Vault;
|
|
57
|
+
home: SliccKernelEnv;
|
|
58
|
+
transport: typeof fetch;
|
|
59
|
+
version: string;
|
|
60
|
+
}): Promise<{
|
|
61
|
+
store: PlainStore;
|
|
62
|
+
records: VaultRecords;
|
|
63
|
+
providers: Provider<import("@earendil-works/pi-ai").Api>[];
|
|
64
|
+
fields: import("./settings.ts").ProviderFields;
|
|
65
|
+
models: import("@earendil-works/pi-ai").MutableModels;
|
|
66
|
+
bases: () => ModelBases[];
|
|
67
|
+
endpoints: import("./secrets/endpoints.ts").Endpoints;
|
|
68
|
+
defaultModel: () => Promise<{
|
|
69
|
+
provider: string;
|
|
70
|
+
modelId: string;
|
|
71
|
+
}>;
|
|
72
|
+
}>;
|
|
53
73
|
export declare function start(scope: AgentWorkerScope, ports: Promise<KernelPorts>, options: AgentWorkerOptions, vault: Vault): Promise<AgentHost>;
|
|
54
74
|
export declare function alive(client: KernelClient): (pid: number) => Promise<boolean>;
|
|
55
75
|
export declare function runAgentWorker(scope: AgentWorkerScope, options?: AgentWorkerOptions): Promise<AgentHost>;
|
|
@@ -22,9 +22,10 @@ export interface KeyProvider {
|
|
|
22
22
|
make: () => Provider;
|
|
23
23
|
env: string;
|
|
24
24
|
description: string;
|
|
25
|
-
keyUrl
|
|
25
|
+
keyUrl?: string;
|
|
26
26
|
cors: boolean;
|
|
27
27
|
signIn?: true;
|
|
28
|
+
keyless?: true;
|
|
28
29
|
fields?: readonly FieldSpec[];
|
|
29
30
|
}
|
|
30
31
|
export declare function httpsBase(value: string): URL | undefined;
|
|
@@ -40,6 +41,7 @@ export interface Listing {
|
|
|
40
41
|
auth: ProviderAuth;
|
|
41
42
|
corsFree: boolean;
|
|
42
43
|
vaultName: string;
|
|
44
|
+
keyless?: true;
|
|
43
45
|
fields?: readonly FieldSpec[];
|
|
44
46
|
}
|
|
45
47
|
export declare const LISTINGS: ReadonlyMap<string, Listing>;
|
|
@@ -2,4 +2,4 @@ import type { CredentialStore } from '@earendil-works/pi-ai';
|
|
|
2
2
|
import type { VaultRecords } from './records.ts';
|
|
3
3
|
export declare const KEYS_IN_VAULT = "model keys are kept in seven's vault: enter them in Settings \u203A Accounts";
|
|
4
4
|
export type FieldsOf = (providerId: string) => Readonly<Record<string, string>> | undefined;
|
|
5
|
-
export declare function vaultCredentials(records: Pick<VaultRecords, 'model' | 'state'>, env?: FieldsOf, ready?: (providerId: string) => boolean): CredentialStore;
|
|
5
|
+
export declare function vaultCredentials(records: Pick<VaultRecords, 'model' | 'state'>, env?: FieldsOf, ready?: (providerId: string) => boolean, keyless?: () => readonly string[]): CredentialStore;
|
package/dist/types/services.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import type { ChangesView } from './changes/git.ts';
|
|
|
10
10
|
import type { FrozenCone } from './freezer/index.ts';
|
|
11
11
|
import type { ImportProgress, ImportResult } from './freezer/v6.ts';
|
|
12
12
|
import type { GuestOpened, Proposed, ProposeRequest } from './guests/index.ts';
|
|
13
|
-
import type { GuestDraft, GuestGates, GuestSeat } from './guests/seats.ts';
|
|
13
|
+
import type { GuestDraft, GuestGates, GuestSeat, ShownAlwaysTool } from './guests/seats.ts';
|
|
14
14
|
import type { MemoryEntry, MemoryScope, MemoryTag } from './memory/format.ts';
|
|
15
15
|
import type { EntriesPage, EntriesRequest } from './remote/history.ts';
|
|
16
16
|
import type { AgentRemote } from './remote/host.ts';
|
|
@@ -109,6 +109,10 @@ export interface AgentControl {
|
|
|
109
109
|
guestAlwaysForget(seat: string, approval: string, context: Context): Promise<{
|
|
110
110
|
removed: boolean;
|
|
111
111
|
}>;
|
|
112
|
+
ownerAlways(context: Context): Promise<ShownAlwaysTool[]>;
|
|
113
|
+
ownerAlwaysForget(approval: string, context: Context): Promise<{
|
|
114
|
+
removed: boolean;
|
|
115
|
+
}>;
|
|
112
116
|
approvalPolicySet(change: ApprovalPolicyChange, context: Context): Promise<ApprovalPolicySet>;
|
|
113
117
|
decide(id: string, decision: ApprovalDecision, reason: string | null, context: Context): Promise<ApprovalDecided>;
|
|
114
118
|
approvalRun(id: string, context: Context): Promise<RunAnswer>;
|
|
@@ -285,7 +289,7 @@ export interface AgentSettingsChange {
|
|
|
285
289
|
thinkingLevel: 'off' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | null;
|
|
286
290
|
agentId?: string | null;
|
|
287
291
|
}
|
|
288
|
-
export declare const CONTROL_METHODS: ("abort" | "agentCommands" | "approvalPolicySet" | "approvalRun" | "approvalRunNotice" | "approvalRunStop" | "changeAccept" | "changeRevert" | "changesOpen" | "compact" | "compactAgent" | "configure" | "createCone" | "createScoop" | "decide" | "discard" | "drop" | "entries" | "freeze" | "guestAlwaysForget" | "guestOpen" | "guestRevoke" | "image" | "importCancel" | "importProfile" | "memoryRemove" | "memorySave" | "monitorClose" | "monitorOpen" | "newChat" | "reset" | "resolveAgentLick" | "resolveLick" | "rewind" | "rewindAgent" | "selectCone" | "send" | "sprinkleCall" | "sprinkleSend" | "stepLabel" | "stopAgent" | "thaw" | "toolLabel" | "unqueue" | "wait" | "webhook" | "withdraw")[];
|
|
292
|
+
export declare const CONTROL_METHODS: ("abort" | "agentCommands" | "approvalPolicySet" | "approvalRun" | "approvalRunNotice" | "approvalRunStop" | "changeAccept" | "changeRevert" | "changesOpen" | "compact" | "compactAgent" | "configure" | "createCone" | "createScoop" | "decide" | "discard" | "drop" | "entries" | "freeze" | "guestAlwaysForget" | "guestOpen" | "guestRevoke" | "image" | "importCancel" | "importProfile" | "memoryRemove" | "memorySave" | "monitorClose" | "monitorOpen" | "newChat" | "ownerAlways" | "ownerAlwaysForget" | "reset" | "resolveAgentLick" | "resolveLick" | "rewind" | "rewindAgent" | "selectCone" | "send" | "sprinkleCall" | "sprinkleSend" | "stepLabel" | "stopAgent" | "thaw" | "toolLabel" | "unqueue" | "wait" | "webhook" | "withdraw")[];
|
|
289
293
|
export declare const OWNER_DEVICE_METHODS: readonly (keyof AgentControl & string)[];
|
|
290
294
|
export declare const CONTROL_READS: readonly (keyof AgentControl & string)[];
|
|
291
295
|
export declare const AgentControl: RemoteContract;
|
package/dist/types/settings.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export declare function sliccProviders(version?: string): Provider[];
|
|
|
26
26
|
export declare function withDefaultRegions(credentials: CredentialStore): CredentialStore;
|
|
27
27
|
export declare function catalogStore(store: PlainStore): ModelsStore;
|
|
28
28
|
export declare function createSliccModels(credentials: CredentialStore, providers?: Provider<import("@earendil-works/pi-ai").Api>[], catalog?: ModelsStore): MutableModels;
|
|
29
|
+
export declare function keylessOf(records: Pick<VaultRecords, 'model'>, fields: Pick<ProviderFields, 'get' | 'ready'>): (providerId: string) => boolean;
|
|
29
30
|
export interface ProviderFields {
|
|
30
31
|
get(providerId: string): Readonly<Record<string, string>> | undefined;
|
|
31
32
|
env(providerId: string): Readonly<Record<string, string>> | undefined;
|
|
@@ -4,6 +4,7 @@ import type { Runnable } from '../approvals/runnable.ts';
|
|
|
4
4
|
import type { AgentConnection } from '../client.ts';
|
|
5
5
|
import { Emitter } from './emitter.ts';
|
|
6
6
|
export declare const ARGS_LENGTH = 65536;
|
|
7
|
+
export declare const OWNER_NAME = "you";
|
|
7
8
|
export declare function shown(item: Item, agentName: string | undefined): Approval;
|
|
8
9
|
export type HostApprovals = ApprovalsPort;
|
|
9
10
|
export declare function runShown(run: SudoRun): ApprovalRun & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-agent",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.35.0",
|
|
4
4
|
"description": "SLICC's agent core on pi durable: an agent worker, session storage, remoting and pi extensions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"@ai-ecoverse/slicc-scrub": "1.1.1",
|
|
78
78
|
"@ai-ecoverse/slicc-shared-web": "2.14.4",
|
|
79
79
|
"@ai-ecoverse/slicc-spectrum": "2.16.1",
|
|
80
|
-
"@ai-ecoverse/slicc-vault": "1.
|
|
80
|
+
"@ai-ecoverse/slicc-vault": "1.27.0",
|
|
81
81
|
"@ai-ecoverse/wasi-fnox": "1.48.0-1",
|
|
82
82
|
"@ai-ecoverse/wasm-bash": "5.3.0-23",
|
|
83
83
|
"@ai-ecoverse/wasm-coreutils": "9.12.0-15",
|