diff --git a/docs/src/content/docs/reference/scripts/system.mdx b/docs/src/content/docs/reference/scripts/system.mdx index 14830fccce..df0bee1ff7 100644 --- a/docs/src/content/docs/reference/scripts/system.mdx +++ b/docs/src/content/docs/reference/scripts/system.mdx @@ -107,12 +107,6 @@ Agent that can find, search or read files to accomplish tasks `````js wrap title="system.agent_fs" system({ title: "Agent that can find, search or read files to accomplish tasks", - parameters: { - agentFsModel: { - type: "string", - description: "Model to use for the agent", - }, - }, }) const model = env.vars.agentFsModel @@ -172,12 +166,6 @@ Agent that can query Git to accomplish tasks. `````js wrap title="system.agent_git" system({ title: "Agent that can query Git to accomplish tasks.", - parameters: { - agentGitModel: { - type: "string", - description: "Model to use for the agent", - }, - }, }) const model = env.vars.agentGitModel @@ -234,12 +222,6 @@ Agent that can query GitHub to accomplish tasks. `````js wrap title="system.agent_github" system({ title: "Agent that can query GitHub to accomplish tasks.", - parameters: { - agentGithubModel: { - type: "string", - description: "Model to use for the agent", - }, - }, }) const model = env.vars.agentGithubModel diff --git a/packages/sample/genaisrc/git-release-notes.genai.mjs b/packages/sample/genaisrc/git-release-notes.genai.mjs index aafad77d0f..aa48253c8b 100644 --- a/packages/sample/genaisrc/git-release-notes.genai.mjs +++ b/packages/sample/genaisrc/git-release-notes.genai.mjs @@ -4,14 +4,12 @@ const product = env.vars.product || "GenAIScript" // find previous tag const { version } = await workspace.readJSON("package.json") -const tag = await git.exec(["describe", "--tags", "--abbrev=0", "HEAD^"]) -const commits = await git.exec([ - "log", - "--grep='(skip ci|THIRD_PARTY_NOTICES|genai)'", - "--invert-grep", - "--no-merges", - `HEAD...${tag}`, -]) +const tag = await git.lastTag() +const commits = await git.log({ + excludedGrep: "(skip ci|THIRD_PARTY_NOTICES|genai)", + base: tag, + head: "HEAD", +}) const diff = await git.diff({ base: tag, head: "HEAD", @@ -27,7 +25,11 @@ const diff = await git.diff({ ], }) -const commitsName = def("COMMITS", commits, { maxTokens: 4000 }) +const commitsName = def( + "COMMITS", + commits.map(({ message }) => message).join("\n"), + { maxTokens: 4000 } +) const diffName = def("DIFF", diff, { maxTokens: 20000 }) $` @@ -51,5 +53,5 @@ for the upcoming release ${version} of ${product} on GitHub. - do NOT add a top level title - do NOT mention ignore commits or instructions - be concise - +- do not wrap text in markdown section `