@arrislink/axon 1.0.4 → 1.0.6

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.
Files changed (2) hide show
  1. package/dist/index.js +26 -3
  2. package/package.json +5 -1
package/dist/index.js CHANGED
@@ -16274,6 +16274,7 @@ class SpecCollector {
16274
16274
  const projectType = await select("\uD83D\uDCE6 \u9879\u76EE\u7C7B\u578B\uFF1F", [
16275
16275
  { name: "Web API", value: "api", description: "RESTful \u6216 GraphQL \u540E\u7AEF\u670D\u52A1" },
16276
16276
  { name: "Web \u5E94\u7528", value: "webapp", description: "\u524D\u7AEF + \u540E\u7AEF\u5B8C\u6574\u5E94\u7528" },
16277
+ { name: "Axon Skill", value: "skill", description: "\u53EF\u590D\u7528\u7684 AI \u6280\u80FD/\u63D2\u4EF6" },
16277
16278
  { name: "CLI \u5DE5\u5177", value: "cli", description: "\u547D\u4EE4\u884C\u5DE5\u5177" },
16278
16279
  { name: "\u5E93/SDK", value: "library", description: "\u53EF\u590D\u7528\u7684\u4EE3\u7801\u5E93" },
16279
16280
  { name: "\u5176\u4ED6", value: "other", description: "\u5176\u4ED6\u7C7B\u578B\u9879\u76EE" }
@@ -16339,6 +16340,14 @@ class SpecCollector {
16339
16340
  { name: "\u989C\u8272\u8F93\u51FA", value: "colors" },
16340
16341
  ...common
16341
16342
  ];
16343
+ case "skill":
16344
+ return [
16345
+ { name: "\u529F\u80FD\u63CF\u8FF0 (Skill Spec)", value: "skill-spec" },
16346
+ { name: "\u4F7F\u7528\u793A\u4F8B (Examples)", value: "skill-examples" },
16347
+ { name: "\u6838\u5FC3\u903B\u8F91 (Beads)", value: "skill-logic" },
16348
+ { name: "\u4F9D\u8D56\u7BA1\u7406", value: "skill-deps" },
16349
+ ...common
16350
+ ];
16342
16351
  default:
16343
16352
  return common;
16344
16353
  }
@@ -16502,10 +16511,19 @@ class OpenCodeLLMClient {
16502
16511
  proc.kill();
16503
16512
  }
16504
16513
  const exitCode = await proc.exited;
16514
+ const stderr = await new Response(proc.stderr).text();
16505
16515
  if (exitCode !== 0) {
16506
- const stderr = await new Response(proc.stderr).text();
16507
16516
  throw new Error(`OpenCode CLI Error: ${stderr || "Unknown error"}`);
16508
16517
  }
16518
+ if (fullResponse.trim() === "" && stderr.trim().length > 0) {
16519
+ if (stderr.includes("Error") || stderr.includes("NotFound") || stderr.includes("|")) {
16520
+ throw new Error(`OpenCode CLI Silent Crash: ${stderr.split(`
16521
+ `)[0]}`);
16522
+ }
16523
+ }
16524
+ if (fullResponse.trim() === "") {
16525
+ throw new Error("OpenCode CLI returned an empty response");
16526
+ }
16509
16527
  return {
16510
16528
  content: fullResponse,
16511
16529
  model: metadata.model,
@@ -16797,7 +16815,7 @@ class AxonLLMClient {
16797
16815
  throw new Error(`\u672A\u652F\u6301\u7684 LLM \u6A21\u5F0F: ${this.mode}`);
16798
16816
  } catch (error) {
16799
16817
  if (this.mode !== "fallback") {
16800
- console.warn(`\uD83E\uDDE0 Axon: ${this.mode} \u6A21\u5F0F\u8C03\u7528\u5931\u8D25\uFF0C\u5C1D\u8BD5\u56DE\u9000...`);
16818
+ console.warn(`\uD83E\uDDE0 Axon: ${this.mode} \u6A21\u5F0F\u8C03\u7528\u5931\u8D25\u6216\u54CD\u5E94\u4E3A\u7A7A\uFF0C\u5C1D\u8BD5\u56DE\u9000...`);
16801
16819
  if (process.env["DEBUG"])
16802
16820
  console.error(error);
16803
16821
  this.mode = "fallback";
@@ -16924,6 +16942,7 @@ class SpecGenerator {
16924
16942
  const projectTypeNames = {
16925
16943
  api: "Web API",
16926
16944
  webapp: "Web \u5E94\u7528",
16945
+ skill: "Axon Skill",
16927
16946
  cli: "CLI \u5DE5\u5177",
16928
16947
  library: "\u5E93/SDK",
16929
16948
  other: "\u5176\u4ED6"
@@ -17014,7 +17033,11 @@ ${collected.additionalRequirements}` : ""}
17014
17033
  "config-file": "\u914D\u7F6E\u6587\u4EF6\u652F\u6301",
17015
17034
  help: "\u5E2E\u52A9\u6587\u6863",
17016
17035
  progress: "\u8FDB\u5EA6\u663E\u793A",
17017
- colors: "\u989C\u8272\u8F93\u51FA"
17036
+ colors: "\u989C\u8272\u8F93\u51FA",
17037
+ "skill-spec": "Skill \u529F\u80FD\u5B9A\u4E49",
17038
+ "skill-examples": "Skill \u4F7F\u7528\u793A\u4F8B",
17039
+ "skill-logic": "Skill \u6838\u5FC3\u903B\u8F91 (Beads)",
17040
+ "skill-deps": "Skill \u4F9D\u8D56\u7BA1\u7406"
17018
17041
  };
17019
17042
  return names[feature] || feature;
17020
17043
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arrislink/axon",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "AI-Powered Development Operating System with unified LLM provider support",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -36,8 +36,12 @@
36
36
  "development",
37
37
  "automation",
38
38
  "openspec",
39
+ "opencode",
40
+ "oh-my-opencode",
41
+ "omo",
39
42
  "beads",
40
43
  "skills",
44
+ "findskills",
41
45
  "llm",
42
46
  "anthropic",
43
47
  "bun"