@aipt/cli 0.1.25 → 0.1.28
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 +13 -1
- package/dist/application-runner.js +208 -188
- package/dist/application.js +118 -103
- package/dist/chunk.js +5 -2
- package/dist/optional-runtime.js +24 -24
- package/dist/package-releases/aipt--cli/0.1.26/release.json +29 -0
- package/dist/package-releases/aipt--cli/0.1.28/release.json +29 -0
- package/dist/package-releases/aipt--idp-setup/0.1.3/release.json +31 -0
- package/dist/package-releases/aipt--platform-kernel/0.1.8/release.json +33 -0
- package/docs/bootstrap.md +1 -1
- package/docs/vibe-coding-guide.md +1 -1
- package/documentation-manifest.json +3 -3
- package/package.json +23 -23
package/dist/chunk.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var h=Object.create;var
|
|
1
|
+
var h=Object.create;var u=Object.defineProperty;var w=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var E=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty;var O=(e,n)=>()=>{try{return n||e((n={exports:{}}).exports,n),n.exports}catch(t){throw n=0,t}};var v=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of C(n))!b.call(e,o)&&o!==t&&u(e,o,{get:()=>n[o],enumerable:!(r=w(n,o))||r.enumerable});return e};var N=(e,n,t)=>(t=e!=null?h(E(e)):{},v(n||!e||!e.__esModule?u(t,"default",{value:e,enumerable:!0}):t,e));var F="0.1.28",c={DEPENDENCIES_NOT_INSTALLED:4,VERIFIER_RUNTIME_INVALID:4},D=/[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]/u;function f(e,n){return typeof e=="string"&&e.length>0&&e.length<=n&&!D.test(e)}function j(e){let n={schemaVersion:1,kind:"dyyto-cli-domain-error",code:e.code,message:e.message,exitCode:c[e.code],...e.nextStep===void 0?{}:{nextStep:e.nextStep}},t=m(n);if(t===null)throw new TypeError("CLI domain error input is invalid");return t}function m(e){try{if(typeof e!="object"||e===null||Object.getPrototypeOf(e)!==Object.prototype)return null;let n=Object.getOwnPropertyDescriptors(e);if(Reflect.ownKeys(n).some(i=>typeof i=="symbol"))return null;let t=Object.keys(n).sort(),r="nextStep"in n?["code","exitCode","kind","message","nextStep","schemaVersion"]:["code","exitCode","kind","message","schemaVersion"];if(t.length!==r.length||t.some((i,k)=>i!==r[k])||Object.values(n).some(i=>!("value"in i)))return null;let o=i=>n[i]?.value,a=o("code");if(o("schemaVersion")!==1||o("kind")!=="dyyto-cli-domain-error"||typeof a!="string"||!(a in c)||o("exitCode")!==c[a]||!f(o("message"),500))return null;let d=o("nextStep");return d!==void 0&&!f(d,500)?null:Object.freeze({schemaVersion:1,kind:"dyyto-cli-domain-error",code:a,message:o("message"),exitCode:4,...d===void 0?{}:{nextStep:d}})}catch{return null}}function T(e){if(e instanceof l&&e.domainError!==void 0)return e.domainError;try{if(typeof e!="object"||e===null)return null;let n=Object.getOwnPropertyDescriptor(e,"domainError");return n!==void 0&&"value"in n?m(n.value):null}catch{return null}}var l=class extends Error{code;exitCode;nextStep;domainError;constructor(n){super(n.message),this.name="CliError",this.code=n.code,this.exitCode=n.exitCode,this.nextStep=n.nextStep,this.domainError=n.code in c&&n.exitCode===c[n.code]?j({code:n.code,message:n.message,...n.nextStep===void 0?{}:{nextStep:n.nextStep}}):void 0}};var z=`Dyyto Engineering Platform CLI
|
|
2
2
|
|
|
3
3
|
Usage:
|
|
4
4
|
dyyto <command> [options]
|
|
@@ -17,6 +17,8 @@ Commands:
|
|
|
17
17
|
dyyto build Run the template's supported build command
|
|
18
18
|
dyyto test Run the template's supported test command
|
|
19
19
|
dyyto package Build a local package artifact without publishing
|
|
20
|
+
dyyto package publish \u5C06\u901A\u7528\u80FD\u529BPackage\u6253\u5305\u5E76\u53D1\u5E03\u81F3\u79C1\u6709\u6216\u516C\u5F00Registry
|
|
21
|
+
dyyto publish (\u522B\u540D) \u5C06\u901A\u7528\u80FD\u529BPackage\u53D1\u5E03\u81F3Registry
|
|
20
22
|
dyyto artifacts Build, inspect, serve, or remove a development artifact bundle
|
|
21
23
|
dyyto catalog search \u641C\u7D22\u5DF2\u6821\u9A8C\u7684 Capability \u4E0E PackageRelease
|
|
22
24
|
dyyto catalog show \u6309\u4E0D\u53EF\u53D8 ref \u5C55\u793A\u5B8C\u6574\u53D1\u884C\u4E8B\u5B9E
|
|
@@ -27,6 +29,7 @@ Commands:
|
|
|
27
29
|
dyyto integrations Audit packages, imports, code assets, evidence, and drift
|
|
28
30
|
dyyto maintenance Inspect standard commands, environment readiness, and validation modes
|
|
29
31
|
dyyto config inspect \u4ECEApplicationConfigBinding\u5B89\u5168\u6295\u5F71\u72EC\u7ACBAPP_CONFIG_DIR
|
|
32
|
+
dyyto config readiness \u68C0\u67E5\u5355\u4E2A\u5E94\u7528\u6216\u5DE5\u4F5C\u533A\uFF1A--project DIR | --workspace DIR [--check]
|
|
30
33
|
dyyto operations Query change, quality, or delivery operation history
|
|
31
34
|
dyyto add package Add a managed npm package to a workspace
|
|
32
35
|
dyyto add application Add a managed Node, Web, Next.js, or Expo application to a workspace
|
|
@@ -51,4 +54,4 @@ Options:
|
|
|
51
54
|
--json Emit one machine-readable JSON object
|
|
52
55
|
--help Show help
|
|
53
56
|
--version Show version
|
|
54
|
-
`;import{lstat as x,readFile as I,readdir as
|
|
57
|
+
`;import{lstat as x,readFile as I,readdir as A}from"node:fs/promises";import p from"node:path";var g={"workspace-node-application":"foundation.workspace-node-application@1.1.0","workspace-web-application":"foundation.workspace-web-application@1.1.0","workspace-expo-application":"foundation.workspace-expo-application@1.0.0","nextjs-full-stack-application":"foundation.nextjs-full-stack-application@1.0.0"};function S(e,n="package"){let t=n==="fixture"?"fixtures":"packages";return new RegExp(`^${t}/[a-z0-9][a-z0-9._-]*$`).test(e)?void 0:`Package path must be exactly ${t}/<lowercase-slug>.`}function P(e,n,t){if(!(n in g))return"Add application requires a supported --profile.";let r=g[n];if(t!==r)return`Add application with profile ${n} requires --capability ${r}.`;if(!/^apps\/[a-z0-9][a-z0-9._-]*$/.test(e))return/^services\/[a-z0-9][a-z0-9._-]*$/.test(e)?n==="workspace-node-application"?void 0:"Service applications require profile workspace-node-application.":"Application path must be exactly apps/<lowercase-slug> or services/<lowercase-slug>."}function s(e,n){let t=e.indexOf(n);return t<0?void 0:e[t+1]}async function y(e,n,t){for(let r of await A(p.join(e,n),{withFileTypes:!0}).catch(()=>[]))if(!(!r.isDirectory()||r.isSymbolicLink()))try{if(JSON.parse(await I(p.join(e,n,r.name,"project-capabilities.json"),"utf8")).profile?.parameters?.name===t)return!0}catch(o){if(o.code!=="ENOENT")throw o}return!1}async function R(e,n){return await y(e,"apps",n)||await y(e,"services",n)}async function B(e){if(e[0]!=="add")return;let n=s(e,"--path");if(n===void 0)return;let t=s(e,"--workspace"),r=s(e,"--name");if(e[1]==="package"){let a=s(e,"--kind")==="fixture"?"fixture":"package",d=S(n,a);return d!==void 0||t===void 0||r===void 0?d:await x(p.join(t,"package.json")).then(i=>i.isFile()).catch(()=>!1)?await y(t,a==="fixture"?"fixtures":"packages",r)?"A workspace package already uses this npm name.":void 0:"Workspace root must be applied and free of drift before adding a package."}if(e[1]!=="application")return;let o=P(n,s(e,"--profile")??"workspace-node-application",s(e,"--capability"));return o!==void 0||t===void 0||r===void 0?o:await x(p.join(t,"package.json")).then(a=>a.isFile()).catch(()=>!1)?await R(t,r)?"A workspace application already uses this name.":void 0:"Workspace root must be applied and free of drift before adding an application."}export{O as a,N as b,F as c,T as d,l as e,z as f,S as g,P as h,y as i,R as j,B as k};
|