@hasna/instructions 0.4.2 → 0.4.4

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/cli/index.js CHANGED
@@ -7098,14 +7098,14 @@ program.command("list").alias("ls").description("List stored configs").option("-
7098
7098
  tags: opts.tag ? [opts.tag] : undefined,
7099
7099
  search: opts.search
7100
7100
  });
7101
- if (configs.length === 0) {
7102
- console.log(chalk.dim("No configs found."));
7103
- return;
7104
- }
7105
7101
  if (fmt === "json") {
7106
7102
  printJson(configs);
7107
7103
  return;
7108
7104
  }
7105
+ if (configs.length === 0) {
7106
+ console.log(chalk.dim("No configs found."));
7107
+ return;
7108
+ }
7109
7109
  const page = paginate(configs, { limit: opts.limit, cursor: opts.cursor });
7110
7110
  if (fmt === "compact") {
7111
7111
  printConfigRows(page.items);
@@ -7334,14 +7334,14 @@ profileCmd.command("list").description("List all profiles").option("--brief", "c
7334
7334
  const fmt = opts.json ? "json" : opts.verbose ? "table" : opts.brief ? "compact" : opts.format;
7335
7335
  const store = resolveConfigStore();
7336
7336
  const profiles = await store.listProfiles();
7337
- if (profiles.length === 0) {
7338
- console.log(chalk.dim("No profiles."));
7339
- return;
7340
- }
7341
7337
  if (fmt === "json") {
7342
7338
  printJson(profiles);
7343
7339
  return;
7344
7340
  }
7341
+ if (profiles.length === 0) {
7342
+ console.log(chalk.dim("No profiles."));
7343
+ return;
7344
+ }
7345
7345
  const page = paginate(profiles, { limit: opts.limit, cursor: opts.cursor });
7346
7346
  if (fmt === "compact")
7347
7347
  console.log(`${pad("slug", 28)} ${pad("configs", 8)} ${pad("match", 36)} vars`);
package/dist/mcp/index.js CHANGED
@@ -2040,7 +2040,7 @@ var init_sync_dir = __esm(() => {
2040
2040
  var require_package = __commonJS((exports, module) => {
2041
2041
  module.exports = {
2042
2042
  name: "@hasna/instructions",
2043
- version: "0.4.2",
2043
+ version: "0.4.4",
2044
2044
  description: "AI coding agent instruction & configuration manager \u2014 store, version, apply, and share all your AI coding configs. CLI + MCP + HTTP API (instructions-serve) + generated SDK + Dashboard.",
2045
2045
  type: "module",
2046
2046
  main: "dist/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/instructions",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "description": "AI coding agent instruction & configuration manager — store, version, apply, and share all your AI coding configs. CLI + MCP + HTTP API (instructions-serve) + generated SDK + Dashboard.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",