@power-plant/ai-sdk 0.0.11 → 0.0.13
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 +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +9 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +9 -1
- package/dist/index.mjs +1 -1
- package/package.json +7 -6
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ The Power Plant monorepo is a collection of packages that are designed to work t
|
|
|
33
33
|
|
|
34
34
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
35
35
|
|
|
36
|
-
[](https://docs.stormsoftware.com/projects/power-plant) [](http://commitizen.github.io/cz-cli/)  
|
|
37
37
|
|
|
38
38
|
<!-- prettier-ignore-start -->
|
|
39
39
|
<!-- markdownlint-disable -->
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("@power-plant/
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("@power-plant/core"),t=require("ai"),n=require("zod/mini"),r;async function i(){return r??=(0,e.createExecute)(),r}const a=n.z.object({generator:n.z.string(),spec:n.z.any(),options:n.z.optional(n.z.record(n.z.string(),n.z.any()))}),o=(0,t.tool)({description:`Generate text (including source code, documentation, and more) with Power Plant generators.`,inputSchema:a,execute:async({generator:e,spec:t,options:n})=>(await i())(e,{...n,spec:t})});exports.generate=o;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
+
import { Tool } from "@ai-sdk/provider-utils";
|
|
2
|
+
import { z } from "zod/mini";
|
|
1
3
|
//#region src/index.d.ts
|
|
2
|
-
declare const
|
|
4
|
+
declare const inputSchema: z.ZodMiniObject<{
|
|
5
|
+
generator: z.ZodMiniString<string>;
|
|
6
|
+
spec: z.ZodMiniAny;
|
|
7
|
+
options: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniAny>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
type GenerateInput = z.infer<typeof inputSchema>;
|
|
10
|
+
declare const generate: Tool<GenerateInput, unknown>;
|
|
3
11
|
//#endregion
|
|
4
12
|
export { generate };
|
|
5
13
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;cAgCM,aAAW,EAAA;;;;GAIf,EAAA,KAAA;KAEG,gBAAgB,EAAE,aAAa;cAEvB,UASP,KAAK"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
+
import { z } from "zod/mini";
|
|
2
|
+
import { Tool } from "@ai-sdk/provider-utils";
|
|
1
3
|
//#region src/index.d.ts
|
|
2
|
-
declare const
|
|
4
|
+
declare const inputSchema: z.ZodMiniObject<{
|
|
5
|
+
generator: z.ZodMiniString<string>;
|
|
6
|
+
spec: z.ZodMiniAny;
|
|
7
|
+
options: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniAny>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
type GenerateInput = z.infer<typeof inputSchema>;
|
|
10
|
+
declare const generate: Tool<GenerateInput, unknown>;
|
|
3
11
|
//#endregion
|
|
4
12
|
export { generate };
|
|
5
13
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{createExecute as e}from"@power-plant/core";import{tool as t}from"ai";import{z as n}from"zod/mini";let r;async function i(){return r??=e(),r}const a=t({description:`Generate text (including source code, documentation, and more) with Power Plant generators.`,inputSchema:n.object({generator:n.string(),spec:n.any(),options:n.optional(n.record(n.string(),n.any()))}),execute:async({generator:e,spec:t,options:n})=>(await i())(e,{...n,spec:t})});export{a as generate};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@power-plant/ai-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "☢️ An AI SDK tool that allows AI models to leverage Power Plant generators to enhance their capabilities",
|
|
6
6
|
"keywords": ["ai", "ai-sdk", "power-plant", "storm-software"],
|
|
@@ -62,19 +62,20 @@
|
|
|
62
62
|
"typings": "dist/index.d.mts",
|
|
63
63
|
"files": ["dist"],
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@
|
|
66
|
-
"@
|
|
65
|
+
"@ai-sdk/provider": "^4.0.3",
|
|
66
|
+
"@ai-sdk/provider-utils": "^5.0.11",
|
|
67
|
+
"@power-plant/core": "^0.0.17",
|
|
67
68
|
"@stryke/string-format": "^0.17.37",
|
|
68
69
|
"@stryke/type-checks": "^0.6.28",
|
|
69
70
|
"@stryke/types": "^0.12.23",
|
|
70
|
-
"ai": "^7.0.
|
|
71
|
+
"ai": "^7.0.31",
|
|
71
72
|
"zod": "^4.4.3"
|
|
72
73
|
},
|
|
73
74
|
"devDependencies": {
|
|
74
|
-
"@powerlines/plugin-tsdown": "^0.1.
|
|
75
|
+
"@powerlines/plugin-tsdown": "^0.1.545",
|
|
75
76
|
"@types/node": "^25.9.5",
|
|
76
77
|
"typescript": "^6.0.3"
|
|
77
78
|
},
|
|
78
79
|
"publishConfig": { "access": "public" },
|
|
79
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "7346b39899095e30744680cd9994a6c229d4f16a"
|
|
80
81
|
}
|