ccsini 0.1.62 → 0.1.63

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.
Files changed (2) hide show
  1. package/dist/index.js +14 -12
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -28058,7 +28058,7 @@ var {
28058
28058
  } = import__.default;
28059
28059
 
28060
28060
  // src/version.ts
28061
- var VERSION = "0.1.62";
28061
+ var VERSION = "0.1.63";
28062
28062
 
28063
28063
  // src/commands/init.ts
28064
28064
  init_source();
@@ -31981,7 +31981,7 @@ async function getAuthenticatedClient2(configDir) {
31981
31981
  const config = await loadKeys(configDir);
31982
31982
  const privateKey = await importPrivateKey(config.devicePrivateKey);
31983
31983
  const jwt = await createDeviceJWT(privateKey, config.deviceId);
31984
- return new CcsiniClient(config.apiUrl, jwt);
31984
+ return { client: new CcsiniClient(config.apiUrl, jwt), config };
31985
31985
  }
31986
31986
  async function ensureDaemon(configDir) {
31987
31987
  try {
@@ -32011,12 +32011,13 @@ function registerAutoCommands(program2) {
32011
32011
  const configDir = getConfigDir();
32012
32012
  if (!await configExists(configDir))
32013
32013
  return;
32014
- await ensureDaemon(configDir);
32015
32014
  try {
32016
- const masterKey = await getMasterKey2(configDir);
32017
- const client = await getAuthenticatedClient2(configDir);
32018
- const config = await loadKeys(configDir);
32019
- const storedSession = await loadSessionConfig(configDir);
32015
+ const [, masterKey, { client, config }, storedSession] = await Promise.all([
32016
+ ensureDaemon(configDir),
32017
+ getMasterKey2(configDir),
32018
+ getAuthenticatedClient2(configDir),
32019
+ loadSessionConfig(configDir)
32020
+ ]);
32020
32021
  const sessionOptions = {
32021
32022
  enabled: storedSession.enabled,
32022
32023
  maxPerProject: storedSession.maxPerProject,
@@ -32036,10 +32037,11 @@ function registerAutoCommands(program2) {
32036
32037
  if (!await configExists(configDir))
32037
32038
  return;
32038
32039
  try {
32039
- const masterKey = await getMasterKey2(configDir);
32040
- const client = await getAuthenticatedClient2(configDir);
32041
- const config = await loadKeys(configDir);
32042
- const storedSession = await loadSessionConfig(configDir);
32040
+ const [masterKey, { client, config }, storedSession] = await Promise.all([
32041
+ getMasterKey2(configDir),
32042
+ getAuthenticatedClient2(configDir),
32043
+ loadSessionConfig(configDir)
32044
+ ]);
32043
32045
  const sessionOptions = {
32044
32046
  enabled: storedSession.enabled,
32045
32047
  maxPerProject: storedSession.maxPerProject,
@@ -32085,7 +32087,7 @@ function registerAutoCommands(program2) {
32085
32087
  if (!await configExists(configDir))
32086
32088
  return;
32087
32089
  try {
32088
- const client = await getAuthenticatedClient2(configDir);
32090
+ const { client } = await getAuthenticatedClient2(configDir);
32089
32091
  await client.heartbeat();
32090
32092
  } catch {}
32091
32093
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccsini",
3
- "version": "0.1.62",
3
+ "version": "0.1.63",
4
4
  "description": "Claude Code seamless sync across devices",
5
5
  "type": "module",
6
6
  "bin": {