@ooneex/cli 1.35.0 → 1.35.1
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/index.js +13 -24
- package/dist/index.js.map +4 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -14717,16 +14717,11 @@ class CommandRunCommand {
|
|
|
14717
14717
|
});
|
|
14718
14718
|
const proc = Bun.spawn(["bun", "run", commandRunPath, commandName, ...extraArgs], {
|
|
14719
14719
|
cwd: process.cwd(),
|
|
14720
|
-
stdout: "
|
|
14721
|
-
stderr: "
|
|
14720
|
+
stdout: "inherit",
|
|
14721
|
+
stderr: "inherit"
|
|
14722
14722
|
});
|
|
14723
|
-
const [stdout, stderr] = await Promise.all([new Response(proc.stdout).text(), new Response(proc.stderr).text()]);
|
|
14724
14723
|
const exitCode = await proc.exited;
|
|
14725
14724
|
if (exitCode === 0) {
|
|
14726
|
-
if (stdout)
|
|
14727
|
-
process.stdout.write(stdout);
|
|
14728
|
-
if (stderr)
|
|
14729
|
-
process.stderr.write(stderr);
|
|
14730
14725
|
logger.success(`Command "${commandName}" completed for ${name}`, undefined, {
|
|
14731
14726
|
showTimestamp: false,
|
|
14732
14727
|
showArrow: false,
|
|
@@ -15331,10 +15326,10 @@ var issueSkeletonToYaml = (id, title, description) => {
|
|
|
15331
15326
|
import { join as join12 } from "path";
|
|
15332
15327
|
import { decorator as decorator12 } from "@ooneex/command";
|
|
15333
15328
|
|
|
15334
|
-
// ../../node_modules/.bun/@linear+sdk@84.0.0+
|
|
15329
|
+
// ../../node_modules/.bun/@linear+sdk@84.0.0+1394496806effeb6/node_modules/@linear/sdk/dist/chunk-DPPnyiuk.mjs
|
|
15335
15330
|
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
15336
15331
|
|
|
15337
|
-
// ../../node_modules/.bun/@linear+sdk@84.0.0+
|
|
15332
|
+
// ../../node_modules/.bun/@linear+sdk@84.0.0+1394496806effeb6/node_modules/@linear/sdk/dist/index.mjs
|
|
15338
15333
|
var LinearErrorType = /* @__PURE__ */ function(LinearErrorType$1) {
|
|
15339
15334
|
LinearErrorType$1["FeatureNotAccessible"] = "FeatureNotAccessible";
|
|
15340
15335
|
LinearErrorType$1["InvalidInput"] = "InvalidInput";
|
|
@@ -95129,8 +95124,8 @@ describe("{{NAME}}Ai", () => {
|
|
|
95129
95124
|
expect({{NAME}}Ai.name.endsWith("Ai")).toBe(true);
|
|
95130
95125
|
});
|
|
95131
95126
|
|
|
95132
|
-
test("should
|
|
95133
|
-
expect({{NAME}}Ai.length).toBe(
|
|
95127
|
+
test("should have no constructor dependencies", () => {
|
|
95128
|
+
expect({{NAME}}Ai.length).toBe(0);
|
|
95134
95129
|
});
|
|
95135
95130
|
|
|
95136
95131
|
test("should have 'run' method", () => {
|
|
@@ -95148,22 +95143,16 @@ describe("{{NAME}}Ai", () => {
|
|
|
95148
95143
|
`;
|
|
95149
95144
|
|
|
95150
95145
|
// src/templates/ai.txt
|
|
95151
|
-
var ai_default = `import { decorator,
|
|
95152
|
-
import { inject } from "@ooneex/container";
|
|
95146
|
+
var ai_default = `import { decorator, type IAiChat } from "@ooneex/ai";
|
|
95153
95147
|
|
|
95154
95148
|
@decorator.ai()
|
|
95155
|
-
export class {{NAME}}Ai {
|
|
95156
|
-
|
|
95157
|
-
|
|
95158
|
-
public async run<T>(content: string, config?: OpenRouterConfigType): Promise<T> {
|
|
95159
|
-
return this.ai.run<T>(content, config);
|
|
95149
|
+
export class {{NAME}}Ai implements IAiChat {
|
|
95150
|
+
public async run<T>(content?: string): Promise<T> {
|
|
95151
|
+
return {} as T;
|
|
95160
95152
|
}
|
|
95161
95153
|
|
|
95162
|
-
public async *runStream(
|
|
95163
|
-
|
|
95164
|
-
config?: OpenRouterConfigType,
|
|
95165
|
-
): AsyncGenerator<string, void, unknown> {
|
|
95166
|
-
yield* this.ai.runStream(content, config);
|
|
95154
|
+
public async *runStream(content?: string): AsyncGenerator<string, void, unknown> {
|
|
95155
|
+
yield "";
|
|
95167
95156
|
}
|
|
95168
95157
|
}
|
|
95169
95158
|
`;
|
|
@@ -109772,4 +109761,4 @@ SeedRunCommand = __legacyDecorateClassTS([
|
|
|
109772
109761
|
// src/index.ts
|
|
109773
109762
|
await run();
|
|
109774
109763
|
|
|
109775
|
-
//# debugId=
|
|
109764
|
+
//# debugId=361C007C2B31AB6A64756E2164756E21
|