friend-assistant 0.1.52 → 0.1.54
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/README.md +11 -1
- package/dist/BUILD.json +2 -2
- package/dist/friend.mjs +1190 -396
- package/dist/plugins/day-trader-india/plugin.json +112 -0
- package/dist/plugins/day-trader-india/skills/analyst.md +18 -0
- package/dist/plugins/day-trader-india/skills/budget.md +15 -0
- package/dist/plugins/day-trader-india/skills/entry.md +14 -0
- package/dist/plugins/day-trader-india/skills/exit.md +18 -0
- package/dist/plugins/day-trader-india/skills/focus.md +32 -0
- package/dist/plugins/day-trader-india/skills/news.md +16 -0
- package/dist/plugins/day-trader-india/skills/replay.md +16 -0
- package/dist/plugins/day-trader-india/skills/risk.md +18 -0
- package/dist/plugins/day-trader-india/skills/scan.md +17 -0
- package/dist/plugins/day-trader-india/skills/smart-money.md +15 -0
- package/dist/plugins/day-trader-india/tools/trade_plan.py +52 -0
- package/dist/plugins/portfolio-assistant/plugin.json +1 -1
- package/dist/plugins/portfolio-assistant/skills/portfolio.md +1 -1
- package/dist/web/assets/OrgParts-C5BY6KQd.js +1 -0
- package/dist/web/assets/index-BfF86nED.css +1 -0
- package/dist/web/assets/index-DdBsgfIk.js +4460 -0
- package/dist/web/assets/jarvis-ui-CbruVJnv.css +1 -0
- package/dist/web/assets/jarvis-ui-H15GueHR.js +58 -0
- package/dist/web/assets/jarvisTree-DrSyBkJ9.js +1 -0
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/dist/web/assets/index-CfLYyqNC.js +0 -4459
- package/dist/web/assets/index-JCj4prbi.css +0 -1
package/README.md
CHANGED
|
@@ -116,6 +116,8 @@ Restart `friend start` after any of these.
|
|
|
116
116
|
|
|
117
117
|
### Plugins
|
|
118
118
|
|
|
119
|
+
**Day trader (India)** is a bundled plugin with ten skills (focus list, scan for setups, news, entry, exit, budget, risk, replay, analyst, smart money). Ask "what should I trade today" and Friend scans the market (the most active stocks, volume spurts and the biggest F&O movers), checks the news, simulates each setup and gives a ranked focus list with entry, stop, target and odds and an exact sizing tool (`trade-plan`). It reads Indian market data through three built-in tools, `market.get` (candles, quotes, NSE announcements, results, insider trades, bulk and block deals, shareholding, top movers, most active, volume spurts), `market.scan` (finds opening-range breakouts and bounces across the market and ranks them) and `market.replay` (replays the rest of the session from the stock's own recent candles). Both use free public feeds (Yahoo Finance and the NSE, no key), follow the Web switch, and work in IST and rupees. Your limits (max loss, money, leverage) are asked each session, never assumed. It is analysis only: it never places an order, you place it in your broker app.
|
|
120
|
+
|
|
119
121
|
| Command | What it does | Use it when |
|
|
120
122
|
|---|---|---|
|
|
121
123
|
| `friend plugin catalog` | Lists the plugins that come with Friend. | Looking for something to add. |
|
|
@@ -391,12 +393,18 @@ Settings -> Widgets -> **Screen layout** switches between **Classic** (the orb w
|
|
|
391
393
|
The Office lets Friend hire **workers**: separate Claude Code sessions that work in your project folders, one ticket at a time, while you keep talking to Friend. It is off until you switch it on, and nothing in it is preset: the roles, projects, limits and rules are all **settings** (Settings -> **Office**, saved with your PIN; the assistant itself cannot change them).
|
|
392
394
|
|
|
393
395
|
- **Set up.** Turn the Office on, add a **project** (a folder, and one line about its goal) and a **role** (an id, a title, optional model and the instructions that worker always starts with; a few starter roles are only editable data, delete or change them). Then ask Friend: "hire a builder on my site project and have them fix the login bug".
|
|
394
|
-
- **
|
|
396
|
+
- **How much Friend decides.** Settings -> Office -> *How much Friend decides*. When a worker asks to do something (run a command, change a file), **Low** (the default) asks you for everything not on your let-through list, **Medium** lets Friend answer the ordinary requests and still asks you, with your PIN, about dangerous ones (deleting, installing, force pushes), and **High** lets Friend answer all of them. Whatever the level, a path outside the project folders, the files that control a worker and the commands you list under *Always refuse* are refused, and every answer Friend gives is written to the worker's feed and the audit log. Only you can change this level, on the settings screen; Friend cannot change it for itself.
|
|
397
|
+
- **Tools Friend uses.** `office.status` (workers, tickets, the subscription window), `office.hire`, `office.assign` (give a ticket and start it), `office.say` (a message to a worker), `office.review` (accept a finished ticket or send it back) and `office.stop` (one worker or all). Text a worker writes is shown to Friend as untrusted data, never as instructions.
|
|
395
398
|
- **Approvals.** A worker that wants to do something risky asks through Friend's own approval card (the orange octagon on the orbital screen, the card in the classic one), showing the whole command. A path outside the project's folders, and any command that matches one of your **Always refuse** patterns, is refused without asking. Tools on your **Let through without asking** list go ahead inside the folders; everything else asks, and a command that looks dangerous needs your PIN. An unanswered card counts as a no. There is no "always allow" for a worker's question.
|
|
396
399
|
- **Limits.** *Most workers at once* (the others queue), a token limit per worker and in total, a start timeout, and **Pause at N% of the five-hour window**: when your Claude subscription window is that full, workers wait until it resets (0 = never pause). Workers share your Claude subscription with Friend itself, using the program and model chosen under Model.
|
|
397
400
|
- **On the orbital screen** the workers are the orbit nodes (a "+" hires one), Tickets and Budget show the real tickets and token limits, the Activity feed shows what the workers do, and the usage ring shows the real five-hour window with the time it resets. Click a worker to see its live feed, **Stop** it or say something to it. Stop, switching the Office off and closing Friend all end every worker process.
|
|
401
|
+
- **Team.** The **TEAM** button under the name in the middle opens the team as a graph drawn with the Jarvis components: the assistant on the left, each worker to the right of its manager. Friend decides the jobs and who reports to whom when he hires.
|
|
398
402
|
- **Sessions.** A worker keeps its memory between tickets (its Claude Code session is resumed); the process itself ends after each ticket.
|
|
399
403
|
|
|
404
|
+
## Drawing with the Jarvis components
|
|
405
|
+
|
|
406
|
+
Besides the simple widgets, Every component of the Jarvis HUD library that is safe to draw (stat cards, gauges, bar, line and donut charts, tables, status pills, node graphs, tabs and about forty more) is an object type of its own, by its own name (`JStatCard`, `JGaugeChart`, `JTable`, ...), in the same list as the basic widgets, and the best looking: Friend picks them first. Parts inside a card go in `kids` and `slots`; it is data, never code. Every component and prop is checked against an allow-list before it is drawn, so nothing can run or restyle the screen. `stage.guide` lists the components for him.
|
|
407
|
+
|
|
400
408
|
## Pictures first: weather, stats and graphics
|
|
401
409
|
|
|
402
410
|
Friend is meant to show answers, not only say them. It controls the whole screen and picks the object that fits (gauge, chart, table, timeline, graph, or its own animated page).
|
|
@@ -421,6 +429,8 @@ Tell Friend "remember that my sister is Priya" and it keeps a short note. The 20
|
|
|
421
429
|
|
|
422
430
|
## Plugins
|
|
423
431
|
|
|
432
|
+
**Day trader (India)** is a bundled plugin with nine skills (scan for setups, news, entry, exit, budget, risk, replay, analyst, smart money) and an exact sizing tool (`trade-plan`). It reads Indian market data through two built-in tools, `market.get` (candles, quotes, NSE announcements, results, insider trades, bulk and block deals, shareholding) and `market.replay` (replays the rest of the session from the stock's own recent candles). Both use free public feeds (Yahoo Finance and the NSE, no key), follow the Web switch, and work in IST and rupees. Your limits (max loss, money, leverage) are asked each session, never assumed. It is analysis only: it never places an order, you place it in your broker app.
|
|
433
|
+
|
|
424
434
|
Plugins add **skills** (instructions the agent loads when they fit, for example "write my stand-up") and **tools** (small programs the agent can call, for example an exact unit converter). Three examples are bundled in `plugins/`: `unit-converter`, `standup-writer`, `rubber-duck`.
|
|
425
435
|
|
|
426
436
|
- Manage them from the screen (Esc, then **Plugins**) or the terminal: `friend plugin catalog | list | install <name|folder> | enable <id> | disable <id> | remove <id>`.
|
package/dist/BUILD.json
CHANGED