@hasna/project 0.1.10 → 0.1.11

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.
@@ -1 +1 @@
1
- {"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/projects.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAsEzC,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA8rB9D"}
1
+ {"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/projects.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA+EzC,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA8rB9D"}
package/dist/cli/index.js CHANGED
@@ -46400,6 +46400,15 @@ function timeAgo(iso) {
46400
46400
  const d2 = Math.floor(h2 / 24);
46401
46401
  return `${d2}d ago`;
46402
46402
  }
46403
+ function suppressSslWarnings() {
46404
+ const orig = process.emitWarning.bind(process);
46405
+ process.emitWarning = (msg, ...args) => {
46406
+ const text = typeof msg === "string" ? msg : msg.message;
46407
+ if (text?.includes("SSL modes"))
46408
+ return;
46409
+ return orig(msg, ...args);
46410
+ };
46411
+ }
46403
46412
  function requireProject(idOrSlug) {
46404
46413
  if (idOrSlug)
46405
46414
  return resolveProject(idOrSlug);
@@ -46947,6 +46956,7 @@ ${source_default.bold(r2.project.name)} ${source_default.dim(r2.project.slug)}`)
46947
46956
  const cloudCmd = cmd.command("cloud").description("Cloud sync \u2014 push/pull between local SQLite and RDS PostgreSQL");
46948
46957
  cloudCmd.command("status").description("Show cloud configuration and connection health").action(async () => {
46949
46958
  process.env["NODE_NO_WARNINGS"] = "1";
46959
+ suppressSslWarnings();
46950
46960
  const { getCloudConfig: getCloudConfig2, getConnectionString: getConnectionString2, PgAdapterAsync: PgAdapterAsync2 } = await Promise.resolve().then(() => (init_dist(), exports_dist));
46951
46961
  const config = getCloudConfig2();
46952
46962
  console.log(`mode: ${config.mode}`);
@@ -46966,7 +46976,7 @@ ${source_default.bold(r2.project.name)} ${source_default.dim(r2.project.slug)}`)
46966
46976
  cloudCmd.command("pull").description("Pull data from cloud PostgreSQL to local SQLite").option("--tables <tables>", "Comma-separated table names (default: all)").action(async (opts) => {
46967
46977
  console.log(source_default.dim("Pulling from cloud..."));
46968
46978
  try {
46969
- process.env["NODE_NO_WARNINGS"] = "1";
46979
+ suppressSslWarnings();
46970
46980
  const { syncPull: syncPull2, getCloudConfig: getCloudConfig2, getConnectionString: getConnectionString2, PgAdapterAsync: PgAdapterAsync2, SqliteAdapter: SqliteAdapter2 } = await Promise.resolve().then(() => (init_dist(), exports_dist));
46971
46981
  const config = getCloudConfig2();
46972
46982
  if (!config.rds?.host) {
@@ -46991,7 +47001,7 @@ ${source_default.bold(r2.project.name)} ${source_default.dim(r2.project.slug)}`)
46991
47001
  cloudCmd.command("push").description("Push local SQLite data to cloud PostgreSQL").option("--tables <tables>", "Comma-separated table names (default: all)").action(async (opts) => {
46992
47002
  console.log(source_default.dim("Pushing to cloud..."));
46993
47003
  try {
46994
- process.env["NODE_NO_WARNINGS"] = "1";
47004
+ suppressSslWarnings();
46995
47005
  const { syncPush: syncPush2, getCloudConfig: getCloudConfig2, getConnectionString: getConnectionString2, PgAdapterAsync: PgAdapterAsync2, SqliteAdapter: SqliteAdapter2 } = await Promise.resolve().then(() => (init_dist(), exports_dist));
46996
47006
  const { runPgMigrations: runPgMigrations2 } = await Promise.resolve().then(() => (init_pg_migrations(), exports_pg_migrations));
46997
47007
  const config = getCloudConfig2();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/project",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "Project management CLI + MCP server for AI agents — register, sync, and open projects across machines",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",