@hasna/oldpal 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 +30 -55
- package/dist/index.js.map +5 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -20591,17 +20591,17 @@ class AnthropicClient {
|
|
|
20591
20591
|
}));
|
|
20592
20592
|
}
|
|
20593
20593
|
getDefaultSystemPrompt() {
|
|
20594
|
-
return `You are
|
|
20594
|
+
return `You are a helpful personal AI assistant running in the terminal.
|
|
20595
20595
|
|
|
20596
|
-
You have access to various tools and connectors
|
|
20597
|
-
- Connectors for
|
|
20596
|
+
You have access to various tools and connectors:
|
|
20597
|
+
- Connectors for Notion, Google Drive, Gmail, Calendar, Linear, Slack
|
|
20598
20598
|
- Filesystem operations (read, write, search files)
|
|
20599
20599
|
- Shell command execution
|
|
20600
20600
|
|
|
20601
20601
|
Guidelines:
|
|
20602
|
-
- Be concise and direct
|
|
20602
|
+
- Be concise and direct
|
|
20603
|
+
- Don't introduce yourself or say your name
|
|
20603
20604
|
- Use tools proactively to accomplish tasks
|
|
20604
|
-
- When using connectors, explain what you're doing
|
|
20605
20605
|
- Format output nicely for the terminal (use markdown)
|
|
20606
20606
|
- If a task requires multiple steps, break it down clearly
|
|
20607
20607
|
|
|
@@ -87231,20 +87231,13 @@ function Messages4({ messages, currentResponse }) {
|
|
|
87231
87231
|
}, message.id, false, undefined, this)),
|
|
87232
87232
|
currentResponse && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Box_default, {
|
|
87233
87233
|
marginY: 1,
|
|
87234
|
-
flexDirection: "column",
|
|
87235
87234
|
children: [
|
|
87236
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(
|
|
87237
|
-
|
|
87238
|
-
|
|
87239
|
-
bold: true,
|
|
87240
|
-
children: [
|
|
87241
|
-
"assistant:",
|
|
87242
|
-
" "
|
|
87243
|
-
]
|
|
87244
|
-
}, undefined, true, undefined, this)
|
|
87235
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Text, {
|
|
87236
|
+
color: "white",
|
|
87237
|
+
children: "\u25CF "
|
|
87245
87238
|
}, undefined, false, undefined, this),
|
|
87246
87239
|
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Box_default, {
|
|
87247
|
-
|
|
87240
|
+
flexGrow: 1,
|
|
87248
87241
|
children: /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Markdown, {
|
|
87249
87242
|
content: currentResponse
|
|
87250
87243
|
}, undefined, false, undefined, this)
|
|
@@ -87258,38 +87251,34 @@ function MessageBubble({ message }) {
|
|
|
87258
87251
|
const isUser = message.role === "user";
|
|
87259
87252
|
const isSystem = message.role === "system";
|
|
87260
87253
|
if (isSystem) {
|
|
87254
|
+
return null;
|
|
87255
|
+
}
|
|
87256
|
+
if (isUser) {
|
|
87261
87257
|
return /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Box_default, {
|
|
87262
87258
|
marginY: 1,
|
|
87263
|
-
children:
|
|
87264
|
-
|
|
87265
|
-
|
|
87266
|
-
|
|
87267
|
-
|
|
87268
|
-
|
|
87269
|
-
|
|
87270
|
-
|
|
87271
|
-
|
|
87259
|
+
children: [
|
|
87260
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Text, {
|
|
87261
|
+
color: "gray",
|
|
87262
|
+
children: "\u276F "
|
|
87263
|
+
}, undefined, false, undefined, this),
|
|
87264
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Text, {
|
|
87265
|
+
color: "white",
|
|
87266
|
+
backgroundColor: "gray",
|
|
87267
|
+
children: message.content
|
|
87268
|
+
}, undefined, false, undefined, this)
|
|
87269
|
+
]
|
|
87270
|
+
}, undefined, true, undefined, this);
|
|
87272
87271
|
}
|
|
87273
87272
|
return /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Box_default, {
|
|
87274
87273
|
marginY: 1,
|
|
87275
|
-
flexDirection: "column",
|
|
87276
87274
|
children: [
|
|
87277
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(
|
|
87278
|
-
|
|
87279
|
-
|
|
87280
|
-
bold: true,
|
|
87281
|
-
children: [
|
|
87282
|
-
isUser ? "you" : "assistant",
|
|
87283
|
-
":",
|
|
87284
|
-
" "
|
|
87285
|
-
]
|
|
87286
|
-
}, undefined, true, undefined, this)
|
|
87275
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Text, {
|
|
87276
|
+
color: "white",
|
|
87277
|
+
children: "\u25CF "
|
|
87287
87278
|
}, undefined, false, undefined, this),
|
|
87288
87279
|
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Box_default, {
|
|
87289
|
-
|
|
87290
|
-
children:
|
|
87291
|
-
children: message.content
|
|
87292
|
-
}, undefined, false, undefined, this) : /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Markdown, {
|
|
87280
|
+
flexGrow: 1,
|
|
87281
|
+
children: /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Markdown, {
|
|
87293
87282
|
content: message.content
|
|
87294
87283
|
}, undefined, false, undefined, this)
|
|
87295
87284
|
}, undefined, false, undefined, this)
|
|
@@ -87503,20 +87492,6 @@ function App2({ cwd: cwd2 }) {
|
|
|
87503
87492
|
flexDirection: "column",
|
|
87504
87493
|
padding: 1,
|
|
87505
87494
|
children: [
|
|
87506
|
-
/* @__PURE__ */ jsx_dev_runtime6.jsxDEV(Box_default, {
|
|
87507
|
-
marginBottom: 1,
|
|
87508
|
-
children: [
|
|
87509
|
-
/* @__PURE__ */ jsx_dev_runtime6.jsxDEV(Text, {
|
|
87510
|
-
bold: true,
|
|
87511
|
-
color: "cyan",
|
|
87512
|
-
children: "oldpal"
|
|
87513
|
-
}, undefined, false, undefined, this),
|
|
87514
|
-
/* @__PURE__ */ jsx_dev_runtime6.jsxDEV(Text, {
|
|
87515
|
-
color: "gray",
|
|
87516
|
-
children: " - Your personal AI assistant"
|
|
87517
|
-
}, undefined, false, undefined, this)
|
|
87518
|
-
]
|
|
87519
|
-
}, undefined, true, undefined, this),
|
|
87520
87495
|
/* @__PURE__ */ jsx_dev_runtime6.jsxDEV(Messages4, {
|
|
87521
87496
|
messages,
|
|
87522
87497
|
currentResponse
|
|
@@ -87595,4 +87570,4 @@ waitUntilExit().then(() => {
|
|
|
87595
87570
|
process.exit(0);
|
|
87596
87571
|
});
|
|
87597
87572
|
|
|
87598
|
-
//# debugId=
|
|
87573
|
+
//# debugId=C49F23935734477464756E2164756E21
|