@hasna/economy 0.2.40 → 0.2.41
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/CHANGELOG.md +30 -0
- package/CODE_OF_CONDUCT.md +23 -0
- package/CONTRIBUTING.md +39 -0
- package/README.md +4 -0
- package/SECURITY.md +31 -0
- package/dashboard/dist/assets/charts-BtCbslx4.js +36 -0
- package/dashboard/dist/assets/index-BDmtt3RI.css +1 -0
- package/dashboard/dist/assets/index-BFwRLqg7.js +6 -0
- package/dashboard/dist/assets/vendor-Cz8jb743.js +53 -0
- package/dashboard/dist/index.html +16 -0
- package/dashboard/dist/logo.jpg +0 -0
- package/dashboard/dist/vite.svg +1 -0
- package/dist/server/index.js +0 -0
- package/package.json +15 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this repository are tracked here. This project follows semantic versioning for published npm packages when practical.
|
|
4
|
+
|
|
5
|
+
## @hasna/economy 0.2.41 - 2026-06-24
|
|
6
|
+
|
|
7
|
+
- Added root open-source project files for release notes, security reporting, contributing guidance, and conduct expectations.
|
|
8
|
+
- Added npm repository, issue tracker, and homepage metadata.
|
|
9
|
+
- Added package file allow-list coverage for release notes and security metadata.
|
|
10
|
+
- Ignored local `.takumi/` SQLite state so private local telemetry is not accidentally staged.
|
|
11
|
+
|
|
12
|
+
## @hasna/economy-sdk 0.2.1 - 2026-06-24
|
|
13
|
+
|
|
14
|
+
- Added npm repository, issue tracker, and homepage metadata.
|
|
15
|
+
- Added a package README and full Apache-2.0 license file to the SDK tarball.
|
|
16
|
+
|
|
17
|
+
## @hasna/economy 0.2.40 - 2026-06-24
|
|
18
|
+
|
|
19
|
+
- Added `economy brief` with text and JSON fleet summaries for tokens, cache reads/writes, cost, machine rows, agent rows, account rows, and freshness.
|
|
20
|
+
- Added Codewith state-store ingestion from `~/.codewith/state_5.sqlite` alongside legacy Codex ingestion, with distinct session IDs and ingest cursors.
|
|
21
|
+
- Added macOS machine identity fallback so apple hosts report stable machine IDs instead of generic `mac` hostnames.
|
|
22
|
+
- Added brief pre-read sync and SQL aggregation changes to keep the command responsive on large merged fleet databases.
|
|
23
|
+
- Added pricing coverage for current Claude Opus and Codewith GPT-5.5 model identifiers.
|
|
24
|
+
- Hardened billing, database, and Codex ingest tests used in the release verification flow.
|
|
25
|
+
- Published and fleet-installed `@hasna/economy@0.2.40`; the release was verified on spark01, spark02, and apple03 after correcting an apple03 Bun-global shim drift.
|
|
26
|
+
|
|
27
|
+
## @hasna/economy-sdk 0.2.0 - 2026-06-24
|
|
28
|
+
|
|
29
|
+
- Current published SDK package for the Economy REST API client.
|
|
30
|
+
- Release metadata now points to the public Hasna Economy repository and Apache-2.0 license.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Code Of Conduct
|
|
2
|
+
|
|
3
|
+
Hasna Economy is an open-source project for practical engineering collaboration. Contributors are expected to keep discussion professional, specific, and respectful.
|
|
4
|
+
|
|
5
|
+
## Expected Behavior
|
|
6
|
+
|
|
7
|
+
- Be direct about technical risks while staying respectful toward people.
|
|
8
|
+
- Assume good intent when asking for clarification.
|
|
9
|
+
- Keep issues and pull requests focused on reproducible facts, concrete proposals, and maintainable outcomes.
|
|
10
|
+
- Respect privacy. Do not post secrets, private telemetry, credentials, or personal data.
|
|
11
|
+
|
|
12
|
+
## Unacceptable Behavior
|
|
13
|
+
|
|
14
|
+
- harassment, threats, insults, or discriminatory comments;
|
|
15
|
+
- publishing private contact details, credentials, tokens, logs, or databases without consent;
|
|
16
|
+
- sustained off-topic disruption of issues, pull requests, or release work;
|
|
17
|
+
- misrepresenting validation, release, or security status.
|
|
18
|
+
|
|
19
|
+
## Enforcement
|
|
20
|
+
|
|
21
|
+
Maintainers may edit, hide, or remove comments; close issues or pull requests; restrict repository access; or escalate to platform moderation when needed to protect the project and its users.
|
|
22
|
+
|
|
23
|
+
If you need to report conduct concerns, contact the maintainers through the repository's normal private security or maintainer channels.
|
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Thanks for contributing to Hasna Economy.
|
|
4
|
+
|
|
5
|
+
## Development Setup
|
|
6
|
+
|
|
7
|
+
Use Bun for package management and validation.
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
bun install
|
|
11
|
+
bun test
|
|
12
|
+
bun run typecheck
|
|
13
|
+
bun run build
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Dashboard work lives under `dashboard/` and SDK work lives under `sdk/`. Run package-local commands from those directories when changing those packages.
|
|
17
|
+
|
|
18
|
+
## Release And Package Hygiene
|
|
19
|
+
|
|
20
|
+
Before proposing a release change:
|
|
21
|
+
|
|
22
|
+
- keep unrelated local work separate;
|
|
23
|
+
- do not commit local databases, private telemetry, `.env` files, credentials, logs, or machine-specific state;
|
|
24
|
+
- verify `bun pm pack --dry-run --ignore-scripts` for publishable packages;
|
|
25
|
+
- verify package entry points after `bun run build`;
|
|
26
|
+
- update `CHANGELOG.md` for user-visible package changes;
|
|
27
|
+
- keep package metadata, license fields, and release notes consistent with Apache-2.0.
|
|
28
|
+
|
|
29
|
+
## Pull Requests
|
|
30
|
+
|
|
31
|
+
Each pull request should describe the behavior change, validation commands, package/release impact, and any known migration or compatibility concern. Include tests when behavior changes, especially around ingest, billing, packaging, CLI commands, and server APIs.
|
|
32
|
+
|
|
33
|
+
## Code Style
|
|
34
|
+
|
|
35
|
+
Follow the existing TypeScript style. Prefer small, direct modules over broad refactors. Use structured APIs for data parsing and keep changes scoped to the behavior under review.
|
|
36
|
+
|
|
37
|
+
## Security
|
|
38
|
+
|
|
39
|
+
Report vulnerabilities according to [SECURITY.md](SECURITY.md). Do not publish private exploit details in public issues or pull requests.
|
package/README.md
CHANGED
|
@@ -263,6 +263,10 @@ cd dashboard && bun run lint
|
|
|
263
263
|
cd menubar && swift build -c release
|
|
264
264
|
```
|
|
265
265
|
|
|
266
|
+
## Open Source
|
|
267
|
+
|
|
268
|
+
Economy is published under the Apache-2.0 license. See [CONTRIBUTING.md](CONTRIBUTING.md) for local development and release hygiene, [SECURITY.md](SECURITY.md) for vulnerability reporting, [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) for community expectations, and [CHANGELOG.md](CHANGELOG.md) for release notes.
|
|
269
|
+
|
|
266
270
|
## HTTP mode
|
|
267
271
|
|
|
268
272
|
Shared Streamable HTTP transport for multi-agent sessions (stdio remains the default):
|
package/SECURITY.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
## Supported Versions
|
|
4
|
+
|
|
5
|
+
Security fixes are handled for the latest published versions of `@hasna/economy` and `@hasna/economy-sdk`.
|
|
6
|
+
|
|
7
|
+
## Reporting A Vulnerability
|
|
8
|
+
|
|
9
|
+
Please report vulnerabilities privately through GitHub Security Advisories for `hasna/economy` when available. If that is not available, open a minimal GitHub issue that says you need a private security contact without including exploit details.
|
|
10
|
+
|
|
11
|
+
Do not include secrets, access tokens, private database contents, or exploit payloads in public issues, pull requests, logs, screenshots, or package artifacts.
|
|
12
|
+
|
|
13
|
+
## Expected Response
|
|
14
|
+
|
|
15
|
+
Hasna maintainers will triage reports based on impact, affected package versions, exploitability, and whether user data or credentials can be exposed. Confirmed vulnerabilities are fixed in source, validated with focused tests, and released through the normal package process.
|
|
16
|
+
|
|
17
|
+
## Scope
|
|
18
|
+
|
|
19
|
+
In scope:
|
|
20
|
+
|
|
21
|
+
- credential or token exposure;
|
|
22
|
+
- unsafe package contents;
|
|
23
|
+
- auth, account, or tenant boundary bypasses;
|
|
24
|
+
- remote code execution or command injection;
|
|
25
|
+
- unintended publication of local databases or private telemetry.
|
|
26
|
+
|
|
27
|
+
Out of scope:
|
|
28
|
+
|
|
29
|
+
- attacks requiring direct write access to a user's local Economy database;
|
|
30
|
+
- reports based only on dependency age without a demonstrated vulnerable path;
|
|
31
|
+
- denial-of-service reports that require unbounded local filesystem control.
|