@rizom/brain 0.2.0-alpha.285 → 0.2.0-alpha.286
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/brain.js +834 -834
- package/dist/chunks/{app-4haypwmm.js → app-ghxywxak.js} +2 -2
- package/dist/chunks/{blog-post-adapter-87b43fs1.js → blog-post-adapter-b5ab32eq.js} +2 -2
- package/dist/chunks/index-0fysje0n.js +136 -0
- package/dist/chunks/{index-w1bmyak8.js.map → index-0fysje0n.js.map} +8 -7
- package/dist/chunks/{index-xcs1chpk.js → index-dq6wrp85.js} +3 -3
- package/dist/chunks/{index-twncwcg5.js → index-g40p5j24.js} +2 -2
- package/dist/chunks/{index-cqkbr444.js → index-jg8pq4va.js} +2 -2
- package/dist/chunks/{index-bc37y32h.js → index-kxj3qc06.js} +2 -2
- package/dist/chunks/{index-304fnnz5.js → index-m38g93be.js} +3 -3
- package/dist/chunks/{index-304fnnz5.js.map → index-m38g93be.js.map} +1 -1
- package/dist/chunks/{linkedin-template-yf83abr6.js → linkedin-template-wskz20zy.js} +2 -2
- package/dist/chunks/{rss-datasource-0vmwhxxs.js → rss-datasource-44mz85h6.js} +2 -2
- package/dist/entities.js +1 -1
- package/dist/index.js +1 -1
- package/dist/interfaces.d.ts +6 -1
- package/dist/interfaces.js +1 -1
- package/dist/model.js +39 -39
- package/dist/model.js.map +1 -1
- package/dist/plugins.js +1 -1
- package/dist/services.d.ts +23 -2
- package/dist/services.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/index-w1bmyak8.js +0 -136
- /package/dist/chunks/{app-4haypwmm.js.map → app-ghxywxak.js.map} +0 -0
- /package/dist/chunks/{blog-post-adapter-87b43fs1.js.map → blog-post-adapter-b5ab32eq.js.map} +0 -0
- /package/dist/chunks/{index-xcs1chpk.js.map → index-dq6wrp85.js.map} +0 -0
- /package/dist/chunks/{index-twncwcg5.js.map → index-g40p5j24.js.map} +0 -0
- /package/dist/chunks/{index-cqkbr444.js.map → index-jg8pq4va.js.map} +0 -0
- /package/dist/chunks/{index-bc37y32h.js.map → index-kxj3qc06.js.map} +0 -0
- /package/dist/chunks/{linkedin-template-yf83abr6.js.map → linkedin-template-wskz20zy.js.map} +0 -0
- /package/dist/chunks/{rss-datasource-0vmwhxxs.js.map → rss-datasource-44mz85h6.js.map} +0 -0
package/dist/plugins.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{je as x,ke as y,le as z,mc as j,me as A,nc as k,ne as B,oc as q,oe as C,pc as v,qc as w,qe as D,re as E}from"./chunks/index-
|
|
2
|
+
import{je as x,ke as y,le as z,mc as j,me as A,nc as k,ne as B,oc as q,oe as C,pc as v,qc as w,qe as D,re as E}from"./chunks/index-0fysje0n.js";import"./chunks/index-pnb8xy1h.js";import"./chunks/index-q891w5f4.js";import{Mf as d,Qf as f,Rf as h}from"./chunks/index-smm9eana.js";import"./chunks/index-xtvsz1xr.js";import"./chunks/index-skqzsjg5.js";export{f as ToolResultDataSchema,B as RuntimeResourceSignalsSchema,C as RuntimeReadinessSchema,A as RuntimeQueueSignalsSchema,z as RuntimeHealthCheckSchema,d as PendingConfirmationSchema,q as MessageSchema,D as MessageResponseSchema,j as ExtensionMetadataSchema,k as ConversationSchema,x as ChatContextSchema,v as BrainCharacterSchema,E as BaseMessageSchema,y as AppInfoSchema,w as AnchorProfileSchema,h as AgentResponseSchema};
|
|
3
3
|
|
|
4
4
|
//# debugId=C34753579868760F64756E2164756E21
|
|
5
5
|
//# sourceMappingURL=plugins.js.map
|
package/dist/services.d.ts
CHANGED
|
@@ -61,7 +61,12 @@ interface AccountSettingsFieldDefinition {
|
|
|
61
61
|
readonly control?: AccountSettingsControl | undefined;
|
|
62
62
|
readonly secret?: boolean | undefined;
|
|
63
63
|
}
|
|
64
|
-
|
|
64
|
+
/**
|
|
65
|
+
* Every schema field must be declared. Totality is what makes `secret` a
|
|
66
|
+
* decision rather than an omission: a missing entry would otherwise render a
|
|
67
|
+
* credential as an ordinary echoing text input.
|
|
68
|
+
*/
|
|
69
|
+
type AccountSettingsFieldMap<TSchema extends AccountSettingsSchema> = { readonly [K in Extract<keyof z.input<TSchema>, string>]: AccountSettingsFieldDefinition; };
|
|
65
70
|
interface AccountSettingsDefinition<TSchema extends AccountSettingsSchema = AccountSettingsSchema, TFields extends AccountSettingsFieldMap<TSchema> = AccountSettingsFieldMap<TSchema>> {
|
|
66
71
|
readonly kind: "rizom-account-settings";
|
|
67
72
|
readonly title: string;
|
|
@@ -71,6 +76,17 @@ interface AccountSettingsDefinition<TSchema extends AccountSettingsSchema = Acco
|
|
|
71
76
|
}
|
|
72
77
|
type AnyAccountSettingsDefinition = AccountSettingsDefinition<AccountSettingsSchema, AccountSettingsFieldMap<AccountSettingsSchema>>;
|
|
73
78
|
type AccountSettingsValue<TDefinition extends AnyAccountSettingsDefinition> = z.output<TDefinition["schema"]>;
|
|
79
|
+
/** Field names the author declared `secret: true`. */
|
|
80
|
+
type SecretSettingsKeys<TDefinition extends AnyAccountSettingsDefinition> = { [K in keyof TDefinition["fields"]]: NonNullable<TDefinition["fields"][K]> extends {
|
|
81
|
+
readonly secret: true;
|
|
82
|
+
} ? K : never; }[keyof TDefinition["fields"]];
|
|
83
|
+
/**
|
|
84
|
+
* Settings as an operator callback sees them. Widget, workspace, and action
|
|
85
|
+
* data is serialized to the browser, so secret fields are removed from the type
|
|
86
|
+
* itself: reading one is a compile error rather than a review question. Full
|
|
87
|
+
* values stay available to server-only paths such as account-bound daemons.
|
|
88
|
+
*/
|
|
89
|
+
type RedactedAccountSettingsValue<TDefinition extends AnyAccountSettingsDefinition> = Omit<AccountSettingsValue<TDefinition>, Extract<SecretSettingsKeys<TDefinition>, string>>;
|
|
74
90
|
declare function defineAccountSettings<TSchema extends AccountSettingsSchema, const TFields extends AccountSettingsFieldMap<TSchema>>(definition: {
|
|
75
91
|
readonly title: string;
|
|
76
92
|
readonly description?: string | undefined;
|
|
@@ -130,7 +146,12 @@ interface OperatorBaseContext<TConfig, TState extends object, TAccountSettings e
|
|
|
130
146
|
readonly config: TConfig;
|
|
131
147
|
readonly state: TState;
|
|
132
148
|
readonly caller: OperatorCaller | null;
|
|
133
|
-
|
|
149
|
+
/**
|
|
150
|
+
* The current caller's settings, minus every field declared `secret`.
|
|
151
|
+
* Operator data reaches the browser, so secrets are excluded from the type
|
|
152
|
+
* rather than left to author discipline.
|
|
153
|
+
*/
|
|
154
|
+
readonly settings: TAccountSettings extends AnyAccountSettingsDefinition ? RedactedAccountSettingsValue<TAccountSettings> | null : null;
|
|
134
155
|
readonly entities: OperatorEntityReader;
|
|
135
156
|
readonly jobs: OperatorJobs;
|
|
136
157
|
readonly permissions: OperatorPermissions;
|
package/dist/services.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Id as i,Jd as t,Kd as o,Ld as n,Md as r,Nd as c,Od as a}from"./chunks/index-
|
|
2
|
+
import{Id as i,Jd as t,Kd as o,Ld as n,Md as r,Nd as c,Od as a}from"./chunks/index-0fysje0n.js";import"./chunks/index-pnb8xy1h.js";import"./chunks/index-q891w5f4.js";import"./chunks/index-smm9eana.js";import{Mh as e}from"./chunks/index-xtvsz1xr.js";import"./chunks/index-skqzsjg5.js";export{e as z,c as defineWorkspaceAction,t as defineTool,a as defineServicePlugin,i as defineJob,n as defineDashboardWidget,r as defineCmsWorkspace,o as defineAccountSettings};
|
|
3
3
|
|
|
4
4
|
//# debugId=6051FBB54651D43C64756E2164756E21
|
|
5
5
|
//# sourceMappingURL=services.js.map
|