@hyperfixi/core 2.3.0 → 2.3.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.
Files changed (36) hide show
  1. package/README.md +8 -11
  2. package/dist/bundle-generator/index.js +25 -4
  3. package/dist/bundle-generator/index.mjs +25 -4
  4. package/dist/chunks/{bridge-BlRqsZT4.js → bridge-Clbh_xAj.js} +2 -2
  5. package/dist/chunks/browser-modular-DIOxQqhV.js +2 -0
  6. package/dist/chunks/{index-BDYQHwCF.js → index-DcxoRUBe.js} +2 -2
  7. package/dist/commands/index.js +22 -3
  8. package/dist/commands/index.mjs +22 -3
  9. package/dist/hyperfixi-classic-i18n.js +1 -1
  10. package/dist/hyperfixi-hx.js +1 -1
  11. package/dist/hyperfixi-hybrid-complete.js +1 -1
  12. package/dist/hyperfixi-minimal.js +1 -1
  13. package/dist/hyperfixi-multilingual.js +1 -1
  14. package/dist/hyperfixi-standard.js +1 -1
  15. package/dist/hyperfixi.js +1 -1
  16. package/dist/hyperfixi.mjs +1 -1
  17. package/dist/index.js +22 -3
  18. package/dist/index.min.js +1 -1
  19. package/dist/index.mjs +22 -3
  20. package/dist/lokascript-browser-classic-i18n.js +1 -1
  21. package/dist/lokascript-browser-minimal.js +1 -1
  22. package/dist/lokascript-browser-standard.js +1 -1
  23. package/dist/lokascript-browser.js +1 -1
  24. package/dist/lokascript-hybrid-complete.js +1 -1
  25. package/dist/lokascript-hybrid-hx.js +1 -1
  26. package/dist/lokascript-multilingual.js +1 -1
  27. package/dist/parser/hybrid/index.js +7 -0
  28. package/dist/parser/hybrid/index.mjs +7 -0
  29. package/dist/parser/hybrid/parser-core.js +7 -0
  30. package/dist/parser/hybrid/parser-core.mjs +7 -0
  31. package/dist/parser/hybrid/tokenizer.js +7 -0
  32. package/dist/parser/hybrid/tokenizer.mjs +7 -0
  33. package/dist/parser/hybrid-parser.js +7 -0
  34. package/dist/parser/hybrid-parser.mjs +7 -0
  35. package/package.json +1 -1
  36. package/dist/chunks/browser-modular-AbV0Ql4i.js +0 -2
@@ -1,2 +1,2 @@
1
- let n=null;async function t(){if(!n)try{n=await import("./browser-modular-AbV0Ql4i.js").then(function(n){return n.n})}catch{throw Error("@lokascript/framework is required for LSE support. Install it: npm install @lokascript/framework")}return n}function r(){if(n)return!0;try{return require.resolve("@lokascript/framework"),!0}catch{return!1}}async function a(n,r){return(await t()).parseExplicit(n,r)}async function o(n){return(await t()).isExplicitSyntax(n)}async function i(n){return(await t()).renderExplicit(n)}async function e(n){return(await t()).fromInterchangeNode(n)}async function c(n){return(await t()).toProtocolJSON(n)}async function u(n){return(await t()).fromProtocolJSON(n)}async function s(n){return(await t()).validateProtocolJSON(n)}async function f(n){return(await t()).toEnvelopeJSON(n)}async function l(n){return(await t()).fromEnvelopeJSON(n)}async function w(n){return(await t()).isEnvelope(n)}async function p(n){return(await t()).semanticNodeToRuntimeAST(n)}export{l as fromEnvelopeJSON,e as fromInterchangeNode,u as fromProtocolJSON,w as isEnvelope,o as isExplicitSyntax,r as isLSEAvailable,a as parseExplicit,i as renderExplicit,p as semanticNodeToRuntimeAST,f as toEnvelopeJSON,c as toProtocolJSON,s as validateProtocolJSON};
2
- //# sourceMappingURL=index-BDYQHwCF.js.map
1
+ let n=null;async function t(){if(!n)try{n=await import("./browser-modular-DIOxQqhV.js").then(function(n){return n.n})}catch{throw Error("@lokascript/framework is required for LSE support. Install it: npm install @lokascript/framework")}return n}function r(){if(n)return!0;try{return require.resolve("@lokascript/framework"),!0}catch{return!1}}async function a(n,r){return(await t()).parseExplicit(n,r)}async function o(n){return(await t()).isExplicitSyntax(n)}async function i(n){return(await t()).renderExplicit(n)}async function e(n){return(await t()).fromInterchangeNode(n)}async function c(n){return(await t()).toProtocolJSON(n)}async function u(n){return(await t()).fromProtocolJSON(n)}async function s(n){return(await t()).validateProtocolJSON(n)}async function f(n){return(await t()).toEnvelopeJSON(n)}async function l(n){return(await t()).fromEnvelopeJSON(n)}async function w(n){return(await t()).isEnvelope(n)}async function p(n){return(await t()).semanticNodeToRuntimeAST(n)}export{l as fromEnvelopeJSON,e as fromInterchangeNode,u as fromProtocolJSON,w as isEnvelope,o as isExplicitSyntax,r as isLSEAvailable,a as parseExplicit,i as renderExplicit,p as semanticNodeToRuntimeAST,f as toEnvelopeJSON,c as toProtocolJSON,s as validateProtocolJSON};
2
+ //# sourceMappingURL=index-DcxoRUBe.js.map
@@ -2390,11 +2390,30 @@ let PutCommand = (() => {
2390
2390
  const obj = targetArg.object, prop = targetArg.property;
2391
2391
  if (obj?.type === 'selector')
2392
2392
  targetSelector = obj.value;
2393
- else if (obj?.type === 'identifier')
2394
- targetSelector = obj.name;
2393
+ else if (obj?.type === 'identifier') {
2394
+ const objName = obj.name;
2395
+ if (objName === 'my' || objName === 'me' || objName === 'I') {
2396
+ if (context.me && prop?.name) {
2397
+ return {
2398
+ value,
2399
+ targets: [context.me],
2400
+ position: 'replace',
2401
+ memberPath: prop.name,
2402
+ };
2403
+ }
2404
+ }
2405
+ else if (objName === 'its' || objName === 'it') {
2406
+ const ev = await evaluator.evaluate(targetArg, context);
2407
+ if (typeof ev === 'string')
2408
+ targetSelector = ev;
2409
+ }
2410
+ else {
2411
+ targetSelector = objName;
2412
+ }
2413
+ }
2395
2414
  if (targetSelector && prop?.name)
2396
2415
  memberPath = prop.name;
2397
- else {
2416
+ else if (!targetSelector && !memberPath) {
2398
2417
  const ev = await evaluator.evaluate(targetArg, context);
2399
2418
  if (typeof ev === 'string')
2400
2419
  targetSelector = ev;
@@ -2388,11 +2388,30 @@ let PutCommand = (() => {
2388
2388
  const obj = targetArg.object, prop = targetArg.property;
2389
2389
  if (obj?.type === 'selector')
2390
2390
  targetSelector = obj.value;
2391
- else if (obj?.type === 'identifier')
2392
- targetSelector = obj.name;
2391
+ else if (obj?.type === 'identifier') {
2392
+ const objName = obj.name;
2393
+ if (objName === 'my' || objName === 'me' || objName === 'I') {
2394
+ if (context.me && prop?.name) {
2395
+ return {
2396
+ value,
2397
+ targets: [context.me],
2398
+ position: 'replace',
2399
+ memberPath: prop.name,
2400
+ };
2401
+ }
2402
+ }
2403
+ else if (objName === 'its' || objName === 'it') {
2404
+ const ev = await evaluator.evaluate(targetArg, context);
2405
+ if (typeof ev === 'string')
2406
+ targetSelector = ev;
2407
+ }
2408
+ else {
2409
+ targetSelector = objName;
2410
+ }
2411
+ }
2393
2412
  if (targetSelector && prop?.name)
2394
2413
  memberPath = prop.name;
2395
- else {
2414
+ else if (!targetSelector && !memberPath) {
2396
2415
  const ev = await evaluator.evaluate(targetArg, context);
2397
2416
  if (typeof ev === 'string')
2398
2417
  targetSelector = ev;