pasika 0.5.13 → 0.5.15

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/README.md CHANGED
@@ -11,7 +11,7 @@ docs/
11
11
  repository-policy.md # repo-wide code and documentation requirements (Policy)
12
12
  code-organization-guide/ # placement, extraction, module conventions
13
13
  documentation-guide/ # how documents themselves are written
14
- framework-adoption-guide/ # adopting and updating the framework
14
+ pasika-adoption-guide/ # adopting and updating the framework
15
15
  styling-guide/ # Tailwind theme, composition, variants, states
16
16
  scripts/
17
17
  registry.json # requirement → enforcement, keyed by content hash
@@ -51,10 +51,13 @@ function containsSmartCall(node) {
51
51
  ts.forEachChild(node, visit);
52
52
  return found;
53
53
  }
54
+ function isAsyncFunction(node) {
55
+ return (ts.getModifiers(node) ?? []).some((modifier) => modifier.kind === ts.SyntaxKind.AsyncKeyword);
56
+ }
54
57
  function componentFromFunction(node) {
55
58
  const name = node.name?.text;
56
59
  if (!name || !isPascalCase(name) || !containsJsx(node)) return void 0;
57
- return { name, declaration: node, smart: containsSmartCall(node) };
60
+ return { name, declaration: node, smart: containsSmartCall(node) || isAsyncFunction(node) };
58
61
  }
59
62
  function componentFromVariable(node) {
60
63
  if (!ts.isIdentifier(node.name) || !isPascalCase(node.name.text)) return void 0;
@@ -5904,7 +5907,7 @@ import path48 from "path";
5904
5907
  var PASIKA_REPO = "Bredansky/pasika";
5905
5908
  var BASE_REQUIRED_DOCS = [
5906
5909
  { name: "documentation-guide", path: "docs/documentation-guide" },
5907
- { name: "framework-adoption-guide", path: "docs/framework-adoption-guide" },
5910
+ { name: "pasika-adoption-guide", path: "docs/pasika-adoption-guide" },
5908
5911
  { name: "repository-policy", path: "docs/repository-policy.md" }
5909
5912
  ];
5910
5913
  var NEXTJS_REQUIRED_DOCS = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pasika",
3
- "version": "0.5.13",
3
+ "version": "0.5.15",
4
4
  "description": "Reusable agent setup package",
5
5
  "repository": {
6
6
  "type": "git",