@ghl-ai/aw 0.1.38-beta.0 → 0.1.38-beta.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/codex.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  // codex.mjs — Project-local Codex defaults for AW/ECC startup.
2
2
 
3
- import { chmodSync, existsSync, mkdirSync, readFileSync, readdirSync, rmSync, statSync, writeFileSync } from 'node:fs';
3
+ import { existsSync, mkdirSync, readFileSync, readdirSync, rmSync, writeFileSync } from 'node:fs';
4
4
  import { dirname, join } from 'node:path';
5
5
 
6
6
  import { getSupportedHarnessPhaseEntries } from './hook-manifest.mjs';
@@ -750,10 +750,6 @@ function ensureManagedScript(filePath, content, marker) {
750
750
  if (existsSync(filePath)) {
751
751
  const existing = readFileSync(filePath, 'utf8');
752
752
  if (existing === content) {
753
- if (!isExecutableScript(filePath)) {
754
- chmodSync(filePath, 0o755);
755
- return true;
756
- }
757
753
  return false;
758
754
  }
759
755
  if (!existing.includes(marker)) {
@@ -762,8 +758,7 @@ function ensureManagedScript(filePath, content, marker) {
762
758
  }
763
759
 
764
760
  mkdirSync(dirname(filePath), { recursive: true });
765
- writeFileSync(filePath, content, { mode: 0o755 });
766
- chmodSync(filePath, 0o755);
761
+ writeFileSync(filePath, content);
767
762
  return true;
768
763
  }
769
764
 
@@ -786,14 +781,6 @@ function hasTomlSection(content, sectionName) {
786
781
  return pattern.test(content);
787
782
  }
788
783
 
789
- function isExecutableScript(filePath) {
790
- try {
791
- return (statSync(filePath).mode & 0o111) !== 0;
792
- } catch {
793
- return false;
794
- }
795
- }
796
-
797
784
  function tidyToml(content) {
798
785
  const normalized = content
799
786
  .replace(/\r\n/g, '\n')
package/ecc.mjs CHANGED
@@ -10,7 +10,7 @@ import { applyStoredStartupPreferences } from "./startup.mjs";
10
10
 
11
11
  const AW_ECC_REPO_SSH = "git@github.com:shreyansh-ghl/aw-ecc.git";
12
12
  const AW_ECC_REPO_HTTPS = "https://github.com/shreyansh-ghl/aw-ecc.git";
13
- export const AW_ECC_TAG = "v1.4.20";
13
+ export const AW_ECC_TAG = "v1.4.21";
14
14
 
15
15
  const MARKETPLACE_NAME = "aw-marketplace";
16
16
  const PLUGIN_KEY = `aw@${MARKETPLACE_NAME}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghl-ai/aw",
3
- "version": "0.1.38-beta.0",
3
+ "version": "0.1.38-beta.1",
4
4
  "description": "Agentic Workspace CLI — pull, push & manage agents, skills and commands from the registry",
5
5
  "type": "module",
6
6
  "bin": {
package/startup.mjs CHANGED
@@ -154,7 +154,7 @@ function isLegacyCodexSessionStartEntry(entry) {
154
154
  const command = String(hook?.command || '');
155
155
  return (
156
156
  command.includes('.aw_registry/platform/core/skills/using-aw-skills/hooks/session-start.sh')
157
- || (command.includes('.codex/hooks/aw-session-start.sh') && entry?.matcher !== CODEX_HOME_HOOK_MATCHER)
157
+ || (command.includes('.codex/hooks/aw-session-start.sh') && entry?.matcher !== CODEX_HOOK_MATCHER)
158
158
  );
159
159
  });
160
160
  }