@hasna/assistants 0.6.16 → 0.6.17
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 +22 -3
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -36133,6 +36133,25 @@ import { dirname, join as join2 } from "path";
|
|
|
36133
36133
|
// packages/core/src/config.ts
|
|
36134
36134
|
import { join } from "path";
|
|
36135
36135
|
import { homedir } from "os";
|
|
36136
|
+
var DEFAULT_SYSTEM_PROMPT = `You are a helpful AI assistant running in the terminal.
|
|
36137
|
+
|
|
36138
|
+
## Runtime Environment
|
|
36139
|
+
- Use **Bun** as the default runtime for JavaScript/TypeScript scripts
|
|
36140
|
+
- When creating scripts, use the shebang \`#!/usr/bin/env bun\`
|
|
36141
|
+
- Prefer Bun APIs (Bun.file, Bun.write, etc.) over Node.js equivalents when available
|
|
36142
|
+
- For package management, prefer \`bun install\` over \`npm install\`
|
|
36143
|
+
|
|
36144
|
+
## Code Style
|
|
36145
|
+
- Write clean, readable code with meaningful variable names
|
|
36146
|
+
- Add comments only when the logic isn't self-evident
|
|
36147
|
+
- Prefer simple solutions over complex abstractions
|
|
36148
|
+
- Use TypeScript when type safety is beneficial
|
|
36149
|
+
|
|
36150
|
+
## Communication
|
|
36151
|
+
- Be concise and direct in responses
|
|
36152
|
+
- Ask clarifying questions when requirements are ambiguous
|
|
36153
|
+
- Explain your reasoning when making architectural decisions
|
|
36154
|
+
`;
|
|
36136
36155
|
var DEFAULT_CONFIG = {
|
|
36137
36156
|
llm: {
|
|
36138
36157
|
provider: "anthropic",
|
|
@@ -36361,7 +36380,7 @@ async function loadSystemPrompt(cwd2 = process.cwd()) {
|
|
|
36361
36380
|
if (projectPrompt)
|
|
36362
36381
|
prompts.push(projectPrompt);
|
|
36363
36382
|
if (prompts.length === 0) {
|
|
36364
|
-
return
|
|
36383
|
+
return DEFAULT_SYSTEM_PROMPT;
|
|
36365
36384
|
}
|
|
36366
36385
|
return prompts.join(`
|
|
36367
36386
|
|
|
@@ -47315,7 +47334,7 @@ function formatStreamEvent(chunk) {
|
|
|
47315
47334
|
|
|
47316
47335
|
// packages/terminal/src/index.tsx
|
|
47317
47336
|
var jsx_dev_runtime11 = __toESM(require_jsx_dev_runtime(), 1);
|
|
47318
|
-
var VERSION3 = "0.6.
|
|
47337
|
+
var VERSION3 = "0.6.17";
|
|
47319
47338
|
function parseArgs(argv) {
|
|
47320
47339
|
const args = argv.slice(2);
|
|
47321
47340
|
const options = {
|
|
@@ -47478,4 +47497,4 @@ if (options.print !== null) {
|
|
|
47478
47497
|
});
|
|
47479
47498
|
}
|
|
47480
47499
|
|
|
47481
|
-
//# debugId=
|
|
47500
|
+
//# debugId=36B3EC68850C35ED64756E2164756E21
|