@ghl-ai/aw 0.1.65 → 0.1.67

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/commands/push.mjs CHANGED
@@ -248,6 +248,12 @@ function writeAwDocsConfigIfChanged(projectRoot, config) {
248
248
  function ensureAwDocsPublishConfig(projectRoot) {
249
249
  const config = readAwDocsConfig(projectRoot);
250
250
  const defaultConfig = defaultAwDocsConfig();
251
+ const githubDocs = {
252
+ ...defaultConfig.sync.github_docs,
253
+ ...(config.sync?.github_docs || {}),
254
+ };
255
+ githubDocs.teamofone_base_url = canonicalDevtoolsBaseUrl(githubDocs.teamofone_base_url);
256
+
251
257
  const next = {
252
258
  ...config,
253
259
  docs: {
@@ -257,10 +263,7 @@ function ensureAwDocsPublishConfig(projectRoot) {
257
263
  sync: {
258
264
  ...defaultConfig.sync,
259
265
  ...(config.sync || {}),
260
- github_docs: {
261
- ...defaultConfig.sync.github_docs,
262
- ...(config.sync?.github_docs || {}),
263
- },
266
+ github_docs: githubDocs,
264
267
  },
265
268
  paths: {
266
269
  ...defaultConfig.paths,
@@ -303,7 +306,7 @@ function resolveAwDocsPublishConfig(projectRoot) {
303
306
  branch,
304
307
  seedBranch: process.env.AW_DOCS_SEED_BRANCH || githubDocs.seed_branch || AW_DOCS_SEED_BRANCH,
305
308
  dest,
306
- teamofoneBaseUrl: normalizeTeamOfOneBaseUrl(teamofoneBaseUrl),
309
+ teamofoneBaseUrl: canonicalDevtoolsBaseUrl(teamofoneBaseUrl),
307
310
  publicBaseUrl,
308
311
  };
309
312
  }
@@ -559,6 +562,26 @@ function normalizeTeamOfOneBaseUrl(baseUrl) {
559
562
  return `https://${value.replace(/^\/+/, '')}`;
560
563
  }
561
564
 
565
+ function canonicalDevtoolsBaseUrl(baseUrl) {
566
+ const canonical = AW_DOCS_TEAMOFONE_BASE_URL.replace(/\/+$/, '');
567
+ const normalized = normalizeTeamOfOneBaseUrl(baseUrl).replace(/\/+$/, '');
568
+ if (!normalized) return canonical;
569
+
570
+ try {
571
+ const expected = new URL(canonical);
572
+ const actual = new URL(normalized);
573
+ const expectedPath = expected.pathname.replace(/\/+$/, '');
574
+ const actualPath = actual.pathname.replace(/\/+$/, '');
575
+ if (actual.origin === expected.origin && actualPath === expectedPath) {
576
+ return canonical;
577
+ }
578
+ } catch {
579
+ return canonical;
580
+ }
581
+
582
+ return canonical;
583
+ }
584
+
562
585
  function appendQueryParam(url, key, value) {
563
586
  const hashIndex = url.indexOf('#');
564
587
  const withoutHash = hashIndex === -1 ? url : url.slice(0, hashIndex);
package/constants.mjs CHANGED
@@ -33,8 +33,12 @@ export const AW_DOCS_BASE_BRANCH = 'master-sync';
33
33
  export const AW_DOCS_SEED_BRANCH = process.env.AW_DOCS_SEED_BRANCH || 'scaffold';
34
34
  export const AW_DOCS_PUBLISH_DIR = 'aw_docs';
35
35
  export const AW_DOCS_PUBLIC_BASE_URL = process.env.AW_DOCS_PUBLIC_BASE_URL || `https://github.com/${AW_DOCS_REPO}/blob/${AW_DOCS_BASE_BRANCH}`;
36
- export const AW_DOCS_TEAMOFONE_ORIGIN = process.env.AW_DOCS_TEAMOFONE_ORIGIN || 'https://devtools.servers.stg.msgsndr.net';
37
- export const AW_DOCS_TEAMOFONE_BASE_URL = process.env.AW_DOCS_TEAMOFONE_BASE_URL || `${AW_DOCS_TEAMOFONE_ORIGIN}/too/docs/GoHighLevel/ghl-aw-docs`;
36
+ export const AW_DOCS_DEVTOOLS_ORIGIN = 'https://devtools.servers.stg.msgsndr.net';
37
+ export const AW_DOCS_DEVTOOLS_BASE_URL = `${AW_DOCS_DEVTOOLS_ORIGIN}/too/docs/GoHighLevel/ghl-aw-docs`;
38
+ /** @deprecated Use AW_DOCS_DEVTOOLS_ORIGIN. Kept as an alias for older call sites. */
39
+ export const AW_DOCS_TEAMOFONE_ORIGIN = AW_DOCS_DEVTOOLS_ORIGIN;
40
+ /** @deprecated Use AW_DOCS_DEVTOOLS_BASE_URL. Kept as an alias for older config keys. */
41
+ export const AW_DOCS_TEAMOFONE_BASE_URL = AW_DOCS_DEVTOOLS_BASE_URL;
38
42
 
39
43
  export function defaultAwDocsGithubDocsConfig() {
40
44
  return {
package/ecc.mjs CHANGED
@@ -12,7 +12,7 @@ import { applyStoredStartupPreferences } from "./startup.mjs";
12
12
 
13
13
  const AW_ECC_REPO_SSH = "git@github.com:shreyansh-ghl/aw-ecc.git";
14
14
  const AW_ECC_REPO_HTTPS = "https://github.com/shreyansh-ghl/aw-ecc.git";
15
- export const AW_ECC_TAG = "v1.4.64";
15
+ export const AW_ECC_TAG = "v1.4.65";
16
16
  const REQUIRED_ECC_FILES = [
17
17
  "package.json",
18
18
  "scripts/install-apply.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghl-ai/aw",
3
- "version": "0.1.65",
3
+ "version": "0.1.67",
4
4
  "description": "Agentic Workspace CLI — pull, push & manage agents, skills and commands from the registry",
5
5
  "type": "module",
6
6
  "bin": {