@wellgrow/cli 0.1.1 → 0.1.2
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
CHANGED
|
@@ -5227,7 +5227,7 @@ function App({ agentName, modelOverride, config, mode, verbose, initialMessage }
|
|
|
5227
5227
|
"\u79D2\u5F8C)"
|
|
5228
5228
|
] }),
|
|
5229
5229
|
status === "submitted" && /* @__PURE__ */ jsx7(ThinkingIndicator, {}),
|
|
5230
|
-
status === "streaming" && streamingMessage && /* @__PURE__ */ jsx7(MessageItem, { message: streamingMessage }),
|
|
5230
|
+
status === "streaming" && streamingMessage && !activeAskUser && !activeApproval && /* @__PURE__ */ jsx7(MessageItem, { message: streamingMessage }),
|
|
5231
5231
|
/* @__PURE__ */ jsx7(TodoList, { todos }),
|
|
5232
5232
|
activeApproval && /* @__PURE__ */ jsx7(
|
|
5233
5233
|
ApprovalPrompt,
|
|
@@ -5679,31 +5679,8 @@ var API_KEY_OPTIONS = [
|
|
|
5679
5679
|
description: "Anthropic API \u30AD\u30FC\u3092\u76F4\u63A5\u5165\u529B"
|
|
5680
5680
|
}
|
|
5681
5681
|
];
|
|
5682
|
-
function WelcomeHeader() {
|
|
5683
|
-
return /* @__PURE__ */ jsxs9(
|
|
5684
|
-
Box8,
|
|
5685
|
-
{
|
|
5686
|
-
borderStyle: "round",
|
|
5687
|
-
borderColor: colors.signature,
|
|
5688
|
-
paddingX: 1,
|
|
5689
|
-
marginBottom: 1,
|
|
5690
|
-
children: [
|
|
5691
|
-
/* @__PURE__ */ jsxs9(Text9, { bold: true, color: colors.signature, children: [
|
|
5692
|
-
" ",
|
|
5693
|
-
"WellGrow",
|
|
5694
|
-
" "
|
|
5695
|
-
] }),
|
|
5696
|
-
/* @__PURE__ */ jsx8(Text9, { color: colors.fog, children: "|" }),
|
|
5697
|
-
/* @__PURE__ */ jsx8(Text9, { color: colors.energy, children: " \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7 " })
|
|
5698
|
-
]
|
|
5699
|
-
}
|
|
5700
|
-
);
|
|
5701
|
-
}
|
|
5702
5682
|
function BotMessage({ children }) {
|
|
5703
|
-
return /* @__PURE__ */
|
|
5704
|
-
/* @__PURE__ */ jsx8(Text9, { bold: true, color: colors.signature, children: "WellGrow" }),
|
|
5705
|
-
/* @__PURE__ */ jsx8(Box8, { marginLeft: 2, flexDirection: "column", children })
|
|
5706
|
-
] });
|
|
5683
|
+
return /* @__PURE__ */ jsx8(Box8, { flexDirection: "column", marginBottom: 1, children });
|
|
5707
5684
|
}
|
|
5708
5685
|
function UserMessage({ text }) {
|
|
5709
5686
|
return /* @__PURE__ */ jsx8(
|
|
@@ -5827,13 +5804,12 @@ function OnboardingWizard({ onComplete }) {
|
|
|
5827
5804
|
"done"
|
|
5828
5805
|
];
|
|
5829
5806
|
return /* @__PURE__ */ jsxs9(Box8, { flexDirection: "column", children: [
|
|
5830
|
-
/* @__PURE__ */ jsx8(WelcomeHeader, {}),
|
|
5831
5807
|
/* @__PURE__ */ jsxs9(BotMessage, { children: [
|
|
5832
|
-
/* @__PURE__ */ jsx8(Text9, { children: "\
|
|
5833
|
-
/* @__PURE__ */ jsx8(Text9, { children: "\u3042\u306A\u305F\u3060\u3051\u306EAI\u30A2\u30B7\u30B9\u30BF\u30F3\u30C8\u3092\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u3057\
|
|
5808
|
+
/* @__PURE__ */ jsx8(Text9, { children: "\u3084\u3063\u307B\u3049\u30FC\uFF01\u2728 \u3088\u3046\u3053\u305D\uFF01" }),
|
|
5809
|
+
/* @__PURE__ */ jsx8(Text9, { children: "\u3042\u306A\u305F\u3060\u3051\u306EAI\u30A2\u30B7\u30B9\u30BF\u30F3\u30C8\u3092\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u3057\u3088\u3046 \u{1F60A}" })
|
|
5834
5810
|
] }),
|
|
5835
5811
|
step === "welcome" && /* @__PURE__ */ jsx8(Text9, { color: colors.fog, children: "..." }),
|
|
5836
|
-
step !== "welcome" && /* @__PURE__ */ jsx8(BotMessage, { children: /* @__PURE__ */ jsx8(Text9, { children: "\u307E\u305A\u3001\u304A\u540D\u524D\u3092\u6559\u3048\u3066\u304F\
|
|
5812
|
+
step !== "welcome" && /* @__PURE__ */ jsx8(BotMessage, { children: /* @__PURE__ */ jsx8(Text9, { children: "\u307E\u305A\u3001\u304A\u540D\u524D\u3092\u6559\u3048\u3066\u304F\u308C\u308B\u304B\u306A\uFF1F \u{1F308}" }) }),
|
|
5837
5813
|
step === "name" && /* @__PURE__ */ jsxs9(Box8, { children: [
|
|
5838
5814
|
/* @__PURE__ */ jsx8(Text9, { color: colors.joy, children: "\u276F " }),
|
|
5839
5815
|
/* @__PURE__ */ jsx8(
|
|
@@ -5849,12 +5825,12 @@ function OnboardingWizard({ onComplete }) {
|
|
|
5849
5825
|
name && /* @__PURE__ */ jsx8(UserMessage, { text: name }),
|
|
5850
5826
|
pastNameSteps.includes(step) && /* @__PURE__ */ jsx8(BotMessage, { children: /* @__PURE__ */ jsxs9(Text9, { children: [
|
|
5851
5827
|
name,
|
|
5852
|
-
"\u3055\u3093\
|
|
5828
|
+
"\u3055\u3093\u3060\u306D\uFF01\u3088\u308D\u3057\u304F\u306D\u301C\uFF01\u{1F389}"
|
|
5853
5829
|
] }) }),
|
|
5854
5830
|
step === "apiKeyMethod" && /* @__PURE__ */ jsxs9(Fragment2, { children: [
|
|
5855
5831
|
/* @__PURE__ */ jsxs9(BotMessage, { children: [
|
|
5856
|
-
/* @__PURE__ */ jsx8(Text9, { children: "\u6B21\u306B\u3001AI\u3068\u4F1A\u8A71\u3059\u308B\u305F\u3081\u306EAPI\u30AD\u30FC\u3092\u8A2D\u5B9A\
|
|
5857
|
-
/* @__PURE__ */ jsx8(Text9, { children: "\u53D6\u5F97\u65B9\u6CD5\u3092\u9078\u3093\u3067\
|
|
5832
|
+
/* @__PURE__ */ jsx8(Text9, { children: "\u6B21\u306B\u3001AI\u3068\u4F1A\u8A71\u3059\u308B\u305F\u3081\u306EAPI\u30AD\u30FC\u3092\u8A2D\u5B9A\u3059\u308B\u3088\uFF01\u{1F4AA}" }),
|
|
5833
|
+
/* @__PURE__ */ jsx8(Text9, { children: "\u53D6\u5F97\u65B9\u6CD5\u3092\u9078\u3093\u3067\u306D:" })
|
|
5858
5834
|
] }),
|
|
5859
5835
|
/* @__PURE__ */ jsx8(MethodSelector, { onSelect: handleMethodSelect })
|
|
5860
5836
|
] }),
|
|
@@ -5865,15 +5841,15 @@ function OnboardingWizard({ onComplete }) {
|
|
|
5865
5841
|
}
|
|
5866
5842
|
),
|
|
5867
5843
|
step === "setupTokenGuide" && /* @__PURE__ */ jsxs9(BotMessage, { children: [
|
|
5868
|
-
/* @__PURE__ */ jsx8(Text9, { children: "\u5225\u306E\u30BF\u30FC\u30DF\u30CA\u30EB\u3067\
|
|
5844
|
+
/* @__PURE__ */ jsx8(Text9, { children: "\u5225\u306E\u30BF\u30FC\u30DF\u30CA\u30EB\u3067\u3001\u3053\u306E\u30B3\u30DE\u30F3\u30C9\u3092\u5B9F\u884C\u3057\u3066\u306D:" }),
|
|
5869
5845
|
/* @__PURE__ */ jsx8(Text9, {}),
|
|
5870
5846
|
/* @__PURE__ */ jsxs9(Text9, { color: colors.insight, children: [
|
|
5871
5847
|
" $ ",
|
|
5872
5848
|
/* @__PURE__ */ jsx8(Text9, { bold: true, children: "claude setup-token" })
|
|
5873
5849
|
] }),
|
|
5874
5850
|
/* @__PURE__ */ jsx8(Text9, {}),
|
|
5875
|
-
/* @__PURE__ */ jsx8(Text9, { children: "\
|
|
5876
|
-
/* @__PURE__ */ jsx8(Text9, { color: colors.fog, children: "\uFF08\u203B Authentication Code \
|
|
5851
|
+
/* @__PURE__ */ jsx8(Text9, { children: "\u51FA\u3066\u304D\u305F sk-ant- \u3067\u59CB\u307E\u308BAPI\u30AD\u30FC\u3092\u8CBC\u308A\u4ED8\u3051\u3066\u306D\uFF01\u2728" }),
|
|
5852
|
+
/* @__PURE__ */ jsx8(Text9, { color: colors.fog, children: "\uFF08\u203B Authentication Code \u3058\u3083\u306A\u304F\u3066\u3001\u305D\u306E\u5F8C\u306B\u8868\u793A\u3055\u308C\u308BAPI\u30AD\u30FC\u3060\u3088\uFF09" })
|
|
5877
5853
|
] }),
|
|
5878
5854
|
(step === "setupTokenGuide" || step === "setupTokenInput") && /* @__PURE__ */ jsxs9(Box8, { children: [
|
|
5879
5855
|
/* @__PURE__ */ jsx8(Text9, { color: colors.joy, children: "\u276F " }),
|
|
@@ -5881,12 +5857,12 @@ function OnboardingWizard({ onComplete }) {
|
|
|
5881
5857
|
] }),
|
|
5882
5858
|
step === "apiKeyInput" && /* @__PURE__ */ jsxs9(Fragment2, { children: [
|
|
5883
5859
|
/* @__PURE__ */ jsxs9(BotMessage, { children: [
|
|
5884
|
-
/* @__PURE__ */ jsx8(Text9, { children: "Anthropic \u306E API \u30AD\u30FC\u3092\u5165\u529B\u3057\u3066\
|
|
5860
|
+
/* @__PURE__ */ jsx8(Text9, { children: "Anthropic \u306E API \u30AD\u30FC\u3092\u5165\u529B\u3057\u3066\u306D\uFF01" }),
|
|
5885
5861
|
/* @__PURE__ */ jsx8(Text9, {}),
|
|
5886
5862
|
/* @__PURE__ */ jsxs9(Text9, { color: colors.insight, children: [
|
|
5887
5863
|
"\u{1F4A1} ",
|
|
5888
5864
|
/* @__PURE__ */ jsx8(Text9, { color: colors.flow, underline: true, children: "https://console.anthropic.com/settings/keys" }),
|
|
5889
|
-
" \u304B\u3089\u53D6\u5F97\u3067\u304D\
|
|
5865
|
+
" \u304B\u3089\u53D6\u5F97\u3067\u304D\u308B\u3088"
|
|
5890
5866
|
] })
|
|
5891
5867
|
] }),
|
|
5892
5868
|
/* @__PURE__ */ jsxs9(Box8, { children: [
|
|
@@ -5894,18 +5870,18 @@ function OnboardingWizard({ onComplete }) {
|
|
|
5894
5870
|
/* @__PURE__ */ jsx8(MaskedInput, { onSubmit: handleApiKeySubmit, placeholder: "sk-ant-..." })
|
|
5895
5871
|
] })
|
|
5896
5872
|
] }),
|
|
5897
|
-
step === "apiKeySubmitted" && /* @__PURE__ */ jsx8(BotMessage, { children: /* @__PURE__ */ jsx8(Text9, { children: "API\u30AD\u30FC\u3092\u8A2D\u5B9A\u3057\u3066\
|
|
5873
|
+
step === "apiKeySubmitted" && /* @__PURE__ */ jsx8(BotMessage, { children: /* @__PURE__ */ jsx8(Text9, { children: "API\u30AD\u30FC\u3092\u8A2D\u5B9A\u3057\u3066\u308B\u3088... \u23F3" }) }),
|
|
5898
5874
|
step === "apiKeyCheck" && /* @__PURE__ */ jsx8(BotMessage, { children: /* @__PURE__ */ jsxs9(Text9, { color: colors.growth, children: [
|
|
5899
5875
|
"\u2713 ",
|
|
5900
|
-
/* @__PURE__ */ jsx8(Text9, { children: "API\u30AD\u30FC\u306F\
|
|
5876
|
+
/* @__PURE__ */ jsx8(Text9, { children: "API\u30AD\u30FC\u306F\u3082\u3046\u8A2D\u5B9A\u3055\u308C\u3066\u308B\u306D\uFF01" })
|
|
5901
5877
|
] }) }),
|
|
5902
5878
|
(step === "saving" || step === "done") && /* @__PURE__ */ jsxs9(BotMessage, { children: [
|
|
5903
5879
|
/* @__PURE__ */ jsxs9(Text9, { color: colors.growth, children: [
|
|
5904
5880
|
"\u2713 ",
|
|
5905
|
-
/* @__PURE__ */ jsx8(Text9, { children: "\u8A2D\u5B9A\u5B8C\u4E86\uFF01" })
|
|
5881
|
+
/* @__PURE__ */ jsx8(Text9, { children: "\u8A2D\u5B9A\u5B8C\u4E86\uFF01\u308F\u3049\u304A\u3049\u3049\uFF01\u{1F38A}" })
|
|
5906
5882
|
] }),
|
|
5907
5883
|
/* @__PURE__ */ jsx8(Text9, {}),
|
|
5908
|
-
/* @__PURE__ */ jsx8(Text9, { children: "\u3053\u308C\u304B\u3089AI\u30A2\u30B7\u30B9\u30BF\u30F3\u30C8\u304C\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u306E\u7D9A\u304D\u3092\u304A\u624B\u4F1D\u3044\
|
|
5884
|
+
/* @__PURE__ */ jsx8(Text9, { children: "\u3053\u308C\u304B\u3089AI\u30A2\u30B7\u30B9\u30BF\u30F3\u30C8\u304C\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u306E\u7D9A\u304D\u3092\u304A\u624B\u4F1D\u3044\u3059\u308B\u306D\uFF01\u2728" })
|
|
5909
5885
|
] }),
|
|
5910
5886
|
step === "done" && /* @__PURE__ */ jsx8(Text9, { color: colors.fog, children: "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500" })
|
|
5911
5887
|
] });
|
|
@@ -5993,7 +5969,7 @@ Error: ${formatErrorMessage(error)}
|
|
|
5993
5969
|
}
|
|
5994
5970
|
}
|
|
5995
5971
|
var program = new Command();
|
|
5996
|
-
program.name("wellgrow").description("WellGrow CLI \u2014 AI chat assistant").version("0.1.
|
|
5972
|
+
program.name("wellgrow").description("WellGrow CLI \u2014 AI chat assistant").version("0.1.2").argument("[prompt]", "\u30EF\u30F3\u30B7\u30E7\u30C3\u30C8\u8CEA\u554F\uFF08\u7701\u7565\u3067\u30A4\u30F3\u30BF\u30E9\u30AF\u30C6\u30A3\u30D6\u30E2\u30FC\u30C9\uFF09").option("--model <model>", "\u4F7F\u7528\u3059\u308B\u30E2\u30C7\u30EB").option("-a, --agent <agent>", "\u4F7F\u7528\u3059\u308B\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8").option(
|
|
5997
5973
|
"--mode <mode>",
|
|
5998
5974
|
"\u30E2\u30FC\u30C9 (plan, auto)"
|
|
5999
5975
|
).option("--verbose", "\u8A73\u7D30\u30ED\u30B0\u3092\u51FA\u529B").option("-p, --pipe", "\u30D1\u30A4\u30D7\u5165\u529B\u30E2\u30FC\u30C9\uFF08stdin\u304B\u3089\u306E\u5165\u529B\u3092\u53D7\u3051\u4ED8\u3051\u308B\uFF09").action(async (prompt, opts) => {
|