@mindstudio-ai/agent 0.1.14 → 0.1.15
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/cli.js +4 -4
- package/dist/index.d.ts +37 -15
- package/dist/index.js.map +1 -1
- package/dist/postinstall.js +4 -4
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -3896,7 +3896,7 @@ async function startMcpServer(options) {
|
|
|
3896
3896
|
capabilities: { tools: {} },
|
|
3897
3897
|
serverInfo: {
|
|
3898
3898
|
name: "mindstudio-agent",
|
|
3899
|
-
version: "0.1.
|
|
3899
|
+
version: "0.1.15"
|
|
3900
3900
|
},
|
|
3901
3901
|
instructions: "Welcome to MindStudio \u2014 a platform with 200+ AI models, 850+ third-party integrations, and pre-built agents.\n\nGetting started:\n1. Call `listAgents` to verify your connection and see available agents.\n2. Call `changeName` to set your display name \u2014 use your name or whatever your user calls you. This is how you'll appear in MindStudio request logs.\n3. If you have a profile picture or icon, call `uploadFile` to upload it, then `changeProfilePicture` with the returned URL. This helps users identify your requests in their logs.\n4. Call `listActions` to discover all available actions.\n\nThen use the tools to generate text, images, video, audio, search the web, work with data sources, run agents, and more.\n\nImportant:\n- AI-powered actions (text generation, image generation, video, audio, etc.) cost money. Before running these, call `estimateActionCost` and confirm with the user before proceeding \u2014 unless they've explicitly told you to go ahead.\n- Not all agents from `listAgents` are configured for API use. Do not try to run an agent just because it appears in the list \u2014 it will likely fail. Only run agents the user specifically asks you to run."
|
|
3902
3902
|
});
|
|
@@ -4804,7 +4804,7 @@ function isNewerVersion(current, latest) {
|
|
|
4804
4804
|
return false;
|
|
4805
4805
|
}
|
|
4806
4806
|
async function checkForUpdate() {
|
|
4807
|
-
const currentVersion = "0.1.
|
|
4807
|
+
const currentVersion = "0.1.15";
|
|
4808
4808
|
if (!currentVersion) return null;
|
|
4809
4809
|
try {
|
|
4810
4810
|
const { loadConfig: loadConfig2, saveConfig: saveConfig2 } = await Promise.resolve().then(() => (init_config(), config_exports));
|
|
@@ -4833,7 +4833,7 @@ async function checkForUpdate() {
|
|
|
4833
4833
|
}
|
|
4834
4834
|
}
|
|
4835
4835
|
function printUpdateNotice(latestVersion) {
|
|
4836
|
-
const currentVersion = "0.1.
|
|
4836
|
+
const currentVersion = "0.1.15";
|
|
4837
4837
|
process.stderr.write(
|
|
4838
4838
|
`
|
|
4839
4839
|
${ansi.cyanBright("Update available")} ${ansi.gray(currentVersion + " \u2192")} ${ansi.cyanBold(latestVersion)}
|
|
@@ -4908,7 +4908,7 @@ async function cmdLogin(options) {
|
|
|
4908
4908
|
process.stderr.write("\n");
|
|
4909
4909
|
printLogo();
|
|
4910
4910
|
process.stderr.write("\n");
|
|
4911
|
-
const ver = "0.1.
|
|
4911
|
+
const ver = "0.1.15";
|
|
4912
4912
|
process.stderr.write(
|
|
4913
4913
|
` ${ansi.bold("MindStudio Agent")} ${ver ? " " + ansi.gray("v" + ver) : ""}
|
|
4914
4914
|
`
|
package/dist/index.d.ts
CHANGED
|
@@ -545,14 +545,36 @@ declare const Roles: Record<string, string>;
|
|
|
545
545
|
* stripped to support either naming convention in table interfaces.
|
|
546
546
|
*/
|
|
547
547
|
type SystemFields = 'id' | 'created_at' | 'createdAt' | 'updated_at' | 'updatedAt' | 'last_updated_by' | 'lastUpdatedBy';
|
|
548
|
+
/**
|
|
549
|
+
* System columns added to every row on read. This is the concrete shape
|
|
550
|
+
* of the platform-managed columns — used to augment user-defined interfaces
|
|
551
|
+
* so reads include id, timestamps, etc. regardless of whether the user
|
|
552
|
+
* declared them.
|
|
553
|
+
*/
|
|
554
|
+
interface SystemColumns {
|
|
555
|
+
id: string;
|
|
556
|
+
created_at: number;
|
|
557
|
+
updated_at: number;
|
|
558
|
+
last_updated_by: string;
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* A row as returned from the database. Merges the user-defined type T
|
|
562
|
+
* with system columns. If T already includes system columns (e.g., the
|
|
563
|
+
* user declared `id: string`), the intersection is harmless — same type.
|
|
564
|
+
*
|
|
565
|
+
* This ensures TypeScript knows about `id`, `created_at`, etc. on read
|
|
566
|
+
* results even if the user's interface only declares their own fields.
|
|
567
|
+
*/
|
|
568
|
+
type Row<T> = T & SystemColumns;
|
|
548
569
|
/**
|
|
549
570
|
* Input type for `Table.push()`. Excludes system-managed fields.
|
|
550
571
|
* Optional fields in T remain optional.
|
|
551
572
|
*
|
|
552
573
|
* @example
|
|
553
574
|
* ```ts
|
|
554
|
-
* // If Order has {
|
|
575
|
+
* // If Order has { item: string; amount: number }
|
|
555
576
|
* // then PushInput<Order> is { item: string; amount: number }
|
|
577
|
+
* // (system fields like id, created_at are not required)
|
|
556
578
|
* ```
|
|
557
579
|
*/
|
|
558
580
|
type PushInput<T> = Omit<T, SystemFields>;
|
|
@@ -750,17 +772,17 @@ declare class Table<T> {
|
|
|
750
772
|
/** @internal */
|
|
751
773
|
private readonly _config;
|
|
752
774
|
constructor(config: TableConfig);
|
|
753
|
-
get(id: string): Promise<T | null>;
|
|
754
|
-
findOne(predicate: Predicate<T
|
|
755
|
-
count(predicate?: Predicate<T
|
|
756
|
-
some(predicate: Predicate<T
|
|
757
|
-
every(predicate: Predicate<T
|
|
775
|
+
get(id: string): Promise<Row<T> | null>;
|
|
776
|
+
findOne(predicate: Predicate<Row<T>>): Promise<Row<T> | null>;
|
|
777
|
+
count(predicate?: Predicate<Row<T>>): Promise<number>;
|
|
778
|
+
some(predicate: Predicate<Row<T>>): Promise<boolean>;
|
|
779
|
+
every(predicate: Predicate<Row<T>>): Promise<boolean>;
|
|
758
780
|
isEmpty(): Promise<boolean>;
|
|
759
|
-
min(accessor: Accessor<T
|
|
760
|
-
max(accessor: Accessor<T
|
|
761
|
-
groupBy<K extends string | number>(accessor: Accessor<T
|
|
762
|
-
filter(predicate: Predicate<T
|
|
763
|
-
sortBy(accessor: Accessor<T
|
|
781
|
+
min(accessor: Accessor<Row<T>, number>): Promise<Row<T> | null>;
|
|
782
|
+
max(accessor: Accessor<Row<T>, number>): Promise<Row<T> | null>;
|
|
783
|
+
groupBy<K extends string | number>(accessor: Accessor<Row<T>, K>): Promise<Map<K, Row<T>[]>>;
|
|
784
|
+
filter(predicate: Predicate<Row<T>>): Query<Row<T>>;
|
|
785
|
+
sortBy(accessor: Accessor<Row<T>>): Query<Row<T>>;
|
|
764
786
|
/**
|
|
765
787
|
* Insert one or more rows. Returns the created row(s) with system fields
|
|
766
788
|
* populated (id, createdAt, updatedAt, lastUpdatedBy).
|
|
@@ -768,18 +790,18 @@ declare class Table<T> {
|
|
|
768
790
|
* Uses `INSERT ... RETURNING *` so the created row comes back in a
|
|
769
791
|
* single round trip — no separate SELECT needed.
|
|
770
792
|
*/
|
|
771
|
-
push(data: PushInput<T>): Promise<T
|
|
772
|
-
push(data: PushInput<T>[]): Promise<T[]>;
|
|
793
|
+
push(data: PushInput<T>): Promise<Row<T>>;
|
|
794
|
+
push(data: PushInput<T>[]): Promise<Row<T>[]>;
|
|
773
795
|
/**
|
|
774
796
|
* Update a row by ID. Only the provided fields are changed.
|
|
775
797
|
* Returns the updated row via `UPDATE ... RETURNING *`.
|
|
776
798
|
*/
|
|
777
|
-
update(id: string, data: UpdateInput<T>): Promise<T
|
|
799
|
+
update(id: string, data: UpdateInput<T>): Promise<Row<T>>;
|
|
778
800
|
remove(id: string): Promise<void>;
|
|
779
801
|
/**
|
|
780
802
|
* Remove all rows matching a predicate. Returns the count removed.
|
|
781
803
|
*/
|
|
782
|
-
removeAll(predicate: Predicate<T
|
|
804
|
+
removeAll(predicate: Predicate<Row<T>>): Promise<number>;
|
|
783
805
|
clear(): Promise<void>;
|
|
784
806
|
}
|
|
785
807
|
|