@hasna/instructions 0.6.0 → 0.6.1
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 +26 -2
- package/dist/chunks/apply-sfzja1f3.js +22 -0
- package/dist/chunks/apply-ynfn1av7.js +23 -0
- package/dist/chunks/index-1hpwskwd.js +12702 -0
- package/dist/chunks/index-35z65jsa.js +198 -0
- package/dist/chunks/index-85n5wnd8.js +625 -0
- package/dist/chunks/index-9p9gn7gh.js +627 -0
- package/dist/chunks/index-axhwg61p.js +523 -0
- package/dist/chunks/index-bsan4c16.js +48 -0
- package/dist/chunks/index-e9epbsvs.js +521 -0
- package/dist/chunks/index-ma2xmp6c.js +14 -0
- package/dist/chunks/index-nnwp92tk.js +19 -0
- package/dist/chunks/index-pkscjnj5.js +118 -0
- package/dist/chunks/index-v7dkb384.js +7248 -0
- package/dist/chunks/local-0d8qrc92.js +693 -0
- package/dist/chunks/local-a9nen65z.js +694 -0
- package/dist/chunks/package-manager-guard-x70xrwk2.js +391 -0
- package/dist/chunks/redact-hnq4sc4r.js +16 -0
- package/dist/chunks/sync-m46fc257.js +33 -0
- package/dist/chunks/sync-vy1yjvs6.js +34 -0
- package/dist/chunks/template-02wjvv05.js +16 -0
- package/dist/chunks/template-ke972qqe.js +16 -0
- package/dist/cli/index.js +722 -15448
- package/dist/data/config-store.d.ts +1 -1
- package/dist/data/config-store.d.ts.map +1 -1
- package/dist/db/database.d.ts +3 -5
- package/dist/db/database.d.ts.map +1 -1
- package/dist/db/local.d.ts +38 -0
- package/dist/db/local.d.ts.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10684 -10498
- package/dist/lib/ids.d.ts +4 -0
- package/dist/lib/ids.d.ts.map +1 -0
- package/dist/lib/instruction-graph.d.ts.map +1 -1
- package/dist/lib/session-render.d.ts +3 -0
- package/dist/lib/session-render.d.ts.map +1 -1
- package/dist/mcp/index.js +55 -9455
- package/dist/server/index.js +7329 -7235
- package/dist/status.d.ts +12 -2
- package/dist/status.d.ts.map +1 -1
- package/package.json +12 -8
- package/dist/cli/add-duplicate-target.test.d.ts +0 -2
- package/dist/cli/add-duplicate-target.test.d.ts.map +0 -1
- package/dist/cli/add-reference-update.test.d.ts +0 -2
- package/dist/cli/add-reference-update.test.d.ts.map +0 -1
- package/dist/cli/apply-unchanged-snapshot-bloat.test.d.ts +0 -2
- package/dist/cli/apply-unchanged-snapshot-bloat.test.d.ts.map +0 -1
- package/dist/cli/doctor-reference-duplicates.test.d.ts +0 -2
- package/dist/cli/doctor-reference-duplicates.test.d.ts.map +0 -1
- package/dist/cli/fail-closed-no-env.test.d.ts +0 -2
- package/dist/cli/fail-closed-no-env.test.d.ts.map +0 -1
- package/dist/cli/output.test.d.ts +0 -2
- package/dist/cli/output.test.d.ts.map +0 -1
- package/dist/cli/profile-binding.test.d.ts +0 -2
- package/dist/cli/profile-binding.test.d.ts.map +0 -1
- package/dist/cli/profile-reads.test.d.ts +0 -2
- package/dist/cli/profile-reads.test.d.ts.map +0 -1
- package/dist/cli/profile-update.test.d.ts +0 -2
- package/dist/cli/profile-update.test.d.ts.map +0 -1
- package/dist/cli/project-context.test.d.ts +0 -2
- package/dist/cli/project-context.test.d.ts.map +0 -1
- package/dist/cli/raw-store-root.test.d.ts +0 -2
- package/dist/cli/raw-store-root.test.d.ts.map +0 -1
- package/dist/cli/session-apply-managed-input-bound.test.d.ts +0 -2
- package/dist/cli/session-apply-managed-input-bound.test.d.ts.map +0 -1
- package/dist/cli/session.test.d.ts +0 -2
- package/dist/cli/session.test.d.ts.map +0 -1
- package/dist/cli/station-profile.test.d.ts +0 -2
- package/dist/cli/station-profile.test.d.ts.map +0 -1
- package/dist/data/config-store.test.d.ts +0 -2
- package/dist/data/config-store.test.d.ts.map +0 -1
- package/dist/db/configs.test.d.ts +0 -2
- package/dist/db/configs.test.d.ts.map +0 -1
- package/dist/db/database.test.d.ts +0 -2
- package/dist/db/database.test.d.ts.map +0 -1
- package/dist/db/machines.test.d.ts +0 -2
- package/dist/db/machines.test.d.ts.map +0 -1
- package/dist/db/profile-assets.test.d.ts +0 -2
- package/dist/db/profile-assets.test.d.ts.map +0 -1
- package/dist/db/profile-config-bindings.test.d.ts +0 -2
- package/dist/db/profile-config-bindings.test.d.ts.map +0 -1
- package/dist/db/profiles.test.d.ts +0 -2
- package/dist/db/profiles.test.d.ts.map +0 -1
- package/dist/db/snapshots.test.d.ts +0 -2
- package/dist/db/snapshots.test.d.ts.map +0 -1
- package/dist/lib/app-home.test.d.ts +0 -2
- package/dist/lib/app-home.test.d.ts.map +0 -1
- package/dist/lib/apply-batch.test.d.ts +0 -2
- package/dist/lib/apply-batch.test.d.ts.map +0 -1
- package/dist/lib/apply-dry-run-verdict.test.d.ts +0 -2
- package/dist/lib/apply-dry-run-verdict.test.d.ts.map +0 -1
- package/dist/lib/apply-secret-placeholder-guard.test.d.ts +0 -2
- package/dist/lib/apply-secret-placeholder-guard.test.d.ts.map +0 -1
- package/dist/lib/apply-text-format-credential-guard.test.d.ts +0 -2
- package/dist/lib/apply-text-format-credential-guard.test.d.ts.map +0 -1
- package/dist/lib/apply.test.d.ts +0 -2
- package/dist/lib/apply.test.d.ts.map +0 -1
- package/dist/lib/asset-plan.test.d.ts +0 -2
- package/dist/lib/asset-plan.test.d.ts.map +0 -1
- package/dist/lib/client-types.test.d.ts +0 -2
- package/dist/lib/client-types.test.d.ts.map +0 -1
- package/dist/lib/codewith-shared-todos-storage-standard.test.d.ts +0 -2
- package/dist/lib/codewith-shared-todos-storage-standard.test.d.ts.map +0 -1
- package/dist/lib/compact-output.test.d.ts +0 -2
- package/dist/lib/compact-output.test.d.ts.map +0 -1
- package/dist/lib/config-target-identity.test.d.ts +0 -2
- package/dist/lib/config-target-identity.test.d.ts.map +0 -1
- package/dist/lib/cursor-authority.test.d.ts +0 -2
- package/dist/lib/cursor-authority.test.d.ts.map +0 -1
- package/dist/lib/dangerous-operation-guard-standard.test.d.ts +0 -2
- package/dist/lib/dangerous-operation-guard-standard.test.d.ts.map +0 -1
- package/dist/lib/diff-redaction.test.d.ts +0 -2
- package/dist/lib/diff-redaction.test.d.ts.map +0 -1
- package/dist/lib/export-import.test.d.ts +0 -2
- package/dist/lib/export-import.test.d.ts.map +0 -1
- package/dist/lib/global-agent-rules-render-integration.test.d.ts +0 -2
- package/dist/lib/global-agent-rules-render-integration.test.d.ts.map +0 -1
- package/dist/lib/global-agent-rules-standard.test.d.ts +0 -2
- package/dist/lib/global-agent-rules-standard.test.d.ts.map +0 -1
- package/dist/lib/global-agent-rules-stored-content.test.d.ts +0 -2
- package/dist/lib/global-agent-rules-stored-content.test.d.ts.map +0 -1
- package/dist/lib/global-source-coverage.test.d.ts +0 -2
- package/dist/lib/global-source-coverage.test.d.ts.map +0 -1
- package/dist/lib/instruction-graph-apply.test.d.ts +0 -2
- package/dist/lib/instruction-graph-apply.test.d.ts.map +0 -1
- package/dist/lib/instruction-graph.test.d.ts +0 -2
- package/dist/lib/instruction-graph.test.d.ts.map +0 -1
- package/dist/lib/machine.test.d.ts +0 -2
- package/dist/lib/machine.test.d.ts.map +0 -1
- package/dist/lib/managed-skill-runtimes.test.d.ts +0 -2
- package/dist/lib/managed-skill-runtimes.test.d.ts.map +0 -1
- package/dist/lib/package-manager-guard.test.d.ts +0 -2
- package/dist/lib/package-manager-guard.test.d.ts.map +0 -1
- package/dist/lib/project-context-prepared-file.test.d.ts +0 -2
- package/dist/lib/project-context-prepared-file.test.d.ts.map +0 -1
- package/dist/lib/project-context.test.d.ts +0 -2
- package/dist/lib/project-context.test.d.ts.map +0 -1
- package/dist/lib/project-dashboard-standard.test.d.ts +0 -2
- package/dist/lib/project-dashboard-standard.test.d.ts.map +0 -1
- package/dist/lib/provider-assets-adapters.test.d.ts +0 -2
- package/dist/lib/provider-assets-adapters.test.d.ts.map +0 -1
- package/dist/lib/provider-context.test.d.ts +0 -2
- package/dist/lib/provider-context.test.d.ts.map +0 -1
- package/dist/lib/provider-version-adapters.test.d.ts +0 -2
- package/dist/lib/provider-version-adapters.test.d.ts.map +0 -1
- package/dist/lib/redact.test.d.ts +0 -2
- package/dist/lib/redact.test.d.ts.map +0 -1
- package/dist/lib/session-apply.test.d.ts +0 -2
- package/dist/lib/session-apply.test.d.ts.map +0 -1
- package/dist/lib/session-authority.test.d.ts +0 -2
- package/dist/lib/session-authority.test.d.ts.map +0 -1
- package/dist/lib/session-render-managed-output-bound.test.d.ts +0 -2
- package/dist/lib/session-render-managed-output-bound.test.d.ts.map +0 -1
- package/dist/lib/session-render-ownership.test.d.ts +0 -2
- package/dist/lib/session-render-ownership.test.d.ts.map +0 -1
- package/dist/lib/session-render-rule-currency-floor.test.d.ts +0 -2
- package/dist/lib/session-render-rule-currency-floor.test.d.ts.map +0 -1
- package/dist/lib/session-render-silent-source-drop.test.d.ts +0 -2
- package/dist/lib/session-render-silent-source-drop.test.d.ts.map +0 -1
- package/dist/lib/session-render-state-hermeticity.test.d.ts +0 -2
- package/dist/lib/session-render-state-hermeticity.test.d.ts.map +0 -1
- package/dist/lib/session-render-state.test.d.ts +0 -2
- package/dist/lib/session-render-state.test.d.ts.map +0 -1
- package/dist/lib/session-render.test.d.ts +0 -2
- package/dist/lib/session-render.test.d.ts.map +0 -1
- package/dist/lib/station-profile.test.d.ts +0 -2
- package/dist/lib/station-profile.test.d.ts.map +0 -1
- package/dist/lib/sync-dir.test.d.ts +0 -2
- package/dist/lib/sync-dir.test.d.ts.map +0 -1
- package/dist/lib/sync-dry-run-unchanged.test.d.ts +0 -2
- package/dist/lib/sync-dry-run-unchanged.test.d.ts.map +0 -1
- package/dist/lib/sync-known.test.d.ts +0 -2
- package/dist/lib/sync-known.test.d.ts.map +0 -1
- package/dist/lib/sync.test.d.ts +0 -2
- package/dist/lib/sync.test.d.ts.map +0 -1
- package/dist/lib/template.test.d.ts +0 -2
- package/dist/lib/template.test.d.ts.map +0 -1
- package/dist/lib/transforms.test.d.ts +0 -2
- package/dist/lib/transforms.test.d.ts.map +0 -1
- package/dist/lib/transport-resolver.test.d.ts +0 -2
- package/dist/lib/transport-resolver.test.d.ts.map +0 -1
- package/dist/mcp/create-config-target-guard.test.d.ts +0 -2
- package/dist/mcp/create-config-target-guard.test.d.ts.map +0 -1
- package/dist/mcp/early-args.test.d.ts +0 -2
- package/dist/mcp/early-args.test.d.ts.map +0 -1
- package/dist/mcp/http.test.d.ts +0 -2
- package/dist/mcp/http.test.d.ts.map +0 -1
- package/dist/mcp/mcp.test.d.ts +0 -2
- package/dist/mcp/mcp.test.d.ts.map +0 -1
- package/dist/sdk/resolve.test.d.ts +0 -2
- package/dist/sdk/resolve.test.d.ts.map +0 -1
- package/dist/sdk/sdk-bundle-self-contained.test.d.ts +0 -2
- package/dist/sdk/sdk-bundle-self-contained.test.d.ts.map +0 -1
- package/dist/server/cloud-auth.test.d.ts +0 -2
- package/dist/server/cloud-auth.test.d.ts.map +0 -1
- package/dist/server/cloud.test.d.ts +0 -2
- package/dist/server/cloud.test.d.ts.map +0 -1
- package/dist/server/early-args.test.d.ts +0 -2
- package/dist/server/early-args.test.d.ts.map +0 -1
- package/dist/server/profile-contract.test.d.ts +0 -2
- package/dist/server/profile-contract.test.d.ts.map +0 -1
- package/dist/status.test.d.ts +0 -2
- package/dist/status.test.d.ts.map +0 -1
- package/dist/storage/cloud-store.test.d.ts +0 -2
- package/dist/storage/cloud-store.test.d.ts.map +0 -1
- package/dist/test-support/preload-state-home.d.ts +0 -2
- package/dist/test-support/preload-state-home.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -203,7 +203,9 @@ The two transports behind `ConfigStore`:
|
|
|
203
203
|
- **local** — on-box SQLite (`LocalConfigStore`), **opt-in only**:
|
|
204
204
|
`HASNA_INSTRUCTIONS_LOCAL=1`, honoured only when the environment configures
|
|
205
205
|
no authority and no credential. Every local run says `local mode` once on
|
|
206
|
-
stderr.
|
|
206
|
+
stderr. The SQLite half is loaded through a single dynamic import and is
|
|
207
|
+
bundled as a separate chunk, so `dist/cli/index.js` and `dist/mcp/index.js`
|
|
208
|
+
ship with zero `bun:sqlite` references and a hosted run never loads it.
|
|
207
209
|
|
|
208
210
|
Retired locations (`~/.hasna/fleet-env`, `~/.hasna/cloud`, `~/.config/hasna`,
|
|
209
211
|
`$XDG_CONFIG_HOME`, a `~/.instructions/config.json` key store) are inputs
|
|
@@ -216,7 +218,7 @@ concern (`instructions-serve`), selected by `HASNA_INSTRUCTIONS_DATABASE_URL`.
|
|
|
216
218
|
## Data Directory
|
|
217
219
|
|
|
218
220
|
Local data (the SQLite store and backups) lives under the configs store home,
|
|
219
|
-
resolved
|
|
221
|
+
resolved by the in-package resolver. The legacy `~/.hasna/instructions/` default
|
|
220
222
|
(with the `HASNA_CONFIGS_HOME` exact-app override) stays the effective store
|
|
221
223
|
home until the store has actually been migrated to the XDG config home
|
|
222
224
|
(`~/.config/hasna/configs` on Linux; `~/Library/Application
|
|
@@ -263,6 +265,28 @@ manifests for drift, refuses unmanaged file conflicts unless `--force` is
|
|
|
263
265
|
passed, removes stale managed mirrors only when safe, and writes local snapshots
|
|
264
266
|
before mutating managed files.
|
|
265
267
|
|
|
268
|
+
Grok Build and Devin CLI can render global instructions into an explicitly
|
|
269
|
+
selected native home. Pass Grok's `GROK_HOME` directory or Devin's resolved user
|
|
270
|
+
config directory as `--target-home`; the renderer writes a flattened `AGENTS.md`
|
|
271
|
+
and its ownership manifest there. Devin's target is the `devin` config directory,
|
|
272
|
+
not its parent `XDG_CONFIG_HOME` or its credential-data directory.
|
|
273
|
+
|
|
274
|
+
```bash
|
|
275
|
+
instructions session plan --tool grok --profile work \
|
|
276
|
+
--target-home "$GROK_HOME" --identity-export ./instructions.json --json
|
|
277
|
+
instructions session apply --tool devin --profile work \
|
|
278
|
+
--target-home /absolute/isolated/config/devin --identity-export ./instructions.json
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
An explicit `--project-root` keeps the project renderer: Grok writes repository
|
|
282
|
+
`AGENTS.md`; Devin writes `.devin/rules/*.md`. Without either explicit target,
|
|
283
|
+
these providers remain blocked. Compiled native profiles select the
|
|
284
|
+
`native-profile` capability (Grok 1.0.13+, Devin 3000.10.21+); conditional bindings
|
|
285
|
+
require an explicit supported fallback because global `AGENTS.md` is always on.
|
|
286
|
+
The existing conflict, drift, symlink and snapshot checks also apply to native homes.
|
|
287
|
+
See [Devin global rules](https://docs.devin.ai/cli/extensibility/rules) and
|
|
288
|
+
[Grok settings](https://docs.x.ai/build/settings) for native home configuration.
|
|
289
|
+
|
|
266
290
|
### Session renderer ownership
|
|
267
291
|
|
|
268
292
|
Anything the session renderer writes is off limits to `instructions apply` and
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
applyConfig,
|
|
4
|
+
applyConfigs,
|
|
5
|
+
applyConfigsWithReport,
|
|
6
|
+
expandPath,
|
|
7
|
+
getConfigHome,
|
|
8
|
+
normalizeTargetPath,
|
|
9
|
+
previewConfigs
|
|
10
|
+
} from "./index-e9epbsvs.js";
|
|
11
|
+
import"./index-1hpwskwd.js";
|
|
12
|
+
import"./index-pkscjnj5.js";
|
|
13
|
+
import"./index-bsan4c16.js";
|
|
14
|
+
export {
|
|
15
|
+
previewConfigs,
|
|
16
|
+
normalizeTargetPath,
|
|
17
|
+
getConfigHome,
|
|
18
|
+
expandPath,
|
|
19
|
+
applyConfigsWithReport,
|
|
20
|
+
applyConfigs,
|
|
21
|
+
applyConfig
|
|
22
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
applyConfig,
|
|
4
|
+
applyConfigs,
|
|
5
|
+
applyConfigsWithReport,
|
|
6
|
+
expandPath,
|
|
7
|
+
getConfigHome,
|
|
8
|
+
normalizeTargetPath,
|
|
9
|
+
previewConfigs
|
|
10
|
+
} from "./index-axhwg61p.js";
|
|
11
|
+
import"./index-v7dkb384.js";
|
|
12
|
+
import"./index-35z65jsa.js";
|
|
13
|
+
import"./index-pkscjnj5.js";
|
|
14
|
+
import"./index-nnwp92tk.js";
|
|
15
|
+
export {
|
|
16
|
+
previewConfigs,
|
|
17
|
+
normalizeTargetPath,
|
|
18
|
+
getConfigHome,
|
|
19
|
+
expandPath,
|
|
20
|
+
applyConfigsWithReport,
|
|
21
|
+
applyConfigs,
|
|
22
|
+
applyConfig
|
|
23
|
+
};
|