@litfamily/litopencode 1.0.0 → 1.0.2

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 (64) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README-Ko-KR.md +8 -7
  3. package/README.md +8 -7
  4. package/dist/activation-prompt-utils.d.ts +1 -1
  5. package/dist/activation-routing.d.ts +1 -1
  6. package/dist/activation-routing.js +1 -8
  7. package/dist/activation-workflow-prompts.d.ts +0 -1
  8. package/dist/activation-workflow-prompts.js +0 -8
  9. package/dist/activation.d.ts +1 -1
  10. package/dist/activation.js +1 -1
  11. package/dist/cli/args.d.ts +1 -1
  12. package/dist/cli/args.js +1 -31
  13. package/dist/cli/loop.js +0 -19
  14. package/dist/cli/managed-skill-assets.d.ts +1 -1
  15. package/dist/cli/managed-skill-assets.js +0 -2
  16. package/dist/cli/types.d.ts +0 -4
  17. package/dist/cli.js +0 -14
  18. package/dist/commands.d.ts +1 -10
  19. package/dist/commands.js +1 -11
  20. package/dist/features.d.ts +1 -22
  21. package/dist/features.js +0 -43
  22. package/dist/hooks.js +0 -13
  23. package/dist/index.d.ts +0 -5
  24. package/dist/index.js +0 -5
  25. package/dist/skills.d.ts +1 -8
  26. package/dist/skills.js +0 -13
  27. package/dist/tool-kit.d.ts +13 -16
  28. package/dist/tool-kit.js +8 -39
  29. package/docs/assets/cover-motion.webp +0 -0
  30. package/docs/assets/readme/badge-version.svg +1 -1
  31. package/docs/privacy.md +2 -2
  32. package/docs/reference.md +5 -48
  33. package/package.json +5 -3
  34. package/skills/frontend-ui-ux/references/complete-contract.md +1 -1
  35. package/skills/lit-plan/SKILL.md +1 -1
  36. package/skills/managed-skill-manifest.json +2 -9
  37. package/skills/visual-qa/references/complete-contract.md +1 -1
  38. package/tools/check-payload-substance.mjs +74 -27
  39. package/tools/payload-substance-parity.json +10 -25
  40. package/tools/version-manifests.json +4 -4
  41. package/dist/cli/skill-loop.d.ts +0 -3
  42. package/dist/cli/skill-loop.js +0 -649
  43. package/dist/skill-loop/apply.d.ts +0 -19
  44. package/dist/skill-loop/apply.js +0 -483
  45. package/dist/skill-loop/config.d.ts +0 -50
  46. package/dist/skill-loop/config.js +0 -215
  47. package/dist/skill-loop/curator.d.ts +0 -18
  48. package/dist/skill-loop/curator.js +0 -232
  49. package/dist/skill-loop/ledger.d.ts +0 -39
  50. package/dist/skill-loop/ledger.js +0 -344
  51. package/dist/skill-loop/proposals.d.ts +0 -48
  52. package/dist/skill-loop/proposals.js +0 -290
  53. package/dist/skill-loop/storage.d.ts +0 -72
  54. package/dist/skill-loop/storage.js +0 -817
  55. package/dist/skill-loop/time.d.ts +0 -2
  56. package/dist/skill-loop/time.js +0 -23
  57. package/dist/skill-loop/transaction.d.ts +0 -62
  58. package/dist/skill-loop/transaction.js +0 -836
  59. package/dist/skill-loop/usage.d.ts +0 -31
  60. package/dist/skill-loop/usage.js +0 -146
  61. package/dist/skill-observer.d.ts +0 -22
  62. package/dist/skill-observer.js +0 -1154
  63. package/skills/skill-observer/SKILL.md +0 -148
  64. package/skills/skill-observer/references/review-contract.md +0 -95
@@ -1,2 +0,0 @@
1
- export declare function isStrictRfc3339(value: unknown): value is string;
2
- export declare function assertStrictRfc3339(value: unknown, code: string): asserts value is string;
@@ -1,23 +0,0 @@
1
- const rfc3339 = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,3}))?(?:Z|([+-])(\d{2}):(\d{2}))$/u;
2
- export function isStrictRfc3339(value) {
3
- if (typeof value !== "string")
4
- return false;
5
- const match = rfc3339.exec(value);
6
- if (match === null || !Number.isFinite(Date.parse(value)))
7
- return false;
8
- const year = Number(match[1]);
9
- const month = Number(match[2]);
10
- const day = Number(match[3]);
11
- const hour = Number(match[4]);
12
- const minute = Number(match[5]);
13
- const second = Number(match[6]);
14
- const offsetHour = Number(match[9] ?? "0");
15
- const offsetMinute = Number(match[10] ?? "0");
16
- const calendar = new Date(Date.UTC(year, month - 1, day));
17
- return calendar.getUTCFullYear() === year && calendar.getUTCMonth() === month - 1 && calendar.getUTCDate() === day &&
18
- hour <= 23 && minute <= 59 && second <= 59 && offsetHour <= 23 && offsetMinute <= 59;
19
- }
20
- export function assertStrictRfc3339(value, code) {
21
- if (!isStrictRfc3339(value))
22
- throw new Error(code);
23
- }
@@ -1,62 +0,0 @@
1
- import { type SkillSnapshotItem } from "./ledger.ts";
2
- import { type SkillLoopLockCapability } from "./storage.ts";
3
- export type SkillTransactionKind = "apply" | "reject" | "rollback" | "curator";
4
- export type SkillTransactionRequest = {
5
- readonly kind: SkillTransactionKind;
6
- readonly requestId: string;
7
- };
8
- export type SkillTransactionRecovery = false | "rolled-back" | "committed";
9
- export type SkillTransactionTarget = {
10
- readonly targetSkill: string;
11
- readonly proposalId: string | null;
12
- readonly action: "patch" | "create" | "add-reference" | "archive" | "rollback" | "curator-archive";
13
- readonly before: readonly SkillSnapshotItem[];
14
- readonly after: readonly SkillSnapshotItem[];
15
- readonly archivePath?: string;
16
- readonly archiveStagePath?: string;
17
- };
18
- export type SkillTransactionBackup = {
19
- readonly path: string;
20
- readonly stagePath: string;
21
- readonly markerToken: string;
22
- readonly skills: readonly {
23
- readonly skillId: string;
24
- readonly snapshot: readonly SkillSnapshotItem[];
25
- }[];
26
- };
27
- type RuntimeImage = {
28
- readonly key: "ledger" | "usage" | "proposal";
29
- readonly proposalId?: string;
30
- readonly before: string | null;
31
- };
32
- type SkillTransactionJournal = {
33
- readonly schema: "litfamily.skill-transaction/v2";
34
- readonly id: string;
35
- readonly kind: SkillTransactionKind;
36
- readonly requestId: string;
37
- readonly projectRoot: string;
38
- readonly skillsRoot: string;
39
- readonly proposalId: string | null;
40
- readonly action: SkillTransactionTarget["action"] | "reject" | "curator";
41
- readonly ownershipMarker: "litopencodeAgentGenerated";
42
- readonly targets: readonly SkillTransactionTarget[];
43
- readonly runtime: readonly RuntimeImage[];
44
- readonly backup: SkillTransactionBackup | null;
45
- };
46
- export declare function createSkillTransactionId(): string;
47
- export declare function materializeTransactionSnapshot(projectRoot: string, stagePath: string, destinationPath: string, snapshot: readonly SkillSnapshotItem[]): Promise<void>;
48
- export declare function recoverSkillTransaction(projectRoot: string, configRoot: string, expected: SkillTransactionRequest, validateTarget: (targetSkill: string) => void, targetPinned: (targetSkill: string) => Promise<boolean>, capability: SkillLoopLockCapability): Promise<SkillTransactionRecovery>;
49
- export declare function beginSkillTransaction(projectRoot: string, configRoot: string, input: {
50
- readonly id: string;
51
- readonly request: SkillTransactionRequest;
52
- readonly proposalId: string | null;
53
- readonly action: SkillTransactionJournal["action"];
54
- readonly targets: readonly SkillTransactionTarget[];
55
- readonly includeLedger?: boolean;
56
- readonly includeUsage?: boolean;
57
- readonly includeProposal?: boolean;
58
- readonly backup?: SkillTransactionBackup;
59
- readonly capability: SkillLoopLockCapability;
60
- }): Promise<void>;
61
- export declare function completeSkillTransaction(projectRoot: string, configRoot: string, expected: SkillTransactionRequest, capability: SkillLoopLockCapability): Promise<void>;
62
- export {};